configure revision c82dfdfb
1f46a6179Smrg#! /bin/sh
2f46a6179Smrg# Guess values for system-dependent variables and create Makefiles.
3c82dfdfbSmrg# Generated by GNU Autoconf 2.69 for xkbcomp 1.3.0.
4f46a6179Smrg#
5f46a6179Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6f46a6179Smrg#
783e5f723Smrg#
8c82dfdfbSmrg# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
983e5f723Smrg#
1083e5f723Smrg#
11f46a6179Smrg# This configure script is free software; the Free Software Foundation
12f46a6179Smrg# gives unlimited permission to copy, distribute and modify it.
1383e5f723Smrg## -------------------- ##
1483e5f723Smrg## M4sh Initialization. ##
1583e5f723Smrg## -------------------- ##
16f46a6179Smrg
17f46a6179Smrg# Be more Bourne compatible
18f46a6179SmrgDUALCASE=1; export DUALCASE # for MKS sh
1983e5f723Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20f46a6179Smrg  emulate sh
21f46a6179Smrg  NULLCMD=:
2234345a63Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23f46a6179Smrg  # is contrary to our usage.  Disable this feature.
24f46a6179Smrg  alias -g '${1+"$@"}'='"$@"'
25f46a6179Smrg  setopt NO_GLOB_SUBST
26f46a6179Smrgelse
2783e5f723Smrg  case `(set -o) 2>/dev/null` in #(
2883e5f723Smrg  *posix*) :
2983e5f723Smrg    set -o posix ;; #(
3083e5f723Smrg  *) :
3183e5f723Smrg     ;;
32f46a6179Smrgesac
33f46a6179Smrgfi
34f46a6179Smrg
35f46a6179Smrg
3634345a63Smrgas_nl='
3734345a63Smrg'
3834345a63Smrgexport as_nl
3934345a63Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
4034345a63Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4134345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4234345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4383e5f723Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
4483e5f723Smrg# but without wasting forks for bash or zsh.
4583e5f723Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
4683e5f723Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4783e5f723Smrg  as_echo='print -r --'
4883e5f723Smrg  as_echo_n='print -rn --'
4983e5f723Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5034345a63Smrg  as_echo='printf %s\n'
5134345a63Smrg  as_echo_n='printf %s'
5234345a63Smrgelse
5334345a63Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5434345a63Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5534345a63Smrg    as_echo_n='/usr/ucb/echo -n'
56f46a6179Smrg  else
5734345a63Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5834345a63Smrg    as_echo_n_body='eval
5934345a63Smrg      arg=$1;
6083e5f723Smrg      case $arg in #(
6134345a63Smrg      *"$as_nl"*)
6234345a63Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
6334345a63Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6434345a63Smrg      esac;
6534345a63Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6634345a63Smrg    '
6734345a63Smrg    export as_echo_n_body
6834345a63Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
69f46a6179Smrg  fi
7034345a63Smrg  export as_echo_body
7134345a63Smrg  as_echo='sh -c $as_echo_body as_echo'
7234345a63Smrgfi
7334345a63Smrg
7434345a63Smrg# The user is always right.
7534345a63Smrgif test "${PATH_SEPARATOR+set}" != set; then
7634345a63Smrg  PATH_SEPARATOR=:
7734345a63Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7834345a63Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7934345a63Smrg      PATH_SEPARATOR=';'
8034345a63Smrg  }
81f46a6179Smrgfi
82f46a6179Smrg
83f46a6179Smrg
84f46a6179Smrg# IFS
85f46a6179Smrg# We need space, tab and new line, in precisely that order.  Quoting is
86f46a6179Smrg# there to prevent editors from complaining about space-tab.
87f46a6179Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88f46a6179Smrg# splitting by setting IFS to empty value.)
89f46a6179SmrgIFS=" ""	$as_nl"
90f46a6179Smrg
91f46a6179Smrg# Find who we are.  Look in the path if we contain no directory separator.
92690143ccSmrgas_myself=
9383e5f723Smrgcase $0 in #((
94f46a6179Smrg  *[\\/]* ) as_myself=$0 ;;
95f46a6179Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96f46a6179Smrgfor as_dir in $PATH
97f46a6179Smrgdo
98f46a6179Smrg  IFS=$as_save_IFS
99f46a6179Smrg  test -z "$as_dir" && as_dir=.
10083e5f723Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10183e5f723Smrg  done
102f46a6179SmrgIFS=$as_save_IFS
103f46a6179Smrg
104f46a6179Smrg     ;;
105f46a6179Smrgesac
106f46a6179Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107f46a6179Smrg# in which case we are not to be found in the path.
108f46a6179Smrgif test "x$as_myself" = x; then
109f46a6179Smrg  as_myself=$0
110f46a6179Smrgfi
111f46a6179Smrgif test ! -f "$as_myself"; then
11234345a63Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11383e5f723Smrg  exit 1
114f46a6179Smrgfi
115f46a6179Smrg
11683e5f723Smrg# Unset variables that we do not need and which cause bugs (e.g. in
11783e5f723Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11883e5f723Smrg# suppresses any "Segmentation fault" message there.  '((' could
11983e5f723Smrg# trigger a bug in pdksh 5.2.14.
12083e5f723Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
12183e5f723Smrgdo eval test x\${$as_var+set} = xset \
12283e5f723Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123f46a6179Smrgdone
124f46a6179SmrgPS1='$ '
125f46a6179SmrgPS2='> '
126f46a6179SmrgPS4='+ '
127f46a6179Smrg
128f46a6179Smrg# NLS nuisances.
12934345a63SmrgLC_ALL=C
13034345a63Smrgexport LC_ALL
13134345a63SmrgLANGUAGE=C
13234345a63Smrgexport LANGUAGE
133f46a6179Smrg
13483e5f723Smrg# CDPATH.
13583e5f723Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13683e5f723Smrg
137c82dfdfbSmrg# Use a proper internal environment variable to ensure we don't fall
138c82dfdfbSmrg  # into an infinite loop, continuously re-executing ourselves.
139c82dfdfbSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140c82dfdfbSmrg    _as_can_reexec=no; export _as_can_reexec;
141c82dfdfbSmrg    # We cannot yet assume a decent shell, so we have to provide a
142c82dfdfbSmrg# neutralization value for shells without unset; and this also
143c82dfdfbSmrg# works around shells that cannot unset nonexistent variables.
144c82dfdfbSmrg# Preserve -v and -x to the replacement shell.
145c82dfdfbSmrgBASH_ENV=/dev/null
146c82dfdfbSmrgENV=/dev/null
147c82dfdfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148c82dfdfbSmrgcase $- in # ((((
149c82dfdfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
150c82dfdfbSmrg  *v* ) as_opts=-v ;;
151c82dfdfbSmrg  *x* ) as_opts=-x ;;
152c82dfdfbSmrg  * ) as_opts= ;;
153c82dfdfbSmrgesac
154c82dfdfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155c82dfdfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
156c82dfdfbSmrg# out after a failed `exec'.
157c82dfdfbSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158c82dfdfbSmrgas_fn_exit 255
159c82dfdfbSmrg  fi
160c82dfdfbSmrg  # We don't want this to propagate to other subprocesses.
161c82dfdfbSmrg          { _as_can_reexec=; unset _as_can_reexec;}
16283e5f723Smrgif test "x$CONFIG_SHELL" = x; then
16383e5f723Smrg  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
16483e5f723Smrg  emulate sh
16583e5f723Smrg  NULLCMD=:
16683e5f723Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
16783e5f723Smrg  # is contrary to our usage.  Disable this feature.
16883e5f723Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
16983e5f723Smrg  setopt NO_GLOB_SUBST
17083e5f723Smrgelse
17183e5f723Smrg  case \`(set -o) 2>/dev/null\` in #(
17283e5f723Smrg  *posix*) :
17383e5f723Smrg    set -o posix ;; #(
17483e5f723Smrg  *) :
17583e5f723Smrg     ;;
17683e5f723Smrgesac
17783e5f723Smrgfi
17883e5f723Smrg"
17983e5f723Smrg  as_required="as_fn_return () { (exit \$1); }
18083e5f723Smrgas_fn_success () { as_fn_return 0; }
18183e5f723Smrgas_fn_failure () { as_fn_return 1; }
18283e5f723Smrgas_fn_ret_success () { return 0; }
18383e5f723Smrgas_fn_ret_failure () { return 1; }
18483e5f723Smrg
18583e5f723Smrgexitcode=0
18683e5f723Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
18783e5f723Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
18883e5f723Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
18983e5f723Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
19083e5f723Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
19183e5f723Smrg
19283e5f723Smrgelse
19383e5f723Smrg  exitcode=1; echo positional parameters were not saved.
19483e5f723Smrgfi
195c82dfdfbSmrgtest x\$exitcode = x0 || exit 1
196c82dfdfbSmrgtest -x / || exit 1"
19783e5f723Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
19883e5f723Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
19983e5f723Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
20083e5f723Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
20183e5f723Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
20283e5f723Smrg  if (eval "$as_required") 2>/dev/null; then :
20383e5f723Smrg  as_have_required=yes
20483e5f723Smrgelse
20583e5f723Smrg  as_have_required=no
20683e5f723Smrgfi
20783e5f723Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
20883e5f723Smrg
20983e5f723Smrgelse
21083e5f723Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21183e5f723Smrgas_found=false
21283e5f723Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21383e5f723Smrgdo
21483e5f723Smrg  IFS=$as_save_IFS
21583e5f723Smrg  test -z "$as_dir" && as_dir=.
21683e5f723Smrg  as_found=:
21783e5f723Smrg  case $as_dir in #(
21883e5f723Smrg	 /*)
21983e5f723Smrg	   for as_base in sh bash ksh sh5; do
22083e5f723Smrg	     # Try only shells that exist, to save several forks.
22183e5f723Smrg	     as_shell=$as_dir/$as_base
22283e5f723Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
22383e5f723Smrg		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
22483e5f723Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
22583e5f723Smrg		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
22683e5f723Smrg  break 2
22783e5f723Smrgfi
22883e5f723Smrgfi
22983e5f723Smrg	   done;;
23083e5f723Smrg       esac
23183e5f723Smrg  as_found=false
23283e5f723Smrgdone
23383e5f723Smrg$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
23483e5f723Smrg	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
23583e5f723Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
23683e5f723Smrgfi; }
23783e5f723SmrgIFS=$as_save_IFS
23883e5f723Smrg
23983e5f723Smrg
24083e5f723Smrg      if test "x$CONFIG_SHELL" != x; then :
241c82dfdfbSmrg  export CONFIG_SHELL
242c82dfdfbSmrg             # We cannot yet assume a decent shell, so we have to provide a
243c82dfdfbSmrg# neutralization value for shells without unset; and this also
244c82dfdfbSmrg# works around shells that cannot unset nonexistent variables.
245c82dfdfbSmrg# Preserve -v and -x to the replacement shell.
246c82dfdfbSmrgBASH_ENV=/dev/null
247c82dfdfbSmrgENV=/dev/null
248c82dfdfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249c82dfdfbSmrgcase $- in # ((((
250c82dfdfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
251c82dfdfbSmrg  *v* ) as_opts=-v ;;
252c82dfdfbSmrg  *x* ) as_opts=-x ;;
253c82dfdfbSmrg  * ) as_opts= ;;
254c82dfdfbSmrgesac
255c82dfdfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256c82dfdfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
257c82dfdfbSmrg# out after a failed `exec'.
258c82dfdfbSmrg$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259c82dfdfbSmrgexit 255
26083e5f723Smrgfi
26183e5f723Smrg
26283e5f723Smrg    if test x$as_have_required = xno; then :
26383e5f723Smrg  $as_echo "$0: This script requires a shell more modern than all"
26483e5f723Smrg  $as_echo "$0: the shells that I found on your system."
26583e5f723Smrg  if test x${ZSH_VERSION+set} = xset ; then
26683e5f723Smrg    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
26783e5f723Smrg    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
26883e5f723Smrg  else
26983e5f723Smrg    $as_echo "$0: Please tell bug-autoconf@gnu.org and
27083e5f723Smrg$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
27183e5f723Smrg$0: about your system, including any error possibly output
27283e5f723Smrg$0: before this message. Then install a modern shell, or
27383e5f723Smrg$0: manually run the script under such a shell if you do
27483e5f723Smrg$0: have one."
27583e5f723Smrg  fi
27683e5f723Smrg  exit 1
27783e5f723Smrgfi
27883e5f723Smrgfi
27983e5f723Smrgfi
28083e5f723SmrgSHELL=${CONFIG_SHELL-/bin/sh}
28183e5f723Smrgexport SHELL
28283e5f723Smrg# Unset more variables known to interfere with behavior of common tools.
28383e5f723SmrgCLICOLOR_FORCE= GREP_OPTIONS=
28483e5f723Smrgunset CLICOLOR_FORCE GREP_OPTIONS
28583e5f723Smrg
28683e5f723Smrg## --------------------- ##
28783e5f723Smrg## M4sh Shell Functions. ##
28883e5f723Smrg## --------------------- ##
28983e5f723Smrg# as_fn_unset VAR
29083e5f723Smrg# ---------------
29183e5f723Smrg# Portably unset VAR.
29283e5f723Smrgas_fn_unset ()
29383e5f723Smrg{
29483e5f723Smrg  { eval $1=; unset $1;}
29583e5f723Smrg}
29683e5f723Smrgas_unset=as_fn_unset
29783e5f723Smrg
29883e5f723Smrg# as_fn_set_status STATUS
29983e5f723Smrg# -----------------------
30083e5f723Smrg# Set $? to STATUS, without forking.
30183e5f723Smrgas_fn_set_status ()
30283e5f723Smrg{
30383e5f723Smrg  return $1
30483e5f723Smrg} # as_fn_set_status
30583e5f723Smrg
30683e5f723Smrg# as_fn_exit STATUS
30783e5f723Smrg# -----------------
30883e5f723Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30983e5f723Smrgas_fn_exit ()
31083e5f723Smrg{
31183e5f723Smrg  set +e
31283e5f723Smrg  as_fn_set_status $1
31383e5f723Smrg  exit $1
31483e5f723Smrg} # as_fn_exit
31583e5f723Smrg
31683e5f723Smrg# as_fn_mkdir_p
31783e5f723Smrg# -------------
31883e5f723Smrg# Create "$as_dir" as a directory, including parents if necessary.
31983e5f723Smrgas_fn_mkdir_p ()
32083e5f723Smrg{
32183e5f723Smrg
32283e5f723Smrg  case $as_dir in #(
32383e5f723Smrg  -*) as_dir=./$as_dir;;
32483e5f723Smrg  esac
32583e5f723Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
32683e5f723Smrg    as_dirs=
32783e5f723Smrg    while :; do
32883e5f723Smrg      case $as_dir in #(
32983e5f723Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33083e5f723Smrg      *) as_qdir=$as_dir;;
33183e5f723Smrg      esac
33283e5f723Smrg      as_dirs="'$as_qdir' $as_dirs"
33383e5f723Smrg      as_dir=`$as_dirname -- "$as_dir" ||
33483e5f723Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33583e5f723Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
33683e5f723Smrg	 X"$as_dir" : 'X\(//\)$' \| \
33783e5f723Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33883e5f723Smrg$as_echo X"$as_dir" |
33983e5f723Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34083e5f723Smrg	    s//\1/
34183e5f723Smrg	    q
34283e5f723Smrg	  }
34383e5f723Smrg	  /^X\(\/\/\)[^/].*/{
34483e5f723Smrg	    s//\1/
34583e5f723Smrg	    q
34683e5f723Smrg	  }
34783e5f723Smrg	  /^X\(\/\/\)$/{
34883e5f723Smrg	    s//\1/
34983e5f723Smrg	    q
35083e5f723Smrg	  }
35183e5f723Smrg	  /^X\(\/\).*/{
35283e5f723Smrg	    s//\1/
35383e5f723Smrg	    q
35483e5f723Smrg	  }
35583e5f723Smrg	  s/.*/./; q'`
35683e5f723Smrg      test -d "$as_dir" && break
35783e5f723Smrg    done
35883e5f723Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
35983e5f723Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36083e5f723Smrg
36183e5f723Smrg
36283e5f723Smrg} # as_fn_mkdir_p
363c82dfdfbSmrg
364c82dfdfbSmrg# as_fn_executable_p FILE
365c82dfdfbSmrg# -----------------------
366c82dfdfbSmrg# Test if FILE is an executable regular file.
367c82dfdfbSmrgas_fn_executable_p ()
368c82dfdfbSmrg{
369c82dfdfbSmrg  test -f "$1" && test -x "$1"
370c82dfdfbSmrg} # as_fn_executable_p
37183e5f723Smrg# as_fn_append VAR VALUE
37283e5f723Smrg# ----------------------
37383e5f723Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
37483e5f723Smrg# advantage of any shell optimizations that allow amortized linear growth over
37583e5f723Smrg# repeated appends, instead of the typical quadratic growth present in naive
37683e5f723Smrg# implementations.
37783e5f723Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37883e5f723Smrg  eval 'as_fn_append ()
37983e5f723Smrg  {
38083e5f723Smrg    eval $1+=\$2
38183e5f723Smrg  }'
38283e5f723Smrgelse
38383e5f723Smrg  as_fn_append ()
38483e5f723Smrg  {
38583e5f723Smrg    eval $1=\$$1\$2
38683e5f723Smrg  }
38783e5f723Smrgfi # as_fn_append
38883e5f723Smrg
38983e5f723Smrg# as_fn_arith ARG...
39083e5f723Smrg# ------------------
39183e5f723Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
39283e5f723Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
39383e5f723Smrg# must be portable across $(()) and expr.
39483e5f723Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39583e5f723Smrg  eval 'as_fn_arith ()
39683e5f723Smrg  {
39783e5f723Smrg    as_val=$(( $* ))
39883e5f723Smrg  }'
39983e5f723Smrgelse
40083e5f723Smrg  as_fn_arith ()
40183e5f723Smrg  {
40283e5f723Smrg    as_val=`expr "$@" || test $? -eq 1`
40383e5f723Smrg  }
40483e5f723Smrgfi # as_fn_arith
40583e5f723Smrg
40683e5f723Smrg
40783e5f723Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
40883e5f723Smrg# ----------------------------------------
40983e5f723Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41083e5f723Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41183e5f723Smrg# script with STATUS, using 1 if that was 0.
41283e5f723Smrgas_fn_error ()
41383e5f723Smrg{
41483e5f723Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
41583e5f723Smrg  if test "$4"; then
41683e5f723Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41783e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41883e5f723Smrg  fi
41983e5f723Smrg  $as_echo "$as_me: error: $2" >&2
42083e5f723Smrg  as_fn_exit $as_status
42183e5f723Smrg} # as_fn_error
42283e5f723Smrg
423f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
424f46a6179Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425f46a6179Smrg  as_expr=expr
426f46a6179Smrgelse
427f46a6179Smrg  as_expr=false
428f46a6179Smrgfi
429f46a6179Smrg
430f46a6179Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431f46a6179Smrg  as_basename=basename
432f46a6179Smrgelse
433f46a6179Smrg  as_basename=false
434f46a6179Smrgfi
435f46a6179Smrg
43683e5f723Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43783e5f723Smrg  as_dirname=dirname
43883e5f723Smrgelse
43983e5f723Smrg  as_dirname=false
44083e5f723Smrgfi
441f46a6179Smrg
442f46a6179Smrgas_me=`$as_basename -- "$0" ||
443f46a6179Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444f46a6179Smrg	 X"$0" : 'X\(//\)$' \| \
445f46a6179Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44634345a63Smrg$as_echo X/"$0" |
447f46a6179Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
448f46a6179Smrg	    s//\1/
449f46a6179Smrg	    q
450f46a6179Smrg	  }
451f46a6179Smrg	  /^X\/\(\/\/\)$/{
452f46a6179Smrg	    s//\1/
453f46a6179Smrg	    q
454f46a6179Smrg	  }
455f46a6179Smrg	  /^X\/\(\/\).*/{
456f46a6179Smrg	    s//\1/
457f46a6179Smrg	    q
458f46a6179Smrg	  }
459f46a6179Smrg	  s/.*/./; q'`
460f46a6179Smrg
46183e5f723Smrg# Avoid depending upon Character Ranges.
46283e5f723Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
46383e5f723Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46483e5f723Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
46583e5f723Smrgas_cr_digits='0123456789'
46683e5f723Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
467f46a6179Smrg
468f46a6179Smrg
46983e5f723Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
47083e5f723Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
47183e5f723Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
47283e5f723Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
47383e5f723Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
47483e5f723Smrg  sed -n '
47583e5f723Smrg    p
47683e5f723Smrg    /[$]LINENO/=
47783e5f723Smrg  ' <$as_myself |
47883e5f723Smrg    sed '
47983e5f723Smrg      s/[$]LINENO.*/&-/
48083e5f723Smrg      t lineno
48183e5f723Smrg      b
48283e5f723Smrg      :lineno
48383e5f723Smrg      N
48483e5f723Smrg      :loop
48583e5f723Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
48683e5f723Smrg      t loop
48783e5f723Smrg      s/-\n.*//
48883e5f723Smrg    ' >$as_me.lineno &&
48983e5f723Smrg  chmod +x "$as_me.lineno" ||
49083e5f723Smrg    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491f46a6179Smrg
492c82dfdfbSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493c82dfdfbSmrg  # already done that, so ensure we don't try to do so again and fall
494c82dfdfbSmrg  # in an infinite loop.  This has already happened in practice.
495c82dfdfbSmrg  _as_can_reexec=no; export _as_can_reexec
49683e5f723Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
49783e5f723Smrg  # (the dirname of $[0] is not the place where we might find the
49883e5f723Smrg  # original and so on.  Autoconf is especially sensitive to this).
49983e5f723Smrg  . "./$as_me.lineno"
50083e5f723Smrg  # Exit status is that of the last command.
50183e5f723Smrg  exit
502f46a6179Smrg}
503f46a6179Smrg
50483e5f723SmrgECHO_C= ECHO_N= ECHO_T=
50583e5f723Smrgcase `echo -n x` in #(((((
50683e5f723Smrg-n*)
50783e5f723Smrg  case `echo 'xy\c'` in
50883e5f723Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
50983e5f723Smrg  xy)  ECHO_C='\c';;
51083e5f723Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
51183e5f723Smrg       ECHO_T='	';;
51283e5f723Smrg  esac;;
51383e5f723Smrg*)
51483e5f723Smrg  ECHO_N='-n';;
51583e5f723Smrgesac
516f46a6179Smrg
51783e5f723Smrgrm -f conf$$ conf$$.exe conf$$.file
51883e5f723Smrgif test -d conf$$.dir; then
51983e5f723Smrg  rm -f conf$$.dir/conf$$.file
52083e5f723Smrgelse
52183e5f723Smrg  rm -f conf$$.dir
52283e5f723Smrg  mkdir conf$$.dir 2>/dev/null
523f46a6179Smrgfi
52483e5f723Smrgif (echo >conf$$.file) 2>/dev/null; then
52583e5f723Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
52683e5f723Smrg    as_ln_s='ln -s'
52783e5f723Smrg    # ... but there are two gotchas:
52883e5f723Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
52983e5f723Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530c82dfdfbSmrg    # In both cases, we have to default to `cp -pR'.
53183e5f723Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532c82dfdfbSmrg      as_ln_s='cp -pR'
53383e5f723Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
53483e5f723Smrg    as_ln_s=ln
53583e5f723Smrg  else
536c82dfdfbSmrg    as_ln_s='cp -pR'
53783e5f723Smrg  fi
538f46a6179Smrgelse
539c82dfdfbSmrg  as_ln_s='cp -pR'
540f46a6179Smrgfi
54183e5f723Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54283e5f723Smrgrmdir conf$$.dir 2>/dev/null
543f46a6179Smrg
54483e5f723Smrgif mkdir -p . 2>/dev/null; then
54583e5f723Smrg  as_mkdir_p='mkdir -p "$as_dir"'
54683e5f723Smrgelse
54783e5f723Smrg  test -d ./-p && rmdir ./-p
54883e5f723Smrg  as_mkdir_p=false
549f46a6179Smrgfi
550f46a6179Smrg
551c82dfdfbSmrgas_test_x='test -x'
552c82dfdfbSmrgas_executable_p=as_fn_executable_p
553f46a6179Smrg
55483e5f723Smrg# Sed expression to map a string onto a valid CPP name.
55583e5f723Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556f46a6179Smrg
55783e5f723Smrg# Sed expression to map a string onto a valid variable name.
55883e5f723Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559f46a6179Smrg
560f46a6179Smrg
56183e5f723Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
56283e5f723Smrgexec 6>&1
563f46a6179Smrg
564f46a6179Smrg# Name of the host.
56583e5f723Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566f46a6179Smrg# so uname gets run too.
567f46a6179Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568f46a6179Smrg
569f46a6179Smrg#
570f46a6179Smrg# Initializations.
571f46a6179Smrg#
572f46a6179Smrgac_default_prefix=/usr/local
573f46a6179Smrgac_clean_files=
574f46a6179Smrgac_config_libobj_dir=.
575f46a6179SmrgLIBOBJS=
576f46a6179Smrgcross_compiling=no
577f46a6179Smrgsubdirs=
578f46a6179SmrgMFLAGS=
579f46a6179SmrgMAKEFLAGS=
580f46a6179Smrg
581f46a6179Smrg# Identity of this package.
582f46a6179SmrgPACKAGE_NAME='xkbcomp'
583f46a6179SmrgPACKAGE_TARNAME='xkbcomp'
584c82dfdfbSmrgPACKAGE_VERSION='1.3.0'
585c82dfdfbSmrgPACKAGE_STRING='xkbcomp 1.3.0'
586f46a6179SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
58783e5f723SmrgPACKAGE_URL=''
588f46a6179Smrg
589c82dfdfbSmrgac_unique_file="Makefile.am"
59034345a63Smrg# Factoring default headers for most tests.
59134345a63Smrgac_includes_default="\
59234345a63Smrg#include <stdio.h>
59334345a63Smrg#ifdef HAVE_SYS_TYPES_H
59434345a63Smrg# include <sys/types.h>
59534345a63Smrg#endif
59634345a63Smrg#ifdef HAVE_SYS_STAT_H
59734345a63Smrg# include <sys/stat.h>
59834345a63Smrg#endif
59934345a63Smrg#ifdef STDC_HEADERS
60034345a63Smrg# include <stdlib.h>
60134345a63Smrg# include <stddef.h>
60234345a63Smrg#else
60334345a63Smrg# ifdef HAVE_STDLIB_H
60434345a63Smrg#  include <stdlib.h>
60534345a63Smrg# endif
60634345a63Smrg#endif
60734345a63Smrg#ifdef HAVE_STRING_H
60834345a63Smrg# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
60934345a63Smrg#  include <memory.h>
61034345a63Smrg# endif
61134345a63Smrg# include <string.h>
61234345a63Smrg#endif
61334345a63Smrg#ifdef HAVE_STRINGS_H
61434345a63Smrg# include <strings.h>
61534345a63Smrg#endif
61634345a63Smrg#ifdef HAVE_INTTYPES_H
61734345a63Smrg# include <inttypes.h>
61834345a63Smrg#endif
61934345a63Smrg#ifdef HAVE_STDINT_H
62034345a63Smrg# include <stdint.h>
62134345a63Smrg#endif
62234345a63Smrg#ifdef HAVE_UNISTD_H
62334345a63Smrg# include <unistd.h>
62434345a63Smrg#endif"
62534345a63Smrg
62634345a63Smrgac_subst_vars='am__EXEEXT_FALSE
62734345a63Smrgam__EXEEXT_TRUE
62834345a63SmrgLTLIBOBJS
629f46a6179SmrgLIBOBJS
63083e5f723SmrgXKBCONFIGROOT
6311d8c7986SmrgREQUIRED_MODULES
63283e5f723SmrgXKBCOMP_LIBS
63383e5f723SmrgXKBCOMP_CFLAGS
63483e5f723SmrgYACC_INST
63583e5f723SmrgYFLAGS
63683e5f723SmrgYACC
63783e5f723SmrgMAN_SUBSTS
63883e5f723SmrgXORG_MAN_PAGE
63934345a63SmrgADMIN_MAN_DIR
64034345a63SmrgDRIVER_MAN_DIR
64134345a63SmrgMISC_MAN_DIR
64234345a63SmrgFILE_MAN_DIR
64334345a63SmrgLIB_MAN_DIR
64434345a63SmrgAPP_MAN_DIR
64534345a63SmrgADMIN_MAN_SUFFIX
64634345a63SmrgDRIVER_MAN_SUFFIX
64734345a63SmrgMISC_MAN_SUFFIX
64834345a63SmrgFILE_MAN_SUFFIX
64934345a63SmrgLIB_MAN_SUFFIX
65034345a63SmrgAPP_MAN_SUFFIX
65183e5f723SmrgSED
65234345a63Smrghost_os
65334345a63Smrghost_vendor
65434345a63Smrghost_cpu
65534345a63Smrghost
65634345a63Smrgbuild_os
65734345a63Smrgbuild_vendor
65834345a63Smrgbuild_cpu
65934345a63Smrgbuild
66083e5f723SmrgINSTALL_CMD
661c82dfdfbSmrgPKG_CONFIG_LIBDIR
662c82dfdfbSmrgPKG_CONFIG_PATH
66334345a63SmrgPKG_CONFIG
66483e5f723SmrgCHANGELOG_CMD
665690143ccSmrgSTRICT_CFLAGS
66634345a63SmrgCWARNFLAGS
6671d8c7986SmrgBASE_CFLAGS
66834345a63SmrgEGREP
66934345a63SmrgGREP
67034345a63SmrgCPP
67134345a63Smrgam__fastdepCC_FALSE
67234345a63Smrgam__fastdepCC_TRUE
67334345a63SmrgCCDEPMODE
674c82dfdfbSmrgam__nodep
67534345a63SmrgAMDEPBACKSLASH
67634345a63SmrgAMDEP_FALSE
67734345a63SmrgAMDEP_TRUE
67834345a63Smrgam__quote
67934345a63Smrgam__include
68034345a63SmrgDEPDIR
68134345a63SmrgOBJEXT
68234345a63SmrgEXEEXT
68334345a63Smrgac_ct_CC
68434345a63SmrgCPPFLAGS
68534345a63SmrgLDFLAGS
68634345a63SmrgCFLAGS
68734345a63SmrgCC
688c82dfdfbSmrgAM_BACKSLASH
689c82dfdfbSmrgAM_DEFAULT_VERBOSITY
690c82dfdfbSmrgAM_DEFAULT_V
691c82dfdfbSmrgAM_V
69234345a63Smrgam__untar
69334345a63Smrgam__tar
69434345a63SmrgAMTAR
69534345a63Smrgam__leading_dot
69634345a63SmrgSET_MAKE
69734345a63SmrgAWK
69834345a63Smrgmkdir_p
69934345a63SmrgMKDIR_P
70034345a63SmrgINSTALL_STRIP_PROGRAM
70134345a63SmrgSTRIP
70234345a63Smrginstall_sh
70334345a63SmrgMAKEINFO
70434345a63SmrgAUTOHEADER
70534345a63SmrgAUTOMAKE
70634345a63SmrgAUTOCONF
70734345a63SmrgACLOCAL
70834345a63SmrgVERSION
70934345a63SmrgPACKAGE
71034345a63SmrgCYGPATH_W
71134345a63Smrgam__isrc
71234345a63SmrgINSTALL_DATA
71334345a63SmrgINSTALL_SCRIPT
71434345a63SmrgINSTALL_PROGRAM
71534345a63Smrgtarget_alias
71634345a63Smrghost_alias
71734345a63Smrgbuild_alias
71834345a63SmrgLIBS
71934345a63SmrgECHO_T
72034345a63SmrgECHO_N
72134345a63SmrgECHO_C
72234345a63SmrgDEFS
72334345a63Smrgmandir
72434345a63Smrglocaledir
72534345a63Smrglibdir
72634345a63Smrgpsdir
72734345a63Smrgpdfdir
72834345a63Smrgdvidir
72934345a63Smrghtmldir
73034345a63Smrginfodir
73134345a63Smrgdocdir
73234345a63Smrgoldincludedir
73334345a63Smrgincludedir
73434345a63Smrglocalstatedir
73534345a63Smrgsharedstatedir
73634345a63Smrgsysconfdir
73734345a63Smrgdatadir
73834345a63Smrgdatarootdir
73934345a63Smrglibexecdir
74034345a63Smrgsbindir
74134345a63Smrgbindir
74234345a63Smrgprogram_transform_name
74334345a63Smrgprefix
74434345a63Smrgexec_prefix
74583e5f723SmrgPACKAGE_URL
74634345a63SmrgPACKAGE_BUGREPORT
74734345a63SmrgPACKAGE_STRING
74834345a63SmrgPACKAGE_VERSION
74934345a63SmrgPACKAGE_TARNAME
75034345a63SmrgPACKAGE_NAME
75134345a63SmrgPATH_SEPARATOR
75234345a63SmrgSHELL'
753f46a6179Smrgac_subst_files=''
75434345a63Smrgac_user_opts='
75534345a63Smrgenable_option_checking
756c82dfdfbSmrgenable_silent_rules
75734345a63Smrgenable_dependency_tracking
7581d8c7986Smrgenable_selective_werror
75983e5f723Smrgenable_strict_compilation
76034345a63Smrgwith_xkb_config_root
76134345a63Smrg'
762f46a6179Smrg      ac_precious_vars='build_alias
763f46a6179Smrghost_alias
764f46a6179Smrgtarget_alias
765f46a6179SmrgCC
766f46a6179SmrgCFLAGS
767f46a6179SmrgLDFLAGS
768f46a6179SmrgLIBS
769f46a6179SmrgCPPFLAGS
77034345a63SmrgCPP
771f46a6179SmrgPKG_CONFIG
772c82dfdfbSmrgPKG_CONFIG_PATH
773c82dfdfbSmrgPKG_CONFIG_LIBDIR
77483e5f723SmrgYACC
77583e5f723SmrgYFLAGS
776f46a6179SmrgXKBCOMP_CFLAGS
777f46a6179SmrgXKBCOMP_LIBS'
778f46a6179Smrg
779f46a6179Smrg
780f46a6179Smrg# Initialize some variables set by options.
781f46a6179Smrgac_init_help=
782f46a6179Smrgac_init_version=false
78334345a63Smrgac_unrecognized_opts=
78434345a63Smrgac_unrecognized_sep=
785f46a6179Smrg# The variables have the same names as the options, with
786f46a6179Smrg# dashes changed to underlines.
787f46a6179Smrgcache_file=/dev/null
788f46a6179Smrgexec_prefix=NONE
789f46a6179Smrgno_create=
790f46a6179Smrgno_recursion=
791f46a6179Smrgprefix=NONE
792f46a6179Smrgprogram_prefix=NONE
793f46a6179Smrgprogram_suffix=NONE
794f46a6179Smrgprogram_transform_name=s,x,x,
795f46a6179Smrgsilent=
796f46a6179Smrgsite=
797f46a6179Smrgsrcdir=
798f46a6179Smrgverbose=
799f46a6179Smrgx_includes=NONE
800f46a6179Smrgx_libraries=NONE
801f46a6179Smrg
802f46a6179Smrg# Installation directory options.
803f46a6179Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
804f46a6179Smrg# and all the variables that are supposed to be based on exec_prefix
805f46a6179Smrg# by default will actually change.
806f46a6179Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
807f46a6179Smrg# (The list follows the same order as the GNU Coding Standards.)
808f46a6179Smrgbindir='${exec_prefix}/bin'
809f46a6179Smrgsbindir='${exec_prefix}/sbin'
810f46a6179Smrglibexecdir='${exec_prefix}/libexec'
811f46a6179Smrgdatarootdir='${prefix}/share'
812f46a6179Smrgdatadir='${datarootdir}'
813f46a6179Smrgsysconfdir='${prefix}/etc'
814f46a6179Smrgsharedstatedir='${prefix}/com'
815f46a6179Smrglocalstatedir='${prefix}/var'
816f46a6179Smrgincludedir='${prefix}/include'
817f46a6179Smrgoldincludedir='/usr/include'
818f46a6179Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819f46a6179Smrginfodir='${datarootdir}/info'
820f46a6179Smrghtmldir='${docdir}'
821f46a6179Smrgdvidir='${docdir}'
822f46a6179Smrgpdfdir='${docdir}'
823f46a6179Smrgpsdir='${docdir}'
824f46a6179Smrglibdir='${exec_prefix}/lib'
825f46a6179Smrglocaledir='${datarootdir}/locale'
826f46a6179Smrgmandir='${datarootdir}/man'
827f46a6179Smrg
828f46a6179Smrgac_prev=
829f46a6179Smrgac_dashdash=
830f46a6179Smrgfor ac_option
831f46a6179Smrgdo
832f46a6179Smrg  # If the previous option needs an argument, assign it.
833f46a6179Smrg  if test -n "$ac_prev"; then
834f46a6179Smrg    eval $ac_prev=\$ac_option
835f46a6179Smrg    ac_prev=
836f46a6179Smrg    continue
837f46a6179Smrg  fi
838f46a6179Smrg
839f46a6179Smrg  case $ac_option in
840690143ccSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841690143ccSmrg  *=)   ac_optarg= ;;
842690143ccSmrg  *)    ac_optarg=yes ;;
843f46a6179Smrg  esac
844f46a6179Smrg
845f46a6179Smrg  # Accept the important Cygnus configure options, so we can diagnose typos.
846f46a6179Smrg
847f46a6179Smrg  case $ac_dashdash$ac_option in
848f46a6179Smrg  --)
849f46a6179Smrg    ac_dashdash=yes ;;
850f46a6179Smrg
851f46a6179Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
852f46a6179Smrg    ac_prev=bindir ;;
853f46a6179Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854f46a6179Smrg    bindir=$ac_optarg ;;
855f46a6179Smrg
856f46a6179Smrg  -build | --build | --buil | --bui | --bu)
857f46a6179Smrg    ac_prev=build_alias ;;
858f46a6179Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859f46a6179Smrg    build_alias=$ac_optarg ;;
860f46a6179Smrg
861f46a6179Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
862f46a6179Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863f46a6179Smrg    ac_prev=cache_file ;;
864f46a6179Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865f46a6179Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866f46a6179Smrg    cache_file=$ac_optarg ;;
867f46a6179Smrg
868f46a6179Smrg  --config-cache | -C)
869f46a6179Smrg    cache_file=config.cache ;;
870f46a6179Smrg
871f46a6179Smrg  -datadir | --datadir | --datadi | --datad)
872f46a6179Smrg    ac_prev=datadir ;;
873f46a6179Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
874f46a6179Smrg    datadir=$ac_optarg ;;
875f46a6179Smrg
876f46a6179Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877f46a6179Smrg  | --dataroo | --dataro | --datar)
878f46a6179Smrg    ac_prev=datarootdir ;;
879f46a6179Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880f46a6179Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881f46a6179Smrg    datarootdir=$ac_optarg ;;
882f46a6179Smrg
883f46a6179Smrg  -disable-* | --disable-*)
88434345a63Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885f46a6179Smrg    # Reject names that are not valid shell variable names.
88634345a63Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
88783e5f723Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
88834345a63Smrg    ac_useropt_orig=$ac_useropt
88934345a63Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
89034345a63Smrg    case $ac_user_opts in
89134345a63Smrg      *"
89234345a63Smrg"enable_$ac_useropt"
89334345a63Smrg"*) ;;
89434345a63Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
89534345a63Smrg	 ac_unrecognized_sep=', ';;
89634345a63Smrg    esac
89734345a63Smrg    eval enable_$ac_useropt=no ;;
898f46a6179Smrg
899f46a6179Smrg  -docdir | --docdir | --docdi | --doc | --do)
900f46a6179Smrg    ac_prev=docdir ;;
901f46a6179Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902f46a6179Smrg    docdir=$ac_optarg ;;
903f46a6179Smrg
904f46a6179Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905f46a6179Smrg    ac_prev=dvidir ;;
906f46a6179Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907f46a6179Smrg    dvidir=$ac_optarg ;;
908f46a6179Smrg
909f46a6179Smrg  -enable-* | --enable-*)
91034345a63Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911f46a6179Smrg    # Reject names that are not valid shell variable names.
91234345a63Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
91383e5f723Smrg      as_fn_error $? "invalid feature name: $ac_useropt"
91434345a63Smrg    ac_useropt_orig=$ac_useropt
91534345a63Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
91634345a63Smrg    case $ac_user_opts in
91734345a63Smrg      *"
91834345a63Smrg"enable_$ac_useropt"
91934345a63Smrg"*) ;;
92034345a63Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
92134345a63Smrg	 ac_unrecognized_sep=', ';;
92234345a63Smrg    esac
92334345a63Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
924f46a6179Smrg
925f46a6179Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926f46a6179Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927f46a6179Smrg  | --exec | --exe | --ex)
928f46a6179Smrg    ac_prev=exec_prefix ;;
929f46a6179Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930f46a6179Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931f46a6179Smrg  | --exec=* | --exe=* | --ex=*)
932f46a6179Smrg    exec_prefix=$ac_optarg ;;
933f46a6179Smrg
934f46a6179Smrg  -gas | --gas | --ga | --g)
935f46a6179Smrg    # Obsolete; use --with-gas.
936f46a6179Smrg    with_gas=yes ;;
937f46a6179Smrg
938f46a6179Smrg  -help | --help | --hel | --he | -h)
939f46a6179Smrg    ac_init_help=long ;;
940f46a6179Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941f46a6179Smrg    ac_init_help=recursive ;;
942f46a6179Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943f46a6179Smrg    ac_init_help=short ;;
944f46a6179Smrg
945f46a6179Smrg  -host | --host | --hos | --ho)
946f46a6179Smrg    ac_prev=host_alias ;;
947f46a6179Smrg  -host=* | --host=* | --hos=* | --ho=*)
948f46a6179Smrg    host_alias=$ac_optarg ;;
949f46a6179Smrg
950f46a6179Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951f46a6179Smrg    ac_prev=htmldir ;;
952f46a6179Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953f46a6179Smrg  | --ht=*)
954f46a6179Smrg    htmldir=$ac_optarg ;;
955f46a6179Smrg
956f46a6179Smrg  -includedir | --includedir | --includedi | --included | --include \
957f46a6179Smrg  | --includ | --inclu | --incl | --inc)
958f46a6179Smrg    ac_prev=includedir ;;
959f46a6179Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960f46a6179Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
961f46a6179Smrg    includedir=$ac_optarg ;;
962f46a6179Smrg
963f46a6179Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
964f46a6179Smrg    ac_prev=infodir ;;
965f46a6179Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966f46a6179Smrg    infodir=$ac_optarg ;;
967f46a6179Smrg
968f46a6179Smrg  -libdir | --libdir | --libdi | --libd)
969f46a6179Smrg    ac_prev=libdir ;;
970f46a6179Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
971f46a6179Smrg    libdir=$ac_optarg ;;
972f46a6179Smrg
973f46a6179Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974f46a6179Smrg  | --libexe | --libex | --libe)
975f46a6179Smrg    ac_prev=libexecdir ;;
976f46a6179Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977f46a6179Smrg  | --libexe=* | --libex=* | --libe=*)
978f46a6179Smrg    libexecdir=$ac_optarg ;;
979f46a6179Smrg
980f46a6179Smrg  -localedir | --localedir | --localedi | --localed | --locale)
981f46a6179Smrg    ac_prev=localedir ;;
982f46a6179Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983f46a6179Smrg    localedir=$ac_optarg ;;
984f46a6179Smrg
985f46a6179Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
986f46a6179Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
987f46a6179Smrg    ac_prev=localstatedir ;;
988f46a6179Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989f46a6179Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990f46a6179Smrg    localstatedir=$ac_optarg ;;
991f46a6179Smrg
992f46a6179Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993f46a6179Smrg    ac_prev=mandir ;;
994f46a6179Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995f46a6179Smrg    mandir=$ac_optarg ;;
996f46a6179Smrg
997f46a6179Smrg  -nfp | --nfp | --nf)
998f46a6179Smrg    # Obsolete; use --without-fp.
999f46a6179Smrg    with_fp=no ;;
1000f46a6179Smrg
1001f46a6179Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002f46a6179Smrg  | --no-cr | --no-c | -n)
1003f46a6179Smrg    no_create=yes ;;
1004f46a6179Smrg
1005f46a6179Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006f46a6179Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007f46a6179Smrg    no_recursion=yes ;;
1008f46a6179Smrg
1009f46a6179Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010f46a6179Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011f46a6179Smrg  | --oldin | --oldi | --old | --ol | --o)
1012f46a6179Smrg    ac_prev=oldincludedir ;;
1013f46a6179Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014f46a6179Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015f46a6179Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016f46a6179Smrg    oldincludedir=$ac_optarg ;;
1017f46a6179Smrg
1018f46a6179Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019f46a6179Smrg    ac_prev=prefix ;;
1020f46a6179Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021f46a6179Smrg    prefix=$ac_optarg ;;
1022f46a6179Smrg
1023f46a6179Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024f46a6179Smrg  | --program-pre | --program-pr | --program-p)
1025f46a6179Smrg    ac_prev=program_prefix ;;
1026f46a6179Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027f46a6179Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028f46a6179Smrg    program_prefix=$ac_optarg ;;
1029f46a6179Smrg
1030f46a6179Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031f46a6179Smrg  | --program-suf | --program-su | --program-s)
1032f46a6179Smrg    ac_prev=program_suffix ;;
1033f46a6179Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034f46a6179Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035f46a6179Smrg    program_suffix=$ac_optarg ;;
1036f46a6179Smrg
1037f46a6179Smrg  -program-transform-name | --program-transform-name \
1038f46a6179Smrg  | --program-transform-nam | --program-transform-na \
1039f46a6179Smrg  | --program-transform-n | --program-transform- \
1040f46a6179Smrg  | --program-transform | --program-transfor \
1041f46a6179Smrg  | --program-transfo | --program-transf \
1042f46a6179Smrg  | --program-trans | --program-tran \
1043f46a6179Smrg  | --progr-tra | --program-tr | --program-t)
1044f46a6179Smrg    ac_prev=program_transform_name ;;
1045f46a6179Smrg  -program-transform-name=* | --program-transform-name=* \
1046f46a6179Smrg  | --program-transform-nam=* | --program-transform-na=* \
1047f46a6179Smrg  | --program-transform-n=* | --program-transform-=* \
1048f46a6179Smrg  | --program-transform=* | --program-transfor=* \
1049f46a6179Smrg  | --program-transfo=* | --program-transf=* \
1050f46a6179Smrg  | --program-trans=* | --program-tran=* \
1051f46a6179Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
1052f46a6179Smrg    program_transform_name=$ac_optarg ;;
1053f46a6179Smrg
1054f46a6179Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055f46a6179Smrg    ac_prev=pdfdir ;;
1056f46a6179Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057f46a6179Smrg    pdfdir=$ac_optarg ;;
1058f46a6179Smrg
1059f46a6179Smrg  -psdir | --psdir | --psdi | --psd | --ps)
1060f46a6179Smrg    ac_prev=psdir ;;
1061f46a6179Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062f46a6179Smrg    psdir=$ac_optarg ;;
1063f46a6179Smrg
1064f46a6179Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065f46a6179Smrg  | -silent | --silent | --silen | --sile | --sil)
1066f46a6179Smrg    silent=yes ;;
1067f46a6179Smrg
1068f46a6179Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069f46a6179Smrg    ac_prev=sbindir ;;
1070f46a6179Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071f46a6179Smrg  | --sbi=* | --sb=*)
1072f46a6179Smrg    sbindir=$ac_optarg ;;
1073f46a6179Smrg
1074f46a6179Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075f46a6179Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076f46a6179Smrg  | --sharedst | --shareds | --shared | --share | --shar \
1077f46a6179Smrg  | --sha | --sh)
1078f46a6179Smrg    ac_prev=sharedstatedir ;;
1079f46a6179Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080f46a6179Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081f46a6179Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082f46a6179Smrg  | --sha=* | --sh=*)
1083f46a6179Smrg    sharedstatedir=$ac_optarg ;;
1084f46a6179Smrg
1085f46a6179Smrg  -site | --site | --sit)
1086f46a6179Smrg    ac_prev=site ;;
1087f46a6179Smrg  -site=* | --site=* | --sit=*)
1088f46a6179Smrg    site=$ac_optarg ;;
1089f46a6179Smrg
1090f46a6179Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091f46a6179Smrg    ac_prev=srcdir ;;
1092f46a6179Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093f46a6179Smrg    srcdir=$ac_optarg ;;
1094f46a6179Smrg
1095f46a6179Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096f46a6179Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
1097f46a6179Smrg    ac_prev=sysconfdir ;;
1098f46a6179Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099f46a6179Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100f46a6179Smrg    sysconfdir=$ac_optarg ;;
1101f46a6179Smrg
1102f46a6179Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
1103f46a6179Smrg    ac_prev=target_alias ;;
1104f46a6179Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105f46a6179Smrg    target_alias=$ac_optarg ;;
1106f46a6179Smrg
1107f46a6179Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108f46a6179Smrg    verbose=yes ;;
1109f46a6179Smrg
1110f46a6179Smrg  -version | --version | --versio | --versi | --vers | -V)
1111f46a6179Smrg    ac_init_version=: ;;
1112f46a6179Smrg
1113f46a6179Smrg  -with-* | --with-*)
111434345a63Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115f46a6179Smrg    # Reject names that are not valid shell variable names.
111634345a63Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
111783e5f723Smrg      as_fn_error $? "invalid package name: $ac_useropt"
111834345a63Smrg    ac_useropt_orig=$ac_useropt
111934345a63Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
112034345a63Smrg    case $ac_user_opts in
112134345a63Smrg      *"
112234345a63Smrg"with_$ac_useropt"
112334345a63Smrg"*) ;;
112434345a63Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
112534345a63Smrg	 ac_unrecognized_sep=', ';;
112634345a63Smrg    esac
112734345a63Smrg    eval with_$ac_useropt=\$ac_optarg ;;
1128f46a6179Smrg
1129f46a6179Smrg  -without-* | --without-*)
113034345a63Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131f46a6179Smrg    # Reject names that are not valid shell variable names.
113234345a63Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
113383e5f723Smrg      as_fn_error $? "invalid package name: $ac_useropt"
113434345a63Smrg    ac_useropt_orig=$ac_useropt
113534345a63Smrg    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
113634345a63Smrg    case $ac_user_opts in
113734345a63Smrg      *"
113834345a63Smrg"with_$ac_useropt"
113934345a63Smrg"*) ;;
114034345a63Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
114134345a63Smrg	 ac_unrecognized_sep=', ';;
114234345a63Smrg    esac
114334345a63Smrg    eval with_$ac_useropt=no ;;
1144f46a6179Smrg
1145f46a6179Smrg  --x)
1146f46a6179Smrg    # Obsolete; use --with-x.
1147f46a6179Smrg    with_x=yes ;;
1148f46a6179Smrg
1149f46a6179Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150f46a6179Smrg  | --x-incl | --x-inc | --x-in | --x-i)
1151f46a6179Smrg    ac_prev=x_includes ;;
1152f46a6179Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153f46a6179Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154f46a6179Smrg    x_includes=$ac_optarg ;;
1155f46a6179Smrg
1156f46a6179Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157f46a6179Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158f46a6179Smrg    ac_prev=x_libraries ;;
1159f46a6179Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160f46a6179Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161f46a6179Smrg    x_libraries=$ac_optarg ;;
1162f46a6179Smrg
116383e5f723Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
116483e5f723SmrgTry \`$0 --help' for more information"
1165f46a6179Smrg    ;;
1166f46a6179Smrg
1167f46a6179Smrg  *=*)
1168f46a6179Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169f46a6179Smrg    # Reject names that are not valid shell variable names.
117083e5f723Smrg    case $ac_envvar in #(
117183e5f723Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
117283e5f723Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
117383e5f723Smrg    esac
1174f46a6179Smrg    eval $ac_envvar=\$ac_optarg
1175f46a6179Smrg    export $ac_envvar ;;
1176f46a6179Smrg
1177f46a6179Smrg  *)
1178f46a6179Smrg    # FIXME: should be removed in autoconf 3.0.
117934345a63Smrg    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180f46a6179Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
118134345a63Smrg      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182690143ccSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183f46a6179Smrg    ;;
1184f46a6179Smrg
1185f46a6179Smrg  esac
1186f46a6179Smrgdone
1187f46a6179Smrg
1188f46a6179Smrgif test -n "$ac_prev"; then
1189f46a6179Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
119083e5f723Smrg  as_fn_error $? "missing argument to $ac_option"
1191f46a6179Smrgfi
1192f46a6179Smrg
119334345a63Smrgif test -n "$ac_unrecognized_opts"; then
119434345a63Smrg  case $enable_option_checking in
119534345a63Smrg    no) ;;
119683e5f723Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
119734345a63Smrg    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
119834345a63Smrg  esac
119934345a63Smrgfi
120034345a63Smrg
120134345a63Smrg# Check all directory arguments for consistency.
1202f46a6179Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203f46a6179Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1204f46a6179Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205f46a6179Smrg		libdir localedir mandir
1206f46a6179Smrgdo
1207f46a6179Smrg  eval ac_val=\$$ac_var
120834345a63Smrg  # Remove trailing slashes.
120934345a63Smrg  case $ac_val in
121034345a63Smrg    */ )
121134345a63Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
121234345a63Smrg      eval $ac_var=\$ac_val;;
121334345a63Smrg  esac
121434345a63Smrg  # Be sure to have absolute directory names.
1215f46a6179Smrg  case $ac_val in
1216f46a6179Smrg    [\\/$]* | ?:[\\/]* )  continue;;
1217f46a6179Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218f46a6179Smrg  esac
121983e5f723Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220f46a6179Smrgdone
1221f46a6179Smrg
1222f46a6179Smrg# There might be people who depend on the old broken behavior: `$host'
1223f46a6179Smrg# used to hold the argument of --host etc.
1224f46a6179Smrg# FIXME: To remove some day.
1225f46a6179Smrgbuild=$build_alias
1226f46a6179Smrghost=$host_alias
1227f46a6179Smrgtarget=$target_alias
1228f46a6179Smrg
1229f46a6179Smrg# FIXME: To remove some day.
1230f46a6179Smrgif test "x$host_alias" != x; then
1231f46a6179Smrg  if test "x$build_alias" = x; then
1232f46a6179Smrg    cross_compiling=maybe
1233f46a6179Smrg  elif test "x$build_alias" != "x$host_alias"; then
1234f46a6179Smrg    cross_compiling=yes
1235f46a6179Smrg  fi
1236f46a6179Smrgfi
1237f46a6179Smrg
1238f46a6179Smrgac_tool_prefix=
1239f46a6179Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
1240f46a6179Smrg
1241f46a6179Smrgtest "$silent" = yes && exec 6>/dev/null
1242f46a6179Smrg
1243f46a6179Smrg
1244f46a6179Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1245f46a6179Smrgac_ls_di=`ls -di .` &&
1246f46a6179Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
124783e5f723Smrg  as_fn_error $? "working directory cannot be determined"
1248f46a6179Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
124983e5f723Smrg  as_fn_error $? "pwd does not report name of working directory"
1250f46a6179Smrg
1251f46a6179Smrg
1252f46a6179Smrg# Find the source files, if location was not specified.
1253f46a6179Smrgif test -z "$srcdir"; then
1254f46a6179Smrg  ac_srcdir_defaulted=yes
1255f46a6179Smrg  # Try the directory containing this script, then the parent directory.
125634345a63Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
125734345a63Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
125834345a63Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
125934345a63Smrg	 X"$as_myself" : 'X\(//\)$' \| \
126034345a63Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
126134345a63Smrg$as_echo X"$as_myself" |
1262f46a6179Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263f46a6179Smrg	    s//\1/
1264f46a6179Smrg	    q
1265f46a6179Smrg	  }
1266f46a6179Smrg	  /^X\(\/\/\)[^/].*/{
1267f46a6179Smrg	    s//\1/
1268f46a6179Smrg	    q
1269f46a6179Smrg	  }
1270f46a6179Smrg	  /^X\(\/\/\)$/{
1271f46a6179Smrg	    s//\1/
1272f46a6179Smrg	    q
1273f46a6179Smrg	  }
1274f46a6179Smrg	  /^X\(\/\).*/{
1275f46a6179Smrg	    s//\1/
1276f46a6179Smrg	    q
1277f46a6179Smrg	  }
1278f46a6179Smrg	  s/.*/./; q'`
1279f46a6179Smrg  srcdir=$ac_confdir
1280f46a6179Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
1281f46a6179Smrg    srcdir=..
1282f46a6179Smrg  fi
1283f46a6179Smrgelse
1284f46a6179Smrg  ac_srcdir_defaulted=no
1285f46a6179Smrgfi
1286f46a6179Smrgif test ! -r "$srcdir/$ac_unique_file"; then
1287f46a6179Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
128883e5f723Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289f46a6179Smrgfi
1290f46a6179Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291f46a6179Smrgac_abs_confdir=`(
129283e5f723Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293f46a6179Smrg	pwd)`
1294f46a6179Smrg# When building in place, set srcdir=.
1295f46a6179Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1296f46a6179Smrg  srcdir=.
1297f46a6179Smrgfi
1298f46a6179Smrg# Remove unnecessary trailing slashes from srcdir.
1299f46a6179Smrg# Double slashes in file names in object file debugging info
1300f46a6179Smrg# mess up M-x gdb in Emacs.
1301f46a6179Smrgcase $srcdir in
1302f46a6179Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303f46a6179Smrgesac
1304f46a6179Smrgfor ac_var in $ac_precious_vars; do
1305f46a6179Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306f46a6179Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
1307f46a6179Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308f46a6179Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309f46a6179Smrgdone
1310f46a6179Smrg
1311f46a6179Smrg#
1312f46a6179Smrg# Report the --help message.
1313f46a6179Smrg#
1314f46a6179Smrgif test "$ac_init_help" = "long"; then
1315f46a6179Smrg  # Omit some internal or obsolete options to make the list less imposing.
1316f46a6179Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
1317f46a6179Smrg  cat <<_ACEOF
1318c82dfdfbSmrg\`configure' configures xkbcomp 1.3.0 to adapt to many kinds of systems.
1319f46a6179Smrg
1320f46a6179SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
1321f46a6179Smrg
1322f46a6179SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
1323f46a6179SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
1324f46a6179Smrg
1325f46a6179SmrgDefaults for the options are specified in brackets.
1326f46a6179Smrg
1327f46a6179SmrgConfiguration:
1328f46a6179Smrg  -h, --help              display this help and exit
1329f46a6179Smrg      --help=short        display options specific to this package
1330f46a6179Smrg      --help=recursive    display the short help of all the included packages
1331f46a6179Smrg  -V, --version           display version information and exit
133283e5f723Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
1333f46a6179Smrg      --cache-file=FILE   cache test results in FILE [disabled]
1334f46a6179Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
1335f46a6179Smrg  -n, --no-create         do not create output files
1336f46a6179Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337f46a6179Smrg
1338f46a6179SmrgInstallation directories:
1339f46a6179Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
134034345a63Smrg                          [$ac_default_prefix]
1341f46a6179Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
134234345a63Smrg                          [PREFIX]
1343f46a6179Smrg
1344f46a6179SmrgBy default, \`make install' will install all the files in
1345f46a6179Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346f46a6179Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347f46a6179Smrgfor instance \`--prefix=\$HOME'.
1348f46a6179Smrg
1349f46a6179SmrgFor better control, use the options below.
1350f46a6179Smrg
1351f46a6179SmrgFine tuning of the installation directories:
135234345a63Smrg  --bindir=DIR            user executables [EPREFIX/bin]
135334345a63Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
135434345a63Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
135534345a63Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
135634345a63Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
135734345a63Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
135834345a63Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
135934345a63Smrg  --includedir=DIR        C header files [PREFIX/include]
136034345a63Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
136134345a63Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
136234345a63Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
136334345a63Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
136434345a63Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
136534345a63Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
136634345a63Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbcomp]
136734345a63Smrg  --htmldir=DIR           html documentation [DOCDIR]
136834345a63Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
136934345a63Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
137034345a63Smrg  --psdir=DIR             ps documentation [DOCDIR]
1371f46a6179Smrg_ACEOF
1372f46a6179Smrg
1373f46a6179Smrg  cat <<\_ACEOF
1374f46a6179Smrg
1375f46a6179SmrgProgram names:
1376f46a6179Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
1377f46a6179Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
1378f46a6179Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379f46a6179Smrg
1380f46a6179SmrgSystem types:
1381f46a6179Smrg  --build=BUILD     configure for building on BUILD [guessed]
1382f46a6179Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383f46a6179Smrg_ACEOF
1384f46a6179Smrgfi
1385f46a6179Smrg
1386f46a6179Smrgif test -n "$ac_init_help"; then
1387f46a6179Smrg  case $ac_init_help in
1388c82dfdfbSmrg     short | recursive ) echo "Configuration of xkbcomp 1.3.0:";;
1389f46a6179Smrg   esac
1390f46a6179Smrg  cat <<\_ACEOF
1391f46a6179Smrg
1392f46a6179SmrgOptional Features:
139334345a63Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
1394f46a6179Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395f46a6179Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396c82dfdfbSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1397c82dfdfbSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1398c82dfdfbSmrg  --enable-dependency-tracking
1399c82dfdfbSmrg                          do not reject slow dependency extractors
1400c82dfdfbSmrg  --disable-dependency-tracking
1401c82dfdfbSmrg                          speeds up one-time build
14021d8c7986Smrg  --disable-selective-werror
14031d8c7986Smrg                          Turn off selective compiler errors. (default:
14041d8c7986Smrg                          enabled)
140583e5f723Smrg  --enable-strict-compilation
140683e5f723Smrg                          Enable all warnings from compiler and make them
140783e5f723Smrg                          errors (default: disabled)
1408f46a6179Smrg
1409f46a6179SmrgOptional Packages:
1410f46a6179Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411f46a6179Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
141234345a63Smrg  --with-xkb-config-root=<paths>
141334345a63Smrg                          Set default XKB config root (default:
141434345a63Smrg                          ${datadir}/X11/xkb)
1415f46a6179Smrg
1416f46a6179SmrgSome influential environment variables:
1417f46a6179Smrg  CC          C compiler command
1418f46a6179Smrg  CFLAGS      C compiler flags
1419f46a6179Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1420f46a6179Smrg              nonstandard directory <lib dir>
1421f46a6179Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
142283e5f723Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423f46a6179Smrg              you have headers in a nonstandard directory <include dir>
142483e5f723Smrg  CPP         C preprocessor
142583e5f723Smrg  PKG_CONFIG  path to pkg-config utility
1426c82dfdfbSmrg  PKG_CONFIG_PATH
1427c82dfdfbSmrg              directories to add to pkg-config's search path
1428c82dfdfbSmrg  PKG_CONFIG_LIBDIR
1429c82dfdfbSmrg              path overriding pkg-config's built-in search path
1430690143ccSmrg  YACC        The `Yet Another Compiler Compiler' implementation to use.
1431690143ccSmrg              Defaults to the first program found out of: `bison -y', `byacc',
1432690143ccSmrg              `yacc'.
1433f46a6179Smrg  YFLAGS      The list of arguments that will be passed by default to $YACC.
1434f46a6179Smrg              This script will default YFLAGS to the empty string to avoid a
1435f46a6179Smrg              default value of `-d' given by some make applications.
1436f46a6179Smrg  XKBCOMP_CFLAGS
1437f46a6179Smrg              C compiler flags for XKBCOMP, overriding pkg-config
1438f46a6179Smrg  XKBCOMP_LIBS
1439f46a6179Smrg              linker flags for XKBCOMP, overriding pkg-config
1440f46a6179Smrg
1441f46a6179SmrgUse these variables to override the choices made by `configure' or to help
1442f46a6179Smrgit to find libraries and programs with nonstandard names/locations.
1443f46a6179Smrg
1444f46a6179SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1445f46a6179Smrg_ACEOF
1446f46a6179Smrgac_status=$?
1447f46a6179Smrgfi
1448f46a6179Smrg
1449f46a6179Smrgif test "$ac_init_help" = "recursive"; then
1450f46a6179Smrg  # If there are subdirs, report their specific --help.
1451f46a6179Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
145234345a63Smrg    test -d "$ac_dir" ||
145334345a63Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
145434345a63Smrg      continue
1455f46a6179Smrg    ac_builddir=.
1456f46a6179Smrg
1457f46a6179Smrgcase "$ac_dir" in
1458f46a6179Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459f46a6179Smrg*)
146034345a63Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461f46a6179Smrg  # A ".." for each directory in $ac_dir_suffix.
146234345a63Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463f46a6179Smrg  case $ac_top_builddir_sub in
1464f46a6179Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465f46a6179Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466f46a6179Smrg  esac ;;
1467f46a6179Smrgesac
1468f46a6179Smrgac_abs_top_builddir=$ac_pwd
1469f46a6179Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1470f46a6179Smrg# for backward compatibility:
1471f46a6179Smrgac_top_builddir=$ac_top_build_prefix
1472f46a6179Smrg
1473f46a6179Smrgcase $srcdir in
1474f46a6179Smrg  .)  # We are building in place.
1475f46a6179Smrg    ac_srcdir=.
1476f46a6179Smrg    ac_top_srcdir=$ac_top_builddir_sub
1477f46a6179Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1478f46a6179Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1479f46a6179Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1480f46a6179Smrg    ac_top_srcdir=$srcdir
1481f46a6179Smrg    ac_abs_top_srcdir=$srcdir ;;
1482f46a6179Smrg  *) # Relative name.
1483f46a6179Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484f46a6179Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1485f46a6179Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486f46a6179Smrgesac
1487f46a6179Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1488f46a6179Smrg
1489f46a6179Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1490f46a6179Smrg    # Check for guested configure.
1491f46a6179Smrg    if test -f "$ac_srcdir/configure.gnu"; then
1492f46a6179Smrg      echo &&
1493f46a6179Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494f46a6179Smrg    elif test -f "$ac_srcdir/configure"; then
1495f46a6179Smrg      echo &&
1496f46a6179Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
1497f46a6179Smrg    else
149834345a63Smrg      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499f46a6179Smrg    fi || ac_status=$?
1500f46a6179Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
1501f46a6179Smrg  done
1502f46a6179Smrgfi
1503f46a6179Smrg
1504f46a6179Smrgtest -n "$ac_init_help" && exit $ac_status
1505f46a6179Smrgif $ac_init_version; then
1506f46a6179Smrg  cat <<\_ACEOF
1507c82dfdfbSmrgxkbcomp configure 1.3.0
1508c82dfdfbSmrggenerated by GNU Autoconf 2.69
1509f46a6179Smrg
1510c82dfdfbSmrgCopyright (C) 2012 Free Software Foundation, Inc.
1511f46a6179SmrgThis configure script is free software; the Free Software Foundation
1512f46a6179Smrggives unlimited permission to copy, distribute and modify it.
1513f46a6179Smrg_ACEOF
1514f46a6179Smrg  exit
1515f46a6179Smrgfi
1516f46a6179Smrg
151783e5f723Smrg## ------------------------ ##
151883e5f723Smrg## Autoconf initialization. ##
151983e5f723Smrg## ------------------------ ##
1520f46a6179Smrg
152183e5f723Smrg# ac_fn_c_try_compile LINENO
152283e5f723Smrg# --------------------------
152383e5f723Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
152483e5f723Smrgac_fn_c_try_compile ()
1525f46a6179Smrg{
152683e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
152783e5f723Smrg  rm -f conftest.$ac_objext
152883e5f723Smrg  if { { ac_try="$ac_compile"
152983e5f723Smrgcase "(($ac_try" in
153083e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
153183e5f723Smrg  *) ac_try_echo=$ac_try;;
153283e5f723Smrgesac
153383e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
153483e5f723Smrg$as_echo "$ac_try_echo"; } >&5
153583e5f723Smrg  (eval "$ac_compile") 2>conftest.err
153683e5f723Smrg  ac_status=$?
153783e5f723Smrg  if test -s conftest.err; then
153883e5f723Smrg    grep -v '^ *+' conftest.err >conftest.er1
153983e5f723Smrg    cat conftest.er1 >&5
154083e5f723Smrg    mv -f conftest.er1 conftest.err
154183e5f723Smrg  fi
154283e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
154383e5f723Smrg  test $ac_status = 0; } && {
154483e5f723Smrg	 test -z "$ac_c_werror_flag" ||
154583e5f723Smrg	 test ! -s conftest.err
154683e5f723Smrg       } && test -s conftest.$ac_objext; then :
154783e5f723Smrg  ac_retval=0
154883e5f723Smrgelse
154983e5f723Smrg  $as_echo "$as_me: failed program was:" >&5
155083e5f723Smrgsed 's/^/| /' conftest.$ac_ext >&5
1551f46a6179Smrg
155283e5f723Smrg	ac_retval=1
155383e5f723Smrgfi
1554690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
155583e5f723Smrg  as_fn_set_status $ac_retval
1556f46a6179Smrg
155783e5f723Smrg} # ac_fn_c_try_compile
155883e5f723Smrg
155983e5f723Smrg# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
156083e5f723Smrg# ---------------------------------------------
156183e5f723Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
156283e5f723Smrg# accordingly.
156383e5f723Smrgac_fn_c_check_decl ()
156483e5f723Smrg{
156583e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
156683e5f723Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
156783e5f723Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
156883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
156983e5f723Smrg$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1570690143ccSmrgif eval \${$3+:} false; then :
157183e5f723Smrg  $as_echo_n "(cached) " >&6
157283e5f723Smrgelse
157383e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157483e5f723Smrg/* end confdefs.h.  */
157583e5f723Smrg$4
157683e5f723Smrgint
157783e5f723Smrgmain ()
157883e5f723Smrg{
157983e5f723Smrg#ifndef $as_decl_name
158083e5f723Smrg#ifdef __cplusplus
158183e5f723Smrg  (void) $as_decl_use;
158283e5f723Smrg#else
158383e5f723Smrg  (void) $as_decl_name;
158483e5f723Smrg#endif
158583e5f723Smrg#endif
158683e5f723Smrg
158783e5f723Smrg  ;
158883e5f723Smrg  return 0;
158983e5f723Smrg}
159083e5f723Smrg_ACEOF
159183e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
159283e5f723Smrg  eval "$3=yes"
159383e5f723Smrgelse
159483e5f723Smrg  eval "$3=no"
159583e5f723Smrgfi
159683e5f723Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
159783e5f723Smrgfi
159883e5f723Smrgeval ac_res=\$$3
159983e5f723Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
160083e5f723Smrg$as_echo "$ac_res" >&6; }
1601690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
160283e5f723Smrg
160383e5f723Smrg} # ac_fn_c_check_decl
160483e5f723Smrg
160583e5f723Smrg# ac_fn_c_try_cpp LINENO
160683e5f723Smrg# ----------------------
160783e5f723Smrg# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
160883e5f723Smrgac_fn_c_try_cpp ()
160983e5f723Smrg{
161083e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
161183e5f723Smrg  if { { ac_try="$ac_cpp conftest.$ac_ext"
161283e5f723Smrgcase "(($ac_try" in
161383e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
161483e5f723Smrg  *) ac_try_echo=$ac_try;;
161583e5f723Smrgesac
161683e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
161783e5f723Smrg$as_echo "$ac_try_echo"; } >&5
161883e5f723Smrg  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
161983e5f723Smrg  ac_status=$?
162083e5f723Smrg  if test -s conftest.err; then
162183e5f723Smrg    grep -v '^ *+' conftest.err >conftest.er1
162283e5f723Smrg    cat conftest.er1 >&5
162383e5f723Smrg    mv -f conftest.er1 conftest.err
162483e5f723Smrg  fi
162583e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626690143ccSmrg  test $ac_status = 0; } > conftest.i && {
162783e5f723Smrg	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
162883e5f723Smrg	 test ! -s conftest.err
162983e5f723Smrg       }; then :
163083e5f723Smrg  ac_retval=0
163183e5f723Smrgelse
163283e5f723Smrg  $as_echo "$as_me: failed program was:" >&5
163383e5f723Smrgsed 's/^/| /' conftest.$ac_ext >&5
163483e5f723Smrg
163583e5f723Smrg    ac_retval=1
163683e5f723Smrgfi
1637690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
163883e5f723Smrg  as_fn_set_status $ac_retval
163983e5f723Smrg
164083e5f723Smrg} # ac_fn_c_try_cpp
164183e5f723Smrg
164283e5f723Smrg# ac_fn_c_try_run LINENO
164383e5f723Smrg# ----------------------
164483e5f723Smrg# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
164583e5f723Smrg# that executables *can* be run.
164683e5f723Smrgac_fn_c_try_run ()
164783e5f723Smrg{
164883e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
164983e5f723Smrg  if { { ac_try="$ac_link"
165083e5f723Smrgcase "(($ac_try" in
165183e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
165283e5f723Smrg  *) ac_try_echo=$ac_try;;
165383e5f723Smrgesac
165483e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
165583e5f723Smrg$as_echo "$ac_try_echo"; } >&5
165683e5f723Smrg  (eval "$ac_link") 2>&5
165783e5f723Smrg  ac_status=$?
165883e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
165983e5f723Smrg  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
166083e5f723Smrg  { { case "(($ac_try" in
166183e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
166283e5f723Smrg  *) ac_try_echo=$ac_try;;
166383e5f723Smrgesac
166483e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
166583e5f723Smrg$as_echo "$ac_try_echo"; } >&5
166683e5f723Smrg  (eval "$ac_try") 2>&5
166783e5f723Smrg  ac_status=$?
166883e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
166983e5f723Smrg  test $ac_status = 0; }; }; then :
167083e5f723Smrg  ac_retval=0
167183e5f723Smrgelse
167283e5f723Smrg  $as_echo "$as_me: program exited with status $ac_status" >&5
167383e5f723Smrg       $as_echo "$as_me: failed program was:" >&5
167483e5f723Smrgsed 's/^/| /' conftest.$ac_ext >&5
167583e5f723Smrg
167683e5f723Smrg       ac_retval=$ac_status
167783e5f723Smrgfi
167883e5f723Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
168083e5f723Smrg  as_fn_set_status $ac_retval
168183e5f723Smrg
168283e5f723Smrg} # ac_fn_c_try_run
168383e5f723Smrg
168483e5f723Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
168583e5f723Smrg# -------------------------------------------------------
168683e5f723Smrg# Tests whether HEADER exists and can be compiled using the include files in
168783e5f723Smrg# INCLUDES, setting the cache variable VAR accordingly.
168883e5f723Smrgac_fn_c_check_header_compile ()
168983e5f723Smrg{
169083e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
169183e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
169283e5f723Smrg$as_echo_n "checking for $2... " >&6; }
1693690143ccSmrgif eval \${$3+:} false; then :
169483e5f723Smrg  $as_echo_n "(cached) " >&6
169583e5f723Smrgelse
169683e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
169783e5f723Smrg/* end confdefs.h.  */
169883e5f723Smrg$4
169983e5f723Smrg#include <$2>
170083e5f723Smrg_ACEOF
170183e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
170283e5f723Smrg  eval "$3=yes"
170383e5f723Smrgelse
170483e5f723Smrg  eval "$3=no"
170583e5f723Smrgfi
170683e5f723Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
170783e5f723Smrgfi
170883e5f723Smrgeval ac_res=\$$3
170983e5f723Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
171083e5f723Smrg$as_echo "$ac_res" >&6; }
1711690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
171283e5f723Smrg
171383e5f723Smrg} # ac_fn_c_check_header_compile
171483e5f723Smrg
171583e5f723Smrg# ac_fn_c_try_link LINENO
171683e5f723Smrg# -----------------------
171783e5f723Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
171883e5f723Smrgac_fn_c_try_link ()
171983e5f723Smrg{
172083e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
172183e5f723Smrg  rm -f conftest.$ac_objext conftest$ac_exeext
172283e5f723Smrg  if { { ac_try="$ac_link"
172383e5f723Smrgcase "(($ac_try" in
172483e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
172583e5f723Smrg  *) ac_try_echo=$ac_try;;
172683e5f723Smrgesac
172783e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
172883e5f723Smrg$as_echo "$ac_try_echo"; } >&5
172983e5f723Smrg  (eval "$ac_link") 2>conftest.err
173083e5f723Smrg  ac_status=$?
173183e5f723Smrg  if test -s conftest.err; then
173283e5f723Smrg    grep -v '^ *+' conftest.err >conftest.er1
173383e5f723Smrg    cat conftest.er1 >&5
173483e5f723Smrg    mv -f conftest.er1 conftest.err
173583e5f723Smrg  fi
173683e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
173783e5f723Smrg  test $ac_status = 0; } && {
173883e5f723Smrg	 test -z "$ac_c_werror_flag" ||
173983e5f723Smrg	 test ! -s conftest.err
174083e5f723Smrg       } && test -s conftest$ac_exeext && {
174183e5f723Smrg	 test "$cross_compiling" = yes ||
1742c82dfdfbSmrg	 test -x conftest$ac_exeext
174383e5f723Smrg       }; then :
174483e5f723Smrg  ac_retval=0
174583e5f723Smrgelse
174683e5f723Smrg  $as_echo "$as_me: failed program was:" >&5
174783e5f723Smrgsed 's/^/| /' conftest.$ac_ext >&5
174883e5f723Smrg
174983e5f723Smrg	ac_retval=1
175083e5f723Smrgfi
175183e5f723Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
175283e5f723Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
175383e5f723Smrg  # interfere with the next link command; also delete a directory that is
175483e5f723Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
175583e5f723Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
175783e5f723Smrg  as_fn_set_status $ac_retval
175883e5f723Smrg
175983e5f723Smrg} # ac_fn_c_try_link
176083e5f723Smrg
176183e5f723Smrg# ac_fn_c_check_func LINENO FUNC VAR
176283e5f723Smrg# ----------------------------------
176383e5f723Smrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
176483e5f723Smrgac_fn_c_check_func ()
176583e5f723Smrg{
176683e5f723Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
176783e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
176883e5f723Smrg$as_echo_n "checking for $2... " >&6; }
1769690143ccSmrgif eval \${$3+:} false; then :
177083e5f723Smrg  $as_echo_n "(cached) " >&6
177183e5f723Smrgelse
177283e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
177383e5f723Smrg/* end confdefs.h.  */
177483e5f723Smrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
177583e5f723Smrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
177683e5f723Smrg#define $2 innocuous_$2
177783e5f723Smrg
177883e5f723Smrg/* System header to define __stub macros and hopefully few prototypes,
177983e5f723Smrg    which can conflict with char $2 (); below.
178083e5f723Smrg    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
178183e5f723Smrg    <limits.h> exists even on freestanding compilers.  */
178283e5f723Smrg
178383e5f723Smrg#ifdef __STDC__
178483e5f723Smrg# include <limits.h>
178583e5f723Smrg#else
178683e5f723Smrg# include <assert.h>
178783e5f723Smrg#endif
178883e5f723Smrg
178983e5f723Smrg#undef $2
179083e5f723Smrg
179183e5f723Smrg/* Override any GCC internal prototype to avoid an error.
179283e5f723Smrg   Use char because int might match the return type of a GCC
179383e5f723Smrg   builtin and then its argument prototype would still apply.  */
179483e5f723Smrg#ifdef __cplusplus
179583e5f723Smrgextern "C"
179683e5f723Smrg#endif
179783e5f723Smrgchar $2 ();
179883e5f723Smrg/* The GNU C library defines this for functions which it implements
179983e5f723Smrg    to always fail with ENOSYS.  Some functions are actually named
180083e5f723Smrg    something starting with __ and the normal name is an alias.  */
180183e5f723Smrg#if defined __stub_$2 || defined __stub___$2
180283e5f723Smrgchoke me
180383e5f723Smrg#endif
180483e5f723Smrg
180583e5f723Smrgint
180683e5f723Smrgmain ()
180783e5f723Smrg{
180883e5f723Smrgreturn $2 ();
180983e5f723Smrg  ;
181083e5f723Smrg  return 0;
181183e5f723Smrg}
181283e5f723Smrg_ACEOF
181383e5f723Smrgif ac_fn_c_try_link "$LINENO"; then :
181483e5f723Smrg  eval "$3=yes"
181583e5f723Smrgelse
181683e5f723Smrg  eval "$3=no"
181783e5f723Smrgfi
181883e5f723Smrgrm -f core conftest.err conftest.$ac_objext \
181983e5f723Smrg    conftest$ac_exeext conftest.$ac_ext
182083e5f723Smrgfi
182183e5f723Smrgeval ac_res=\$$3
182283e5f723Smrg	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
182383e5f723Smrg$as_echo "$ac_res" >&6; }
1824690143ccSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
182583e5f723Smrg
182683e5f723Smrg} # ac_fn_c_check_func
182783e5f723Smrgcat >config.log <<_ACEOF
182883e5f723SmrgThis file contains any messages produced by compilers while
182983e5f723Smrgrunning configure, to aid debugging if configure makes a mistake.
183083e5f723Smrg
1831c82dfdfbSmrgIt was created by xkbcomp $as_me 1.3.0, which was
1832c82dfdfbSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
183383e5f723Smrg
183483e5f723Smrg  $ $0 $@
183583e5f723Smrg
183683e5f723Smrg_ACEOF
183783e5f723Smrgexec 5>>config.log
183883e5f723Smrg{
183983e5f723Smrgcat <<_ASUNAME
184083e5f723Smrg## --------- ##
184183e5f723Smrg## Platform. ##
184283e5f723Smrg## --------- ##
184383e5f723Smrg
184483e5f723Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
184583e5f723Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
184683e5f723Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
184783e5f723Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
184883e5f723Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
184983e5f723Smrg
185083e5f723Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
185183e5f723Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1852f46a6179Smrg
1853f46a6179Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1854f46a6179Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1855f46a6179Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856f46a6179Smrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1857f46a6179Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1858f46a6179Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1859f46a6179Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1860f46a6179Smrg
1861f46a6179Smrg_ASUNAME
1862f46a6179Smrg
1863f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864f46a6179Smrgfor as_dir in $PATH
1865f46a6179Smrgdo
1866f46a6179Smrg  IFS=$as_save_IFS
1867f46a6179Smrg  test -z "$as_dir" && as_dir=.
186883e5f723Smrg    $as_echo "PATH: $as_dir"
186983e5f723Smrg  done
1870f46a6179SmrgIFS=$as_save_IFS
1871f46a6179Smrg
1872f46a6179Smrg} >&5
1873f46a6179Smrg
1874f46a6179Smrgcat >&5 <<_ACEOF
1875f46a6179Smrg
1876f46a6179Smrg
1877f46a6179Smrg## ----------- ##
1878f46a6179Smrg## Core tests. ##
1879f46a6179Smrg## ----------- ##
1880f46a6179Smrg
1881f46a6179Smrg_ACEOF
1882f46a6179Smrg
1883f46a6179Smrg
1884f46a6179Smrg# Keep a trace of the command line.
1885f46a6179Smrg# Strip out --no-create and --no-recursion so they do not pile up.
1886f46a6179Smrg# Strip out --silent because we don't want to record it for future runs.
1887f46a6179Smrg# Also quote any args containing shell meta-characters.
1888f46a6179Smrg# Make two passes to allow for proper duplicate-argument suppression.
1889f46a6179Smrgac_configure_args=
1890f46a6179Smrgac_configure_args0=
1891f46a6179Smrgac_configure_args1=
1892f46a6179Smrgac_must_keep_next=false
1893f46a6179Smrgfor ac_pass in 1 2
1894f46a6179Smrgdo
1895f46a6179Smrg  for ac_arg
1896f46a6179Smrg  do
1897f46a6179Smrg    case $ac_arg in
1898f46a6179Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899f46a6179Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900f46a6179Smrg    | -silent | --silent | --silen | --sile | --sil)
1901f46a6179Smrg      continue ;;
1902f46a6179Smrg    *\'*)
190334345a63Smrg      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904f46a6179Smrg    esac
1905f46a6179Smrg    case $ac_pass in
190683e5f723Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907f46a6179Smrg    2)
190883e5f723Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
1909f46a6179Smrg      if test $ac_must_keep_next = true; then
1910f46a6179Smrg	ac_must_keep_next=false # Got value, back to normal.
1911f46a6179Smrg      else
1912f46a6179Smrg	case $ac_arg in
1913f46a6179Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
1914f46a6179Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915f46a6179Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916f46a6179Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
1917f46a6179Smrg	    case "$ac_configure_args0 " in
1918f46a6179Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919f46a6179Smrg	    esac
1920f46a6179Smrg	    ;;
1921f46a6179Smrg	  -* ) ac_must_keep_next=true ;;
1922f46a6179Smrg	esac
1923f46a6179Smrg      fi
192483e5f723Smrg      as_fn_append ac_configure_args " '$ac_arg'"
1925f46a6179Smrg      ;;
1926f46a6179Smrg    esac
1927f46a6179Smrg  done
1928f46a6179Smrgdone
192983e5f723Smrg{ ac_configure_args0=; unset ac_configure_args0;}
193083e5f723Smrg{ ac_configure_args1=; unset ac_configure_args1;}
1931f46a6179Smrg
1932f46a6179Smrg# When interrupted or exit'd, cleanup temporary files, and complete
1933f46a6179Smrg# config.log.  We remove comments because anyway the quotes in there
1934f46a6179Smrg# would cause problems or look ugly.
1935f46a6179Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1936f46a6179Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937f46a6179Smrgtrap 'exit_status=$?
1938f46a6179Smrg  # Save into config.log some information that might help in debugging.
1939f46a6179Smrg  {
1940f46a6179Smrg    echo
1941f46a6179Smrg
194283e5f723Smrg    $as_echo "## ---------------- ##
1943f46a6179Smrg## Cache variables. ##
194483e5f723Smrg## ---------------- ##"
1945f46a6179Smrg    echo
1946f46a6179Smrg    # The following way of writing the cache mishandles newlines in values,
1947f46a6179Smrg(
1948f46a6179Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949f46a6179Smrg    eval ac_val=\$$ac_var
1950f46a6179Smrg    case $ac_val in #(
1951f46a6179Smrg    *${as_nl}*)
1952f46a6179Smrg      case $ac_var in #(
195383e5f723Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
195434345a63Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955f46a6179Smrg      esac
1956f46a6179Smrg      case $ac_var in #(
1957f46a6179Smrg      _ | IFS | as_nl) ;; #(
195834345a63Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
195983e5f723Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1960f46a6179Smrg      esac ;;
1961f46a6179Smrg    esac
1962f46a6179Smrg  done
1963f46a6179Smrg  (set) 2>&1 |
1964f46a6179Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965f46a6179Smrg    *${as_nl}ac_space=\ *)
1966f46a6179Smrg      sed -n \
1967f46a6179Smrg	"s/'\''/'\''\\\\'\'''\''/g;
1968f46a6179Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969f46a6179Smrg      ;; #(
1970f46a6179Smrg    *)
1971f46a6179Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972f46a6179Smrg      ;;
1973f46a6179Smrg    esac |
1974f46a6179Smrg    sort
1975f46a6179Smrg)
1976f46a6179Smrg    echo
1977f46a6179Smrg
197883e5f723Smrg    $as_echo "## ----------------- ##
1979f46a6179Smrg## Output variables. ##
198083e5f723Smrg## ----------------- ##"
1981f46a6179Smrg    echo
1982f46a6179Smrg    for ac_var in $ac_subst_vars
1983f46a6179Smrg    do
1984f46a6179Smrg      eval ac_val=\$$ac_var
1985f46a6179Smrg      case $ac_val in
198634345a63Smrg      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987f46a6179Smrg      esac
198834345a63Smrg      $as_echo "$ac_var='\''$ac_val'\''"
1989f46a6179Smrg    done | sort
1990f46a6179Smrg    echo
1991f46a6179Smrg
1992f46a6179Smrg    if test -n "$ac_subst_files"; then
199383e5f723Smrg      $as_echo "## ------------------- ##
1994f46a6179Smrg## File substitutions. ##
199583e5f723Smrg## ------------------- ##"
1996f46a6179Smrg      echo
1997f46a6179Smrg      for ac_var in $ac_subst_files
1998f46a6179Smrg      do
1999f46a6179Smrg	eval ac_val=\$$ac_var
2000f46a6179Smrg	case $ac_val in
200134345a63Smrg	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002f46a6179Smrg	esac
200334345a63Smrg	$as_echo "$ac_var='\''$ac_val'\''"
2004f46a6179Smrg      done | sort
2005f46a6179Smrg      echo
2006f46a6179Smrg    fi
2007f46a6179Smrg
2008f46a6179Smrg    if test -s confdefs.h; then
200983e5f723Smrg      $as_echo "## ----------- ##
2010f46a6179Smrg## confdefs.h. ##
201183e5f723Smrg## ----------- ##"
2012f46a6179Smrg      echo
2013f46a6179Smrg      cat confdefs.h
2014f46a6179Smrg      echo
2015f46a6179Smrg    fi
2016f46a6179Smrg    test "$ac_signal" != 0 &&
201734345a63Smrg      $as_echo "$as_me: caught signal $ac_signal"
201834345a63Smrg    $as_echo "$as_me: exit $exit_status"
2019f46a6179Smrg  } >&5
2020f46a6179Smrg  rm -f core *.core core.conftest.* &&
2021f46a6179Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022f46a6179Smrg    exit $exit_status
2023f46a6179Smrg' 0
2024f46a6179Smrgfor ac_signal in 1 2 13 15; do
202583e5f723Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026f46a6179Smrgdone
2027f46a6179Smrgac_signal=0
2028f46a6179Smrg
2029f46a6179Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2030f46a6179Smrgrm -f -r conftest* confdefs.h
2031f46a6179Smrg
203283e5f723Smrg$as_echo "/* confdefs.h */" > confdefs.h
203383e5f723Smrg
2034f46a6179Smrg# Predefined preprocessor variables.
2035f46a6179Smrg
2036f46a6179Smrgcat >>confdefs.h <<_ACEOF
2037f46a6179Smrg#define PACKAGE_NAME "$PACKAGE_NAME"
2038f46a6179Smrg_ACEOF
2039f46a6179Smrg
2040f46a6179Smrgcat >>confdefs.h <<_ACEOF
2041f46a6179Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042f46a6179Smrg_ACEOF
2043f46a6179Smrg
2044f46a6179Smrgcat >>confdefs.h <<_ACEOF
2045f46a6179Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION"
2046f46a6179Smrg_ACEOF
2047f46a6179Smrg
2048f46a6179Smrgcat >>confdefs.h <<_ACEOF
2049f46a6179Smrg#define PACKAGE_STRING "$PACKAGE_STRING"
2050f46a6179Smrg_ACEOF
2051f46a6179Smrg
2052f46a6179Smrgcat >>confdefs.h <<_ACEOF
2053f46a6179Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054f46a6179Smrg_ACEOF
2055f46a6179Smrg
205683e5f723Smrgcat >>confdefs.h <<_ACEOF
205783e5f723Smrg#define PACKAGE_URL "$PACKAGE_URL"
205883e5f723Smrg_ACEOF
205983e5f723Smrg
2060f46a6179Smrg
2061f46a6179Smrg# Let the site file select an alternate cache file if it wants to.
206234345a63Smrg# Prefer an explicitly selected file to automatically selected ones.
206334345a63Smrgac_site_file1=NONE
206434345a63Smrgac_site_file2=NONE
2065f46a6179Smrgif test -n "$CONFIG_SITE"; then
206683e5f723Smrg  # We do not want a PATH search for config.site.
206783e5f723Smrg  case $CONFIG_SITE in #((
206883e5f723Smrg    -*)  ac_site_file1=./$CONFIG_SITE;;
206983e5f723Smrg    */*) ac_site_file1=$CONFIG_SITE;;
207083e5f723Smrg    *)   ac_site_file1=./$CONFIG_SITE;;
207183e5f723Smrg  esac
2072f46a6179Smrgelif test "x$prefix" != xNONE; then
207334345a63Smrg  ac_site_file1=$prefix/share/config.site
207434345a63Smrg  ac_site_file2=$prefix/etc/config.site
2075f46a6179Smrgelse
207634345a63Smrg  ac_site_file1=$ac_default_prefix/share/config.site
207734345a63Smrg  ac_site_file2=$ac_default_prefix/etc/config.site
2078f46a6179Smrgfi
207934345a63Smrgfor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080f46a6179Smrgdo
208134345a63Smrg  test "x$ac_site_file" = xNONE && continue
208283e5f723Smrg  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
208383e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
208434345a63Smrg$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085f46a6179Smrg    sed 's/^/| /' "$ac_site_file" >&5
208683e5f723Smrg    . "$ac_site_file" \
208783e5f723Smrg      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
208883e5f723Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
208983e5f723Smrgas_fn_error $? "failed to load site script $ac_site_file
209083e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
2091f46a6179Smrg  fi
2092f46a6179Smrgdone
2093f46a6179Smrg
2094f46a6179Smrgif test -r "$cache_file"; then
209583e5f723Smrg  # Some versions of bash will fail to source /dev/null (special files
209683e5f723Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
209783e5f723Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
209883e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
209934345a63Smrg$as_echo "$as_me: loading cache $cache_file" >&6;}
2100f46a6179Smrg    case $cache_file in
2101f46a6179Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102f46a6179Smrg      *)                      . "./$cache_file";;
2103f46a6179Smrg    esac
2104f46a6179Smrg  fi
2105f46a6179Smrgelse
210683e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
210734345a63Smrg$as_echo "$as_me: creating cache $cache_file" >&6;}
2108f46a6179Smrg  >$cache_file
2109f46a6179Smrgfi
2110f46a6179Smrg
2111f46a6179Smrg# Check that the precious variables saved in the cache have kept the same
2112f46a6179Smrg# value.
2113f46a6179Smrgac_cache_corrupted=false
2114f46a6179Smrgfor ac_var in $ac_precious_vars; do
2115f46a6179Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116f46a6179Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2117f46a6179Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118f46a6179Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2119f46a6179Smrg  case $ac_old_set,$ac_new_set in
2120f46a6179Smrg    set,)
212183e5f723Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
212234345a63Smrg$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123f46a6179Smrg      ac_cache_corrupted=: ;;
2124f46a6179Smrg    ,set)
212583e5f723Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
212634345a63Smrg$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127f46a6179Smrg      ac_cache_corrupted=: ;;
2128f46a6179Smrg    ,);;
2129f46a6179Smrg    *)
2130f46a6179Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
213134345a63Smrg	# differences in whitespace do not lead to failure.
213234345a63Smrg	ac_old_val_w=`echo x $ac_old_val`
213334345a63Smrg	ac_new_val_w=`echo x $ac_new_val`
213434345a63Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
213583e5f723Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
213634345a63Smrg$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
213734345a63Smrg	  ac_cache_corrupted=:
213834345a63Smrg	else
213983e5f723Smrg	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
214034345a63Smrg$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
214134345a63Smrg	  eval $ac_var=\$ac_old_val
214234345a63Smrg	fi
214383e5f723Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
214434345a63Smrg$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
214583e5f723Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
214634345a63Smrg$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2147f46a6179Smrg      fi;;
2148f46a6179Smrg  esac
2149f46a6179Smrg  # Pass precious variables to config.status.
2150f46a6179Smrg  if test "$ac_new_set" = set; then
2151f46a6179Smrg    case $ac_new_val in
215234345a63Smrg    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153f46a6179Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2154f46a6179Smrg    esac
2155f46a6179Smrg    case " $ac_configure_args " in
2156f46a6179Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
215783e5f723Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158f46a6179Smrg    esac
2159f46a6179Smrg  fi
2160f46a6179Smrgdone
2161f46a6179Smrgif $ac_cache_corrupted; then
216283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
216334345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
216483e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
216534345a63Smrg$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
216683e5f723Smrg  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2167f46a6179Smrgfi
216883e5f723Smrg## -------------------- ##
216983e5f723Smrg## Main body of script. ##
217083e5f723Smrg## -------------------- ##
2171f46a6179Smrg
2172f46a6179Smrgac_ext=c
2173f46a6179Smrgac_cpp='$CPP $CPPFLAGS'
2174f46a6179Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175f46a6179Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176f46a6179Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2177f46a6179Smrg
2178f46a6179Smrg
2179c82dfdfbSmrg
2180c82dfdfbSmrgac_config_headers="$ac_config_headers config.h"
2181c82dfdfbSmrg
2182c82dfdfbSmrg
2183c82dfdfbSmrg# Initialize Automake
2184c82dfdfbSmrgam__api_version='1.14'
2185f46a6179Smrg
2186f46a6179Smrgac_aux_dir=
2187f46a6179Smrgfor ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2188f46a6179Smrg  if test -f "$ac_dir/install-sh"; then
2189f46a6179Smrg    ac_aux_dir=$ac_dir
2190f46a6179Smrg    ac_install_sh="$ac_aux_dir/install-sh -c"
2191f46a6179Smrg    break
2192f46a6179Smrg  elif test -f "$ac_dir/install.sh"; then
2193f46a6179Smrg    ac_aux_dir=$ac_dir
2194f46a6179Smrg    ac_install_sh="$ac_aux_dir/install.sh -c"
2195f46a6179Smrg    break
2196f46a6179Smrg  elif test -f "$ac_dir/shtool"; then
2197f46a6179Smrg    ac_aux_dir=$ac_dir
2198f46a6179Smrg    ac_install_sh="$ac_aux_dir/shtool install -c"
2199f46a6179Smrg    break
2200f46a6179Smrg  fi
2201f46a6179Smrgdone
2202f46a6179Smrgif test -z "$ac_aux_dir"; then
220383e5f723Smrg  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204f46a6179Smrgfi
2205f46a6179Smrg
2206f46a6179Smrg# These three variables are undocumented and unsupported,
2207f46a6179Smrg# and are intended to be withdrawn in a future Autoconf release.
2208f46a6179Smrg# They can cause serious problems if a builder's source tree is in a directory
2209f46a6179Smrg# whose full name contains unusual characters.
2210f46a6179Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2211f46a6179Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2212f46a6179Smrgac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2213f46a6179Smrg
2214f46a6179Smrg
2215f46a6179Smrg# Find a good install program.  We prefer a C program (faster),
2216f46a6179Smrg# so one script is as good as another.  But avoid the broken or
2217f46a6179Smrg# incompatible versions:
2218f46a6179Smrg# SysV /etc/install, /usr/sbin/install
2219f46a6179Smrg# SunOS /usr/etc/install
2220f46a6179Smrg# IRIX /sbin/install
2221f46a6179Smrg# AIX /bin/install
2222f46a6179Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
2223f46a6179Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2224f46a6179Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2225f46a6179Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2226f46a6179Smrg# OS/2's system install, which has a completely different semantic
2227f46a6179Smrg# ./install, which can be erroneously created by make from ./install.sh.
222834345a63Smrg# Reject install programs that cannot install multiple files.
222983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
223034345a63Smrg$as_echo_n "checking for a BSD-compatible install... " >&6; }
2231f46a6179Smrgif test -z "$INSTALL"; then
2232690143ccSmrgif ${ac_cv_path_install+:} false; then :
223334345a63Smrg  $as_echo_n "(cached) " >&6
2234f46a6179Smrgelse
2235f46a6179Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236f46a6179Smrgfor as_dir in $PATH
2237f46a6179Smrgdo
2238f46a6179Smrg  IFS=$as_save_IFS
2239f46a6179Smrg  test -z "$as_dir" && as_dir=.
224083e5f723Smrg    # Account for people who put trailing slashes in PATH elements.
224183e5f723Smrgcase $as_dir/ in #((
224283e5f723Smrg  ./ | .// | /[cC]/* | \
2243f46a6179Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
224483e5f723Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2245f46a6179Smrg  /usr/ucb/* ) ;;
2246f46a6179Smrg  *)
2247f46a6179Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
2248f46a6179Smrg    # Don't use installbsd from OSF since it installs stuff as root
2249f46a6179Smrg    # by default.
2250f46a6179Smrg    for ac_prog in ginstall scoinst install; do
2251f46a6179Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2252c82dfdfbSmrg	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2253f46a6179Smrg	  if test $ac_prog = install &&
2254f46a6179Smrg	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255f46a6179Smrg	    # AIX install.  It has an incompatible calling convention.
2256f46a6179Smrg	    :
2257f46a6179Smrg	  elif test $ac_prog = install &&
2258f46a6179Smrg	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259f46a6179Smrg	    # program-specific install script used by HP pwplus--don't use.
2260f46a6179Smrg	    :
2261f46a6179Smrg	  else
226234345a63Smrg	    rm -rf conftest.one conftest.two conftest.dir
226334345a63Smrg	    echo one > conftest.one
226434345a63Smrg	    echo two > conftest.two
226534345a63Smrg	    mkdir conftest.dir
226634345a63Smrg	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
226734345a63Smrg	      test -s conftest.one && test -s conftest.two &&
226834345a63Smrg	      test -s conftest.dir/conftest.one &&
226934345a63Smrg	      test -s conftest.dir/conftest.two
227034345a63Smrg	    then
227134345a63Smrg	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
227234345a63Smrg	      break 3
227334345a63Smrg	    fi
2274f46a6179Smrg	  fi
2275f46a6179Smrg	fi
2276f46a6179Smrg      done
2277f46a6179Smrg    done
2278f46a6179Smrg    ;;
2279f46a6179Smrgesac
228034345a63Smrg
228183e5f723Smrg  done
2282f46a6179SmrgIFS=$as_save_IFS
2283f46a6179Smrg
228434345a63Smrgrm -rf conftest.one conftest.two conftest.dir
2285f46a6179Smrg
2286f46a6179Smrgfi
2287f46a6179Smrg  if test "${ac_cv_path_install+set}" = set; then
2288f46a6179Smrg    INSTALL=$ac_cv_path_install
2289f46a6179Smrg  else
2290f46a6179Smrg    # As a last resort, use the slow shell script.  Don't cache a
2291f46a6179Smrg    # value for INSTALL within a source directory, because that will
2292f46a6179Smrg    # break other packages using the cache if that directory is
2293f46a6179Smrg    # removed, or if the value is a relative name.
2294f46a6179Smrg    INSTALL=$ac_install_sh
2295f46a6179Smrg  fi
2296f46a6179Smrgfi
229783e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
229834345a63Smrg$as_echo "$INSTALL" >&6; }
2299f46a6179Smrg
2300f46a6179Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301f46a6179Smrg# It thinks the first close brace ends the variable substitution.
2302f46a6179Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303f46a6179Smrg
2304f46a6179Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2305f46a6179Smrg
2306f46a6179Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307f46a6179Smrg
230883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
230934345a63Smrg$as_echo_n "checking whether build environment is sane... " >&6; }
231034345a63Smrg# Reject unsafe characters in $srcdir or the absolute working directory
231134345a63Smrg# name.  Accept space and tab only in the latter.
231234345a63Smrgam_lf='
231334345a63Smrg'
231434345a63Smrgcase `pwd` in
231534345a63Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
231683e5f723Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
231734345a63Smrgesac
231834345a63Smrgcase $srcdir in
231934345a63Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2320c82dfdfbSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
232134345a63Smrgesac
232234345a63Smrg
2323c82dfdfbSmrg# Do 'set' in a subshell so we don't clobber the current shell's
2324f46a6179Smrg# arguments.  Must try -L first in case configure is actually a
2325f46a6179Smrg# symlink; some systems play weird games with the mod time of symlinks
2326f46a6179Smrg# (eg FreeBSD returns the mod time of the symlink's containing
2327f46a6179Smrg# directory).
2328f46a6179Smrgif (
2329c82dfdfbSmrg   am_has_slept=no
2330c82dfdfbSmrg   for am_try in 1 2; do
2331c82dfdfbSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2332c82dfdfbSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2333c82dfdfbSmrg     if test "$*" = "X"; then
2334c82dfdfbSmrg	# -L didn't work.
2335c82dfdfbSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2336c82dfdfbSmrg     fi
2337c82dfdfbSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2338c82dfdfbSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2339c82dfdfbSmrg
2340c82dfdfbSmrg	# If neither matched, then we have a broken ls.  This can happen
2341c82dfdfbSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2342c82dfdfbSmrg	# broken ls alias from the environment.  This has actually
2343c82dfdfbSmrg	# happened.  Such a system could not be considered "sane".
2344c82dfdfbSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2345c82dfdfbSmrg  alias in your environment" "$LINENO" 5
2346c82dfdfbSmrg     fi
2347c82dfdfbSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2348c82dfdfbSmrg       break
2349c82dfdfbSmrg     fi
2350c82dfdfbSmrg     # Just in case.
2351c82dfdfbSmrg     sleep 1
2352c82dfdfbSmrg     am_has_slept=yes
2353c82dfdfbSmrg   done
2354f46a6179Smrg   test "$2" = conftest.file
2355f46a6179Smrg   )
2356f46a6179Smrgthen
2357f46a6179Smrg   # Ok.
2358f46a6179Smrg   :
2359f46a6179Smrgelse
236083e5f723Smrg   as_fn_error $? "newly created file is older than distributed files!
236183e5f723SmrgCheck your system clock" "$LINENO" 5
2362f46a6179Smrgfi
236383e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
236434345a63Smrg$as_echo "yes" >&6; }
2365c82dfdfbSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2366c82dfdfbSmrg# generated files are strictly newer.
2367c82dfdfbSmrgam_sleep_pid=
2368c82dfdfbSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2369c82dfdfbSmrg  ( sleep 1 ) &
2370c82dfdfbSmrg  am_sleep_pid=$!
2371c82dfdfbSmrgfi
2372c82dfdfbSmrg
2373c82dfdfbSmrgrm -f conftest.file
2374c82dfdfbSmrg
2375f46a6179Smrgtest "$program_prefix" != NONE &&
2376f46a6179Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2377f46a6179Smrg# Use a double $ so make ignores it.
2378f46a6179Smrgtest "$program_suffix" != NONE &&
2379f46a6179Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
238034345a63Smrg# Double any \ or $.
2381f46a6179Smrg# By default was `s,x,x', remove it if useless.
238234345a63Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
238334345a63Smrgprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2384f46a6179Smrg
2385f46a6179Smrg# expand $ac_aux_dir to an absolute path
2386f46a6179Smrgam_aux_dir=`cd $ac_aux_dir && pwd`
2387f46a6179Smrg
238834345a63Smrgif test x"${MISSING+set}" != xset; then
238934345a63Smrg  case $am_aux_dir in
239034345a63Smrg  *\ * | *\	*)
239134345a63Smrg    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
239234345a63Smrg  *)
239334345a63Smrg    MISSING="\${SHELL} $am_aux_dir/missing" ;;
239434345a63Smrg  esac
239534345a63Smrgfi
2396f46a6179Smrg# Use eval to expand $SHELL
2397c82dfdfbSmrgif eval "$MISSING --is-lightweight"; then
2398c82dfdfbSmrg  am_missing_run="$MISSING "
2399f46a6179Smrgelse
2400f46a6179Smrg  am_missing_run=
2401c82dfdfbSmrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2402c82dfdfbSmrg$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
240334345a63Smrgfi
240434345a63Smrg
240534345a63Smrgif test x"${install_sh}" != xset; then
240634345a63Smrg  case $am_aux_dir in
240734345a63Smrg  *\ * | *\	*)
240834345a63Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
240934345a63Smrg  *)
241034345a63Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
241134345a63Smrg  esac
241234345a63Smrgfi
241334345a63Smrg
2414c82dfdfbSmrg# Installed binaries are usually stripped using 'strip' when the user
2415c82dfdfbSmrg# run "make install-strip".  However 'strip' might not be the right
241634345a63Smrg# tool to use in cross-compilation environments, therefore Automake
2417c82dfdfbSmrg# will honor the 'STRIP' environment variable to overrule this program.
241834345a63Smrgif test "$cross_compiling" != no; then
241934345a63Smrg  if test -n "$ac_tool_prefix"; then
242034345a63Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
242134345a63Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
242283e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
242334345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
2424690143ccSmrgif ${ac_cv_prog_STRIP+:} false; then :
242534345a63Smrg  $as_echo_n "(cached) " >&6
242634345a63Smrgelse
242734345a63Smrg  if test -n "$STRIP"; then
242834345a63Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
242934345a63Smrgelse
243034345a63Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243134345a63Smrgfor as_dir in $PATH
243234345a63Smrgdo
243334345a63Smrg  IFS=$as_save_IFS
243434345a63Smrg  test -z "$as_dir" && as_dir=.
243583e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2436c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
243734345a63Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
243883e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
243934345a63Smrg    break 2
244034345a63Smrg  fi
244134345a63Smrgdone
244283e5f723Smrg  done
244334345a63SmrgIFS=$as_save_IFS
244434345a63Smrg
244534345a63Smrgfi
244634345a63Smrgfi
244734345a63SmrgSTRIP=$ac_cv_prog_STRIP
244834345a63Smrgif test -n "$STRIP"; then
244983e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
245034345a63Smrg$as_echo "$STRIP" >&6; }
245134345a63Smrgelse
245283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
245334345a63Smrg$as_echo "no" >&6; }
245434345a63Smrgfi
245534345a63Smrg
245634345a63Smrg
245734345a63Smrgfi
245834345a63Smrgif test -z "$ac_cv_prog_STRIP"; then
245934345a63Smrg  ac_ct_STRIP=$STRIP
246034345a63Smrg  # Extract the first word of "strip", so it can be a program name with args.
246134345a63Smrgset dummy strip; ac_word=$2
246283e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
246334345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
2464690143ccSmrgif ${ac_cv_prog_ac_ct_STRIP+:} false; then :
246534345a63Smrg  $as_echo_n "(cached) " >&6
246634345a63Smrgelse
246734345a63Smrg  if test -n "$ac_ct_STRIP"; then
246834345a63Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
246934345a63Smrgelse
247034345a63Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
247134345a63Smrgfor as_dir in $PATH
247234345a63Smrgdo
247334345a63Smrg  IFS=$as_save_IFS
247434345a63Smrg  test -z "$as_dir" && as_dir=.
247583e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2476c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
247734345a63Smrg    ac_cv_prog_ac_ct_STRIP="strip"
247883e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
247934345a63Smrg    break 2
248034345a63Smrg  fi
248134345a63Smrgdone
248283e5f723Smrg  done
248334345a63SmrgIFS=$as_save_IFS
248434345a63Smrg
248534345a63Smrgfi
248634345a63Smrgfi
248734345a63Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
248834345a63Smrgif test -n "$ac_ct_STRIP"; then
248983e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
249034345a63Smrg$as_echo "$ac_ct_STRIP" >&6; }
249134345a63Smrgelse
249283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
249334345a63Smrg$as_echo "no" >&6; }
249434345a63Smrgfi
249534345a63Smrg
249634345a63Smrg  if test "x$ac_ct_STRIP" = x; then
249734345a63Smrg    STRIP=":"
249834345a63Smrg  else
249934345a63Smrg    case $cross_compiling:$ac_tool_warned in
250034345a63Smrgyes:)
250183e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
250234345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
250334345a63Smrgac_tool_warned=yes ;;
250434345a63Smrgesac
250534345a63Smrg    STRIP=$ac_ct_STRIP
250634345a63Smrg  fi
250734345a63Smrgelse
250834345a63Smrg  STRIP="$ac_cv_prog_STRIP"
250934345a63Smrgfi
251034345a63Smrg
2511f46a6179Smrgfi
251234345a63SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2513f46a6179Smrg
251483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
251534345a63Smrg$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2516f46a6179Smrgif test -z "$MKDIR_P"; then
2517690143ccSmrg  if ${ac_cv_path_mkdir+:} false; then :
251834345a63Smrg  $as_echo_n "(cached) " >&6
2519f46a6179Smrgelse
2520f46a6179Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521f46a6179Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2522f46a6179Smrgdo
2523f46a6179Smrg  IFS=$as_save_IFS
2524f46a6179Smrg  test -z "$as_dir" && as_dir=.
252583e5f723Smrg    for ac_prog in mkdir gmkdir; do
2526f46a6179Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2527c82dfdfbSmrg	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2528f46a6179Smrg	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2529f46a6179Smrg	     'mkdir (GNU coreutils) '* | \
2530f46a6179Smrg	     'mkdir (coreutils) '* | \
2531f46a6179Smrg	     'mkdir (fileutils) '4.1*)
2532f46a6179Smrg	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533f46a6179Smrg	       break 3;;
2534f46a6179Smrg	   esac
2535f46a6179Smrg	 done
2536f46a6179Smrg       done
253783e5f723Smrg  done
2538f46a6179SmrgIFS=$as_save_IFS
2539f46a6179Smrg
2540f46a6179Smrgfi
2541f46a6179Smrg
254283e5f723Smrg  test -d ./--version && rmdir ./--version
2543f46a6179Smrg  if test "${ac_cv_path_mkdir+set}" = set; then
2544f46a6179Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
2545f46a6179Smrg  else
2546f46a6179Smrg    # As a last resort, use the slow shell script.  Don't cache a
2547f46a6179Smrg    # value for MKDIR_P within a source directory, because that will
2548f46a6179Smrg    # break other packages using the cache if that directory is
2549f46a6179Smrg    # removed, or if the value is a relative name.
2550f46a6179Smrg    MKDIR_P="$ac_install_sh -d"
2551f46a6179Smrg  fi
2552f46a6179Smrgfi
255383e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
255434345a63Smrg$as_echo "$MKDIR_P" >&6; }
2555f46a6179Smrg
2556f46a6179Smrgfor ac_prog in gawk mawk nawk awk
2557f46a6179Smrgdo
2558f46a6179Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
2559f46a6179Smrgset dummy $ac_prog; ac_word=$2
256083e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
256134345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
2562690143ccSmrgif ${ac_cv_prog_AWK+:} false; then :
256334345a63Smrg  $as_echo_n "(cached) " >&6
2564f46a6179Smrgelse
2565f46a6179Smrg  if test -n "$AWK"; then
2566f46a6179Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567f46a6179Smrgelse
2568f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569f46a6179Smrgfor as_dir in $PATH
2570f46a6179Smrgdo
2571f46a6179Smrg  IFS=$as_save_IFS
2572f46a6179Smrg  test -z "$as_dir" && as_dir=.
257383e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2574c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2575f46a6179Smrg    ac_cv_prog_AWK="$ac_prog"
257683e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577f46a6179Smrg    break 2
2578f46a6179Smrg  fi
2579f46a6179Smrgdone
258083e5f723Smrg  done
2581f46a6179SmrgIFS=$as_save_IFS
2582f46a6179Smrg
2583f46a6179Smrgfi
2584f46a6179Smrgfi
2585f46a6179SmrgAWK=$ac_cv_prog_AWK
2586f46a6179Smrgif test -n "$AWK"; then
258783e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
258834345a63Smrg$as_echo "$AWK" >&6; }
2589f46a6179Smrgelse
259083e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
259134345a63Smrg$as_echo "no" >&6; }
2592f46a6179Smrgfi
2593f46a6179Smrg
2594f46a6179Smrg
2595f46a6179Smrg  test -n "$AWK" && break
2596f46a6179Smrgdone
2597f46a6179Smrg
259883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
259934345a63Smrg$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
260034345a63Smrgset x ${MAKE-make}
260134345a63Smrgac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2602690143ccSmrgif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
260334345a63Smrg  $as_echo_n "(cached) " >&6
2604f46a6179Smrgelse
2605f46a6179Smrg  cat >conftest.make <<\_ACEOF
2606f46a6179SmrgSHELL = /bin/sh
2607f46a6179Smrgall:
2608f46a6179Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
2609f46a6179Smrg_ACEOF
261083e5f723Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2611f46a6179Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2612f46a6179Smrg  *@@@%%%=?*=@@@%%%*)
2613f46a6179Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2614f46a6179Smrg  *)
2615f46a6179Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2616f46a6179Smrgesac
2617f46a6179Smrgrm -f conftest.make
2618f46a6179Smrgfi
2619f46a6179Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
262083e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
262134345a63Smrg$as_echo "yes" >&6; }
2622f46a6179Smrg  SET_MAKE=
2623f46a6179Smrgelse
262483e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
262534345a63Smrg$as_echo "no" >&6; }
2626f46a6179Smrg  SET_MAKE="MAKE=${MAKE-make}"
2627f46a6179Smrgfi
2628f46a6179Smrg
2629f46a6179Smrgrm -rf .tst 2>/dev/null
2630f46a6179Smrgmkdir .tst 2>/dev/null
2631f46a6179Smrgif test -d .tst; then
2632f46a6179Smrg  am__leading_dot=.
2633f46a6179Smrgelse
2634f46a6179Smrg  am__leading_dot=_
2635f46a6179Smrgfi
2636f46a6179Smrgrmdir .tst 2>/dev/null
2637f46a6179Smrg
2638c82dfdfbSmrg# Check whether --enable-silent-rules was given.
2639c82dfdfbSmrgif test "${enable_silent_rules+set}" = set; then :
2640c82dfdfbSmrg  enableval=$enable_silent_rules;
2641c82dfdfbSmrgfi
2642c82dfdfbSmrg
2643c82dfdfbSmrgcase $enable_silent_rules in # (((
2644c82dfdfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2645c82dfdfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2646c82dfdfbSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2647c82dfdfbSmrgesac
2648c82dfdfbSmrgam_make=${MAKE-make}
2649c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2650c82dfdfbSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2651c82dfdfbSmrgif ${am_cv_make_support_nested_variables+:} false; then :
2652c82dfdfbSmrg  $as_echo_n "(cached) " >&6
2653c82dfdfbSmrgelse
2654c82dfdfbSmrg  if $as_echo 'TRUE=$(BAR$(V))
2655c82dfdfbSmrgBAR0=false
2656c82dfdfbSmrgBAR1=true
2657c82dfdfbSmrgV=1
2658c82dfdfbSmrgam__doit:
2659c82dfdfbSmrg	@$(TRUE)
2660c82dfdfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2661c82dfdfbSmrg  am_cv_make_support_nested_variables=yes
2662c82dfdfbSmrgelse
2663c82dfdfbSmrg  am_cv_make_support_nested_variables=no
2664c82dfdfbSmrgfi
2665c82dfdfbSmrgfi
2666c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2667c82dfdfbSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
2668c82dfdfbSmrgif test $am_cv_make_support_nested_variables = yes; then
2669c82dfdfbSmrg    AM_V='$(V)'
2670c82dfdfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2671c82dfdfbSmrgelse
2672c82dfdfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2673c82dfdfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2674c82dfdfbSmrgfi
2675c82dfdfbSmrgAM_BACKSLASH='\'
2676c82dfdfbSmrg
2677f46a6179Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2678f46a6179Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2679f46a6179Smrg  # is not polluted with repeated "-I."
2680f46a6179Smrg  am__isrc=' -I$(srcdir)'
2681f46a6179Smrg  # test to see if srcdir already configured
2682f46a6179Smrg  if test -f $srcdir/config.status; then
268383e5f723Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2684f46a6179Smrg  fi
2685f46a6179Smrgfi
2686f46a6179Smrg
2687f46a6179Smrg# test whether we have cygpath
2688f46a6179Smrgif test -z "$CYGPATH_W"; then
2689f46a6179Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
2690f46a6179Smrg    CYGPATH_W='cygpath -w'
2691f46a6179Smrg  else
2692f46a6179Smrg    CYGPATH_W=echo
2693f46a6179Smrg  fi
2694f46a6179Smrgfi
2695f46a6179Smrg
2696f46a6179Smrg
2697f46a6179Smrg# Define the identity of the package.
2698f46a6179Smrg PACKAGE='xkbcomp'
2699c82dfdfbSmrg VERSION='1.3.0'
2700f46a6179Smrg
2701f46a6179Smrg
2702f46a6179Smrgcat >>confdefs.h <<_ACEOF
2703f46a6179Smrg#define PACKAGE "$PACKAGE"
2704f46a6179Smrg_ACEOF
2705f46a6179Smrg
2706f46a6179Smrg
2707f46a6179Smrgcat >>confdefs.h <<_ACEOF
2708f46a6179Smrg#define VERSION "$VERSION"
2709f46a6179Smrg_ACEOF
2710f46a6179Smrg
2711f46a6179Smrg# Some tools Automake needs.
2712f46a6179Smrg
2713f46a6179SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2714f46a6179Smrg
2715f46a6179Smrg
2716f46a6179SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2717f46a6179Smrg
2718f46a6179Smrg
2719f46a6179SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2720f46a6179Smrg
2721f46a6179Smrg
2722f46a6179SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2723f46a6179Smrg
2724f46a6179Smrg
2725f46a6179SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2726f46a6179Smrg
2727c82dfdfbSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
2728c82dfdfbSmrg# dies out for good.  For more background, see:
2729c82dfdfbSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2730c82dfdfbSmrg# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2731c82dfdfbSmrgmkdir_p='$(MKDIR_P)'
2732c82dfdfbSmrg
2733f46a6179Smrg# We need awk for the "check" target.  The system "awk" is bad on
2734f46a6179Smrg# some platforms.
2735c82dfdfbSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
2736c82dfdfbSmrg# in the wild :-(  We should find a proper way to deprecate it ...
2737c82dfdfbSmrgAMTAR='$${TAR-tar}'
2738f46a6179Smrg
2739f46a6179Smrg
2740c82dfdfbSmrg# We'll loop over all known methods to create a tar archive until one works.
2741c82dfdfbSmrg_am_tools='gnutar  pax cpio none'
2742f46a6179Smrg
2743c82dfdfbSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2744f46a6179Smrg
2745f46a6179Smrg
2746f46a6179Smrg
2747f46a6179Smrg
274834345a63Smrg
2749f46a6179Smrg
2750c82dfdfbSmrg# POSIX will say in a future version that running "rm -f" with no argument
2751c82dfdfbSmrg# is OK; and we want to be able to make that assumption in our Makefile
2752c82dfdfbSmrg# recipes.  So use an aggressive probe to check that the usage we want is
2753c82dfdfbSmrg# actually supported "in the wild" to an acceptable degree.
2754c82dfdfbSmrg# See automake bug#10828.
2755c82dfdfbSmrg# To make any issue more visible, cause the running configure to be aborted
2756c82dfdfbSmrg# by default if the 'rm' program in use doesn't match our expectations; the
2757c82dfdfbSmrg# user can still override this though.
2758c82dfdfbSmrgif rm -f && rm -fr && rm -rf; then : OK; else
2759c82dfdfbSmrg  cat >&2 <<'END'
2760c82dfdfbSmrgOops!
2761c82dfdfbSmrg
2762c82dfdfbSmrgYour 'rm' program seems unable to run without file operands specified
2763c82dfdfbSmrgon the command line, even when the '-f' option is present.  This is contrary
2764c82dfdfbSmrgto the behaviour of most rm programs out there, and not conforming with
2765c82dfdfbSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2766c82dfdfbSmrg
2767c82dfdfbSmrgPlease tell bug-automake@gnu.org about your system, including the value
2768c82dfdfbSmrgof your $PATH and any error possibly output before this message.  This
2769c82dfdfbSmrgcan help us improve future automake versions.
2770c82dfdfbSmrg
2771c82dfdfbSmrgEND
2772c82dfdfbSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2773c82dfdfbSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
2774c82dfdfbSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2775c82dfdfbSmrg    echo >&2
2776c82dfdfbSmrg  else
2777c82dfdfbSmrg    cat >&2 <<'END'
2778c82dfdfbSmrgAborting the configuration process, to ensure you take notice of the issue.
2779f46a6179Smrg
2780c82dfdfbSmrgYou can download and install GNU coreutils to get an 'rm' implementation
2781c82dfdfbSmrgthat behaves properly: <http://www.gnu.org/software/coreutils/>.
2782f46a6179Smrg
2783c82dfdfbSmrgIf you want to complete the configuration process using your problematic
2784c82dfdfbSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2785c82dfdfbSmrgto "yes", and re-run configure.
2786f46a6179Smrg
2787c82dfdfbSmrgEND
2788c82dfdfbSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2789c82dfdfbSmrg  fi
2790c82dfdfbSmrgfi
2791f46a6179Smrg
279283e5f723Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
27935fac8b10Smrg
27945fac8b10Smrg
27955fac8b10Smrg
27965fac8b10Smrg
27975fac8b10Smrg
27985fac8b10Smrg
27995fac8b10Smrg
28005fac8b10Smrg
280134345a63Smrg
280234345a63Smrg
2803f46a6179Smrg
280483e5f723SmrgDEPDIR="${am__leading_dot}deps"
2805f46a6179Smrg
280683e5f723Smrgac_config_commands="$ac_config_commands depfiles"
2807f46a6179Smrg
2808f46a6179Smrg
280983e5f723Smrgam_make=${MAKE-make}
281083e5f723Smrgcat > confinc << 'END'
281183e5f723Smrgam__doit:
281283e5f723Smrg	@echo this is the am__doit target
281383e5f723Smrg.PHONY: am__doit
281483e5f723SmrgEND
281583e5f723Smrg# If we don't find an include directive, just comment out the code.
281683e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
281783e5f723Smrg$as_echo_n "checking for style of include used by $am_make... " >&6; }
281883e5f723Smrgam__include="#"
281983e5f723Smrgam__quote=
282083e5f723Smrg_am_result=none
282183e5f723Smrg# First try GNU make style include.
282283e5f723Smrgecho "include confinc" > confmf
2823c82dfdfbSmrg# Ignore all kinds of additional output from 'make'.
282483e5f723Smrgcase `$am_make -s -f confmf 2> /dev/null` in #(
282583e5f723Smrg*the\ am__doit\ target*)
282683e5f723Smrg  am__include=include
282783e5f723Smrg  am__quote=
282883e5f723Smrg  _am_result=GNU
282983e5f723Smrg  ;;
283083e5f723Smrgesac
283183e5f723Smrg# Now try BSD make style include.
283283e5f723Smrgif test "$am__include" = "#"; then
283383e5f723Smrg   echo '.include "confinc"' > confmf
283483e5f723Smrg   case `$am_make -s -f confmf 2> /dev/null` in #(
283583e5f723Smrg   *the\ am__doit\ target*)
283683e5f723Smrg     am__include=.include
283783e5f723Smrg     am__quote="\""
283883e5f723Smrg     _am_result=BSD
283983e5f723Smrg     ;;
284083e5f723Smrg   esac
284183e5f723Smrgfi
284283e5f723Smrg
284383e5f723Smrg
284483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
284583e5f723Smrg$as_echo "$_am_result" >&6; }
284683e5f723Smrgrm -f confinc confmf
284783e5f723Smrg
284883e5f723Smrg# Check whether --enable-dependency-tracking was given.
284983e5f723Smrgif test "${enable_dependency_tracking+set}" = set; then :
285083e5f723Smrg  enableval=$enable_dependency_tracking;
285183e5f723Smrgfi
285283e5f723Smrg
285383e5f723Smrgif test "x$enable_dependency_tracking" != xno; then
285483e5f723Smrg  am_depcomp="$ac_aux_dir/depcomp"
285583e5f723Smrg  AMDEPBACKSLASH='\'
2856c82dfdfbSmrg  am__nodep='_no'
285783e5f723Smrgfi
285883e5f723Smrg if test "x$enable_dependency_tracking" != xno; then
285983e5f723Smrg  AMDEP_TRUE=
286083e5f723Smrg  AMDEP_FALSE='#'
286183e5f723Smrgelse
286283e5f723Smrg  AMDEP_TRUE='#'
286383e5f723Smrg  AMDEP_FALSE=
286483e5f723Smrgfi
286583e5f723Smrg
286683e5f723Smrg
286783e5f723Smrgac_ext=c
286883e5f723Smrgac_cpp='$CPP $CPPFLAGS'
286983e5f723Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
287083e5f723Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
287183e5f723Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
287283e5f723Smrgif test -n "$ac_tool_prefix"; then
287383e5f723Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
287483e5f723Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
287583e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
287683e5f723Smrg$as_echo_n "checking for $ac_word... " >&6; }
2877690143ccSmrgif ${ac_cv_prog_CC+:} false; then :
287883e5f723Smrg  $as_echo_n "(cached) " >&6
287983e5f723Smrgelse
288083e5f723Smrg  if test -n "$CC"; then
288183e5f723Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
288283e5f723Smrgelse
288383e5f723Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
288483e5f723Smrgfor as_dir in $PATH
288583e5f723Smrgdo
288683e5f723Smrg  IFS=$as_save_IFS
288783e5f723Smrg  test -z "$as_dir" && as_dir=.
288883e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2889c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
289083e5f723Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
289183e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
289283e5f723Smrg    break 2
289383e5f723Smrg  fi
289483e5f723Smrgdone
289583e5f723Smrg  done
289683e5f723SmrgIFS=$as_save_IFS
289783e5f723Smrg
289883e5f723Smrgfi
289983e5f723Smrgfi
290083e5f723SmrgCC=$ac_cv_prog_CC
290183e5f723Smrgif test -n "$CC"; then
290283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
290383e5f723Smrg$as_echo "$CC" >&6; }
290483e5f723Smrgelse
290583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
290683e5f723Smrg$as_echo "no" >&6; }
290783e5f723Smrgfi
290883e5f723Smrg
290983e5f723Smrg
291083e5f723Smrgfi
291183e5f723Smrgif test -z "$ac_cv_prog_CC"; then
291283e5f723Smrg  ac_ct_CC=$CC
291383e5f723Smrg  # Extract the first word of "gcc", so it can be a program name with args.
291483e5f723Smrgset dummy gcc; ac_word=$2
291583e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
291683e5f723Smrg$as_echo_n "checking for $ac_word... " >&6; }
2917690143ccSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
291834345a63Smrg  $as_echo_n "(cached) " >&6
2919f46a6179Smrgelse
2920f46a6179Smrg  if test -n "$ac_ct_CC"; then
2921f46a6179Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922f46a6179Smrgelse
2923f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924f46a6179Smrgfor as_dir in $PATH
2925f46a6179Smrgdo
2926f46a6179Smrg  IFS=$as_save_IFS
2927f46a6179Smrg  test -z "$as_dir" && as_dir=.
292883e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2929c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930f46a6179Smrg    ac_cv_prog_ac_ct_CC="gcc"
293183e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932f46a6179Smrg    break 2
2933f46a6179Smrg  fi
2934f46a6179Smrgdone
293583e5f723Smrg  done
2936f46a6179SmrgIFS=$as_save_IFS
2937f46a6179Smrg
2938f46a6179Smrgfi
2939f46a6179Smrgfi
2940f46a6179Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
2941f46a6179Smrgif test -n "$ac_ct_CC"; then
294283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
294334345a63Smrg$as_echo "$ac_ct_CC" >&6; }
2944f46a6179Smrgelse
294583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
294634345a63Smrg$as_echo "no" >&6; }
2947f46a6179Smrgfi
2948f46a6179Smrg
2949f46a6179Smrg  if test "x$ac_ct_CC" = x; then
2950f46a6179Smrg    CC=""
2951f46a6179Smrg  else
2952f46a6179Smrg    case $cross_compiling:$ac_tool_warned in
2953f46a6179Smrgyes:)
295483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
295534345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956f46a6179Smrgac_tool_warned=yes ;;
2957f46a6179Smrgesac
2958f46a6179Smrg    CC=$ac_ct_CC
2959f46a6179Smrg  fi
2960f46a6179Smrgelse
2961f46a6179Smrg  CC="$ac_cv_prog_CC"
2962f46a6179Smrgfi
2963f46a6179Smrg
2964f46a6179Smrgif test -z "$CC"; then
2965f46a6179Smrg          if test -n "$ac_tool_prefix"; then
2966f46a6179Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2967f46a6179Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
296883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
296934345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
2970690143ccSmrgif ${ac_cv_prog_CC+:} false; then :
297134345a63Smrg  $as_echo_n "(cached) " >&6
2972f46a6179Smrgelse
2973f46a6179Smrg  if test -n "$CC"; then
2974f46a6179Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
2975f46a6179Smrgelse
2976f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977f46a6179Smrgfor as_dir in $PATH
2978f46a6179Smrgdo
2979f46a6179Smrg  IFS=$as_save_IFS
2980f46a6179Smrg  test -z "$as_dir" && as_dir=.
298183e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2982c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983f46a6179Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
298483e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985f46a6179Smrg    break 2
2986f46a6179Smrg  fi
2987f46a6179Smrgdone
298883e5f723Smrg  done
2989f46a6179SmrgIFS=$as_save_IFS
2990f46a6179Smrg
2991f46a6179Smrgfi
2992f46a6179Smrgfi
2993f46a6179SmrgCC=$ac_cv_prog_CC
2994f46a6179Smrgif test -n "$CC"; then
299583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
299634345a63Smrg$as_echo "$CC" >&6; }
2997f46a6179Smrgelse
299883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
299934345a63Smrg$as_echo "no" >&6; }
3000f46a6179Smrgfi
3001f46a6179Smrg
3002f46a6179Smrg
3003f46a6179Smrg  fi
3004f46a6179Smrgfi
3005f46a6179Smrgif test -z "$CC"; then
3006f46a6179Smrg  # Extract the first word of "cc", so it can be a program name with args.
3007f46a6179Smrgset dummy cc; ac_word=$2
300883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
300934345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
3010690143ccSmrgif ${ac_cv_prog_CC+:} false; then :
301134345a63Smrg  $as_echo_n "(cached) " >&6
3012f46a6179Smrgelse
3013f46a6179Smrg  if test -n "$CC"; then
3014f46a6179Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3015f46a6179Smrgelse
3016f46a6179Smrg  ac_prog_rejected=no
3017f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018f46a6179Smrgfor as_dir in $PATH
3019f46a6179Smrgdo
3020f46a6179Smrg  IFS=$as_save_IFS
3021f46a6179Smrg  test -z "$as_dir" && as_dir=.
302283e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3023c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024f46a6179Smrg    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3025f46a6179Smrg       ac_prog_rejected=yes
3026f46a6179Smrg       continue
3027f46a6179Smrg     fi
3028f46a6179Smrg    ac_cv_prog_CC="cc"
302983e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030f46a6179Smrg    break 2
3031f46a6179Smrg  fi
3032f46a6179Smrgdone
303383e5f723Smrg  done
3034f46a6179SmrgIFS=$as_save_IFS
3035f46a6179Smrg
3036f46a6179Smrgif test $ac_prog_rejected = yes; then
3037f46a6179Smrg  # We found a bogon in the path, so make sure we never use it.
3038f46a6179Smrg  set dummy $ac_cv_prog_CC
3039f46a6179Smrg  shift
3040f46a6179Smrg  if test $# != 0; then
3041f46a6179Smrg    # We chose a different compiler from the bogus one.
3042f46a6179Smrg    # However, it has the same basename, so the bogon will be chosen
3043f46a6179Smrg    # first if we set CC to just the basename; use the full file name.
3044f46a6179Smrg    shift
3045f46a6179Smrg    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3046f46a6179Smrg  fi
3047f46a6179Smrgfi
3048f46a6179Smrgfi
3049f46a6179Smrgfi
3050f46a6179SmrgCC=$ac_cv_prog_CC
3051f46a6179Smrgif test -n "$CC"; then
305283e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
305334345a63Smrg$as_echo "$CC" >&6; }
3054f46a6179Smrgelse
305583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
305634345a63Smrg$as_echo "no" >&6; }
3057f46a6179Smrgfi
3058f46a6179Smrg
3059f46a6179Smrg
3060f46a6179Smrgfi
3061f46a6179Smrgif test -z "$CC"; then
3062f46a6179Smrg  if test -n "$ac_tool_prefix"; then
3063f46a6179Smrg  for ac_prog in cl.exe
3064f46a6179Smrg  do
3065f46a6179Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3066f46a6179Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
306783e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
306834345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
3069690143ccSmrgif ${ac_cv_prog_CC+:} false; then :
307034345a63Smrg  $as_echo_n "(cached) " >&6
3071f46a6179Smrgelse
3072f46a6179Smrg  if test -n "$CC"; then
3073f46a6179Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3074f46a6179Smrgelse
3075f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076f46a6179Smrgfor as_dir in $PATH
3077f46a6179Smrgdo
3078f46a6179Smrg  IFS=$as_save_IFS
3079f46a6179Smrg  test -z "$as_dir" && as_dir=.
308083e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3081c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082f46a6179Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
308383e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084f46a6179Smrg    break 2
3085f46a6179Smrg  fi
3086f46a6179Smrgdone
308783e5f723Smrg  done
3088f46a6179SmrgIFS=$as_save_IFS
3089f46a6179Smrg
3090f46a6179Smrgfi
3091f46a6179Smrgfi
3092f46a6179SmrgCC=$ac_cv_prog_CC
3093f46a6179Smrgif test -n "$CC"; then
309483e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
309534345a63Smrg$as_echo "$CC" >&6; }
3096f46a6179Smrgelse
309783e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
309834345a63Smrg$as_echo "no" >&6; }
3099f46a6179Smrgfi
3100f46a6179Smrg
3101f46a6179Smrg
3102f46a6179Smrg    test -n "$CC" && break
3103f46a6179Smrg  done
3104f46a6179Smrgfi
3105f46a6179Smrgif test -z "$CC"; then
3106f46a6179Smrg  ac_ct_CC=$CC
3107f46a6179Smrg  for ac_prog in cl.exe
3108f46a6179Smrgdo
3109f46a6179Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
3110f46a6179Smrgset dummy $ac_prog; ac_word=$2
311183e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
311234345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
3113690143ccSmrgif ${ac_cv_prog_ac_ct_CC+:} false; then :
311434345a63Smrg  $as_echo_n "(cached) " >&6
3115f46a6179Smrgelse
3116f46a6179Smrg  if test -n "$ac_ct_CC"; then
3117f46a6179Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3118f46a6179Smrgelse
3119f46a6179Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120f46a6179Smrgfor as_dir in $PATH
3121f46a6179Smrgdo
3122f46a6179Smrg  IFS=$as_save_IFS
3123f46a6179Smrg  test -z "$as_dir" && as_dir=.
312483e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3125c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126f46a6179Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
312783e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128f46a6179Smrg    break 2
3129f46a6179Smrg  fi
3130f46a6179Smrgdone
313183e5f723Smrg  done
3132f46a6179SmrgIFS=$as_save_IFS
3133f46a6179Smrg
3134f46a6179Smrgfi
3135f46a6179Smrgfi
3136f46a6179Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3137f46a6179Smrgif test -n "$ac_ct_CC"; then
313883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
313934345a63Smrg$as_echo "$ac_ct_CC" >&6; }
3140f46a6179Smrgelse
314183e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
314234345a63Smrg$as_echo "no" >&6; }
3143f46a6179Smrgfi
3144f46a6179Smrg
3145f46a6179Smrg
3146f46a6179Smrg  test -n "$ac_ct_CC" && break
3147f46a6179Smrgdone
3148f46a6179Smrg
3149f46a6179Smrg  if test "x$ac_ct_CC" = x; then
3150f46a6179Smrg    CC=""
3151f46a6179Smrg  else
3152f46a6179Smrg    case $cross_compiling:$ac_tool_warned in
3153f46a6179Smrgyes:)
315483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
315534345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3156f46a6179Smrgac_tool_warned=yes ;;
3157f46a6179Smrgesac
3158f46a6179Smrg    CC=$ac_ct_CC
3159f46a6179Smrg  fi
3160f46a6179Smrgfi
3161f46a6179Smrg
3162f46a6179Smrgfi
3163f46a6179Smrg
3164f46a6179Smrg
316583e5f723Smrgtest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
316634345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
316783e5f723Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
316883e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
3169f46a6179Smrg
3170f46a6179Smrg# Provide some information about the compiler.
317183e5f723Smrg$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
317234345a63Smrgset X $ac_compile
317334345a63Smrgac_compiler=$2
317483e5f723Smrgfor ac_option in --version -v -V -qversion; do
317583e5f723Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3176f46a6179Smrgcase "(($ac_try" in
3177f46a6179Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178f46a6179Smrg  *) ac_try_echo=$ac_try;;
3179f46a6179Smrgesac
318083e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
318183e5f723Smrg$as_echo "$ac_try_echo"; } >&5
318283e5f723Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3183f46a6179Smrg  ac_status=$?
318483e5f723Smrg  if test -s conftest.err; then
318583e5f723Smrg    sed '10a\
318683e5f723Smrg... rest of stderr output deleted ...
318783e5f723Smrg         10q' conftest.err >conftest.er1
318883e5f723Smrg    cat conftest.er1 >&5
318983e5f723Smrg  fi
319083e5f723Smrg  rm -f conftest.er1 conftest.err
319183e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
319283e5f723Smrg  test $ac_status = 0; }
319383e5f723Smrgdone
3194f46a6179Smrg
319583e5f723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196f46a6179Smrg/* end confdefs.h.  */
3197f46a6179Smrg
3198f46a6179Smrgint
3199f46a6179Smrgmain ()
3200f46a6179Smrg{
3201f46a6179Smrg
3202f46a6179Smrg  ;
3203f46a6179Smrg  return 0;
3204f46a6179Smrg}
3205f46a6179Smrg_ACEOF
3206f46a6179Smrgac_clean_files_save=$ac_clean_files
320734345a63Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3208f46a6179Smrg# Try to create an executable without -o first, disregard a.out.
3209f46a6179Smrg# It will help us diagnose broken compilers, and finding out an intuition
3210f46a6179Smrg# of exeext.
321183e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
321283e5f723Smrg$as_echo_n "checking whether the C compiler works... " >&6; }
321334345a63Smrgac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
321434345a63Smrg
321534345a63Smrg# The possible output files:
321634345a63Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
321734345a63Smrg
3218f46a6179Smrgac_rmfiles=
3219f46a6179Smrgfor ac_file in $ac_files
3220f46a6179Smrgdo
3221f46a6179Smrg  case $ac_file in
322234345a63Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3223f46a6179Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3224f46a6179Smrg  esac
3225f46a6179Smrgdone
3226f46a6179Smrgrm -f $ac_rmfiles
3227f46a6179Smrg
322883e5f723Smrgif { { ac_try="$ac_link_default"
3229f46a6179Smrgcase "(($ac_try" in
3230f46a6179Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231f46a6179Smrg  *) ac_try_echo=$ac_try;;
3232f46a6179Smrgesac
323383e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
323483e5f723Smrg$as_echo "$ac_try_echo"; } >&5
3235f46a6179Smrg  (eval "$ac_link_default") 2>&5
3236f46a6179Smrg  ac_status=$?
323783e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
323883e5f723Smrg  test $ac_status = 0; }; then :
3239f46a6179Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3240f46a6179Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3241f46a6179Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3242f46a6179Smrg# so that the user can short-circuit this test for compilers unknown to
3243f46a6179Smrg# Autoconf.
3244f46a6179Smrgfor ac_file in $ac_files ''
3245f46a6179Smrgdo
3246f46a6179Smrg  test -f "$ac_file" || continue
3247f46a6179Smrg  case $ac_file in
324834345a63Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3249f46a6179Smrg	;;
3250f46a6179Smrg    [ab].out )
3251f46a6179Smrg	# We found the default executable, but exeext='' is most
3252f46a6179Smrg	# certainly right.
3253f46a6179Smrg	break;;
3254f46a6179Smrg    *.* )
325583e5f723Smrg	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3256f46a6179Smrg	then :; else
3257f46a6179Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3258f46a6179Smrg	fi
3259f46a6179Smrg	# We set ac_cv_exeext here because the later test for it is not
3260f46a6179Smrg	# safe: cross compilers may not add the suffix if given an `-o'
3261f46a6179Smrg	# argument, so we may need to know it at that point already.
3262f46a6179Smrg	# Even if this section looks crufty: it has the advantage of
3263f46a6179Smrg	# actually working.
3264f46a6179Smrg	break;;
3265f46a6179Smrg    * )
3266f46a6179Smrg	break;;
3267f46a6179Smrg  esac
3268f46a6179Smrgdone
3269f46a6179Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3270f46a6179Smrg
3271f46a6179Smrgelse
3272f46a6179Smrg  ac_file=''
3273f46a6179Smrgfi
327483e5f723Smrgif test -z "$ac_file"; then :
327583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
327683e5f723Smrg$as_echo "no" >&6; }
327783e5f723Smrg$as_echo "$as_me: failed program was:" >&5
3278f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5
3279f46a6179Smrg
328083e5f723Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
328134345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
328283e5f723Smrgas_fn_error 77 "C compiler cannot create executables
328383e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
328483e5f723Smrgelse
328583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
328683e5f723Smrg$as_echo "yes" >&6; }
3287f46a6179Smrgfi
328883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
328983e5f723Smrg$as_echo_n "checking for C compiler default output file name... " >&6; }
329083e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
329183e5f723Smrg$as_echo "$ac_file" >&6; }
3292f46a6179Smrgac_exeext=$ac_cv_exeext
3293f46a6179Smrg
329434345a63Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3295f46a6179Smrgac_clean_files=$ac_clean_files_save
329683e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
329734345a63Smrg$as_echo_n "checking for suffix of executables... " >&6; }
329883e5f723Smrgif { { ac_try="$ac_link"
3299f46a6179Smrgcase "(($ac_try" in
3300f46a6179Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301f46a6179Smrg  *) ac_try_echo=$ac_try;;
3302f46a6179Smrgesac
330383e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
330483e5f723Smrg$as_echo "$ac_try_echo"; } >&5
3305f46a6179Smrg  (eval "$ac_link") 2>&5
3306f46a6179Smrg  ac_status=$?
330783e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
330883e5f723Smrg  test $ac_status = 0; }; then :
3309f46a6179Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310f46a6179Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3311f46a6179Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
3312f46a6179Smrg# `rm'.
3313f46a6179Smrgfor ac_file in conftest.exe conftest conftest.*; do
3314f46a6179Smrg  test -f "$ac_file" || continue
3315f46a6179Smrg  case $ac_file in
331634345a63Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317f46a6179Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3318f46a6179Smrg	  break;;
3319f46a6179Smrg    * ) break;;
3320f46a6179Smrg  esac
3321f46a6179Smrgdone
3322f46a6179Smrgelse
332383e5f723Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
332434345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
332583e5f723Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
332683e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
3327f46a6179Smrgfi
332883e5f723Smrgrm -f conftest conftest$ac_cv_exeext
332983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
333034345a63Smrg$as_echo "$ac_cv_exeext" >&6; }
3331f46a6179Smrg
3332f46a6179Smrgrm -f conftest.$ac_ext
3333f46a6179SmrgEXEEXT=$ac_cv_exeext
3334f46a6179Smrgac_exeext=$EXEEXT
333583e5f723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
333683e5f723Smrg/* end confdefs.h.  */
333783e5f723Smrg#include <stdio.h>
333883e5f723Smrgint
333983e5f723Smrgmain ()
334083e5f723Smrg{
334183e5f723SmrgFILE *f = fopen ("conftest.out", "w");
334283e5f723Smrg return ferror (f) || fclose (f) != 0;
334383e5f723Smrg
334483e5f723Smrg  ;
334583e5f723Smrg  return 0;
334683e5f723Smrg}
334783e5f723Smrg_ACEOF
334883e5f723Smrgac_clean_files="$ac_clean_files conftest.out"
334983e5f723Smrg# Check that the compiler produces executables we can run.  If not, either
335083e5f723Smrg# the compiler is broken, or we cross compile.
335183e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
335283e5f723Smrg$as_echo_n "checking whether we are cross compiling... " >&6; }
335383e5f723Smrgif test "$cross_compiling" != yes; then
335483e5f723Smrg  { { ac_try="$ac_link"
335583e5f723Smrgcase "(($ac_try" in
335683e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
335783e5f723Smrg  *) ac_try_echo=$ac_try;;
335883e5f723Smrgesac
335983e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
336083e5f723Smrg$as_echo "$ac_try_echo"; } >&5
336183e5f723Smrg  (eval "$ac_link") 2>&5
336283e5f723Smrg  ac_status=$?
336383e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
336483e5f723Smrg  test $ac_status = 0; }
336583e5f723Smrg  if { ac_try='./conftest$ac_cv_exeext'
336683e5f723Smrg  { { case "(($ac_try" in
336783e5f723Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
336883e5f723Smrg  *) ac_try_echo=$ac_try;;
336983e5f723Smrgesac
337083e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
337183e5f723Smrg$as_echo "$ac_try_echo"; } >&5
337283e5f723Smrg  (eval "$ac_try") 2>&5
337383e5f723Smrg  ac_status=$?
337483e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
337583e5f723Smrg  test $ac_status = 0; }; }; then
337683e5f723Smrg    cross_compiling=no
337783e5f723Smrg  else
337883e5f723Smrg    if test "$cross_compiling" = maybe; then
337983e5f723Smrg	cross_compiling=yes
338083e5f723Smrg    else
338183e5f723Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
338283e5f723Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
338383e5f723Smrgas_fn_error $? "cannot run C compiled programs.
338483e5f723SmrgIf you meant to cross compile, use \`--host'.
338583e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
338683e5f723Smrg    fi
338783e5f723Smrg  fi
338883e5f723Smrgfi
338983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
339083e5f723Smrg$as_echo "$cross_compiling" >&6; }
339183e5f723Smrg
339283e5f723Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
339383e5f723Smrgac_clean_files=$ac_clean_files_save
339483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
339534345a63Smrg$as_echo_n "checking for suffix of object files... " >&6; }
3396690143ccSmrgif ${ac_cv_objext+:} false; then :
339734345a63Smrg  $as_echo_n "(cached) " >&6
3398f46a6179Smrgelse
339983e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400f46a6179Smrg/* end confdefs.h.  */
3401f46a6179Smrg
3402f46a6179Smrgint
3403f46a6179Smrgmain ()
3404f46a6179Smrg{
3405f46a6179Smrg
3406f46a6179Smrg  ;
3407f46a6179Smrg  return 0;
3408f46a6179Smrg}
3409f46a6179Smrg_ACEOF
3410f46a6179Smrgrm -f conftest.o conftest.obj
341183e5f723Smrgif { { ac_try="$ac_compile"
3412f46a6179Smrgcase "(($ac_try" in
3413f46a6179Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414f46a6179Smrg  *) ac_try_echo=$ac_try;;
3415f46a6179Smrgesac
341683e5f723Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
341783e5f723Smrg$as_echo "$ac_try_echo"; } >&5
3418f46a6179Smrg  (eval "$ac_compile") 2>&5
3419f46a6179Smrg  ac_status=$?
342083e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
342183e5f723Smrg  test $ac_status = 0; }; then :
3422f46a6179Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
3423f46a6179Smrg  test -f "$ac_file" || continue;
3424f46a6179Smrg  case $ac_file in
342534345a63Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3426f46a6179Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427f46a6179Smrg       break;;
3428f46a6179Smrg  esac
3429f46a6179Smrgdone
3430f46a6179Smrgelse
343134345a63Smrg  $as_echo "$as_me: failed program was:" >&5
3432f46a6179Smrgsed 's/^/| /' conftest.$ac_ext >&5
3433f46a6179Smrg
343483e5f723Smrg{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
343534345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
343683e5f723Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
343783e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
3438f46a6179Smrgfi
3439f46a6179Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
3440f46a6179Smrgfi
344183e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
344234345a63Smrg$as_echo "$ac_cv_objext" >&6; }
3443f46a6179SmrgOBJEXT=$ac_cv_objext
3444f46a6179Smrgac_objext=$OBJEXT
344583e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
344634345a63Smrg$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3447690143ccSmrgif ${ac_cv_c_compiler_gnu+:} false; then :
344834345a63Smrg  $as_echo_n "(cached) " >&6
3449f46a6179Smrgelse
345083e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451f46a6179Smrg/* end confdefs.h.  */
3452f46a6179Smrg
3453f46a6179Smrgint
3454f46a6179Smrgmain ()
3455f46a6179Smrg{
3456f46a6179Smrg#ifndef __GNUC__
3457f46a6179Smrg       choke me
3458f46a6179Smrg#endif
3459f46a6179Smrg
3460f46a6179Smrg  ;
3461f46a6179Smrg  return 0;
3462f46a6179Smrg}
3463f46a6179Smrg_ACEOF
346483e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
3465f46a6179Smrg  ac_compiler_gnu=yes
3466f46a6179Smrgelse
346783e5f723Smrg  ac_compiler_gnu=no
3468f46a6179Smrgfi
3469f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470f46a6179Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
3471f46a6179Smrg
3472f46a6179Smrgfi
347383e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
347434345a63Smrg$as_echo "$ac_cv_c_compiler_gnu" >&6; }
347534345a63Smrgif test $ac_compiler_gnu = yes; then
347634345a63Smrg  GCC=yes
347734345a63Smrgelse
347834345a63Smrg  GCC=
347934345a63Smrgfi
3480f46a6179Smrgac_test_CFLAGS=${CFLAGS+set}
3481f46a6179Smrgac_save_CFLAGS=$CFLAGS
348283e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
348334345a63Smrg$as_echo_n "checking whether $CC accepts -g... " >&6; }
3484690143ccSmrgif ${ac_cv_prog_cc_g+:} false; then :
348534345a63Smrg  $as_echo_n "(cached) " >&6
3486f46a6179Smrgelse
3487f46a6179Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
3488f46a6179Smrg   ac_c_werror_flag=yes
3489f46a6179Smrg   ac_cv_prog_cc_g=no
3490f46a6179Smrg   CFLAGS="-g"
349183e5f723Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492f46a6179Smrg/* end confdefs.h.  */
3493f46a6179Smrg
3494f46a6179Smrgint
3495f46a6179Smrgmain ()
3496f46a6179Smrg{
3497f46a6179Smrg
3498f46a6179Smrg  ;
3499f46a6179Smrg  return 0;
3500f46a6179Smrg}
3501f46a6179Smrg_ACEOF
350283e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
3503f46a6179Smrg  ac_cv_prog_cc_g=yes
3504f46a6179Smrgelse
350583e5f723Smrg  CFLAGS=""
350683e5f723Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507f46a6179Smrg/* end confdefs.h.  */
3508f46a6179Smrg
3509f46a6179Smrgint
3510f46a6179Smrgmain ()
3511f46a6179Smrg{
3512f46a6179Smrg
3513f46a6179Smrg  ;
3514f46a6179Smrg  return 0;
3515f46a6179Smrg}
3516f46a6179Smrg_ACEOF
351783e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
3518f46a6179Smrg
351983e5f723Smrgelse
352083e5f723Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
3521f46a6179Smrg	 CFLAGS="-g"
352283e5f723Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523f46a6179Smrg/* end confdefs.h.  */
3524f46a6179Smrg
3525f46a6179Smrgint
3526f46a6179Smrgmain ()
3527f46a6179Smrg{
3528f46a6179Smrg
3529f46a6179Smrg  ;
3530f46a6179Smrg  return 0;
3531f46a6179Smrg}
3532f46a6179Smrg_ACEOF
353383e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
3534f46a6179Smrg  ac_cv_prog_cc_g=yes
3535f46a6179Smrgfi
3536f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537f46a6179Smrgfi
3538f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539f46a6179Smrgfi
3540f46a6179Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541f46a6179Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
3542f46a6179Smrgfi
354383e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
354434345a63Smrg$as_echo "$ac_cv_prog_cc_g" >&6; }
3545f46a6179Smrgif test "$ac_test_CFLAGS" = set; then
3546f46a6179Smrg  CFLAGS=$ac_save_CFLAGS
3547f46a6179Smrgelif test $ac_cv_prog_cc_g = yes; then
3548f46a6179Smrg  if test "$GCC" = yes; then
3549f46a6179Smrg    CFLAGS="-g -O2"
3550f46a6179Smrg  else
3551f46a6179Smrg    CFLAGS="-g"
3552f46a6179Smrg  fi
3553f46a6179Smrgelse
3554f46a6179Smrg  if test "$GCC" = yes; then
3555f46a6179Smrg    CFLAGS="-O2"
3556f46a6179Smrg  else
3557f46a6179Smrg    CFLAGS=
3558f46a6179Smrg  fi
3559f46a6179Smrgfi
356083e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
356134345a63Smrg$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3562690143ccSmrgif ${ac_cv_prog_cc_c89+:} false; then :
356334345a63Smrg  $as_echo_n "(cached) " >&6
3564f46a6179Smrgelse
3565f46a6179Smrg  ac_cv_prog_cc_c89=no
3566f46a6179Smrgac_save_CC=$CC
356783e5f723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568f46a6179Smrg/* end confdefs.h.  */
3569f46a6179Smrg#include <stdarg.h>
3570f46a6179Smrg#include <stdio.h>
3571c82dfdfbSmrgstruct stat;
3572f46a6179Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3573f46a6179Smrgstruct buf { int x; };
3574f46a6179SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int);
3575f46a6179Smrgstatic char *e (p, i)
3576f46a6179Smrg     char **p;
3577f46a6179Smrg     int i;
3578f46a6179Smrg{
3579f46a6179Smrg  return p[i];
3580f46a6179Smrg}
3581f46a6179Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
3582f46a6179Smrg{
3583f46a6179Smrg  char *s;
3584f46a6179Smrg  va_list v;
3585f46a6179Smrg  va_start (v,p);
3586f46a6179Smrg  s = g (p, va_arg (v,int));
3587f46a6179Smrg  va_end (v);
3588f46a6179Smrg  return s;
3589f46a6179Smrg}
3590f46a6179Smrg
3591f46a6179Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3592f46a6179Smrg   function prototypes and stuff, but not '\xHH' hex character constants.
3593f46a6179Smrg   These don't provoke an error unfortunately, instead are silently treated
3594f46a6179Smrg   as 'x'.  The following induces an error, until -std is added to get
3595f46a6179Smrg   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3596f46a6179Smrg   array size at least.  It's necessary to write '\x00'==0 to get something
3597f46a6179Smrg   that's true only with -std.  */
3598f46a6179Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1];
3599f46a6179Smrg
3600f46a6179Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3601f46a6179Smrg   inside strings and character constants.  */
3602f46a6179Smrg#define FOO(x) 'x'
3603f46a6179Smrgint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3604f46a6179Smrg
3605f46a6179Smrgint test (int i, double x);
3606f46a6179Smrgstruct s1 {int (*f) (int a);};
3607f46a6179Smrgstruct s2 {int (*f) (double a);};
3608f46a6179Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3609f46a6179Smrgint argc;
3610f46a6179Smrgchar **argv;
3611f46a6179Smrgint
3612f46a6179Smrgmain ()
3613f46a6179Smrg{
3614f46a6179Smrgreturn f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3615f46a6179Smrg  ;
3616f46a6179Smrg  return 0;
3617f46a6179Smrg}
3618f46a6179Smrg_ACEOF
3619f46a6179Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3620f46a6179Smrg	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3621f46a6179Smrgdo
3622f46a6179Smrg  CC="$ac_save_CC $ac_arg"
362383e5f723Smrg  if ac_fn_c_try_compile "$LINENO"; then :
3624f46a6179Smrg  ac_cv_prog_cc_c89=$ac_arg
3625f46a6179Smrgfi
3626f46a6179Smrgrm -f core conftest.err conftest.$ac_objext
3627f46a6179Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
3628f46a6179Smrgdone
3629f46a6179Smrgrm -f conftest.$ac_ext
3630f46a6179SmrgCC=$ac_save_CC
3631f46a6179Smrg
3632f46a6179Smrgfi
3633f46a6179Smrg# AC_CACHE_VAL
3634f46a6179Smrgcase "x$ac_cv_prog_cc_c89" in
3635f46a6179Smrg  x)
363683e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
363734345a63Smrg$as_echo "none needed" >&6; } ;;
3638f46a6179Smrg  xno)
363983e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
364034345a63Smrg$as_echo "unsupported" >&6; } ;;
3641f46a6179Smrg  *)
3642f46a6179Smrg    CC="$CC $ac_cv_prog_cc_c89"
364383e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
364434345a63Smrg$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3645f46a6179Smrgesac
364683e5f723Smrgif test "x$ac_cv_prog_cc_c89" != xno; then :
3647f46a6179Smrg
364883e5f723Smrgfi
3649f46a6179Smrg
3650f46a6179Smrgac_ext=c
3651f46a6179Smrgac_cpp='$CPP $CPPFLAGS'
3652f46a6179Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653f46a6179Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654f46a6179Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3655f46a6179Smrg
3656c82dfdfbSmrgac_ext=c
3657c82dfdfbSmrgac_cpp='$CPP $CPPFLAGS'
3658c82dfdfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659c82dfdfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660c82dfdfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3661c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3662c82dfdfbSmrg$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3663c82dfdfbSmrgif ${am_cv_prog_cc_c_o+:} false; then :
3664c82dfdfbSmrg  $as_echo_n "(cached) " >&6
3665c82dfdfbSmrgelse
3666c82dfdfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667c82dfdfbSmrg/* end confdefs.h.  */
3668c82dfdfbSmrg
3669c82dfdfbSmrgint
3670c82dfdfbSmrgmain ()
3671c82dfdfbSmrg{
3672c82dfdfbSmrg
3673c82dfdfbSmrg  ;
3674c82dfdfbSmrg  return 0;
3675c82dfdfbSmrg}
3676c82dfdfbSmrg_ACEOF
3677c82dfdfbSmrg  # Make sure it works both with $CC and with simple cc.
3678c82dfdfbSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
3679c82dfdfbSmrg  # compilers refuse to overwrite an existing .o file with -o,
3680c82dfdfbSmrg  # though they will create one.
3681c82dfdfbSmrg  am_cv_prog_cc_c_o=yes
3682c82dfdfbSmrg  for am_i in 1 2; do
3683c82dfdfbSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3684c82dfdfbSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3685c82dfdfbSmrg   ac_status=$?
3686c82dfdfbSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687c82dfdfbSmrg   (exit $ac_status); } \
3688c82dfdfbSmrg         && test -f conftest2.$ac_objext; then
3689c82dfdfbSmrg      : OK
3690c82dfdfbSmrg    else
3691c82dfdfbSmrg      am_cv_prog_cc_c_o=no
3692c82dfdfbSmrg      break
3693c82dfdfbSmrg    fi
3694c82dfdfbSmrg  done
3695c82dfdfbSmrg  rm -f core conftest*
3696c82dfdfbSmrg  unset am_i
3697c82dfdfbSmrgfi
3698c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3699c82dfdfbSmrg$as_echo "$am_cv_prog_cc_c_o" >&6; }
3700c82dfdfbSmrgif test "$am_cv_prog_cc_c_o" != yes; then
3701c82dfdfbSmrg   # Losing compiler, so override with the script.
3702c82dfdfbSmrg   # FIXME: It is wrong to rewrite CC.
3703c82dfdfbSmrg   # But if we don't then we get into trouble of one sort or another.
3704c82dfdfbSmrg   # A longer-term fix would be to have automake use am__CC in this case,
3705c82dfdfbSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3706c82dfdfbSmrg   CC="$am_aux_dir/compile $CC"
3707c82dfdfbSmrgfi
3708c82dfdfbSmrgac_ext=c
3709c82dfdfbSmrgac_cpp='$CPP $CPPFLAGS'
3710c82dfdfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711c82dfdfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712c82dfdfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3713c82dfdfbSmrg
3714c82dfdfbSmrg
3715f46a6179Smrgdepcc="$CC"   am_compiler_list=
3716f46a6179Smrg
371783e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
371834345a63Smrg$as_echo_n "checking dependency style of $depcc... " >&6; }
3719690143ccSmrgif ${am_cv_CC_dependencies_compiler_type+:} false; then :
372034345a63Smrg  $as_echo_n "(cached) " >&6
3721f46a6179Smrgelse
3722f46a6179Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3723f46a6179Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
3724f46a6179Smrg  # making bogus files that we don't know about and never remove.  For
3725f46a6179Smrg  # instance it was reported that on HP-UX the gcc test will end up
3726c82dfdfbSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
3727c82dfdfbSmrg  # in D".
3728c82dfdfbSmrg  rm -rf conftest.dir
3729f46a6179Smrg  mkdir conftest.dir
3730f46a6179Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
3731f46a6179Smrg  # using a relative directory.
3732f46a6179Smrg  cp "$am_depcomp" conftest.dir
3733f46a6179Smrg  cd conftest.dir
3734f46a6179Smrg  # We will build objects and dependencies in a subdirectory because
3735f46a6179Smrg  # it helps to detect inapplicable dependency modes.  For instance
3736f46a6179Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
3737f46a6179Smrg  # side effect of compilation, but ICC will put the dependencies in
3738f46a6179Smrg  # the current directory while Tru64 will put them in the object
3739f46a6179Smrg  # directory.
3740f46a6179Smrg  mkdir sub
3741f46a6179Smrg
3742f46a6179Smrg  am_cv_CC_dependencies_compiler_type=none
3743f46a6179Smrg  if test "$am_compiler_list" = ""; then
3744f46a6179Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3745f46a6179Smrg  fi
374634345a63Smrg  am__universal=false
374734345a63Smrg  case " $depcc " in #(
374834345a63Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
374934345a63Smrg     esac
375034345a63Smrg
3751f46a6179Smrg  for depmode in $am_compiler_list; do
3752f46a6179Smrg    # Setup a source with many dependencies, because some compilers
3753f46a6179Smrg    # like to wrap large dependency lists on column 80 (with \), and
3754f46a6179Smrg    # we should not choose a depcomp mode which is confused by this.
3755f46a6179Smrg    #
3756f46a6179Smrg    # We need to recreate these files for each test, as the compiler may
3757f46a6179Smrg    # overwrite some of them when testing with obscure command lines.
3758f46a6179Smrg    # This happens at least with the AIX C compiler.
3759f46a6179Smrg    : > sub/conftest.c
3760f46a6179Smrg    for i in 1 2 3 4 5 6; do
3761f46a6179Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3762c82dfdfbSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3763c82dfdfbSmrg      # Solaris 10 /bin/sh.
3764c82dfdfbSmrg      echo '/* dummy */' > sub/conftst$i.h
3765f46a6179Smrg    done
3766f46a6179Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3767f46a6179Smrg
3768c82dfdfbSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
376934345a63Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
3770c82dfdfbSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
3771c82dfdfbSmrg    # versions had trouble with output in subdirs.
377234345a63Smrg    am__obj=sub/conftest.${OBJEXT-o}
377334345a63Smrg    am__minus_obj="-o $am__obj"
3774f46a6179Smrg    case $depmode in
377534345a63Smrg    gcc)
377634345a63Smrg      # This depmode causes a compiler race in universal mode.
377734345a63Smrg      test "$am__universal" = false || continue
377834345a63Smrg      ;;
3779f46a6179Smrg    nosideeffect)
3780c82dfdfbSmrg      # After this tag, mechanisms are not by side-effect, so they'll
3781c82dfdfbSmrg      # only be used when explicitly requested.
3782f46a6179Smrg      if test "x$enable_dependency_tracking" = xyes; then
3783f46a6179Smrg	continue
3784f46a6179Smrg      else
3785f46a6179Smrg	break
3786f46a6179Smrg      fi
3787f46a6179Smrg      ;;
3788c82dfdfbSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3789c82dfdfbSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
379034345a63Smrg      # not run yet.  These depmodes are late enough in the game, and
379134345a63Smrg      # so weak that their functioning should not be impacted.
379234345a63Smrg      am__obj=conftest.${OBJEXT-o}
379334345a63Smrg      am__minus_obj=
379434345a63Smrg      ;;
3795f46a6179Smrg    none) break ;;
3796f46a6179Smrg    esac
3797f46a6179Smrg    if depmode=$depmode \
379834345a63Smrg       source=sub/conftest.c object=$am__obj \
3799f46a6179Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
380034345a63Smrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3801f46a6179Smrg         >/dev/null 2>conftest.err &&
3802f46a6179Smrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3803f46a6179Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
380434345a63Smrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3805f46a6179Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3806f46a6179Smrg      # icc doesn't choke on unknown options, it will just issue warnings
3807f46a6179Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
3808f46a6179Smrg      # that says an option was ignored or not supported.
3809f46a6179Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
3810f46a6179Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
3811f46a6179Smrg      # The diagnosis changed in icc 8.0:
3812f46a6179Smrg      #   icc: Command line remark: option '-MP' not supported
3813f46a6179Smrg      if (grep 'ignoring option' conftest.err ||
3814f46a6179Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3815f46a6179Smrg        am_cv_CC_dependencies_compiler_type=$depmode
3816f46a6179Smrg        break
3817f46a6179Smrg      fi
3818f46a6179Smrg    fi
3819f46a6179Smrg  done
3820f46a6179Smrg
3821f46a6179Smrg  cd ..
3822f46a6179Smrg  rm -rf conftest.dir
3823f46a6179Smrgelse
3824f46a6179Smrg  am_cv_CC_dependencies_compiler_type=none
3825f46a6179Smrgfi
3826f46a6179Smrg
3827f46a6179Smrgfi
382883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
382934345a63Smrg$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3830f46a6179SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3831f46a6179Smrg
3832f46a6179Smrg if
3833f46a6179Smrg  test "x$enable_dependency_tracking" != xno \
3834f46a6179Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3835f46a6179Smrg  am__fastdepCC_TRUE=
3836f46a6179Smrg  am__fastdepCC_FALSE='#'
3837f46a6179Smrgelse
3838f46a6179Smrg  am__fastdepCC_TRUE='#'
3839f46a6179Smrg  am__fastdepCC_FALSE=
3840f46a6179Smrgfi
3841f46a6179Smrg
3842f46a6179Smrg
384383e5f723Smrg   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
384483e5f723Smrg$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3845690143ccSmrgif ${ac_cv_prog_cc_c99+:} false; then :
384634345a63Smrg  $as_echo_n "(cached) " >&6
3847f46a6179Smrgelse
384883e5f723Smrg  ac_cv_prog_cc_c99=no
384983e5f723Smrgac_save_CC=$CC
385083e5f723Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
385183e5f723Smrg/* end confdefs.h.  */
385283e5f723Smrg#include <stdarg.h>
385383e5f723Smrg#include <stdbool.h>
385483e5f723Smrg#include <stdlib.h>
385583e5f723Smrg#include <wchar.h>
385683e5f723Smrg#include <stdio.h>
3857f46a6179Smrg
385883e5f723Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
385983e5f723Smrg#define debug(...) fprintf (stderr, __VA_ARGS__)
386083e5f723Smrg#define showlist(...) puts (#__VA_ARGS__)
386183e5f723Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
386283e5f723Smrgstatic void
386383e5f723Smrgtest_varargs_macros (void)
386483e5f723Smrg{
386583e5f723Smrg  int x = 1234;
386683e5f723Smrg  int y = 5678;
386783e5f723Smrg  debug ("Flag");
386883e5f723Smrg  debug ("X = %d\n", x);
386983e5f723Smrg  showlist (The first, second, and third items.);
387083e5f723Smrg  report (x>y, "x is %d but y is %d", x, y);
387183e5f723Smrg}
387234345a63Smrg
387383e5f723Smrg// Check long long types.
387483e5f723Smrg#define BIG64 18446744073709551615ull
387583e5f723Smrg#define BIG32 4294967295ul
387683e5f723Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
387783e5f723Smrg#if !BIG_OK
387883e5f723Smrg  your preprocessor is broken;
387983e5f723Smrg#endif
388083e5f723Smrg#if BIG_OK
388183e5f723Smrg#else
388283e5f723Smrg  your preprocessor is broken;
388383e5f723Smrg#endif
388483e5f723Smrgstatic long long int bignum = -9223372036854775807LL;
388583e5f723Smrgstatic unsigned long long int ubignum = BIG64;
388634345a63Smrg
388783e5f723Smrgstruct incomplete_array
388883e5f723Smrg{
388983e5f723Smrg  int datasize;
389083e5f723Smrg  double data[];
389183e5f723Smrg};
389234345a63Smrg
389383e5f723Smrgstruct named_init {
389483e5f723Smrg  int number;
389583e5f723Smrg  const wchar_t *name;
389683e5f723Smrg  double average;
389783e5f723Smrg};
389834345a63Smrg
389983e5f723Smrgtypedef const char *ccp;
390034345a63Smrg
390183e5f723Smrgstatic inline int
390283e5f723Smrgtest_restrict (ccp restrict text)
390383e5f723Smrg{
390483e5f723Smrg  // See if C++-style comments work.
390583e5f723Smrg  // Iterate through items via the restricted pointer.
390683e5f723Smrg  // Also check for declarations in for loops.
390783e5f723Smrg  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
390883e5f723Smrg    continue;
390983e5f723Smrg  return 0;
391083e5f723Smrg}
391134345a63Smrg
391283e5f723Smrg// Check varargs and va_copy.
391383e5f723Smrgstatic void
391483e5f723Smrgtest_varargs (const char *format, ...)
391583e5f723Smrg{
391683e5f723Smrg  va_list args;
391783e5f723Smrg  va_start (args, format);
391883e5f723Smrg  va_list args_copy;
391983e5f723Smrg  va_copy (args_copy, args);
392034345a63Smrg
392183e5f723Smrg  const char *str;
392283e5f723Smrg  int number;
392383e5f723Smrg  float fnumber;
392434345a63Smrg
392583e5f723Smrg  while (*format)
392683e5f723Smrg    {
392783e5f723Smrg      switch (*format++)
392883e5f723Smrg	{
392983e5f723Smrg	case 's': // string
393083e5f723Smrg	  str = va_arg (args_copy, const char *);
393183e5f723Smrg	  break;
393283e5f723Smrg	case 'd': // int
393383e5f723Smrg	  number = va_arg (args_copy, int);
393483e5f723Smrg	  break;
393583e5f723Smrg	case 'f': // float
393683e5f723Smrg	  fnumber = va_arg (args_copy, double);
393783e5f723Smrg	  break;
393883e5f723Smrg	default:
393983e5f723Smrg	  break;
394083e5f723Smrg	}
394183e5f723Smrg    }
394283e5f723Smrg  va_end (args_copy);
394383e5f723Smrg  va_end (args);
394483e5f723Smrg}
394534345a63Smrg
394683e5f723Smrgint
394783e5f723Smrgmain ()
394883e5f723Smrg{
394983e5f723Smrg
395083e5f723Smrg  // Check bool.
395183e5f723Smrg  _Bool success = false;
395283e5f723Smrg
395383e5f723Smrg  // Check restrict.
395483e5f723Smrg  if (test_restrict ("String literal") == 0)
395583e5f723Smrg    success = true;
395683e5f723Smrg  char *restrict newvar = "Another string";
395783e5f723Smrg
395883e5f723Smrg  // Check varargs.
395983e5f723Smrg  test_varargs ("s, d' f .", "string", 65, 34.234);
396083e5f723Smrg  test_varargs_macros ();
396183e5f723Smrg
396283e5f723Smrg  // Check flexible array members.
396383e5f723Smrg  struct incomplete_array *ia =
396483e5f723Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
396583e5f723Smrg  ia->datasize = 10;
396683e5f723Smrg  for (int i = 0; i < ia->datasize; ++i)
396783e5f723Smrg    ia->data[i] = i * 1.234;
396883e5f723Smrg
396983e5f723Smrg  // Check named initializers.
397083e5f723Smrg  struct named_init ni = {
397183e5f723Smrg    .number = 34,
397283e5f723Smrg    .name = L"Test wide string",
397383e5f723Smrg    .average = 543.34343,
397483e5f723Smrg  };
397583e5f723Smrg
397683e5f723Smrg  ni.number = 58;
397783e5f723Smrg
397883e5f723Smrg  int dynamic_array[ni.number];
397983e5f723Smrg  dynamic_array[ni.number - 1] = 543;
398083e5f723Smrg
398183e5f723Smrg  // work around unused variable warnings
398283e5f723Smrg  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
398383e5f723Smrg	  || dynamic_array[ni.number - 1] != 543);
398483e5f723Smrg
398583e5f723Smrg  ;
398683e5f723Smrg  return 0;
398783e5f723Smrg}
398883e5f723Smrg_ACEOF
3989c82dfdfbSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
399083e5f723Smrgdo
399183e5f723Smrg  CC="$ac_save_CC $ac_arg"
399283e5f723Smrg  if ac_fn_c_try_compile "$LINENO"; then :
399383e5f723Smrg  ac_cv_prog_cc_c99=$ac_arg
399483e5f723Smrgfi
399583e5f723Smrgrm -f core conftest.err conftest.$ac_objext
399683e5f723Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
399783e5f723Smrgdone
399883e5f723Smrgrm -f conftest.$ac_ext
399983e5f723SmrgCC=$ac_save_CC
400083e5f723Smrg
400183e5f723Smrgfi
400283e5f723Smrg# AC_CACHE_VAL
400383e5f723Smrgcase "x$ac_cv_prog_cc_c99" in
400483e5f723Smrg  x)
400583e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
400683e5f723Smrg$as_echo "none needed" >&6; } ;;
400783e5f723Smrg  xno)
400883e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
400983e5f723Smrg$as_echo "unsupported" >&6; } ;;
401083e5f723Smrg  *)
401183e5f723Smrg    CC="$CC $ac_cv_prog_cc_c99"
401283e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
401383e5f723Smrg$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
401483e5f723Smrgesac
401583e5f723Smrgif test "x$ac_cv_prog_cc_c99" != xno; then :
401683e5f723Smrg
401783e5f723Smrgfi
401834345a63Smrg
401934345a63Smrg
402034345a63Smrg
402134345a63Smrgac_ext=c
402234345a63Smrgac_cpp='$CPP $CPPFLAGS'
402334345a63Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
402434345a63Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
402534345a63Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
402683e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
402734345a63Smrg$as_echo_n "checking how to run the C preprocessor... " >&6; }
402834345a63Smrg# On Suns, sometimes $CPP names a directory.
402934345a63Smrgif test -n "$CPP" && test -d "$CPP"; then
403034345a63Smrg  CPP=
403134345a63Smrgfi
403234345a63Smrgif test -z "$CPP"; then
4033690143ccSmrg  if ${ac_cv_prog_CPP+:} false; then :
403434345a63Smrg  $as_echo_n "(cached) " >&6
403534345a63Smrgelse
403634345a63Smrg      # Double quotes because CPP needs to be expanded
403734345a63Smrg    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
403834345a63Smrg    do
403934345a63Smrg      ac_preproc_ok=false
404034345a63Smrgfor ac_c_preproc_warn_flag in '' yes
404134345a63Smrgdo
404234345a63Smrg  # Use a header file that comes with gcc, so configuring glibc
404334345a63Smrg  # with a fresh cross-compiler works.
404434345a63Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
404534345a63Smrg  # <limits.h> exists even on freestanding compilers.
404634345a63Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
404734345a63Smrg  # not just through cpp. "Syntax error" is here to catch this case.
404883e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
404934345a63Smrg/* end confdefs.h.  */
405034345a63Smrg#ifdef __STDC__
405134345a63Smrg# include <limits.h>
405234345a63Smrg#else
405334345a63Smrg# include <assert.h>
405434345a63Smrg#endif
405534345a63Smrg		     Syntax error
405634345a63Smrg_ACEOF
405783e5f723Smrgif ac_fn_c_try_cpp "$LINENO"; then :
405834345a63Smrg
405983e5f723Smrgelse
406034345a63Smrg  # Broken: fails on valid input.
406134345a63Smrgcontinue
406234345a63Smrgfi
4063690143ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext
406434345a63Smrg
406534345a63Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
406634345a63Smrg  # can be detected and how.
406783e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
406834345a63Smrg/* end confdefs.h.  */
406934345a63Smrg#include <ac_nonexistent.h>
407034345a63Smrg_ACEOF
407183e5f723Smrgif ac_fn_c_try_cpp "$LINENO"; then :
407234345a63Smrg  # Broken: success on invalid input.
407334345a63Smrgcontinue
407434345a63Smrgelse
407534345a63Smrg  # Passes both tests.
407634345a63Smrgac_preproc_ok=:
407734345a63Smrgbreak
407834345a63Smrgfi
4079690143ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext
408034345a63Smrg
408134345a63Smrgdone
408234345a63Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4083690143ccSmrgrm -f conftest.i conftest.err conftest.$ac_ext
408483e5f723Smrgif $ac_preproc_ok; then :
408534345a63Smrg  break
408634345a63Smrgfi
408734345a63Smrg
408834345a63Smrg    done
408934345a63Smrg    ac_cv_prog_CPP=$CPP
409034345a63Smrg
409134345a63Smrgfi
409234345a63Smrg  CPP=$ac_cv_prog_CPP
409334345a63Smrgelse
409434345a63Smrg  ac_cv_prog_CPP=$CPP
409534345a63Smrgfi
409683e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
409734345a63Smrg$as_echo "$CPP" >&6; }
409834345a63Smrgac_preproc_ok=false
409934345a63Smrgfor ac_c_preproc_warn_flag in '' yes
410034345a63Smrgdo
410134345a63Smrg  # Use a header file that comes with gcc, so configuring glibc
410234345a63Smrg  # with a fresh cross-compiler works.
410334345a63Smrg  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
410434345a63Smrg  # <limits.h> exists even on freestanding compilers.
410534345a63Smrg  # On the NeXT, cc -E runs the code through the compiler's parser,
410634345a63Smrg  # not just through cpp. "Syntax error" is here to catch this case.
410783e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
410834345a63Smrg/* end confdefs.h.  */
410934345a63Smrg#ifdef __STDC__
411034345a63Smrg# include <limits.h>
411134345a63Smrg#else
411234345a63Smrg# include <assert.h>
411334345a63Smrg#endif
411434345a63Smrg		     Syntax error
411534345a63Smrg_ACEOF
411683e5f723Smrgif ac_fn_c_try_cpp "$LINENO"; then :
411734345a63Smrg
411883e5f723Smrgelse
411934345a63Smrg  # Broken: fails on valid input.
412034345a63Smrgcontinue
412134345a63Smrgfi
4122690143ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext
412334345a63Smrg
412434345a63Smrg  # OK, works on sane cases.  Now check whether nonexistent headers
412534345a63Smrg  # can be detected and how.
412683e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
412734345a63Smrg/* end confdefs.h.  */
412834345a63Smrg#include <ac_nonexistent.h>
412934345a63Smrg_ACEOF
413083e5f723Smrgif ac_fn_c_try_cpp "$LINENO"; then :
413134345a63Smrg  # Broken: success on invalid input.
413234345a63Smrgcontinue
413334345a63Smrgelse
413434345a63Smrg  # Passes both tests.
413534345a63Smrgac_preproc_ok=:
413634345a63Smrgbreak
413734345a63Smrgfi
4138690143ccSmrgrm -f conftest.err conftest.i conftest.$ac_ext
413934345a63Smrg
414034345a63Smrgdone
414134345a63Smrg# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4142690143ccSmrgrm -f conftest.i conftest.err conftest.$ac_ext
414383e5f723Smrgif $ac_preproc_ok; then :
414483e5f723Smrg
414534345a63Smrgelse
414683e5f723Smrg  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
414734345a63Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
414883e5f723Smrgas_fn_error $? "C preprocessor \"$CPP\" fails sanity check
414983e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
415034345a63Smrgfi
415134345a63Smrg
415234345a63Smrgac_ext=c
415334345a63Smrgac_cpp='$CPP $CPPFLAGS'
415434345a63Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
415534345a63Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
415634345a63Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
415734345a63Smrg
415834345a63Smrg
415983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
416034345a63Smrg$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4161690143ccSmrgif ${ac_cv_path_GREP+:} false; then :
416234345a63Smrg  $as_echo_n "(cached) " >&6
416334345a63Smrgelse
416434345a63Smrg  if test -z "$GREP"; then
416534345a63Smrg  ac_path_GREP_found=false
416634345a63Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
416734345a63Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
416834345a63Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
416934345a63Smrgdo
417034345a63Smrg  IFS=$as_save_IFS
417134345a63Smrg  test -z "$as_dir" && as_dir=.
417283e5f723Smrg    for ac_prog in grep ggrep; do
417334345a63Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
417434345a63Smrg      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4175c82dfdfbSmrg      as_fn_executable_p "$ac_path_GREP" || continue
417634345a63Smrg# Check for GNU ac_path_GREP and select it if it is found.
417734345a63Smrg  # Check for GNU $ac_path_GREP
417834345a63Smrgcase `"$ac_path_GREP" --version 2>&1` in
417934345a63Smrg*GNU*)
418034345a63Smrg  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
418134345a63Smrg*)
418234345a63Smrg  ac_count=0
418334345a63Smrg  $as_echo_n 0123456789 >"conftest.in"
418434345a63Smrg  while :
418534345a63Smrg  do
418634345a63Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
418734345a63Smrg    mv "conftest.tmp" "conftest.in"
418834345a63Smrg    cp "conftest.in" "conftest.nl"
418934345a63Smrg    $as_echo 'GREP' >> "conftest.nl"
419034345a63Smrg    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
419134345a63Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
419283e5f723Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
419334345a63Smrg    if test $ac_count -gt ${ac_path_GREP_max-0}; then
419434345a63Smrg      # Best one so far, save it but keep looking for a better one
419534345a63Smrg      ac_cv_path_GREP="$ac_path_GREP"
419634345a63Smrg      ac_path_GREP_max=$ac_count
419734345a63Smrg    fi
419834345a63Smrg    # 10*(2^10) chars as input seems more than enough
419934345a63Smrg    test $ac_count -gt 10 && break
420034345a63Smrg  done
420134345a63Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
420234345a63Smrgesac
420334345a63Smrg
420434345a63Smrg      $ac_path_GREP_found && break 3
420534345a63Smrg    done
420634345a63Smrg  done
420783e5f723Smrg  done
420834345a63SmrgIFS=$as_save_IFS
420934345a63Smrg  if test -z "$ac_cv_path_GREP"; then
421083e5f723Smrg    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
421134345a63Smrg  fi
421234345a63Smrgelse
421334345a63Smrg  ac_cv_path_GREP=$GREP
421434345a63Smrgfi
421534345a63Smrg
421634345a63Smrgfi
421783e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
421834345a63Smrg$as_echo "$ac_cv_path_GREP" >&6; }
421934345a63Smrg GREP="$ac_cv_path_GREP"
422034345a63Smrg
422134345a63Smrg
422283e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
422334345a63Smrg$as_echo_n "checking for egrep... " >&6; }
4224690143ccSmrgif ${ac_cv_path_EGREP+:} false; then :
422534345a63Smrg  $as_echo_n "(cached) " >&6
422634345a63Smrgelse
422734345a63Smrg  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
422834345a63Smrg   then ac_cv_path_EGREP="$GREP -E"
422934345a63Smrg   else
423034345a63Smrg     if test -z "$EGREP"; then
423134345a63Smrg  ac_path_EGREP_found=false
423234345a63Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
423334345a63Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
423434345a63Smrgfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
423534345a63Smrgdo
423634345a63Smrg  IFS=$as_save_IFS
423734345a63Smrg  test -z "$as_dir" && as_dir=.
423883e5f723Smrg    for ac_prog in egrep; do
423934345a63Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
424034345a63Smrg      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4241c82dfdfbSmrg      as_fn_executable_p "$ac_path_EGREP" || continue
424234345a63Smrg# Check for GNU ac_path_EGREP and select it if it is found.
424334345a63Smrg  # Check for GNU $ac_path_EGREP
424434345a63Smrgcase `"$ac_path_EGREP" --version 2>&1` in
424534345a63Smrg*GNU*)
424634345a63Smrg  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
424734345a63Smrg*)
424834345a63Smrg  ac_count=0
424934345a63Smrg  $as_echo_n 0123456789 >"conftest.in"
425034345a63Smrg  while :
425134345a63Smrg  do
425234345a63Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
425334345a63Smrg    mv "conftest.tmp" "conftest.in"
425434345a63Smrg    cp "conftest.in" "conftest.nl"
425534345a63Smrg    $as_echo 'EGREP' >> "conftest.nl"
425634345a63Smrg    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
425734345a63Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
425883e5f723Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
425934345a63Smrg    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
426034345a63Smrg      # Best one so far, save it but keep looking for a better one
426134345a63Smrg      ac_cv_path_EGREP="$ac_path_EGREP"
426234345a63Smrg      ac_path_EGREP_max=$ac_count
426334345a63Smrg    fi
426434345a63Smrg    # 10*(2^10) chars as input seems more than enough
426534345a63Smrg    test $ac_count -gt 10 && break
426634345a63Smrg  done
426734345a63Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
426834345a63Smrgesac
426934345a63Smrg
427034345a63Smrg      $ac_path_EGREP_found && break 3
427134345a63Smrg    done
427234345a63Smrg  done
427383e5f723Smrg  done
427434345a63SmrgIFS=$as_save_IFS
427534345a63Smrg  if test -z "$ac_cv_path_EGREP"; then
427683e5f723Smrg    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
427734345a63Smrg  fi
427834345a63Smrgelse
427934345a63Smrg  ac_cv_path_EGREP=$EGREP
428034345a63Smrgfi
428134345a63Smrg
428234345a63Smrg   fi
428334345a63Smrgfi
428483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
428534345a63Smrg$as_echo "$ac_cv_path_EGREP" >&6; }
428634345a63Smrg EGREP="$ac_cv_path_EGREP"
428734345a63Smrg
428834345a63Smrg
428983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
429034345a63Smrg$as_echo_n "checking for ANSI C header files... " >&6; }
4291690143ccSmrgif ${ac_cv_header_stdc+:} false; then :
429234345a63Smrg  $as_echo_n "(cached) " >&6
429334345a63Smrgelse
429483e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
429534345a63Smrg/* end confdefs.h.  */
429634345a63Smrg#include <stdlib.h>
429734345a63Smrg#include <stdarg.h>
429834345a63Smrg#include <string.h>
429934345a63Smrg#include <float.h>
430034345a63Smrg
430134345a63Smrgint
430234345a63Smrgmain ()
430334345a63Smrg{
430434345a63Smrg
430534345a63Smrg  ;
430634345a63Smrg  return 0;
430734345a63Smrg}
430834345a63Smrg_ACEOF
430983e5f723Smrgif ac_fn_c_try_compile "$LINENO"; then :
431034345a63Smrg  ac_cv_header_stdc=yes
431134345a63Smrgelse
431283e5f723Smrg  ac_cv_header_stdc=no
431334345a63Smrgfi
431434345a63Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
431534345a63Smrg
431634345a63Smrgif test $ac_cv_header_stdc = yes; then
431734345a63Smrg  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
431883e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
431934345a63Smrg/* end confdefs.h.  */
432034345a63Smrg#include <string.h>
432134345a63Smrg
432234345a63Smrg_ACEOF
432334345a63Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
432483e5f723Smrg  $EGREP "memchr" >/dev/null 2>&1; then :
432583e5f723Smrg
432634345a63Smrgelse
432734345a63Smrg  ac_cv_header_stdc=no
432834345a63Smrgfi
432934345a63Smrgrm -f conftest*
433034345a63Smrg
433134345a63Smrgfi
433234345a63Smrg
433334345a63Smrgif test $ac_cv_header_stdc = yes; then
433434345a63Smrg  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
433583e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
433634345a63Smrg/* end confdefs.h.  */
433734345a63Smrg#include <stdlib.h>
433834345a63Smrg
433934345a63Smrg_ACEOF
434034345a63Smrgif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
434183e5f723Smrg  $EGREP "free" >/dev/null 2>&1; then :
434283e5f723Smrg
434334345a63Smrgelse
434434345a63Smrg  ac_cv_header_stdc=no
434534345a63Smrgfi
434634345a63Smrgrm -f conftest*
434734345a63Smrg
434834345a63Smrgfi
434934345a63Smrg
435034345a63Smrgif test $ac_cv_header_stdc = yes; then
435134345a63Smrg  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
435283e5f723Smrg  if test "$cross_compiling" = yes; then :
435334345a63Smrg  :
435434345a63Smrgelse
435583e5f723Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
435634345a63Smrg/* end confdefs.h.  */
435734345a63Smrg#include <ctype.h>
435834345a63Smrg#include <stdlib.h>
435934345a63Smrg#if ((' ' & 0x0FF) == 0x020)
436034345a63Smrg# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
436134345a63Smrg# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
436234345a63Smrg#else
436334345a63Smrg# define ISLOWER(c) \
436434345a63Smrg		   (('a' <= (c) && (c) <= 'i') \
436534345a63Smrg		     || ('j' <= (c) && (c) <= 'r') \
436634345a63Smrg		     || ('s' <= (c) && (c) <= 'z'))
436734345a63Smrg# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
436834345a63Smrg#endif
436934345a63Smrg
437034345a63Smrg#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
437134345a63Smrgint
437234345a63Smrgmain ()
437334345a63Smrg{
437434345a63Smrg  int i;
437534345a63Smrg  for (i = 0; i < 256; i++)
437634345a63Smrg    if (XOR (islower (i), ISLOWER (i))
437734345a63Smrg	|| toupper (i) != TOUPPER (i))
437834345a63Smrg      return 2;
437934345a63Smrg  return 0;
438034345a63Smrg}
438134345a63Smrg_ACEOF
438283e5f723Smrgif ac_fn_c_try_run "$LINENO"; then :
438334345a63Smrg
438483e5f723Smrgelse
438583e5f723Smrg  ac_cv_header_stdc=no
438634345a63Smrgfi
438783e5f723Smrgrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
438883e5f723Smrg  conftest.$ac_objext conftest.beam conftest.$ac_ext
438934345a63Smrgfi
439034345a63Smrg
439134345a63Smrgfi
439234345a63Smrgfi
439383e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
439434345a63Smrg$as_echo "$ac_cv_header_stdc" >&6; }
439534345a63Smrgif test $ac_cv_header_stdc = yes; then
439634345a63Smrg
439783e5f723Smrg$as_echo "#define STDC_HEADERS 1" >>confdefs.h
439834345a63Smrg
439934345a63Smrgfi
440034345a63Smrg
440134345a63Smrg# On IRIX 5.3, sys/types and inttypes.h are conflicting.
440234345a63Smrgfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
440334345a63Smrg		  inttypes.h stdint.h unistd.h
440483e5f723Smrgdo :
440583e5f723Smrg  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
440683e5f723Smrgac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
440783e5f723Smrg"
440883e5f723Smrgif eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
440934345a63Smrg  cat >>confdefs.h <<_ACEOF
441034345a63Smrg#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
441134345a63Smrg_ACEOF
441234345a63Smrg
441334345a63Smrgfi
441434345a63Smrg
441534345a63Smrgdone
441634345a63Smrg
441734345a63Smrg
441834345a63Smrg
441934345a63Smrg
44201d8c7986Smrg
44211d8c7986Smrg
4422690143ccSmrgac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4423690143ccSmrgif test "x$ac_cv_have_decl___clang__" = xyes; then :
4424690143ccSmrg  CLANGCC="yes"
4425690143ccSmrgelse
4426690143ccSmrg  CLANGCC="no"
4427690143ccSmrgfi
4428690143ccSmrg
4429690143ccSmrgac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4430690143ccSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4431690143ccSmrg  INTELCC="yes"
4432690143ccSmrgelse
4433690143ccSmrg  INTELCC="no"
4434690143ccSmrgfi
4435690143ccSmrg
4436690143ccSmrgac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4437690143ccSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4438690143ccSmrg  SUNCC="yes"
4439690143ccSmrgelse
4440690143ccSmrg  SUNCC="no"
4441690143ccSmrgfi
4442690143ccSmrg
4443690143ccSmrg
4444690143ccSmrg
4445690143ccSmrg
4446c82dfdfbSmrg
4447c82dfdfbSmrg
4448c82dfdfbSmrg
4449c82dfdfbSmrg
4450c82dfdfbSmrg
4451f46a6179Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4452f46a6179Smrg	if test -n "$ac_tool_prefix"; then
4453f46a6179Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4454f46a6179Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
445583e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
445634345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
4457690143ccSmrgif ${ac_cv_path_PKG_CONFIG+:} false; then :
445834345a63Smrg  $as_echo_n "(cached) " >&6
4459f46a6179Smrgelse
4460f46a6179Smrg  case $PKG_CONFIG in
4461f46a6179Smrg  [\\/]* | ?:[\\/]*)
4462f46a6179Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4463f46a6179Smrg  ;;
4464f46a6179Smrg  *)
4465f46a6179Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466f46a6179Smrgfor as_dir in $PATH
4467f46a6179Smrgdo
4468f46a6179Smrg  IFS=$as_save_IFS
4469f46a6179Smrg  test -z "$as_dir" && as_dir=.
447083e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4471c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472f46a6179Smrg    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
447383e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474f46a6179Smrg    break 2
4475f46a6179Smrg  fi
4476f46a6179Smrgdone
447783e5f723Smrg  done
4478f46a6179SmrgIFS=$as_save_IFS
4479f46a6179Smrg
4480f46a6179Smrg  ;;
4481f46a6179Smrgesac
4482f46a6179Smrgfi
4483f46a6179SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4484f46a6179Smrgif test -n "$PKG_CONFIG"; then
448583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
448634345a63Smrg$as_echo "$PKG_CONFIG" >&6; }
4487f46a6179Smrgelse
448883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
448934345a63Smrg$as_echo "no" >&6; }
4490f46a6179Smrgfi
4491f46a6179Smrg
4492f46a6179Smrg
4493f46a6179Smrgfi
4494f46a6179Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4495f46a6179Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4496f46a6179Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4497f46a6179Smrgset dummy pkg-config; ac_word=$2
449883e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
449934345a63Smrg$as_echo_n "checking for $ac_word... " >&6; }
4500690143ccSmrgif ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
450134345a63Smrg  $as_echo_n "(cached) " >&6
4502f46a6179Smrgelse
4503f46a6179Smrg  case $ac_pt_PKG_CONFIG in
4504f46a6179Smrg  [\\/]* | ?:[\\/]*)
4505f46a6179Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4506f46a6179Smrg  ;;
4507f46a6179Smrg  *)
4508f46a6179Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509f46a6179Smrgfor as_dir in $PATH
4510f46a6179Smrgdo
4511f46a6179Smrg  IFS=$as_save_IFS
4512f46a6179Smrg  test -z "$as_dir" && as_dir=.
451383e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4514c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4515f46a6179Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
451683e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4517f46a6179Smrg    break 2
4518f46a6179Smrg  fi
4519f46a6179Smrgdone
452083e5f723Smrg  done
4521f46a6179SmrgIFS=$as_save_IFS
4522f46a6179Smrg
4523f46a6179Smrg  ;;
4524f46a6179Smrgesac
4525f46a6179Smrgfi
4526f46a6179Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4527f46a6179Smrgif test -n "$ac_pt_PKG_CONFIG"; then
452883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
452934345a63Smrg$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4530f46a6179Smrgelse
453183e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
453234345a63Smrg$as_echo "no" >&6; }
4533f46a6179Smrgfi
4534f46a6179Smrg
4535f46a6179Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4536f46a6179Smrg    PKG_CONFIG=""
4537f46a6179Smrg  else
4538f46a6179Smrg    case $cross_compiling:$ac_tool_warned in
4539f46a6179Smrgyes:)
454083e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
454134345a63Smrg$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542f46a6179Smrgac_tool_warned=yes ;;
4543f46a6179Smrgesac
4544f46a6179Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4545f46a6179Smrg  fi
4546f46a6179Smrgelse
45471d8c7986Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45481d8c7986Smrgfi
45491d8c7986Smrg
45501d8c7986Smrgfi
45511d8c7986Smrgif test -n "$PKG_CONFIG"; then
45521d8c7986Smrg	_pkg_min_version=0.9.0
45531d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
45541d8c7986Smrg$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
45551d8c7986Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45561d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45571d8c7986Smrg$as_echo "yes" >&6; }
45581d8c7986Smrg	else
45591d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
45601d8c7986Smrg$as_echo "no" >&6; }
45611d8c7986Smrg		PKG_CONFIG=""
45621d8c7986Smrg	fi
45631d8c7986Smrgfi
45641d8c7986Smrg# Make sure we can run config.sub.
45651d8c7986Smrg$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
45661d8c7986Smrg  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
45671d8c7986Smrg
45681d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
45691d8c7986Smrg$as_echo_n "checking build system type... " >&6; }
45701d8c7986Smrgif ${ac_cv_build+:} false; then :
45711d8c7986Smrg  $as_echo_n "(cached) " >&6
45721d8c7986Smrgelse
45731d8c7986Smrg  ac_build_alias=$build_alias
45741d8c7986Smrgtest "x$ac_build_alias" = x &&
45751d8c7986Smrg  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
45761d8c7986Smrgtest "x$ac_build_alias" = x &&
45771d8c7986Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
45781d8c7986Smrgac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
45791d8c7986Smrg  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
45801d8c7986Smrg
45811d8c7986Smrgfi
45821d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
45831d8c7986Smrg$as_echo "$ac_cv_build" >&6; }
45841d8c7986Smrgcase $ac_cv_build in
45851d8c7986Smrg*-*-*) ;;
45861d8c7986Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
45871d8c7986Smrgesac
45881d8c7986Smrgbuild=$ac_cv_build
45891d8c7986Smrgac_save_IFS=$IFS; IFS='-'
45901d8c7986Smrgset x $ac_cv_build
45911d8c7986Smrgshift
45921d8c7986Smrgbuild_cpu=$1
45931d8c7986Smrgbuild_vendor=$2
45941d8c7986Smrgshift; shift
45951d8c7986Smrg# Remember, the first character of IFS is used to create $*,
45961d8c7986Smrg# except with old shells:
45971d8c7986Smrgbuild_os=$*
45981d8c7986SmrgIFS=$ac_save_IFS
45991d8c7986Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
46001d8c7986Smrg
46011d8c7986Smrg
46021d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
46031d8c7986Smrg$as_echo_n "checking host system type... " >&6; }
46041d8c7986Smrgif ${ac_cv_host+:} false; then :
46051d8c7986Smrg  $as_echo_n "(cached) " >&6
46061d8c7986Smrgelse
46071d8c7986Smrg  if test "x$host_alias" = x; then
46081d8c7986Smrg  ac_cv_host=$ac_cv_build
46091d8c7986Smrgelse
46101d8c7986Smrg  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
46111d8c7986Smrg    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
46121d8c7986Smrgfi
46131d8c7986Smrg
46141d8c7986Smrgfi
46151d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
46161d8c7986Smrg$as_echo "$ac_cv_host" >&6; }
46171d8c7986Smrgcase $ac_cv_host in
46181d8c7986Smrg*-*-*) ;;
46191d8c7986Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
46201d8c7986Smrgesac
46211d8c7986Smrghost=$ac_cv_host
46221d8c7986Smrgac_save_IFS=$IFS; IFS='-'
46231d8c7986Smrgset x $ac_cv_host
46241d8c7986Smrgshift
46251d8c7986Smrghost_cpu=$1
46261d8c7986Smrghost_vendor=$2
46271d8c7986Smrgshift; shift
46281d8c7986Smrg# Remember, the first character of IFS is used to create $*,
46291d8c7986Smrg# except with old shells:
46301d8c7986Smrghost_os=$*
46311d8c7986SmrgIFS=$ac_save_IFS
46321d8c7986Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
46331d8c7986Smrg
46341d8c7986Smrg
46351d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
46361d8c7986Smrg$as_echo_n "checking for a sed that does not truncate output... " >&6; }
46371d8c7986Smrgif ${ac_cv_path_SED+:} false; then :
46381d8c7986Smrg  $as_echo_n "(cached) " >&6
46391d8c7986Smrgelse
46401d8c7986Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
46411d8c7986Smrg     for ac_i in 1 2 3 4 5 6 7; do
46421d8c7986Smrg       ac_script="$ac_script$as_nl$ac_script"
46431d8c7986Smrg     done
46441d8c7986Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
46451d8c7986Smrg     { ac_script=; unset ac_script;}
46461d8c7986Smrg     if test -z "$SED"; then
46471d8c7986Smrg  ac_path_SED_found=false
46481d8c7986Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
46491d8c7986Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46501d8c7986Smrgfor as_dir in $PATH
46511d8c7986Smrgdo
46521d8c7986Smrg  IFS=$as_save_IFS
46531d8c7986Smrg  test -z "$as_dir" && as_dir=.
46541d8c7986Smrg    for ac_prog in sed gsed; do
46551d8c7986Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
46561d8c7986Smrg      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4657c82dfdfbSmrg      as_fn_executable_p "$ac_path_SED" || continue
46581d8c7986Smrg# Check for GNU ac_path_SED and select it if it is found.
46591d8c7986Smrg  # Check for GNU $ac_path_SED
46601d8c7986Smrgcase `"$ac_path_SED" --version 2>&1` in
46611d8c7986Smrg*GNU*)
46621d8c7986Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
46631d8c7986Smrg*)
46641d8c7986Smrg  ac_count=0
46651d8c7986Smrg  $as_echo_n 0123456789 >"conftest.in"
46661d8c7986Smrg  while :
46671d8c7986Smrg  do
46681d8c7986Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
46691d8c7986Smrg    mv "conftest.tmp" "conftest.in"
46701d8c7986Smrg    cp "conftest.in" "conftest.nl"
46711d8c7986Smrg    $as_echo '' >> "conftest.nl"
46721d8c7986Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
46731d8c7986Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46741d8c7986Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
46751d8c7986Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
46761d8c7986Smrg      # Best one so far, save it but keep looking for a better one
46771d8c7986Smrg      ac_cv_path_SED="$ac_path_SED"
46781d8c7986Smrg      ac_path_SED_max=$ac_count
46791d8c7986Smrg    fi
46801d8c7986Smrg    # 10*(2^10) chars as input seems more than enough
46811d8c7986Smrg    test $ac_count -gt 10 && break
46821d8c7986Smrg  done
46831d8c7986Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46841d8c7986Smrgesac
46851d8c7986Smrg
46861d8c7986Smrg      $ac_path_SED_found && break 3
46871d8c7986Smrg    done
46881d8c7986Smrg  done
46891d8c7986Smrg  done
46901d8c7986SmrgIFS=$as_save_IFS
46911d8c7986Smrg  if test -z "$ac_cv_path_SED"; then
46921d8c7986Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
46931d8c7986Smrg  fi
46941d8c7986Smrgelse
46951d8c7986Smrg  ac_cv_path_SED=$SED
46961d8c7986Smrgfi
46971d8c7986Smrg
46981d8c7986Smrgfi
46991d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47001d8c7986Smrg$as_echo "$ac_cv_path_SED" >&6; }
47011d8c7986Smrg SED="$ac_cv_path_SED"
47021d8c7986Smrg  rm -f conftest.sed
47031d8c7986Smrg
47041d8c7986Smrg
47051d8c7986Smrg
47061d8c7986Smrg
47071d8c7986Smrg
47081d8c7986Smrg
47091d8c7986Smrg# Check whether --enable-selective-werror was given.
47101d8c7986Smrgif test "${enable_selective_werror+set}" = set; then :
47111d8c7986Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
47121d8c7986Smrgelse
47131d8c7986Smrg  SELECTIVE_WERROR=yes
47141d8c7986Smrgfi
47151d8c7986Smrg
47161d8c7986Smrg
47171d8c7986Smrg
47181d8c7986Smrg
47191d8c7986Smrg
47201d8c7986Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
47211d8c7986Smrgif test "x$SUNCC" = "xyes"; then
47221d8c7986Smrg    BASE_CFLAGS="-v"
47231d8c7986Smrgelse
47241d8c7986Smrg    BASE_CFLAGS=""
47251d8c7986Smrgfi
47261d8c7986Smrg
47271d8c7986Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
47281d8c7986Smrg
47291d8c7986Smrg
47301d8c7986Smrg
47311d8c7986Smrg
47321d8c7986Smrg
47331d8c7986Smrg
47341d8c7986Smrg
47351d8c7986Smrg
47361d8c7986Smrg
47371d8c7986Smrg
47381d8c7986Smrg
47391d8c7986Smrg
47401d8c7986Smrg
47411d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
47421d8c7986Smrg
47431d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
47441d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47451d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
47461d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
47471d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
47481d8c7986Smrg  $as_echo_n "(cached) " >&6
47491d8c7986Smrgelse
47501d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47511d8c7986Smrg/* end confdefs.h.  */
47521d8c7986Smrgint i;
47531d8c7986Smrg_ACEOF
47541d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
47551d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
47561d8c7986Smrgelse
47571d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
47581d8c7986Smrgfi
47591d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47601d8c7986Smrgfi
47611d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
47621d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
47631d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
47641d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
47651d8c7986Smrgfi
47661d8c7986Smrg
47671d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
47681d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
47691d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47701d8c7986Smrg	fi
47711d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
47721d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
47731d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
47741d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
47751d8c7986Smrg  $as_echo_n "(cached) " >&6
47761d8c7986Smrgelse
47771d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47781d8c7986Smrg/* end confdefs.h.  */
47791d8c7986Smrgint i;
47801d8c7986Smrg_ACEOF
47811d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
47821d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
47831d8c7986Smrgelse
47841d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
47851d8c7986Smrgfi
47861d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47871d8c7986Smrgfi
47881d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
47891d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
47901d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
47911d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
47921d8c7986Smrgfi
47931d8c7986Smrg
47941d8c7986Smrgfound="no"
47951d8c7986Smrg
47961d8c7986Smrg	if test $found = "no" ; then
4797c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
47981d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
47991d8c7986Smrg		fi
48001d8c7986Smrg
4801c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
48021d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48031d8c7986Smrg		fi
48041d8c7986Smrg
48051d8c7986Smrg		CFLAGS="$CFLAGS -Wall"
48061d8c7986Smrg
4807c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4808c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wall... " >&6; }
48091d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wall
48101d8c7986Smrg		if eval \${$cacheid+:} false; then :
48111d8c7986Smrg  $as_echo_n "(cached) " >&6
48121d8c7986Smrgelse
48131d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48141d8c7986Smrg/* end confdefs.h.  */
48151d8c7986Smrgint i;
48161d8c7986Smrgint
48171d8c7986Smrgmain ()
48181d8c7986Smrg{
48191d8c7986Smrg
48201d8c7986Smrg  ;
48211d8c7986Smrg  return 0;
48221d8c7986Smrg}
48231d8c7986Smrg_ACEOF
48241d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
48251d8c7986Smrg  eval $cacheid=yes
48261d8c7986Smrgelse
48271d8c7986Smrg  eval $cacheid=no
48281d8c7986Smrgfi
48291d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
48301d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
48311d8c7986Smrgfi
48321d8c7986Smrg
48331d8c7986Smrg
48341d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
48351d8c7986Smrg
48361d8c7986Smrg		eval supported=\$$cacheid
48371d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
48381d8c7986Smrg$as_echo "$supported" >&6; }
48391d8c7986Smrg		if test "$supported" = "yes" ; then
48401d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
48411d8c7986Smrg			found="yes"
48421d8c7986Smrg		fi
48431d8c7986Smrg	fi
48441d8c7986Smrg
48451d8c7986Smrg
48461d8c7986Smrg
48471d8c7986Smrg
48481d8c7986Smrg
48491d8c7986Smrg
48501d8c7986Smrg
48511d8c7986Smrg
48521d8c7986Smrg
48531d8c7986Smrg
48541d8c7986Smrg
48551d8c7986Smrg
48561d8c7986Smrg
48571d8c7986Smrg
48581d8c7986Smrg
48591d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
48601d8c7986Smrg
48611d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48621d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48631d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
48641d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
48651d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
48661d8c7986Smrg  $as_echo_n "(cached) " >&6
48671d8c7986Smrgelse
48681d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48691d8c7986Smrg/* end confdefs.h.  */
48701d8c7986Smrgint i;
48711d8c7986Smrg_ACEOF
48721d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
48731d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
48741d8c7986Smrgelse
48751d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
48761d8c7986Smrgfi
48771d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48781d8c7986Smrgfi
48791d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
48801d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
48811d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
48821d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
48831d8c7986Smrgfi
48841d8c7986Smrg
48851d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
48861d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
48871d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
48881d8c7986Smrg	fi
48891d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
48901d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
48911d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
48921d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
48931d8c7986Smrg  $as_echo_n "(cached) " >&6
48941d8c7986Smrgelse
48951d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48961d8c7986Smrg/* end confdefs.h.  */
48971d8c7986Smrgint i;
48981d8c7986Smrg_ACEOF
48991d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
49001d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
49011d8c7986Smrgelse
49021d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
49031d8c7986Smrgfi
49041d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49051d8c7986Smrgfi
49061d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
49071d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
49081d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
49091d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
49101d8c7986Smrgfi
49111d8c7986Smrg
49121d8c7986Smrgfound="no"
49131d8c7986Smrg
49141d8c7986Smrg	if test $found = "no" ; then
4915c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49161d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49171d8c7986Smrg		fi
49181d8c7986Smrg
4919c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49201d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49211d8c7986Smrg		fi
49221d8c7986Smrg
49231d8c7986Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
49241d8c7986Smrg
4925c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4926c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
49271d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
49281d8c7986Smrg		if eval \${$cacheid+:} false; then :
49291d8c7986Smrg  $as_echo_n "(cached) " >&6
49301d8c7986Smrgelse
49311d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49321d8c7986Smrg/* end confdefs.h.  */
49331d8c7986Smrgint i;
49341d8c7986Smrgint
49351d8c7986Smrgmain ()
49361d8c7986Smrg{
49371d8c7986Smrg
49381d8c7986Smrg  ;
49391d8c7986Smrg  return 0;
49401d8c7986Smrg}
49411d8c7986Smrg_ACEOF
49421d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
49431d8c7986Smrg  eval $cacheid=yes
49441d8c7986Smrgelse
49451d8c7986Smrg  eval $cacheid=no
49461d8c7986Smrgfi
49471d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
49481d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
49491d8c7986Smrgfi
49501d8c7986Smrg
49511d8c7986Smrg
49521d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
49531d8c7986Smrg
49541d8c7986Smrg		eval supported=\$$cacheid
49551d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
49561d8c7986Smrg$as_echo "$supported" >&6; }
49571d8c7986Smrg		if test "$supported" = "yes" ; then
49581d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
49591d8c7986Smrg			found="yes"
49601d8c7986Smrg		fi
49611d8c7986Smrg	fi
49621d8c7986Smrg
49631d8c7986Smrg
49641d8c7986Smrg
49651d8c7986Smrg
49661d8c7986Smrg
49671d8c7986Smrg
49681d8c7986Smrg
49691d8c7986Smrg
49701d8c7986Smrg
49711d8c7986Smrg
49721d8c7986Smrg
49731d8c7986Smrg
49741d8c7986Smrg
49751d8c7986Smrg
49761d8c7986Smrg
49771d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49781d8c7986Smrg
49791d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
49801d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49811d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
49821d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
49831d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
49841d8c7986Smrg  $as_echo_n "(cached) " >&6
49851d8c7986Smrgelse
49861d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49871d8c7986Smrg/* end confdefs.h.  */
49881d8c7986Smrgint i;
49891d8c7986Smrg_ACEOF
49901d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
49911d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
49921d8c7986Smrgelse
49931d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
49941d8c7986Smrgfi
49951d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49961d8c7986Smrgfi
49971d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
49981d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49991d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50001d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50011d8c7986Smrgfi
50021d8c7986Smrg
50031d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50041d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50051d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50061d8c7986Smrg	fi
50071d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50081d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
50091d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
50101d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
50111d8c7986Smrg  $as_echo_n "(cached) " >&6
50121d8c7986Smrgelse
50131d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50141d8c7986Smrg/* end confdefs.h.  */
50151d8c7986Smrgint i;
50161d8c7986Smrg_ACEOF
50171d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
50181d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
50191d8c7986Smrgelse
50201d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
50211d8c7986Smrgfi
50221d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50231d8c7986Smrgfi
50241d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
50251d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50261d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50271d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50281d8c7986Smrgfi
50291d8c7986Smrg
50301d8c7986Smrgfound="no"
50311d8c7986Smrg
50321d8c7986Smrg	if test $found = "no" ; then
5033c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50341d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50351d8c7986Smrg		fi
50361d8c7986Smrg
5037c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50381d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50391d8c7986Smrg		fi
50401d8c7986Smrg
50411d8c7986Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
50421d8c7986Smrg
5043c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5044c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
50451d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
50461d8c7986Smrg		if eval \${$cacheid+:} false; then :
50471d8c7986Smrg  $as_echo_n "(cached) " >&6
50481d8c7986Smrgelse
50491d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50501d8c7986Smrg/* end confdefs.h.  */
50511d8c7986Smrgint i;
50521d8c7986Smrgint
50531d8c7986Smrgmain ()
50541d8c7986Smrg{
50551d8c7986Smrg
50561d8c7986Smrg  ;
50571d8c7986Smrg  return 0;
50581d8c7986Smrg}
50591d8c7986Smrg_ACEOF
50601d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
50611d8c7986Smrg  eval $cacheid=yes
50621d8c7986Smrgelse
50631d8c7986Smrg  eval $cacheid=no
50641d8c7986Smrgfi
50651d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
50661d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
50671d8c7986Smrgfi
50681d8c7986Smrg
50691d8c7986Smrg
50701d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50711d8c7986Smrg
50721d8c7986Smrg		eval supported=\$$cacheid
50731d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
50741d8c7986Smrg$as_echo "$supported" >&6; }
50751d8c7986Smrg		if test "$supported" = "yes" ; then
50761d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
50771d8c7986Smrg			found="yes"
50781d8c7986Smrg		fi
50791d8c7986Smrg	fi
50801d8c7986Smrg
50811d8c7986Smrg
50821d8c7986Smrg
50831d8c7986Smrg
50841d8c7986Smrg
50851d8c7986Smrg
50861d8c7986Smrg
50871d8c7986Smrg
50881d8c7986Smrg
50891d8c7986Smrg
50901d8c7986Smrg
50911d8c7986Smrg
50921d8c7986Smrg
50931d8c7986Smrg
50941d8c7986Smrg
50951d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
50961d8c7986Smrg
50971d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50981d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50991d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
51001d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
51011d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
51021d8c7986Smrg  $as_echo_n "(cached) " >&6
51031d8c7986Smrgelse
51041d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51051d8c7986Smrg/* end confdefs.h.  */
51061d8c7986Smrgint i;
51071d8c7986Smrg_ACEOF
51081d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
51091d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
51101d8c7986Smrgelse
51111d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
51121d8c7986Smrgfi
51131d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51141d8c7986Smrgfi
51151d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
51161d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51171d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51181d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51191d8c7986Smrgfi
51201d8c7986Smrg
51211d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51221d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51231d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51241d8c7986Smrg	fi
51251d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51261d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
51271d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
51281d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
51291d8c7986Smrg  $as_echo_n "(cached) " >&6
51301d8c7986Smrgelse
51311d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51321d8c7986Smrg/* end confdefs.h.  */
51331d8c7986Smrgint i;
51341d8c7986Smrg_ACEOF
51351d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
51361d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
51371d8c7986Smrgelse
51381d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
51391d8c7986Smrgfi
51401d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51411d8c7986Smrgfi
51421d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
51431d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51441d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51451d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
51461d8c7986Smrgfi
51471d8c7986Smrg
51481d8c7986Smrgfound="no"
51491d8c7986Smrg
51501d8c7986Smrg	if test $found = "no" ; then
5151c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51521d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51531d8c7986Smrg		fi
51541d8c7986Smrg
5155c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
51561d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
51571d8c7986Smrg		fi
51581d8c7986Smrg
51591d8c7986Smrg		CFLAGS="$CFLAGS -Wformat=2"
51601d8c7986Smrg
5161c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5162c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5163c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
51641d8c7986Smrg		if eval \${$cacheid+:} false; then :
51651d8c7986Smrg  $as_echo_n "(cached) " >&6
51661d8c7986Smrgelse
51671d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51681d8c7986Smrg/* end confdefs.h.  */
51691d8c7986Smrgint i;
51701d8c7986Smrgint
51711d8c7986Smrgmain ()
51721d8c7986Smrg{
51731d8c7986Smrg
51741d8c7986Smrg  ;
51751d8c7986Smrg  return 0;
51761d8c7986Smrg}
51771d8c7986Smrg_ACEOF
51781d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
51791d8c7986Smrg  eval $cacheid=yes
51801d8c7986Smrgelse
51811d8c7986Smrg  eval $cacheid=no
51821d8c7986Smrgfi
51831d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
51841d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
51851d8c7986Smrgfi
51861d8c7986Smrg
51871d8c7986Smrg
51881d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
51891d8c7986Smrg
51901d8c7986Smrg		eval supported=\$$cacheid
51911d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
51921d8c7986Smrg$as_echo "$supported" >&6; }
51931d8c7986Smrg		if test "$supported" = "yes" ; then
51941d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
51951d8c7986Smrg			found="yes"
51961d8c7986Smrg		fi
51971d8c7986Smrg	fi
51981d8c7986Smrg
51991d8c7986Smrg	if test $found = "no" ; then
5200c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52011d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52021d8c7986Smrg		fi
52031d8c7986Smrg
5204c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52051d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52061d8c7986Smrg		fi
52071d8c7986Smrg
52081d8c7986Smrg		CFLAGS="$CFLAGS -Wformat"
52091d8c7986Smrg
5210c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5211c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wformat... " >&6; }
52121d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wformat
52131d8c7986Smrg		if eval \${$cacheid+:} false; then :
52141d8c7986Smrg  $as_echo_n "(cached) " >&6
52151d8c7986Smrgelse
52161d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52171d8c7986Smrg/* end confdefs.h.  */
52181d8c7986Smrgint i;
52191d8c7986Smrgint
52201d8c7986Smrgmain ()
52211d8c7986Smrg{
52221d8c7986Smrg
52231d8c7986Smrg  ;
52241d8c7986Smrg  return 0;
52251d8c7986Smrg}
52261d8c7986Smrg_ACEOF
52271d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
52281d8c7986Smrg  eval $cacheid=yes
52291d8c7986Smrgelse
52301d8c7986Smrg  eval $cacheid=no
52311d8c7986Smrgfi
52321d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
52331d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
52341d8c7986Smrgfi
52351d8c7986Smrg
52361d8c7986Smrg
52371d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
52381d8c7986Smrg
52391d8c7986Smrg		eval supported=\$$cacheid
52401d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
52411d8c7986Smrg$as_echo "$supported" >&6; }
52421d8c7986Smrg		if test "$supported" = "yes" ; then
52431d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
52441d8c7986Smrg			found="yes"
52451d8c7986Smrg		fi
52461d8c7986Smrg	fi
52471d8c7986Smrg
52481d8c7986Smrg
52491d8c7986Smrg
52501d8c7986Smrg
52511d8c7986Smrg
52521d8c7986Smrg
52531d8c7986Smrg
52541d8c7986Smrg
52551d8c7986Smrg
52561d8c7986Smrg
52571d8c7986Smrg
52581d8c7986Smrg
52591d8c7986Smrg
52601d8c7986Smrg
52611d8c7986Smrg
52621d8c7986Smrg
52631d8c7986Smrg
52641d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
52651d8c7986Smrg
52661d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52671d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52681d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
52691d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
52701d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
52711d8c7986Smrg  $as_echo_n "(cached) " >&6
52721d8c7986Smrgelse
52731d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52741d8c7986Smrg/* end confdefs.h.  */
52751d8c7986Smrgint i;
52761d8c7986Smrg_ACEOF
52771d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
52781d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
52791d8c7986Smrgelse
52801d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
52811d8c7986Smrgfi
52821d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52831d8c7986Smrgfi
52841d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
52851d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52861d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52871d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
52881d8c7986Smrgfi
52891d8c7986Smrg
52901d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52911d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52921d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52931d8c7986Smrg	fi
52941d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52951d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
52961d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
52971d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
52981d8c7986Smrg  $as_echo_n "(cached) " >&6
52991d8c7986Smrgelse
53001d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53011d8c7986Smrg/* end confdefs.h.  */
53021d8c7986Smrgint i;
53031d8c7986Smrg_ACEOF
53041d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
53051d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
53061d8c7986Smrgelse
53071d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
53081d8c7986Smrgfi
53091d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53101d8c7986Smrgfi
53111d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
53121d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53131d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53141d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
53151d8c7986Smrgfi
53161d8c7986Smrg
53171d8c7986Smrgfound="no"
53181d8c7986Smrg
53191d8c7986Smrg	if test $found = "no" ; then
5320c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53211d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53221d8c7986Smrg		fi
53231d8c7986Smrg
5324c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53251d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53261d8c7986Smrg		fi
53271d8c7986Smrg
53281d8c7986Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
53291d8c7986Smrg
5330c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5331c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
53321d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
53331d8c7986Smrg		if eval \${$cacheid+:} false; then :
53341d8c7986Smrg  $as_echo_n "(cached) " >&6
53351d8c7986Smrgelse
53361d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53371d8c7986Smrg/* end confdefs.h.  */
53381d8c7986Smrgint i;
53391d8c7986Smrgint
53401d8c7986Smrgmain ()
53411d8c7986Smrg{
53421d8c7986Smrg
53431d8c7986Smrg  ;
53441d8c7986Smrg  return 0;
53451d8c7986Smrg}
53461d8c7986Smrg_ACEOF
53471d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
53481d8c7986Smrg  eval $cacheid=yes
53491d8c7986Smrgelse
53501d8c7986Smrg  eval $cacheid=no
53511d8c7986Smrgfi
53521d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
53531d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
53541d8c7986Smrgfi
53551d8c7986Smrg
53561d8c7986Smrg
53571d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
53581d8c7986Smrg
53591d8c7986Smrg		eval supported=\$$cacheid
53601d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
53611d8c7986Smrg$as_echo "$supported" >&6; }
53621d8c7986Smrg		if test "$supported" = "yes" ; then
53631d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
53641d8c7986Smrg			found="yes"
53651d8c7986Smrg		fi
53661d8c7986Smrg	fi
53671d8c7986Smrg
53681d8c7986Smrg
53691d8c7986Smrg
53701d8c7986Smrg
53711d8c7986Smrg
53721d8c7986Smrg
53731d8c7986Smrg
53741d8c7986Smrg
53751d8c7986Smrg
53761d8c7986Smrg
53771d8c7986Smrg
53781d8c7986Smrg
53791d8c7986Smrg
53801d8c7986Smrg
53811d8c7986Smrg
53821d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
53831d8c7986Smrg
53841d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
53851d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53861d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
53871d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
53881d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
53891d8c7986Smrg  $as_echo_n "(cached) " >&6
53901d8c7986Smrgelse
53911d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53921d8c7986Smrg/* end confdefs.h.  */
53931d8c7986Smrgint i;
53941d8c7986Smrg_ACEOF
53951d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
53961d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
53971d8c7986Smrgelse
53981d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
53991d8c7986Smrgfi
54001d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54011d8c7986Smrgfi
54021d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
54031d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54041d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54051d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54061d8c7986Smrgfi
54071d8c7986Smrg
54081d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54091d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54101d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54111d8c7986Smrg	fi
54121d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54131d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
54141d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
54151d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
54161d8c7986Smrg  $as_echo_n "(cached) " >&6
54171d8c7986Smrgelse
54181d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54191d8c7986Smrg/* end confdefs.h.  */
54201d8c7986Smrgint i;
54211d8c7986Smrg_ACEOF
54221d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
54231d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
54241d8c7986Smrgelse
54251d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
54261d8c7986Smrgfi
54271d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54281d8c7986Smrgfi
54291d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
54301d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54311d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54321d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
54331d8c7986Smrgfi
54341d8c7986Smrg
54351d8c7986Smrgfound="no"
54361d8c7986Smrg
54371d8c7986Smrg	if test $found = "no" ; then
5438c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54391d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54401d8c7986Smrg		fi
54411d8c7986Smrg
5442c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
54431d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
54441d8c7986Smrg		fi
54451d8c7986Smrg
54461d8c7986Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
54471d8c7986Smrg
5448c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5449c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
54501d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
54511d8c7986Smrg		if eval \${$cacheid+:} false; then :
54521d8c7986Smrg  $as_echo_n "(cached) " >&6
54531d8c7986Smrgelse
54541d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54551d8c7986Smrg/* end confdefs.h.  */
54561d8c7986Smrgint i;
54571d8c7986Smrgint
54581d8c7986Smrgmain ()
54591d8c7986Smrg{
54601d8c7986Smrg
54611d8c7986Smrg  ;
54621d8c7986Smrg  return 0;
54631d8c7986Smrg}
54641d8c7986Smrg_ACEOF
54651d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
54661d8c7986Smrg  eval $cacheid=yes
54671d8c7986Smrgelse
54681d8c7986Smrg  eval $cacheid=no
54691d8c7986Smrgfi
54701d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
54711d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
54721d8c7986Smrgfi
54731d8c7986Smrg
54741d8c7986Smrg
54751d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
54761d8c7986Smrg
54771d8c7986Smrg		eval supported=\$$cacheid
54781d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
54791d8c7986Smrg$as_echo "$supported" >&6; }
54801d8c7986Smrg		if test "$supported" = "yes" ; then
54811d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
54821d8c7986Smrg			found="yes"
54831d8c7986Smrg		fi
54841d8c7986Smrg	fi
54851d8c7986Smrg
54861d8c7986Smrg
54871d8c7986Smrg
54881d8c7986Smrg
54891d8c7986Smrg
54901d8c7986Smrg
54911d8c7986Smrg
54921d8c7986Smrg
54931d8c7986Smrg
54941d8c7986Smrg
54951d8c7986Smrg
54961d8c7986Smrg
54971d8c7986Smrg
54981d8c7986Smrg
54991d8c7986Smrg
55001d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
55011d8c7986Smrg
55021d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55031d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55041d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
55051d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
55061d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
55071d8c7986Smrg  $as_echo_n "(cached) " >&6
55081d8c7986Smrgelse
55091d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55101d8c7986Smrg/* end confdefs.h.  */
55111d8c7986Smrgint i;
55121d8c7986Smrg_ACEOF
55131d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
55141d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
55151d8c7986Smrgelse
55161d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
55171d8c7986Smrgfi
55181d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55191d8c7986Smrgfi
55201d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
55211d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55221d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55231d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55241d8c7986Smrgfi
55251d8c7986Smrg
55261d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55271d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55281d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55291d8c7986Smrg	fi
55301d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55311d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
55321d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
55331d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
55341d8c7986Smrg  $as_echo_n "(cached) " >&6
55351d8c7986Smrgelse
55361d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55371d8c7986Smrg/* end confdefs.h.  */
55381d8c7986Smrgint i;
55391d8c7986Smrg_ACEOF
55401d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
55411d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
55421d8c7986Smrgelse
55431d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
55441d8c7986Smrgfi
55451d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55461d8c7986Smrgfi
55471d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
55481d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
55491d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
55501d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
55511d8c7986Smrgfi
55521d8c7986Smrg
55531d8c7986Smrgfound="no"
55541d8c7986Smrg
55551d8c7986Smrg	if test $found = "no" ; then
5556c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55571d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55581d8c7986Smrg		fi
55591d8c7986Smrg
5560c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55611d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55621d8c7986Smrg		fi
55631d8c7986Smrg
55641d8c7986Smrg		CFLAGS="$CFLAGS -Wnested-externs"
55651d8c7986Smrg
5566c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5567c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
55681d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
55691d8c7986Smrg		if eval \${$cacheid+:} false; then :
55701d8c7986Smrg  $as_echo_n "(cached) " >&6
55711d8c7986Smrgelse
55721d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55731d8c7986Smrg/* end confdefs.h.  */
55741d8c7986Smrgint i;
55751d8c7986Smrgint
55761d8c7986Smrgmain ()
55771d8c7986Smrg{
55781d8c7986Smrg
55791d8c7986Smrg  ;
55801d8c7986Smrg  return 0;
55811d8c7986Smrg}
55821d8c7986Smrg_ACEOF
55831d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
55841d8c7986Smrg  eval $cacheid=yes
55851d8c7986Smrgelse
55861d8c7986Smrg  eval $cacheid=no
55871d8c7986Smrgfi
55881d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
55891d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
55901d8c7986Smrgfi
55911d8c7986Smrg
55921d8c7986Smrg
55931d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
55941d8c7986Smrg
55951d8c7986Smrg		eval supported=\$$cacheid
55961d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
55971d8c7986Smrg$as_echo "$supported" >&6; }
55981d8c7986Smrg		if test "$supported" = "yes" ; then
55991d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
56001d8c7986Smrg			found="yes"
56011d8c7986Smrg		fi
56021d8c7986Smrg	fi
56031d8c7986Smrg
56041d8c7986Smrg
56051d8c7986Smrg
56061d8c7986Smrg
56071d8c7986Smrg
56081d8c7986Smrg
56091d8c7986Smrg
56101d8c7986Smrg
56111d8c7986Smrg
56121d8c7986Smrg
56131d8c7986Smrg
56141d8c7986Smrg
56151d8c7986Smrg
56161d8c7986Smrg
56171d8c7986Smrg
56181d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
56191d8c7986Smrg
56201d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56211d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56221d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
56231d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
56241d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
56251d8c7986Smrg  $as_echo_n "(cached) " >&6
56261d8c7986Smrgelse
56271d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56281d8c7986Smrg/* end confdefs.h.  */
56291d8c7986Smrgint i;
56301d8c7986Smrg_ACEOF
56311d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
56321d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
56331d8c7986Smrgelse
56341d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
56351d8c7986Smrgfi
56361d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56371d8c7986Smrgfi
56381d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
56391d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
56401d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
56411d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56421d8c7986Smrgfi
56431d8c7986Smrg
56441d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
56451d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56461d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56471d8c7986Smrg	fi
56481d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56491d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
56501d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
56511d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
56521d8c7986Smrg  $as_echo_n "(cached) " >&6
56531d8c7986Smrgelse
56541d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56551d8c7986Smrg/* end confdefs.h.  */
56561d8c7986Smrgint i;
56571d8c7986Smrg_ACEOF
56581d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
56591d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
56601d8c7986Smrgelse
56611d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
56621d8c7986Smrgfi
56631d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56641d8c7986Smrgfi
56651d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
56661d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56671d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56681d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
56691d8c7986Smrgfi
56701d8c7986Smrg
56711d8c7986Smrgfound="no"
56721d8c7986Smrg
56731d8c7986Smrg	if test $found = "no" ; then
5674c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56751d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56761d8c7986Smrg		fi
56771d8c7986Smrg
5678c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56791d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56801d8c7986Smrg		fi
56811d8c7986Smrg
56821d8c7986Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
56831d8c7986Smrg
5684c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5685c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
56861d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
56871d8c7986Smrg		if eval \${$cacheid+:} false; then :
56881d8c7986Smrg  $as_echo_n "(cached) " >&6
56891d8c7986Smrgelse
56901d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56911d8c7986Smrg/* end confdefs.h.  */
56921d8c7986Smrgint i;
56931d8c7986Smrgint
56941d8c7986Smrgmain ()
56951d8c7986Smrg{
56961d8c7986Smrg
56971d8c7986Smrg  ;
56981d8c7986Smrg  return 0;
56991d8c7986Smrg}
57001d8c7986Smrg_ACEOF
57011d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
57021d8c7986Smrg  eval $cacheid=yes
57031d8c7986Smrgelse
57041d8c7986Smrg  eval $cacheid=no
57051d8c7986Smrgfi
57061d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
57071d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
57081d8c7986Smrgfi
57091d8c7986Smrg
57101d8c7986Smrg
57111d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
57121d8c7986Smrg
57131d8c7986Smrg		eval supported=\$$cacheid
57141d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
57151d8c7986Smrg$as_echo "$supported" >&6; }
57161d8c7986Smrg		if test "$supported" = "yes" ; then
57171d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
57181d8c7986Smrg			found="yes"
57191d8c7986Smrg		fi
57201d8c7986Smrg	fi
57211d8c7986Smrg
57221d8c7986Smrg
57231d8c7986Smrg
57241d8c7986Smrg
57251d8c7986Smrg
57261d8c7986Smrg
57271d8c7986Smrg
57281d8c7986Smrg
57291d8c7986Smrg
57301d8c7986Smrg
57311d8c7986Smrg
57321d8c7986Smrg
57331d8c7986Smrg
57341d8c7986Smrg
57351d8c7986Smrg
57361d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
57371d8c7986Smrg
57381d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
57391d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57401d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
57411d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
57421d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
57431d8c7986Smrg  $as_echo_n "(cached) " >&6
57441d8c7986Smrgelse
57451d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57461d8c7986Smrg/* end confdefs.h.  */
57471d8c7986Smrgint i;
57481d8c7986Smrg_ACEOF
57491d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
57501d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
57511d8c7986Smrgelse
57521d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
57531d8c7986Smrgfi
57541d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57551d8c7986Smrgfi
57561d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
57571d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57581d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57591d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57601d8c7986Smrgfi
57611d8c7986Smrg
57621d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57631d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57641d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57651d8c7986Smrg	fi
57661d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57671d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
57681d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
57691d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
57701d8c7986Smrg  $as_echo_n "(cached) " >&6
57711d8c7986Smrgelse
57721d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57731d8c7986Smrg/* end confdefs.h.  */
57741d8c7986Smrgint i;
57751d8c7986Smrg_ACEOF
57761d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
57771d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
57781d8c7986Smrgelse
57791d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
57801d8c7986Smrgfi
57811d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57821d8c7986Smrgfi
57831d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
57841d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57851d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
57861d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
57871d8c7986Smrgfi
57881d8c7986Smrg
57891d8c7986Smrgfound="no"
57901d8c7986Smrg
57911d8c7986Smrg	if test $found = "no" ; then
5792c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57931d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57941d8c7986Smrg		fi
57951d8c7986Smrg
5796c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57971d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57981d8c7986Smrg		fi
57991d8c7986Smrg
58001d8c7986Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
58011d8c7986Smrg
5802c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5803c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
58041d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
58051d8c7986Smrg		if eval \${$cacheid+:} false; then :
58061d8c7986Smrg  $as_echo_n "(cached) " >&6
58071d8c7986Smrgelse
58081d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58091d8c7986Smrg/* end confdefs.h.  */
58101d8c7986Smrgint i;
58111d8c7986Smrgint
58121d8c7986Smrgmain ()
58131d8c7986Smrg{
58141d8c7986Smrg
58151d8c7986Smrg  ;
58161d8c7986Smrg  return 0;
58171d8c7986Smrg}
58181d8c7986Smrg_ACEOF
58191d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
58201d8c7986Smrg  eval $cacheid=yes
58211d8c7986Smrgelse
58221d8c7986Smrg  eval $cacheid=no
58231d8c7986Smrgfi
58241d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
58251d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
58261d8c7986Smrgfi
58271d8c7986Smrg
58281d8c7986Smrg
58291d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
58301d8c7986Smrg
58311d8c7986Smrg		eval supported=\$$cacheid
58321d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
58331d8c7986Smrg$as_echo "$supported" >&6; }
58341d8c7986Smrg		if test "$supported" = "yes" ; then
58351d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
58361d8c7986Smrg			found="yes"
58371d8c7986Smrg		fi
58381d8c7986Smrg	fi
58391d8c7986Smrg
5840c82dfdfbSmrg	if test $found = "no" ; then
5841c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5842c82dfdfbSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5843c82dfdfbSmrg		fi
5844c82dfdfbSmrg
5845c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5846c82dfdfbSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847c82dfdfbSmrg		fi
5848c82dfdfbSmrg
5849c82dfdfbSmrg		CFLAGS="$CFLAGS -fd"
5850c82dfdfbSmrg
5851c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5852c82dfdfbSmrg$as_echo_n "checking if $CC supports -fd... " >&6; }
5853c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__fd
5854c82dfdfbSmrg		if eval \${$cacheid+:} false; then :
5855c82dfdfbSmrg  $as_echo_n "(cached) " >&6
5856c82dfdfbSmrgelse
5857c82dfdfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858c82dfdfbSmrg/* end confdefs.h.  */
5859c82dfdfbSmrgint i;
5860c82dfdfbSmrgint
5861c82dfdfbSmrgmain ()
5862c82dfdfbSmrg{
5863c82dfdfbSmrg
5864c82dfdfbSmrg  ;
5865c82dfdfbSmrg  return 0;
5866c82dfdfbSmrg}
5867c82dfdfbSmrg_ACEOF
5868c82dfdfbSmrgif ac_fn_c_try_link "$LINENO"; then :
5869c82dfdfbSmrg  eval $cacheid=yes
5870c82dfdfbSmrgelse
5871c82dfdfbSmrg  eval $cacheid=no
5872c82dfdfbSmrgfi
5873c82dfdfbSmrgrm -f core conftest.err conftest.$ac_objext \
5874c82dfdfbSmrg    conftest$ac_exeext conftest.$ac_ext
5875c82dfdfbSmrgfi
5876c82dfdfbSmrg
5877c82dfdfbSmrg
5878c82dfdfbSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5879c82dfdfbSmrg
5880c82dfdfbSmrg		eval supported=\$$cacheid
5881c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5882c82dfdfbSmrg$as_echo "$supported" >&6; }
5883c82dfdfbSmrg		if test "$supported" = "yes" ; then
5884c82dfdfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
5885c82dfdfbSmrg			found="yes"
5886c82dfdfbSmrg		fi
5887c82dfdfbSmrg	fi
5888c82dfdfbSmrg
58891d8c7986Smrg
58901d8c7986Smrg
58911d8c7986Smrg
58921d8c7986Smrg
58931d8c7986Smrg
58941d8c7986Smrg
58951d8c7986Smrg
58961d8c7986Smrg
58971d8c7986Smrg
58981d8c7986Smrg
58991d8c7986Smrg
59001d8c7986Smrg
59011d8c7986Smrg
59021d8c7986Smrg
59031d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
59041d8c7986Smrg
59051d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59061d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59071d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
59081d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
59091d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
59101d8c7986Smrg  $as_echo_n "(cached) " >&6
59111d8c7986Smrgelse
59121d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59131d8c7986Smrg/* end confdefs.h.  */
59141d8c7986Smrgint i;
59151d8c7986Smrg_ACEOF
59161d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
59171d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
59181d8c7986Smrgelse
59191d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
59201d8c7986Smrgfi
59211d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59221d8c7986Smrgfi
59231d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
59241d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59251d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59261d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59271d8c7986Smrgfi
59281d8c7986Smrg
59291d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59301d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59311d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59321d8c7986Smrg	fi
59331d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59341d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
59351d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
59361d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
59371d8c7986Smrg  $as_echo_n "(cached) " >&6
59381d8c7986Smrgelse
59391d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59401d8c7986Smrg/* end confdefs.h.  */
59411d8c7986Smrgint i;
59421d8c7986Smrg_ACEOF
59431d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
59441d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
59451d8c7986Smrgelse
59461d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
59471d8c7986Smrgfi
59481d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59491d8c7986Smrgfi
59501d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
59511d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59521d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59531d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
59541d8c7986Smrgfi
59551d8c7986Smrg
59561d8c7986Smrgfound="no"
59571d8c7986Smrg
59581d8c7986Smrg	if test $found = "no" ; then
5959c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59601d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59611d8c7986Smrg		fi
59621d8c7986Smrg
5963c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
59641d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
59651d8c7986Smrg		fi
59661d8c7986Smrg
59671d8c7986Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
59681d8c7986Smrg
5969c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5970c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
59711d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
59721d8c7986Smrg		if eval \${$cacheid+:} false; then :
59731d8c7986Smrg  $as_echo_n "(cached) " >&6
59741d8c7986Smrgelse
59751d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59761d8c7986Smrg/* end confdefs.h.  */
59771d8c7986Smrgint i;
59781d8c7986Smrgint
59791d8c7986Smrgmain ()
59801d8c7986Smrg{
59811d8c7986Smrg
59821d8c7986Smrg  ;
59831d8c7986Smrg  return 0;
59841d8c7986Smrg}
59851d8c7986Smrg_ACEOF
59861d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
59871d8c7986Smrg  eval $cacheid=yes
59881d8c7986Smrgelse
59891d8c7986Smrg  eval $cacheid=no
59901d8c7986Smrgfi
59911d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
59921d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
59931d8c7986Smrgfi
59941d8c7986Smrg
59951d8c7986Smrg
59961d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
59971d8c7986Smrg
59981d8c7986Smrg		eval supported=\$$cacheid
59991d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
60001d8c7986Smrg$as_echo "$supported" >&6; }
60011d8c7986Smrg		if test "$supported" = "yes" ; then
60021d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
60031d8c7986Smrg			found="yes"
60041d8c7986Smrg		fi
60051d8c7986Smrg	fi
60061d8c7986Smrg
60071d8c7986Smrg
60081d8c7986Smrg
60091d8c7986Smrg
60101d8c7986Smrg
60111d8c7986Smrg# This chunk adds additional warnings that could catch undesired effects.
60121d8c7986Smrg
60131d8c7986Smrg
60141d8c7986Smrg
60151d8c7986Smrg
60161d8c7986Smrg
60171d8c7986Smrg
60181d8c7986Smrg
60191d8c7986Smrg
60201d8c7986Smrg
60211d8c7986Smrg
60221d8c7986Smrg
60231d8c7986Smrg
60241d8c7986Smrg
60251d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
60261d8c7986Smrg
60271d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
60281d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60291d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
60301d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
60311d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
60321d8c7986Smrg  $as_echo_n "(cached) " >&6
60331d8c7986Smrgelse
60341d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60351d8c7986Smrg/* end confdefs.h.  */
60361d8c7986Smrgint i;
60371d8c7986Smrg_ACEOF
60381d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
60391d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
60401d8c7986Smrgelse
60411d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
60421d8c7986Smrgfi
60431d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60441d8c7986Smrgfi
60451d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
60461d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
60471d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
60481d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60491d8c7986Smrgfi
60501d8c7986Smrg
60511d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
60521d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60531d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60541d8c7986Smrg	fi
60551d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60561d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
60571d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
60581d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
60591d8c7986Smrg  $as_echo_n "(cached) " >&6
60601d8c7986Smrgelse
60611d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60621d8c7986Smrg/* end confdefs.h.  */
60631d8c7986Smrgint i;
60641d8c7986Smrg_ACEOF
60651d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
60661d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
60671d8c7986Smrgelse
60681d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
60691d8c7986Smrgfi
60701d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60711d8c7986Smrgfi
60721d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
60731d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
60741d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
60751d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
60761d8c7986Smrgfi
60771d8c7986Smrg
60781d8c7986Smrgfound="no"
60791d8c7986Smrg
60801d8c7986Smrg	if test $found = "no" ; then
6081c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60821d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60831d8c7986Smrg		fi
60841d8c7986Smrg
6085c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60861d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60871d8c7986Smrg		fi
60881d8c7986Smrg
60891d8c7986Smrg		CFLAGS="$CFLAGS -Wunused"
60901d8c7986Smrg
6091c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6092c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wunused... " >&6; }
60931d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wunused
60941d8c7986Smrg		if eval \${$cacheid+:} false; then :
60951d8c7986Smrg  $as_echo_n "(cached) " >&6
60961d8c7986Smrgelse
60971d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60981d8c7986Smrg/* end confdefs.h.  */
60991d8c7986Smrgint i;
61001d8c7986Smrgint
61011d8c7986Smrgmain ()
61021d8c7986Smrg{
61031d8c7986Smrg
61041d8c7986Smrg  ;
61051d8c7986Smrg  return 0;
61061d8c7986Smrg}
61071d8c7986Smrg_ACEOF
61081d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
61091d8c7986Smrg  eval $cacheid=yes
61101d8c7986Smrgelse
61111d8c7986Smrg  eval $cacheid=no
61121d8c7986Smrgfi
61131d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
61141d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
61151d8c7986Smrgfi
61161d8c7986Smrg
61171d8c7986Smrg
61181d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
61191d8c7986Smrg
61201d8c7986Smrg		eval supported=\$$cacheid
61211d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
61221d8c7986Smrg$as_echo "$supported" >&6; }
61231d8c7986Smrg		if test "$supported" = "yes" ; then
61241d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
61251d8c7986Smrg			found="yes"
61261d8c7986Smrg		fi
61271d8c7986Smrg	fi
61281d8c7986Smrg
61291d8c7986Smrg
61301d8c7986Smrg
61311d8c7986Smrg
61321d8c7986Smrg
61331d8c7986Smrg
61341d8c7986Smrg
61351d8c7986Smrg
61361d8c7986Smrg
61371d8c7986Smrg
61381d8c7986Smrg
61391d8c7986Smrg
61401d8c7986Smrg
61411d8c7986Smrg
61421d8c7986Smrg
61431d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
61441d8c7986Smrg
61451d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61461d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61471d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
61481d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
61491d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
61501d8c7986Smrg  $as_echo_n "(cached) " >&6
61511d8c7986Smrgelse
61521d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61531d8c7986Smrg/* end confdefs.h.  */
61541d8c7986Smrgint i;
61551d8c7986Smrg_ACEOF
61561d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
61571d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
61581d8c7986Smrgelse
61591d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
61601d8c7986Smrgfi
61611d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61621d8c7986Smrgfi
61631d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
61641d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61651d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61661d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61671d8c7986Smrgfi
61681d8c7986Smrg
61691d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61701d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61711d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61721d8c7986Smrg	fi
61731d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61741d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
61751d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
61761d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
61771d8c7986Smrg  $as_echo_n "(cached) " >&6
61781d8c7986Smrgelse
61791d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61801d8c7986Smrg/* end confdefs.h.  */
61811d8c7986Smrgint i;
61821d8c7986Smrg_ACEOF
61831d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
61841d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
61851d8c7986Smrgelse
61861d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
61871d8c7986Smrgfi
61881d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61891d8c7986Smrgfi
61901d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
61911d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61921d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61931d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
61941d8c7986Smrgfi
61951d8c7986Smrg
61961d8c7986Smrgfound="no"
61971d8c7986Smrg
61981d8c7986Smrg	if test $found = "no" ; then
6199c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62001d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62011d8c7986Smrg		fi
62021d8c7986Smrg
6203c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
62041d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62051d8c7986Smrg		fi
62061d8c7986Smrg
62071d8c7986Smrg		CFLAGS="$CFLAGS -Wuninitialized"
62081d8c7986Smrg
6209c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6210c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
62111d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
62121d8c7986Smrg		if eval \${$cacheid+:} false; then :
62131d8c7986Smrg  $as_echo_n "(cached) " >&6
62141d8c7986Smrgelse
62151d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62161d8c7986Smrg/* end confdefs.h.  */
62171d8c7986Smrgint i;
62181d8c7986Smrgint
62191d8c7986Smrgmain ()
62201d8c7986Smrg{
62211d8c7986Smrg
62221d8c7986Smrg  ;
62231d8c7986Smrg  return 0;
62241d8c7986Smrg}
62251d8c7986Smrg_ACEOF
62261d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
62271d8c7986Smrg  eval $cacheid=yes
62281d8c7986Smrgelse
62291d8c7986Smrg  eval $cacheid=no
62301d8c7986Smrgfi
62311d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
62321d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
62331d8c7986Smrgfi
62341d8c7986Smrg
62351d8c7986Smrg
62361d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
62371d8c7986Smrg
62381d8c7986Smrg		eval supported=\$$cacheid
62391d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
62401d8c7986Smrg$as_echo "$supported" >&6; }
62411d8c7986Smrg		if test "$supported" = "yes" ; then
62421d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
62431d8c7986Smrg			found="yes"
62441d8c7986Smrg		fi
62451d8c7986Smrg	fi
62461d8c7986Smrg
62471d8c7986Smrg
62481d8c7986Smrg
62491d8c7986Smrg
62501d8c7986Smrg
62511d8c7986Smrg
62521d8c7986Smrg
62531d8c7986Smrg
62541d8c7986Smrg
62551d8c7986Smrg
62561d8c7986Smrg
62571d8c7986Smrg
62581d8c7986Smrg
62591d8c7986Smrg
62601d8c7986Smrg
62611d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
62621d8c7986Smrg
62631d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62641d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62651d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
62661d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
62671d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
62681d8c7986Smrg  $as_echo_n "(cached) " >&6
62691d8c7986Smrgelse
62701d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62711d8c7986Smrg/* end confdefs.h.  */
62721d8c7986Smrgint i;
62731d8c7986Smrg_ACEOF
62741d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
62751d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
62761d8c7986Smrgelse
62771d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
62781d8c7986Smrgfi
62791d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62801d8c7986Smrgfi
62811d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
62821d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62831d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62841d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
62851d8c7986Smrgfi
62861d8c7986Smrg
62871d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62881d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62891d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62901d8c7986Smrg	fi
62911d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
62921d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
62931d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
62941d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
62951d8c7986Smrg  $as_echo_n "(cached) " >&6
62961d8c7986Smrgelse
62971d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62981d8c7986Smrg/* end confdefs.h.  */
62991d8c7986Smrgint i;
63001d8c7986Smrg_ACEOF
63011d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
63021d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
63031d8c7986Smrgelse
63041d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
63051d8c7986Smrgfi
63061d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63071d8c7986Smrgfi
63081d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
63091d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
63101d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
63111d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
63121d8c7986Smrgfi
63131d8c7986Smrg
63141d8c7986Smrgfound="no"
63151d8c7986Smrg
63161d8c7986Smrg	if test $found = "no" ; then
6317c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63181d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63191d8c7986Smrg		fi
63201d8c7986Smrg
6321c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63221d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63231d8c7986Smrg		fi
63241d8c7986Smrg
63251d8c7986Smrg		CFLAGS="$CFLAGS -Wshadow"
63261d8c7986Smrg
6327c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6328c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
63291d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wshadow
63301d8c7986Smrg		if eval \${$cacheid+:} false; then :
63311d8c7986Smrg  $as_echo_n "(cached) " >&6
63321d8c7986Smrgelse
63331d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63341d8c7986Smrg/* end confdefs.h.  */
63351d8c7986Smrgint i;
63361d8c7986Smrgint
63371d8c7986Smrgmain ()
63381d8c7986Smrg{
63391d8c7986Smrg
63401d8c7986Smrg  ;
63411d8c7986Smrg  return 0;
63421d8c7986Smrg}
63431d8c7986Smrg_ACEOF
63441d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
63451d8c7986Smrg  eval $cacheid=yes
63461d8c7986Smrgelse
63471d8c7986Smrg  eval $cacheid=no
63481d8c7986Smrgfi
63491d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
63501d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
63511d8c7986Smrgfi
63521d8c7986Smrg
63531d8c7986Smrg
63541d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
63551d8c7986Smrg
63561d8c7986Smrg		eval supported=\$$cacheid
63571d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
63581d8c7986Smrg$as_echo "$supported" >&6; }
63591d8c7986Smrg		if test "$supported" = "yes" ; then
63601d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
63611d8c7986Smrg			found="yes"
63621d8c7986Smrg		fi
63631d8c7986Smrg	fi
63641d8c7986Smrg
63651d8c7986Smrg
63661d8c7986Smrg
63671d8c7986Smrg
63681d8c7986Smrg
63691d8c7986Smrg
63701d8c7986Smrg
63711d8c7986Smrg
63721d8c7986Smrg
63731d8c7986Smrg
63741d8c7986Smrg
63751d8c7986Smrg
63761d8c7986Smrg
63771d8c7986Smrg
63781d8c7986Smrg
63791d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
63801d8c7986Smrg
63811d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63821d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63831d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
63841d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
63851d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
63861d8c7986Smrg  $as_echo_n "(cached) " >&6
63871d8c7986Smrgelse
63881d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63891d8c7986Smrg/* end confdefs.h.  */
63901d8c7986Smrgint i;
63911d8c7986Smrg_ACEOF
63921d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
63931d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
63941d8c7986Smrgelse
63951d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
63961d8c7986Smrgfi
63971d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63981d8c7986Smrgfi
63991d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
64001d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
64011d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
64021d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64031d8c7986Smrgfi
64041d8c7986Smrg
64051d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
64061d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64071d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64081d8c7986Smrg	fi
64091d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64101d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
64111d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
64121d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
64131d8c7986Smrg  $as_echo_n "(cached) " >&6
64141d8c7986Smrgelse
64151d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64161d8c7986Smrg/* end confdefs.h.  */
64171d8c7986Smrgint i;
64181d8c7986Smrg_ACEOF
64191d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
64201d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
64211d8c7986Smrgelse
64221d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
64231d8c7986Smrgfi
64241d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64251d8c7986Smrgfi
64261d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
64271d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64281d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64291d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
64301d8c7986Smrgfi
64311d8c7986Smrg
64321d8c7986Smrgfound="no"
64331d8c7986Smrg
64341d8c7986Smrg	if test $found = "no" ; then
6435c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64361d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64371d8c7986Smrg		fi
64381d8c7986Smrg
6439c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
64401d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64411d8c7986Smrg		fi
64421d8c7986Smrg
6443c82dfdfbSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
64441d8c7986Smrg
6445c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6446c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6447c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
64481d8c7986Smrg		if eval \${$cacheid+:} false; then :
64491d8c7986Smrg  $as_echo_n "(cached) " >&6
64501d8c7986Smrgelse
64511d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64521d8c7986Smrg/* end confdefs.h.  */
64531d8c7986Smrgint i;
64541d8c7986Smrgint
64551d8c7986Smrgmain ()
64561d8c7986Smrg{
64571d8c7986Smrg
64581d8c7986Smrg  ;
64591d8c7986Smrg  return 0;
64601d8c7986Smrg}
64611d8c7986Smrg_ACEOF
64621d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
64631d8c7986Smrg  eval $cacheid=yes
64641d8c7986Smrgelse
64651d8c7986Smrg  eval $cacheid=no
64661d8c7986Smrgfi
64671d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
64681d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
64691d8c7986Smrgfi
64701d8c7986Smrg
64711d8c7986Smrg
64721d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
64731d8c7986Smrg
64741d8c7986Smrg		eval supported=\$$cacheid
64751d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
64761d8c7986Smrg$as_echo "$supported" >&6; }
64771d8c7986Smrg		if test "$supported" = "yes" ; then
6478c82dfdfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
64791d8c7986Smrg			found="yes"
64801d8c7986Smrg		fi
64811d8c7986Smrg	fi
64821d8c7986Smrg
64831d8c7986Smrg
64841d8c7986Smrg
64851d8c7986Smrg
64861d8c7986Smrg
64871d8c7986Smrg
64881d8c7986Smrg
64891d8c7986Smrg
64901d8c7986Smrg
64911d8c7986Smrg
64921d8c7986Smrg
64931d8c7986Smrg
64941d8c7986Smrg
64951d8c7986Smrg
64961d8c7986Smrg
64971d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
64981d8c7986Smrg
64991d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
65001d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65011d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
65021d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
65031d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
65041d8c7986Smrg  $as_echo_n "(cached) " >&6
65051d8c7986Smrgelse
65061d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65071d8c7986Smrg/* end confdefs.h.  */
65081d8c7986Smrgint i;
65091d8c7986Smrg_ACEOF
65101d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
65111d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
65121d8c7986Smrgelse
65131d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
65141d8c7986Smrgfi
65151d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65161d8c7986Smrgfi
65171d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
65181d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65191d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65201d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65211d8c7986Smrgfi
65221d8c7986Smrg
65231d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65241d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65251d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65261d8c7986Smrg	fi
65271d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65281d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
65291d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
65301d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
65311d8c7986Smrg  $as_echo_n "(cached) " >&6
65321d8c7986Smrgelse
65331d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65341d8c7986Smrg/* end confdefs.h.  */
65351d8c7986Smrgint i;
65361d8c7986Smrg_ACEOF
65371d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
65381d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
65391d8c7986Smrgelse
65401d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
65411d8c7986Smrgfi
65421d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65431d8c7986Smrgfi
65441d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
65451d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65461d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65471d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
65481d8c7986Smrgfi
65491d8c7986Smrg
65501d8c7986Smrgfound="no"
65511d8c7986Smrg
65521d8c7986Smrg	if test $found = "no" ; then
6553c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65541d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65551d8c7986Smrg		fi
65561d8c7986Smrg
6557c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65581d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65591d8c7986Smrg		fi
65601d8c7986Smrg
6561c82dfdfbSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
65621d8c7986Smrg
6563c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6564c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6565c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
65661d8c7986Smrg		if eval \${$cacheid+:} false; then :
65671d8c7986Smrg  $as_echo_n "(cached) " >&6
65681d8c7986Smrgelse
65691d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65701d8c7986Smrg/* end confdefs.h.  */
65711d8c7986Smrgint i;
65721d8c7986Smrgint
65731d8c7986Smrgmain ()
65741d8c7986Smrg{
65751d8c7986Smrg
65761d8c7986Smrg  ;
65771d8c7986Smrg  return 0;
65781d8c7986Smrg}
65791d8c7986Smrg_ACEOF
65801d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
65811d8c7986Smrg  eval $cacheid=yes
65821d8c7986Smrgelse
65831d8c7986Smrg  eval $cacheid=no
65841d8c7986Smrgfi
65851d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
65861d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
65871d8c7986Smrgfi
65881d8c7986Smrg
65891d8c7986Smrg
65901d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
65911d8c7986Smrg
65921d8c7986Smrg		eval supported=\$$cacheid
65931d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
65941d8c7986Smrg$as_echo "$supported" >&6; }
65951d8c7986Smrg		if test "$supported" = "yes" ; then
6596c82dfdfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
65971d8c7986Smrg			found="yes"
65981d8c7986Smrg		fi
65991d8c7986Smrg	fi
66001d8c7986Smrg
66011d8c7986Smrg
66021d8c7986Smrg
66031d8c7986Smrg
66041d8c7986Smrg
66051d8c7986Smrg
66061d8c7986Smrg
66071d8c7986Smrg
66081d8c7986Smrg
66091d8c7986Smrg
66101d8c7986Smrg
66111d8c7986Smrg
66121d8c7986Smrg
66131d8c7986Smrg
66141d8c7986Smrg
66151d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
66161d8c7986Smrg
66171d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66181d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66191d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
66201d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
66211d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
66221d8c7986Smrg  $as_echo_n "(cached) " >&6
66231d8c7986Smrgelse
66241d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66251d8c7986Smrg/* end confdefs.h.  */
66261d8c7986Smrgint i;
66271d8c7986Smrg_ACEOF
66281d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
66291d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
66301d8c7986Smrgelse
66311d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
66321d8c7986Smrgfi
66331d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66341d8c7986Smrgfi
66351d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
66361d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66371d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66381d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66391d8c7986Smrgfi
66401d8c7986Smrg
66411d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66421d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66431d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66441d8c7986Smrg	fi
66451d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66461d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
66471d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
66481d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
66491d8c7986Smrg  $as_echo_n "(cached) " >&6
66501d8c7986Smrgelse
66511d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66521d8c7986Smrg/* end confdefs.h.  */
66531d8c7986Smrgint i;
66541d8c7986Smrg_ACEOF
66551d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
66561d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
66571d8c7986Smrgelse
66581d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
66591d8c7986Smrgfi
66601d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66611d8c7986Smrgfi
66621d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
66631d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66641d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66651d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
66661d8c7986Smrgfi
66671d8c7986Smrg
66681d8c7986Smrgfound="no"
66691d8c7986Smrg
66701d8c7986Smrg	if test $found = "no" ; then
6671c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66721d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66731d8c7986Smrg		fi
66741d8c7986Smrg
6675c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66761d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66771d8c7986Smrg		fi
66781d8c7986Smrg
6679c82dfdfbSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
66801d8c7986Smrg
6681c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6682c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6683c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
66841d8c7986Smrg		if eval \${$cacheid+:} false; then :
66851d8c7986Smrg  $as_echo_n "(cached) " >&6
66861d8c7986Smrgelse
66871d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66881d8c7986Smrg/* end confdefs.h.  */
66891d8c7986Smrgint i;
66901d8c7986Smrgint
66911d8c7986Smrgmain ()
66921d8c7986Smrg{
66931d8c7986Smrg
66941d8c7986Smrg  ;
66951d8c7986Smrg  return 0;
66961d8c7986Smrg}
66971d8c7986Smrg_ACEOF
66981d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
66991d8c7986Smrg  eval $cacheid=yes
67001d8c7986Smrgelse
67011d8c7986Smrg  eval $cacheid=no
67021d8c7986Smrgfi
67031d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
67041d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
67051d8c7986Smrgfi
67061d8c7986Smrg
67071d8c7986Smrg
67081d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
67091d8c7986Smrg
67101d8c7986Smrg		eval supported=\$$cacheid
67111d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
67121d8c7986Smrg$as_echo "$supported" >&6; }
67131d8c7986Smrg		if test "$supported" = "yes" ; then
6714c82dfdfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
67151d8c7986Smrg			found="yes"
67161d8c7986Smrg		fi
67171d8c7986Smrg	fi
67181d8c7986Smrg
67191d8c7986Smrg
67201d8c7986Smrg
67211d8c7986Smrg
67221d8c7986Smrg
67231d8c7986Smrg
67241d8c7986Smrg
67251d8c7986Smrg
67261d8c7986Smrg
67271d8c7986Smrg
67281d8c7986Smrg
67291d8c7986Smrg
67301d8c7986Smrg
67311d8c7986Smrg
67321d8c7986Smrg
67331d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
67341d8c7986Smrg
67351d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67361d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67371d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
67381d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
67391d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
67401d8c7986Smrg  $as_echo_n "(cached) " >&6
67411d8c7986Smrgelse
67421d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67431d8c7986Smrg/* end confdefs.h.  */
67441d8c7986Smrgint i;
67451d8c7986Smrg_ACEOF
67461d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
67471d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
67481d8c7986Smrgelse
67491d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
67501d8c7986Smrgfi
67511d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67521d8c7986Smrgfi
67531d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
67541d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67551d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67561d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67571d8c7986Smrgfi
67581d8c7986Smrg
67591d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67601d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67611d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67621d8c7986Smrg	fi
67631d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67641d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
67651d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
67661d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
67671d8c7986Smrg  $as_echo_n "(cached) " >&6
67681d8c7986Smrgelse
67691d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67701d8c7986Smrg/* end confdefs.h.  */
67711d8c7986Smrgint i;
67721d8c7986Smrg_ACEOF
67731d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
67741d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
67751d8c7986Smrgelse
67761d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
67771d8c7986Smrgfi
67781d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67791d8c7986Smrgfi
67801d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
67811d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67821d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67831d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
67841d8c7986Smrgfi
67851d8c7986Smrg
67861d8c7986Smrgfound="no"
67871d8c7986Smrg
67881d8c7986Smrg	if test $found = "no" ; then
6789c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67901d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67911d8c7986Smrg		fi
67921d8c7986Smrg
6793c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
67941d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
67951d8c7986Smrg		fi
67961d8c7986Smrg
6797c82dfdfbSmrg		CFLAGS="$CFLAGS -Wlogical-op"
67981d8c7986Smrg
6799c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6800c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6801c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
68021d8c7986Smrg		if eval \${$cacheid+:} false; then :
68031d8c7986Smrg  $as_echo_n "(cached) " >&6
68041d8c7986Smrgelse
68051d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68061d8c7986Smrg/* end confdefs.h.  */
68071d8c7986Smrgint i;
68081d8c7986Smrgint
68091d8c7986Smrgmain ()
68101d8c7986Smrg{
68111d8c7986Smrg
68121d8c7986Smrg  ;
68131d8c7986Smrg  return 0;
68141d8c7986Smrg}
68151d8c7986Smrg_ACEOF
68161d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
68171d8c7986Smrg  eval $cacheid=yes
68181d8c7986Smrgelse
68191d8c7986Smrg  eval $cacheid=no
68201d8c7986Smrgfi
68211d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
68221d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
68231d8c7986Smrgfi
68241d8c7986Smrg
68251d8c7986Smrg
68261d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
68271d8c7986Smrg
68281d8c7986Smrg		eval supported=\$$cacheid
68291d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
68301d8c7986Smrg$as_echo "$supported" >&6; }
68311d8c7986Smrg		if test "$supported" = "yes" ; then
6832c82dfdfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
68331d8c7986Smrg			found="yes"
68341d8c7986Smrg		fi
68351d8c7986Smrg	fi
68361d8c7986Smrg
68371d8c7986Smrg
68381d8c7986Smrg
68391d8c7986Smrg# These are currently disabled because they are noisy.  They will be enabled
68401d8c7986Smrg# in the future once the codebase is sufficiently modernized to silence
68411d8c7986Smrg# them.  For now, I don't want them to drown out the other warnings.
68421d8c7986Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
68431d8c7986Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6844c82dfdfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
68451d8c7986Smrg
68461d8c7986Smrg# Turn some warnings into errors, so we don't accidently get successful builds
68471d8c7986Smrg# when there are problems that should be fixed.
68481d8c7986Smrg
68491d8c7986Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
68501d8c7986Smrg
68511d8c7986Smrg
68521d8c7986Smrg
68531d8c7986Smrg
68541d8c7986Smrg
68551d8c7986Smrg
68561d8c7986Smrg
68571d8c7986Smrg
68581d8c7986Smrg
68591d8c7986Smrg
68601d8c7986Smrg
68611d8c7986Smrg
68621d8c7986Smrg
68631d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
68641d8c7986Smrg
68651d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68661d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68671d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
68681d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
68691d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
68701d8c7986Smrg  $as_echo_n "(cached) " >&6
68711d8c7986Smrgelse
68721d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68731d8c7986Smrg/* end confdefs.h.  */
68741d8c7986Smrgint i;
68751d8c7986Smrg_ACEOF
68761d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
68771d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
68781d8c7986Smrgelse
68791d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
68801d8c7986Smrgfi
68811d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68821d8c7986Smrgfi
68831d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
68841d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68851d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68861d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
68871d8c7986Smrgfi
68881d8c7986Smrg
68891d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68901d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68911d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68921d8c7986Smrg	fi
68931d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68941d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
68951d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
68961d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
68971d8c7986Smrg  $as_echo_n "(cached) " >&6
68981d8c7986Smrgelse
68991d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69001d8c7986Smrg/* end confdefs.h.  */
69011d8c7986Smrgint i;
69021d8c7986Smrg_ACEOF
69031d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
69041d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
69051d8c7986Smrgelse
69061d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
69071d8c7986Smrgfi
69081d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
69091d8c7986Smrgfi
69101d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
69111d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69121d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69131d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
69141d8c7986Smrgfi
69151d8c7986Smrg
69161d8c7986Smrgfound="no"
69171d8c7986Smrg
69181d8c7986Smrg	if test $found = "no" ; then
6919c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69201d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69211d8c7986Smrg		fi
69221d8c7986Smrg
6923c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69241d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69251d8c7986Smrg		fi
69261d8c7986Smrg
69271d8c7986Smrg		CFLAGS="$CFLAGS -Werror=implicit"
69281d8c7986Smrg
6929c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6930c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6931c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
69321d8c7986Smrg		if eval \${$cacheid+:} false; then :
69331d8c7986Smrg  $as_echo_n "(cached) " >&6
69341d8c7986Smrgelse
69351d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69361d8c7986Smrg/* end confdefs.h.  */
69371d8c7986Smrgint i;
69381d8c7986Smrgint
69391d8c7986Smrgmain ()
69401d8c7986Smrg{
69411d8c7986Smrg
69421d8c7986Smrg  ;
69431d8c7986Smrg  return 0;
69441d8c7986Smrg}
69451d8c7986Smrg_ACEOF
69461d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
69471d8c7986Smrg  eval $cacheid=yes
69481d8c7986Smrgelse
69491d8c7986Smrg  eval $cacheid=no
69501d8c7986Smrgfi
69511d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
69521d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
69531d8c7986Smrgfi
69541d8c7986Smrg
69551d8c7986Smrg
69561d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
69571d8c7986Smrg
69581d8c7986Smrg		eval supported=\$$cacheid
69591d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
69601d8c7986Smrg$as_echo "$supported" >&6; }
69611d8c7986Smrg		if test "$supported" = "yes" ; then
69621d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
69631d8c7986Smrg			found="yes"
69641d8c7986Smrg		fi
69651d8c7986Smrg	fi
69661d8c7986Smrg
69671d8c7986Smrg	if test $found = "no" ; then
6968c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69691d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69701d8c7986Smrg		fi
69711d8c7986Smrg
6972c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69731d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69741d8c7986Smrg		fi
69751d8c7986Smrg
69761d8c7986Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
69771d8c7986Smrg
6978c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6979c82dfdfbSmrg$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6980c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
69811d8c7986Smrg		if eval \${$cacheid+:} false; then :
69821d8c7986Smrg  $as_echo_n "(cached) " >&6
69831d8c7986Smrgelse
69841d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69851d8c7986Smrg/* end confdefs.h.  */
69861d8c7986Smrgint i;
69871d8c7986Smrgint
69881d8c7986Smrgmain ()
69891d8c7986Smrg{
69901d8c7986Smrg
69911d8c7986Smrg  ;
69921d8c7986Smrg  return 0;
69931d8c7986Smrg}
69941d8c7986Smrg_ACEOF
69951d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
69961d8c7986Smrg  eval $cacheid=yes
69971d8c7986Smrgelse
69981d8c7986Smrg  eval $cacheid=no
69991d8c7986Smrgfi
70001d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
70011d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
70021d8c7986Smrgfi
70031d8c7986Smrg
70041d8c7986Smrg
70051d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
70061d8c7986Smrg
70071d8c7986Smrg		eval supported=\$$cacheid
70081d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
70091d8c7986Smrg$as_echo "$supported" >&6; }
70101d8c7986Smrg		if test "$supported" = "yes" ; then
70111d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
70121d8c7986Smrg			found="yes"
70131d8c7986Smrg		fi
70141d8c7986Smrg	fi
70151d8c7986Smrg
70161d8c7986Smrg
70171d8c7986Smrg
70181d8c7986Smrg
70191d8c7986Smrg
70201d8c7986Smrg
70211d8c7986Smrg
70221d8c7986Smrg
70231d8c7986Smrg
70241d8c7986Smrg
70251d8c7986Smrg
70261d8c7986Smrg
70271d8c7986Smrg
70281d8c7986Smrg
70291d8c7986Smrg
70301d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
70311d8c7986Smrg
70321d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
70331d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70341d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
70351d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
70361d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
70371d8c7986Smrg  $as_echo_n "(cached) " >&6
70381d8c7986Smrgelse
70391d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70401d8c7986Smrg/* end confdefs.h.  */
70411d8c7986Smrgint i;
70421d8c7986Smrg_ACEOF
70431d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
70441d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
70451d8c7986Smrgelse
70461d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
70471d8c7986Smrgfi
70481d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70491d8c7986Smrgfi
70501d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
70511d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70521d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70531d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70541d8c7986Smrgfi
70551d8c7986Smrg
70561d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70571d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70581d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70591d8c7986Smrg	fi
70601d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70611d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
70621d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
70631d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
70641d8c7986Smrg  $as_echo_n "(cached) " >&6
70651d8c7986Smrgelse
70661d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70671d8c7986Smrg/* end confdefs.h.  */
70681d8c7986Smrgint i;
70691d8c7986Smrg_ACEOF
70701d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
70711d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
70721d8c7986Smrgelse
70731d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
70741d8c7986Smrgfi
70751d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70761d8c7986Smrgfi
70771d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
70781d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70791d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70801d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
70811d8c7986Smrgfi
70821d8c7986Smrg
70831d8c7986Smrgfound="no"
70841d8c7986Smrg
70851d8c7986Smrg	if test $found = "no" ; then
7086c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70871d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70881d8c7986Smrg		fi
70891d8c7986Smrg
7090c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70911d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70921d8c7986Smrg		fi
70931d8c7986Smrg
70941d8c7986Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
70951d8c7986Smrg
7096c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7097c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7098c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
70991d8c7986Smrg		if eval \${$cacheid+:} false; then :
71001d8c7986Smrg  $as_echo_n "(cached) " >&6
71011d8c7986Smrgelse
71021d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71031d8c7986Smrg/* end confdefs.h.  */
71041d8c7986Smrgint i;
71051d8c7986Smrgint
71061d8c7986Smrgmain ()
71071d8c7986Smrg{
71081d8c7986Smrg
71091d8c7986Smrg  ;
71101d8c7986Smrg  return 0;
71111d8c7986Smrg}
71121d8c7986Smrg_ACEOF
71131d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
71141d8c7986Smrg  eval $cacheid=yes
71151d8c7986Smrgelse
71161d8c7986Smrg  eval $cacheid=no
71171d8c7986Smrgfi
71181d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
71191d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
71201d8c7986Smrgfi
71211d8c7986Smrg
71221d8c7986Smrg
71231d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
71241d8c7986Smrg
71251d8c7986Smrg		eval supported=\$$cacheid
71261d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
71271d8c7986Smrg$as_echo "$supported" >&6; }
71281d8c7986Smrg		if test "$supported" = "yes" ; then
71291d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
71301d8c7986Smrg			found="yes"
71311d8c7986Smrg		fi
71321d8c7986Smrg	fi
71331d8c7986Smrg
71341d8c7986Smrg
71351d8c7986Smrg
71361d8c7986Smrg
71371d8c7986Smrg
71381d8c7986Smrg
71391d8c7986Smrg
71401d8c7986Smrg
71411d8c7986Smrg
71421d8c7986Smrg
71431d8c7986Smrg
71441d8c7986Smrg
71451d8c7986Smrg
71461d8c7986Smrg
71471d8c7986Smrg
71481d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
71491d8c7986Smrg
71501d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71511d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71521d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
71531d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
71541d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
71551d8c7986Smrg  $as_echo_n "(cached) " >&6
71561d8c7986Smrgelse
71571d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71581d8c7986Smrg/* end confdefs.h.  */
71591d8c7986Smrgint i;
71601d8c7986Smrg_ACEOF
71611d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
71621d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
71631d8c7986Smrgelse
71641d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
71651d8c7986Smrgfi
71661d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71671d8c7986Smrgfi
71681d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
71691d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71701d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71711d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71721d8c7986Smrgfi
71731d8c7986Smrg
71741d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71751d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71761d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71771d8c7986Smrg	fi
71781d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71791d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
71801d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
71811d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
71821d8c7986Smrg  $as_echo_n "(cached) " >&6
71831d8c7986Smrgelse
71841d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71851d8c7986Smrg/* end confdefs.h.  */
71861d8c7986Smrgint i;
71871d8c7986Smrg_ACEOF
71881d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
71891d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
71901d8c7986Smrgelse
71911d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
71921d8c7986Smrgfi
71931d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
71941d8c7986Smrgfi
71951d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
71961d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71971d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71981d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
71991d8c7986Smrgfi
72001d8c7986Smrg
72011d8c7986Smrgfound="no"
72021d8c7986Smrg
72031d8c7986Smrg	if test $found = "no" ; then
7204c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72051d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72061d8c7986Smrg		fi
72071d8c7986Smrg
7208c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72091d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72101d8c7986Smrg		fi
72111d8c7986Smrg
72121d8c7986Smrg		CFLAGS="$CFLAGS -Werror=init-self"
72131d8c7986Smrg
7214c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7215c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7216c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
72171d8c7986Smrg		if eval \${$cacheid+:} false; then :
72181d8c7986Smrg  $as_echo_n "(cached) " >&6
72191d8c7986Smrgelse
72201d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72211d8c7986Smrg/* end confdefs.h.  */
72221d8c7986Smrgint i;
72231d8c7986Smrgint
72241d8c7986Smrgmain ()
72251d8c7986Smrg{
72261d8c7986Smrg
72271d8c7986Smrg  ;
72281d8c7986Smrg  return 0;
72291d8c7986Smrg}
72301d8c7986Smrg_ACEOF
72311d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
72321d8c7986Smrg  eval $cacheid=yes
72331d8c7986Smrgelse
72341d8c7986Smrg  eval $cacheid=no
72351d8c7986Smrgfi
72361d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
72371d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
72381d8c7986Smrgfi
72391d8c7986Smrg
72401d8c7986Smrg
72411d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
72421d8c7986Smrg
72431d8c7986Smrg		eval supported=\$$cacheid
72441d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
72451d8c7986Smrg$as_echo "$supported" >&6; }
72461d8c7986Smrg		if test "$supported" = "yes" ; then
72471d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
72481d8c7986Smrg			found="yes"
72491d8c7986Smrg		fi
72501d8c7986Smrg	fi
72511d8c7986Smrg
72521d8c7986Smrg
72531d8c7986Smrg
72541d8c7986Smrg
72551d8c7986Smrg
72561d8c7986Smrg
72571d8c7986Smrg
72581d8c7986Smrg
72591d8c7986Smrg
72601d8c7986Smrg
72611d8c7986Smrg
72621d8c7986Smrg
72631d8c7986Smrg
72641d8c7986Smrg
72651d8c7986Smrg
72661d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
72671d8c7986Smrg
72681d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
72691d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72701d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
72711d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
72721d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
72731d8c7986Smrg  $as_echo_n "(cached) " >&6
72741d8c7986Smrgelse
72751d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72761d8c7986Smrg/* end confdefs.h.  */
72771d8c7986Smrgint i;
72781d8c7986Smrg_ACEOF
72791d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
72801d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
72811d8c7986Smrgelse
72821d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
72831d8c7986Smrgfi
72841d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72851d8c7986Smrgfi
72861d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
72871d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
72881d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
72891d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
72901d8c7986Smrgfi
72911d8c7986Smrg
72921d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
72931d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72941d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72951d8c7986Smrg	fi
72961d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72971d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
72981d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
72991d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
73001d8c7986Smrg  $as_echo_n "(cached) " >&6
73011d8c7986Smrgelse
73021d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73031d8c7986Smrg/* end confdefs.h.  */
73041d8c7986Smrgint i;
73051d8c7986Smrg_ACEOF
73061d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
73071d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
73081d8c7986Smrgelse
73091d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
73101d8c7986Smrgfi
73111d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73121d8c7986Smrgfi
73131d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
73141d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73151d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73161d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
73171d8c7986Smrgfi
73181d8c7986Smrg
73191d8c7986Smrgfound="no"
73201d8c7986Smrg
73211d8c7986Smrg	if test $found = "no" ; then
7322c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73231d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73241d8c7986Smrg		fi
73251d8c7986Smrg
7326c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73271d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73281d8c7986Smrg		fi
73291d8c7986Smrg
73301d8c7986Smrg		CFLAGS="$CFLAGS -Werror=main"
73311d8c7986Smrg
7332c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7333c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7334c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_main
73351d8c7986Smrg		if eval \${$cacheid+:} false; then :
73361d8c7986Smrg  $as_echo_n "(cached) " >&6
73371d8c7986Smrgelse
73381d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73391d8c7986Smrg/* end confdefs.h.  */
73401d8c7986Smrgint i;
73411d8c7986Smrgint
73421d8c7986Smrgmain ()
73431d8c7986Smrg{
73441d8c7986Smrg
73451d8c7986Smrg  ;
73461d8c7986Smrg  return 0;
73471d8c7986Smrg}
73481d8c7986Smrg_ACEOF
73491d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
73501d8c7986Smrg  eval $cacheid=yes
73511d8c7986Smrgelse
73521d8c7986Smrg  eval $cacheid=no
73531d8c7986Smrgfi
73541d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
73551d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
73561d8c7986Smrgfi
73571d8c7986Smrg
73581d8c7986Smrg
73591d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
73601d8c7986Smrg
73611d8c7986Smrg		eval supported=\$$cacheid
73621d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
73631d8c7986Smrg$as_echo "$supported" >&6; }
73641d8c7986Smrg		if test "$supported" = "yes" ; then
73651d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
73661d8c7986Smrg			found="yes"
73671d8c7986Smrg		fi
73681d8c7986Smrg	fi
73691d8c7986Smrg
73701d8c7986Smrg
73711d8c7986Smrg
73721d8c7986Smrg
73731d8c7986Smrg
73741d8c7986Smrg
73751d8c7986Smrg
73761d8c7986Smrg
73771d8c7986Smrg
73781d8c7986Smrg
73791d8c7986Smrg
73801d8c7986Smrg
73811d8c7986Smrg
73821d8c7986Smrg
73831d8c7986Smrg
73841d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
73851d8c7986Smrg
73861d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73871d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73881d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
73891d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
73901d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
73911d8c7986Smrg  $as_echo_n "(cached) " >&6
73921d8c7986Smrgelse
73931d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73941d8c7986Smrg/* end confdefs.h.  */
73951d8c7986Smrgint i;
73961d8c7986Smrg_ACEOF
73971d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
73981d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
73991d8c7986Smrgelse
74001d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
74011d8c7986Smrgfi
74021d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74031d8c7986Smrgfi
74041d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
74051d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74061d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74071d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74081d8c7986Smrgfi
74091d8c7986Smrg
74101d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74111d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74121d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74131d8c7986Smrg	fi
74141d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74151d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
74161d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
74171d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
74181d8c7986Smrg  $as_echo_n "(cached) " >&6
74191d8c7986Smrgelse
74201d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74211d8c7986Smrg/* end confdefs.h.  */
74221d8c7986Smrgint i;
74231d8c7986Smrg_ACEOF
74241d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
74251d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
74261d8c7986Smrgelse
74271d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
74281d8c7986Smrgfi
74291d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
74301d8c7986Smrgfi
74311d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
74321d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74331d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74341d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
74351d8c7986Smrgfi
74361d8c7986Smrg
74371d8c7986Smrgfound="no"
74381d8c7986Smrg
74391d8c7986Smrg	if test $found = "no" ; then
7440c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74411d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74421d8c7986Smrg		fi
74431d8c7986Smrg
7444c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74451d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74461d8c7986Smrg		fi
74471d8c7986Smrg
74481d8c7986Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
74491d8c7986Smrg
7450c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7451c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7452c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
74531d8c7986Smrg		if eval \${$cacheid+:} false; then :
74541d8c7986Smrg  $as_echo_n "(cached) " >&6
74551d8c7986Smrgelse
74561d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74571d8c7986Smrg/* end confdefs.h.  */
74581d8c7986Smrgint i;
74591d8c7986Smrgint
74601d8c7986Smrgmain ()
74611d8c7986Smrg{
74621d8c7986Smrg
74631d8c7986Smrg  ;
74641d8c7986Smrg  return 0;
74651d8c7986Smrg}
74661d8c7986Smrg_ACEOF
74671d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
74681d8c7986Smrg  eval $cacheid=yes
74691d8c7986Smrgelse
74701d8c7986Smrg  eval $cacheid=no
74711d8c7986Smrgfi
74721d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
74731d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
74741d8c7986Smrgfi
74751d8c7986Smrg
74761d8c7986Smrg
74771d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
74781d8c7986Smrg
74791d8c7986Smrg		eval supported=\$$cacheid
74801d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
74811d8c7986Smrg$as_echo "$supported" >&6; }
74821d8c7986Smrg		if test "$supported" = "yes" ; then
74831d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
74841d8c7986Smrg			found="yes"
74851d8c7986Smrg		fi
74861d8c7986Smrg	fi
74871d8c7986Smrg
74881d8c7986Smrg
74891d8c7986Smrg
74901d8c7986Smrg
74911d8c7986Smrg
74921d8c7986Smrg
74931d8c7986Smrg
74941d8c7986Smrg
74951d8c7986Smrg
74961d8c7986Smrg
74971d8c7986Smrg
74981d8c7986Smrg
74991d8c7986Smrg
75001d8c7986Smrg
75011d8c7986Smrg
75021d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
75031d8c7986Smrg
75041d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75051d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75061d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
75071d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
75081d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
75091d8c7986Smrg  $as_echo_n "(cached) " >&6
75101d8c7986Smrgelse
75111d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75121d8c7986Smrg/* end confdefs.h.  */
75131d8c7986Smrgint i;
75141d8c7986Smrg_ACEOF
75151d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
75161d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
75171d8c7986Smrgelse
75181d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
75191d8c7986Smrgfi
75201d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75211d8c7986Smrgfi
75221d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
75231d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75241d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75251d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75261d8c7986Smrgfi
75271d8c7986Smrg
75281d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75291d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75301d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75311d8c7986Smrg	fi
75321d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75331d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
75341d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
75351d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
75361d8c7986Smrg  $as_echo_n "(cached) " >&6
75371d8c7986Smrgelse
75381d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75391d8c7986Smrg/* end confdefs.h.  */
75401d8c7986Smrgint i;
75411d8c7986Smrg_ACEOF
75421d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
75431d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
75441d8c7986Smrgelse
75451d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
75461d8c7986Smrgfi
75471d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
75481d8c7986Smrgfi
75491d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
75501d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
75511d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
75521d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
75531d8c7986Smrgfi
75541d8c7986Smrg
75551d8c7986Smrgfound="no"
75561d8c7986Smrg
75571d8c7986Smrg	if test $found = "no" ; then
7558c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75591d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75601d8c7986Smrg		fi
75611d8c7986Smrg
7562c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
75631d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
75641d8c7986Smrg		fi
75651d8c7986Smrg
75661d8c7986Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
75671d8c7986Smrg
7568c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7569c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7570c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
75711d8c7986Smrg		if eval \${$cacheid+:} false; then :
75721d8c7986Smrg  $as_echo_n "(cached) " >&6
75731d8c7986Smrgelse
75741d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75751d8c7986Smrg/* end confdefs.h.  */
75761d8c7986Smrgint i;
75771d8c7986Smrgint
75781d8c7986Smrgmain ()
75791d8c7986Smrg{
75801d8c7986Smrg
75811d8c7986Smrg  ;
75821d8c7986Smrg  return 0;
75831d8c7986Smrg}
75841d8c7986Smrg_ACEOF
75851d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
75861d8c7986Smrg  eval $cacheid=yes
75871d8c7986Smrgelse
75881d8c7986Smrg  eval $cacheid=no
75891d8c7986Smrgfi
75901d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
75911d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
75921d8c7986Smrgfi
75931d8c7986Smrg
75941d8c7986Smrg
75951d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
75961d8c7986Smrg
75971d8c7986Smrg		eval supported=\$$cacheid
75981d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
75991d8c7986Smrg$as_echo "$supported" >&6; }
76001d8c7986Smrg		if test "$supported" = "yes" ; then
76011d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
76021d8c7986Smrg			found="yes"
76031d8c7986Smrg		fi
76041d8c7986Smrg	fi
76051d8c7986Smrg
76061d8c7986Smrg
76071d8c7986Smrg
76081d8c7986Smrg
76091d8c7986Smrg
76101d8c7986Smrg
76111d8c7986Smrg
76121d8c7986Smrg
76131d8c7986Smrg
76141d8c7986Smrg
76151d8c7986Smrg
76161d8c7986Smrg
76171d8c7986Smrg
76181d8c7986Smrg
76191d8c7986Smrg
76201d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
76211d8c7986Smrg
76221d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76231d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76241d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
76251d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
76261d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
76271d8c7986Smrg  $as_echo_n "(cached) " >&6
76281d8c7986Smrgelse
76291d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76301d8c7986Smrg/* end confdefs.h.  */
76311d8c7986Smrgint i;
76321d8c7986Smrg_ACEOF
76331d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
76341d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
76351d8c7986Smrgelse
76361d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
76371d8c7986Smrgfi
76381d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76391d8c7986Smrgfi
76401d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
76411d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76421d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76431d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76441d8c7986Smrgfi
76451d8c7986Smrg
76461d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
76471d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76481d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76491d8c7986Smrg	fi
76501d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76511d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
76521d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
76531d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
76541d8c7986Smrg  $as_echo_n "(cached) " >&6
76551d8c7986Smrgelse
76561d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76571d8c7986Smrg/* end confdefs.h.  */
76581d8c7986Smrgint i;
76591d8c7986Smrg_ACEOF
76601d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
76611d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
76621d8c7986Smrgelse
76631d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
76641d8c7986Smrgfi
76651d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
76661d8c7986Smrgfi
76671d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
76681d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76691d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76701d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
76711d8c7986Smrgfi
76721d8c7986Smrg
76731d8c7986Smrgfound="no"
76741d8c7986Smrg
76751d8c7986Smrg	if test $found = "no" ; then
7676c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76771d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76781d8c7986Smrg		fi
76791d8c7986Smrg
7680c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76811d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76821d8c7986Smrg		fi
76831d8c7986Smrg
76841d8c7986Smrg		CFLAGS="$CFLAGS -Werror=return-type"
76851d8c7986Smrg
7686c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7687c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7688c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
76891d8c7986Smrg		if eval \${$cacheid+:} false; then :
76901d8c7986Smrg  $as_echo_n "(cached) " >&6
76911d8c7986Smrgelse
76921d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76931d8c7986Smrg/* end confdefs.h.  */
76941d8c7986Smrgint i;
76951d8c7986Smrgint
76961d8c7986Smrgmain ()
76971d8c7986Smrg{
76981d8c7986Smrg
76991d8c7986Smrg  ;
77001d8c7986Smrg  return 0;
77011d8c7986Smrg}
77021d8c7986Smrg_ACEOF
77031d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
77041d8c7986Smrg  eval $cacheid=yes
77051d8c7986Smrgelse
77061d8c7986Smrg  eval $cacheid=no
77071d8c7986Smrgfi
77081d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
77091d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
77101d8c7986Smrgfi
77111d8c7986Smrg
77121d8c7986Smrg
77131d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77141d8c7986Smrg
77151d8c7986Smrg		eval supported=\$$cacheid
77161d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77171d8c7986Smrg$as_echo "$supported" >&6; }
77181d8c7986Smrg		if test "$supported" = "yes" ; then
77191d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
77201d8c7986Smrg			found="yes"
77211d8c7986Smrg		fi
77221d8c7986Smrg	fi
77231d8c7986Smrg
77241d8c7986Smrg	if test $found = "no" ; then
7725c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77261d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77271d8c7986Smrg		fi
77281d8c7986Smrg
7729c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77301d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77311d8c7986Smrg		fi
77321d8c7986Smrg
77331d8c7986Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
77341d8c7986Smrg
7735c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7736c82dfdfbSmrg$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7737c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
77381d8c7986Smrg		if eval \${$cacheid+:} false; then :
77391d8c7986Smrg  $as_echo_n "(cached) " >&6
77401d8c7986Smrgelse
77411d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77421d8c7986Smrg/* end confdefs.h.  */
77431d8c7986Smrgint i;
77441d8c7986Smrgint
77451d8c7986Smrgmain ()
77461d8c7986Smrg{
77471d8c7986Smrg
77481d8c7986Smrg  ;
77491d8c7986Smrg  return 0;
77501d8c7986Smrg}
77511d8c7986Smrg_ACEOF
77521d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
77531d8c7986Smrg  eval $cacheid=yes
77541d8c7986Smrgelse
77551d8c7986Smrg  eval $cacheid=no
77561d8c7986Smrgfi
77571d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
77581d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
77591d8c7986Smrgfi
77601d8c7986Smrg
77611d8c7986Smrg
77621d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
77631d8c7986Smrg
77641d8c7986Smrg		eval supported=\$$cacheid
77651d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
77661d8c7986Smrg$as_echo "$supported" >&6; }
77671d8c7986Smrg		if test "$supported" = "yes" ; then
77681d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
77691d8c7986Smrg			found="yes"
77701d8c7986Smrg		fi
77711d8c7986Smrg	fi
77721d8c7986Smrg
77731d8c7986Smrg
77741d8c7986Smrg
77751d8c7986Smrg
77761d8c7986Smrg
77771d8c7986Smrg
77781d8c7986Smrg
77791d8c7986Smrg
77801d8c7986Smrg
77811d8c7986Smrg
77821d8c7986Smrg
77831d8c7986Smrg
77841d8c7986Smrg
77851d8c7986Smrg
77861d8c7986Smrg
77871d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
77881d8c7986Smrg
77891d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77901d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77911d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
77921d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
77931d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
77941d8c7986Smrg  $as_echo_n "(cached) " >&6
77951d8c7986Smrgelse
77961d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77971d8c7986Smrg/* end confdefs.h.  */
77981d8c7986Smrgint i;
77991d8c7986Smrg_ACEOF
78001d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
78011d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
78021d8c7986Smrgelse
78031d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
78041d8c7986Smrgfi
78051d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78061d8c7986Smrgfi
78071d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
78081d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78091d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78101d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78111d8c7986Smrgfi
78121d8c7986Smrg
78131d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78141d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78151d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78161d8c7986Smrg	fi
78171d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78181d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
78191d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
78201d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
78211d8c7986Smrg  $as_echo_n "(cached) " >&6
78221d8c7986Smrgelse
78231d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78241d8c7986Smrg/* end confdefs.h.  */
78251d8c7986Smrgint i;
78261d8c7986Smrg_ACEOF
78271d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
78281d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
78291d8c7986Smrgelse
78301d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
78311d8c7986Smrgfi
78321d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
78331d8c7986Smrgfi
78341d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
78351d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78361d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78371d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
78381d8c7986Smrgfi
78391d8c7986Smrg
78401d8c7986Smrgfound="no"
78411d8c7986Smrg
78421d8c7986Smrg	if test $found = "no" ; then
7843c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78441d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78451d8c7986Smrg		fi
78461d8c7986Smrg
7847c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78481d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78491d8c7986Smrg		fi
78501d8c7986Smrg
78511d8c7986Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
78521d8c7986Smrg
7853c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7854c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7855c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
78561d8c7986Smrg		if eval \${$cacheid+:} false; then :
78571d8c7986Smrg  $as_echo_n "(cached) " >&6
78581d8c7986Smrgelse
78591d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78601d8c7986Smrg/* end confdefs.h.  */
78611d8c7986Smrgint i;
78621d8c7986Smrgint
78631d8c7986Smrgmain ()
78641d8c7986Smrg{
78651d8c7986Smrg
78661d8c7986Smrg  ;
78671d8c7986Smrg  return 0;
78681d8c7986Smrg}
78691d8c7986Smrg_ACEOF
78701d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
78711d8c7986Smrg  eval $cacheid=yes
78721d8c7986Smrgelse
78731d8c7986Smrg  eval $cacheid=no
78741d8c7986Smrgfi
78751d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
78761d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
78771d8c7986Smrgfi
78781d8c7986Smrg
78791d8c7986Smrg
78801d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
78811d8c7986Smrg
78821d8c7986Smrg		eval supported=\$$cacheid
78831d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
78841d8c7986Smrg$as_echo "$supported" >&6; }
78851d8c7986Smrg		if test "$supported" = "yes" ; then
78861d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
78871d8c7986Smrg			found="yes"
78881d8c7986Smrg		fi
78891d8c7986Smrg	fi
78901d8c7986Smrg
78911d8c7986Smrg
78921d8c7986Smrg
78931d8c7986Smrg
78941d8c7986Smrg
78951d8c7986Smrg
78961d8c7986Smrg
78971d8c7986Smrg
78981d8c7986Smrg
78991d8c7986Smrg
79001d8c7986Smrg
79011d8c7986Smrg
79021d8c7986Smrg
79031d8c7986Smrg
79041d8c7986Smrg
79051d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
79061d8c7986Smrg
79071d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79081d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79091d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
79101d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
79111d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
79121d8c7986Smrg  $as_echo_n "(cached) " >&6
79131d8c7986Smrgelse
79141d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79151d8c7986Smrg/* end confdefs.h.  */
79161d8c7986Smrgint i;
79171d8c7986Smrg_ACEOF
79181d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
79191d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
79201d8c7986Smrgelse
79211d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
79221d8c7986Smrgfi
79231d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79241d8c7986Smrgfi
79251d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
79261d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79271d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79281d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79291d8c7986Smrgfi
79301d8c7986Smrg
79311d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79321d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79331d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79341d8c7986Smrg	fi
79351d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79361d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
79371d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
79381d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
79391d8c7986Smrg  $as_echo_n "(cached) " >&6
79401d8c7986Smrgelse
79411d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79421d8c7986Smrg/* end confdefs.h.  */
79431d8c7986Smrgint i;
79441d8c7986Smrg_ACEOF
79451d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
79461d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
79471d8c7986Smrgelse
79481d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
79491d8c7986Smrgfi
79501d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
79511d8c7986Smrgfi
79521d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
79531d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79541d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79551d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
79561d8c7986Smrgfi
79571d8c7986Smrg
79581d8c7986Smrgfound="no"
79591d8c7986Smrg
79601d8c7986Smrg	if test $found = "no" ; then
7961c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79621d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79631d8c7986Smrg		fi
79641d8c7986Smrg
7965c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79661d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79671d8c7986Smrg		fi
79681d8c7986Smrg
79691d8c7986Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
79701d8c7986Smrg
7971c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7972c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7973c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
79741d8c7986Smrg		if eval \${$cacheid+:} false; then :
79751d8c7986Smrg  $as_echo_n "(cached) " >&6
79761d8c7986Smrgelse
79771d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79781d8c7986Smrg/* end confdefs.h.  */
79791d8c7986Smrgint i;
79801d8c7986Smrgint
79811d8c7986Smrgmain ()
79821d8c7986Smrg{
79831d8c7986Smrg
79841d8c7986Smrg  ;
79851d8c7986Smrg  return 0;
79861d8c7986Smrg}
79871d8c7986Smrg_ACEOF
79881d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
79891d8c7986Smrg  eval $cacheid=yes
79901d8c7986Smrgelse
79911d8c7986Smrg  eval $cacheid=no
79921d8c7986Smrgfi
79931d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
79941d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
79951d8c7986Smrgfi
79961d8c7986Smrg
79971d8c7986Smrg
79981d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
79991d8c7986Smrg
80001d8c7986Smrg		eval supported=\$$cacheid
80011d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
80021d8c7986Smrg$as_echo "$supported" >&6; }
80031d8c7986Smrg		if test "$supported" = "yes" ; then
80041d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
80051d8c7986Smrg			found="yes"
80061d8c7986Smrg		fi
80071d8c7986Smrg	fi
80081d8c7986Smrg
80091d8c7986Smrg
80101d8c7986Smrg
80111d8c7986Smrg
80121d8c7986Smrg
80131d8c7986Smrg
80141d8c7986Smrg
80151d8c7986Smrg
80161d8c7986Smrg
80171d8c7986Smrg
80181d8c7986Smrg
80191d8c7986Smrg
80201d8c7986Smrg
80211d8c7986Smrg
80221d8c7986Smrg
80231d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
80241d8c7986Smrg
80251d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80261d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80271d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
80281d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
80291d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
80301d8c7986Smrg  $as_echo_n "(cached) " >&6
80311d8c7986Smrgelse
80321d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80331d8c7986Smrg/* end confdefs.h.  */
80341d8c7986Smrgint i;
80351d8c7986Smrg_ACEOF
80361d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
80371d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
80381d8c7986Smrgelse
80391d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
80401d8c7986Smrgfi
80411d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80421d8c7986Smrgfi
80431d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
80441d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
80451d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
80461d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80471d8c7986Smrgfi
80481d8c7986Smrg
80491d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
80501d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80511d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80521d8c7986Smrg	fi
80531d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80541d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
80551d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
80561d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
80571d8c7986Smrg  $as_echo_n "(cached) " >&6
80581d8c7986Smrgelse
80591d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80601d8c7986Smrg/* end confdefs.h.  */
80611d8c7986Smrgint i;
80621d8c7986Smrg_ACEOF
80631d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
80641d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
80651d8c7986Smrgelse
80661d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
80671d8c7986Smrgfi
80681d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80691d8c7986Smrgfi
80701d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
80711d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
80721d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
80731d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
80741d8c7986Smrgfi
80751d8c7986Smrg
80761d8c7986Smrgfound="no"
80771d8c7986Smrg
80781d8c7986Smrg	if test $found = "no" ; then
8079c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80801d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80811d8c7986Smrg		fi
80821d8c7986Smrg
8083c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80841d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80851d8c7986Smrg		fi
80861d8c7986Smrg
80871d8c7986Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
80881d8c7986Smrg
8089c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8090c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8091c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
80921d8c7986Smrg		if eval \${$cacheid+:} false; then :
80931d8c7986Smrg  $as_echo_n "(cached) " >&6
80941d8c7986Smrgelse
80951d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80961d8c7986Smrg/* end confdefs.h.  */
80971d8c7986Smrgint i;
80981d8c7986Smrgint
80991d8c7986Smrgmain ()
81001d8c7986Smrg{
81011d8c7986Smrg
81021d8c7986Smrg  ;
81031d8c7986Smrg  return 0;
81041d8c7986Smrg}
81051d8c7986Smrg_ACEOF
81061d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
81071d8c7986Smrg  eval $cacheid=yes
81081d8c7986Smrgelse
81091d8c7986Smrg  eval $cacheid=no
81101d8c7986Smrgfi
81111d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
81121d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
81131d8c7986Smrgfi
81141d8c7986Smrg
81151d8c7986Smrg
81161d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
81171d8c7986Smrg
81181d8c7986Smrg		eval supported=\$$cacheid
81191d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
81201d8c7986Smrg$as_echo "$supported" >&6; }
81211d8c7986Smrg		if test "$supported" = "yes" ; then
81221d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
81231d8c7986Smrg			found="yes"
81241d8c7986Smrg		fi
81251d8c7986Smrg	fi
81261d8c7986Smrg
81271d8c7986Smrg
81281d8c7986Smrg
81291d8c7986Smrg
81301d8c7986Smrg
81311d8c7986Smrg
81321d8c7986Smrg
81331d8c7986Smrg
81341d8c7986Smrg
81351d8c7986Smrg
81361d8c7986Smrg
81371d8c7986Smrg
81381d8c7986Smrg
81391d8c7986Smrg
81401d8c7986Smrg
81411d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
81421d8c7986Smrg
81431d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
81441d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81451d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
81461d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
81471d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
81481d8c7986Smrg  $as_echo_n "(cached) " >&6
81491d8c7986Smrgelse
81501d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81511d8c7986Smrg/* end confdefs.h.  */
81521d8c7986Smrgint i;
81531d8c7986Smrg_ACEOF
81541d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
81551d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
81561d8c7986Smrgelse
81571d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
81581d8c7986Smrgfi
81591d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81601d8c7986Smrgfi
81611d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
81621d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81631d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81641d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81651d8c7986Smrgfi
81661d8c7986Smrg
81671d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81681d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81691d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81701d8c7986Smrg	fi
81711d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81721d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
81731d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
81741d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
81751d8c7986Smrg  $as_echo_n "(cached) " >&6
81761d8c7986Smrgelse
81771d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81781d8c7986Smrg/* end confdefs.h.  */
81791d8c7986Smrgint i;
81801d8c7986Smrg_ACEOF
81811d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
81821d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
81831d8c7986Smrgelse
81841d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
81851d8c7986Smrgfi
81861d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81871d8c7986Smrgfi
81881d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
81891d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
81901d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
81911d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
81921d8c7986Smrgfi
81931d8c7986Smrg
81941d8c7986Smrgfound="no"
81951d8c7986Smrg
81961d8c7986Smrg	if test $found = "no" ; then
8197c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81981d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81991d8c7986Smrg		fi
82001d8c7986Smrg
8201c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82021d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82031d8c7986Smrg		fi
82041d8c7986Smrg
82051d8c7986Smrg		CFLAGS="$CFLAGS -Werror=address"
82061d8c7986Smrg
8207c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8208c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8209c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_address
82101d8c7986Smrg		if eval \${$cacheid+:} false; then :
82111d8c7986Smrg  $as_echo_n "(cached) " >&6
82121d8c7986Smrgelse
82131d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82141d8c7986Smrg/* end confdefs.h.  */
82151d8c7986Smrgint i;
82161d8c7986Smrgint
82171d8c7986Smrgmain ()
82181d8c7986Smrg{
82191d8c7986Smrg
82201d8c7986Smrg  ;
82211d8c7986Smrg  return 0;
82221d8c7986Smrg}
82231d8c7986Smrg_ACEOF
82241d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
82251d8c7986Smrg  eval $cacheid=yes
82261d8c7986Smrgelse
82271d8c7986Smrg  eval $cacheid=no
82281d8c7986Smrgfi
82291d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
82301d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
82311d8c7986Smrgfi
82321d8c7986Smrg
82331d8c7986Smrg
82341d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
82351d8c7986Smrg
82361d8c7986Smrg		eval supported=\$$cacheid
82371d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
82381d8c7986Smrg$as_echo "$supported" >&6; }
82391d8c7986Smrg		if test "$supported" = "yes" ; then
82401d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
82411d8c7986Smrg			found="yes"
82421d8c7986Smrg		fi
82431d8c7986Smrg	fi
82441d8c7986Smrg
82451d8c7986Smrg
82461d8c7986Smrg
82471d8c7986Smrg
82481d8c7986Smrg
82491d8c7986Smrg
82501d8c7986Smrg
82511d8c7986Smrg
82521d8c7986Smrg
82531d8c7986Smrg
82541d8c7986Smrg
82551d8c7986Smrg
82561d8c7986Smrg
82571d8c7986Smrg
82581d8c7986Smrg
82591d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
82601d8c7986Smrg
82611d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82621d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82631d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
82641d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
82651d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
82661d8c7986Smrg  $as_echo_n "(cached) " >&6
82671d8c7986Smrgelse
82681d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82691d8c7986Smrg/* end confdefs.h.  */
82701d8c7986Smrgint i;
82711d8c7986Smrg_ACEOF
82721d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
82731d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
82741d8c7986Smrgelse
82751d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
82761d8c7986Smrgfi
82771d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
82781d8c7986Smrgfi
82791d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
82801d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
82811d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
82821d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
82831d8c7986Smrgfi
82841d8c7986Smrg
82851d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
82861d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82871d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82881d8c7986Smrg	fi
82891d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82901d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
82911d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
82921d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
82931d8c7986Smrg  $as_echo_n "(cached) " >&6
82941d8c7986Smrgelse
82951d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82961d8c7986Smrg/* end confdefs.h.  */
82971d8c7986Smrgint i;
82981d8c7986Smrg_ACEOF
82991d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
83001d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
83011d8c7986Smrgelse
83021d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
83031d8c7986Smrgfi
83041d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
83051d8c7986Smrgfi
83061d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
83071d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83081d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83091d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
83101d8c7986Smrgfi
83111d8c7986Smrg
83121d8c7986Smrgfound="no"
83131d8c7986Smrg
83141d8c7986Smrg	if test $found = "no" ; then
8315c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83161d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83171d8c7986Smrg		fi
83181d8c7986Smrg
8319c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83201d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83211d8c7986Smrg		fi
83221d8c7986Smrg
83231d8c7986Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
83241d8c7986Smrg
8325c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8326c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8327c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
83281d8c7986Smrg		if eval \${$cacheid+:} false; then :
83291d8c7986Smrg  $as_echo_n "(cached) " >&6
83301d8c7986Smrgelse
83311d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83321d8c7986Smrg/* end confdefs.h.  */
83331d8c7986Smrgint i;
83341d8c7986Smrgint
83351d8c7986Smrgmain ()
83361d8c7986Smrg{
83371d8c7986Smrg
83381d8c7986Smrg  ;
83391d8c7986Smrg  return 0;
83401d8c7986Smrg}
83411d8c7986Smrg_ACEOF
83421d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
83431d8c7986Smrg  eval $cacheid=yes
83441d8c7986Smrgelse
83451d8c7986Smrg  eval $cacheid=no
83461d8c7986Smrgfi
83471d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
83481d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
83491d8c7986Smrgfi
83501d8c7986Smrg
83511d8c7986Smrg
83521d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
83531d8c7986Smrg
83541d8c7986Smrg		eval supported=\$$cacheid
83551d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
83561d8c7986Smrg$as_echo "$supported" >&6; }
83571d8c7986Smrg		if test "$supported" = "yes" ; then
83581d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
83591d8c7986Smrg			found="yes"
83601d8c7986Smrg		fi
83611d8c7986Smrg	fi
83621d8c7986Smrg
83631d8c7986Smrg	if test $found = "no" ; then
8364c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83651d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83661d8c7986Smrg		fi
83671d8c7986Smrg
8368c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
83691d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
83701d8c7986Smrg		fi
83711d8c7986Smrg
83721d8c7986Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
83731d8c7986Smrg
8374c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8375c82dfdfbSmrg$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8376c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
83771d8c7986Smrg		if eval \${$cacheid+:} false; then :
83781d8c7986Smrg  $as_echo_n "(cached) " >&6
83791d8c7986Smrgelse
83801d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83811d8c7986Smrg/* end confdefs.h.  */
83821d8c7986Smrgint i;
83831d8c7986Smrgint
83841d8c7986Smrgmain ()
83851d8c7986Smrg{
83861d8c7986Smrg
83871d8c7986Smrg  ;
83881d8c7986Smrg  return 0;
83891d8c7986Smrg}
83901d8c7986Smrg_ACEOF
83911d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
83921d8c7986Smrg  eval $cacheid=yes
83931d8c7986Smrgelse
83941d8c7986Smrg  eval $cacheid=no
83951d8c7986Smrgfi
83961d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
83971d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
83981d8c7986Smrgfi
83991d8c7986Smrg
84001d8c7986Smrg
84011d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
84021d8c7986Smrg
84031d8c7986Smrg		eval supported=\$$cacheid
84041d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
84051d8c7986Smrg$as_echo "$supported" >&6; }
84061d8c7986Smrg		if test "$supported" = "yes" ; then
84071d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
84081d8c7986Smrg			found="yes"
84091d8c7986Smrg		fi
84101d8c7986Smrg	fi
84111d8c7986Smrg
84121d8c7986Smrg
84131d8c7986Smrg
84141d8c7986Smrg
84151d8c7986Smrg
84161d8c7986Smrg
84171d8c7986Smrg
84181d8c7986Smrg
84191d8c7986Smrg
84201d8c7986Smrg
84211d8c7986Smrg
84221d8c7986Smrg
84231d8c7986Smrg
84241d8c7986Smrg
84251d8c7986Smrg
84261d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
84271d8c7986Smrg
84281d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84291d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84301d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
84311d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
84321d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
84331d8c7986Smrg  $as_echo_n "(cached) " >&6
84341d8c7986Smrgelse
84351d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84361d8c7986Smrg/* end confdefs.h.  */
84371d8c7986Smrgint i;
84381d8c7986Smrg_ACEOF
84391d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
84401d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
84411d8c7986Smrgelse
84421d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
84431d8c7986Smrgfi
84441d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84451d8c7986Smrgfi
84461d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
84471d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84481d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84491d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84501d8c7986Smrgfi
84511d8c7986Smrg
84521d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84531d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84541d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84551d8c7986Smrg	fi
84561d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84571d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
84581d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
84591d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
84601d8c7986Smrg  $as_echo_n "(cached) " >&6
84611d8c7986Smrgelse
84621d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84631d8c7986Smrg/* end confdefs.h.  */
84641d8c7986Smrgint i;
84651d8c7986Smrg_ACEOF
84661d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
84671d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
84681d8c7986Smrgelse
84691d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
84701d8c7986Smrgfi
84711d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84721d8c7986Smrgfi
84731d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
84741d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
84751d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
84761d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
84771d8c7986Smrgfi
84781d8c7986Smrg
84791d8c7986Smrgfound="no"
84801d8c7986Smrg
84811d8c7986Smrg	if test $found = "no" ; then
8482c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84831d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84841d8c7986Smrg		fi
84851d8c7986Smrg
8486c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84871d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84881d8c7986Smrg		fi
84891d8c7986Smrg
84901d8c7986Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
84911d8c7986Smrg
8492c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8493c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8494c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
84951d8c7986Smrg		if eval \${$cacheid+:} false; then :
84961d8c7986Smrg  $as_echo_n "(cached) " >&6
84971d8c7986Smrgelse
84981d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84991d8c7986Smrg/* end confdefs.h.  */
85001d8c7986Smrgint i;
85011d8c7986Smrgint
85021d8c7986Smrgmain ()
85031d8c7986Smrg{
85041d8c7986Smrg
85051d8c7986Smrg  ;
85061d8c7986Smrg  return 0;
85071d8c7986Smrg}
85081d8c7986Smrg_ACEOF
85091d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
85101d8c7986Smrg  eval $cacheid=yes
85111d8c7986Smrgelse
85121d8c7986Smrg  eval $cacheid=no
85131d8c7986Smrgfi
85141d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
85151d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
85161d8c7986Smrgfi
85171d8c7986Smrg
85181d8c7986Smrg
85191d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
85201d8c7986Smrg
85211d8c7986Smrg		eval supported=\$$cacheid
85221d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
85231d8c7986Smrg$as_echo "$supported" >&6; }
85241d8c7986Smrg		if test "$supported" = "yes" ; then
85251d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
85261d8c7986Smrg			found="yes"
85271d8c7986Smrg		fi
85281d8c7986Smrg	fi
85291d8c7986Smrg
85301d8c7986Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
85311d8c7986Smrgelse
85321d8c7986Smrg{ $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
85331d8c7986Smrg$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;}
85341d8c7986Smrg
85351d8c7986Smrg
85361d8c7986Smrg
85371d8c7986Smrg
85381d8c7986Smrg
85391d8c7986Smrg
85401d8c7986Smrg
85411d8c7986Smrg
85421d8c7986Smrg
85431d8c7986Smrg
85441d8c7986Smrg
85451d8c7986Smrg
85461d8c7986Smrg
85471d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
85481d8c7986Smrg
85491d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85501d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85511d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
85521d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
85531d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
85541d8c7986Smrg  $as_echo_n "(cached) " >&6
85551d8c7986Smrgelse
85561d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85571d8c7986Smrg/* end confdefs.h.  */
85581d8c7986Smrgint i;
85591d8c7986Smrg_ACEOF
85601d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
85611d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
85621d8c7986Smrgelse
85631d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
85641d8c7986Smrgfi
85651d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85661d8c7986Smrgfi
85671d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
85681d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
85691d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
85701d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85711d8c7986Smrgfi
85721d8c7986Smrg
85731d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
85741d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85751d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85761d8c7986Smrg	fi
85771d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85781d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
85791d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
85801d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
85811d8c7986Smrg  $as_echo_n "(cached) " >&6
85821d8c7986Smrgelse
85831d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85841d8c7986Smrg/* end confdefs.h.  */
85851d8c7986Smrgint i;
85861d8c7986Smrg_ACEOF
85871d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
85881d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
85891d8c7986Smrgelse
85901d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
85911d8c7986Smrgfi
85921d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85931d8c7986Smrgfi
85941d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
85951d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85961d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85971d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
85981d8c7986Smrgfi
85991d8c7986Smrg
86001d8c7986Smrgfound="no"
86011d8c7986Smrg
86021d8c7986Smrg	if test $found = "no" ; then
8603c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86041d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86051d8c7986Smrg		fi
86061d8c7986Smrg
8607c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86081d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86091d8c7986Smrg		fi
86101d8c7986Smrg
86111d8c7986Smrg		CFLAGS="$CFLAGS -Wimplicit"
86121d8c7986Smrg
8613c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8614c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
86151d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
86161d8c7986Smrg		if eval \${$cacheid+:} false; then :
86171d8c7986Smrg  $as_echo_n "(cached) " >&6
86181d8c7986Smrgelse
86191d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86201d8c7986Smrg/* end confdefs.h.  */
86211d8c7986Smrgint i;
86221d8c7986Smrgint
86231d8c7986Smrgmain ()
86241d8c7986Smrg{
86251d8c7986Smrg
86261d8c7986Smrg  ;
86271d8c7986Smrg  return 0;
86281d8c7986Smrg}
86291d8c7986Smrg_ACEOF
86301d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
86311d8c7986Smrg  eval $cacheid=yes
86321d8c7986Smrgelse
86331d8c7986Smrg  eval $cacheid=no
86341d8c7986Smrgfi
86351d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
86361d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
86371d8c7986Smrgfi
86381d8c7986Smrg
86391d8c7986Smrg
86401d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
86411d8c7986Smrg
86421d8c7986Smrg		eval supported=\$$cacheid
86431d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
86441d8c7986Smrg$as_echo "$supported" >&6; }
86451d8c7986Smrg		if test "$supported" = "yes" ; then
86461d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
86471d8c7986Smrg			found="yes"
86481d8c7986Smrg		fi
86491d8c7986Smrg	fi
86501d8c7986Smrg
86511d8c7986Smrg
86521d8c7986Smrg
86531d8c7986Smrg
86541d8c7986Smrg
86551d8c7986Smrg
86561d8c7986Smrg
86571d8c7986Smrg
86581d8c7986Smrg
86591d8c7986Smrg
86601d8c7986Smrg
86611d8c7986Smrg
86621d8c7986Smrg
86631d8c7986Smrg
86641d8c7986Smrg
86651d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
86661d8c7986Smrg
86671d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
86681d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86691d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
86701d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
86711d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
86721d8c7986Smrg  $as_echo_n "(cached) " >&6
86731d8c7986Smrgelse
86741d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86751d8c7986Smrg/* end confdefs.h.  */
86761d8c7986Smrgint i;
86771d8c7986Smrg_ACEOF
86781d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
86791d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
86801d8c7986Smrgelse
86811d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
86821d8c7986Smrgfi
86831d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86841d8c7986Smrgfi
86851d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
86861d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86871d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86881d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
86891d8c7986Smrgfi
86901d8c7986Smrg
86911d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86921d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86931d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86941d8c7986Smrg	fi
86951d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86961d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
86971d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
86981d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
86991d8c7986Smrg  $as_echo_n "(cached) " >&6
87001d8c7986Smrgelse
87011d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87021d8c7986Smrg/* end confdefs.h.  */
87031d8c7986Smrgint i;
87041d8c7986Smrg_ACEOF
87051d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
87061d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
87071d8c7986Smrgelse
87081d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
87091d8c7986Smrgfi
87101d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
87111d8c7986Smrgfi
87121d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
87131d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
87141d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
87151d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
87161d8c7986Smrgfi
87171d8c7986Smrg
87181d8c7986Smrgfound="no"
87191d8c7986Smrg
87201d8c7986Smrg	if test $found = "no" ; then
8721c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87221d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87231d8c7986Smrg		fi
87241d8c7986Smrg
8725c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87261d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87271d8c7986Smrg		fi
87281d8c7986Smrg
87291d8c7986Smrg		CFLAGS="$CFLAGS -Wnonnull"
87301d8c7986Smrg
8731c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8732c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
87331d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
87341d8c7986Smrg		if eval \${$cacheid+:} false; then :
87351d8c7986Smrg  $as_echo_n "(cached) " >&6
87361d8c7986Smrgelse
87371d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87381d8c7986Smrg/* end confdefs.h.  */
87391d8c7986Smrgint i;
87401d8c7986Smrgint
87411d8c7986Smrgmain ()
87421d8c7986Smrg{
87431d8c7986Smrg
87441d8c7986Smrg  ;
87451d8c7986Smrg  return 0;
87461d8c7986Smrg}
87471d8c7986Smrg_ACEOF
87481d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
87491d8c7986Smrg  eval $cacheid=yes
87501d8c7986Smrgelse
87511d8c7986Smrg  eval $cacheid=no
87521d8c7986Smrgfi
87531d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
87541d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
87551d8c7986Smrgfi
87561d8c7986Smrg
87571d8c7986Smrg
87581d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
87591d8c7986Smrg
87601d8c7986Smrg		eval supported=\$$cacheid
87611d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
87621d8c7986Smrg$as_echo "$supported" >&6; }
87631d8c7986Smrg		if test "$supported" = "yes" ; then
87641d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
87651d8c7986Smrg			found="yes"
87661d8c7986Smrg		fi
87671d8c7986Smrg	fi
87681d8c7986Smrg
87691d8c7986Smrg
87701d8c7986Smrg
87711d8c7986Smrg
87721d8c7986Smrg
87731d8c7986Smrg
87741d8c7986Smrg
87751d8c7986Smrg
87761d8c7986Smrg
87771d8c7986Smrg
87781d8c7986Smrg
87791d8c7986Smrg
87801d8c7986Smrg
87811d8c7986Smrg
87821d8c7986Smrg
87831d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
87841d8c7986Smrg
87851d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87861d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87871d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
87881d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
87891d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
87901d8c7986Smrg  $as_echo_n "(cached) " >&6
87911d8c7986Smrgelse
87921d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87931d8c7986Smrg/* end confdefs.h.  */
87941d8c7986Smrgint i;
87951d8c7986Smrg_ACEOF
87961d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
87971d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
87981d8c7986Smrgelse
87991d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
88001d8c7986Smrgfi
88011d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88021d8c7986Smrgfi
88031d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
88041d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
88051d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
88061d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88071d8c7986Smrgfi
88081d8c7986Smrg
88091d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
88101d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88111d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88121d8c7986Smrg	fi
88131d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88141d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
88151d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
88161d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
88171d8c7986Smrg  $as_echo_n "(cached) " >&6
88181d8c7986Smrgelse
88191d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88201d8c7986Smrg/* end confdefs.h.  */
88211d8c7986Smrgint i;
88221d8c7986Smrg_ACEOF
88231d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
88241d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
88251d8c7986Smrgelse
88261d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
88271d8c7986Smrgfi
88281d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
88291d8c7986Smrgfi
88301d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
88311d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88321d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88331d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
88341d8c7986Smrgfi
88351d8c7986Smrg
88361d8c7986Smrgfound="no"
88371d8c7986Smrg
88381d8c7986Smrg	if test $found = "no" ; then
8839c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88401d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88411d8c7986Smrg		fi
88421d8c7986Smrg
8843c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88441d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88451d8c7986Smrg		fi
88461d8c7986Smrg
88471d8c7986Smrg		CFLAGS="$CFLAGS -Winit-self"
88481d8c7986Smrg
8849c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8850c82dfdfbSmrg$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
88511d8c7986Smrg		cacheid=xorg_cv_cc_flag__Winit_self
88521d8c7986Smrg		if eval \${$cacheid+:} false; then :
88531d8c7986Smrg  $as_echo_n "(cached) " >&6
88541d8c7986Smrgelse
88551d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88561d8c7986Smrg/* end confdefs.h.  */
88571d8c7986Smrgint i;
88581d8c7986Smrgint
88591d8c7986Smrgmain ()
88601d8c7986Smrg{
88611d8c7986Smrg
88621d8c7986Smrg  ;
88631d8c7986Smrg  return 0;
88641d8c7986Smrg}
88651d8c7986Smrg_ACEOF
88661d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
88671d8c7986Smrg  eval $cacheid=yes
88681d8c7986Smrgelse
88691d8c7986Smrg  eval $cacheid=no
88701d8c7986Smrgfi
88711d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
88721d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
88731d8c7986Smrgfi
88741d8c7986Smrg
88751d8c7986Smrg
88761d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
88771d8c7986Smrg
88781d8c7986Smrg		eval supported=\$$cacheid
88791d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
88801d8c7986Smrg$as_echo "$supported" >&6; }
88811d8c7986Smrg		if test "$supported" = "yes" ; then
88821d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
88831d8c7986Smrg			found="yes"
88841d8c7986Smrg		fi
88851d8c7986Smrg	fi
88861d8c7986Smrg
88871d8c7986Smrg
88881d8c7986Smrg
88891d8c7986Smrg
88901d8c7986Smrg
88911d8c7986Smrg
88921d8c7986Smrg
88931d8c7986Smrg
88941d8c7986Smrg
88951d8c7986Smrg
88961d8c7986Smrg
88971d8c7986Smrg
88981d8c7986Smrg
88991d8c7986Smrg
89001d8c7986Smrg
89011d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
89021d8c7986Smrg
89031d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
89041d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89051d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
89061d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
89071d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
89081d8c7986Smrg  $as_echo_n "(cached) " >&6
89091d8c7986Smrgelse
89101d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89111d8c7986Smrg/* end confdefs.h.  */
89121d8c7986Smrgint i;
89131d8c7986Smrg_ACEOF
89141d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
89151d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
89161d8c7986Smrgelse
89171d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
89181d8c7986Smrgfi
89191d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89201d8c7986Smrgfi
89211d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
89221d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89231d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89241d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89251d8c7986Smrgfi
89261d8c7986Smrg
89271d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89281d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89291d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89301d8c7986Smrg	fi
89311d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89321d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
89331d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
89341d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
89351d8c7986Smrg  $as_echo_n "(cached) " >&6
89361d8c7986Smrgelse
89371d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89381d8c7986Smrg/* end confdefs.h.  */
89391d8c7986Smrgint i;
89401d8c7986Smrg_ACEOF
89411d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
89421d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
89431d8c7986Smrgelse
89441d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
89451d8c7986Smrgfi
89461d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
89471d8c7986Smrgfi
89481d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
89491d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89501d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89511d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
89521d8c7986Smrgfi
89531d8c7986Smrg
89541d8c7986Smrgfound="no"
89551d8c7986Smrg
89561d8c7986Smrg	if test $found = "no" ; then
8957c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89581d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89591d8c7986Smrg		fi
89601d8c7986Smrg
8961c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89621d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89631d8c7986Smrg		fi
89641d8c7986Smrg
89651d8c7986Smrg		CFLAGS="$CFLAGS -Wmain"
89661d8c7986Smrg
8967c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8968c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmain... " >&6; }
89691d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wmain
89701d8c7986Smrg		if eval \${$cacheid+:} false; then :
89711d8c7986Smrg  $as_echo_n "(cached) " >&6
89721d8c7986Smrgelse
89731d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89741d8c7986Smrg/* end confdefs.h.  */
89751d8c7986Smrgint i;
89761d8c7986Smrgint
89771d8c7986Smrgmain ()
89781d8c7986Smrg{
89791d8c7986Smrg
89801d8c7986Smrg  ;
89811d8c7986Smrg  return 0;
89821d8c7986Smrg}
89831d8c7986Smrg_ACEOF
89841d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
89851d8c7986Smrg  eval $cacheid=yes
89861d8c7986Smrgelse
89871d8c7986Smrg  eval $cacheid=no
89881d8c7986Smrgfi
89891d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
89901d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
89911d8c7986Smrgfi
89921d8c7986Smrg
89931d8c7986Smrg
89941d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
89951d8c7986Smrg
89961d8c7986Smrg		eval supported=\$$cacheid
89971d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
89981d8c7986Smrg$as_echo "$supported" >&6; }
89991d8c7986Smrg		if test "$supported" = "yes" ; then
90001d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
90011d8c7986Smrg			found="yes"
90021d8c7986Smrg		fi
90031d8c7986Smrg	fi
90041d8c7986Smrg
90051d8c7986Smrg
90061d8c7986Smrg
90071d8c7986Smrg
90081d8c7986Smrg
90091d8c7986Smrg
90101d8c7986Smrg
90111d8c7986Smrg
90121d8c7986Smrg
90131d8c7986Smrg
90141d8c7986Smrg
90151d8c7986Smrg
90161d8c7986Smrg
90171d8c7986Smrg
90181d8c7986Smrg
90191d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
90201d8c7986Smrg
90211d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90221d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90231d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
90241d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
90251d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
90261d8c7986Smrg  $as_echo_n "(cached) " >&6
90271d8c7986Smrgelse
90281d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90291d8c7986Smrg/* end confdefs.h.  */
90301d8c7986Smrgint i;
90311d8c7986Smrg_ACEOF
90321d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
90331d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
90341d8c7986Smrgelse
90351d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
90361d8c7986Smrgfi
90371d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90381d8c7986Smrgfi
90391d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
90401d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90411d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90421d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90431d8c7986Smrgfi
90441d8c7986Smrg
90451d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90461d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90471d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90481d8c7986Smrg	fi
90491d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90501d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
90511d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
90521d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
90531d8c7986Smrg  $as_echo_n "(cached) " >&6
90541d8c7986Smrgelse
90551d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90561d8c7986Smrg/* end confdefs.h.  */
90571d8c7986Smrgint i;
90581d8c7986Smrg_ACEOF
90591d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
90601d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
90611d8c7986Smrgelse
90621d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
90631d8c7986Smrgfi
90641d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
90651d8c7986Smrgfi
90661d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
90671d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90681d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90691d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
90701d8c7986Smrgfi
90711d8c7986Smrg
90721d8c7986Smrgfound="no"
90731d8c7986Smrg
90741d8c7986Smrg	if test $found = "no" ; then
9075c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90761d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90771d8c7986Smrg		fi
90781d8c7986Smrg
9079c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90801d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90811d8c7986Smrg		fi
90821d8c7986Smrg
90831d8c7986Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
90841d8c7986Smrg
9085c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9086c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
90871d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
90881d8c7986Smrg		if eval \${$cacheid+:} false; then :
90891d8c7986Smrg  $as_echo_n "(cached) " >&6
90901d8c7986Smrgelse
90911d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90921d8c7986Smrg/* end confdefs.h.  */
90931d8c7986Smrgint i;
90941d8c7986Smrgint
90951d8c7986Smrgmain ()
90961d8c7986Smrg{
90971d8c7986Smrg
90981d8c7986Smrg  ;
90991d8c7986Smrg  return 0;
91001d8c7986Smrg}
91011d8c7986Smrg_ACEOF
91021d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
91031d8c7986Smrg  eval $cacheid=yes
91041d8c7986Smrgelse
91051d8c7986Smrg  eval $cacheid=no
91061d8c7986Smrgfi
91071d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
91081d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
91091d8c7986Smrgfi
91101d8c7986Smrg
91111d8c7986Smrg
91121d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
91131d8c7986Smrg
91141d8c7986Smrg		eval supported=\$$cacheid
91151d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
91161d8c7986Smrg$as_echo "$supported" >&6; }
91171d8c7986Smrg		if test "$supported" = "yes" ; then
91181d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
91191d8c7986Smrg			found="yes"
91201d8c7986Smrg		fi
91211d8c7986Smrg	fi
91221d8c7986Smrg
91231d8c7986Smrg
91241d8c7986Smrg
91251d8c7986Smrg
91261d8c7986Smrg
91271d8c7986Smrg
91281d8c7986Smrg
91291d8c7986Smrg
91301d8c7986Smrg
91311d8c7986Smrg
91321d8c7986Smrg
91331d8c7986Smrg
91341d8c7986Smrg
91351d8c7986Smrg
91361d8c7986Smrg
91371d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
91381d8c7986Smrg
91391d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91401d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91411d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
91421d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
91431d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
91441d8c7986Smrg  $as_echo_n "(cached) " >&6
91451d8c7986Smrgelse
91461d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91471d8c7986Smrg/* end confdefs.h.  */
91481d8c7986Smrgint i;
91491d8c7986Smrg_ACEOF
91501d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
91511d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
91521d8c7986Smrgelse
91531d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
91541d8c7986Smrgfi
91551d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91561d8c7986Smrgfi
91571d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
91581d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91591d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91601d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91611d8c7986Smrgfi
91621d8c7986Smrg
91631d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91641d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91651d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91661d8c7986Smrg	fi
91671d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91681d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
91691d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
91701d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
91711d8c7986Smrg  $as_echo_n "(cached) " >&6
91721d8c7986Smrgelse
91731d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91741d8c7986Smrg/* end confdefs.h.  */
91751d8c7986Smrgint i;
91761d8c7986Smrg_ACEOF
91771d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
91781d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
91791d8c7986Smrgelse
91801d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
91811d8c7986Smrgfi
91821d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
91831d8c7986Smrgfi
91841d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
91851d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91861d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91871d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
91881d8c7986Smrgfi
91891d8c7986Smrg
91901d8c7986Smrgfound="no"
91911d8c7986Smrg
91921d8c7986Smrg	if test $found = "no" ; then
9193c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91941d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91951d8c7986Smrg		fi
91961d8c7986Smrg
9197c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
91981d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
91991d8c7986Smrg		fi
92001d8c7986Smrg
92011d8c7986Smrg		CFLAGS="$CFLAGS -Wsequence-point"
92021d8c7986Smrg
9203c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9204c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
92051d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
92061d8c7986Smrg		if eval \${$cacheid+:} false; then :
92071d8c7986Smrg  $as_echo_n "(cached) " >&6
92081d8c7986Smrgelse
92091d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92101d8c7986Smrg/* end confdefs.h.  */
92111d8c7986Smrgint i;
92121d8c7986Smrgint
92131d8c7986Smrgmain ()
92141d8c7986Smrg{
92151d8c7986Smrg
92161d8c7986Smrg  ;
92171d8c7986Smrg  return 0;
92181d8c7986Smrg}
92191d8c7986Smrg_ACEOF
92201d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
92211d8c7986Smrg  eval $cacheid=yes
92221d8c7986Smrgelse
92231d8c7986Smrg  eval $cacheid=no
92241d8c7986Smrgfi
92251d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
92261d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
92271d8c7986Smrgfi
92281d8c7986Smrg
92291d8c7986Smrg
92301d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
92311d8c7986Smrg
92321d8c7986Smrg		eval supported=\$$cacheid
92331d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
92341d8c7986Smrg$as_echo "$supported" >&6; }
92351d8c7986Smrg		if test "$supported" = "yes" ; then
92361d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
92371d8c7986Smrg			found="yes"
92381d8c7986Smrg		fi
92391d8c7986Smrg	fi
92401d8c7986Smrg
92411d8c7986Smrg
92421d8c7986Smrg
92431d8c7986Smrg
92441d8c7986Smrg
92451d8c7986Smrg
92461d8c7986Smrg
92471d8c7986Smrg
92481d8c7986Smrg
92491d8c7986Smrg
92501d8c7986Smrg
92511d8c7986Smrg
92521d8c7986Smrg
92531d8c7986Smrg
92541d8c7986Smrg
92551d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
92561d8c7986Smrg
92571d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92581d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92591d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
92601d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
92611d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
92621d8c7986Smrg  $as_echo_n "(cached) " >&6
92631d8c7986Smrgelse
92641d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92651d8c7986Smrg/* end confdefs.h.  */
92661d8c7986Smrgint i;
92671d8c7986Smrg_ACEOF
92681d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
92691d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
92701d8c7986Smrgelse
92711d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
92721d8c7986Smrgfi
92731d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
92741d8c7986Smrgfi
92751d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
92761d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92771d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92781d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
92791d8c7986Smrgfi
92801d8c7986Smrg
92811d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92821d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92831d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92841d8c7986Smrg	fi
92851d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92861d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
92871d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
92881d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
92891d8c7986Smrg  $as_echo_n "(cached) " >&6
92901d8c7986Smrgelse
92911d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92921d8c7986Smrg/* end confdefs.h.  */
92931d8c7986Smrgint i;
92941d8c7986Smrg_ACEOF
92951d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
92961d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
92971d8c7986Smrgelse
92981d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
92991d8c7986Smrgfi
93001d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93011d8c7986Smrgfi
93021d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
93031d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93041d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93051d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93061d8c7986Smrgfi
93071d8c7986Smrg
93081d8c7986Smrgfound="no"
93091d8c7986Smrg
93101d8c7986Smrg	if test $found = "no" ; then
9311c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93121d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93131d8c7986Smrg		fi
93141d8c7986Smrg
9315c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93161d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93171d8c7986Smrg		fi
93181d8c7986Smrg
93191d8c7986Smrg		CFLAGS="$CFLAGS -Wreturn-type"
93201d8c7986Smrg
9321c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9322c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
93231d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
93241d8c7986Smrg		if eval \${$cacheid+:} false; then :
93251d8c7986Smrg  $as_echo_n "(cached) " >&6
93261d8c7986Smrgelse
93271d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93281d8c7986Smrg/* end confdefs.h.  */
93291d8c7986Smrgint i;
93301d8c7986Smrgint
93311d8c7986Smrgmain ()
93321d8c7986Smrg{
93331d8c7986Smrg
93341d8c7986Smrg  ;
93351d8c7986Smrg  return 0;
93361d8c7986Smrg}
93371d8c7986Smrg_ACEOF
93381d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
93391d8c7986Smrg  eval $cacheid=yes
93401d8c7986Smrgelse
93411d8c7986Smrg  eval $cacheid=no
93421d8c7986Smrgfi
93431d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
93441d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
93451d8c7986Smrgfi
93461d8c7986Smrg
93471d8c7986Smrg
93481d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
93491d8c7986Smrg
93501d8c7986Smrg		eval supported=\$$cacheid
93511d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
93521d8c7986Smrg$as_echo "$supported" >&6; }
93531d8c7986Smrg		if test "$supported" = "yes" ; then
93541d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
93551d8c7986Smrg			found="yes"
93561d8c7986Smrg		fi
93571d8c7986Smrg	fi
93581d8c7986Smrg
93591d8c7986Smrg
93601d8c7986Smrg
93611d8c7986Smrg
93621d8c7986Smrg
93631d8c7986Smrg
93641d8c7986Smrg
93651d8c7986Smrg
93661d8c7986Smrg
93671d8c7986Smrg
93681d8c7986Smrg
93691d8c7986Smrg
93701d8c7986Smrg
93711d8c7986Smrg
93721d8c7986Smrg
93731d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
93741d8c7986Smrg
93751d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93761d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93771d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
93781d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
93791d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
93801d8c7986Smrg  $as_echo_n "(cached) " >&6
93811d8c7986Smrgelse
93821d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93831d8c7986Smrg/* end confdefs.h.  */
93841d8c7986Smrgint i;
93851d8c7986Smrg_ACEOF
93861d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
93871d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
93881d8c7986Smrgelse
93891d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
93901d8c7986Smrgfi
93911d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93921d8c7986Smrgfi
93931d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
93941d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
93951d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
93961d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
93971d8c7986Smrgfi
93981d8c7986Smrg
93991d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94001d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94011d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94021d8c7986Smrg	fi
94031d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94041d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
94051d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
94061d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
94071d8c7986Smrg  $as_echo_n "(cached) " >&6
94081d8c7986Smrgelse
94091d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94101d8c7986Smrg/* end confdefs.h.  */
94111d8c7986Smrgint i;
94121d8c7986Smrg_ACEOF
94131d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
94141d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
94151d8c7986Smrgelse
94161d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
94171d8c7986Smrgfi
94181d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
94191d8c7986Smrgfi
94201d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
94211d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94221d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94231d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
94241d8c7986Smrgfi
94251d8c7986Smrg
94261d8c7986Smrgfound="no"
94271d8c7986Smrg
94281d8c7986Smrg	if test $found = "no" ; then
9429c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94301d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94311d8c7986Smrg		fi
94321d8c7986Smrg
9433c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94341d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94351d8c7986Smrg		fi
94361d8c7986Smrg
94371d8c7986Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
94381d8c7986Smrg
9439c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9440c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
94411d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
94421d8c7986Smrg		if eval \${$cacheid+:} false; then :
94431d8c7986Smrg  $as_echo_n "(cached) " >&6
94441d8c7986Smrgelse
94451d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94461d8c7986Smrg/* end confdefs.h.  */
94471d8c7986Smrgint i;
94481d8c7986Smrgint
94491d8c7986Smrgmain ()
94501d8c7986Smrg{
94511d8c7986Smrg
94521d8c7986Smrg  ;
94531d8c7986Smrg  return 0;
94541d8c7986Smrg}
94551d8c7986Smrg_ACEOF
94561d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
94571d8c7986Smrg  eval $cacheid=yes
94581d8c7986Smrgelse
94591d8c7986Smrg  eval $cacheid=no
94601d8c7986Smrgfi
94611d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
94621d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
94631d8c7986Smrgfi
94641d8c7986Smrg
94651d8c7986Smrg
94661d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
94671d8c7986Smrg
94681d8c7986Smrg		eval supported=\$$cacheid
94691d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
94701d8c7986Smrg$as_echo "$supported" >&6; }
94711d8c7986Smrg		if test "$supported" = "yes" ; then
94721d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
94731d8c7986Smrg			found="yes"
94741d8c7986Smrg		fi
94751d8c7986Smrg	fi
94761d8c7986Smrg
94771d8c7986Smrg
94781d8c7986Smrg
94791d8c7986Smrg
94801d8c7986Smrg
94811d8c7986Smrg
94821d8c7986Smrg
94831d8c7986Smrg
94841d8c7986Smrg
94851d8c7986Smrg
94861d8c7986Smrg
94871d8c7986Smrg
94881d8c7986Smrg
94891d8c7986Smrg
94901d8c7986Smrg
94911d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
94921d8c7986Smrg
94931d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
94941d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94951d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
94961d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
94971d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
94981d8c7986Smrg  $as_echo_n "(cached) " >&6
94991d8c7986Smrgelse
95001d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95011d8c7986Smrg/* end confdefs.h.  */
95021d8c7986Smrgint i;
95031d8c7986Smrg_ACEOF
95041d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
95051d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
95061d8c7986Smrgelse
95071d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
95081d8c7986Smrgfi
95091d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95101d8c7986Smrgfi
95111d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
95121d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95131d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95141d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95151d8c7986Smrgfi
95161d8c7986Smrg
95171d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95181d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95191d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95201d8c7986Smrg	fi
95211d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95221d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
95231d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
95241d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
95251d8c7986Smrg  $as_echo_n "(cached) " >&6
95261d8c7986Smrgelse
95271d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95281d8c7986Smrg/* end confdefs.h.  */
95291d8c7986Smrgint i;
95301d8c7986Smrg_ACEOF
95311d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
95321d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
95331d8c7986Smrgelse
95341d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
95351d8c7986Smrgfi
95361d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
95371d8c7986Smrgfi
95381d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
95391d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95401d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95411d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
95421d8c7986Smrgfi
95431d8c7986Smrg
95441d8c7986Smrgfound="no"
95451d8c7986Smrg
95461d8c7986Smrg	if test $found = "no" ; then
9547c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95481d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95491d8c7986Smrg		fi
95501d8c7986Smrg
9551c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95521d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95531d8c7986Smrg		fi
95541d8c7986Smrg
95551d8c7986Smrg		CFLAGS="$CFLAGS -Warray-bounds"
95561d8c7986Smrg
9557c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9558c82dfdfbSmrg$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
95591d8c7986Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
95601d8c7986Smrg		if eval \${$cacheid+:} false; then :
95611d8c7986Smrg  $as_echo_n "(cached) " >&6
95621d8c7986Smrgelse
95631d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95641d8c7986Smrg/* end confdefs.h.  */
95651d8c7986Smrgint i;
95661d8c7986Smrgint
95671d8c7986Smrgmain ()
95681d8c7986Smrg{
95691d8c7986Smrg
95701d8c7986Smrg  ;
95711d8c7986Smrg  return 0;
95721d8c7986Smrg}
95731d8c7986Smrg_ACEOF
95741d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
95751d8c7986Smrg  eval $cacheid=yes
95761d8c7986Smrgelse
95771d8c7986Smrg  eval $cacheid=no
95781d8c7986Smrgfi
95791d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
95801d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
95811d8c7986Smrgfi
95821d8c7986Smrg
95831d8c7986Smrg
95841d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
95851d8c7986Smrg
95861d8c7986Smrg		eval supported=\$$cacheid
95871d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
95881d8c7986Smrg$as_echo "$supported" >&6; }
95891d8c7986Smrg		if test "$supported" = "yes" ; then
95901d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
95911d8c7986Smrg			found="yes"
95921d8c7986Smrg		fi
95931d8c7986Smrg	fi
95941d8c7986Smrg
95951d8c7986Smrg
95961d8c7986Smrg
95971d8c7986Smrg
95981d8c7986Smrg
95991d8c7986Smrg
96001d8c7986Smrg
96011d8c7986Smrg
96021d8c7986Smrg
96031d8c7986Smrg
96041d8c7986Smrg
96051d8c7986Smrg
96061d8c7986Smrg
96071d8c7986Smrg
96081d8c7986Smrg
96091d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
96101d8c7986Smrg
96111d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96121d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96131d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
96141d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
96151d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
96161d8c7986Smrg  $as_echo_n "(cached) " >&6
96171d8c7986Smrgelse
96181d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96191d8c7986Smrg/* end confdefs.h.  */
96201d8c7986Smrgint i;
96211d8c7986Smrg_ACEOF
96221d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
96231d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
96241d8c7986Smrgelse
96251d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
96261d8c7986Smrgfi
96271d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96281d8c7986Smrgfi
96291d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
96301d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96311d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96321d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96331d8c7986Smrgfi
96341d8c7986Smrg
96351d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96361d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96371d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96381d8c7986Smrg	fi
96391d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96401d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
96411d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
96421d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
96431d8c7986Smrg  $as_echo_n "(cached) " >&6
96441d8c7986Smrgelse
96451d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96461d8c7986Smrg/* end confdefs.h.  */
96471d8c7986Smrgint i;
96481d8c7986Smrg_ACEOF
96491d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
96501d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
96511d8c7986Smrgelse
96521d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
96531d8c7986Smrgfi
96541d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
96551d8c7986Smrgfi
96561d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
96571d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96581d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96591d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
96601d8c7986Smrgfi
96611d8c7986Smrg
96621d8c7986Smrgfound="no"
96631d8c7986Smrg
96641d8c7986Smrg	if test $found = "no" ; then
9665c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96661d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96671d8c7986Smrg		fi
96681d8c7986Smrg
9669c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
96701d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
96711d8c7986Smrg		fi
96721d8c7986Smrg
96731d8c7986Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
96741d8c7986Smrg
9675c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9676c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
96771d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
96781d8c7986Smrg		if eval \${$cacheid+:} false; then :
96791d8c7986Smrg  $as_echo_n "(cached) " >&6
96801d8c7986Smrgelse
96811d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96821d8c7986Smrg/* end confdefs.h.  */
96831d8c7986Smrgint i;
96841d8c7986Smrgint
96851d8c7986Smrgmain ()
96861d8c7986Smrg{
96871d8c7986Smrg
96881d8c7986Smrg  ;
96891d8c7986Smrg  return 0;
96901d8c7986Smrg}
96911d8c7986Smrg_ACEOF
96921d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
96931d8c7986Smrg  eval $cacheid=yes
96941d8c7986Smrgelse
96951d8c7986Smrg  eval $cacheid=no
96961d8c7986Smrgfi
96971d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
96981d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
96991d8c7986Smrgfi
97001d8c7986Smrg
97011d8c7986Smrg
97021d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
97031d8c7986Smrg
97041d8c7986Smrg		eval supported=\$$cacheid
97051d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
97061d8c7986Smrg$as_echo "$supported" >&6; }
97071d8c7986Smrg		if test "$supported" = "yes" ; then
97081d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
97091d8c7986Smrg			found="yes"
97101d8c7986Smrg		fi
97111d8c7986Smrg	fi
97121d8c7986Smrg
97131d8c7986Smrg
97141d8c7986Smrg
97151d8c7986Smrg
97161d8c7986Smrg
97171d8c7986Smrg
97181d8c7986Smrg
97191d8c7986Smrg
97201d8c7986Smrg
97211d8c7986Smrg
97221d8c7986Smrg
97231d8c7986Smrg
97241d8c7986Smrg
97251d8c7986Smrg
97261d8c7986Smrg
97271d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
97281d8c7986Smrg
97291d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97301d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97311d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
97321d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
97331d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
97341d8c7986Smrg  $as_echo_n "(cached) " >&6
97351d8c7986Smrgelse
97361d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97371d8c7986Smrg/* end confdefs.h.  */
97381d8c7986Smrgint i;
97391d8c7986Smrg_ACEOF
97401d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
97411d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
97421d8c7986Smrgelse
97431d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
97441d8c7986Smrgfi
97451d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97461d8c7986Smrgfi
97471d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
97481d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97491d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97501d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97511d8c7986Smrgfi
97521d8c7986Smrg
97531d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97541d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97551d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97561d8c7986Smrg	fi
97571d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97581d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
97591d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
97601d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
97611d8c7986Smrg  $as_echo_n "(cached) " >&6
97621d8c7986Smrgelse
97631d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97641d8c7986Smrg/* end confdefs.h.  */
97651d8c7986Smrgint i;
97661d8c7986Smrg_ACEOF
97671d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
97681d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
97691d8c7986Smrgelse
97701d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
97711d8c7986Smrgfi
97721d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97731d8c7986Smrgfi
97741d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
97751d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
97761d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
97771d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
97781d8c7986Smrgfi
97791d8c7986Smrg
97801d8c7986Smrgfound="no"
97811d8c7986Smrg
97821d8c7986Smrg	if test $found = "no" ; then
9783c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97841d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97851d8c7986Smrg		fi
97861d8c7986Smrg
9787c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97881d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97891d8c7986Smrg		fi
97901d8c7986Smrg
97911d8c7986Smrg		CFLAGS="$CFLAGS -Waddress"
97921d8c7986Smrg
9793c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9794c82dfdfbSmrg$as_echo_n "checking if $CC supports -Waddress... " >&6; }
97951d8c7986Smrg		cacheid=xorg_cv_cc_flag__Waddress
97961d8c7986Smrg		if eval \${$cacheid+:} false; then :
97971d8c7986Smrg  $as_echo_n "(cached) " >&6
97981d8c7986Smrgelse
97991d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98001d8c7986Smrg/* end confdefs.h.  */
98011d8c7986Smrgint i;
98021d8c7986Smrgint
98031d8c7986Smrgmain ()
98041d8c7986Smrg{
98051d8c7986Smrg
98061d8c7986Smrg  ;
98071d8c7986Smrg  return 0;
98081d8c7986Smrg}
98091d8c7986Smrg_ACEOF
98101d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
98111d8c7986Smrg  eval $cacheid=yes
98121d8c7986Smrgelse
98131d8c7986Smrg  eval $cacheid=no
98141d8c7986Smrgfi
98151d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
98161d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
98171d8c7986Smrgfi
98181d8c7986Smrg
98191d8c7986Smrg
98201d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
98211d8c7986Smrg
98221d8c7986Smrg		eval supported=\$$cacheid
98231d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
98241d8c7986Smrg$as_echo "$supported" >&6; }
98251d8c7986Smrg		if test "$supported" = "yes" ; then
98261d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
98271d8c7986Smrg			found="yes"
98281d8c7986Smrg		fi
98291d8c7986Smrg	fi
98301d8c7986Smrg
98311d8c7986Smrg
98321d8c7986Smrg
98331d8c7986Smrg
98341d8c7986Smrg
98351d8c7986Smrg
98361d8c7986Smrg
98371d8c7986Smrg
98381d8c7986Smrg
98391d8c7986Smrg
98401d8c7986Smrg
98411d8c7986Smrg
98421d8c7986Smrg
98431d8c7986Smrg
98441d8c7986Smrg
98451d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
98461d8c7986Smrg
98471d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98481d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98491d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
98501d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
98511d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
98521d8c7986Smrg  $as_echo_n "(cached) " >&6
98531d8c7986Smrgelse
98541d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98551d8c7986Smrg/* end confdefs.h.  */
98561d8c7986Smrgint i;
98571d8c7986Smrg_ACEOF
98581d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
98591d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
98601d8c7986Smrgelse
98611d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
98621d8c7986Smrgfi
98631d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98641d8c7986Smrgfi
98651d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
98661d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
98671d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
98681d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98691d8c7986Smrgfi
98701d8c7986Smrg
98711d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
98721d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98731d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98741d8c7986Smrg	fi
98751d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98761d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
98771d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
98781d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
98791d8c7986Smrg  $as_echo_n "(cached) " >&6
98801d8c7986Smrgelse
98811d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98821d8c7986Smrg/* end confdefs.h.  */
98831d8c7986Smrgint i;
98841d8c7986Smrg_ACEOF
98851d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
98861d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
98871d8c7986Smrgelse
98881d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
98891d8c7986Smrgfi
98901d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
98911d8c7986Smrgfi
98921d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
98931d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98941d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98951d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
98961d8c7986Smrgfi
98971d8c7986Smrg
98981d8c7986Smrgfound="no"
98991d8c7986Smrg
99001d8c7986Smrg	if test $found = "no" ; then
9901c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99021d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99031d8c7986Smrg		fi
99041d8c7986Smrg
9905c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
99061d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99071d8c7986Smrg		fi
99081d8c7986Smrg
99091d8c7986Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
99101d8c7986Smrg
9911c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9912c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
99131d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
99141d8c7986Smrg		if eval \${$cacheid+:} false; then :
99151d8c7986Smrg  $as_echo_n "(cached) " >&6
99161d8c7986Smrgelse
99171d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99181d8c7986Smrg/* end confdefs.h.  */
99191d8c7986Smrgint i;
99201d8c7986Smrgint
99211d8c7986Smrgmain ()
99221d8c7986Smrg{
99231d8c7986Smrg
99241d8c7986Smrg  ;
99251d8c7986Smrg  return 0;
99261d8c7986Smrg}
99271d8c7986Smrg_ACEOF
99281d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
99291d8c7986Smrg  eval $cacheid=yes
99301d8c7986Smrgelse
99311d8c7986Smrg  eval $cacheid=no
99321d8c7986Smrgfi
99331d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
99341d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
99351d8c7986Smrgfi
99361d8c7986Smrg
99371d8c7986Smrg
99381d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
99391d8c7986Smrg
99401d8c7986Smrg		eval supported=\$$cacheid
99411d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
99421d8c7986Smrg$as_echo "$supported" >&6; }
99431d8c7986Smrg		if test "$supported" = "yes" ; then
99441d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
99451d8c7986Smrg			found="yes"
99461d8c7986Smrg		fi
99471d8c7986Smrg	fi
99481d8c7986Smrg
99491d8c7986Smrg
99501d8c7986Smrg
99511d8c7986Smrg
99521d8c7986Smrg
99531d8c7986Smrg
99541d8c7986Smrg
99551d8c7986Smrg
99561d8c7986Smrg
99571d8c7986Smrg
99581d8c7986Smrg
99591d8c7986Smrg
99601d8c7986Smrg
99611d8c7986Smrg
99621d8c7986Smrg
99631d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
99641d8c7986Smrg
99651d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
99661d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99671d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
99681d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
99691d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
99701d8c7986Smrg  $as_echo_n "(cached) " >&6
99711d8c7986Smrgelse
99721d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99731d8c7986Smrg/* end confdefs.h.  */
99741d8c7986Smrgint i;
99751d8c7986Smrg_ACEOF
99761d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
99771d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
99781d8c7986Smrgelse
99791d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
99801d8c7986Smrgfi
99811d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
99821d8c7986Smrgfi
99831d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
99841d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99851d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99861d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
99871d8c7986Smrgfi
99881d8c7986Smrg
99891d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99901d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99911d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99921d8c7986Smrg	fi
99931d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99941d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
99951d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
99961d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
99971d8c7986Smrg  $as_echo_n "(cached) " >&6
99981d8c7986Smrgelse
99991d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100001d8c7986Smrg/* end confdefs.h.  */
100011d8c7986Smrgint i;
100021d8c7986Smrg_ACEOF
100031d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
100041d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
100051d8c7986Smrgelse
100061d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
100071d8c7986Smrgfi
100081d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
100091d8c7986Smrgfi
100101d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
100111d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100121d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100131d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
100141d8c7986Smrgfi
100151d8c7986Smrg
100161d8c7986Smrgfound="no"
100171d8c7986Smrg
100181d8c7986Smrg	if test $found = "no" ; then
10019c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100201d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100211d8c7986Smrg		fi
100221d8c7986Smrg
10023c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100241d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100251d8c7986Smrg		fi
100261d8c7986Smrg
100271d8c7986Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
100281d8c7986Smrg
10029c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10030c82dfdfbSmrg$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
100311d8c7986Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
100321d8c7986Smrg		if eval \${$cacheid+:} false; then :
100331d8c7986Smrg  $as_echo_n "(cached) " >&6
100341d8c7986Smrgelse
100351d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100361d8c7986Smrg/* end confdefs.h.  */
100371d8c7986Smrgint i;
100381d8c7986Smrgint
100391d8c7986Smrgmain ()
100401d8c7986Smrg{
100411d8c7986Smrg
100421d8c7986Smrg  ;
100431d8c7986Smrg  return 0;
100441d8c7986Smrg}
100451d8c7986Smrg_ACEOF
100461d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
100471d8c7986Smrg  eval $cacheid=yes
100481d8c7986Smrgelse
100491d8c7986Smrg  eval $cacheid=no
100501d8c7986Smrgfi
100511d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
100521d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
100531d8c7986Smrgfi
100541d8c7986Smrg
100551d8c7986Smrg
100561d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
100571d8c7986Smrg
100581d8c7986Smrg		eval supported=\$$cacheid
100591d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
100601d8c7986Smrg$as_echo "$supported" >&6; }
100611d8c7986Smrg		if test "$supported" = "yes" ; then
100621d8c7986Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
100631d8c7986Smrg			found="yes"
100641d8c7986Smrg		fi
100651d8c7986Smrg	fi
100661d8c7986Smrg
100671d8c7986Smrg
100681d8c7986Smrgfi
100691d8c7986Smrg
100701d8c7986Smrg
100711d8c7986Smrg
100721d8c7986Smrg
100731d8c7986Smrg
100741d8c7986Smrg
100751d8c7986Smrg
100761d8c7986Smrg		CWARNFLAGS="$BASE_CFLAGS"
100771d8c7986Smrg		if  test "x$GCC" = xyes ; then
100781d8c7986Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
100791d8c7986Smrg		fi
100801d8c7986Smrg
100811d8c7986Smrg
100821d8c7986Smrg
100831d8c7986Smrg
100841d8c7986Smrg
100851d8c7986Smrg
100861d8c7986Smrg
100871d8c7986Smrg
100881d8c7986Smrg# Check whether --enable-strict-compilation was given.
100891d8c7986Smrgif test "${enable_strict_compilation+set}" = set; then :
100901d8c7986Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
100911d8c7986Smrgelse
100921d8c7986Smrg  STRICT_COMPILE=no
100931d8c7986Smrgfi
100941d8c7986Smrg
100951d8c7986Smrg
100961d8c7986Smrg
100971d8c7986Smrg
100981d8c7986Smrg
100991d8c7986Smrg
101001d8c7986SmrgSTRICT_CFLAGS=""
101011d8c7986Smrg
101021d8c7986Smrg
101031d8c7986Smrg
101041d8c7986Smrg
101051d8c7986Smrg
101061d8c7986Smrg
101071d8c7986Smrg
101081d8c7986Smrg
101091d8c7986Smrg
101101d8c7986Smrg
101111d8c7986Smrg
101121d8c7986Smrg
101131d8c7986Smrg
101141d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
101151d8c7986Smrg
101161d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
101171d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101181d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
101191d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
101201d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
101211d8c7986Smrg  $as_echo_n "(cached) " >&6
101221d8c7986Smrgelse
101231d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101241d8c7986Smrg/* end confdefs.h.  */
101251d8c7986Smrgint i;
101261d8c7986Smrg_ACEOF
101271d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
101281d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
101291d8c7986Smrgelse
101301d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
101311d8c7986Smrgfi
101321d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101331d8c7986Smrgfi
101341d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
101351d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101361d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101371d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101381d8c7986Smrgfi
101391d8c7986Smrg
101401d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101411d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101421d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101431d8c7986Smrg	fi
101441d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101451d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
101461d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
101471d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
101481d8c7986Smrg  $as_echo_n "(cached) " >&6
101491d8c7986Smrgelse
101501d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101511d8c7986Smrg/* end confdefs.h.  */
101521d8c7986Smrgint i;
101531d8c7986Smrg_ACEOF
101541d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
101551d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
101561d8c7986Smrgelse
101571d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
101581d8c7986Smrgfi
101591d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
101601d8c7986Smrgfi
101611d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
101621d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101631d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101641d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
101651d8c7986Smrgfi
101661d8c7986Smrg
101671d8c7986Smrgfound="no"
101681d8c7986Smrg
101691d8c7986Smrg	if test $found = "no" ; then
10170c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101711d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101721d8c7986Smrg		fi
101731d8c7986Smrg
10174c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101751d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101761d8c7986Smrg		fi
101771d8c7986Smrg
101781d8c7986Smrg		CFLAGS="$CFLAGS -pedantic"
101791d8c7986Smrg
10180c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10181c82dfdfbSmrg$as_echo_n "checking if $CC supports -pedantic... " >&6; }
101821d8c7986Smrg		cacheid=xorg_cv_cc_flag__pedantic
101831d8c7986Smrg		if eval \${$cacheid+:} false; then :
101841d8c7986Smrg  $as_echo_n "(cached) " >&6
101851d8c7986Smrgelse
101861d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101871d8c7986Smrg/* end confdefs.h.  */
101881d8c7986Smrgint i;
101891d8c7986Smrgint
101901d8c7986Smrgmain ()
101911d8c7986Smrg{
101921d8c7986Smrg
101931d8c7986Smrg  ;
101941d8c7986Smrg  return 0;
101951d8c7986Smrg}
101961d8c7986Smrg_ACEOF
101971d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
101981d8c7986Smrg  eval $cacheid=yes
101991d8c7986Smrgelse
102001d8c7986Smrg  eval $cacheid=no
102011d8c7986Smrgfi
102021d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
102031d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
102041d8c7986Smrgfi
102051d8c7986Smrg
102061d8c7986Smrg
102071d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
102081d8c7986Smrg
102091d8c7986Smrg		eval supported=\$$cacheid
102101d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
102111d8c7986Smrg$as_echo "$supported" >&6; }
102121d8c7986Smrg		if test "$supported" = "yes" ; then
102131d8c7986Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
102141d8c7986Smrg			found="yes"
102151d8c7986Smrg		fi
102161d8c7986Smrg	fi
102171d8c7986Smrg
102181d8c7986Smrg
102191d8c7986Smrg
102201d8c7986Smrg
102211d8c7986Smrg
102221d8c7986Smrg
102231d8c7986Smrg
102241d8c7986Smrg
102251d8c7986Smrg
102261d8c7986Smrg
102271d8c7986Smrg
102281d8c7986Smrg
102291d8c7986Smrg
102301d8c7986Smrg
102311d8c7986Smrg
102321d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
102331d8c7986Smrg
102341d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102351d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102361d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
102371d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
102381d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
102391d8c7986Smrg  $as_echo_n "(cached) " >&6
102401d8c7986Smrgelse
102411d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102421d8c7986Smrg/* end confdefs.h.  */
102431d8c7986Smrgint i;
102441d8c7986Smrg_ACEOF
102451d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
102461d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
102471d8c7986Smrgelse
102481d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
10249f46a6179Smrgfi
102501d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251f46a6179Smrgfi
102521d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
102531d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102541d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102551d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10256f46a6179Smrgfi
10257f46a6179Smrg
102581d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102591d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102601d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102611d8c7986Smrg	fi
102621d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102631d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
102641d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
102651d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
1026634345a63Smrg  $as_echo_n "(cached) " >&6
10267f46a6179Smrgelse
102681d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102691d8c7986Smrg/* end confdefs.h.  */
102701d8c7986Smrgint i;
102711d8c7986Smrg_ACEOF
102721d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
102731d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
102741d8c7986Smrgelse
102751d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
102761d8c7986Smrgfi
102771d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
102781d8c7986Smrgfi
102791d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
102801d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
102811d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
102821d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
10283f46a6179Smrgfi
10284f46a6179Smrg
102851d8c7986Smrgfound="no"
10286f46a6179Smrg
102871d8c7986Smrg	if test $found = "no" ; then
10288c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102891d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102901d8c7986Smrg		fi
102911d8c7986Smrg
10292c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
102931d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
102941d8c7986Smrg		fi
102951d8c7986Smrg
102961d8c7986Smrg		CFLAGS="$CFLAGS -Werror"
102971d8c7986Smrg
10298c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10299c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror... " >&6; }
103001d8c7986Smrg		cacheid=xorg_cv_cc_flag__Werror
103011d8c7986Smrg		if eval \${$cacheid+:} false; then :
1030234345a63Smrg  $as_echo_n "(cached) " >&6
10303f46a6179Smrgelse
103041d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103051d8c7986Smrg/* end confdefs.h.  */
103061d8c7986Smrgint i;
103071d8c7986Smrgint
103081d8c7986Smrgmain ()
103091d8c7986Smrg{
103101d8c7986Smrg
103111d8c7986Smrg  ;
103121d8c7986Smrg  return 0;
103131d8c7986Smrg}
103141d8c7986Smrg_ACEOF
103151d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
103161d8c7986Smrg  eval $cacheid=yes
10317f46a6179Smrgelse
103181d8c7986Smrg  eval $cacheid=no
10319f46a6179Smrgfi
103201d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
103211d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
10322f46a6179Smrgfi
10323f46a6179Smrg
10324f46a6179Smrg
103251d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
103261d8c7986Smrg
103271d8c7986Smrg		eval supported=\$$cacheid
103281d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103291d8c7986Smrg$as_echo "$supported" >&6; }
103301d8c7986Smrg		if test "$supported" = "yes" ; then
103311d8c7986Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
103321d8c7986Smrg			found="yes"
103331d8c7986Smrg		fi
103341d8c7986Smrg	fi
103351d8c7986Smrg
103361d8c7986Smrg	if test $found = "no" ; then
10337c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103381d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103391d8c7986Smrg		fi
103401d8c7986Smrg
10341c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
103421d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103431d8c7986Smrg		fi
103441d8c7986Smrg
103451d8c7986Smrg		CFLAGS="$CFLAGS -errwarn"
103461d8c7986Smrg
10347c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10348c82dfdfbSmrg$as_echo_n "checking if $CC supports -errwarn... " >&6; }
103491d8c7986Smrg		cacheid=xorg_cv_cc_flag__errwarn
103501d8c7986Smrg		if eval \${$cacheid+:} false; then :
1035183e5f723Smrg  $as_echo_n "(cached) " >&6
1035283e5f723Smrgelse
103531d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103541d8c7986Smrg/* end confdefs.h.  */
103551d8c7986Smrgint i;
103561d8c7986Smrgint
103571d8c7986Smrgmain ()
103581d8c7986Smrg{
1035983e5f723Smrg
103601d8c7986Smrg  ;
103611d8c7986Smrg  return 0;
103621d8c7986Smrg}
103631d8c7986Smrg_ACEOF
103641d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
103651d8c7986Smrg  eval $cacheid=yes
1036683e5f723Smrgelse
103671d8c7986Smrg  eval $cacheid=no
1036883e5f723Smrgfi
103691d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
103701d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
1037183e5f723Smrgfi
1037283e5f723Smrg
1037383e5f723Smrg
103741d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1037583e5f723Smrg
103761d8c7986Smrg		eval supported=\$$cacheid
103771d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
103781d8c7986Smrg$as_echo "$supported" >&6; }
103791d8c7986Smrg		if test "$supported" = "yes" ; then
103801d8c7986Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
103811d8c7986Smrg			found="yes"
103821d8c7986Smrg		fi
103831d8c7986Smrg	fi
1038483e5f723Smrg
1038583e5f723Smrg
10386690143ccSmrg
103871d8c7986Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
103881d8c7986Smrg# activate it with -Werror, so we add it here explicitly.
1038983e5f723Smrg
1039083e5f723Smrg
1039183e5f723Smrg
1039283e5f723Smrg
1039383e5f723Smrg
1039483e5f723Smrg
10395690143ccSmrg
103961d8c7986Smrg
103971d8c7986Smrg
103981d8c7986Smrg
103991d8c7986Smrg
104001d8c7986Smrg
104011d8c7986Smrg
104021d8c7986Smrgxorg_testset_save_CFLAGS="$CFLAGS"
104031d8c7986Smrg
104041d8c7986Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
104051d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104061d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
104071d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
104081d8c7986Smrgif ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
104091d8c7986Smrg  $as_echo_n "(cached) " >&6
1041083e5f723Smrgelse
104111d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104121d8c7986Smrg/* end confdefs.h.  */
104131d8c7986Smrgint i;
104141d8c7986Smrg_ACEOF
104151d8c7986Smrgif ac_fn_c_try_compile "$LINENO"; then :
104161d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
104171d8c7986Smrgelse
104181d8c7986Smrg  xorg_cv_cc_flag_unknown_warning_option=no
104191d8c7986Smrgfi
104201d8c7986Smrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
104211d8c7986Smrgfi
104221d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
104231d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
104241d8c7986Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
104251d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1042683e5f723Smrgfi
1042783e5f723Smrg
104281d8c7986Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
104291d8c7986Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104301d8c7986Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104311d8c7986Smrg	fi
104321d8c7986Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104331d8c7986Smrg	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
104341d8c7986Smrg$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
104351d8c7986Smrgif ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
104361d8c7986Smrg  $as_echo_n "(cached) " >&6
104371d8c7986Smrgelse
104381d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439690143ccSmrg/* end confdefs.h.  */
104401d8c7986Smrgint i;
10441690143ccSmrg_ACEOF
10442690143ccSmrgif ac_fn_c_try_compile "$LINENO"; then :
104431d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1044483e5f723Smrgelse
104451d8c7986Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1044683e5f723Smrgfi
10447690143ccSmrgrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1044883e5f723Smrgfi
104491d8c7986Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
104501d8c7986Smrg$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104511d8c7986Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104521d8c7986Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
104531d8c7986Smrgfi
104541d8c7986Smrg
104551d8c7986Smrgfound="no"
104561d8c7986Smrg
104571d8c7986Smrg	if test $found = "no" ; then
10458c82dfdfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104591d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104601d8c7986Smrg		fi
104611d8c7986Smrg
10462c82dfdfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104631d8c7986Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104641d8c7986Smrg		fi
104651d8c7986Smrg
104661d8c7986Smrg		CFLAGS="$CFLAGS -Werror=attributes"
104671d8c7986Smrg
10468c82dfdfbSmrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10469c82dfdfbSmrg$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10470c82dfdfbSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
104711d8c7986Smrg		if eval \${$cacheid+:} false; then :
104721d8c7986Smrg  $as_echo_n "(cached) " >&6
104731d8c7986Smrgelse
104741d8c7986Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104751d8c7986Smrg/* end confdefs.h.  */
104761d8c7986Smrgint i;
104771d8c7986Smrgint
104781d8c7986Smrgmain ()
104791d8c7986Smrg{
104801d8c7986Smrg
104811d8c7986Smrg  ;
104821d8c7986Smrg  return 0;
104831d8c7986Smrg}
104841d8c7986Smrg_ACEOF
104851d8c7986Smrgif ac_fn_c_try_link "$LINENO"; then :
104861d8c7986Smrg  eval $cacheid=yes
104871d8c7986Smrgelse
104881d8c7986Smrg  eval $cacheid=no
104891d8c7986Smrgfi
104901d8c7986Smrgrm -f core conftest.err conftest.$ac_objext \
104911d8c7986Smrg    conftest$ac_exeext conftest.$ac_ext
104921d8c7986Smrgfi
104931d8c7986Smrg
104941d8c7986Smrg
104951d8c7986Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
104961d8c7986Smrg
104971d8c7986Smrg		eval supported=\$$cacheid
104981d8c7986Smrg		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
104991d8c7986Smrg$as_echo "$supported" >&6; }
105001d8c7986Smrg		if test "$supported" = "yes" ; then
105011d8c7986Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
105021d8c7986Smrg			found="yes"
105031d8c7986Smrg		fi
105041d8c7986Smrg	fi
105051d8c7986Smrg
105061d8c7986Smrg
105071d8c7986Smrg
10508690143ccSmrgif test "x$STRICT_COMPILE" = "xyes"; then
105091d8c7986Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10510690143ccSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1051183e5f723Smrgfi
10512690143ccSmrg
1051383e5f723Smrg
1051483e5f723Smrg
1051583e5f723Smrg
1051683e5f723Smrg
105171d8c7986Smrg
1051883e5f723Smrgcat >>confdefs.h <<_ACEOF
1051983e5f723Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1052083e5f723Smrg_ACEOF
1052183e5f723Smrg
1052283e5f723Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1052383e5f723Smrg	if test "x$PVM" = "x"; then
1052483e5f723Smrg		PVM="0"
1052583e5f723Smrg	fi
1052683e5f723Smrg
1052783e5f723Smrgcat >>confdefs.h <<_ACEOF
1052883e5f723Smrg#define PACKAGE_VERSION_MINOR $PVM
1052983e5f723Smrg_ACEOF
1053083e5f723Smrg
1053183e5f723Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1053283e5f723Smrg	if test "x$PVP" = "x"; then
1053383e5f723Smrg		PVP="0"
1053483e5f723Smrg	fi
1053583e5f723Smrg
1053683e5f723Smrgcat >>confdefs.h <<_ACEOF
1053783e5f723Smrg#define PACKAGE_VERSION_PATCHLEVEL $PVP
1053883e5f723Smrg_ACEOF
1053983e5f723Smrg
1054083e5f723Smrg
1054183e5f723Smrg
1054283e5f723SmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
1054383e5f723Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1054483e5f723Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
1054583e5f723Smrgecho 'git directory not found: installing possibly empty changelog.' >&2)"
1054683e5f723Smrg
1054783e5f723Smrg
1054883e5f723Smrg
1054983e5f723Smrg
1055083e5f723Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1055183e5f723SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1055283e5f723Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1055383e5f723Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
1055483e5f723Smrgecho 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
1055583e5f723Smrg
1055683e5f723Smrg
1055783e5f723Smrg
10558f46a6179Smrg
10559f46a6179Smrg
10560f46a6179Smrg
10561f46a6179Smrgif test x$APP_MAN_SUFFIX = x    ; then
10562f46a6179Smrg    APP_MAN_SUFFIX=1
10563f46a6179Smrgfi
10564f46a6179Smrgif test x$APP_MAN_DIR = x    ; then
10565f46a6179Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10566f46a6179Smrgfi
10567f46a6179Smrg
10568f46a6179Smrgif test x$LIB_MAN_SUFFIX = x    ; then
10569f46a6179Smrg    LIB_MAN_SUFFIX=3
10570f46a6179Smrgfi
10571f46a6179Smrgif test x$LIB_MAN_DIR = x    ; then
10572f46a6179Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10573f46a6179Smrgfi
10574f46a6179Smrg
10575f46a6179Smrgif test x$FILE_MAN_SUFFIX = x    ; then
10576f46a6179Smrg    case $host_os in
10577f46a6179Smrg	solaris*)	FILE_MAN_SUFFIX=4  ;;
10578f46a6179Smrg	*)		FILE_MAN_SUFFIX=5  ;;
10579f46a6179Smrg    esac
10580f46a6179Smrgfi
10581f46a6179Smrgif test x$FILE_MAN_DIR = x    ; then
10582f46a6179Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10583f46a6179Smrgfi
10584f46a6179Smrg
10585f46a6179Smrgif test x$MISC_MAN_SUFFIX = x    ; then
10586f46a6179Smrg    case $host_os in
10587f46a6179Smrg	solaris*)	MISC_MAN_SUFFIX=5  ;;
10588f46a6179Smrg	*)		MISC_MAN_SUFFIX=7  ;;
10589f46a6179Smrg    esac
10590f46a6179Smrgfi
10591f46a6179Smrgif test x$MISC_MAN_DIR = x    ; then
10592f46a6179Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10593f46a6179Smrgfi
10594f46a6179Smrg
10595f46a6179Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
10596f46a6179Smrg    case $host_os in
10597f46a6179Smrg	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10598f46a6179Smrg	*)		DRIVER_MAN_SUFFIX=4  ;;
10599f46a6179Smrg    esac
10600f46a6179Smrgfi
10601f46a6179Smrgif test x$DRIVER_MAN_DIR = x    ; then
10602f46a6179Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10603f46a6179Smrgfi
10604f46a6179Smrg
10605f46a6179Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
10606f46a6179Smrg    case $host_os in
10607f46a6179Smrg	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10608f46a6179Smrg	*)		ADMIN_MAN_SUFFIX=8  ;;
10609f46a6179Smrg    esac
10610f46a6179Smrgfi
10611f46a6179Smrgif test x$ADMIN_MAN_DIR = x    ; then
10612f46a6179Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10613f46a6179Smrgfi
10614f46a6179Smrg
10615f46a6179Smrg
10616f46a6179Smrg
10617f46a6179Smrg
10618f46a6179Smrg
10619f46a6179Smrg
10620f46a6179Smrg
10621f46a6179Smrg
10622f46a6179Smrg
10623f46a6179Smrg
10624f46a6179Smrg
10625f46a6179Smrg
10626f46a6179Smrg
10627f46a6179Smrg
10628f46a6179Smrg
1062983e5f723SmrgXORG_MAN_PAGE="X Version 11"
1063083e5f723Smrg
1063183e5f723SmrgMAN_SUBSTS="\
1063283e5f723Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1063383e5f723Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1063483e5f723Smrg	-e 's|__xservername__|Xorg|g' \
1063583e5f723Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
10636c82dfdfbSmrg	-e 's|__xorgconfdir__|xorg.conf.d|g' \
1063783e5f723Smrg	-e 's|__projectroot__|\$(prefix)|g' \
1063883e5f723Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1063983e5f723Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1064083e5f723Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1064183e5f723Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1064283e5f723Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1064383e5f723Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1064483e5f723Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1064583e5f723Smrg
1064683e5f723Smrg
1064783e5f723Smrg
1064883e5f723Smrg# Check whether --enable-silent-rules was given.
1064983e5f723Smrgif test "${enable_silent_rules+set}" = set; then :
1065083e5f723Smrg  enableval=$enable_silent_rules;
1065183e5f723Smrgfi
10652f46a6179Smrg
10653c82dfdfbSmrgcase $enable_silent_rules in # (((
10654c82dfdfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
10655c82dfdfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
10656c82dfdfbSmrg    *) AM_DEFAULT_VERBOSITY=0;;
1065783e5f723Smrgesac
10658c82dfdfbSmrgam_make=${MAKE-make}
10659c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10660c82dfdfbSmrg$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10661c82dfdfbSmrgif ${am_cv_make_support_nested_variables+:} false; then :
10662c82dfdfbSmrg  $as_echo_n "(cached) " >&6
10663c82dfdfbSmrgelse
10664c82dfdfbSmrg  if $as_echo 'TRUE=$(BAR$(V))
10665c82dfdfbSmrgBAR0=false
10666c82dfdfbSmrgBAR1=true
10667c82dfdfbSmrgV=1
10668c82dfdfbSmrgam__doit:
10669c82dfdfbSmrg	@$(TRUE)
10670c82dfdfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10671c82dfdfbSmrg  am_cv_make_support_nested_variables=yes
10672c82dfdfbSmrgelse
10673c82dfdfbSmrg  am_cv_make_support_nested_variables=no
10674c82dfdfbSmrgfi
10675c82dfdfbSmrgfi
10676c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10677c82dfdfbSmrg$as_echo "$am_cv_make_support_nested_variables" >&6; }
10678c82dfdfbSmrgif test $am_cv_make_support_nested_variables = yes; then
10679c82dfdfbSmrg    AM_V='$(V)'
10680c82dfdfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10681c82dfdfbSmrgelse
10682c82dfdfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
10683c82dfdfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10684c82dfdfbSmrgfi
1068583e5f723SmrgAM_BACKSLASH='\'
1068683e5f723Smrg
1068783e5f723Smrg
1068883e5f723Smrg
1068907d2e718Smrg# If both the C file and YACC are missing, the package cannot be build.
1069083e5f723Smrgfor ac_prog in 'bison -y' byacc
1069183e5f723Smrgdo
1069283e5f723Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
1069383e5f723Smrgset dummy $ac_prog; ac_word=$2
1069483e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1069583e5f723Smrg$as_echo_n "checking for $ac_word... " >&6; }
10696690143ccSmrgif ${ac_cv_prog_YACC+:} false; then :
1069783e5f723Smrg  $as_echo_n "(cached) " >&6
1069883e5f723Smrgelse
1069983e5f723Smrg  if test -n "$YACC"; then
1070083e5f723Smrg  ac_cv_prog_YACC="$YACC" # Let the user override the test.
1070183e5f723Smrgelse
1070283e5f723Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1070383e5f723Smrgfor as_dir in $PATH
1070483e5f723Smrgdo
1070583e5f723Smrg  IFS=$as_save_IFS
1070683e5f723Smrg  test -z "$as_dir" && as_dir=.
1070783e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10708c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1070983e5f723Smrg    ac_cv_prog_YACC="$ac_prog"
1071083e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1071183e5f723Smrg    break 2
1071283e5f723Smrg  fi
1071383e5f723Smrgdone
1071483e5f723Smrg  done
1071583e5f723SmrgIFS=$as_save_IFS
10716f46a6179Smrg
1071783e5f723Smrgfi
1071883e5f723Smrgfi
1071983e5f723SmrgYACC=$ac_cv_prog_YACC
1072083e5f723Smrgif test -n "$YACC"; then
1072183e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1072283e5f723Smrg$as_echo "$YACC" >&6; }
10723f46a6179Smrgelse
1072483e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1072583e5f723Smrg$as_echo "no" >&6; }
10726f46a6179Smrgfi
10727f46a6179Smrg
10728f46a6179Smrg
1072983e5f723Smrg  test -n "$YACC" && break
1073083e5f723Smrgdone
1073183e5f723Smrgtest -n "$YACC" || YACC="yacc"
10732f46a6179Smrg
1073383e5f723Smrg# Extract the first word of "$YACC", so it can be a program name with args.
1073483e5f723Smrgset dummy $YACC; ac_word=$2
1073583e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1073683e5f723Smrg$as_echo_n "checking for $ac_word... " >&6; }
10737690143ccSmrgif ${ac_cv_path_YACC_INST+:} false; then :
1073883e5f723Smrg  $as_echo_n "(cached) " >&6
1073983e5f723Smrgelse
1074083e5f723Smrg  case $YACC_INST in
1074183e5f723Smrg  [\\/]* | ?:[\\/]*)
1074283e5f723Smrg  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
1074383e5f723Smrg  ;;
1074483e5f723Smrg  *)
1074583e5f723Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1074683e5f723Smrgfor as_dir in $PATH
1074783e5f723Smrgdo
1074883e5f723Smrg  IFS=$as_save_IFS
1074983e5f723Smrg  test -z "$as_dir" && as_dir=.
1075083e5f723Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
10751c82dfdfbSmrg  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1075283e5f723Smrg    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
1075383e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1075483e5f723Smrg    break 2
1075583e5f723Smrg  fi
1075683e5f723Smrgdone
1075783e5f723Smrg  done
1075883e5f723SmrgIFS=$as_save_IFS
10759f46a6179Smrg
1076083e5f723Smrg  ;;
1076183e5f723Smrgesac
1076283e5f723Smrgfi
1076383e5f723SmrgYACC_INST=$ac_cv_path_YACC_INST
1076483e5f723Smrgif test -n "$YACC_INST"; then
1076583e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
1076683e5f723Smrg$as_echo "$YACC_INST" >&6; }
1076783e5f723Smrgelse
1076883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1076983e5f723Smrg$as_echo "no" >&6; }
1077083e5f723Smrgfi
1077183e5f723Smrg
1077283e5f723Smrg
1077307d2e718Smrgif test ! -f "$srcdir/xkbparse.c"; then
1077407d2e718Smrg   if test -z "$YACC_INST"; then
1077507d2e718Smrg      as_fn_error $? "yacc not found - unable to compile xkbparse.y" "$LINENO" 5
1077607d2e718Smrg   fi
1077783e5f723Smrgfi
1077883e5f723Smrg
1077983e5f723Smrgfor ac_func in strdup strcasecmp
1078083e5f723Smrgdo :
1078183e5f723Smrg  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
1078283e5f723Smrgac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1078383e5f723Smrgif eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1078483e5f723Smrg  cat >>confdefs.h <<_ACEOF
1078583e5f723Smrg#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10786f46a6179Smrg_ACEOF
10787f46a6179Smrg
1078883e5f723Smrgfi
1078983e5f723Smrgdone
1079083e5f723Smrg
1079183e5f723Smrg
107921d8c7986SmrgREQUIRED_MODULES="x11 xkbfile xproto >= 7.0.17"
107931d8c7986Smrg
1079483e5f723Smrg# Checks for pkg-config packages
1079583e5f723Smrg
1079683e5f723Smrgpkg_failed=no
1079783e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBCOMP" >&5
1079883e5f723Smrg$as_echo_n "checking for XKBCOMP... " >&6; }
1079983e5f723Smrg
1080083e5f723Smrgif test -n "$XKBCOMP_CFLAGS"; then
1080183e5f723Smrg    pkg_cv_XKBCOMP_CFLAGS="$XKBCOMP_CFLAGS"
1080283e5f723Smrg elif test -n "$PKG_CONFIG"; then
1080383e5f723Smrg    if test -n "$PKG_CONFIG" && \
108041d8c7986Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
108051d8c7986Smrg  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
1080683e5f723Smrg  ac_status=$?
1080783e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1080883e5f723Smrg  test $ac_status = 0; }; then
108091d8c7986Smrg  pkg_cv_XKBCOMP_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES" 2>/dev/null`
10810c82dfdfbSmrg		      test "x$?" != "x0" && pkg_failed=yes
1081183e5f723Smrgelse
1081283e5f723Smrg  pkg_failed=yes
1081383e5f723Smrgfi
1081483e5f723Smrg else
1081583e5f723Smrg    pkg_failed=untried
1081683e5f723Smrgfi
1081783e5f723Smrgif test -n "$XKBCOMP_LIBS"; then
1081883e5f723Smrg    pkg_cv_XKBCOMP_LIBS="$XKBCOMP_LIBS"
1081983e5f723Smrg elif test -n "$PKG_CONFIG"; then
1082083e5f723Smrg    if test -n "$PKG_CONFIG" && \
108211d8c7986Smrg    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES\""; } >&5
108221d8c7986Smrg  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES") 2>&5
1082383e5f723Smrg  ac_status=$?
1082483e5f723Smrg  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1082583e5f723Smrg  test $ac_status = 0; }; then
108261d8c7986Smrg  pkg_cv_XKBCOMP_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES" 2>/dev/null`
10827c82dfdfbSmrg		      test "x$?" != "x0" && pkg_failed=yes
1082883e5f723Smrgelse
1082983e5f723Smrg  pkg_failed=yes
1083083e5f723Smrgfi
1083183e5f723Smrg else
1083283e5f723Smrg    pkg_failed=untried
1083383e5f723Smrgfi
1083483e5f723Smrg
1083583e5f723Smrg
1083683e5f723Smrg
1083783e5f723Smrgif test $pkg_failed = yes; then
10838c82dfdfbSmrg   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839c82dfdfbSmrg$as_echo "no" >&6; }
1084083e5f723Smrg
1084183e5f723Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1084283e5f723Smrg        _pkg_short_errors_supported=yes
1084383e5f723Smrgelse
1084483e5f723Smrg        _pkg_short_errors_supported=no
1084583e5f723Smrgfi
1084683e5f723Smrg        if test $_pkg_short_errors_supported = yes; then
10847c82dfdfbSmrg	        XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES" 2>&1`
1084883e5f723Smrg        else
10849c82dfdfbSmrg	        XKBCOMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES" 2>&1`
1085083e5f723Smrg        fi
1085183e5f723Smrg	# Put the nasty error message in config.log where it belongs
1085283e5f723Smrg	echo "$XKBCOMP_PKG_ERRORS" >&5
1085383e5f723Smrg
108541d8c7986Smrg	as_fn_error $? "Package requirements ($REQUIRED_MODULES) were not met:
1085583e5f723Smrg
1085683e5f723Smrg$XKBCOMP_PKG_ERRORS
1085783e5f723Smrg
1085883e5f723SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1085983e5f723Smrginstalled software in a non-standard prefix.
10860f46a6179Smrg
1086183e5f723SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS
1086283e5f723Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config.
10863c82dfdfbSmrgSee the pkg-config man page for more details." "$LINENO" 5
1086483e5f723Smrgelif test $pkg_failed = untried; then
10865c82dfdfbSmrg     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866c82dfdfbSmrg$as_echo "no" >&6; }
1086783e5f723Smrg	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1086883e5f723Smrg$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1086983e5f723Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1087083e5f723Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1087183e5f723Smrgpath to pkg-config.
1087283e5f723Smrg
1087383e5f723SmrgAlternatively, you may set the environment variables XKBCOMP_CFLAGS
1087483e5f723Smrgand XKBCOMP_LIBS to avoid the need to call pkg-config.
1087583e5f723SmrgSee the pkg-config man page for more details.
10876f46a6179Smrg
1087783e5f723SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1087883e5f723SmrgSee \`config.log' for more details" "$LINENO" 5; }
1087983e5f723Smrgelse
1088083e5f723Smrg	XKBCOMP_CFLAGS=$pkg_cv_XKBCOMP_CFLAGS
1088183e5f723Smrg	XKBCOMP_LIBS=$pkg_cv_XKBCOMP_LIBS
1088283e5f723Smrg        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1088383e5f723Smrg$as_echo "yes" >&6; }
10884c82dfdfbSmrg
1088583e5f723Smrgfi
10886f46a6179Smrg
10887f46a6179Smrg
108881d8c7986Smrg
1088983e5f723Smrg# Check whether --with-xkb_config_root was given.
1089083e5f723Smrgif test "${with_xkb_config_root+set}" = set; then :
1089183e5f723Smrg  withval=$with_xkb_config_root; XKBCONFIGROOT="$withval"
1089283e5f723Smrgelse
1089383e5f723Smrg  XKBCONFIGROOT='${datadir}/X11/xkb'
1089483e5f723Smrgfi
1089534345a63Smrg
1089634345a63Smrg
1089734345a63Smrg
1089834345a63Smrg
108991d8c7986Smrgac_config_files="$ac_config_files Makefile man/Makefile xkbcomp.pc"
10900f46a6179Smrg
10901f46a6179Smrgcat >confcache <<\_ACEOF
10902f46a6179Smrg# This file is a shell script that caches the results of configure
10903f46a6179Smrg# tests run on this system so they can be shared between configure
10904f46a6179Smrg# scripts and configure runs, see configure's option --config-cache.
10905f46a6179Smrg# It is not useful on other systems.  If it contains results you don't
10906f46a6179Smrg# want to keep, you may remove or edit it.
10907f46a6179Smrg#
10908f46a6179Smrg# config.status only pays attention to the cache file if you give it
10909f46a6179Smrg# the --recheck option to rerun configure.
10910f46a6179Smrg#
10911f46a6179Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
10912f46a6179Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
10913f46a6179Smrg# following values.
10914f46a6179Smrg
10915f46a6179Smrg_ACEOF
10916f46a6179Smrg
10917f46a6179Smrg# The following way of writing the cache mishandles newlines in values,
10918f46a6179Smrg# but we know of no workaround that is simple, portable, and efficient.
10919f46a6179Smrg# So, we kill variables containing newlines.
10920f46a6179Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
10921f46a6179Smrg# and sets the high bit in the cache file unless we assign to the vars.
10922f46a6179Smrg(
10923f46a6179Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10924f46a6179Smrg    eval ac_val=\$$ac_var
10925f46a6179Smrg    case $ac_val in #(
10926f46a6179Smrg    *${as_nl}*)
10927f46a6179Smrg      case $ac_var in #(
1092883e5f723Smrg      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1092934345a63Smrg$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10930f46a6179Smrg      esac
10931f46a6179Smrg      case $ac_var in #(
10932f46a6179Smrg      _ | IFS | as_nl) ;; #(
1093334345a63Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1093483e5f723Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
10935f46a6179Smrg      esac ;;
10936f46a6179Smrg    esac
10937f46a6179Smrg  done
10938f46a6179Smrg
10939f46a6179Smrg  (set) 2>&1 |
10940f46a6179Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10941f46a6179Smrg    *${as_nl}ac_space=\ *)
1094283e5f723Smrg      # `set' does not quote correctly, so add quotes: double-quote
1094383e5f723Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
10944f46a6179Smrg      sed -n \
10945f46a6179Smrg	"s/'/'\\\\''/g;
10946f46a6179Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10947f46a6179Smrg      ;; #(
10948f46a6179Smrg    *)
10949f46a6179Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
10950f46a6179Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10951f46a6179Smrg      ;;
10952f46a6179Smrg    esac |
10953f46a6179Smrg    sort
10954f46a6179Smrg) |
10955f46a6179Smrg  sed '
10956f46a6179Smrg     /^ac_cv_env_/b end
10957f46a6179Smrg     t clear
10958f46a6179Smrg     :clear
10959f46a6179Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10960f46a6179Smrg     t end
10961f46a6179Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10962f46a6179Smrg     :end' >>confcache
10963f46a6179Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10964f46a6179Smrg  if test -w "$cache_file"; then
10965690143ccSmrg    if test "x$cache_file" != "x/dev/null"; then
1096683e5f723Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1096734345a63Smrg$as_echo "$as_me: updating cache $cache_file" >&6;}
10968690143ccSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
10969690143ccSmrg	cat confcache >"$cache_file"
10970690143ccSmrg      else
10971690143ccSmrg        case $cache_file in #(
10972690143ccSmrg        */* | ?:*)
10973690143ccSmrg	  mv -f confcache "$cache_file"$$ &&
10974690143ccSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10975690143ccSmrg        *)
10976690143ccSmrg	  mv -f confcache "$cache_file" ;;
10977690143ccSmrg	esac
10978690143ccSmrg      fi
10979690143ccSmrg    fi
10980f46a6179Smrg  else
1098183e5f723Smrg    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1098234345a63Smrg$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10983f46a6179Smrg  fi
10984f46a6179Smrgfi
10985f46a6179Smrgrm -f confcache
10986f46a6179Smrg
10987f46a6179Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
10988f46a6179Smrg# Let make expand exec_prefix.
10989f46a6179Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10990f46a6179Smrg
10991f46a6179SmrgDEFS=-DHAVE_CONFIG_H
10992f46a6179Smrg
10993f46a6179Smrgac_libobjs=
10994f46a6179Smrgac_ltlibobjs=
1099583e5f723SmrgU=
10996f46a6179Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10997f46a6179Smrg  # 1. Remove the extension, and $U if already installed.
10998f46a6179Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1099934345a63Smrg  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11000f46a6179Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11001f46a6179Smrg  #    will be set to the directory where LIBOBJS objects are built.
1100283e5f723Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1100383e5f723Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11004f46a6179Smrgdone
11005f46a6179SmrgLIBOBJS=$ac_libobjs
11006f46a6179Smrg
11007f46a6179SmrgLTLIBOBJS=$ac_ltlibobjs
11008f46a6179Smrg
11009f46a6179Smrg
11010c82dfdfbSmrg{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11011c82dfdfbSmrg$as_echo_n "checking that generated files are newer than configure... " >&6; }
11012c82dfdfbSmrg   if test -n "$am_sleep_pid"; then
11013c82dfdfbSmrg     # Hide warnings about reused PIDs.
11014c82dfdfbSmrg     wait $am_sleep_pid 2>/dev/null
11015c82dfdfbSmrg   fi
11016c82dfdfbSmrg   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11017c82dfdfbSmrg$as_echo "done" >&6; }
1101834345a63Smrg if test -n "$EXEEXT"; then
1101934345a63Smrg  am__EXEEXT_TRUE=
1102034345a63Smrg  am__EXEEXT_FALSE='#'
1102134345a63Smrgelse
1102234345a63Smrg  am__EXEEXT_TRUE='#'
1102334345a63Smrg  am__EXEEXT_FALSE=
1102434345a63Smrgfi
1102534345a63Smrg
11026f46a6179Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1102783e5f723Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1102883e5f723SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11029f46a6179Smrgfi
11030f46a6179Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1103183e5f723Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1103283e5f723SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
11033f46a6179Smrgfi
11034f46a6179Smrg
11035690143ccSmrg: "${CONFIG_STATUS=./config.status}"
1103634345a63Smrgac_write_fail=0
11037f46a6179Smrgac_clean_files_save=$ac_clean_files
11038f46a6179Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1103983e5f723Smrg{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1104034345a63Smrg$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1104183e5f723Smrgas_write_fail=0
1104283e5f723Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11043f46a6179Smrg#! $SHELL
11044f46a6179Smrg# Generated by $as_me.
11045f46a6179Smrg# Run this file to recreate the current configuration.
11046f46a6179Smrg# Compiler output produced by configure, useful for debugging
11047f46a6179Smrg# configure, is in config.log if it exists.
11048f46a6179Smrg
11049f46a6179Smrgdebug=false
11050f46a6179Smrgac_cs_recheck=false
11051f46a6179Smrgac_cs_silent=false
11052f46a6179Smrg
1105383e5f723SmrgSHELL=\${CONFIG_SHELL-$SHELL}
1105483e5f723Smrgexport SHELL
1105583e5f723Smrg_ASEOF
1105683e5f723Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1105783e5f723Smrg## -------------------- ##
1105883e5f723Smrg## M4sh Initialization. ##
1105983e5f723Smrg## -------------------- ##
11060f46a6179Smrg
11061f46a6179Smrg# Be more Bourne compatible
11062f46a6179SmrgDUALCASE=1; export DUALCASE # for MKS sh
1106383e5f723Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11064f46a6179Smrg  emulate sh
11065f46a6179Smrg  NULLCMD=:
1106634345a63Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11067f46a6179Smrg  # is contrary to our usage.  Disable this feature.
11068f46a6179Smrg  alias -g '${1+"$@"}'='"$@"'
11069f46a6179Smrg  setopt NO_GLOB_SUBST
11070f46a6179Smrgelse
1107183e5f723Smrg  case `(set -o) 2>/dev/null` in #(
1107283e5f723Smrg  *posix*) :
1107383e5f723Smrg    set -o posix ;; #(
1107483e5f723Smrg  *) :
1107583e5f723Smrg     ;;
11076f46a6179Smrgesac
11077f46a6179Smrgfi
11078f46a6179Smrg
11079f46a6179Smrg
1108034345a63Smrgas_nl='
1108134345a63Smrg'
1108234345a63Smrgexport as_nl
1108334345a63Smrg# Printing a long string crashes Solaris 7 /usr/bin/printf.
1108434345a63Smrgas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1108534345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
1108634345a63Smrgas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1108783e5f723Smrg# Prefer a ksh shell builtin over an external printf program on Solaris,
1108883e5f723Smrg# but without wasting forks for bash or zsh.
1108983e5f723Smrgif test -z "$BASH_VERSION$ZSH_VERSION" \
1109083e5f723Smrg    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
1109183e5f723Smrg  as_echo='print -r --'
1109283e5f723Smrg  as_echo_n='print -rn --'
1109383e5f723Smrgelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1109434345a63Smrg  as_echo='printf %s\n'
1109534345a63Smrg  as_echo_n='printf %s'
1109634345a63Smrgelse
1109734345a63Smrg  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
1109834345a63Smrg    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
1109934345a63Smrg    as_echo_n='/usr/ucb/echo -n'
11100f46a6179Smrg  else
1110134345a63Smrg    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
1110234345a63Smrg    as_echo_n_body='eval
1110334345a63Smrg      arg=$1;
1110483e5f723Smrg      case $arg in #(
1110534345a63Smrg      *"$as_nl"*)
1110634345a63Smrg	expr "X$arg" : "X\\(.*\\)$as_nl";
1110734345a63Smrg	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
1110834345a63Smrg      esac;
1110934345a63Smrg      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
1111034345a63Smrg    '
1111134345a63Smrg    export as_echo_n_body
1111234345a63Smrg    as_echo_n='sh -c $as_echo_n_body as_echo'
11113f46a6179Smrg  fi
1111434345a63Smrg  export as_echo_body
1111534345a63Smrg  as_echo='sh -c $as_echo_body as_echo'
1111634345a63Smrgfi
1111734345a63Smrg
1111834345a63Smrg# The user is always right.
1111934345a63Smrgif test "${PATH_SEPARATOR+set}" != set; then
1112034345a63Smrg  PATH_SEPARATOR=:
1112134345a63Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1112234345a63Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1112334345a63Smrg      PATH_SEPARATOR=';'
1112434345a63Smrg  }
11125f46a6179Smrgfi
11126f46a6179Smrg
11127f46a6179Smrg
11128f46a6179Smrg# IFS
11129f46a6179Smrg# We need space, tab and new line, in precisely that order.  Quoting is
11130f46a6179Smrg# there to prevent editors from complaining about space-tab.
11131f46a6179Smrg# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11132f46a6179Smrg# splitting by setting IFS to empty value.)
11133f46a6179SmrgIFS=" ""	$as_nl"
11134f46a6179Smrg
11135f46a6179Smrg# Find who we are.  Look in the path if we contain no directory separator.
11136690143ccSmrgas_myself=
1113783e5f723Smrgcase $0 in #((
11138f46a6179Smrg  *[\\/]* ) as_myself=$0 ;;
11139f46a6179Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140f46a6179Smrgfor as_dir in $PATH
11141f46a6179Smrgdo
11142f46a6179Smrg  IFS=$as_save_IFS
11143f46a6179Smrg  test -z "$as_dir" && as_dir=.
1114483e5f723Smrg    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1114583e5f723Smrg  done
11146f46a6179SmrgIFS=$as_save_IFS
11147f46a6179Smrg
11148f46a6179Smrg     ;;
11149f46a6179Smrgesac
11150f46a6179Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11151f46a6179Smrg# in which case we are not to be found in the path.
11152f46a6179Smrgif test "x$as_myself" = x; then
11153f46a6179Smrg  as_myself=$0
11154f46a6179Smrgfi
11155f46a6179Smrgif test ! -f "$as_myself"; then
1115634345a63Smrg  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1115783e5f723Smrg  exit 1
11158f46a6179Smrgfi
11159f46a6179Smrg
1116083e5f723Smrg# Unset variables that we do not need and which cause bugs (e.g. in
1116183e5f723Smrg# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
1116283e5f723Smrg# suppresses any "Segmentation fault" message there.  '((' could
1116383e5f723Smrg# trigger a bug in pdksh 5.2.14.
1116483e5f723Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH
1116583e5f723Smrgdo eval test x\${$as_var+set} = xset \
1116683e5f723Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11167f46a6179Smrgdone
11168f46a6179SmrgPS1='$ '
11169f46a6179SmrgPS2='> '
11170f46a6179SmrgPS4='+ '
11171f46a6179Smrg
11172f46a6179Smrg# NLS nuisances.
1117334345a63SmrgLC_ALL=C
1117434345a63Smrgexport LC_ALL
1117534345a63SmrgLANGUAGE=C
1117634345a63Smrgexport LANGUAGE
11177f46a6179Smrg
1117883e5f723Smrg# CDPATH.
1117983e5f723Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1118083e5f723Smrg
1118183e5f723Smrg
1118283e5f723Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1118383e5f723Smrg# ----------------------------------------
1118483e5f723Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1118583e5f723Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1118683e5f723Smrg# script with STATUS, using 1 if that was 0.
1118783e5f723Smrgas_fn_error ()
1118883e5f723Smrg{
1118983e5f723Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
1119083e5f723Smrg  if test "$4"; then
1119183e5f723Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1119283e5f723Smrg    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1119383e5f723Smrg  fi
1119483e5f723Smrg  $as_echo "$as_me: error: $2" >&2
1119583e5f723Smrg  as_fn_exit $as_status
1119683e5f723Smrg} # as_fn_error
1119783e5f723Smrg
1119883e5f723Smrg
1119983e5f723Smrg# as_fn_set_status STATUS
1120083e5f723Smrg# -----------------------
1120183e5f723Smrg# Set $? to STATUS, without forking.
1120283e5f723Smrgas_fn_set_status ()
1120383e5f723Smrg{
1120483e5f723Smrg  return $1
1120583e5f723Smrg} # as_fn_set_status
1120683e5f723Smrg
1120783e5f723Smrg# as_fn_exit STATUS
1120883e5f723Smrg# -----------------
1120983e5f723Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1121083e5f723Smrgas_fn_exit ()
1121183e5f723Smrg{
1121283e5f723Smrg  set +e
1121383e5f723Smrg  as_fn_set_status $1
1121483e5f723Smrg  exit $1
1121583e5f723Smrg} # as_fn_exit
1121683e5f723Smrg
1121783e5f723Smrg# as_fn_unset VAR
1121883e5f723Smrg# ---------------
1121983e5f723Smrg# Portably unset VAR.
1122083e5f723Smrgas_fn_unset ()
1122183e5f723Smrg{
1122283e5f723Smrg  { eval $1=; unset $1;}
1122383e5f723Smrg}
1122483e5f723Smrgas_unset=as_fn_unset
1122583e5f723Smrg# as_fn_append VAR VALUE
1122683e5f723Smrg# ----------------------
1122783e5f723Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1122883e5f723Smrg# advantage of any shell optimizations that allow amortized linear growth over
1122983e5f723Smrg# repeated appends, instead of the typical quadratic growth present in naive
1123083e5f723Smrg# implementations.
1123183e5f723Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
1123283e5f723Smrg  eval 'as_fn_append ()
1123383e5f723Smrg  {
1123483e5f723Smrg    eval $1+=\$2
1123583e5f723Smrg  }'
1123683e5f723Smrgelse
1123783e5f723Smrg  as_fn_append ()
1123883e5f723Smrg  {
1123983e5f723Smrg    eval $1=\$$1\$2
1124083e5f723Smrg  }
1124183e5f723Smrgfi # as_fn_append
1124283e5f723Smrg
1124383e5f723Smrg# as_fn_arith ARG...
1124483e5f723Smrg# ------------------
1124583e5f723Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1124683e5f723Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1124783e5f723Smrg# must be portable across $(()) and expr.
1124883e5f723Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
1124983e5f723Smrg  eval 'as_fn_arith ()
1125083e5f723Smrg  {
1125183e5f723Smrg    as_val=$(( $* ))
1125283e5f723Smrg  }'
1125383e5f723Smrgelse
1125483e5f723Smrg  as_fn_arith ()
1125583e5f723Smrg  {
1125683e5f723Smrg    as_val=`expr "$@" || test $? -eq 1`
1125783e5f723Smrg  }
1125883e5f723Smrgfi # as_fn_arith
1125983e5f723Smrg
1126083e5f723Smrg
11261f46a6179Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11262f46a6179Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11263f46a6179Smrg  as_expr=expr
11264f46a6179Smrgelse
11265f46a6179Smrg  as_expr=false
11266f46a6179Smrgfi
11267f46a6179Smrg
11268f46a6179Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11269f46a6179Smrg  as_basename=basename
11270f46a6179Smrgelse
11271f46a6179Smrg  as_basename=false
11272f46a6179Smrgfi
11273f46a6179Smrg
1127483e5f723Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1127583e5f723Smrg  as_dirname=dirname
1127683e5f723Smrgelse
1127783e5f723Smrg  as_dirname=false
1127883e5f723Smrgfi
11279f46a6179Smrg
11280f46a6179Smrgas_me=`$as_basename -- "$0" ||
11281f46a6179Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11282f46a6179Smrg	 X"$0" : 'X\(//\)$' \| \
11283f46a6179Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1128434345a63Smrg$as_echo X/"$0" |
11285f46a6179Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11286f46a6179Smrg	    s//\1/
11287f46a6179Smrg	    q
11288f46a6179Smrg	  }
11289f46a6179Smrg	  /^X\/\(\/\/\)$/{
11290f46a6179Smrg	    s//\1/
11291f46a6179Smrg	    q
11292f46a6179Smrg	  }
11293f46a6179Smrg	  /^X\/\(\/\).*/{
11294f46a6179Smrg	    s//\1/
11295f46a6179Smrg	    q
11296f46a6179Smrg	  }
11297f46a6179Smrg	  s/.*/./; q'`
11298f46a6179Smrg
1129983e5f723Smrg# Avoid depending upon Character Ranges.
1130083e5f723Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1130183e5f723Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1130283e5f723Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1130383e5f723Smrgas_cr_digits='0123456789'
1130483e5f723Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
11305f46a6179Smrg
11306f46a6179SmrgECHO_C= ECHO_N= ECHO_T=
1130783e5f723Smrgcase `echo -n x` in #(((((
11308f46a6179Smrg-n*)
1130983e5f723Smrg  case `echo 'xy\c'` in
11310f46a6179Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1131183e5f723Smrg  xy)  ECHO_C='\c';;
1131283e5f723Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1131383e5f723Smrg       ECHO_T='	';;
11314f46a6179Smrg  esac;;
11315f46a6179Smrg*)
11316f46a6179Smrg  ECHO_N='-n';;
11317f46a6179Smrgesac
11318f46a6179Smrg
11319f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.file
11320f46a6179Smrgif test -d conf$$.dir; then
11321f46a6179Smrg  rm -f conf$$.dir/conf$$.file
11322f46a6179Smrgelse
11323f46a6179Smrg  rm -f conf$$.dir
1132434345a63Smrg  mkdir conf$$.dir 2>/dev/null
1132534345a63Smrgfi
1132634345a63Smrgif (echo >conf$$.file) 2>/dev/null; then
1132734345a63Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1132834345a63Smrg    as_ln_s='ln -s'
1132934345a63Smrg    # ... but there are two gotchas:
1133034345a63Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1133134345a63Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11332c82dfdfbSmrg    # In both cases, we have to default to `cp -pR'.
1133334345a63Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11334c82dfdfbSmrg      as_ln_s='cp -pR'
1133534345a63Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1133634345a63Smrg    as_ln_s=ln
1133734345a63Smrg  else
11338c82dfdfbSmrg    as_ln_s='cp -pR'
1133934345a63Smrg  fi
11340f46a6179Smrgelse
11341c82dfdfbSmrg  as_ln_s='cp -pR'
11342f46a6179Smrgfi
11343f46a6179Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11344f46a6179Smrgrmdir conf$$.dir 2>/dev/null
11345f46a6179Smrg
1134683e5f723Smrg
1134783e5f723Smrg# as_fn_mkdir_p
1134883e5f723Smrg# -------------
1134983e5f723Smrg# Create "$as_dir" as a directory, including parents if necessary.
1135083e5f723Smrgas_fn_mkdir_p ()
1135183e5f723Smrg{
1135283e5f723Smrg
1135383e5f723Smrg  case $as_dir in #(
1135483e5f723Smrg  -*) as_dir=./$as_dir;;
1135583e5f723Smrg  esac
1135683e5f723Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
1135783e5f723Smrg    as_dirs=
1135883e5f723Smrg    while :; do
1135983e5f723Smrg      case $as_dir in #(
1136083e5f723Smrg      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1136183e5f723Smrg      *) as_qdir=$as_dir;;
1136283e5f723Smrg      esac
1136383e5f723Smrg      as_dirs="'$as_qdir' $as_dirs"
1136483e5f723Smrg      as_dir=`$as_dirname -- "$as_dir" ||
1136583e5f723Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1136683e5f723Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1136783e5f723Smrg	 X"$as_dir" : 'X\(//\)$' \| \
1136883e5f723Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1136983e5f723Smrg$as_echo X"$as_dir" |
1137083e5f723Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1137183e5f723Smrg	    s//\1/
1137283e5f723Smrg	    q
1137383e5f723Smrg	  }
1137483e5f723Smrg	  /^X\(\/\/\)[^/].*/{
1137583e5f723Smrg	    s//\1/
1137683e5f723Smrg	    q
1137783e5f723Smrg	  }
1137883e5f723Smrg	  /^X\(\/\/\)$/{
1137983e5f723Smrg	    s//\1/
1138083e5f723Smrg	    q
1138183e5f723Smrg	  }
1138283e5f723Smrg	  /^X\(\/\).*/{
1138383e5f723Smrg	    s//\1/
1138483e5f723Smrg	    q
1138583e5f723Smrg	  }
1138683e5f723Smrg	  s/.*/./; q'`
1138783e5f723Smrg      test -d "$as_dir" && break
1138883e5f723Smrg    done
1138983e5f723Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1139083e5f723Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1139183e5f723Smrg
1139283e5f723Smrg
1139383e5f723Smrg} # as_fn_mkdir_p
11394f46a6179Smrgif mkdir -p . 2>/dev/null; then
1139583e5f723Smrg  as_mkdir_p='mkdir -p "$as_dir"'
11396f46a6179Smrgelse
11397f46a6179Smrg  test -d ./-p && rmdir ./-p
11398f46a6179Smrg  as_mkdir_p=false
11399f46a6179Smrgfi
11400f46a6179Smrg
11401c82dfdfbSmrg
11402c82dfdfbSmrg# as_fn_executable_p FILE
11403c82dfdfbSmrg# -----------------------
11404c82dfdfbSmrg# Test if FILE is an executable regular file.
11405c82dfdfbSmrgas_fn_executable_p ()
11406c82dfdfbSmrg{
11407c82dfdfbSmrg  test -f "$1" && test -x "$1"
11408c82dfdfbSmrg} # as_fn_executable_p
11409c82dfdfbSmrgas_test_x='test -x'
11410c82dfdfbSmrgas_executable_p=as_fn_executable_p
11411f46a6179Smrg
11412f46a6179Smrg# Sed expression to map a string onto a valid CPP name.
11413f46a6179Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11414f46a6179Smrg
11415f46a6179Smrg# Sed expression to map a string onto a valid variable name.
11416f46a6179Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11417f46a6179Smrg
11418f46a6179Smrg
11419f46a6179Smrgexec 6>&1
1142083e5f723Smrg## ----------------------------------- ##
1142183e5f723Smrg## Main body of $CONFIG_STATUS script. ##
1142283e5f723Smrg## ----------------------------------- ##
1142383e5f723Smrg_ASEOF
1142483e5f723Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11425f46a6179Smrg
1142683e5f723Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1142783e5f723Smrg# Save the log message, to keep $0 and so on meaningful, and to
11428f46a6179Smrg# report actual input values of CONFIG_FILES etc. instead of their
11429f46a6179Smrg# values after options handling.
11430f46a6179Smrgac_log="
11431c82dfdfbSmrgThis file was extended by xkbcomp $as_me 1.3.0, which was
11432c82dfdfbSmrggenerated by GNU Autoconf 2.69.  Invocation command line was
11433f46a6179Smrg
11434f46a6179Smrg  CONFIG_FILES    = $CONFIG_FILES
11435f46a6179Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
11436f46a6179Smrg  CONFIG_LINKS    = $CONFIG_LINKS
11437f46a6179Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
11438f46a6179Smrg  $ $0 $@
11439f46a6179Smrg
11440f46a6179Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11441f46a6179Smrg"
11442f46a6179Smrg
11443f46a6179Smrg_ACEOF
11444f46a6179Smrg
1144534345a63Smrgcase $ac_config_files in *"
1144634345a63Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1144734345a63Smrgesac
1144834345a63Smrg
1144934345a63Smrgcase $ac_config_headers in *"
1145034345a63Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1145134345a63Smrgesac
1145234345a63Smrg
1145334345a63Smrg
1145434345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11455f46a6179Smrg# Files that config.status was made for.
11456f46a6179Smrgconfig_files="$ac_config_files"
11457f46a6179Smrgconfig_headers="$ac_config_headers"
11458f46a6179Smrgconfig_commands="$ac_config_commands"
11459f46a6179Smrg
11460f46a6179Smrg_ACEOF
11461f46a6179Smrg
1146234345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11463f46a6179Smrgac_cs_usage="\
1146483e5f723Smrg\`$as_me' instantiates files and other configuration actions
1146583e5f723Smrgfrom templates according to the current configuration.  Unless the files
1146683e5f723Smrgand actions are specified as TAGs, all are instantiated by default.
11467f46a6179Smrg
1146883e5f723SmrgUsage: $0 [OPTION]... [TAG]...
11469f46a6179Smrg
11470f46a6179Smrg  -h, --help       print this help, then exit
11471f46a6179Smrg  -V, --version    print version number and configuration settings, then exit
1147283e5f723Smrg      --config     print configuration, then exit
1147334345a63Smrg  -q, --quiet, --silent
1147434345a63Smrg                   do not print progress messages
11475f46a6179Smrg  -d, --debug      don't remove temporary files
11476f46a6179Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1147734345a63Smrg      --file=FILE[:TEMPLATE]
1147834345a63Smrg                   instantiate the configuration file FILE
1147934345a63Smrg      --header=FILE[:TEMPLATE]
1148034345a63Smrg                   instantiate the configuration header FILE
11481f46a6179Smrg
11482f46a6179SmrgConfiguration files:
11483f46a6179Smrg$config_files
11484f46a6179Smrg
11485f46a6179SmrgConfiguration headers:
11486f46a6179Smrg$config_headers
11487f46a6179Smrg
11488f46a6179SmrgConfiguration commands:
11489f46a6179Smrg$config_commands
11490f46a6179Smrg
1149183e5f723SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11492f46a6179Smrg
11493f46a6179Smrg_ACEOF
1149434345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1149583e5f723Smrgac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11496f46a6179Smrgac_cs_version="\\
11497c82dfdfbSmrgxkbcomp config.status 1.3.0
11498c82dfdfbSmrgconfigured by $0, generated by GNU Autoconf 2.69,
1149983e5f723Smrg  with options \\"\$ac_cs_config\\"
11500f46a6179Smrg
11501c82dfdfbSmrgCopyright (C) 2012 Free Software Foundation, Inc.
11502f46a6179SmrgThis config.status script is free software; the Free Software Foundation
11503f46a6179Smrggives unlimited permission to copy, distribute and modify it."
11504f46a6179Smrg
11505f46a6179Smrgac_pwd='$ac_pwd'
11506f46a6179Smrgsrcdir='$srcdir'
11507f46a6179SmrgINSTALL='$INSTALL'
11508f46a6179SmrgMKDIR_P='$MKDIR_P'
1150934345a63SmrgAWK='$AWK'
1151034345a63Smrgtest -n "\$AWK" || AWK=awk
11511f46a6179Smrg_ACEOF
11512f46a6179Smrg
1151334345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1151434345a63Smrg# The default lists apply if the user does not specify any file.
11515f46a6179Smrgac_need_defaults=:
11516f46a6179Smrgwhile test $# != 0
11517f46a6179Smrgdo
11518f46a6179Smrg  case $1 in
11519690143ccSmrg  --*=?*)
11520f46a6179Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11521f46a6179Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11522f46a6179Smrg    ac_shift=:
11523f46a6179Smrg    ;;
11524690143ccSmrg  --*=)
11525690143ccSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11526690143ccSmrg    ac_optarg=
11527690143ccSmrg    ac_shift=:
11528690143ccSmrg    ;;
11529f46a6179Smrg  *)
11530f46a6179Smrg    ac_option=$1
11531f46a6179Smrg    ac_optarg=$2
11532f46a6179Smrg    ac_shift=shift
11533f46a6179Smrg    ;;
11534f46a6179Smrg  esac
11535f46a6179Smrg
11536f46a6179Smrg  case $ac_option in
11537f46a6179Smrg  # Handling of the options.
11538f46a6179Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11539f46a6179Smrg    ac_cs_recheck=: ;;
11540f46a6179Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1154134345a63Smrg    $as_echo "$ac_cs_version"; exit ;;
1154283e5f723Smrg  --config | --confi | --conf | --con | --co | --c )
1154383e5f723Smrg    $as_echo "$ac_cs_config"; exit ;;
11544f46a6179Smrg  --debug | --debu | --deb | --de | --d | -d )
11545f46a6179Smrg    debug=: ;;
11546f46a6179Smrg  --file | --fil | --fi | --f )
11547f46a6179Smrg    $ac_shift
1154834345a63Smrg    case $ac_optarg in
1154934345a63Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11550690143ccSmrg    '') as_fn_error $? "missing file argument" ;;
1155134345a63Smrg    esac
1155283e5f723Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
11553f46a6179Smrg    ac_need_defaults=false;;
11554f46a6179Smrg  --header | --heade | --head | --hea )
11555f46a6179Smrg    $ac_shift
1155634345a63Smrg    case $ac_optarg in
1155734345a63Smrg    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1155834345a63Smrg    esac
1155983e5f723Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11560f46a6179Smrg    ac_need_defaults=false;;
11561f46a6179Smrg  --he | --h)
11562f46a6179Smrg    # Conflict between --help and --header
1156383e5f723Smrg    as_fn_error $? "ambiguous option: \`$1'
1156483e5f723SmrgTry \`$0 --help' for more information.";;
11565f46a6179Smrg  --help | --hel | -h )
1156634345a63Smrg    $as_echo "$ac_cs_usage"; exit ;;
11567f46a6179Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11568f46a6179Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11569f46a6179Smrg    ac_cs_silent=: ;;
11570f46a6179Smrg
11571f46a6179Smrg  # This is an error.
1157283e5f723Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
1157383e5f723SmrgTry \`$0 --help' for more information." ;;
11574f46a6179Smrg
1157583e5f723Smrg  *) as_fn_append ac_config_targets " $1"
11576f46a6179Smrg     ac_need_defaults=false ;;
11577f46a6179Smrg
11578f46a6179Smrg  esac
11579f46a6179Smrg  shift
11580f46a6179Smrgdone
11581f46a6179Smrg
11582f46a6179Smrgac_configure_extra_args=
11583f46a6179Smrg
11584f46a6179Smrgif $ac_cs_silent; then
11585f46a6179Smrg  exec 6>/dev/null
11586f46a6179Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
11587f46a6179Smrgfi
11588f46a6179Smrg
11589f46a6179Smrg_ACEOF
1159034345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591f46a6179Smrgif \$ac_cs_recheck; then
11592c82dfdfbSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1159334345a63Smrg  shift
1159434345a63Smrg  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1159534345a63Smrg  CONFIG_SHELL='$SHELL'
11596f46a6179Smrg  export CONFIG_SHELL
1159734345a63Smrg  exec "\$@"
11598f46a6179Smrgfi
11599f46a6179Smrg
11600f46a6179Smrg_ACEOF
1160134345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11602f46a6179Smrgexec 5>>config.log
11603f46a6179Smrg{
11604f46a6179Smrg  echo
11605f46a6179Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11606f46a6179Smrg## Running $as_me. ##
11607f46a6179Smrg_ASBOX
1160834345a63Smrg  $as_echo "$ac_log"
11609f46a6179Smrg} >&5
11610f46a6179Smrg
11611f46a6179Smrg_ACEOF
1161234345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11613f46a6179Smrg#
11614f46a6179Smrg# INIT-COMMANDS
11615f46a6179Smrg#
11616f46a6179SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11617f46a6179Smrg
11618f46a6179Smrg_ACEOF
11619f46a6179Smrg
1162034345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11621f46a6179Smrg
11622f46a6179Smrg# Handling of arguments.
11623f46a6179Smrgfor ac_config_target in $ac_config_targets
11624f46a6179Smrgdo
11625f46a6179Smrg  case $ac_config_target in
1162683e5f723Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11627c82dfdfbSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11628f46a6179Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1162907d2e718Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
116301d8c7986Smrg    "xkbcomp.pc") CONFIG_FILES="$CONFIG_FILES xkbcomp.pc" ;;
11631f46a6179Smrg
1163283e5f723Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11633f46a6179Smrg  esac
11634f46a6179Smrgdone
11635f46a6179Smrg
11636f46a6179Smrg
11637f46a6179Smrg# If the user did not use the arguments to specify the items to instantiate,
11638f46a6179Smrg# then the envvar interface is used.  Set only those that are not.
11639f46a6179Smrg# We use the long form for the default assignment because of an extremely
11640f46a6179Smrg# bizarre bug on SunOS 4.1.3.
11641f46a6179Smrgif $ac_need_defaults; then
11642f46a6179Smrg  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11643f46a6179Smrg  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11644f46a6179Smrg  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11645f46a6179Smrgfi
11646f46a6179Smrg
11647f46a6179Smrg# Have a temporary directory for convenience.  Make it in the build tree
11648f46a6179Smrg# simply because there is no reason against having it here, and in addition,
11649f46a6179Smrg# creating and moving files from /tmp can sometimes cause problems.
11650f46a6179Smrg# Hook for its removal unless debugging.
11651f46a6179Smrg# Note that there is a small window in which the directory will not be cleaned:
11652f46a6179Smrg# after its creation but before its name has been assigned to `$tmp'.
11653f46a6179Smrg$debug ||
11654f46a6179Smrg{
11655690143ccSmrg  tmp= ac_tmp=
11656f46a6179Smrg  trap 'exit_status=$?
11657690143ccSmrg  : "${ac_tmp:=$tmp}"
11658690143ccSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11659f46a6179Smrg' 0
1166083e5f723Smrg  trap 'as_fn_exit 1' 1 2 13 15
11661f46a6179Smrg}
11662f46a6179Smrg# Create a (secure) tmp directory for tmp files.
11663f46a6179Smrg
11664f46a6179Smrg{
11665f46a6179Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11666690143ccSmrg  test -d "$tmp"
11667f46a6179Smrg}  ||
11668f46a6179Smrg{
11669f46a6179Smrg  tmp=./conf$$-$RANDOM
11670f46a6179Smrg  (umask 077 && mkdir "$tmp")
1167183e5f723Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11672690143ccSmrgac_tmp=$tmp
11673f46a6179Smrg
1167434345a63Smrg# Set up the scripts for CONFIG_FILES section.
1167534345a63Smrg# No need to generate them if there are no CONFIG_FILES.
1167634345a63Smrg# This happens for instance with `./config.status config.h'.
11677f46a6179Smrgif test -n "$CONFIG_FILES"; then
11678f46a6179Smrg
11679f46a6179Smrg
1168083e5f723Smrgac_cr=`echo X | tr X '\015'`
1168183e5f723Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1168283e5f723Smrg# But we know of no other shell where ac_cr would be empty at this
1168383e5f723Smrg# point, so we can use a bashism as a fallback.
1168483e5f723Smrgif test "x$ac_cr" = x; then
1168583e5f723Smrg  eval ac_cr=\$\'\\r\'
1168683e5f723Smrgfi
1168734345a63Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1168834345a63Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1168934345a63Smrg  ac_cs_awk_cr='\\r'
1169034345a63Smrgelse
1169134345a63Smrg  ac_cs_awk_cr=$ac_cr
11692f46a6179Smrgfi
11693f46a6179Smrg
11694690143ccSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11695f46a6179Smrg_ACEOF
11696f46a6179Smrg
11697f46a6179Smrg
1169834345a63Smrg{
1169934345a63Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1170034345a63Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1170134345a63Smrg  echo "_ACEOF"
1170234345a63Smrg} >conf$$subs.sh ||
1170383e5f723Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1170483e5f723Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11705f46a6179Smrgac_delim='%!_!# '
11706f46a6179Smrgfor ac_last_try in false false false false false :; do
1170734345a63Smrg  . ./conf$$subs.sh ||
1170883e5f723Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11709f46a6179Smrg
1171034345a63Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1171134345a63Smrg  if test $ac_delim_n = $ac_delim_num; then
11712f46a6179Smrg    break
11713f46a6179Smrg  elif $ac_last_try; then
1171483e5f723Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11715f46a6179Smrg  else
11716f46a6179Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11717f46a6179Smrg  fi
11718f46a6179Smrgdone
1171934345a63Smrgrm -f conf$$subs.sh
11720f46a6179Smrg
1172134345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11722690143ccSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1172334345a63Smrg_ACEOF
1172434345a63Smrgsed -n '
1172534345a63Smrgh
1172634345a63Smrgs/^/S["/; s/!.*/"]=/
1172734345a63Smrgp
1172834345a63Smrgg
1172934345a63Smrgs/^[^!]*!//
1173034345a63Smrg:repl
1173134345a63Smrgt repl
1173234345a63Smrgs/'"$ac_delim"'$//
1173334345a63Smrgt delim
1173434345a63Smrg:nl
1173534345a63Smrgh
1173683e5f723Smrgs/\(.\{148\}\)..*/\1/
1173734345a63Smrgt more1
1173834345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1173934345a63Smrgp
1174034345a63Smrgn
1174134345a63Smrgb repl
1174234345a63Smrg:more1
1174334345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1174434345a63Smrgp
1174534345a63Smrgg
1174634345a63Smrgs/.\{148\}//
1174734345a63Smrgt nl
1174834345a63Smrg:delim
1174934345a63Smrgh
1175083e5f723Smrgs/\(.\{148\}\)..*/\1/
1175134345a63Smrgt more2
1175234345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1175334345a63Smrgp
1175434345a63Smrgb
1175534345a63Smrg:more2
1175634345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1175734345a63Smrgp
1175834345a63Smrgg
1175934345a63Smrgs/.\{148\}//
1176034345a63Smrgt delim
1176134345a63Smrg' <conf$$subs.awk | sed '
1176234345a63Smrg/^[^""]/{
1176334345a63Smrg  N
1176434345a63Smrg  s/\n//
1176534345a63Smrg}
1176634345a63Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1176734345a63Smrgrm -f conf$$subs.awk
1176834345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1176934345a63Smrg_ACAWK
11770690143ccSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1177134345a63Smrg  for (key in S) S_is_set[key] = 1
1177234345a63Smrg  FS = ""
1177334345a63Smrg
1177434345a63Smrg}
1177534345a63Smrg{
1177634345a63Smrg  line = $ 0
1177734345a63Smrg  nfields = split(line, field, "@")
1177834345a63Smrg  substed = 0
1177934345a63Smrg  len = length(field[1])
1178034345a63Smrg  for (i = 2; i < nfields; i++) {
1178134345a63Smrg    key = field[i]
1178234345a63Smrg    keylen = length(key)
1178334345a63Smrg    if (S_is_set[key]) {
1178434345a63Smrg      value = S[key]
1178534345a63Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1178634345a63Smrg      len += length(value) + length(field[++i])
1178734345a63Smrg      substed = 1
1178834345a63Smrg    } else
1178934345a63Smrg      len += 1 + keylen
1179034345a63Smrg  }
1179134345a63Smrg
1179234345a63Smrg  print line
1179334345a63Smrg}
11794f46a6179Smrg
1179534345a63Smrg_ACAWK
11796f46a6179Smrg_ACEOF
1179734345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1179834345a63Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1179934345a63Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1180034345a63Smrgelse
1180134345a63Smrg  cat
11802690143ccSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1180383e5f723Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11804f46a6179Smrg_ACEOF
11805f46a6179Smrg
1180683e5f723Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1180783e5f723Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11808f46a6179Smrg# trailing colons and then remove the whole line if VPATH becomes empty
11809f46a6179Smrg# (actually we leave an empty line to preserve line numbers).
11810f46a6179Smrgif test "x$srcdir" = x.; then
1181183e5f723Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1181283e5f723Smrgh
1181383e5f723Smrgs///
1181483e5f723Smrgs/^/:/
1181583e5f723Smrgs/[	 ]*$/:/
1181683e5f723Smrgs/:\$(srcdir):/:/g
1181783e5f723Smrgs/:\${srcdir}:/:/g
1181883e5f723Smrgs/:@srcdir@:/:/g
1181983e5f723Smrgs/^:*//
11820f46a6179Smrgs/:*$//
1182183e5f723Smrgx
1182283e5f723Smrgs/\(=[	 ]*\).*/\1/
1182383e5f723SmrgG
1182483e5f723Smrgs/\n//
11825f46a6179Smrgs/^[^=]*=[	 ]*$//
11826f46a6179Smrg}'
11827f46a6179Smrgfi
11828f46a6179Smrg
1182934345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11830f46a6179Smrgfi # test -n "$CONFIG_FILES"
11831f46a6179Smrg
1183234345a63Smrg# Set up the scripts for CONFIG_HEADERS section.
1183334345a63Smrg# No need to generate them if there are no CONFIG_HEADERS.
1183434345a63Smrg# This happens for instance with `./config.status Makefile'.
1183534345a63Smrgif test -n "$CONFIG_HEADERS"; then
11836690143ccSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1183734345a63SmrgBEGIN {
1183834345a63Smrg_ACEOF
1183934345a63Smrg
1184034345a63Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1184134345a63Smrg# here-document in config.status, that substitutes the proper values into
1184234345a63Smrg# config.h.in to produce config.h.
1184334345a63Smrg
1184434345a63Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1184534345a63Smrg# handling of long lines.
1184634345a63Smrgac_delim='%!_!# '
1184734345a63Smrgfor ac_last_try in false false :; do
11848690143ccSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11849690143ccSmrg  if test -z "$ac_tt"; then
1185034345a63Smrg    break
1185134345a63Smrg  elif $ac_last_try; then
1185283e5f723Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1185334345a63Smrg  else
1185434345a63Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1185534345a63Smrg  fi
1185634345a63Smrgdone
1185734345a63Smrg
1185834345a63Smrg# For the awk script, D is an array of macro values keyed by name,
1185934345a63Smrg# likewise P contains macro parameters if any.  Preserve backslash
1186034345a63Smrg# newline sequences.
1186134345a63Smrg
1186234345a63Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1186334345a63Smrgsed -n '
1186434345a63Smrgs/.\{148\}/&'"$ac_delim"'/g
1186534345a63Smrgt rset
1186634345a63Smrg:rset
1186734345a63Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1186834345a63Smrgt def
1186934345a63Smrgd
1187034345a63Smrg:def
1187134345a63Smrgs/\\$//
1187234345a63Smrgt bsnl
1187334345a63Smrgs/["\\]/\\&/g
1187434345a63Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1187534345a63SmrgD["\1"]=" \3"/p
1187634345a63Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1187734345a63Smrgd
1187834345a63Smrg:bsnl
1187934345a63Smrgs/["\\]/\\&/g
1188034345a63Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1188134345a63SmrgD["\1"]=" \3\\\\\\n"\\/p
1188234345a63Smrgt cont
1188334345a63Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1188434345a63Smrgt cont
1188534345a63Smrgd
1188634345a63Smrg:cont
1188734345a63Smrgn
1188834345a63Smrgs/.\{148\}/&'"$ac_delim"'/g
1188934345a63Smrgt clear
1189034345a63Smrg:clear
1189134345a63Smrgs/\\$//
1189234345a63Smrgt bsnlc
1189334345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1189434345a63Smrgd
1189534345a63Smrg:bsnlc
1189634345a63Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1189734345a63Smrgb cont
1189834345a63Smrg' <confdefs.h | sed '
1189934345a63Smrgs/'"$ac_delim"'/"\\\
1190034345a63Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1190134345a63Smrg
1190234345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1190334345a63Smrg  for (key in D) D_is_set[key] = 1
1190434345a63Smrg  FS = ""
1190534345a63Smrg}
1190634345a63Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1190734345a63Smrg  line = \$ 0
1190834345a63Smrg  split(line, arg, " ")
1190934345a63Smrg  if (arg[1] == "#") {
1191034345a63Smrg    defundef = arg[2]
1191134345a63Smrg    mac1 = arg[3]
1191234345a63Smrg  } else {
1191334345a63Smrg    defundef = substr(arg[1], 2)
1191434345a63Smrg    mac1 = arg[2]
1191534345a63Smrg  }
1191634345a63Smrg  split(mac1, mac2, "(") #)
1191734345a63Smrg  macro = mac2[1]
1191834345a63Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1191934345a63Smrg  if (D_is_set[macro]) {
1192034345a63Smrg    # Preserve the white space surrounding the "#".
1192134345a63Smrg    print prefix "define", macro P[macro] D[macro]
1192234345a63Smrg    next
1192334345a63Smrg  } else {
1192434345a63Smrg    # Replace #undef with comments.  This is necessary, for example,
1192534345a63Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1192634345a63Smrg    # on some systems where configure will not decide to define it.
1192734345a63Smrg    if (defundef == "undef") {
1192834345a63Smrg      print "/*", prefix defundef, macro, "*/"
1192934345a63Smrg      next
1193034345a63Smrg    }
1193134345a63Smrg  }
1193234345a63Smrg}
1193334345a63Smrg{ print }
1193434345a63Smrg_ACAWK
1193534345a63Smrg_ACEOF
1193634345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1193783e5f723Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1193834345a63Smrgfi # test -n "$CONFIG_HEADERS"
1193934345a63Smrg
11940f46a6179Smrg
1194134345a63Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1194234345a63Smrgshift
1194334345a63Smrgfor ac_tag
11944f46a6179Smrgdo
11945f46a6179Smrg  case $ac_tag in
11946f46a6179Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
11947f46a6179Smrg  esac
11948f46a6179Smrg  case $ac_mode$ac_tag in
11949f46a6179Smrg  :[FHL]*:*);;
1195083e5f723Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11951f46a6179Smrg  :[FH]-) ac_tag=-:-;;
11952f46a6179Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11953f46a6179Smrg  esac
11954f46a6179Smrg  ac_save_IFS=$IFS
11955f46a6179Smrg  IFS=:
11956f46a6179Smrg  set x $ac_tag
11957f46a6179Smrg  IFS=$ac_save_IFS
11958f46a6179Smrg  shift
11959f46a6179Smrg  ac_file=$1
11960f46a6179Smrg  shift
11961f46a6179Smrg
11962f46a6179Smrg  case $ac_mode in
11963f46a6179Smrg  :L) ac_source=$1;;
11964f46a6179Smrg  :[FH])
11965f46a6179Smrg    ac_file_inputs=
11966f46a6179Smrg    for ac_f
11967f46a6179Smrg    do
11968f46a6179Smrg      case $ac_f in
11969690143ccSmrg      -) ac_f="$ac_tmp/stdin";;
11970f46a6179Smrg      *) # Look for the file first in the build tree, then in the source tree
11971f46a6179Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11972f46a6179Smrg	 # because $ac_f cannot contain `:'.
11973f46a6179Smrg	 test -f "$ac_f" ||
11974f46a6179Smrg	   case $ac_f in
11975f46a6179Smrg	   [\\/$]*) false;;
11976f46a6179Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11977f46a6179Smrg	   esac ||
1197883e5f723Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11979f46a6179Smrg      esac
1198034345a63Smrg      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1198183e5f723Smrg      as_fn_append ac_file_inputs " '$ac_f'"
11982f46a6179Smrg    done
11983f46a6179Smrg
11984f46a6179Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
11985f46a6179Smrg    # use $as_me), people would be surprised to read:
11986f46a6179Smrg    #    /* config.h.  Generated by config.status.  */
1198734345a63Smrg    configure_input='Generated from '`
1198834345a63Smrg	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1198934345a63Smrg	`' by configure.'
11990f46a6179Smrg    if test x"$ac_file" != x-; then
11991f46a6179Smrg      configure_input="$ac_file.  $configure_input"
1199283e5f723Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1199334345a63Smrg$as_echo "$as_me: creating $ac_file" >&6;}
11994f46a6179Smrg    fi
1199534345a63Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1199634345a63Smrg    case $configure_input in #(
1199734345a63Smrg    *\&* | *\|* | *\\* )
1199834345a63Smrg       ac_sed_conf_input=`$as_echo "$configure_input" |
1199934345a63Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1200034345a63Smrg    *) ac_sed_conf_input=$configure_input;;
1200134345a63Smrg    esac
12002f46a6179Smrg
12003f46a6179Smrg    case $ac_tag in
12004690143ccSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1200583e5f723Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12006f46a6179Smrg    esac
12007f46a6179Smrg    ;;
12008f46a6179Smrg  esac
12009f46a6179Smrg
12010f46a6179Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
12011f46a6179Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12012f46a6179Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
12013f46a6179Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12014f46a6179Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1201534345a63Smrg$as_echo X"$ac_file" |
12016f46a6179Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12017f46a6179Smrg	    s//\1/
12018f46a6179Smrg	    q
12019f46a6179Smrg	  }
12020f46a6179Smrg	  /^X\(\/\/\)[^/].*/{
12021f46a6179Smrg	    s//\1/
12022f46a6179Smrg	    q
12023f46a6179Smrg	  }
12024f46a6179Smrg	  /^X\(\/\/\)$/{
12025f46a6179Smrg	    s//\1/
12026f46a6179Smrg	    q
12027f46a6179Smrg	  }
12028f46a6179Smrg	  /^X\(\/\).*/{
12029f46a6179Smrg	    s//\1/
12030f46a6179Smrg	    q
12031f46a6179Smrg	  }
12032f46a6179Smrg	  s/.*/./; q'`
1203383e5f723Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
12034f46a6179Smrg  ac_builddir=.
12035f46a6179Smrg
12036f46a6179Smrgcase "$ac_dir" in
12037f46a6179Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12038f46a6179Smrg*)
1203934345a63Smrg  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12040f46a6179Smrg  # A ".." for each directory in $ac_dir_suffix.
1204134345a63Smrg  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12042f46a6179Smrg  case $ac_top_builddir_sub in
12043f46a6179Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12044f46a6179Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12045f46a6179Smrg  esac ;;
12046f46a6179Smrgesac
12047f46a6179Smrgac_abs_top_builddir=$ac_pwd
12048f46a6179Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12049f46a6179Smrg# for backward compatibility:
12050f46a6179Smrgac_top_builddir=$ac_top_build_prefix
12051f46a6179Smrg
12052f46a6179Smrgcase $srcdir in
12053f46a6179Smrg  .)  # We are building in place.
12054f46a6179Smrg    ac_srcdir=.
12055f46a6179Smrg    ac_top_srcdir=$ac_top_builddir_sub
12056f46a6179Smrg    ac_abs_top_srcdir=$ac_pwd ;;
12057f46a6179Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
12058f46a6179Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12059f46a6179Smrg    ac_top_srcdir=$srcdir
12060f46a6179Smrg    ac_abs_top_srcdir=$srcdir ;;
12061f46a6179Smrg  *) # Relative name.
12062f46a6179Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12063f46a6179Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12064f46a6179Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12065f46a6179Smrgesac
12066f46a6179Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12067f46a6179Smrg
12068f46a6179Smrg
12069f46a6179Smrg  case $ac_mode in
12070f46a6179Smrg  :F)
12071f46a6179Smrg  #
12072f46a6179Smrg  # CONFIG_FILE
12073f46a6179Smrg  #
12074f46a6179Smrg
12075f46a6179Smrg  case $INSTALL in
12076f46a6179Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12077f46a6179Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12078f46a6179Smrg  esac
12079f46a6179Smrg  ac_MKDIR_P=$MKDIR_P
12080f46a6179Smrg  case $MKDIR_P in
12081f46a6179Smrg  [\\/$]* | ?:[\\/]* ) ;;
12082f46a6179Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12083f46a6179Smrg  esac
12084f46a6179Smrg_ACEOF
12085f46a6179Smrg
1208634345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12087f46a6179Smrg# If the template does not know about datarootdir, expand it.
12088f46a6179Smrg# FIXME: This hack should be removed a few years after 2.60.
12089f46a6179Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1209034345a63Smrgac_sed_dataroot='
1209134345a63Smrg/datarootdir/ {
12092f46a6179Smrg  p
12093f46a6179Smrg  q
12094f46a6179Smrg}
12095f46a6179Smrg/@datadir@/p
12096f46a6179Smrg/@docdir@/p
12097f46a6179Smrg/@infodir@/p
12098f46a6179Smrg/@localedir@/p
1209983e5f723Smrg/@mandir@/p'
1210034345a63Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12101f46a6179Smrg*datarootdir*) ac_datarootdir_seen=yes;;
12102f46a6179Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1210383e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1210434345a63Smrg$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12105f46a6179Smrg_ACEOF
1210634345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12107f46a6179Smrg  ac_datarootdir_hack='
12108f46a6179Smrg  s&@datadir@&$datadir&g
12109f46a6179Smrg  s&@docdir@&$docdir&g
12110f46a6179Smrg  s&@infodir@&$infodir&g
12111f46a6179Smrg  s&@localedir@&$localedir&g
12112f46a6179Smrg  s&@mandir@&$mandir&g
1211383e5f723Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12114f46a6179Smrgesac
12115f46a6179Smrg_ACEOF
12116f46a6179Smrg
12117f46a6179Smrg# Neutralize VPATH when `$srcdir' = `.'.
12118f46a6179Smrg# Shell code in configure.ac might set extrasub.
12119f46a6179Smrg# FIXME: do we really want to maintain this feature?
1212034345a63Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1212134345a63Smrgac_sed_extra="$ac_vpsub
12122f46a6179Smrg$extrasub
12123f46a6179Smrg_ACEOF
1212434345a63Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12125f46a6179Smrg:t
12126f46a6179Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1212734345a63Smrgs|@configure_input@|$ac_sed_conf_input|;t t
12128f46a6179Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1212934345a63Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12130f46a6179Smrgs&@srcdir@&$ac_srcdir&;t t
12131f46a6179Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12132f46a6179Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
12133f46a6179Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12134f46a6179Smrgs&@builddir@&$ac_builddir&;t t
12135f46a6179Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
12136f46a6179Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12137f46a6179Smrgs&@INSTALL@&$ac_INSTALL&;t t
12138f46a6179Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12139f46a6179Smrg$ac_datarootdir_hack
1214034345a63Smrg"
12141690143ccSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12142690143ccSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12143f46a6179Smrg
12144f46a6179Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12145690143ccSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12146690143ccSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12147690143ccSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1214883e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1214983e5f723Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
1215034345a63Smrg$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1215183e5f723Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12152f46a6179Smrg
12153690143ccSmrg  rm -f "$ac_tmp/stdin"
12154f46a6179Smrg  case $ac_file in
12155690143ccSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12156690143ccSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1215734345a63Smrg  esac \
1215883e5f723Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12159f46a6179Smrg ;;
12160f46a6179Smrg  :H)
12161f46a6179Smrg  #
12162f46a6179Smrg  # CONFIG_HEADER
12163f46a6179Smrg  #
12164f46a6179Smrg  if test x"$ac_file" != x-; then
1216534345a63Smrg    {
1216634345a63Smrg      $as_echo "/* $configure_input  */" \
12167690143ccSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12168690143ccSmrg    } >"$ac_tmp/config.h" \
1216983e5f723Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12170690143ccSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1217183e5f723Smrg      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1217234345a63Smrg$as_echo "$as_me: $ac_file is unchanged" >&6;}
12173f46a6179Smrg    else
1217434345a63Smrg      rm -f "$ac_file"
12175690143ccSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1217683e5f723Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12177f46a6179Smrg    fi
12178f46a6179Smrg  else
1217934345a63Smrg    $as_echo "/* $configure_input  */" \
12180690143ccSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1218183e5f723Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
12182f46a6179Smrg  fi
1218334345a63Smrg# Compute "$ac_file"'s index in $config_headers.
1218434345a63Smrg_am_arg="$ac_file"
12185f46a6179Smrg_am_stamp_count=1
12186f46a6179Smrgfor _am_header in $config_headers :; do
12187f46a6179Smrg  case $_am_header in
12188f46a6179Smrg    $_am_arg | $_am_arg:* )
12189f46a6179Smrg      break ;;
12190f46a6179Smrg    * )
12191f46a6179Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12192f46a6179Smrg  esac
12193f46a6179Smrgdone
12194f46a6179Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12195f46a6179Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12196f46a6179Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12197f46a6179Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12198f46a6179Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1219934345a63Smrg$as_echo X"$_am_arg" |
12200f46a6179Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12201f46a6179Smrg	    s//\1/
12202f46a6179Smrg	    q
12203f46a6179Smrg	  }
12204f46a6179Smrg	  /^X\(\/\/\)[^/].*/{
12205f46a6179Smrg	    s//\1/
12206f46a6179Smrg	    q
12207f46a6179Smrg	  }
12208f46a6179Smrg	  /^X\(\/\/\)$/{
12209f46a6179Smrg	    s//\1/
12210f46a6179Smrg	    q
12211f46a6179Smrg	  }
12212f46a6179Smrg	  /^X\(\/\).*/{
12213f46a6179Smrg	    s//\1/
12214f46a6179Smrg	    q
12215f46a6179Smrg	  }
12216f46a6179Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12217f46a6179Smrg ;;
12218f46a6179Smrg
1221983e5f723Smrg  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1222034345a63Smrg$as_echo "$as_me: executing $ac_file commands" >&6;}
12221f46a6179Smrg ;;
12222f46a6179Smrg  esac
12223f46a6179Smrg
12224f46a6179Smrg
12225f46a6179Smrg  case $ac_file$ac_mode in
1222634345a63Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12227c82dfdfbSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
1222834345a63Smrg  # are listed without --file.  Let's play safe and only enable the eval
1222934345a63Smrg  # if we detect the quoting.
1223034345a63Smrg  case $CONFIG_FILES in
1223134345a63Smrg  *\'*) eval set x "$CONFIG_FILES" ;;
1223234345a63Smrg  *)   set x $CONFIG_FILES ;;
1223334345a63Smrg  esac
1223434345a63Smrg  shift
1223534345a63Smrg  for mf
1223634345a63Smrg  do
1223734345a63Smrg    # Strip MF so we end up with the name of the file.
1223834345a63Smrg    mf=`echo "$mf" | sed -e 's/:.*$//'`
1223934345a63Smrg    # Check whether this is an Automake generated Makefile or not.
12240c82dfdfbSmrg    # We used to match only the files named 'Makefile.in', but
1224134345a63Smrg    # some people rename them; so instead we look at the file content.
1224234345a63Smrg    # Grep'ing the first line is not enough: some people post-process
1224334345a63Smrg    # each Makefile.in and add a new line on top of each file to say so.
1224434345a63Smrg    # Grep'ing the whole file is not good either: AIX grep has a line
1224534345a63Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
1224634345a63Smrg    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1224734345a63Smrg      dirpart=`$as_dirname -- "$mf" ||
12248f46a6179Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12249f46a6179Smrg	 X"$mf" : 'X\(//\)[^/]' \| \
12250f46a6179Smrg	 X"$mf" : 'X\(//\)$' \| \
12251f46a6179Smrg	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1225234345a63Smrg$as_echo X"$mf" |
12253f46a6179Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12254f46a6179Smrg	    s//\1/
12255f46a6179Smrg	    q
12256f46a6179Smrg	  }
12257f46a6179Smrg	  /^X\(\/\/\)[^/].*/{
12258f46a6179Smrg	    s//\1/
12259f46a6179Smrg	    q
12260f46a6179Smrg	  }
12261f46a6179Smrg	  /^X\(\/\/\)$/{
12262f46a6179Smrg	    s//\1/
12263f46a6179Smrg	    q
12264f46a6179Smrg	  }
12265f46a6179Smrg	  /^X\(\/\).*/{
12266f46a6179Smrg	    s//\1/
12267f46a6179Smrg	    q
12268f46a6179Smrg	  }
12269f46a6179Smrg	  s/.*/./; q'`
1227034345a63Smrg    else
1227134345a63Smrg      continue
1227234345a63Smrg    fi
1227334345a63Smrg    # Extract the definition of DEPDIR, am__include, and am__quote
12274c82dfdfbSmrg    # from the Makefile without running 'make'.
1227534345a63Smrg    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1227634345a63Smrg    test -z "$DEPDIR" && continue
1227734345a63Smrg    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12278c82dfdfbSmrg    test -z "$am__include" && continue
1227934345a63Smrg    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1228034345a63Smrg    # Find all dependency output files, they are included files with
1228134345a63Smrg    # $(DEPDIR) in their names.  We invoke sed twice because it is the
1228234345a63Smrg    # simplest approach to changing $(DEPDIR) to its actual value in the
1228334345a63Smrg    # expansion.
1228434345a63Smrg    for file in `sed -n "
1228534345a63Smrg      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12286c82dfdfbSmrg	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1228734345a63Smrg      # Make sure the directory exists.
1228834345a63Smrg      test -f "$dirpart/$file" && continue
1228934345a63Smrg      fdir=`$as_dirname -- "$file" ||
12290f46a6179Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12291f46a6179Smrg	 X"$file" : 'X\(//\)[^/]' \| \
12292f46a6179Smrg	 X"$file" : 'X\(//\)$' \| \
12293f46a6179Smrg	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1229434345a63Smrg$as_echo X"$file" |
12295f46a6179Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12296f46a6179Smrg	    s//\1/
12297f46a6179Smrg	    q
12298f46a6179Smrg	  }
12299f46a6179Smrg	  /^X\(\/\/\)[^/].*/{
12300f46a6179Smrg	    s//\1/
12301f46a6179Smrg	    q
12302f46a6179Smrg	  }
12303f46a6179Smrg	  /^X\(\/\/\)$/{
12304f46a6179Smrg	    s//\1/
12305f46a6179Smrg	    q
12306f46a6179Smrg	  }
12307f46a6179Smrg	  /^X\(\/\).*/{
12308f46a6179Smrg	    s//\1/
12309f46a6179Smrg	    q
12310f46a6179Smrg	  }
12311f46a6179Smrg	  s/.*/./; q'`
1231283e5f723Smrg      as_dir=$dirpart/$fdir; as_fn_mkdir_p
1231334345a63Smrg      # echo "creating $dirpart/$file"
1231434345a63Smrg      echo '# dummy' > "$dirpart/$file"
1231534345a63Smrg    done
12316f46a6179Smrg  done
1231734345a63Smrg}
12318f46a6179Smrg ;;
12319f46a6179Smrg
12320f46a6179Smrg  esac
12321f46a6179Smrgdone # for ac_tag
12322f46a6179Smrg
12323f46a6179Smrg
1232483e5f723Smrgas_fn_exit 0
12325f46a6179Smrg_ACEOF
12326f46a6179Smrgac_clean_files=$ac_clean_files_save
12327f46a6179Smrg
1232834345a63Smrgtest $ac_write_fail = 0 ||
1232983e5f723Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1233034345a63Smrg
12331f46a6179Smrg
12332f46a6179Smrg# configure is writing to config.log, and then calls config.status.
12333f46a6179Smrg# config.status does its own redirection, appending to config.log.
12334f46a6179Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
12335f46a6179Smrg# by configure, so config.status won't be able to write to it; its
12336f46a6179Smrg# output is simply discarded.  So we exec the FD to /dev/null,
12337f46a6179Smrg# effectively closing config.log, so it can be properly (re)opened and
12338f46a6179Smrg# appended to by config.status.  When coming back to configure, we
12339f46a6179Smrg# need to make the FD available again.
12340f46a6179Smrgif test "$no_create" != yes; then
12341f46a6179Smrg  ac_cs_success=:
12342f46a6179Smrg  ac_config_status_args=
12343f46a6179Smrg  test "$silent" = yes &&
12344f46a6179Smrg    ac_config_status_args="$ac_config_status_args --quiet"
12345f46a6179Smrg  exec 5>/dev/null
12346f46a6179Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12347f46a6179Smrg  exec 5>>config.log
12348f46a6179Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12349f46a6179Smrg  # would make configure fail if this is the last instruction.
1235083e5f723Smrg  $ac_cs_success || as_fn_exit 1
12351f46a6179Smrgfi
1235234345a63Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1235383e5f723Smrg  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1235434345a63Smrg$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1235534345a63Smrgfi
12356f46a6179Smrg
12357