configure revision 38d718bd
133c89af1Smrg#! /bin/sh
233c89af1Smrg# Guess values for system-dependent variables and create Makefiles.
338d718bdSmrg# Generated by GNU Autoconf 2.72 for editres 1.0.9.
433c89af1Smrg#
538d718bdSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>.
633c89af1Smrg#
716d8e44fSmrg#
838d718bdSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9352bf44eSmrg# Inc.
1016d8e44fSmrg#
1116d8e44fSmrg#
1233c89af1Smrg# This configure script is free software; the Free Software Foundation
1333c89af1Smrg# gives unlimited permission to copy, distribute and modify it.
1416d8e44fSmrg## -------------------- ##
1516d8e44fSmrg## M4sh Initialization. ##
1616d8e44fSmrg## -------------------- ##
1733c89af1Smrg
18278eca22Smrg# Be more Bourne compatible
19278eca22SmrgDUALCASE=1; export DUALCASE # for MKS sh
20352bf44eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21352bf44eSmrgthen :
2233c89af1Smrg  emulate sh
2333c89af1Smrg  NULLCMD=:
24278eca22Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2533c89af1Smrg  # is contrary to our usage.  Disable this feature.
2633c89af1Smrg  alias -g '${1+"$@"}'='"$@"'
2733c89af1Smrg  setopt NO_GLOB_SUBST
2838d718bdSmrgelse case e in #(
2938d718bdSmrg  e) case `(set -o) 2>/dev/null` in #(
3016d8e44fSmrg  *posix*) :
3116d8e44fSmrg    set -o posix ;; #(
3216d8e44fSmrg  *) :
3316d8e44fSmrg     ;;
3438d718bdSmrgesac ;;
35278eca22Smrgesac
3633c89af1Smrgfi
37278eca22Smrg
38278eca22Smrg
39352bf44eSmrg
40352bf44eSmrg# Reset variables that may have inherited troublesome values from
41352bf44eSmrg# the environment.
42352bf44eSmrg
43352bf44eSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44352bf44eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45352bf44eSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46352bf44eSmrg# Quoting is to prevent editors from complaining about space-tab.
47278eca22Smrgas_nl='
48278eca22Smrg'
49278eca22Smrgexport as_nl
50352bf44eSmrgIFS=" ""	$as_nl"
51352bf44eSmrg
52352bf44eSmrgPS1='$ '
53352bf44eSmrgPS2='> '
54352bf44eSmrgPS4='+ '
55352bf44eSmrg
56352bf44eSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57352bf44eSmrgLC_ALL=C
58352bf44eSmrgexport LC_ALL
59352bf44eSmrgLANGUAGE=C
60352bf44eSmrgexport LANGUAGE
61352bf44eSmrg
62352bf44eSmrg# We cannot yet rely on "unset" to work, but we need these variables
63352bf44eSmrg# to be unset--not just set to an empty or harmless value--now, to
64352bf44eSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65352bf44eSmrg# also avoids known problems related to "unset" and subshell syntax
66352bf44eSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67352bf44eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68352bf44eSmrgdo eval test \${$as_var+y} \
69352bf44eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70352bf44eSmrgdone
71352bf44eSmrg
72352bf44eSmrg# Ensure that fds 0, 1, and 2 are open.
73352bf44eSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74352bf44eSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75352bf44eSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76278eca22Smrg
77278eca22Smrg# The user is always right.
78352bf44eSmrgif ${PATH_SEPARATOR+false} :; then
79278eca22Smrg  PATH_SEPARATOR=:
80278eca22Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81278eca22Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82278eca22Smrg      PATH_SEPARATOR=';'
83278eca22Smrg  }
8433c89af1Smrgfi
8533c89af1Smrg
8633c89af1Smrg
8733c89af1Smrg# Find who we are.  Look in the path if we contain no directory separator.
8816d8e44fSmrgas_myself=
8916d8e44fSmrgcase $0 in #((
9033c89af1Smrg  *[\\/]* ) as_myself=$0 ;;
9133c89af1Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233c89af1Smrgfor as_dir in $PATH
9333c89af1Smrgdo
9433c89af1Smrg  IFS=$as_save_IFS
95352bf44eSmrg  case $as_dir in #(((
96352bf44eSmrg    '') as_dir=./ ;;
97352bf44eSmrg    */) ;;
98352bf44eSmrg    *) as_dir=$as_dir/ ;;
99352bf44eSmrg  esac
100352bf44eSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10116d8e44fSmrg  done
10233c89af1SmrgIFS=$as_save_IFS
10333c89af1Smrg
10433c89af1Smrg     ;;
10533c89af1Smrgesac
10638d718bdSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
10733c89af1Smrg# in which case we are not to be found in the path.
10833c89af1Smrgif test "x$as_myself" = x; then
10933c89af1Smrg  as_myself=$0
11033c89af1Smrgfi
11133c89af1Smrgif test ! -f "$as_myself"; then
112352bf44eSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11316d8e44fSmrg  exit 1
11433c89af1Smrgfi
11533c89af1Smrg
11616d8e44fSmrg
117ad47b356Smrg# Use a proper internal environment variable to ensure we don't fall
118ad47b356Smrg  # into an infinite loop, continuously re-executing ourselves.
119ad47b356Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120ad47b356Smrg    _as_can_reexec=no; export _as_can_reexec;
121ad47b356Smrg    # We cannot yet assume a decent shell, so we have to provide a
122ad47b356Smrg# neutralization value for shells without unset; and this also
123ad47b356Smrg# works around shells that cannot unset nonexistent variables.
124ad47b356Smrg# Preserve -v and -x to the replacement shell.
125ad47b356SmrgBASH_ENV=/dev/null
126ad47b356SmrgENV=/dev/null
127ad47b356Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128ad47b356Smrgcase $- in # ((((
129ad47b356Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
130ad47b356Smrg  *v* ) as_opts=-v ;;
131ad47b356Smrg  *x* ) as_opts=-x ;;
132ad47b356Smrg  * ) as_opts= ;;
133ad47b356Smrgesac
134ad47b356Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135ad47b356Smrg# Admittedly, this is quite paranoid, since all the known shells bail
13638d718bdSmrg# out after a failed 'exec'.
137352bf44eSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138352bf44eSmrgexit 255
139ad47b356Smrg  fi
140ad47b356Smrg  # We don't want this to propagate to other subprocesses.
141ad47b356Smrg          { _as_can_reexec=; unset _as_can_reexec;}
14216d8e44fSmrgif test "x$CONFIG_SHELL" = x; then
14338d718bdSmrg  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144352bf44eSmrgthen :
14516d8e44fSmrg  emulate sh
14616d8e44fSmrg  NULLCMD=:
14716d8e44fSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14816d8e44fSmrg  # is contrary to our usage.  Disable this feature.
14916d8e44fSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
15016d8e44fSmrg  setopt NO_GLOB_SUBST
15138d718bdSmrgelse case e in #(
15238d718bdSmrg  e) case \`(set -o) 2>/dev/null\` in #(
15316d8e44fSmrg  *posix*) :
15416d8e44fSmrg    set -o posix ;; #(
15516d8e44fSmrg  *) :
15616d8e44fSmrg     ;;
15738d718bdSmrgesac ;;
15816d8e44fSmrgesac
15916d8e44fSmrgfi
16016d8e44fSmrg"
16116d8e44fSmrg  as_required="as_fn_return () { (exit \$1); }
16216d8e44fSmrgas_fn_success () { as_fn_return 0; }
16316d8e44fSmrgas_fn_failure () { as_fn_return 1; }
16416d8e44fSmrgas_fn_ret_success () { return 0; }
16516d8e44fSmrgas_fn_ret_failure () { return 1; }
16616d8e44fSmrg
16716d8e44fSmrgexitcode=0
16816d8e44fSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16916d8e44fSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
17016d8e44fSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
17116d8e44fSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172352bf44eSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173352bf44eSmrgthen :
17416d8e44fSmrg
17538d718bdSmrgelse case e in #(
17638d718bdSmrg  e) exitcode=1; echo positional parameters were not saved. ;;
17738d718bdSmrgesac
17816d8e44fSmrgfi
179ad47b356Smrgtest x\$exitcode = x0 || exit 1
180352bf44eSmrgblah=\$(echo \$(echo blah))
181352bf44eSmrgtest x\"\$blah\" = xblah || exit 1
182ad47b356Smrgtest -x / || exit 1"
18316d8e44fSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
18416d8e44fSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
18516d8e44fSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
18616d8e44fSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
18716d8e44fSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
188352bf44eSmrg  if (eval "$as_required") 2>/dev/null
189352bf44eSmrgthen :
19016d8e44fSmrg  as_have_required=yes
19138d718bdSmrgelse case e in #(
19238d718bdSmrg  e) as_have_required=no ;;
19338d718bdSmrgesac
19416d8e44fSmrgfi
195352bf44eSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196352bf44eSmrgthen :
19716d8e44fSmrg
19838d718bdSmrgelse case e in #(
19938d718bdSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20016d8e44fSmrgas_found=false
20116d8e44fSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20216d8e44fSmrgdo
20316d8e44fSmrg  IFS=$as_save_IFS
204352bf44eSmrg  case $as_dir in #(((
205352bf44eSmrg    '') as_dir=./ ;;
206352bf44eSmrg    */) ;;
207352bf44eSmrg    *) as_dir=$as_dir/ ;;
208352bf44eSmrg  esac
20916d8e44fSmrg  as_found=:
21016d8e44fSmrg  case $as_dir in #(
21116d8e44fSmrg	 /*)
21216d8e44fSmrg	   for as_base in sh bash ksh sh5; do
21316d8e44fSmrg	     # Try only shells that exist, to save several forks.
214352bf44eSmrg	     as_shell=$as_dir$as_base
21516d8e44fSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216352bf44eSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217352bf44eSmrgthen :
21816d8e44fSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
219352bf44eSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220352bf44eSmrgthen :
22116d8e44fSmrg  break 2
22216d8e44fSmrgfi
22316d8e44fSmrgfi
22416d8e44fSmrg	   done;;
22516d8e44fSmrg       esac
22616d8e44fSmrg  as_found=false
22716d8e44fSmrgdone
22816d8e44fSmrgIFS=$as_save_IFS
229352bf44eSmrgif $as_found
230352bf44eSmrgthen :
231352bf44eSmrg
23238d718bdSmrgelse case e in #(
23338d718bdSmrg  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234352bf44eSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235352bf44eSmrgthen :
236352bf44eSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
23738d718bdSmrgfi ;;
23838d718bdSmrgesac
239352bf44eSmrgfi
24016d8e44fSmrg
24116d8e44fSmrg
242352bf44eSmrg      if test "x$CONFIG_SHELL" != x
243352bf44eSmrgthen :
244ad47b356Smrg  export CONFIG_SHELL
245ad47b356Smrg             # We cannot yet assume a decent shell, so we have to provide a
246ad47b356Smrg# neutralization value for shells without unset; and this also
247ad47b356Smrg# works around shells that cannot unset nonexistent variables.
248ad47b356Smrg# Preserve -v and -x to the replacement shell.
249ad47b356SmrgBASH_ENV=/dev/null
250ad47b356SmrgENV=/dev/null
251ad47b356Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252ad47b356Smrgcase $- in # ((((
253ad47b356Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
254ad47b356Smrg  *v* ) as_opts=-v ;;
255ad47b356Smrg  *x* ) as_opts=-x ;;
256ad47b356Smrg  * ) as_opts= ;;
257ad47b356Smrgesac
258ad47b356Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259ad47b356Smrg# Admittedly, this is quite paranoid, since all the known shells bail
26038d718bdSmrg# out after a failed 'exec'.
261352bf44eSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262ad47b356Smrgexit 255
26316d8e44fSmrgfi
26416d8e44fSmrg
265352bf44eSmrg    if test x$as_have_required = xno
266352bf44eSmrgthen :
267352bf44eSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
268352bf44eSmrg  printf "%s\n" "$0: the shells that I found on your system."
269352bf44eSmrg  if test ${ZSH_VERSION+y} ; then
270352bf44eSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271352bf44eSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
27216d8e44fSmrg  else
273352bf44eSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
27438d718bdSmrg$0: https://gitlab.freedesktop.org/xorg/app/editres/-/issues
27516d8e44fSmrg$0: about your system, including any error possibly output
27616d8e44fSmrg$0: before this message. Then install a modern shell, or
27716d8e44fSmrg$0: manually run the script under such a shell if you do
27816d8e44fSmrg$0: have one."
27916d8e44fSmrg  fi
28016d8e44fSmrg  exit 1
28138d718bdSmrgfi ;;
28238d718bdSmrgesac
28316d8e44fSmrgfi
28416d8e44fSmrgfi
28516d8e44fSmrgSHELL=${CONFIG_SHELL-/bin/sh}
28616d8e44fSmrgexport SHELL
28716d8e44fSmrg# Unset more variables known to interfere with behavior of common tools.
28816d8e44fSmrgCLICOLOR_FORCE= GREP_OPTIONS=
28916d8e44fSmrgunset CLICOLOR_FORCE GREP_OPTIONS
29016d8e44fSmrg
29116d8e44fSmrg## --------------------- ##
29216d8e44fSmrg## M4sh Shell Functions. ##
29316d8e44fSmrg## --------------------- ##
29416d8e44fSmrg# as_fn_unset VAR
29516d8e44fSmrg# ---------------
29616d8e44fSmrg# Portably unset VAR.
29716d8e44fSmrgas_fn_unset ()
29816d8e44fSmrg{
29916d8e44fSmrg  { eval $1=; unset $1;}
30016d8e44fSmrg}
30116d8e44fSmrgas_unset=as_fn_unset
30216d8e44fSmrg
303352bf44eSmrg
30416d8e44fSmrg# as_fn_set_status STATUS
30516d8e44fSmrg# -----------------------
30616d8e44fSmrg# Set $? to STATUS, without forking.
30716d8e44fSmrgas_fn_set_status ()
30816d8e44fSmrg{
30916d8e44fSmrg  return $1
31016d8e44fSmrg} # as_fn_set_status
31116d8e44fSmrg
31216d8e44fSmrg# as_fn_exit STATUS
31316d8e44fSmrg# -----------------
31416d8e44fSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31516d8e44fSmrgas_fn_exit ()
31616d8e44fSmrg{
31716d8e44fSmrg  set +e
31816d8e44fSmrg  as_fn_set_status $1
31916d8e44fSmrg  exit $1
32016d8e44fSmrg} # as_fn_exit
32116d8e44fSmrg
32216d8e44fSmrg# as_fn_mkdir_p
32316d8e44fSmrg# -------------
32416d8e44fSmrg# Create "$as_dir" as a directory, including parents if necessary.
32516d8e44fSmrgas_fn_mkdir_p ()
32616d8e44fSmrg{
32716d8e44fSmrg
32816d8e44fSmrg  case $as_dir in #(
32916d8e44fSmrg  -*) as_dir=./$as_dir;;
33016d8e44fSmrg  esac
33116d8e44fSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
33216d8e44fSmrg    as_dirs=
33316d8e44fSmrg    while :; do
33416d8e44fSmrg      case $as_dir in #(
335352bf44eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33616d8e44fSmrg      *) as_qdir=$as_dir;;
33716d8e44fSmrg      esac
33816d8e44fSmrg      as_dirs="'$as_qdir' $as_dirs"
33916d8e44fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
34016d8e44fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34116d8e44fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
34216d8e44fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
34316d8e44fSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344352bf44eSmrgprintf "%s\n" X"$as_dir" |
34516d8e44fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34616d8e44fSmrg	    s//\1/
34716d8e44fSmrg	    q
34816d8e44fSmrg	  }
34916d8e44fSmrg	  /^X\(\/\/\)[^/].*/{
35016d8e44fSmrg	    s//\1/
35116d8e44fSmrg	    q
35216d8e44fSmrg	  }
35316d8e44fSmrg	  /^X\(\/\/\)$/{
35416d8e44fSmrg	    s//\1/
35516d8e44fSmrg	    q
35616d8e44fSmrg	  }
35716d8e44fSmrg	  /^X\(\/\).*/{
35816d8e44fSmrg	    s//\1/
35916d8e44fSmrg	    q
36016d8e44fSmrg	  }
36116d8e44fSmrg	  s/.*/./; q'`
36216d8e44fSmrg      test -d "$as_dir" && break
36316d8e44fSmrg    done
36416d8e44fSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
36516d8e44fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
36616d8e44fSmrg
36716d8e44fSmrg
36816d8e44fSmrg} # as_fn_mkdir_p
369ad47b356Smrg
370ad47b356Smrg# as_fn_executable_p FILE
371ad47b356Smrg# -----------------------
372ad47b356Smrg# Test if FILE is an executable regular file.
373ad47b356Smrgas_fn_executable_p ()
374ad47b356Smrg{
375ad47b356Smrg  test -f "$1" && test -x "$1"
376ad47b356Smrg} # as_fn_executable_p
37716d8e44fSmrg# as_fn_append VAR VALUE
37816d8e44fSmrg# ----------------------
37916d8e44fSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
38016d8e44fSmrg# advantage of any shell optimizations that allow amortized linear growth over
38116d8e44fSmrg# repeated appends, instead of the typical quadratic growth present in naive
38216d8e44fSmrg# implementations.
383352bf44eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384352bf44eSmrgthen :
38516d8e44fSmrg  eval 'as_fn_append ()
38616d8e44fSmrg  {
38716d8e44fSmrg    eval $1+=\$2
38816d8e44fSmrg  }'
38938d718bdSmrgelse case e in #(
39038d718bdSmrg  e) as_fn_append ()
39116d8e44fSmrg  {
39216d8e44fSmrg    eval $1=\$$1\$2
39338d718bdSmrg  } ;;
39438d718bdSmrgesac
39516d8e44fSmrgfi # as_fn_append
39616d8e44fSmrg
39716d8e44fSmrg# as_fn_arith ARG...
39816d8e44fSmrg# ------------------
39916d8e44fSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
40016d8e44fSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
40116d8e44fSmrg# must be portable across $(()) and expr.
402352bf44eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403352bf44eSmrgthen :
40416d8e44fSmrg  eval 'as_fn_arith ()
40516d8e44fSmrg  {
40616d8e44fSmrg    as_val=$(( $* ))
40716d8e44fSmrg  }'
40838d718bdSmrgelse case e in #(
40938d718bdSmrg  e) as_fn_arith ()
41016d8e44fSmrg  {
41116d8e44fSmrg    as_val=`expr "$@" || test $? -eq 1`
41238d718bdSmrg  } ;;
41338d718bdSmrgesac
41416d8e44fSmrgfi # as_fn_arith
41516d8e44fSmrg
41616d8e44fSmrg
41716d8e44fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
41816d8e44fSmrg# ----------------------------------------
41916d8e44fSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42016d8e44fSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42116d8e44fSmrg# script with STATUS, using 1 if that was 0.
42216d8e44fSmrgas_fn_error ()
42316d8e44fSmrg{
42416d8e44fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
42516d8e44fSmrg  if test "$4"; then
42616d8e44fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42816d8e44fSmrg  fi
429352bf44eSmrg  printf "%s\n" "$as_me: error: $2" >&2
43016d8e44fSmrg  as_fn_exit $as_status
43116d8e44fSmrg} # as_fn_error
43216d8e44fSmrg
43333c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
43433c89af1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
43533c89af1Smrg  as_expr=expr
43633c89af1Smrgelse
43733c89af1Smrg  as_expr=false
43833c89af1Smrgfi
43933c89af1Smrg
44033c89af1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44133c89af1Smrg  as_basename=basename
44233c89af1Smrgelse
44333c89af1Smrg  as_basename=false
44433c89af1Smrgfi
44533c89af1Smrg
44616d8e44fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44716d8e44fSmrg  as_dirname=dirname
44816d8e44fSmrgelse
44916d8e44fSmrg  as_dirname=false
45016d8e44fSmrgfi
45133c89af1Smrg
45233c89af1Smrgas_me=`$as_basename -- "$0" ||
45333c89af1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45433c89af1Smrg	 X"$0" : 'X\(//\)$' \| \
45533c89af1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456352bf44eSmrgprintf "%s\n" X/"$0" |
45733c89af1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
45833c89af1Smrg	    s//\1/
45933c89af1Smrg	    q
46033c89af1Smrg	  }
46133c89af1Smrg	  /^X\/\(\/\/\)$/{
46233c89af1Smrg	    s//\1/
46333c89af1Smrg	    q
46433c89af1Smrg	  }
46533c89af1Smrg	  /^X\/\(\/\).*/{
46633c89af1Smrg	    s//\1/
46733c89af1Smrg	    q
46833c89af1Smrg	  }
46933c89af1Smrg	  s/.*/./; q'`
47033c89af1Smrg
47116d8e44fSmrg# Avoid depending upon Character Ranges.
47216d8e44fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
47316d8e44fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47416d8e44fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
47516d8e44fSmrgas_cr_digits='0123456789'
47616d8e44fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
47733c89af1Smrg
47833c89af1Smrg
47916d8e44fSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
48016d8e44fSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
48116d8e44fSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
48216d8e44fSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
48316d8e44fSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
48416d8e44fSmrg  sed -n '
48516d8e44fSmrg    p
48616d8e44fSmrg    /[$]LINENO/=
48716d8e44fSmrg  ' <$as_myself |
48816d8e44fSmrg    sed '
48938d718bdSmrg      t clear
49038d718bdSmrg      :clear
49116d8e44fSmrg      s/[$]LINENO.*/&-/
49216d8e44fSmrg      t lineno
49316d8e44fSmrg      b
49416d8e44fSmrg      :lineno
49516d8e44fSmrg      N
49616d8e44fSmrg      :loop
49716d8e44fSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
49816d8e44fSmrg      t loop
49916d8e44fSmrg      s/-\n.*//
50016d8e44fSmrg    ' >$as_me.lineno &&
50116d8e44fSmrg  chmod +x "$as_me.lineno" ||
502352bf44eSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
50333c89af1Smrg
504ad47b356Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505ad47b356Smrg  # already done that, so ensure we don't try to do so again and fall
506ad47b356Smrg  # in an infinite loop.  This has already happened in practice.
507ad47b356Smrg  _as_can_reexec=no; export _as_can_reexec
50816d8e44fSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
50916d8e44fSmrg  # (the dirname of $[0] is not the place where we might find the
51016d8e44fSmrg  # original and so on.  Autoconf is especially sensitive to this).
51116d8e44fSmrg  . "./$as_me.lineno"
51216d8e44fSmrg  # Exit status is that of the last command.
51316d8e44fSmrg  exit
51433c89af1Smrg}
51533c89af1Smrg
516352bf44eSmrg
517352bf44eSmrg# Determine whether it's possible to make 'echo' print without a newline.
518352bf44eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519352bf44eSmrg# for compatibility with existing Makefiles.
52016d8e44fSmrgECHO_C= ECHO_N= ECHO_T=
52116d8e44fSmrgcase `echo -n x` in #(((((
52216d8e44fSmrg-n*)
52316d8e44fSmrg  case `echo 'xy\c'` in
52416d8e44fSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
52516d8e44fSmrg  xy)  ECHO_C='\c';;
52616d8e44fSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
52716d8e44fSmrg       ECHO_T='	';;
52816d8e44fSmrg  esac;;
52916d8e44fSmrg*)
53016d8e44fSmrg  ECHO_N='-n';;
53116d8e44fSmrgesac
53233c89af1Smrg
533352bf44eSmrg# For backward compatibility with old third-party macros, we provide
534352bf44eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
535352bf44eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536352bf44eSmrgas_echo='printf %s\n'
537352bf44eSmrgas_echo_n='printf %s'
538352bf44eSmrg
53916d8e44fSmrgrm -f conf$$ conf$$.exe conf$$.file
54016d8e44fSmrgif test -d conf$$.dir; then
54116d8e44fSmrg  rm -f conf$$.dir/conf$$.file
54216d8e44fSmrgelse
54316d8e44fSmrg  rm -f conf$$.dir
54416d8e44fSmrg  mkdir conf$$.dir 2>/dev/null
54533c89af1Smrgfi
54616d8e44fSmrgif (echo >conf$$.file) 2>/dev/null; then
54716d8e44fSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
54816d8e44fSmrg    as_ln_s='ln -s'
54916d8e44fSmrg    # ... but there are two gotchas:
55038d718bdSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
55138d718bdSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
55238d718bdSmrg    # In both cases, we have to default to 'cp -pR'.
55316d8e44fSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554ad47b356Smrg      as_ln_s='cp -pR'
55516d8e44fSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
55616d8e44fSmrg    as_ln_s=ln
55716d8e44fSmrg  else
558ad47b356Smrg    as_ln_s='cp -pR'
55916d8e44fSmrg  fi
56033c89af1Smrgelse
561ad47b356Smrg  as_ln_s='cp -pR'
56233c89af1Smrgfi
56316d8e44fSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56416d8e44fSmrgrmdir conf$$.dir 2>/dev/null
56533c89af1Smrg
56616d8e44fSmrgif mkdir -p . 2>/dev/null; then
56716d8e44fSmrg  as_mkdir_p='mkdir -p "$as_dir"'
56816d8e44fSmrgelse
56916d8e44fSmrg  test -d ./-p && rmdir ./-p
57016d8e44fSmrg  as_mkdir_p=false
57133c89af1Smrgfi
57233c89af1Smrg
573ad47b356Smrgas_test_x='test -x'
574ad47b356Smrgas_executable_p=as_fn_executable_p
57533c89af1Smrg
57616d8e44fSmrg# Sed expression to map a string onto a valid CPP name.
57738d718bdSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
57838d718bdSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
57933c89af1Smrg
58016d8e44fSmrg# Sed expression to map a string onto a valid variable name.
58138d718bdSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
58238d718bdSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
58333c89af1Smrg
58433c89af1Smrg
58516d8e44fSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
58616d8e44fSmrgexec 6>&1
58733c89af1Smrg
58833c89af1Smrg# Name of the host.
58916d8e44fSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59033c89af1Smrg# so uname gets run too.
59133c89af1Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59233c89af1Smrg
59333c89af1Smrg#
59433c89af1Smrg# Initializations.
59533c89af1Smrg#
59633c89af1Smrgac_default_prefix=/usr/local
59733c89af1Smrgac_clean_files=
59833c89af1Smrgac_config_libobj_dir=.
59933c89af1SmrgLIBOBJS=
60033c89af1Smrgcross_compiling=no
60133c89af1Smrgsubdirs=
60233c89af1SmrgMFLAGS=
60333c89af1SmrgMAKEFLAGS=
60433c89af1Smrg
60533c89af1Smrg# Identity of this package.
60633c89af1SmrgPACKAGE_NAME='editres'
60733c89af1SmrgPACKAGE_TARNAME='editres'
60838d718bdSmrgPACKAGE_VERSION='1.0.9'
60938d718bdSmrgPACKAGE_STRING='editres 1.0.9'
61038d718bdSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/-/issues'
61116d8e44fSmrgPACKAGE_URL=''
61233c89af1Smrg
613ad47b356Smrgac_unique_file="Makefile.am"
614278eca22Smrg# Factoring default headers for most tests.
615278eca22Smrgac_includes_default="\
616352bf44eSmrg#include <stddef.h>
617352bf44eSmrg#ifdef HAVE_STDIO_H
618352bf44eSmrg# include <stdio.h>
619278eca22Smrg#endif
620352bf44eSmrg#ifdef HAVE_STDLIB_H
621278eca22Smrg# include <stdlib.h>
622278eca22Smrg#endif
623278eca22Smrg#ifdef HAVE_STRING_H
624278eca22Smrg# include <string.h>
625278eca22Smrg#endif
626278eca22Smrg#ifdef HAVE_INTTYPES_H
627278eca22Smrg# include <inttypes.h>
628278eca22Smrg#endif
629278eca22Smrg#ifdef HAVE_STDINT_H
630278eca22Smrg# include <stdint.h>
631278eca22Smrg#endif
632352bf44eSmrg#ifdef HAVE_STRINGS_H
633352bf44eSmrg# include <strings.h>
634352bf44eSmrg#endif
635352bf44eSmrg#ifdef HAVE_SYS_TYPES_H
636352bf44eSmrg# include <sys/types.h>
637352bf44eSmrg#endif
638352bf44eSmrg#ifdef HAVE_SYS_STAT_H
639352bf44eSmrg# include <sys/stat.h>
640352bf44eSmrg#endif
641278eca22Smrg#ifdef HAVE_UNISTD_H
642278eca22Smrg# include <unistd.h>
643278eca22Smrg#endif"
644278eca22Smrg
645352bf44eSmrgac_header_c_list=
646278eca22Smrgac_subst_vars='am__EXEEXT_FALSE
647278eca22Smrgam__EXEEXT_TRUE
648278eca22SmrgLTLIBOBJS
649278eca22SmrgLIBOBJS
65033c89af1Smrgappdefaultdir
651278eca22SmrgAPPDEFS_LIBS
652278eca22SmrgAPPDEFS_CFLAGS
653278eca22SmrgEDITRES_LIBS
654278eca22SmrgEDITRES_CFLAGS
65516d8e44fSmrgMAN_SUBSTS
65616d8e44fSmrgXORG_MAN_PAGE
65733c89af1SmrgADMIN_MAN_DIR
658278eca22SmrgDRIVER_MAN_DIR
659278eca22SmrgMISC_MAN_DIR
660278eca22SmrgFILE_MAN_DIR
661278eca22SmrgLIB_MAN_DIR
662278eca22SmrgAPP_MAN_DIR
663278eca22SmrgADMIN_MAN_SUFFIX
664278eca22SmrgDRIVER_MAN_SUFFIX
665278eca22SmrgMISC_MAN_SUFFIX
666278eca22SmrgFILE_MAN_SUFFIX
667278eca22SmrgLIB_MAN_SUFFIX
668278eca22SmrgAPP_MAN_SUFFIX
66916d8e44fSmrgSED
670278eca22Smrghost_os
671278eca22Smrghost_vendor
672278eca22Smrghost_cpu
673278eca22Smrghost
674278eca22Smrgbuild_os
675278eca22Smrgbuild_vendor
676278eca22Smrgbuild_cpu
677278eca22Smrgbuild
67816d8e44fSmrgINSTALL_CMD
679ad47b356SmrgPKG_CONFIG_LIBDIR
680ad47b356SmrgPKG_CONFIG_PATH
68116d8e44fSmrgPKG_CONFIG
682278eca22SmrgCHANGELOG_CMD
683988795beSmrgSTRICT_CFLAGS
684278eca22SmrgCWARNFLAGS
685988795beSmrgBASE_CFLAGS
686278eca22Smrgam__fastdepCC_FALSE
687278eca22Smrgam__fastdepCC_TRUE
688278eca22SmrgCCDEPMODE
689988795beSmrgam__nodep
690278eca22SmrgAMDEPBACKSLASH
691278eca22SmrgAMDEP_FALSE
692278eca22SmrgAMDEP_TRUE
693278eca22Smrgam__include
694278eca22SmrgDEPDIR
695278eca22SmrgOBJEXT
696278eca22SmrgEXEEXT
697278eca22Smrgac_ct_CC
698278eca22SmrgCPPFLAGS
699278eca22SmrgLDFLAGS
700278eca22SmrgCFLAGS
701278eca22SmrgCC
702ad47b356SmrgAM_BACKSLASH
703ad47b356SmrgAM_DEFAULT_VERBOSITY
704ad47b356SmrgAM_DEFAULT_V
705ad47b356SmrgAM_V
706352bf44eSmrgCSCOPE
707352bf44eSmrgETAGS
708352bf44eSmrgCTAGS
709278eca22Smrgam__untar
710278eca22Smrgam__tar
711278eca22SmrgAMTAR
712278eca22Smrgam__leading_dot
713278eca22SmrgSET_MAKE
714278eca22SmrgAWK
715278eca22Smrgmkdir_p
716278eca22SmrgMKDIR_P
717278eca22SmrgINSTALL_STRIP_PROGRAM
718278eca22SmrgSTRIP
719278eca22Smrginstall_sh
720278eca22SmrgMAKEINFO
721278eca22SmrgAUTOHEADER
722278eca22SmrgAUTOMAKE
723278eca22SmrgAUTOCONF
724278eca22SmrgACLOCAL
725278eca22SmrgVERSION
726278eca22SmrgPACKAGE
727278eca22SmrgCYGPATH_W
728278eca22Smrgam__isrc
729278eca22SmrgINSTALL_DATA
730278eca22SmrgINSTALL_SCRIPT
731278eca22SmrgINSTALL_PROGRAM
732278eca22Smrgtarget_alias
733278eca22Smrghost_alias
734278eca22Smrgbuild_alias
735278eca22SmrgLIBS
736278eca22SmrgECHO_T
737278eca22SmrgECHO_N
738278eca22SmrgECHO_C
739278eca22SmrgDEFS
740278eca22Smrgmandir
741278eca22Smrglocaledir
742278eca22Smrglibdir
743278eca22Smrgpsdir
744278eca22Smrgpdfdir
745278eca22Smrgdvidir
746278eca22Smrghtmldir
747278eca22Smrginfodir
748278eca22Smrgdocdir
749278eca22Smrgoldincludedir
750278eca22Smrgincludedir
751352bf44eSmrgrunstatedir
752278eca22Smrglocalstatedir
753278eca22Smrgsharedstatedir
754278eca22Smrgsysconfdir
755278eca22Smrgdatadir
756278eca22Smrgdatarootdir
757278eca22Smrglibexecdir
758278eca22Smrgsbindir
759278eca22Smrgbindir
760278eca22Smrgprogram_transform_name
761278eca22Smrgprefix
762278eca22Smrgexec_prefix
76316d8e44fSmrgPACKAGE_URL
764278eca22SmrgPACKAGE_BUGREPORT
765278eca22SmrgPACKAGE_STRING
766278eca22SmrgPACKAGE_VERSION
767278eca22SmrgPACKAGE_TARNAME
768278eca22SmrgPACKAGE_NAME
769278eca22SmrgPATH_SEPARATOR
770352bf44eSmrgSHELL
771352bf44eSmrgam__quote'
77233c89af1Smrgac_subst_files=''
773278eca22Smrgac_user_opts='
774278eca22Smrgenable_option_checking
775ad47b356Smrgenable_silent_rules
776278eca22Smrgenable_dependency_tracking
777988795beSmrgenable_selective_werror
778278eca22Smrgenable_strict_compilation
77938d718bdSmrgwith_xkb
780278eca22Smrgwith_appdefaultdir
781278eca22Smrg'
78233c89af1Smrg      ac_precious_vars='build_alias
78333c89af1Smrghost_alias
78433c89af1Smrgtarget_alias
78533c89af1SmrgCC
78633c89af1SmrgCFLAGS
78733c89af1SmrgLDFLAGS
788278eca22SmrgLIBS
78933c89af1SmrgCPPFLAGS
79033c89af1SmrgPKG_CONFIG
791ad47b356SmrgPKG_CONFIG_PATH
792ad47b356SmrgPKG_CONFIG_LIBDIR
79333c89af1SmrgEDITRES_CFLAGS
79433c89af1SmrgEDITRES_LIBS
79533c89af1SmrgAPPDEFS_CFLAGS
79633c89af1SmrgAPPDEFS_LIBS'
79733c89af1Smrg
79833c89af1Smrg
79933c89af1Smrg# Initialize some variables set by options.
80033c89af1Smrgac_init_help=
80133c89af1Smrgac_init_version=false
802278eca22Smrgac_unrecognized_opts=
803278eca22Smrgac_unrecognized_sep=
80433c89af1Smrg# The variables have the same names as the options, with
80533c89af1Smrg# dashes changed to underlines.
80633c89af1Smrgcache_file=/dev/null
80733c89af1Smrgexec_prefix=NONE
80833c89af1Smrgno_create=
80933c89af1Smrgno_recursion=
81033c89af1Smrgprefix=NONE
81133c89af1Smrgprogram_prefix=NONE
81233c89af1Smrgprogram_suffix=NONE
81333c89af1Smrgprogram_transform_name=s,x,x,
81433c89af1Smrgsilent=
81533c89af1Smrgsite=
81633c89af1Smrgsrcdir=
81733c89af1Smrgverbose=
81833c89af1Smrgx_includes=NONE
81933c89af1Smrgx_libraries=NONE
82033c89af1Smrg
82133c89af1Smrg# Installation directory options.
82233c89af1Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
82333c89af1Smrg# and all the variables that are supposed to be based on exec_prefix
82433c89af1Smrg# by default will actually change.
82533c89af1Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
82633c89af1Smrg# (The list follows the same order as the GNU Coding Standards.)
82733c89af1Smrgbindir='${exec_prefix}/bin'
82833c89af1Smrgsbindir='${exec_prefix}/sbin'
82933c89af1Smrglibexecdir='${exec_prefix}/libexec'
83033c89af1Smrgdatarootdir='${prefix}/share'
83133c89af1Smrgdatadir='${datarootdir}'
83233c89af1Smrgsysconfdir='${prefix}/etc'
83333c89af1Smrgsharedstatedir='${prefix}/com'
83433c89af1Smrglocalstatedir='${prefix}/var'
835352bf44eSmrgrunstatedir='${localstatedir}/run'
83633c89af1Smrgincludedir='${prefix}/include'
83733c89af1Smrgoldincludedir='/usr/include'
83833c89af1Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
83933c89af1Smrginfodir='${datarootdir}/info'
84033c89af1Smrghtmldir='${docdir}'
84133c89af1Smrgdvidir='${docdir}'
84233c89af1Smrgpdfdir='${docdir}'
84333c89af1Smrgpsdir='${docdir}'
84433c89af1Smrglibdir='${exec_prefix}/lib'
84533c89af1Smrglocaledir='${datarootdir}/locale'
84633c89af1Smrgmandir='${datarootdir}/man'
84733c89af1Smrg
84833c89af1Smrgac_prev=
84933c89af1Smrgac_dashdash=
85033c89af1Smrgfor ac_option
85133c89af1Smrgdo
85233c89af1Smrg  # If the previous option needs an argument, assign it.
85333c89af1Smrg  if test -n "$ac_prev"; then
85433c89af1Smrg    eval $ac_prev=\$ac_option
85533c89af1Smrg    ac_prev=
85633c89af1Smrg    continue
85733c89af1Smrg  fi
85833c89af1Smrg
85933c89af1Smrg  case $ac_option in
86016d8e44fSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
86116d8e44fSmrg  *=)   ac_optarg= ;;
86216d8e44fSmrg  *)    ac_optarg=yes ;;
86333c89af1Smrg  esac
86433c89af1Smrg
86533c89af1Smrg  case $ac_dashdash$ac_option in
86633c89af1Smrg  --)
86733c89af1Smrg    ac_dashdash=yes ;;
86833c89af1Smrg
86933c89af1Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87033c89af1Smrg    ac_prev=bindir ;;
87133c89af1Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87233c89af1Smrg    bindir=$ac_optarg ;;
87333c89af1Smrg
87433c89af1Smrg  -build | --build | --buil | --bui | --bu)
87533c89af1Smrg    ac_prev=build_alias ;;
87633c89af1Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87733c89af1Smrg    build_alias=$ac_optarg ;;
87833c89af1Smrg
87933c89af1Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
88033c89af1Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88133c89af1Smrg    ac_prev=cache_file ;;
88233c89af1Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88333c89af1Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88433c89af1Smrg    cache_file=$ac_optarg ;;
88533c89af1Smrg
88633c89af1Smrg  --config-cache | -C)
88733c89af1Smrg    cache_file=config.cache ;;
88833c89af1Smrg
88933c89af1Smrg  -datadir | --datadir | --datadi | --datad)
89033c89af1Smrg    ac_prev=datadir ;;
89133c89af1Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
89233c89af1Smrg    datadir=$ac_optarg ;;
89333c89af1Smrg
89433c89af1Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
89533c89af1Smrg  | --dataroo | --dataro | --datar)
89633c89af1Smrg    ac_prev=datarootdir ;;
89733c89af1Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
89833c89af1Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
89933c89af1Smrg    datarootdir=$ac_optarg ;;
90033c89af1Smrg
90133c89af1Smrg  -disable-* | --disable-*)
902278eca22Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
90333c89af1Smrg    # Reject names that are not valid shell variable names.
904278eca22Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
90538d718bdSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
906278eca22Smrg    ac_useropt_orig=$ac_useropt
907352bf44eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908278eca22Smrg    case $ac_user_opts in
909278eca22Smrg      *"
910278eca22Smrg"enable_$ac_useropt"
911278eca22Smrg"*) ;;
912278eca22Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913278eca22Smrg	 ac_unrecognized_sep=', ';;
914278eca22Smrg    esac
915278eca22Smrg    eval enable_$ac_useropt=no ;;
91633c89af1Smrg
91733c89af1Smrg  -docdir | --docdir | --docdi | --doc | --do)
91833c89af1Smrg    ac_prev=docdir ;;
91933c89af1Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
92033c89af1Smrg    docdir=$ac_optarg ;;
92133c89af1Smrg
92233c89af1Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
92333c89af1Smrg    ac_prev=dvidir ;;
92433c89af1Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
92533c89af1Smrg    dvidir=$ac_optarg ;;
92633c89af1Smrg
92733c89af1Smrg  -enable-* | --enable-*)
928278eca22Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92933c89af1Smrg    # Reject names that are not valid shell variable names.
930278eca22Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
93138d718bdSmrg      as_fn_error $? "invalid feature name: '$ac_useropt'"
932278eca22Smrg    ac_useropt_orig=$ac_useropt
933352bf44eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934278eca22Smrg    case $ac_user_opts in
935278eca22Smrg      *"
936278eca22Smrg"enable_$ac_useropt"
937278eca22Smrg"*) ;;
938278eca22Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939278eca22Smrg	 ac_unrecognized_sep=', ';;
940278eca22Smrg    esac
941278eca22Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
94233c89af1Smrg
94333c89af1Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
94433c89af1Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
94533c89af1Smrg  | --exec | --exe | --ex)
94633c89af1Smrg    ac_prev=exec_prefix ;;
94733c89af1Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94833c89af1Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94933c89af1Smrg  | --exec=* | --exe=* | --ex=*)
95033c89af1Smrg    exec_prefix=$ac_optarg ;;
95133c89af1Smrg
95233c89af1Smrg  -gas | --gas | --ga | --g)
95333c89af1Smrg    # Obsolete; use --with-gas.
95433c89af1Smrg    with_gas=yes ;;
95533c89af1Smrg
95633c89af1Smrg  -help | --help | --hel | --he | -h)
95733c89af1Smrg    ac_init_help=long ;;
95833c89af1Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95933c89af1Smrg    ac_init_help=recursive ;;
96033c89af1Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
96133c89af1Smrg    ac_init_help=short ;;
96233c89af1Smrg
96333c89af1Smrg  -host | --host | --hos | --ho)
96433c89af1Smrg    ac_prev=host_alias ;;
96533c89af1Smrg  -host=* | --host=* | --hos=* | --ho=*)
96633c89af1Smrg    host_alias=$ac_optarg ;;
96733c89af1Smrg
96833c89af1Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
96933c89af1Smrg    ac_prev=htmldir ;;
97033c89af1Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
97133c89af1Smrg  | --ht=*)
97233c89af1Smrg    htmldir=$ac_optarg ;;
97333c89af1Smrg
97433c89af1Smrg  -includedir | --includedir | --includedi | --included | --include \
97533c89af1Smrg  | --includ | --inclu | --incl | --inc)
97633c89af1Smrg    ac_prev=includedir ;;
97733c89af1Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97833c89af1Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97933c89af1Smrg    includedir=$ac_optarg ;;
98033c89af1Smrg
98133c89af1Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
98233c89af1Smrg    ac_prev=infodir ;;
98333c89af1Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
98433c89af1Smrg    infodir=$ac_optarg ;;
98533c89af1Smrg
98633c89af1Smrg  -libdir | --libdir | --libdi | --libd)
98733c89af1Smrg    ac_prev=libdir ;;
98833c89af1Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98933c89af1Smrg    libdir=$ac_optarg ;;
99033c89af1Smrg
99133c89af1Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
99233c89af1Smrg  | --libexe | --libex | --libe)
99333c89af1Smrg    ac_prev=libexecdir ;;
99433c89af1Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
99533c89af1Smrg  | --libexe=* | --libex=* | --libe=*)
99633c89af1Smrg    libexecdir=$ac_optarg ;;
99733c89af1Smrg
99833c89af1Smrg  -localedir | --localedir | --localedi | --localed | --locale)
99933c89af1Smrg    ac_prev=localedir ;;
100033c89af1Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
100133c89af1Smrg    localedir=$ac_optarg ;;
100233c89af1Smrg
100333c89af1Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
100433c89af1Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
100533c89af1Smrg    ac_prev=localstatedir ;;
100633c89af1Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
100733c89af1Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100833c89af1Smrg    localstatedir=$ac_optarg ;;
100933c89af1Smrg
101033c89af1Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
101133c89af1Smrg    ac_prev=mandir ;;
101233c89af1Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
101333c89af1Smrg    mandir=$ac_optarg ;;
101433c89af1Smrg
101533c89af1Smrg  -nfp | --nfp | --nf)
101633c89af1Smrg    # Obsolete; use --without-fp.
101733c89af1Smrg    with_fp=no ;;
101833c89af1Smrg
101933c89af1Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
102033c89af1Smrg  | --no-cr | --no-c | -n)
102133c89af1Smrg    no_create=yes ;;
102233c89af1Smrg
102333c89af1Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
102433c89af1Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
102533c89af1Smrg    no_recursion=yes ;;
102633c89af1Smrg
102733c89af1Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102833c89af1Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102933c89af1Smrg  | --oldin | --oldi | --old | --ol | --o)
103033c89af1Smrg    ac_prev=oldincludedir ;;
103133c89af1Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
103233c89af1Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
103333c89af1Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
103433c89af1Smrg    oldincludedir=$ac_optarg ;;
103533c89af1Smrg
103633c89af1Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103733c89af1Smrg    ac_prev=prefix ;;
103833c89af1Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103933c89af1Smrg    prefix=$ac_optarg ;;
104033c89af1Smrg
104133c89af1Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
104233c89af1Smrg  | --program-pre | --program-pr | --program-p)
104333c89af1Smrg    ac_prev=program_prefix ;;
104433c89af1Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
104533c89af1Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104633c89af1Smrg    program_prefix=$ac_optarg ;;
104733c89af1Smrg
104833c89af1Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104933c89af1Smrg  | --program-suf | --program-su | --program-s)
105033c89af1Smrg    ac_prev=program_suffix ;;
105133c89af1Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
105233c89af1Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
105333c89af1Smrg    program_suffix=$ac_optarg ;;
105433c89af1Smrg
105533c89af1Smrg  -program-transform-name | --program-transform-name \
105633c89af1Smrg  | --program-transform-nam | --program-transform-na \
105733c89af1Smrg  | --program-transform-n | --program-transform- \
105833c89af1Smrg  | --program-transform | --program-transfor \
105933c89af1Smrg  | --program-transfo | --program-transf \
106033c89af1Smrg  | --program-trans | --program-tran \
106133c89af1Smrg  | --progr-tra | --program-tr | --program-t)
106233c89af1Smrg    ac_prev=program_transform_name ;;
106333c89af1Smrg  -program-transform-name=* | --program-transform-name=* \
106433c89af1Smrg  | --program-transform-nam=* | --program-transform-na=* \
106533c89af1Smrg  | --program-transform-n=* | --program-transform-=* \
106633c89af1Smrg  | --program-transform=* | --program-transfor=* \
106733c89af1Smrg  | --program-transfo=* | --program-transf=* \
106833c89af1Smrg  | --program-trans=* | --program-tran=* \
106933c89af1Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
107033c89af1Smrg    program_transform_name=$ac_optarg ;;
107133c89af1Smrg
107233c89af1Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
107333c89af1Smrg    ac_prev=pdfdir ;;
107433c89af1Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
107533c89af1Smrg    pdfdir=$ac_optarg ;;
107633c89af1Smrg
107733c89af1Smrg  -psdir | --psdir | --psdi | --psd | --ps)
107833c89af1Smrg    ac_prev=psdir ;;
107933c89af1Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
108033c89af1Smrg    psdir=$ac_optarg ;;
108133c89af1Smrg
108233c89af1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
108333c89af1Smrg  | -silent | --silent | --silen | --sile | --sil)
108433c89af1Smrg    silent=yes ;;
108533c89af1Smrg
1086352bf44eSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087352bf44eSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1088352bf44eSmrg  | --run | --ru | --r)
1089352bf44eSmrg    ac_prev=runstatedir ;;
1090352bf44eSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091352bf44eSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092352bf44eSmrg  | --run=* | --ru=* | --r=*)
1093352bf44eSmrg    runstatedir=$ac_optarg ;;
1094352bf44eSmrg
109533c89af1Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
109633c89af1Smrg    ac_prev=sbindir ;;
109733c89af1Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
109833c89af1Smrg  | --sbi=* | --sb=*)
109933c89af1Smrg    sbindir=$ac_optarg ;;
110033c89af1Smrg
110133c89af1Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
110233c89af1Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
110333c89af1Smrg  | --sharedst | --shareds | --shared | --share | --shar \
110433c89af1Smrg  | --sha | --sh)
110533c89af1Smrg    ac_prev=sharedstatedir ;;
110633c89af1Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
110733c89af1Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
110833c89af1Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
110933c89af1Smrg  | --sha=* | --sh=*)
111033c89af1Smrg    sharedstatedir=$ac_optarg ;;
111133c89af1Smrg
111233c89af1Smrg  -site | --site | --sit)
111333c89af1Smrg    ac_prev=site ;;
111433c89af1Smrg  -site=* | --site=* | --sit=*)
111533c89af1Smrg    site=$ac_optarg ;;
111633c89af1Smrg
111733c89af1Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
111833c89af1Smrg    ac_prev=srcdir ;;
111933c89af1Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
112033c89af1Smrg    srcdir=$ac_optarg ;;
112133c89af1Smrg
112233c89af1Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
112333c89af1Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
112433c89af1Smrg    ac_prev=sysconfdir ;;
112533c89af1Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
112633c89af1Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
112733c89af1Smrg    sysconfdir=$ac_optarg ;;
112833c89af1Smrg
112933c89af1Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
113033c89af1Smrg    ac_prev=target_alias ;;
113133c89af1Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
113233c89af1Smrg    target_alias=$ac_optarg ;;
113333c89af1Smrg
113433c89af1Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
113533c89af1Smrg    verbose=yes ;;
113633c89af1Smrg
113733c89af1Smrg  -version | --version | --versio | --versi | --vers | -V)
113833c89af1Smrg    ac_init_version=: ;;
113933c89af1Smrg
114033c89af1Smrg  -with-* | --with-*)
1141278eca22Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
114233c89af1Smrg    # Reject names that are not valid shell variable names.
1143278eca22Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
114438d718bdSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1145278eca22Smrg    ac_useropt_orig=$ac_useropt
1146352bf44eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147278eca22Smrg    case $ac_user_opts in
1148278eca22Smrg      *"
1149278eca22Smrg"with_$ac_useropt"
1150278eca22Smrg"*) ;;
1151278eca22Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152278eca22Smrg	 ac_unrecognized_sep=', ';;
1153278eca22Smrg    esac
1154278eca22Smrg    eval with_$ac_useropt=\$ac_optarg ;;
115533c89af1Smrg
115633c89af1Smrg  -without-* | --without-*)
1157278eca22Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
115833c89af1Smrg    # Reject names that are not valid shell variable names.
1159278eca22Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
116038d718bdSmrg      as_fn_error $? "invalid package name: '$ac_useropt'"
1161278eca22Smrg    ac_useropt_orig=$ac_useropt
1162352bf44eSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163278eca22Smrg    case $ac_user_opts in
1164278eca22Smrg      *"
1165278eca22Smrg"with_$ac_useropt"
1166278eca22Smrg"*) ;;
1167278eca22Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168278eca22Smrg	 ac_unrecognized_sep=', ';;
1169278eca22Smrg    esac
1170278eca22Smrg    eval with_$ac_useropt=no ;;
117133c89af1Smrg
117233c89af1Smrg  --x)
117333c89af1Smrg    # Obsolete; use --with-x.
117433c89af1Smrg    with_x=yes ;;
117533c89af1Smrg
117633c89af1Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
117733c89af1Smrg  | --x-incl | --x-inc | --x-in | --x-i)
117833c89af1Smrg    ac_prev=x_includes ;;
117933c89af1Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
118033c89af1Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
118133c89af1Smrg    x_includes=$ac_optarg ;;
118233c89af1Smrg
118333c89af1Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
118433c89af1Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
118533c89af1Smrg    ac_prev=x_libraries ;;
118633c89af1Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
118733c89af1Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
118833c89af1Smrg    x_libraries=$ac_optarg ;;
118933c89af1Smrg
119038d718bdSmrg  -*) as_fn_error $? "unrecognized option: '$ac_option'
119138d718bdSmrgTry '$0 --help' for more information"
119233c89af1Smrg    ;;
119333c89af1Smrg
119433c89af1Smrg  *=*)
119533c89af1Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
119633c89af1Smrg    # Reject names that are not valid shell variable names.
119716d8e44fSmrg    case $ac_envvar in #(
119816d8e44fSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
119938d718bdSmrg      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
120016d8e44fSmrg    esac
120133c89af1Smrg    eval $ac_envvar=\$ac_optarg
120233c89af1Smrg    export $ac_envvar ;;
120333c89af1Smrg
120433c89af1Smrg  *)
120533c89af1Smrg    # FIXME: should be removed in autoconf 3.0.
1206352bf44eSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
120733c89af1Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208352bf44eSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
120916d8e44fSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
121033c89af1Smrg    ;;
121133c89af1Smrg
121233c89af1Smrg  esac
121333c89af1Smrgdone
121433c89af1Smrg
121533c89af1Smrgif test -n "$ac_prev"; then
121633c89af1Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
121716d8e44fSmrg  as_fn_error $? "missing argument to $ac_option"
121833c89af1Smrgfi
121933c89af1Smrg
1220278eca22Smrgif test -n "$ac_unrecognized_opts"; then
1221278eca22Smrg  case $enable_option_checking in
1222278eca22Smrg    no) ;;
122316d8e44fSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224352bf44eSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225278eca22Smrg  esac
1226278eca22Smrgfi
1227278eca22Smrg
1228278eca22Smrg# Check all directory arguments for consistency.
1229278eca22Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230278eca22Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
123133c89af1Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232352bf44eSmrg		libdir localedir mandir runstatedir
123333c89af1Smrgdo
123433c89af1Smrg  eval ac_val=\$$ac_var
1235278eca22Smrg  # Remove trailing slashes.
1236278eca22Smrg  case $ac_val in
1237278eca22Smrg    */ )
1238278eca22Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239278eca22Smrg      eval $ac_var=\$ac_val;;
1240278eca22Smrg  esac
1241278eca22Smrg  # Be sure to have absolute directory names.
124233c89af1Smrg  case $ac_val in
124333c89af1Smrg    [\\/$]* | ?:[\\/]* )  continue;;
124433c89af1Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
124533c89af1Smrg  esac
124616d8e44fSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
124733c89af1Smrgdone
124833c89af1Smrg
124938d718bdSmrg# There might be people who depend on the old broken behavior: '$host'
125033c89af1Smrg# used to hold the argument of --host etc.
125133c89af1Smrg# FIXME: To remove some day.
125233c89af1Smrgbuild=$build_alias
125333c89af1Smrghost=$host_alias
125433c89af1Smrgtarget=$target_alias
125533c89af1Smrg
125633c89af1Smrg# FIXME: To remove some day.
125733c89af1Smrgif test "x$host_alias" != x; then
125833c89af1Smrg  if test "x$build_alias" = x; then
125933c89af1Smrg    cross_compiling=maybe
126033c89af1Smrg  elif test "x$build_alias" != "x$host_alias"; then
126133c89af1Smrg    cross_compiling=yes
126233c89af1Smrg  fi
126333c89af1Smrgfi
126433c89af1Smrg
126533c89af1Smrgac_tool_prefix=
126633c89af1Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
126733c89af1Smrg
126833c89af1Smrgtest "$silent" = yes && exec 6>/dev/null
126933c89af1Smrg
127033c89af1Smrg
127133c89af1Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
127233c89af1Smrgac_ls_di=`ls -di .` &&
127333c89af1Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
127416d8e44fSmrg  as_fn_error $? "working directory cannot be determined"
127533c89af1Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
127616d8e44fSmrg  as_fn_error $? "pwd does not report name of working directory"
127733c89af1Smrg
127833c89af1Smrg
127933c89af1Smrg# Find the source files, if location was not specified.
128033c89af1Smrgif test -z "$srcdir"; then
128133c89af1Smrg  ac_srcdir_defaulted=yes
128233c89af1Smrg  # Try the directory containing this script, then the parent directory.
1283278eca22Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1284278eca22Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285278eca22Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286278eca22Smrg	 X"$as_myself" : 'X\(//\)$' \| \
1287278eca22Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288352bf44eSmrgprintf "%s\n" X"$as_myself" |
128933c89af1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
129033c89af1Smrg	    s//\1/
129133c89af1Smrg	    q
129233c89af1Smrg	  }
129333c89af1Smrg	  /^X\(\/\/\)[^/].*/{
129433c89af1Smrg	    s//\1/
129533c89af1Smrg	    q
129633c89af1Smrg	  }
129733c89af1Smrg	  /^X\(\/\/\)$/{
129833c89af1Smrg	    s//\1/
129933c89af1Smrg	    q
130033c89af1Smrg	  }
130133c89af1Smrg	  /^X\(\/\).*/{
130233c89af1Smrg	    s//\1/
130333c89af1Smrg	    q
130433c89af1Smrg	  }
130533c89af1Smrg	  s/.*/./; q'`
130633c89af1Smrg  srcdir=$ac_confdir
130733c89af1Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
130833c89af1Smrg    srcdir=..
130933c89af1Smrg  fi
131033c89af1Smrgelse
131133c89af1Smrg  ac_srcdir_defaulted=no
131233c89af1Smrgfi
131333c89af1Smrgif test ! -r "$srcdir/$ac_unique_file"; then
131433c89af1Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
131516d8e44fSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
131633c89af1Smrgfi
131738d718bdSmrgac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
131833c89af1Smrgac_abs_confdir=`(
131916d8e44fSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
132033c89af1Smrg	pwd)`
132133c89af1Smrg# When building in place, set srcdir=.
132233c89af1Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
132333c89af1Smrg  srcdir=.
132433c89af1Smrgfi
132533c89af1Smrg# Remove unnecessary trailing slashes from srcdir.
132633c89af1Smrg# Double slashes in file names in object file debugging info
132733c89af1Smrg# mess up M-x gdb in Emacs.
132833c89af1Smrgcase $srcdir in
132933c89af1Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
133033c89af1Smrgesac
133133c89af1Smrgfor ac_var in $ac_precious_vars; do
133233c89af1Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
133333c89af1Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
133433c89af1Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
133533c89af1Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
133633c89af1Smrgdone
133733c89af1Smrg
133833c89af1Smrg#
133933c89af1Smrg# Report the --help message.
134033c89af1Smrg#
134133c89af1Smrgif test "$ac_init_help" = "long"; then
134233c89af1Smrg  # Omit some internal or obsolete options to make the list less imposing.
134333c89af1Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
134433c89af1Smrg  cat <<_ACEOF
134538d718bdSmrg'configure' configures editres 1.0.9 to adapt to many kinds of systems.
134633c89af1Smrg
134733c89af1SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
134833c89af1Smrg
134933c89af1SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
135033c89af1SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
135133c89af1Smrg
135233c89af1SmrgDefaults for the options are specified in brackets.
135333c89af1Smrg
135433c89af1SmrgConfiguration:
135533c89af1Smrg  -h, --help              display this help and exit
135633c89af1Smrg      --help=short        display options specific to this package
135733c89af1Smrg      --help=recursive    display the short help of all the included packages
135833c89af1Smrg  -V, --version           display version information and exit
135938d718bdSmrg  -q, --quiet, --silent   do not print 'checking ...' messages
136033c89af1Smrg      --cache-file=FILE   cache test results in FILE [disabled]
136138d718bdSmrg  -C, --config-cache      alias for '--cache-file=config.cache'
136233c89af1Smrg  -n, --no-create         do not create output files
136338d718bdSmrg      --srcdir=DIR        find the sources in DIR [configure dir or '..']
136433c89af1Smrg
136533c89af1SmrgInstallation directories:
136633c89af1Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1367278eca22Smrg                          [$ac_default_prefix]
136833c89af1Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369278eca22Smrg                          [PREFIX]
137033c89af1Smrg
137138d718bdSmrgBy default, 'make install' will install all the files in
137238d718bdSmrg'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
137338d718bdSmrgan installation prefix other than '$ac_default_prefix' using '--prefix',
137438d718bdSmrgfor instance '--prefix=\$HOME'.
137533c89af1Smrg
137633c89af1SmrgFor better control, use the options below.
137733c89af1Smrg
137833c89af1SmrgFine tuning of the installation directories:
1379278eca22Smrg  --bindir=DIR            user executables [EPREFIX/bin]
1380278eca22Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381278eca22Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382278eca22Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383278eca22Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384278eca22Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385352bf44eSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386278eca22Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1387278eca22Smrg  --includedir=DIR        C header files [PREFIX/include]
1388278eca22Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389278eca22Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390278eca22Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391278eca22Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392278eca22Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393278eca22Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394278eca22Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/editres]
1395278eca22Smrg  --htmldir=DIR           html documentation [DOCDIR]
1396278eca22Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
1397278eca22Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1398278eca22Smrg  --psdir=DIR             ps documentation [DOCDIR]
139933c89af1Smrg_ACEOF
140033c89af1Smrg
140133c89af1Smrg  cat <<\_ACEOF
140233c89af1Smrg
140333c89af1SmrgProgram names:
140433c89af1Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
140533c89af1Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
140633c89af1Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
140733c89af1Smrg
140833c89af1SmrgSystem types:
140933c89af1Smrg  --build=BUILD     configure for building on BUILD [guessed]
141033c89af1Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
141133c89af1Smrg_ACEOF
141233c89af1Smrgfi
141333c89af1Smrg
141433c89af1Smrgif test -n "$ac_init_help"; then
141533c89af1Smrg  case $ac_init_help in
141638d718bdSmrg     short | recursive ) echo "Configuration of editres 1.0.9:";;
141733c89af1Smrg   esac
141833c89af1Smrg  cat <<\_ACEOF
141933c89af1Smrg
142033c89af1SmrgOptional Features:
1421278eca22Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
142233c89af1Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
142333c89af1Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424ad47b356Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425ad47b356Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1426ad47b356Smrg  --enable-dependency-tracking
1427ad47b356Smrg                          do not reject slow dependency extractors
1428ad47b356Smrg  --disable-dependency-tracking
1429ad47b356Smrg                          speeds up one-time build
1430988795beSmrg  --disable-selective-werror
1431988795beSmrg                          Turn off selective compiler errors. (default:
1432988795beSmrg                          enabled)
1433278eca22Smrg  --enable-strict-compilation
1434278eca22Smrg                          Enable all warnings from compiler and make them
1435278eca22Smrg                          errors (default: disabled)
143633c89af1Smrg
143733c89af1SmrgOptional Packages:
143833c89af1Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
143933c89af1Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
144038d718bdSmrg  --without-xkb           Disable use of XKB to sound bells (Default is
144138d718bdSmrg                          with-xkb)
1442278eca22Smrg  --with-appdefaultdir=<pathname>
1443278eca22Smrg                          specify directory for app-defaults files (default is
1444278eca22Smrg                          autodetected)
144533c89af1Smrg
144633c89af1SmrgSome influential environment variables:
144733c89af1Smrg  CC          C compiler command
144833c89af1Smrg  CFLAGS      C compiler flags
144933c89af1Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
145033c89af1Smrg              nonstandard directory <lib dir>
1451278eca22Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
145216d8e44fSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
145333c89af1Smrg              you have headers in a nonstandard directory <include dir>
145433c89af1Smrg  PKG_CONFIG  path to pkg-config utility
1455ad47b356Smrg  PKG_CONFIG_PATH
1456ad47b356Smrg              directories to add to pkg-config's search path
1457ad47b356Smrg  PKG_CONFIG_LIBDIR
1458ad47b356Smrg              path overriding pkg-config's built-in search path
145933c89af1Smrg  EDITRES_CFLAGS
146033c89af1Smrg              C compiler flags for EDITRES, overriding pkg-config
146133c89af1Smrg  EDITRES_LIBS
146233c89af1Smrg              linker flags for EDITRES, overriding pkg-config
146333c89af1Smrg  APPDEFS_CFLAGS
146433c89af1Smrg              C compiler flags for APPDEFS, overriding pkg-config
146533c89af1Smrg  APPDEFS_LIBS
146633c89af1Smrg              linker flags for APPDEFS, overriding pkg-config
146733c89af1Smrg
146838d718bdSmrgUse these variables to override the choices made by 'configure' or to help
146933c89af1Smrgit to find libraries and programs with nonstandard names/locations.
147033c89af1Smrg
147138d718bdSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>.
147233c89af1Smrg_ACEOF
147333c89af1Smrgac_status=$?
147433c89af1Smrgfi
147533c89af1Smrg
147633c89af1Smrgif test "$ac_init_help" = "recursive"; then
147733c89af1Smrg  # If there are subdirs, report their specific --help.
147833c89af1Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479278eca22Smrg    test -d "$ac_dir" ||
1480278eca22Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481278eca22Smrg      continue
148233c89af1Smrg    ac_builddir=.
148333c89af1Smrg
148433c89af1Smrgcase "$ac_dir" in
148533c89af1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
148633c89af1Smrg*)
1487352bf44eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
148833c89af1Smrg  # A ".." for each directory in $ac_dir_suffix.
1489352bf44eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
149033c89af1Smrg  case $ac_top_builddir_sub in
149133c89af1Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
149233c89af1Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
149333c89af1Smrg  esac ;;
149433c89af1Smrgesac
149533c89af1Smrgac_abs_top_builddir=$ac_pwd
149633c89af1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
149733c89af1Smrg# for backward compatibility:
149833c89af1Smrgac_top_builddir=$ac_top_build_prefix
149933c89af1Smrg
150033c89af1Smrgcase $srcdir in
150133c89af1Smrg  .)  # We are building in place.
150233c89af1Smrg    ac_srcdir=.
150333c89af1Smrg    ac_top_srcdir=$ac_top_builddir_sub
150433c89af1Smrg    ac_abs_top_srcdir=$ac_pwd ;;
150533c89af1Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
150633c89af1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
150733c89af1Smrg    ac_top_srcdir=$srcdir
150833c89af1Smrg    ac_abs_top_srcdir=$srcdir ;;
150933c89af1Smrg  *) # Relative name.
151033c89af1Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
151133c89af1Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
151233c89af1Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
151333c89af1Smrgesac
151433c89af1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
151533c89af1Smrg
151633c89af1Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1517352bf44eSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1518352bf44eSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
151933c89af1Smrg    if test -f "$ac_srcdir/configure.gnu"; then
152033c89af1Smrg      echo &&
152133c89af1Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
152233c89af1Smrg    elif test -f "$ac_srcdir/configure"; then
152333c89af1Smrg      echo &&
152433c89af1Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
152533c89af1Smrg    else
1526352bf44eSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
152733c89af1Smrg    fi || ac_status=$?
152833c89af1Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
152933c89af1Smrg  done
153033c89af1Smrgfi
153133c89af1Smrg
153233c89af1Smrgtest -n "$ac_init_help" && exit $ac_status
153333c89af1Smrgif $ac_init_version; then
153433c89af1Smrg  cat <<\_ACEOF
153538d718bdSmrgeditres configure 1.0.9
153638d718bdSmrggenerated by GNU Autoconf 2.72
153733c89af1Smrg
153838d718bdSmrgCopyright (C) 2023 Free Software Foundation, Inc.
153933c89af1SmrgThis configure script is free software; the Free Software Foundation
154033c89af1Smrggives unlimited permission to copy, distribute and modify it.
154133c89af1Smrg_ACEOF
154233c89af1Smrg  exit
154333c89af1Smrgfi
154433c89af1Smrg
154516d8e44fSmrg## ------------------------ ##
154616d8e44fSmrg## Autoconf initialization. ##
154716d8e44fSmrg## ------------------------ ##
154833c89af1Smrg
154916d8e44fSmrg# ac_fn_c_try_compile LINENO
155016d8e44fSmrg# --------------------------
155116d8e44fSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
155216d8e44fSmrgac_fn_c_try_compile ()
155333c89af1Smrg{
155416d8e44fSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555352bf44eSmrg  rm -f conftest.$ac_objext conftest.beam
155616d8e44fSmrg  if { { ac_try="$ac_compile"
155716d8e44fSmrgcase "(($ac_try" in
155816d8e44fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
155916d8e44fSmrg  *) ac_try_echo=$ac_try;;
156016d8e44fSmrgesac
156116d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
156316d8e44fSmrg  (eval "$ac_compile") 2>conftest.err
156416d8e44fSmrg  ac_status=$?
156516d8e44fSmrg  if test -s conftest.err; then
156616d8e44fSmrg    grep -v '^ *+' conftest.err >conftest.er1
156716d8e44fSmrg    cat conftest.er1 >&5
156816d8e44fSmrg    mv -f conftest.er1 conftest.err
156916d8e44fSmrg  fi
1570352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
157116d8e44fSmrg  test $ac_status = 0; } && {
157216d8e44fSmrg	 test -z "$ac_c_werror_flag" ||
157316d8e44fSmrg	 test ! -s conftest.err
1574352bf44eSmrg       } && test -s conftest.$ac_objext
1575352bf44eSmrgthen :
157616d8e44fSmrg  ac_retval=0
157738d718bdSmrgelse case e in #(
157838d718bdSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
157916d8e44fSmrgsed 's/^/| /' conftest.$ac_ext >&5
158033c89af1Smrg
158138d718bdSmrg	ac_retval=1 ;;
158238d718bdSmrgesac
158316d8e44fSmrgfi
158416d8e44fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
158516d8e44fSmrg  as_fn_set_status $ac_retval
158633c89af1Smrg
158716d8e44fSmrg} # ac_fn_c_try_compile
158833c89af1Smrg
1589352bf44eSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590352bf44eSmrg# ------------------------------------------------------------------
159116d8e44fSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592352bf44eSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593352bf44eSmrgac_fn_check_decl ()
159416d8e44fSmrg{
159516d8e44fSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
159616d8e44fSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1597352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598352bf44eSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1599352bf44eSmrgif eval test \${$3+y}
1600352bf44eSmrgthen :
1601352bf44eSmrg  printf %s "(cached) " >&6
160238d718bdSmrgelse case e in #(
160338d718bdSmrg  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604352bf44eSmrg  eval ac_save_FLAGS=\$$6
1605352bf44eSmrg  as_fn_append $6 " $5"
160616d8e44fSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
160716d8e44fSmrg/* end confdefs.h.  */
160816d8e44fSmrg$4
160916d8e44fSmrgint
1610352bf44eSmrgmain (void)
161116d8e44fSmrg{
161216d8e44fSmrg#ifndef $as_decl_name
161316d8e44fSmrg#ifdef __cplusplus
161416d8e44fSmrg  (void) $as_decl_use;
161516d8e44fSmrg#else
161616d8e44fSmrg  (void) $as_decl_name;
161716d8e44fSmrg#endif
161816d8e44fSmrg#endif
161916d8e44fSmrg
162016d8e44fSmrg  ;
162116d8e44fSmrg  return 0;
162216d8e44fSmrg}
162316d8e44fSmrg_ACEOF
1624352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
1625352bf44eSmrgthen :
162616d8e44fSmrg  eval "$3=yes"
162738d718bdSmrgelse case e in #(
162838d718bdSmrg  e) eval "$3=no" ;;
162938d718bdSmrgesac
163016d8e44fSmrgfi
1631352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632352bf44eSmrg  eval $6=\$ac_save_FLAGS
163338d718bdSmrg ;;
163438d718bdSmrgesac
163516d8e44fSmrgfi
1636352bf44eSmrgeval ac_res=\$$3
1637352bf44eSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638352bf44eSmrgprintf "%s\n" "$ac_res" >&6; }
163916d8e44fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
164016d8e44fSmrg
1641352bf44eSmrg} # ac_fn_check_decl
164216d8e44fSmrg
164316d8e44fSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
164416d8e44fSmrg# -------------------------------------------------------
164516d8e44fSmrg# Tests whether HEADER exists and can be compiled using the include files in
164616d8e44fSmrg# INCLUDES, setting the cache variable VAR accordingly.
164716d8e44fSmrgac_fn_c_check_header_compile ()
164816d8e44fSmrg{
164916d8e44fSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651352bf44eSmrgprintf %s "checking for $2... " >&6; }
1652352bf44eSmrgif eval test \${$3+y}
1653352bf44eSmrgthen :
1654352bf44eSmrg  printf %s "(cached) " >&6
165538d718bdSmrgelse case e in #(
165638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
165716d8e44fSmrg/* end confdefs.h.  */
165816d8e44fSmrg$4
165916d8e44fSmrg#include <$2>
166016d8e44fSmrg_ACEOF
1661352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
1662352bf44eSmrgthen :
166316d8e44fSmrg  eval "$3=yes"
166438d718bdSmrgelse case e in #(
166538d718bdSmrg  e) eval "$3=no" ;;
166638d718bdSmrgesac
166716d8e44fSmrgfi
166838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
166938d718bdSmrgesac
167016d8e44fSmrgfi
167116d8e44fSmrgeval ac_res=\$$3
1672352bf44eSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673352bf44eSmrgprintf "%s\n" "$ac_res" >&6; }
167416d8e44fSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
167516d8e44fSmrg
167616d8e44fSmrg} # ac_fn_c_check_header_compile
1677988795beSmrg
1678988795beSmrg# ac_fn_c_try_link LINENO
1679988795beSmrg# -----------------------
1680988795beSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1681988795beSmrgac_fn_c_try_link ()
1682988795beSmrg{
1683988795beSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684352bf44eSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1685988795beSmrg  if { { ac_try="$ac_link"
1686988795beSmrgcase "(($ac_try" in
1687988795beSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688988795beSmrg  *) ac_try_echo=$ac_try;;
1689988795beSmrgesac
1690988795beSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1692988795beSmrg  (eval "$ac_link") 2>conftest.err
1693988795beSmrg  ac_status=$?
1694988795beSmrg  if test -s conftest.err; then
1695988795beSmrg    grep -v '^ *+' conftest.err >conftest.er1
1696988795beSmrg    cat conftest.er1 >&5
1697988795beSmrg    mv -f conftest.er1 conftest.err
1698988795beSmrg  fi
1699352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700988795beSmrg  test $ac_status = 0; } && {
1701988795beSmrg	 test -z "$ac_c_werror_flag" ||
1702988795beSmrg	 test ! -s conftest.err
1703988795beSmrg       } && test -s conftest$ac_exeext && {
1704988795beSmrg	 test "$cross_compiling" = yes ||
1705ad47b356Smrg	 test -x conftest$ac_exeext
1706352bf44eSmrg       }
1707352bf44eSmrgthen :
1708988795beSmrg  ac_retval=0
170938d718bdSmrgelse case e in #(
171038d718bdSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
1711988795beSmrgsed 's/^/| /' conftest.$ac_ext >&5
1712988795beSmrg
171338d718bdSmrg	ac_retval=1 ;;
171438d718bdSmrgesac
1715988795beSmrgfi
1716988795beSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717988795beSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718988795beSmrg  # interfere with the next link command; also delete a directory that is
1719988795beSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1720988795beSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721988795beSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722988795beSmrg  as_fn_set_status $ac_retval
1723988795beSmrg
1724988795beSmrg} # ac_fn_c_try_link
1725352bf44eSmrgac_configure_args_raw=
1726352bf44eSmrgfor ac_arg
1727352bf44eSmrgdo
1728352bf44eSmrg  case $ac_arg in
1729352bf44eSmrg  *\'*)
1730352bf44eSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731352bf44eSmrg  esac
1732352bf44eSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1733352bf44eSmrgdone
1734352bf44eSmrg
1735352bf44eSmrgcase $ac_configure_args_raw in
1736352bf44eSmrg  *$as_nl*)
1737352bf44eSmrg    ac_safe_unquote= ;;
1738352bf44eSmrg  *)
1739352bf44eSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1740352bf44eSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1741352bf44eSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1742352bf44eSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1743352bf44eSmrgesac
1744352bf44eSmrg
174516d8e44fSmrgcat >config.log <<_ACEOF
174616d8e44fSmrgThis file contains any messages produced by compilers while
174716d8e44fSmrgrunning configure, to aid debugging if configure makes a mistake.
174816d8e44fSmrg
174938d718bdSmrgIt was created by editres $as_me 1.0.9, which was
175038d718bdSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
175116d8e44fSmrg
1752352bf44eSmrg  $ $0$ac_configure_args_raw
175316d8e44fSmrg
175416d8e44fSmrg_ACEOF
175516d8e44fSmrgexec 5>>config.log
175616d8e44fSmrg{
175716d8e44fSmrgcat <<_ASUNAME
175816d8e44fSmrg## --------- ##
175916d8e44fSmrg## Platform. ##
176016d8e44fSmrg## --------- ##
176116d8e44fSmrg
176216d8e44fSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
176316d8e44fSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
176416d8e44fSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
176516d8e44fSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
176616d8e44fSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
176716d8e44fSmrg
176816d8e44fSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
176916d8e44fSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
177016d8e44fSmrg
177116d8e44fSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
177216d8e44fSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
177316d8e44fSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
177416d8e44fSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
177516d8e44fSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
177616d8e44fSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
177716d8e44fSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
177816d8e44fSmrg
177916d8e44fSmrg_ASUNAME
178016d8e44fSmrg
178116d8e44fSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
178216d8e44fSmrgfor as_dir in $PATH
178333c89af1Smrgdo
178433c89af1Smrg  IFS=$as_save_IFS
1785352bf44eSmrg  case $as_dir in #(((
1786352bf44eSmrg    '') as_dir=./ ;;
1787352bf44eSmrg    */) ;;
1788352bf44eSmrg    *) as_dir=$as_dir/ ;;
1789352bf44eSmrg  esac
1790352bf44eSmrg    printf "%s\n" "PATH: $as_dir"
179116d8e44fSmrg  done
179233c89af1SmrgIFS=$as_save_IFS
179333c89af1Smrg
179433c89af1Smrg} >&5
179533c89af1Smrg
179633c89af1Smrgcat >&5 <<_ACEOF
179733c89af1Smrg
179833c89af1Smrg
179933c89af1Smrg## ----------- ##
180033c89af1Smrg## Core tests. ##
180133c89af1Smrg## ----------- ##
180233c89af1Smrg
180333c89af1Smrg_ACEOF
180433c89af1Smrg
180533c89af1Smrg
180633c89af1Smrg# Keep a trace of the command line.
180733c89af1Smrg# Strip out --no-create and --no-recursion so they do not pile up.
180833c89af1Smrg# Strip out --silent because we don't want to record it for future runs.
180933c89af1Smrg# Also quote any args containing shell meta-characters.
181033c89af1Smrg# Make two passes to allow for proper duplicate-argument suppression.
181133c89af1Smrgac_configure_args=
181233c89af1Smrgac_configure_args0=
181333c89af1Smrgac_configure_args1=
181433c89af1Smrgac_must_keep_next=false
181533c89af1Smrgfor ac_pass in 1 2
181633c89af1Smrgdo
181733c89af1Smrg  for ac_arg
181833c89af1Smrg  do
181933c89af1Smrg    case $ac_arg in
182033c89af1Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
182133c89af1Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
182233c89af1Smrg    | -silent | --silent | --silen | --sile | --sil)
182333c89af1Smrg      continue ;;
182433c89af1Smrg    *\'*)
1825352bf44eSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
182633c89af1Smrg    esac
182733c89af1Smrg    case $ac_pass in
182816d8e44fSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
182933c89af1Smrg    2)
183016d8e44fSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
183133c89af1Smrg      if test $ac_must_keep_next = true; then
183233c89af1Smrg	ac_must_keep_next=false # Got value, back to normal.
183333c89af1Smrg      else
183433c89af1Smrg	case $ac_arg in
183533c89af1Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
183633c89af1Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
183733c89af1Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
183833c89af1Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
183933c89af1Smrg	    case "$ac_configure_args0 " in
184033c89af1Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
184133c89af1Smrg	    esac
184233c89af1Smrg	    ;;
184333c89af1Smrg	  -* ) ac_must_keep_next=true ;;
184433c89af1Smrg	esac
184533c89af1Smrg      fi
184616d8e44fSmrg      as_fn_append ac_configure_args " '$ac_arg'"
184733c89af1Smrg      ;;
184833c89af1Smrg    esac
184933c89af1Smrg  done
185033c89af1Smrgdone
185116d8e44fSmrg{ ac_configure_args0=; unset ac_configure_args0;}
185216d8e44fSmrg{ ac_configure_args1=; unset ac_configure_args1;}
185333c89af1Smrg
185433c89af1Smrg# When interrupted or exit'd, cleanup temporary files, and complete
185533c89af1Smrg# config.log.  We remove comments because anyway the quotes in there
185633c89af1Smrg# would cause problems or look ugly.
185733c89af1Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
185833c89af1Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
185933c89af1Smrgtrap 'exit_status=$?
1860352bf44eSmrg  # Sanitize IFS.
1861352bf44eSmrg  IFS=" ""	$as_nl"
186233c89af1Smrg  # Save into config.log some information that might help in debugging.
186333c89af1Smrg  {
186433c89af1Smrg    echo
186533c89af1Smrg
1866352bf44eSmrg    printf "%s\n" "## ---------------- ##
186733c89af1Smrg## Cache variables. ##
186816d8e44fSmrg## ---------------- ##"
186933c89af1Smrg    echo
187033c89af1Smrg    # The following way of writing the cache mishandles newlines in values,
187133c89af1Smrg(
187233c89af1Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
187333c89af1Smrg    eval ac_val=\$$ac_var
187433c89af1Smrg    case $ac_val in #(
187533c89af1Smrg    *${as_nl}*)
187633c89af1Smrg      case $ac_var in #(
1877352bf44eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1878352bf44eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
187933c89af1Smrg      esac
188033c89af1Smrg      case $ac_var in #(
188133c89af1Smrg      _ | IFS | as_nl) ;; #(
1882278eca22Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
188316d8e44fSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
188433c89af1Smrg      esac ;;
188533c89af1Smrg    esac
188633c89af1Smrg  done
188733c89af1Smrg  (set) 2>&1 |
188833c89af1Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
188933c89af1Smrg    *${as_nl}ac_space=\ *)
189033c89af1Smrg      sed -n \
189133c89af1Smrg	"s/'\''/'\''\\\\'\'''\''/g;
189233c89af1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
189333c89af1Smrg      ;; #(
189433c89af1Smrg    *)
189533c89af1Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
189633c89af1Smrg      ;;
189733c89af1Smrg    esac |
189833c89af1Smrg    sort
189933c89af1Smrg)
190033c89af1Smrg    echo
190133c89af1Smrg
1902352bf44eSmrg    printf "%s\n" "## ----------------- ##
190333c89af1Smrg## Output variables. ##
190416d8e44fSmrg## ----------------- ##"
190533c89af1Smrg    echo
190633c89af1Smrg    for ac_var in $ac_subst_vars
190733c89af1Smrg    do
190833c89af1Smrg      eval ac_val=\$$ac_var
190933c89af1Smrg      case $ac_val in
1910352bf44eSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
191133c89af1Smrg      esac
1912352bf44eSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
191333c89af1Smrg    done | sort
191433c89af1Smrg    echo
191533c89af1Smrg
191633c89af1Smrg    if test -n "$ac_subst_files"; then
1917352bf44eSmrg      printf "%s\n" "## ------------------- ##
191833c89af1Smrg## File substitutions. ##
191916d8e44fSmrg## ------------------- ##"
192033c89af1Smrg      echo
192133c89af1Smrg      for ac_var in $ac_subst_files
192233c89af1Smrg      do
192333c89af1Smrg	eval ac_val=\$$ac_var
192433c89af1Smrg	case $ac_val in
1925352bf44eSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
192633c89af1Smrg	esac
1927352bf44eSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
192833c89af1Smrg      done | sort
192933c89af1Smrg      echo
193033c89af1Smrg    fi
193133c89af1Smrg
193233c89af1Smrg    if test -s confdefs.h; then
1933352bf44eSmrg      printf "%s\n" "## ----------- ##
193433c89af1Smrg## confdefs.h. ##
193516d8e44fSmrg## ----------- ##"
193633c89af1Smrg      echo
193733c89af1Smrg      cat confdefs.h
193833c89af1Smrg      echo
193933c89af1Smrg    fi
194033c89af1Smrg    test "$ac_signal" != 0 &&
1941352bf44eSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1942352bf44eSmrg    printf "%s\n" "$as_me: exit $exit_status"
194333c89af1Smrg  } >&5
194433c89af1Smrg  rm -f core *.core core.conftest.* &&
194533c89af1Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
194633c89af1Smrg    exit $exit_status
194733c89af1Smrg' 0
194833c89af1Smrgfor ac_signal in 1 2 13 15; do
194916d8e44fSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
195033c89af1Smrgdone
195133c89af1Smrgac_signal=0
195233c89af1Smrg
195333c89af1Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
195433c89af1Smrgrm -f -r conftest* confdefs.h
195533c89af1Smrg
1956352bf44eSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
195716d8e44fSmrg
195833c89af1Smrg# Predefined preprocessor variables.
195933c89af1Smrg
1960352bf44eSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
196133c89af1Smrg
1962352bf44eSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
196333c89af1Smrg
1964352bf44eSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
196533c89af1Smrg
1966352bf44eSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
196733c89af1Smrg
1968352bf44eSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
196933c89af1Smrg
1970352bf44eSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
197116d8e44fSmrg
197233c89af1Smrg
197333c89af1Smrg# Let the site file select an alternate cache file if it wants to.
1974278eca22Smrg# Prefer an explicitly selected file to automatically selected ones.
197533c89af1Smrgif test -n "$CONFIG_SITE"; then
1976352bf44eSmrg  ac_site_files="$CONFIG_SITE"
197733c89af1Smrgelif test "x$prefix" != xNONE; then
1978352bf44eSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
197933c89af1Smrgelse
1980352bf44eSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
198133c89af1Smrgfi
1982352bf44eSmrg
1983352bf44eSmrgfor ac_site_file in $ac_site_files
198433c89af1Smrgdo
1985352bf44eSmrg  case $ac_site_file in #(
1986352bf44eSmrg  */*) :
1987352bf44eSmrg     ;; #(
1988352bf44eSmrg  *) :
1989352bf44eSmrg    ac_site_file=./$ac_site_file ;;
1990352bf44eSmrgesac
1991352bf44eSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1992352bf44eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993352bf44eSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
199433c89af1Smrg    sed 's/^/| /' "$ac_site_file" >&5
199516d8e44fSmrg    . "$ac_site_file" \
199638d718bdSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
199738d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
199816d8e44fSmrgas_fn_error $? "failed to load site script $ac_site_file
199938d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
200033c89af1Smrg  fi
200133c89af1Smrgdone
200233c89af1Smrg
200333c89af1Smrgif test -r "$cache_file"; then
200416d8e44fSmrg  # Some versions of bash will fail to source /dev/null (special files
200516d8e44fSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
200616d8e44fSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007352bf44eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008352bf44eSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
200933c89af1Smrg    case $cache_file in
201033c89af1Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
201133c89af1Smrg      *)                      . "./$cache_file";;
201233c89af1Smrg    esac
201333c89af1Smrg  fi
201433c89af1Smrgelse
2015352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016352bf44eSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
201733c89af1Smrg  >$cache_file
201833c89af1Smrgfi
201933c89af1Smrg
2020352bf44eSmrg# Test code for whether the C compiler supports C89 (global declarations)
2021352bf44eSmrgac_c_conftest_c89_globals='
2022352bf44eSmrg/* Does the compiler advertise C89 conformance?
2023352bf44eSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2024352bf44eSmrg   while being otherwise adequately conformant. */
2025352bf44eSmrg#if !defined __STDC__
2026352bf44eSmrg# error "Compiler does not advertise C89 conformance"
2027352bf44eSmrg#endif
202833c89af1Smrg
2029352bf44eSmrg#include <stddef.h>
2030352bf44eSmrg#include <stdarg.h>
2031352bf44eSmrgstruct stat;
2032352bf44eSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2033352bf44eSmrgstruct buf { int x; };
2034352bf44eSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
203538d718bdSmrgstatic char *e (char **p, int i)
2036352bf44eSmrg{
2037352bf44eSmrg  return p[i];
2038352bf44eSmrg}
2039352bf44eSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2040352bf44eSmrg{
2041352bf44eSmrg  char *s;
2042352bf44eSmrg  va_list v;
2043352bf44eSmrg  va_start (v,p);
2044352bf44eSmrg  s = g (p, va_arg (v,int));
2045352bf44eSmrg  va_end (v);
2046352bf44eSmrg  return s;
2047352bf44eSmrg}
2048ad47b356Smrg
204938d718bdSmrg/* C89 style stringification. */
205038d718bdSmrg#define noexpand_stringify(a) #a
205138d718bdSmrgconst char *stringified = noexpand_stringify(arbitrary+token=sequence);
205238d718bdSmrg
205338d718bdSmrg/* C89 style token pasting.  Exercises some of the corner cases that
205438d718bdSmrg   e.g. old MSVC gets wrong, but not very hard. */
205538d718bdSmrg#define noexpand_concat(a,b) a##b
205638d718bdSmrg#define expand_concat(a,b) noexpand_concat(a,b)
205738d718bdSmrgextern int vA;
205838d718bdSmrgextern int vbee;
205938d718bdSmrg#define aye A
206038d718bdSmrg#define bee B
206138d718bdSmrgint *pvA = &expand_concat(v,aye);
206238d718bdSmrgint *pvbee = &noexpand_concat(v,bee);
206338d718bdSmrg
2064352bf44eSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2065352bf44eSmrg   function prototypes and stuff, but not \xHH hex character constants.
2066352bf44eSmrg   These do not provoke an error unfortunately, instead are silently treated
2067352bf44eSmrg   as an "x".  The following induces an error, until -std is added to get
2068352bf44eSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2069352bf44eSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2070352bf44eSmrg   that is true only with -std.  */
2071352bf44eSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2072ad47b356Smrg
2073352bf44eSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2074352bf44eSmrg   inside strings and character constants.  */
2075352bf44eSmrg#define FOO(x) '\''x'\''
2076352bf44eSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2077ad47b356Smrg
2078352bf44eSmrgint test (int i, double x);
2079352bf44eSmrgstruct s1 {int (*f) (int a);};
2080352bf44eSmrgstruct s2 {int (*f) (double a);};
2081352bf44eSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2082352bf44eSmrg               int, int);'
2083278eca22Smrg
2084352bf44eSmrg# Test code for whether the C compiler supports C89 (body of main).
2085352bf44eSmrgac_c_conftest_c89_main='
2086352bf44eSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2087352bf44eSmrg'
208833c89af1Smrg
2089352bf44eSmrg# Test code for whether the C compiler supports C99 (global declarations)
2090352bf44eSmrgac_c_conftest_c99_globals='
209138d718bdSmrg/* Does the compiler advertise C99 conformance? */
2092352bf44eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2093352bf44eSmrg# error "Compiler does not advertise C99 conformance"
2094352bf44eSmrg#endif
209533c89af1Smrg
209638d718bdSmrg// See if C++-style comments work.
209738d718bdSmrg
2098352bf44eSmrg#include <stdbool.h>
2099352bf44eSmrgextern int puts (const char *);
2100352bf44eSmrgextern int printf (const char *, ...);
2101352bf44eSmrgextern int dprintf (int, const char *, ...);
2102352bf44eSmrgextern void *malloc (size_t);
210338d718bdSmrgextern void free (void *);
210433c89af1Smrg
2105352bf44eSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2106352bf44eSmrg// dprintf is used instead of fprintf to avoid needing to declare
2107352bf44eSmrg// FILE and stderr.
2108352bf44eSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2109352bf44eSmrg#define showlist(...) puts (#__VA_ARGS__)
2110352bf44eSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2111352bf44eSmrgstatic void
2112352bf44eSmrgtest_varargs_macros (void)
2113352bf44eSmrg{
2114352bf44eSmrg  int x = 1234;
2115352bf44eSmrg  int y = 5678;
2116352bf44eSmrg  debug ("Flag");
2117352bf44eSmrg  debug ("X = %d\n", x);
2118352bf44eSmrg  showlist (The first, second, and third items.);
2119352bf44eSmrg  report (x>y, "x is %d but y is %d", x, y);
2120352bf44eSmrg}
2121352bf44eSmrg
2122352bf44eSmrg// Check long long types.
2123352bf44eSmrg#define BIG64 18446744073709551615ull
2124352bf44eSmrg#define BIG32 4294967295ul
2125352bf44eSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2126352bf44eSmrg#if !BIG_OK
2127352bf44eSmrg  #error "your preprocessor is broken"
2128352bf44eSmrg#endif
2129352bf44eSmrg#if BIG_OK
2130352bf44eSmrg#else
2131352bf44eSmrg  #error "your preprocessor is broken"
2132352bf44eSmrg#endif
2133352bf44eSmrgstatic long long int bignum = -9223372036854775807LL;
2134352bf44eSmrgstatic unsigned long long int ubignum = BIG64;
2135352bf44eSmrg
2136352bf44eSmrgstruct incomplete_array
2137352bf44eSmrg{
2138352bf44eSmrg  int datasize;
2139352bf44eSmrg  double data[];
2140352bf44eSmrg};
2141352bf44eSmrg
2142352bf44eSmrgstruct named_init {
2143352bf44eSmrg  int number;
2144352bf44eSmrg  const wchar_t *name;
2145352bf44eSmrg  double average;
2146352bf44eSmrg};
2147352bf44eSmrg
2148352bf44eSmrgtypedef const char *ccp;
2149352bf44eSmrg
2150352bf44eSmrgstatic inline int
2151352bf44eSmrgtest_restrict (ccp restrict text)
2152352bf44eSmrg{
2153352bf44eSmrg  // Iterate through items via the restricted pointer.
2154352bf44eSmrg  // Also check for declarations in for loops.
2155352bf44eSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2156352bf44eSmrg    continue;
2157352bf44eSmrg  return 0;
2158352bf44eSmrg}
2159352bf44eSmrg
2160352bf44eSmrg// Check varargs and va_copy.
2161352bf44eSmrgstatic bool
2162352bf44eSmrgtest_varargs (const char *format, ...)
2163352bf44eSmrg{
2164352bf44eSmrg  va_list args;
2165352bf44eSmrg  va_start (args, format);
2166352bf44eSmrg  va_list args_copy;
2167352bf44eSmrg  va_copy (args_copy, args);
2168352bf44eSmrg
2169352bf44eSmrg  const char *str = "";
2170352bf44eSmrg  int number = 0;
2171352bf44eSmrg  float fnumber = 0;
2172352bf44eSmrg
2173352bf44eSmrg  while (*format)
2174352bf44eSmrg    {
2175352bf44eSmrg      switch (*format++)
2176352bf44eSmrg	{
2177352bf44eSmrg	case '\''s'\'': // string
2178352bf44eSmrg	  str = va_arg (args_copy, const char *);
2179352bf44eSmrg	  break;
2180352bf44eSmrg	case '\''d'\'': // int
2181352bf44eSmrg	  number = va_arg (args_copy, int);
2182352bf44eSmrg	  break;
2183352bf44eSmrg	case '\''f'\'': // float
2184352bf44eSmrg	  fnumber = va_arg (args_copy, double);
2185352bf44eSmrg	  break;
2186352bf44eSmrg	default:
2187352bf44eSmrg	  break;
2188352bf44eSmrg	}
2189352bf44eSmrg    }
2190352bf44eSmrg  va_end (args_copy);
2191352bf44eSmrg  va_end (args);
2192352bf44eSmrg
2193352bf44eSmrg  return *str && number && fnumber;
2194352bf44eSmrg}
2195352bf44eSmrg'
2196352bf44eSmrg
2197352bf44eSmrg# Test code for whether the C compiler supports C99 (body of main).
2198352bf44eSmrgac_c_conftest_c99_main='
2199352bf44eSmrg  // Check bool.
2200352bf44eSmrg  _Bool success = false;
2201352bf44eSmrg  success |= (argc != 0);
2202352bf44eSmrg
2203352bf44eSmrg  // Check restrict.
2204352bf44eSmrg  if (test_restrict ("String literal") == 0)
2205352bf44eSmrg    success = true;
2206352bf44eSmrg  char *restrict newvar = "Another string";
2207352bf44eSmrg
2208352bf44eSmrg  // Check varargs.
2209352bf44eSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2210352bf44eSmrg  test_varargs_macros ();
2211352bf44eSmrg
2212352bf44eSmrg  // Check flexible array members.
2213352bf44eSmrg  struct incomplete_array *ia =
2214352bf44eSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2215352bf44eSmrg  ia->datasize = 10;
2216352bf44eSmrg  for (int i = 0; i < ia->datasize; ++i)
2217352bf44eSmrg    ia->data[i] = i * 1.234;
221838d718bdSmrg  // Work around memory leak warnings.
221938d718bdSmrg  free (ia);
2220352bf44eSmrg
2221352bf44eSmrg  // Check named initializers.
2222352bf44eSmrg  struct named_init ni = {
2223352bf44eSmrg    .number = 34,
2224352bf44eSmrg    .name = L"Test wide string",
2225352bf44eSmrg    .average = 543.34343,
2226352bf44eSmrg  };
2227352bf44eSmrg
2228352bf44eSmrg  ni.number = 58;
2229352bf44eSmrg
2230352bf44eSmrg  int dynamic_array[ni.number];
2231352bf44eSmrg  dynamic_array[0] = argv[0][0];
2232352bf44eSmrg  dynamic_array[ni.number - 1] = 543;
2233352bf44eSmrg
2234352bf44eSmrg  // work around unused variable warnings
2235352bf44eSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2236352bf44eSmrg	 || dynamic_array[ni.number - 1] != 543);
2237352bf44eSmrg'
2238352bf44eSmrg
2239352bf44eSmrg# Test code for whether the C compiler supports C11 (global declarations)
2240352bf44eSmrgac_c_conftest_c11_globals='
224138d718bdSmrg/* Does the compiler advertise C11 conformance? */
2242352bf44eSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2243352bf44eSmrg# error "Compiler does not advertise C11 conformance"
2244352bf44eSmrg#endif
2245352bf44eSmrg
2246352bf44eSmrg// Check _Alignas.
2247352bf44eSmrgchar _Alignas (double) aligned_as_double;
2248352bf44eSmrgchar _Alignas (0) no_special_alignment;
2249352bf44eSmrgextern char aligned_as_int;
2250352bf44eSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2251352bf44eSmrg
2252352bf44eSmrg// Check _Alignof.
2253352bf44eSmrgenum
2254352bf44eSmrg{
2255352bf44eSmrg  int_alignment = _Alignof (int),
2256352bf44eSmrg  int_array_alignment = _Alignof (int[100]),
2257352bf44eSmrg  char_alignment = _Alignof (char)
2258352bf44eSmrg};
2259352bf44eSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2260352bf44eSmrg
2261352bf44eSmrg// Check _Noreturn.
2262352bf44eSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2263352bf44eSmrg
2264352bf44eSmrg// Check _Static_assert.
2265352bf44eSmrgstruct test_static_assert
2266352bf44eSmrg{
2267352bf44eSmrg  int x;
2268352bf44eSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2269352bf44eSmrg                  "_Static_assert does not work in struct");
2270352bf44eSmrg  long int y;
2271352bf44eSmrg};
2272352bf44eSmrg
2273352bf44eSmrg// Check UTF-8 literals.
2274352bf44eSmrg#define u8 syntax error!
2275352bf44eSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2276352bf44eSmrg
2277352bf44eSmrg// Check duplicate typedefs.
2278352bf44eSmrgtypedef long *long_ptr;
2279352bf44eSmrgtypedef long int *long_ptr;
2280352bf44eSmrgtypedef long_ptr long_ptr;
2281352bf44eSmrg
2282352bf44eSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2283352bf44eSmrgstruct anonymous
2284352bf44eSmrg{
2285352bf44eSmrg  union {
2286352bf44eSmrg    struct { int i; int j; };
2287352bf44eSmrg    struct { int k; long int l; } w;
2288352bf44eSmrg  };
2289352bf44eSmrg  int m;
2290352bf44eSmrg} v1;
2291352bf44eSmrg'
2292352bf44eSmrg
2293352bf44eSmrg# Test code for whether the C compiler supports C11 (body of main).
2294352bf44eSmrgac_c_conftest_c11_main='
2295352bf44eSmrg  _Static_assert ((offsetof (struct anonymous, i)
2296352bf44eSmrg		   == offsetof (struct anonymous, w.k)),
2297352bf44eSmrg		  "Anonymous union alignment botch");
2298352bf44eSmrg  v1.i = 2;
2299352bf44eSmrg  v1.w.k = 5;
2300352bf44eSmrg  ok |= v1.i != 5;
2301352bf44eSmrg'
2302352bf44eSmrg
2303352bf44eSmrg# Test code for whether the C compiler supports C11 (complete).
2304352bf44eSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2305352bf44eSmrg${ac_c_conftest_c99_globals}
2306352bf44eSmrg${ac_c_conftest_c11_globals}
2307352bf44eSmrg
2308352bf44eSmrgint
2309352bf44eSmrgmain (int argc, char **argv)
2310352bf44eSmrg{
2311352bf44eSmrg  int ok = 0;
2312352bf44eSmrg  ${ac_c_conftest_c89_main}
2313352bf44eSmrg  ${ac_c_conftest_c99_main}
2314352bf44eSmrg  ${ac_c_conftest_c11_main}
2315352bf44eSmrg  return ok;
2316352bf44eSmrg}
2317352bf44eSmrg"
2318352bf44eSmrg
2319352bf44eSmrg# Test code for whether the C compiler supports C99 (complete).
2320352bf44eSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2321352bf44eSmrg${ac_c_conftest_c99_globals}
2322352bf44eSmrg
2323352bf44eSmrgint
2324352bf44eSmrgmain (int argc, char **argv)
2325352bf44eSmrg{
2326352bf44eSmrg  int ok = 0;
2327352bf44eSmrg  ${ac_c_conftest_c89_main}
2328352bf44eSmrg  ${ac_c_conftest_c99_main}
2329352bf44eSmrg  return ok;
2330352bf44eSmrg}
2331352bf44eSmrg"
2332352bf44eSmrg
2333352bf44eSmrg# Test code for whether the C compiler supports C89 (complete).
2334352bf44eSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2335352bf44eSmrg
2336352bf44eSmrgint
2337352bf44eSmrgmain (int argc, char **argv)
2338352bf44eSmrg{
2339352bf44eSmrg  int ok = 0;
2340352bf44eSmrg  ${ac_c_conftest_c89_main}
2341352bf44eSmrg  return ok;
2342352bf44eSmrg}
2343352bf44eSmrg"
2344352bf44eSmrg
2345352bf44eSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2346352bf44eSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2347352bf44eSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2348352bf44eSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2349352bf44eSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2350352bf44eSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2351352bf44eSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2352352bf44eSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2353352bf44eSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2354352bf44eSmrg
2355352bf44eSmrg# Auxiliary files required by this configure script.
2356352bf44eSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2357352bf44eSmrg
2358352bf44eSmrg# Locations in which to look for auxiliary files.
2359352bf44eSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2360352bf44eSmrg
2361352bf44eSmrg# Search for a directory containing all of the required auxiliary files,
2362352bf44eSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2363352bf44eSmrg# If we don't find one directory that contains all the files we need,
2364352bf44eSmrg# we report the set of missing files from the *first* directory in
2365352bf44eSmrg# $ac_aux_dir_candidates and give up.
2366352bf44eSmrgac_missing_aux_files=""
2367352bf44eSmrgac_first_candidate=:
2368352bf44eSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2369352bf44eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370352bf44eSmrgas_found=false
2371352bf44eSmrgfor as_dir in $ac_aux_dir_candidates
2372352bf44eSmrgdo
2373352bf44eSmrg  IFS=$as_save_IFS
2374352bf44eSmrg  case $as_dir in #(((
2375352bf44eSmrg    '') as_dir=./ ;;
2376352bf44eSmrg    */) ;;
2377352bf44eSmrg    *) as_dir=$as_dir/ ;;
2378352bf44eSmrg  esac
2379352bf44eSmrg  as_found=:
2380352bf44eSmrg
2381352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2382352bf44eSmrg  ac_aux_dir_found=yes
2383352bf44eSmrg  ac_install_sh=
2384352bf44eSmrg  for ac_aux in $ac_aux_files
2385352bf44eSmrg  do
2386352bf44eSmrg    # As a special case, if "install-sh" is required, that requirement
2387352bf44eSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2388352bf44eSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2389352bf44eSmrg    if test x"$ac_aux" = x"install-sh"
2390352bf44eSmrg    then
2391352bf44eSmrg      if test -f "${as_dir}install-sh"; then
2392352bf44eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2393352bf44eSmrg        ac_install_sh="${as_dir}install-sh -c"
2394352bf44eSmrg      elif test -f "${as_dir}install.sh"; then
2395352bf44eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2396352bf44eSmrg        ac_install_sh="${as_dir}install.sh -c"
2397352bf44eSmrg      elif test -f "${as_dir}shtool"; then
2398352bf44eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2399352bf44eSmrg        ac_install_sh="${as_dir}shtool install -c"
2400352bf44eSmrg      else
2401352bf44eSmrg        ac_aux_dir_found=no
2402352bf44eSmrg        if $ac_first_candidate; then
2403352bf44eSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2404352bf44eSmrg        else
2405352bf44eSmrg          break
2406352bf44eSmrg        fi
2407352bf44eSmrg      fi
2408352bf44eSmrg    else
2409352bf44eSmrg      if test -f "${as_dir}${ac_aux}"; then
2410352bf44eSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2411352bf44eSmrg      else
2412352bf44eSmrg        ac_aux_dir_found=no
2413352bf44eSmrg        if $ac_first_candidate; then
2414352bf44eSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2415352bf44eSmrg        else
2416352bf44eSmrg          break
2417352bf44eSmrg        fi
2418352bf44eSmrg      fi
2419352bf44eSmrg    fi
2420352bf44eSmrg  done
2421352bf44eSmrg  if test "$ac_aux_dir_found" = yes; then
2422352bf44eSmrg    ac_aux_dir="$as_dir"
2423352bf44eSmrg    break
2424352bf44eSmrg  fi
2425352bf44eSmrg  ac_first_candidate=false
2426352bf44eSmrg
2427352bf44eSmrg  as_found=false
2428352bf44eSmrgdone
2429352bf44eSmrgIFS=$as_save_IFS
2430352bf44eSmrgif $as_found
2431352bf44eSmrgthen :
2432352bf44eSmrg
243338d718bdSmrgelse case e in #(
243438d718bdSmrg  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
243538d718bdSmrgesac
2436352bf44eSmrgfi
2437352bf44eSmrg
2438352bf44eSmrg
2439352bf44eSmrg# These three variables are undocumented and unsupported,
2440352bf44eSmrg# and are intended to be withdrawn in a future Autoconf release.
2441352bf44eSmrg# They can cause serious problems if a builder's source tree is in a directory
2442352bf44eSmrg# whose full name contains unusual characters.
2443352bf44eSmrgif test -f "${ac_aux_dir}config.guess"; then
2444352bf44eSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2445352bf44eSmrgfi
2446352bf44eSmrgif test -f "${ac_aux_dir}config.sub"; then
2447352bf44eSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2448352bf44eSmrgfi
2449352bf44eSmrgif test -f "$ac_aux_dir/configure"; then
2450352bf44eSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2451352bf44eSmrgfi
2452352bf44eSmrg
2453352bf44eSmrg# Check that the precious variables saved in the cache have kept the same
2454352bf44eSmrg# value.
2455352bf44eSmrgac_cache_corrupted=false
2456352bf44eSmrgfor ac_var in $ac_precious_vars; do
2457352bf44eSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458352bf44eSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2459352bf44eSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460352bf44eSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2461352bf44eSmrg  case $ac_old_set,$ac_new_set in
2462352bf44eSmrg    set,)
246338d718bdSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
246438d718bdSmrgprintf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2465352bf44eSmrg      ac_cache_corrupted=: ;;
2466352bf44eSmrg    ,set)
246738d718bdSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
246838d718bdSmrgprintf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2469352bf44eSmrg      ac_cache_corrupted=: ;;
2470352bf44eSmrg    ,);;
2471352bf44eSmrg    *)
2472352bf44eSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2473352bf44eSmrg	# differences in whitespace do not lead to failure.
2474352bf44eSmrg	ac_old_val_w=`echo x $ac_old_val`
2475352bf44eSmrg	ac_new_val_w=`echo x $ac_new_val`
2476352bf44eSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
247738d718bdSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
247838d718bdSmrgprintf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2479352bf44eSmrg	  ac_cache_corrupted=:
2480352bf44eSmrg	else
248138d718bdSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
248238d718bdSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2483352bf44eSmrg	  eval $ac_var=\$ac_old_val
2484352bf44eSmrg	fi
248538d718bdSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
248638d718bdSmrgprintf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
248738d718bdSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
248838d718bdSmrgprintf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2489352bf44eSmrg      fi;;
2490352bf44eSmrg  esac
2491352bf44eSmrg  # Pass precious variables to config.status.
2492352bf44eSmrg  if test "$ac_new_set" = set; then
2493352bf44eSmrg    case $ac_new_val in
2494352bf44eSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495352bf44eSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2496352bf44eSmrg    esac
2497352bf44eSmrg    case " $ac_configure_args " in
2498352bf44eSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2499352bf44eSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500352bf44eSmrg    esac
2501352bf44eSmrg  fi
2502352bf44eSmrgdone
2503352bf44eSmrgif $ac_cache_corrupted; then
250438d718bdSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
250538d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2506352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507352bf44eSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
250838d718bdSmrg  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2509352bf44eSmrg	    and start over" "$LINENO" 5
2510352bf44eSmrgfi
2511352bf44eSmrg## -------------------- ##
2512352bf44eSmrg## Main body of script. ##
2513352bf44eSmrg## -------------------- ##
2514352bf44eSmrg
2515352bf44eSmrgac_ext=c
2516352bf44eSmrgac_cpp='$CPP $CPPFLAGS'
2517352bf44eSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518352bf44eSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519352bf44eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2520352bf44eSmrg
2521352bf44eSmrg
2522352bf44eSmrg
2523352bf44eSmrgac_config_headers="$ac_config_headers config.h"
2524352bf44eSmrg
2525352bf44eSmrg
2526352bf44eSmrg# Initialize Automake
2527352bf44eSmrgam__api_version='1.16'
2528352bf44eSmrg
2529352bf44eSmrg
2530352bf44eSmrg
2531352bf44eSmrg  # Find a good install program.  We prefer a C program (faster),
2532352bf44eSmrg# so one script is as good as another.  But avoid the broken or
2533352bf44eSmrg# incompatible versions:
2534352bf44eSmrg# SysV /etc/install, /usr/sbin/install
2535352bf44eSmrg# SunOS /usr/etc/install
2536352bf44eSmrg# IRIX /sbin/install
2537352bf44eSmrg# AIX /bin/install
253833c89af1Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
253933c89af1Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
254033c89af1Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
254133c89af1Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
254233c89af1Smrg# OS/2's system install, which has a completely different semantic
254333c89af1Smrg# ./install, which can be erroneously created by make from ./install.sh.
2544278eca22Smrg# Reject install programs that cannot install multiple files.
2545352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546352bf44eSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
254733c89af1Smrgif test -z "$INSTALL"; then
2548352bf44eSmrgif test ${ac_cv_path_install+y}
2549352bf44eSmrgthen :
2550352bf44eSmrg  printf %s "(cached) " >&6
255138d718bdSmrgelse case e in #(
255238d718bdSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
255333c89af1Smrgfor as_dir in $PATH
255433c89af1Smrgdo
255533c89af1Smrg  IFS=$as_save_IFS
2556352bf44eSmrg  case $as_dir in #(((
2557352bf44eSmrg    '') as_dir=./ ;;
2558352bf44eSmrg    */) ;;
2559352bf44eSmrg    *) as_dir=$as_dir/ ;;
2560352bf44eSmrg  esac
2561352bf44eSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2562352bf44eSmrgcase $as_dir in #((
2563352bf44eSmrg  ./ | /[cC]/* | \
256433c89af1Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
256516d8e44fSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
256633c89af1Smrg  /usr/ucb/* ) ;;
256733c89af1Smrg  *)
256833c89af1Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
256933c89af1Smrg    # Don't use installbsd from OSF since it installs stuff as root
257033c89af1Smrg    # by default.
257133c89af1Smrg    for ac_prog in ginstall scoinst install; do
257233c89af1Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2573352bf44eSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
257433c89af1Smrg	  if test $ac_prog = install &&
2575352bf44eSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
257633c89af1Smrg	    # AIX install.  It has an incompatible calling convention.
257733c89af1Smrg	    :
257833c89af1Smrg	  elif test $ac_prog = install &&
2579352bf44eSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
258033c89af1Smrg	    # program-specific install script used by HP pwplus--don't use.
258133c89af1Smrg	    :
258233c89af1Smrg	  else
2583278eca22Smrg	    rm -rf conftest.one conftest.two conftest.dir
2584278eca22Smrg	    echo one > conftest.one
2585278eca22Smrg	    echo two > conftest.two
2586278eca22Smrg	    mkdir conftest.dir
2587352bf44eSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2588278eca22Smrg	      test -s conftest.one && test -s conftest.two &&
2589278eca22Smrg	      test -s conftest.dir/conftest.one &&
2590278eca22Smrg	      test -s conftest.dir/conftest.two
2591278eca22Smrg	    then
2592352bf44eSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2593278eca22Smrg	      break 3
2594278eca22Smrg	    fi
259533c89af1Smrg	  fi
259633c89af1Smrg	fi
259733c89af1Smrg      done
259833c89af1Smrg    done
259933c89af1Smrg    ;;
260033c89af1Smrgesac
2601278eca22Smrg
260216d8e44fSmrg  done
260333c89af1SmrgIFS=$as_save_IFS
260433c89af1Smrg
2605278eca22Smrgrm -rf conftest.one conftest.two conftest.dir
260638d718bdSmrg ;;
260738d718bdSmrgesac
260833c89af1Smrgfi
2609352bf44eSmrg  if test ${ac_cv_path_install+y}; then
261033c89af1Smrg    INSTALL=$ac_cv_path_install
261133c89af1Smrg  else
261233c89af1Smrg    # As a last resort, use the slow shell script.  Don't cache a
261333c89af1Smrg    # value for INSTALL within a source directory, because that will
261433c89af1Smrg    # break other packages using the cache if that directory is
261533c89af1Smrg    # removed, or if the value is a relative name.
261633c89af1Smrg    INSTALL=$ac_install_sh
261733c89af1Smrg  fi
261833c89af1Smrgfi
2619352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620352bf44eSmrgprintf "%s\n" "$INSTALL" >&6; }
262133c89af1Smrg
262233c89af1Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
262333c89af1Smrg# It thinks the first close brace ends the variable substitution.
262433c89af1Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
262533c89af1Smrg
262633c89af1Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
262733c89af1Smrg
262833c89af1Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
262933c89af1Smrg
2630352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2631352bf44eSmrgprintf %s "checking whether build environment is sane... " >&6; }
2632278eca22Smrg# Reject unsafe characters in $srcdir or the absolute working directory
2633278eca22Smrg# name.  Accept space and tab only in the latter.
2634278eca22Smrgam_lf='
2635278eca22Smrg'
2636278eca22Smrgcase `pwd` in
2637278eca22Smrg  *[\\\"\#\$\&\'\`$am_lf]*)
263816d8e44fSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2639278eca22Smrgesac
2640278eca22Smrgcase $srcdir in
2641278eca22Smrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2642ad47b356Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2643278eca22Smrgesac
2644278eca22Smrg
2645ad47b356Smrg# Do 'set' in a subshell so we don't clobber the current shell's
264633c89af1Smrg# arguments.  Must try -L first in case configure is actually a
264733c89af1Smrg# symlink; some systems play weird games with the mod time of symlinks
264833c89af1Smrg# (eg FreeBSD returns the mod time of the symlink's containing
264933c89af1Smrg# directory).
265033c89af1Smrgif (
2651ad47b356Smrg   am_has_slept=no
2652ad47b356Smrg   for am_try in 1 2; do
2653ad47b356Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2654ad47b356Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2655ad47b356Smrg     if test "$*" = "X"; then
2656ad47b356Smrg	# -L didn't work.
2657ad47b356Smrg	set X `ls -t "$srcdir/configure" conftest.file`
2658ad47b356Smrg     fi
2659ad47b356Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
2660ad47b356Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2661ad47b356Smrg
2662ad47b356Smrg	# If neither matched, then we have a broken ls.  This can happen
2663ad47b356Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2664ad47b356Smrg	# broken ls alias from the environment.  This has actually
2665ad47b356Smrg	# happened.  Such a system could not be considered "sane".
2666ad47b356Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2667ad47b356Smrg  alias in your environment" "$LINENO" 5
2668ad47b356Smrg     fi
2669ad47b356Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2670ad47b356Smrg       break
2671ad47b356Smrg     fi
2672ad47b356Smrg     # Just in case.
2673ad47b356Smrg     sleep 1
2674ad47b356Smrg     am_has_slept=yes
2675ad47b356Smrg   done
267633c89af1Smrg   test "$2" = conftest.file
267733c89af1Smrg   )
267833c89af1Smrgthen
267933c89af1Smrg   # Ok.
268033c89af1Smrg   :
268133c89af1Smrgelse
268216d8e44fSmrg   as_fn_error $? "newly created file is older than distributed files!
268316d8e44fSmrgCheck your system clock" "$LINENO" 5
268433c89af1Smrgfi
2685352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686352bf44eSmrgprintf "%s\n" "yes" >&6; }
2687ad47b356Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2688ad47b356Smrg# generated files are strictly newer.
2689ad47b356Smrgam_sleep_pid=
2690ad47b356Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2691ad47b356Smrg  ( sleep 1 ) &
2692ad47b356Smrg  am_sleep_pid=$!
2693ad47b356Smrgfi
2694ad47b356Smrg
2695ad47b356Smrgrm -f conftest.file
2696ad47b356Smrg
269733c89af1Smrgtest "$program_prefix" != NONE &&
269833c89af1Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
269933c89af1Smrg# Use a double $ so make ignores it.
270033c89af1Smrgtest "$program_suffix" != NONE &&
270133c89af1Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702278eca22Smrg# Double any \ or $.
270338d718bdSmrg# By default was 's,x,x', remove it if useless.
2704278eca22Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705352bf44eSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2706352bf44eSmrg
270733c89af1Smrg
2708ad47b356Smrg# Expand $ac_aux_dir to an absolute path.
2709ad47b356Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
271033c89af1Smrg
2711352bf44eSmrg
2712352bf44eSmrg  if test x"${MISSING+set}" != xset; then
2713352bf44eSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2714278eca22Smrgfi
271533c89af1Smrg# Use eval to expand $SHELL
2716ad47b356Smrgif eval "$MISSING --is-lightweight"; then
2717ad47b356Smrg  am_missing_run="$MISSING "
271833c89af1Smrgelse
271933c89af1Smrg  am_missing_run=
2720352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2721352bf44eSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2722278eca22Smrgfi
2723278eca22Smrg
2724ad47b356Smrgif test x"${install_sh+set}" != xset; then
2725278eca22Smrg  case $am_aux_dir in
2726278eca22Smrg  *\ * | *\	*)
2727278eca22Smrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2728278eca22Smrg  *)
2729278eca22Smrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2730278eca22Smrg  esac
2731278eca22Smrgfi
2732278eca22Smrg
2733ad47b356Smrg# Installed binaries are usually stripped using 'strip' when the user
2734ad47b356Smrg# run "make install-strip".  However 'strip' might not be the right
2735278eca22Smrg# tool to use in cross-compilation environments, therefore Automake
2736ad47b356Smrg# will honor the 'STRIP' environment variable to overrule this program.
2737278eca22Smrgif test "$cross_compiling" != no; then
2738278eca22Smrg  if test -n "$ac_tool_prefix"; then
2739278eca22Smrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2740278eca22Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2741352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
2743352bf44eSmrgif test ${ac_cv_prog_STRIP+y}
2744352bf44eSmrgthen :
2745352bf44eSmrg  printf %s "(cached) " >&6
274638d718bdSmrgelse case e in #(
274738d718bdSmrg  e) if test -n "$STRIP"; then
2748278eca22Smrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749278eca22Smrgelse
2750278eca22Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751278eca22Smrgfor as_dir in $PATH
2752278eca22Smrgdo
2753278eca22Smrg  IFS=$as_save_IFS
2754352bf44eSmrg  case $as_dir in #(((
2755352bf44eSmrg    '') as_dir=./ ;;
2756352bf44eSmrg    */) ;;
2757352bf44eSmrg    *) as_dir=$as_dir/ ;;
2758352bf44eSmrg  esac
275916d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2760352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2761278eca22Smrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2762352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2763278eca22Smrg    break 2
2764278eca22Smrg  fi
2765278eca22Smrgdone
276616d8e44fSmrg  done
2767278eca22SmrgIFS=$as_save_IFS
2768278eca22Smrg
276938d718bdSmrgfi ;;
277038d718bdSmrgesac
2771278eca22Smrgfi
2772278eca22SmrgSTRIP=$ac_cv_prog_STRIP
2773278eca22Smrgif test -n "$STRIP"; then
2774352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2775352bf44eSmrgprintf "%s\n" "$STRIP" >&6; }
2776278eca22Smrgelse
2777352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778352bf44eSmrgprintf "%s\n" "no" >&6; }
2779278eca22Smrgfi
2780278eca22Smrg
2781278eca22Smrg
2782278eca22Smrgfi
2783278eca22Smrgif test -z "$ac_cv_prog_STRIP"; then
2784278eca22Smrg  ac_ct_STRIP=$STRIP
2785278eca22Smrg  # Extract the first word of "strip", so it can be a program name with args.
2786278eca22Smrgset dummy strip; ac_word=$2
2787352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
2789352bf44eSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2790352bf44eSmrgthen :
2791352bf44eSmrg  printf %s "(cached) " >&6
279238d718bdSmrgelse case e in #(
279338d718bdSmrg  e) if test -n "$ac_ct_STRIP"; then
2794278eca22Smrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2795278eca22Smrgelse
2796278eca22Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797278eca22Smrgfor as_dir in $PATH
2798278eca22Smrgdo
2799278eca22Smrg  IFS=$as_save_IFS
2800352bf44eSmrg  case $as_dir in #(((
2801352bf44eSmrg    '') as_dir=./ ;;
2802352bf44eSmrg    */) ;;
2803352bf44eSmrg    *) as_dir=$as_dir/ ;;
2804352bf44eSmrg  esac
280516d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2806352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807278eca22Smrg    ac_cv_prog_ac_ct_STRIP="strip"
2808352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809278eca22Smrg    break 2
2810278eca22Smrg  fi
2811278eca22Smrgdone
281216d8e44fSmrg  done
2813278eca22SmrgIFS=$as_save_IFS
2814278eca22Smrg
281538d718bdSmrgfi ;;
281638d718bdSmrgesac
2817278eca22Smrgfi
2818278eca22Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819278eca22Smrgif test -n "$ac_ct_STRIP"; then
2820352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821352bf44eSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2822278eca22Smrgelse
2823352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824352bf44eSmrgprintf "%s\n" "no" >&6; }
2825278eca22Smrgfi
2826278eca22Smrg
2827278eca22Smrg  if test "x$ac_ct_STRIP" = x; then
2828278eca22Smrg    STRIP=":"
2829278eca22Smrg  else
2830278eca22Smrg    case $cross_compiling:$ac_tool_warned in
2831278eca22Smrgyes:)
2832352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833352bf44eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834278eca22Smrgac_tool_warned=yes ;;
2835278eca22Smrgesac
2836278eca22Smrg    STRIP=$ac_ct_STRIP
2837278eca22Smrg  fi
2838278eca22Smrgelse
2839278eca22Smrg  STRIP="$ac_cv_prog_STRIP"
2840278eca22Smrgfi
2841278eca22Smrg
2842278eca22Smrgfi
2843278eca22SmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844278eca22Smrg
2845352bf44eSmrg
2846352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2847352bf44eSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2848278eca22Smrgif test -z "$MKDIR_P"; then
2849352bf44eSmrg  if test ${ac_cv_path_mkdir+y}
2850352bf44eSmrgthen :
2851352bf44eSmrg  printf %s "(cached) " >&6
285238d718bdSmrgelse case e in #(
285338d718bdSmrg  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854278eca22Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855278eca22Smrgdo
2856278eca22Smrg  IFS=$as_save_IFS
2857352bf44eSmrg  case $as_dir in #(((
2858352bf44eSmrg    '') as_dir=./ ;;
2859352bf44eSmrg    */) ;;
2860352bf44eSmrg    *) as_dir=$as_dir/ ;;
2861352bf44eSmrg  esac
286216d8e44fSmrg    for ac_prog in mkdir gmkdir; do
2863278eca22Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2864352bf44eSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2865352bf44eSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2866352bf44eSmrg	     'mkdir ('*'coreutils) '* | \
286738d718bdSmrg	     *'BusyBox '* | \
2868278eca22Smrg	     'mkdir (fileutils) '4.1*)
2869352bf44eSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2870278eca22Smrg	       break 3;;
2871278eca22Smrg	   esac
2872278eca22Smrg	 done
2873278eca22Smrg       done
287416d8e44fSmrg  done
2875278eca22SmrgIFS=$as_save_IFS
287638d718bdSmrg ;;
287738d718bdSmrgesac
2878278eca22Smrgfi
2879278eca22Smrg
288016d8e44fSmrg  test -d ./--version && rmdir ./--version
2881352bf44eSmrg  if test ${ac_cv_path_mkdir+y}; then
2882278eca22Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
288333c89af1Smrg  else
288438d718bdSmrg    # As a last resort, use plain mkdir -p,
288538d718bdSmrg    # in the hope it doesn't have the bugs of ancient mkdir.
288638d718bdSmrg    MKDIR_P='mkdir -p'
288733c89af1Smrg  fi
288833c89af1Smrgfi
2889352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2890352bf44eSmrgprintf "%s\n" "$MKDIR_P" >&6; }
2891278eca22Smrg
289233c89af1Smrgfor ac_prog in gawk mawk nawk awk
289333c89af1Smrgdo
289433c89af1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
289533c89af1Smrgset dummy $ac_prog; ac_word=$2
2896352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
2898352bf44eSmrgif test ${ac_cv_prog_AWK+y}
2899352bf44eSmrgthen :
2900352bf44eSmrg  printf %s "(cached) " >&6
290138d718bdSmrgelse case e in #(
290238d718bdSmrg  e) if test -n "$AWK"; then
290333c89af1Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
290433c89af1Smrgelse
290533c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
290633c89af1Smrgfor as_dir in $PATH
290733c89af1Smrgdo
290833c89af1Smrg  IFS=$as_save_IFS
2909352bf44eSmrg  case $as_dir in #(((
2910352bf44eSmrg    '') as_dir=./ ;;
2911352bf44eSmrg    */) ;;
2912352bf44eSmrg    *) as_dir=$as_dir/ ;;
2913352bf44eSmrg  esac
291416d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2915352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
291633c89af1Smrg    ac_cv_prog_AWK="$ac_prog"
2917352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
291833c89af1Smrg    break 2
291933c89af1Smrg  fi
292033c89af1Smrgdone
292116d8e44fSmrg  done
292233c89af1SmrgIFS=$as_save_IFS
292333c89af1Smrg
292438d718bdSmrgfi ;;
292538d718bdSmrgesac
292633c89af1Smrgfi
292733c89af1SmrgAWK=$ac_cv_prog_AWK
292833c89af1Smrgif test -n "$AWK"; then
2929352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2930352bf44eSmrgprintf "%s\n" "$AWK" >&6; }
293133c89af1Smrgelse
2932352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933352bf44eSmrgprintf "%s\n" "no" >&6; }
293433c89af1Smrgfi
293533c89af1Smrg
293633c89af1Smrg
293733c89af1Smrg  test -n "$AWK" && break
293833c89af1Smrgdone
293933c89af1Smrg
2940352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2941352bf44eSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2942278eca22Smrgset x ${MAKE-make}
2943352bf44eSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2944352bf44eSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2945352bf44eSmrgthen :
2946352bf44eSmrg  printf %s "(cached) " >&6
294738d718bdSmrgelse case e in #(
294838d718bdSmrg  e) cat >conftest.make <<\_ACEOF
294933c89af1SmrgSHELL = /bin/sh
295033c89af1Smrgall:
295133c89af1Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
295233c89af1Smrg_ACEOF
295316d8e44fSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
295433c89af1Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
295533c89af1Smrg  *@@@%%%=?*=@@@%%%*)
295633c89af1Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
295733c89af1Smrg  *)
295833c89af1Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
295933c89af1Smrgesac
296038d718bdSmrgrm -f conftest.make ;;
296138d718bdSmrgesac
296233c89af1Smrgfi
296333c89af1Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965352bf44eSmrgprintf "%s\n" "yes" >&6; }
296633c89af1Smrg  SET_MAKE=
296733c89af1Smrgelse
2968352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969352bf44eSmrgprintf "%s\n" "no" >&6; }
297033c89af1Smrg  SET_MAKE="MAKE=${MAKE-make}"
297133c89af1Smrgfi
297233c89af1Smrg
297333c89af1Smrgrm -rf .tst 2>/dev/null
297433c89af1Smrgmkdir .tst 2>/dev/null
297533c89af1Smrgif test -d .tst; then
297633c89af1Smrg  am__leading_dot=.
297733c89af1Smrgelse
297833c89af1Smrg  am__leading_dot=_
297933c89af1Smrgfi
298033c89af1Smrgrmdir .tst 2>/dev/null
298133c89af1Smrg
2982ad47b356Smrg# Check whether --enable-silent-rules was given.
2983352bf44eSmrgif test ${enable_silent_rules+y}
2984352bf44eSmrgthen :
2985ad47b356Smrg  enableval=$enable_silent_rules;
2986ad47b356Smrgfi
2987ad47b356Smrg
2988ad47b356Smrgcase $enable_silent_rules in # (((
2989ad47b356Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
2990ad47b356Smrg   no) AM_DEFAULT_VERBOSITY=1;;
2991ad47b356Smrg    *) AM_DEFAULT_VERBOSITY=1;;
2992ad47b356Smrgesac
2993ad47b356Smrgam_make=${MAKE-make}
2994352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2995352bf44eSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
2996352bf44eSmrgif test ${am_cv_make_support_nested_variables+y}
2997352bf44eSmrgthen :
2998352bf44eSmrg  printf %s "(cached) " >&6
299938d718bdSmrgelse case e in #(
300038d718bdSmrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3001ad47b356SmrgBAR0=false
3002ad47b356SmrgBAR1=true
3003ad47b356SmrgV=1
3004ad47b356Smrgam__doit:
3005ad47b356Smrg	@$(TRUE)
3006ad47b356Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007ad47b356Smrg  am_cv_make_support_nested_variables=yes
3008ad47b356Smrgelse
3009ad47b356Smrg  am_cv_make_support_nested_variables=no
301038d718bdSmrgfi ;;
301138d718bdSmrgesac
3012ad47b356Smrgfi
3013352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014352bf44eSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3015ad47b356Smrgif test $am_cv_make_support_nested_variables = yes; then
3016ad47b356Smrg    AM_V='$(V)'
3017ad47b356Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018ad47b356Smrgelse
3019ad47b356Smrg  AM_V=$AM_DEFAULT_VERBOSITY
3020ad47b356Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021ad47b356Smrgfi
3022ad47b356SmrgAM_BACKSLASH='\'
3023ad47b356Smrg
3024278eca22Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3025278eca22Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026278eca22Smrg  # is not polluted with repeated "-I."
3027278eca22Smrg  am__isrc=' -I$(srcdir)'
3028278eca22Smrg  # test to see if srcdir already configured
3029278eca22Smrg  if test -f $srcdir/config.status; then
303016d8e44fSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031278eca22Smrg  fi
303233c89af1Smrgfi
303333c89af1Smrg
303433c89af1Smrg# test whether we have cygpath
303533c89af1Smrgif test -z "$CYGPATH_W"; then
303633c89af1Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
303733c89af1Smrg    CYGPATH_W='cygpath -w'
303833c89af1Smrg  else
303933c89af1Smrg    CYGPATH_W=echo
304033c89af1Smrg  fi
304133c89af1Smrgfi
304233c89af1Smrg
304333c89af1Smrg
304433c89af1Smrg# Define the identity of the package.
304533c89af1Smrg PACKAGE='editres'
304638d718bdSmrg VERSION='1.0.9'
304733c89af1Smrg
304833c89af1Smrg
3049352bf44eSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
305033c89af1Smrg
305133c89af1Smrg
3052352bf44eSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
305333c89af1Smrg
305433c89af1Smrg# Some tools Automake needs.
305533c89af1Smrg
305633c89af1SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
305733c89af1Smrg
305833c89af1Smrg
305933c89af1SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
306033c89af1Smrg
306133c89af1Smrg
306233c89af1SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
306333c89af1Smrg
306433c89af1Smrg
306533c89af1SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
306633c89af1Smrg
306733c89af1Smrg
306833c89af1SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
306933c89af1Smrg
3070ad47b356Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
3071ad47b356Smrg# dies out for good.  For more background, see:
3072352bf44eSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073352bf44eSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074ad47b356Smrgmkdir_p='$(MKDIR_P)'
307533c89af1Smrg
3076ad47b356Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
3077ad47b356Smrg# system "awk" is bad on some platforms.
3078ad47b356Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3079ad47b356Smrg# in the wild :-(  We should find a proper way to deprecate it ...
3080ad47b356SmrgAMTAR='$${TAR-tar}'
308133c89af1Smrg
308233c89af1Smrg
3083ad47b356Smrg# We'll loop over all known methods to create a tar archive until one works.
3084ad47b356Smrg_am_tools='gnutar  pax cpio none'
308533c89af1Smrg
3086ad47b356Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
308733c89af1Smrg
308833c89af1Smrg
308933c89af1Smrg
3090278eca22Smrg
309133c89af1Smrg
3092352bf44eSmrg# Variables for tags utilities; see am/tags.am
3093352bf44eSmrgif test -z "$CTAGS"; then
3094352bf44eSmrg  CTAGS=ctags
3095352bf44eSmrgfi
3096352bf44eSmrg
3097352bf44eSmrgif test -z "$ETAGS"; then
3098352bf44eSmrg  ETAGS=etags
3099352bf44eSmrgfi
3100352bf44eSmrg
3101352bf44eSmrgif test -z "$CSCOPE"; then
3102352bf44eSmrg  CSCOPE=cscope
3103352bf44eSmrgfi
3104352bf44eSmrg
3105352bf44eSmrg
310633c89af1Smrg
3107ad47b356Smrg# POSIX will say in a future version that running "rm -f" with no argument
3108ad47b356Smrg# is OK; and we want to be able to make that assumption in our Makefile
3109ad47b356Smrg# recipes.  So use an aggressive probe to check that the usage we want is
3110ad47b356Smrg# actually supported "in the wild" to an acceptable degree.
3111ad47b356Smrg# See automake bug#10828.
3112ad47b356Smrg# To make any issue more visible, cause the running configure to be aborted
3113ad47b356Smrg# by default if the 'rm' program in use doesn't match our expectations; the
3114ad47b356Smrg# user can still override this though.
3115ad47b356Smrgif rm -f && rm -fr && rm -rf; then : OK; else
3116ad47b356Smrg  cat >&2 <<'END'
3117ad47b356SmrgOops!
3118ad47b356Smrg
3119ad47b356SmrgYour 'rm' program seems unable to run without file operands specified
3120ad47b356Smrgon the command line, even when the '-f' option is present.  This is contrary
3121ad47b356Smrgto the behaviour of most rm programs out there, and not conforming with
3122ad47b356Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
312333c89af1Smrg
3124ad47b356SmrgPlease tell bug-automake@gnu.org about your system, including the value
3125ad47b356Smrgof your $PATH and any error possibly output before this message.  This
3126ad47b356Smrgcan help us improve future automake versions.
3127ad47b356Smrg
3128ad47b356SmrgEND
3129ad47b356Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130ad47b356Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3131ad47b356Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132ad47b356Smrg    echo >&2
3133ad47b356Smrg  else
3134ad47b356Smrg    cat >&2 <<'END'
3135ad47b356SmrgAborting the configuration process, to ensure you take notice of the issue.
3136ad47b356Smrg
3137ad47b356SmrgYou can download and install GNU coreutils to get an 'rm' implementation
3138352bf44eSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3139ad47b356Smrg
3140ad47b356SmrgIf you want to complete the configuration process using your problematic
3141ad47b356Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142ad47b356Smrgto "yes", and re-run configure.
3143ad47b356Smrg
3144ad47b356SmrgEND
3145ad47b356Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146ad47b356Smrg  fi
3147ad47b356Smrgfi
314833c89af1Smrg
314933c89af1Smrg
315016d8e44fSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3151278eca22Smrg
3152278eca22Smrg
3153278eca22Smrg
3154278eca22Smrg
3155278eca22Smrg
3156278eca22Smrg
3157278eca22Smrg
3158278eca22Smrg
3159278eca22Smrg
3160278eca22Smrg
3161278eca22Smrg
3162352bf44eSmrg
3163352bf44eSmrg
3164352bf44eSmrg
3165352bf44eSmrg
3166352bf44eSmrg
3167352bf44eSmrg
3168352bf44eSmrg
3169352bf44eSmrg
3170352bf44eSmrg
317116d8e44fSmrgDEPDIR="${am__leading_dot}deps"
3172278eca22Smrg
317316d8e44fSmrgac_config_commands="$ac_config_commands depfiles"
317416d8e44fSmrg
3175352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3176352bf44eSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3177352bf44eSmrgcat > confinc.mk << 'END'
317816d8e44fSmrgam__doit:
3179352bf44eSmrg	@echo this is the am__doit target >confinc.out
318016d8e44fSmrg.PHONY: am__doit
318116d8e44fSmrgEND
318216d8e44fSmrgam__include="#"
318316d8e44fSmrgam__quote=
3184352bf44eSmrg# BSD make does it like this.
3185352bf44eSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3186352bf44eSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3187352bf44eSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3188352bf44eSmrg_am_result=no
3189352bf44eSmrgfor s in GNU BSD; do
3190352bf44eSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3191352bf44eSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3192352bf44eSmrg   ac_status=$?
3193352bf44eSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194352bf44eSmrg   (exit $ac_status); }
3195352bf44eSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3196352bf44eSmrg  '0:this is the am__doit target') :
3197352bf44eSmrg    case $s in #(
3198352bf44eSmrg  BSD) :
3199352bf44eSmrg    am__include='.include' am__quote='"' ;; #(
3200352bf44eSmrg  *) :
3201352bf44eSmrg    am__include='include' am__quote='' ;;
3202352bf44eSmrgesac ;; #(
3203352bf44eSmrg  *) :
320416d8e44fSmrg     ;;
3205352bf44eSmrgesac
3206352bf44eSmrg  if test "$am__include" != "#"; then
3207352bf44eSmrg    _am_result="yes ($s style)"
3208352bf44eSmrg    break
3209352bf44eSmrg  fi
3210352bf44eSmrgdone
3211352bf44eSmrgrm -f confinc.* confmf.*
3212352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3213352bf44eSmrgprintf "%s\n" "${_am_result}" >&6; }
321416d8e44fSmrg
321516d8e44fSmrg# Check whether --enable-dependency-tracking was given.
3216352bf44eSmrgif test ${enable_dependency_tracking+y}
3217352bf44eSmrgthen :
321816d8e44fSmrg  enableval=$enable_dependency_tracking;
321916d8e44fSmrgfi
322016d8e44fSmrg
322116d8e44fSmrgif test "x$enable_dependency_tracking" != xno; then
322216d8e44fSmrg  am_depcomp="$ac_aux_dir/depcomp"
322316d8e44fSmrg  AMDEPBACKSLASH='\'
3224988795beSmrg  am__nodep='_no'
322516d8e44fSmrgfi
322616d8e44fSmrg if test "x$enable_dependency_tracking" != xno; then
322716d8e44fSmrg  AMDEP_TRUE=
322816d8e44fSmrg  AMDEP_FALSE='#'
322916d8e44fSmrgelse
323016d8e44fSmrg  AMDEP_TRUE='#'
323116d8e44fSmrg  AMDEP_FALSE=
323216d8e44fSmrgfi
323333c89af1Smrg
323433c89af1Smrg
323533c89af1Smrgac_ext=c
323633c89af1Smrgac_cpp='$CPP $CPPFLAGS'
323733c89af1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
323833c89af1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
323933c89af1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
324033c89af1Smrgif test -n "$ac_tool_prefix"; then
324133c89af1Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
324233c89af1Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3243352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3245352bf44eSmrgif test ${ac_cv_prog_CC+y}
3246352bf44eSmrgthen :
3247352bf44eSmrg  printf %s "(cached) " >&6
324838d718bdSmrgelse case e in #(
324938d718bdSmrg  e) if test -n "$CC"; then
325033c89af1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
325133c89af1Smrgelse
325233c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
325333c89af1Smrgfor as_dir in $PATH
325433c89af1Smrgdo
325533c89af1Smrg  IFS=$as_save_IFS
3256352bf44eSmrg  case $as_dir in #(((
3257352bf44eSmrg    '') as_dir=./ ;;
3258352bf44eSmrg    */) ;;
3259352bf44eSmrg    *) as_dir=$as_dir/ ;;
3260352bf44eSmrg  esac
326116d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3262352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
326333c89af1Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3264352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
326533c89af1Smrg    break 2
326633c89af1Smrg  fi
326733c89af1Smrgdone
326816d8e44fSmrg  done
326933c89af1SmrgIFS=$as_save_IFS
327033c89af1Smrg
327138d718bdSmrgfi ;;
327238d718bdSmrgesac
327333c89af1Smrgfi
327433c89af1SmrgCC=$ac_cv_prog_CC
327533c89af1Smrgif test -n "$CC"; then
3276352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277352bf44eSmrgprintf "%s\n" "$CC" >&6; }
327833c89af1Smrgelse
3279352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280352bf44eSmrgprintf "%s\n" "no" >&6; }
328133c89af1Smrgfi
328233c89af1Smrg
328333c89af1Smrg
328433c89af1Smrgfi
328533c89af1Smrgif test -z "$ac_cv_prog_CC"; then
328633c89af1Smrg  ac_ct_CC=$CC
328733c89af1Smrg  # Extract the first word of "gcc", so it can be a program name with args.
328833c89af1Smrgset dummy gcc; ac_word=$2
3289352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3291352bf44eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3292352bf44eSmrgthen :
3293352bf44eSmrg  printf %s "(cached) " >&6
329438d718bdSmrgelse case e in #(
329538d718bdSmrg  e) if test -n "$ac_ct_CC"; then
329633c89af1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
329733c89af1Smrgelse
329833c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
329933c89af1Smrgfor as_dir in $PATH
330033c89af1Smrgdo
330133c89af1Smrg  IFS=$as_save_IFS
3302352bf44eSmrg  case $as_dir in #(((
3303352bf44eSmrg    '') as_dir=./ ;;
3304352bf44eSmrg    */) ;;
3305352bf44eSmrg    *) as_dir=$as_dir/ ;;
3306352bf44eSmrg  esac
330716d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3308352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
330933c89af1Smrg    ac_cv_prog_ac_ct_CC="gcc"
3310352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
331133c89af1Smrg    break 2
331233c89af1Smrg  fi
331333c89af1Smrgdone
331416d8e44fSmrg  done
331533c89af1SmrgIFS=$as_save_IFS
331633c89af1Smrg
331738d718bdSmrgfi ;;
331838d718bdSmrgesac
331933c89af1Smrgfi
332033c89af1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
332133c89af1Smrgif test -n "$ac_ct_CC"; then
3322352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3323352bf44eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
332433c89af1Smrgelse
3325352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326352bf44eSmrgprintf "%s\n" "no" >&6; }
332733c89af1Smrgfi
332833c89af1Smrg
332933c89af1Smrg  if test "x$ac_ct_CC" = x; then
333033c89af1Smrg    CC=""
333133c89af1Smrg  else
333233c89af1Smrg    case $cross_compiling:$ac_tool_warned in
333333c89af1Smrgyes:)
3334352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335352bf44eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
333633c89af1Smrgac_tool_warned=yes ;;
333733c89af1Smrgesac
333833c89af1Smrg    CC=$ac_ct_CC
333933c89af1Smrg  fi
334033c89af1Smrgelse
334133c89af1Smrg  CC="$ac_cv_prog_CC"
334233c89af1Smrgfi
334333c89af1Smrg
334433c89af1Smrgif test -z "$CC"; then
334533c89af1Smrg          if test -n "$ac_tool_prefix"; then
334633c89af1Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
334733c89af1Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3348352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3350352bf44eSmrgif test ${ac_cv_prog_CC+y}
3351352bf44eSmrgthen :
3352352bf44eSmrg  printf %s "(cached) " >&6
335338d718bdSmrgelse case e in #(
335438d718bdSmrg  e) if test -n "$CC"; then
335533c89af1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
335633c89af1Smrgelse
335733c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335833c89af1Smrgfor as_dir in $PATH
335933c89af1Smrgdo
336033c89af1Smrg  IFS=$as_save_IFS
3361352bf44eSmrg  case $as_dir in #(((
3362352bf44eSmrg    '') as_dir=./ ;;
3363352bf44eSmrg    */) ;;
3364352bf44eSmrg    *) as_dir=$as_dir/ ;;
3365352bf44eSmrg  esac
336616d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3367352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
336833c89af1Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3369352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
337033c89af1Smrg    break 2
337133c89af1Smrg  fi
337233c89af1Smrgdone
337316d8e44fSmrg  done
337433c89af1SmrgIFS=$as_save_IFS
337533c89af1Smrg
337638d718bdSmrgfi ;;
337738d718bdSmrgesac
337833c89af1Smrgfi
337933c89af1SmrgCC=$ac_cv_prog_CC
338033c89af1Smrgif test -n "$CC"; then
3381352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382352bf44eSmrgprintf "%s\n" "$CC" >&6; }
338333c89af1Smrgelse
3384352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385352bf44eSmrgprintf "%s\n" "no" >&6; }
338633c89af1Smrgfi
338733c89af1Smrg
338833c89af1Smrg
338933c89af1Smrg  fi
339033c89af1Smrgfi
339133c89af1Smrgif test -z "$CC"; then
339233c89af1Smrg  # Extract the first word of "cc", so it can be a program name with args.
339333c89af1Smrgset dummy cc; ac_word=$2
3394352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3396352bf44eSmrgif test ${ac_cv_prog_CC+y}
3397352bf44eSmrgthen :
3398352bf44eSmrg  printf %s "(cached) " >&6
339938d718bdSmrgelse case e in #(
340038d718bdSmrg  e) if test -n "$CC"; then
340133c89af1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
340233c89af1Smrgelse
340333c89af1Smrg  ac_prog_rejected=no
340433c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
340533c89af1Smrgfor as_dir in $PATH
340633c89af1Smrgdo
340733c89af1Smrg  IFS=$as_save_IFS
3408352bf44eSmrg  case $as_dir in #(((
3409352bf44eSmrg    '') as_dir=./ ;;
3410352bf44eSmrg    */) ;;
3411352bf44eSmrg    *) as_dir=$as_dir/ ;;
3412352bf44eSmrg  esac
341316d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3414352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415352bf44eSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
341633c89af1Smrg       ac_prog_rejected=yes
341733c89af1Smrg       continue
341833c89af1Smrg     fi
341933c89af1Smrg    ac_cv_prog_CC="cc"
3420352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
342133c89af1Smrg    break 2
342233c89af1Smrg  fi
342333c89af1Smrgdone
342416d8e44fSmrg  done
342533c89af1SmrgIFS=$as_save_IFS
342633c89af1Smrg
342733c89af1Smrgif test $ac_prog_rejected = yes; then
342833c89af1Smrg  # We found a bogon in the path, so make sure we never use it.
342933c89af1Smrg  set dummy $ac_cv_prog_CC
343033c89af1Smrg  shift
343133c89af1Smrg  if test $# != 0; then
343233c89af1Smrg    # We chose a different compiler from the bogus one.
343333c89af1Smrg    # However, it has the same basename, so the bogon will be chosen
343433c89af1Smrg    # first if we set CC to just the basename; use the full file name.
343533c89af1Smrg    shift
3436352bf44eSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
343733c89af1Smrg  fi
343833c89af1Smrgfi
343938d718bdSmrgfi ;;
344038d718bdSmrgesac
344133c89af1Smrgfi
344233c89af1SmrgCC=$ac_cv_prog_CC
344333c89af1Smrgif test -n "$CC"; then
3444352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445352bf44eSmrgprintf "%s\n" "$CC" >&6; }
344633c89af1Smrgelse
3447352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448352bf44eSmrgprintf "%s\n" "no" >&6; }
344933c89af1Smrgfi
345033c89af1Smrg
345133c89af1Smrg
345233c89af1Smrgfi
345333c89af1Smrgif test -z "$CC"; then
345433c89af1Smrg  if test -n "$ac_tool_prefix"; then
345533c89af1Smrg  for ac_prog in cl.exe
345633c89af1Smrg  do
345733c89af1Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
345833c89af1Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3461352bf44eSmrgif test ${ac_cv_prog_CC+y}
3462352bf44eSmrgthen :
3463352bf44eSmrg  printf %s "(cached) " >&6
346438d718bdSmrgelse case e in #(
346538d718bdSmrg  e) if test -n "$CC"; then
346633c89af1Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
346733c89af1Smrgelse
346833c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
346933c89af1Smrgfor as_dir in $PATH
347033c89af1Smrgdo
347133c89af1Smrg  IFS=$as_save_IFS
3472352bf44eSmrg  case $as_dir in #(((
3473352bf44eSmrg    '') as_dir=./ ;;
3474352bf44eSmrg    */) ;;
3475352bf44eSmrg    *) as_dir=$as_dir/ ;;
3476352bf44eSmrg  esac
347716d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3478352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
347933c89af1Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
348133c89af1Smrg    break 2
348233c89af1Smrg  fi
348333c89af1Smrgdone
348416d8e44fSmrg  done
348533c89af1SmrgIFS=$as_save_IFS
348633c89af1Smrg
348738d718bdSmrgfi ;;
348838d718bdSmrgesac
348933c89af1Smrgfi
349033c89af1SmrgCC=$ac_cv_prog_CC
349133c89af1Smrgif test -n "$CC"; then
3492352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493352bf44eSmrgprintf "%s\n" "$CC" >&6; }
349433c89af1Smrgelse
3495352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496352bf44eSmrgprintf "%s\n" "no" >&6; }
349733c89af1Smrgfi
349833c89af1Smrg
349933c89af1Smrg
350033c89af1Smrg    test -n "$CC" && break
350133c89af1Smrg  done
350233c89af1Smrgfi
350333c89af1Smrgif test -z "$CC"; then
350433c89af1Smrg  ac_ct_CC=$CC
350533c89af1Smrg  for ac_prog in cl.exe
350633c89af1Smrgdo
350733c89af1Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
350833c89af1Smrgset dummy $ac_prog; ac_word=$2
3509352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3511352bf44eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3512352bf44eSmrgthen :
3513352bf44eSmrg  printf %s "(cached) " >&6
351438d718bdSmrgelse case e in #(
351538d718bdSmrg  e) if test -n "$ac_ct_CC"; then
351633c89af1Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
351733c89af1Smrgelse
351833c89af1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
351933c89af1Smrgfor as_dir in $PATH
352033c89af1Smrgdo
352133c89af1Smrg  IFS=$as_save_IFS
3522352bf44eSmrg  case $as_dir in #(((
3523352bf44eSmrg    '') as_dir=./ ;;
3524352bf44eSmrg    */) ;;
3525352bf44eSmrg    *) as_dir=$as_dir/ ;;
3526352bf44eSmrg  esac
352716d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3528352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
352933c89af1Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3530352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
353133c89af1Smrg    break 2
353233c89af1Smrg  fi
353333c89af1Smrgdone
353416d8e44fSmrg  done
353533c89af1SmrgIFS=$as_save_IFS
353633c89af1Smrg
353738d718bdSmrgfi ;;
353838d718bdSmrgesac
353933c89af1Smrgfi
354033c89af1Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
354133c89af1Smrgif test -n "$ac_ct_CC"; then
3542352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543352bf44eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
354433c89af1Smrgelse
3545352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546352bf44eSmrgprintf "%s\n" "no" >&6; }
354733c89af1Smrgfi
354833c89af1Smrg
354933c89af1Smrg
355033c89af1Smrg  test -n "$ac_ct_CC" && break
355133c89af1Smrgdone
355233c89af1Smrg
355333c89af1Smrg  if test "x$ac_ct_CC" = x; then
355433c89af1Smrg    CC=""
355533c89af1Smrg  else
355633c89af1Smrg    case $cross_compiling:$ac_tool_warned in
355733c89af1Smrgyes:)
3558352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559352bf44eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
356033c89af1Smrgac_tool_warned=yes ;;
356133c89af1Smrgesac
356233c89af1Smrg    CC=$ac_ct_CC
356333c89af1Smrg  fi
356433c89af1Smrgfi
356533c89af1Smrg
356633c89af1Smrgfi
3567352bf44eSmrgif test -z "$CC"; then
3568352bf44eSmrg  if test -n "$ac_tool_prefix"; then
3569352bf44eSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3570352bf44eSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3571352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3573352bf44eSmrgif test ${ac_cv_prog_CC+y}
3574352bf44eSmrgthen :
3575352bf44eSmrg  printf %s "(cached) " >&6
357638d718bdSmrgelse case e in #(
357738d718bdSmrg  e) if test -n "$CC"; then
3578352bf44eSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3579352bf44eSmrgelse
3580352bf44eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581352bf44eSmrgfor as_dir in $PATH
3582352bf44eSmrgdo
3583352bf44eSmrg  IFS=$as_save_IFS
3584352bf44eSmrg  case $as_dir in #(((
3585352bf44eSmrg    '') as_dir=./ ;;
3586352bf44eSmrg    */) ;;
3587352bf44eSmrg    *) as_dir=$as_dir/ ;;
3588352bf44eSmrg  esac
3589352bf44eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3590352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591352bf44eSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3592352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593352bf44eSmrg    break 2
3594352bf44eSmrg  fi
3595352bf44eSmrgdone
3596352bf44eSmrg  done
3597352bf44eSmrgIFS=$as_save_IFS
3598352bf44eSmrg
359938d718bdSmrgfi ;;
360038d718bdSmrgesac
3601352bf44eSmrgfi
3602352bf44eSmrgCC=$ac_cv_prog_CC
3603352bf44eSmrgif test -n "$CC"; then
3604352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605352bf44eSmrgprintf "%s\n" "$CC" >&6; }
3606352bf44eSmrgelse
3607352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608352bf44eSmrgprintf "%s\n" "no" >&6; }
3609352bf44eSmrgfi
361033c89af1Smrg
361133c89af1Smrg
3612352bf44eSmrgfi
3613352bf44eSmrgif test -z "$ac_cv_prog_CC"; then
3614352bf44eSmrg  ac_ct_CC=$CC
3615352bf44eSmrg  # Extract the first word of "clang", so it can be a program name with args.
3616352bf44eSmrgset dummy clang; ac_word=$2
3617352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
3619352bf44eSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3620352bf44eSmrgthen :
3621352bf44eSmrg  printf %s "(cached) " >&6
362238d718bdSmrgelse case e in #(
362338d718bdSmrg  e) if test -n "$ac_ct_CC"; then
3624352bf44eSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625352bf44eSmrgelse
3626352bf44eSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627352bf44eSmrgfor as_dir in $PATH
3628352bf44eSmrgdo
3629352bf44eSmrg  IFS=$as_save_IFS
3630352bf44eSmrg  case $as_dir in #(((
3631352bf44eSmrg    '') as_dir=./ ;;
3632352bf44eSmrg    */) ;;
3633352bf44eSmrg    *) as_dir=$as_dir/ ;;
3634352bf44eSmrg  esac
3635352bf44eSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3636352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3637352bf44eSmrg    ac_cv_prog_ac_ct_CC="clang"
3638352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3639352bf44eSmrg    break 2
3640352bf44eSmrg  fi
3641352bf44eSmrgdone
3642352bf44eSmrg  done
3643352bf44eSmrgIFS=$as_save_IFS
3644352bf44eSmrg
364538d718bdSmrgfi ;;
364638d718bdSmrgesac
3647352bf44eSmrgfi
3648352bf44eSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3649352bf44eSmrgif test -n "$ac_ct_CC"; then
3650352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651352bf44eSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3652352bf44eSmrgelse
3653352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654352bf44eSmrgprintf "%s\n" "no" >&6; }
3655352bf44eSmrgfi
3656352bf44eSmrg
3657352bf44eSmrg  if test "x$ac_ct_CC" = x; then
3658352bf44eSmrg    CC=""
3659352bf44eSmrg  else
3660352bf44eSmrg    case $cross_compiling:$ac_tool_warned in
3661352bf44eSmrgyes:)
3662352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663352bf44eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664352bf44eSmrgac_tool_warned=yes ;;
3665352bf44eSmrgesac
3666352bf44eSmrg    CC=$ac_ct_CC
3667352bf44eSmrg  fi
3668352bf44eSmrgelse
3669352bf44eSmrg  CC="$ac_cv_prog_CC"
3670352bf44eSmrgfi
3671352bf44eSmrg
3672352bf44eSmrgfi
3673352bf44eSmrg
3674352bf44eSmrg
367538d718bdSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
367638d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
367716d8e44fSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
367838d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
367933c89af1Smrg
368033c89af1Smrg# Provide some information about the compiler.
3681352bf44eSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3682278eca22Smrgset X $ac_compile
3683278eca22Smrgac_compiler=$2
3684352bf44eSmrgfor ac_option in --version -v -V -qversion -version; do
368516d8e44fSmrg  { { ac_try="$ac_compiler $ac_option >&5"
368633c89af1Smrgcase "(($ac_try" in
368733c89af1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
368833c89af1Smrg  *) ac_try_echo=$ac_try;;
368933c89af1Smrgesac
369016d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
369216d8e44fSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
369333c89af1Smrg  ac_status=$?
369416d8e44fSmrg  if test -s conftest.err; then
369516d8e44fSmrg    sed '10a\
369616d8e44fSmrg... rest of stderr output deleted ...
369716d8e44fSmrg         10q' conftest.err >conftest.er1
369816d8e44fSmrg    cat conftest.er1 >&5
369916d8e44fSmrg  fi
370016d8e44fSmrg  rm -f conftest.er1 conftest.err
3701352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
370216d8e44fSmrg  test $ac_status = 0; }
370316d8e44fSmrgdone
370433c89af1Smrg
370516d8e44fSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
370633c89af1Smrg/* end confdefs.h.  */
370733c89af1Smrg
370833c89af1Smrgint
3709352bf44eSmrgmain (void)
371033c89af1Smrg{
371133c89af1Smrg
371233c89af1Smrg  ;
371333c89af1Smrg  return 0;
371433c89af1Smrg}
371533c89af1Smrg_ACEOF
371633c89af1Smrgac_clean_files_save=$ac_clean_files
3717278eca22Smrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
371833c89af1Smrg# Try to create an executable without -o first, disregard a.out.
371933c89af1Smrg# It will help us diagnose broken compilers, and finding out an intuition
372033c89af1Smrg# of exeext.
3721352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722352bf44eSmrgprintf %s "checking whether the C compiler works... " >&6; }
3723352bf44eSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3724278eca22Smrg
3725278eca22Smrg# The possible output files:
3726278eca22Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3727278eca22Smrg
372833c89af1Smrgac_rmfiles=
372933c89af1Smrgfor ac_file in $ac_files
373033c89af1Smrgdo
373133c89af1Smrg  case $ac_file in
3732278eca22Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
373333c89af1Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
373433c89af1Smrg  esac
373533c89af1Smrgdone
373633c89af1Smrgrm -f $ac_rmfiles
373733c89af1Smrg
373816d8e44fSmrgif { { ac_try="$ac_link_default"
373933c89af1Smrgcase "(($ac_try" in
374033c89af1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
374133c89af1Smrg  *) ac_try_echo=$ac_try;;
374233c89af1Smrgesac
374316d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
374533c89af1Smrg  (eval "$ac_link_default") 2>&5
374633c89af1Smrg  ac_status=$?
3747352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748352bf44eSmrg  test $ac_status = 0; }
3749352bf44eSmrgthen :
375038d718bdSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
375138d718bdSmrg# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
375233c89af1Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
375333c89af1Smrg# so that the user can short-circuit this test for compilers unknown to
375433c89af1Smrg# Autoconf.
3755278eca22Smrgfor ac_file in $ac_files ''
375633c89af1Smrgdo
375733c89af1Smrg  test -f "$ac_file" || continue
375833c89af1Smrg  case $ac_file in
3759278eca22Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
376033c89af1Smrg	;;
376133c89af1Smrg    [ab].out )
376233c89af1Smrg	# We found the default executable, but exeext='' is most
376333c89af1Smrg	# certainly right.
376433c89af1Smrg	break;;
376533c89af1Smrg    *.* )
3766352bf44eSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
376733c89af1Smrg	then :; else
376833c89af1Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
376933c89af1Smrg	fi
377033c89af1Smrg	# We set ac_cv_exeext here because the later test for it is not
377138d718bdSmrg	# safe: cross compilers may not add the suffix if given an '-o'
377233c89af1Smrg	# argument, so we may need to know it at that point already.
377333c89af1Smrg	# Even if this section looks crufty: it has the advantage of
377433c89af1Smrg	# actually working.
377533c89af1Smrg	break;;
377633c89af1Smrg    * )
377733c89af1Smrg	break;;
377833c89af1Smrg  esac
377933c89af1Smrgdone
378033c89af1Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
378133c89af1Smrg
378238d718bdSmrgelse case e in #(
378338d718bdSmrg  e) ac_file='' ;;
378438d718bdSmrgesac
3785278eca22Smrgfi
3786352bf44eSmrgif test -z "$ac_file"
3787352bf44eSmrgthen :
3788352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789352bf44eSmrgprintf "%s\n" "no" >&6; }
3790352bf44eSmrgprintf "%s\n" "$as_me: failed program was:" >&5
379133c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5
379233c89af1Smrg
379338d718bdSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
379438d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
379516d8e44fSmrgas_fn_error 77 "C compiler cannot create executables
379638d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
379738d718bdSmrgelse case e in #(
379838d718bdSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
379938d718bdSmrgprintf "%s\n" "yes" >&6; } ;;
380038d718bdSmrgesac
3801352bf44eSmrgfi
3802352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3803352bf44eSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3804352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3805352bf44eSmrgprintf "%s\n" "$ac_file" >&6; }
380616d8e44fSmrgac_exeext=$ac_cv_exeext
380733c89af1Smrg
3808278eca22Smrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
380933c89af1Smrgac_clean_files=$ac_clean_files_save
3810352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3811352bf44eSmrgprintf %s "checking for suffix of executables... " >&6; }
381216d8e44fSmrgif { { ac_try="$ac_link"
381333c89af1Smrgcase "(($ac_try" in
381433c89af1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
381533c89af1Smrg  *) ac_try_echo=$ac_try;;
381633c89af1Smrgesac
381716d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
381933c89af1Smrg  (eval "$ac_link") 2>&5
382033c89af1Smrg  ac_status=$?
3821352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822352bf44eSmrg  test $ac_status = 0; }
3823352bf44eSmrgthen :
382438d718bdSmrg  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
382538d718bdSmrg# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
382638d718bdSmrg# work properly (i.e., refer to 'conftest.exe'), while it won't with
382738d718bdSmrg# 'rm'.
382833c89af1Smrgfor ac_file in conftest.exe conftest conftest.*; do
382933c89af1Smrg  test -f "$ac_file" || continue
383033c89af1Smrg  case $ac_file in
3831278eca22Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
383233c89af1Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
383333c89af1Smrg	  break;;
383433c89af1Smrg    * ) break;;
383533c89af1Smrg  esac
383633c89af1Smrgdone
383738d718bdSmrgelse case e in #(
383838d718bdSmrg  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
383938d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
384016d8e44fSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
384138d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
384238d718bdSmrgesac
384333c89af1Smrgfi
384416d8e44fSmrgrm -f conftest conftest$ac_cv_exeext
3845352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3846352bf44eSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
384733c89af1Smrg
384833c89af1Smrgrm -f conftest.$ac_ext
384933c89af1SmrgEXEEXT=$ac_cv_exeext
385033c89af1Smrgac_exeext=$EXEEXT
385116d8e44fSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
385216d8e44fSmrg/* end confdefs.h.  */
385316d8e44fSmrg#include <stdio.h>
385416d8e44fSmrgint
3855352bf44eSmrgmain (void)
385616d8e44fSmrg{
385716d8e44fSmrgFILE *f = fopen ("conftest.out", "w");
385838d718bdSmrg if (!f)
385938d718bdSmrg  return 1;
386016d8e44fSmrg return ferror (f) || fclose (f) != 0;
386116d8e44fSmrg
386216d8e44fSmrg  ;
386316d8e44fSmrg  return 0;
386416d8e44fSmrg}
386516d8e44fSmrg_ACEOF
386616d8e44fSmrgac_clean_files="$ac_clean_files conftest.out"
386716d8e44fSmrg# Check that the compiler produces executables we can run.  If not, either
386816d8e44fSmrg# the compiler is broken, or we cross compile.
3869352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870352bf44eSmrgprintf %s "checking whether we are cross compiling... " >&6; }
387116d8e44fSmrgif test "$cross_compiling" != yes; then
387216d8e44fSmrg  { { ac_try="$ac_link"
387316d8e44fSmrgcase "(($ac_try" in
387416d8e44fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
387516d8e44fSmrg  *) ac_try_echo=$ac_try;;
387616d8e44fSmrgesac
387716d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
387916d8e44fSmrg  (eval "$ac_link") 2>&5
388016d8e44fSmrg  ac_status=$?
3881352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
388216d8e44fSmrg  test $ac_status = 0; }
388316d8e44fSmrg  if { ac_try='./conftest$ac_cv_exeext'
388416d8e44fSmrg  { { case "(($ac_try" in
388516d8e44fSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
388616d8e44fSmrg  *) ac_try_echo=$ac_try;;
388716d8e44fSmrgesac
388816d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
389016d8e44fSmrg  (eval "$ac_try") 2>&5
389116d8e44fSmrg  ac_status=$?
3892352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
389316d8e44fSmrg  test $ac_status = 0; }; }; then
389416d8e44fSmrg    cross_compiling=no
389516d8e44fSmrg  else
389616d8e44fSmrg    if test "$cross_compiling" = maybe; then
389716d8e44fSmrg	cross_compiling=yes
389816d8e44fSmrg    else
389938d718bdSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
390038d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3901352bf44eSmrgas_fn_error 77 "cannot run C compiled programs.
390238d718bdSmrgIf you meant to cross compile, use '--host'.
390338d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
390416d8e44fSmrg    fi
390516d8e44fSmrg  fi
390616d8e44fSmrgfi
3907352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908352bf44eSmrgprintf "%s\n" "$cross_compiling" >&6; }
390916d8e44fSmrg
391038d718bdSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext \
391138d718bdSmrg  conftest.o conftest.obj conftest.out
391216d8e44fSmrgac_clean_files=$ac_clean_files_save
3913352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914352bf44eSmrgprintf %s "checking for suffix of object files... " >&6; }
3915352bf44eSmrgif test ${ac_cv_objext+y}
3916352bf44eSmrgthen :
3917352bf44eSmrg  printf %s "(cached) " >&6
391838d718bdSmrgelse case e in #(
391938d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
392033c89af1Smrg/* end confdefs.h.  */
392133c89af1Smrg
392233c89af1Smrgint
3923352bf44eSmrgmain (void)
392433c89af1Smrg{
392533c89af1Smrg
392633c89af1Smrg  ;
392733c89af1Smrg  return 0;
392833c89af1Smrg}
392933c89af1Smrg_ACEOF
393033c89af1Smrgrm -f conftest.o conftest.obj
393116d8e44fSmrgif { { ac_try="$ac_compile"
393233c89af1Smrgcase "(($ac_try" in
393333c89af1Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
393433c89af1Smrg  *) ac_try_echo=$ac_try;;
393533c89af1Smrgesac
393616d8e44fSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937352bf44eSmrgprintf "%s\n" "$ac_try_echo"; } >&5
393833c89af1Smrg  (eval "$ac_compile") 2>&5
393933c89af1Smrg  ac_status=$?
3940352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941352bf44eSmrg  test $ac_status = 0; }
3942352bf44eSmrgthen :
394333c89af1Smrg  for ac_file in conftest.o conftest.obj conftest.*; do
394433c89af1Smrg  test -f "$ac_file" || continue;
394533c89af1Smrg  case $ac_file in
3946278eca22Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
394733c89af1Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
394833c89af1Smrg       break;;
394933c89af1Smrg  esac
395033c89af1Smrgdone
395138d718bdSmrgelse case e in #(
395238d718bdSmrg  e) printf "%s\n" "$as_me: failed program was:" >&5
395333c89af1Smrgsed 's/^/| /' conftest.$ac_ext >&5
395433c89af1Smrg
395538d718bdSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
395638d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
395716d8e44fSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
395838d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; } ;;
395938d718bdSmrgesac
396033c89af1Smrgfi
396138d718bdSmrgrm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
396238d718bdSmrgesac
396333c89af1Smrgfi
3964352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965352bf44eSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
396633c89af1SmrgOBJEXT=$ac_cv_objext
396733c89af1Smrgac_objext=$OBJEXT
3968352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3969352bf44eSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3970352bf44eSmrgif test ${ac_cv_c_compiler_gnu+y}
3971352bf44eSmrgthen :
3972352bf44eSmrg  printf %s "(cached) " >&6
397338d718bdSmrgelse case e in #(
397438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
397533c89af1Smrg/* end confdefs.h.  */
397633c89af1Smrg
397733c89af1Smrgint
3978352bf44eSmrgmain (void)
397933c89af1Smrg{
398033c89af1Smrg#ifndef __GNUC__
398133c89af1Smrg       choke me
398233c89af1Smrg#endif
398333c89af1Smrg
398433c89af1Smrg  ;
398533c89af1Smrg  return 0;
398633c89af1Smrg}
398733c89af1Smrg_ACEOF
3988352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
3989352bf44eSmrgthen :
399033c89af1Smrg  ac_compiler_gnu=yes
399138d718bdSmrgelse case e in #(
399238d718bdSmrg  e) ac_compiler_gnu=no ;;
399338d718bdSmrgesac
399433c89af1Smrgfi
3995352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
399633c89af1Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
399738d718bdSmrg ;;
399838d718bdSmrgesac
399933c89af1Smrgfi
4000352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001352bf44eSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4002352bf44eSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4003352bf44eSmrg
4004278eca22Smrgif test $ac_compiler_gnu = yes; then
4005278eca22Smrg  GCC=yes
4006278eca22Smrgelse
4007278eca22Smrg  GCC=
4008278eca22Smrgfi
4009352bf44eSmrgac_test_CFLAGS=${CFLAGS+y}
401033c89af1Smrgac_save_CFLAGS=$CFLAGS
4011352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4012352bf44eSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
4013352bf44eSmrgif test ${ac_cv_prog_cc_g+y}
4014352bf44eSmrgthen :
4015352bf44eSmrg  printf %s "(cached) " >&6
401638d718bdSmrgelse case e in #(
401738d718bdSmrg  e) ac_save_c_werror_flag=$ac_c_werror_flag
401833c89af1Smrg   ac_c_werror_flag=yes
401933c89af1Smrg   ac_cv_prog_cc_g=no
402033c89af1Smrg   CFLAGS="-g"
402116d8e44fSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
402233c89af1Smrg/* end confdefs.h.  */
402333c89af1Smrg
402433c89af1Smrgint
4025352bf44eSmrgmain (void)
402633c89af1Smrg{
402733c89af1Smrg
402833c89af1Smrg  ;
402933c89af1Smrg  return 0;
403033c89af1Smrg}
403133c89af1Smrg_ACEOF
4032352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4033352bf44eSmrgthen :
403433c89af1Smrg  ac_cv_prog_cc_g=yes
403538d718bdSmrgelse case e in #(
403638d718bdSmrg  e) CFLAGS=""
403716d8e44fSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
403833c89af1Smrg/* end confdefs.h.  */
403933c89af1Smrg
404033c89af1Smrgint
4041352bf44eSmrgmain (void)
404233c89af1Smrg{
404333c89af1Smrg
404433c89af1Smrg  ;
404533c89af1Smrg  return 0;
404633c89af1Smrg}
404733c89af1Smrg_ACEOF
4048352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4049352bf44eSmrgthen :
405033c89af1Smrg
405138d718bdSmrgelse case e in #(
405238d718bdSmrg  e) ac_c_werror_flag=$ac_save_c_werror_flag
405333c89af1Smrg	 CFLAGS="-g"
405416d8e44fSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
405533c89af1Smrg/* end confdefs.h.  */
405633c89af1Smrg
405733c89af1Smrgint
4058352bf44eSmrgmain (void)
405933c89af1Smrg{
406033c89af1Smrg
406133c89af1Smrg  ;
406233c89af1Smrg  return 0;
406333c89af1Smrg}
406433c89af1Smrg_ACEOF
4065352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4066352bf44eSmrgthen :
406733c89af1Smrg  ac_cv_prog_cc_g=yes
406833c89af1Smrgfi
406938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
407038d718bdSmrgesac
407133c89af1Smrgfi
407238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
407338d718bdSmrgesac
407433c89af1Smrgfi
4075352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
407638d718bdSmrg   ac_c_werror_flag=$ac_save_c_werror_flag ;;
407738d718bdSmrgesac
407833c89af1Smrgfi
4079352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080352bf44eSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4081352bf44eSmrgif test $ac_test_CFLAGS; then
408233c89af1Smrg  CFLAGS=$ac_save_CFLAGS
408333c89af1Smrgelif test $ac_cv_prog_cc_g = yes; then
408433c89af1Smrg  if test "$GCC" = yes; then
408533c89af1Smrg    CFLAGS="-g -O2"
408633c89af1Smrg  else
408733c89af1Smrg    CFLAGS="-g"
408833c89af1Smrg  fi
408933c89af1Smrgelse
409033c89af1Smrg  if test "$GCC" = yes; then
409133c89af1Smrg    CFLAGS="-O2"
409233c89af1Smrg  else
409333c89af1Smrg    CFLAGS=
409433c89af1Smrg  fi
409533c89af1Smrgfi
4096352bf44eSmrgac_prog_cc_stdc=no
4097352bf44eSmrgif test x$ac_prog_cc_stdc = xno
4098352bf44eSmrgthen :
4099352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4100352bf44eSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4101352bf44eSmrgif test ${ac_cv_prog_cc_c11+y}
4102352bf44eSmrgthen :
4103352bf44eSmrg  printf %s "(cached) " >&6
410438d718bdSmrgelse case e in #(
410538d718bdSmrg  e) ac_cv_prog_cc_c11=no
410633c89af1Smrgac_save_CC=$CC
410716d8e44fSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
410833c89af1Smrg/* end confdefs.h.  */
4109352bf44eSmrg$ac_c_conftest_c11_program
4110352bf44eSmrg_ACEOF
4111352bf44eSmrgfor ac_arg in '' -std=gnu11
4112352bf44eSmrgdo
4113352bf44eSmrg  CC="$ac_save_CC $ac_arg"
4114352bf44eSmrg  if ac_fn_c_try_compile "$LINENO"
4115352bf44eSmrgthen :
4116352bf44eSmrg  ac_cv_prog_cc_c11=$ac_arg
4117352bf44eSmrgfi
4118352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4119352bf44eSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4120352bf44eSmrgdone
4121352bf44eSmrgrm -f conftest.$ac_ext
412238d718bdSmrgCC=$ac_save_CC ;;
412338d718bdSmrgesac
4124352bf44eSmrgfi
412533c89af1Smrg
4126352bf44eSmrgif test "x$ac_cv_prog_cc_c11" = xno
4127352bf44eSmrgthen :
4128352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129352bf44eSmrgprintf "%s\n" "unsupported" >&6; }
413038d718bdSmrgelse case e in #(
413138d718bdSmrg  e) if test "x$ac_cv_prog_cc_c11" = x
4132352bf44eSmrgthen :
4133352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134352bf44eSmrgprintf "%s\n" "none needed" >&6; }
413538d718bdSmrgelse case e in #(
413638d718bdSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4137352bf44eSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
413838d718bdSmrg     CC="$CC $ac_cv_prog_cc_c11" ;;
413938d718bdSmrgesac
4140352bf44eSmrgfi
4141352bf44eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
414238d718bdSmrg  ac_prog_cc_stdc=c11 ;;
414338d718bdSmrgesac
4144352bf44eSmrgfi
4145352bf44eSmrgfi
4146352bf44eSmrgif test x$ac_prog_cc_stdc = xno
4147352bf44eSmrgthen :
4148352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4149352bf44eSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4150352bf44eSmrgif test ${ac_cv_prog_cc_c99+y}
4151352bf44eSmrgthen :
4152352bf44eSmrg  printf %s "(cached) " >&6
415338d718bdSmrgelse case e in #(
415438d718bdSmrg  e) ac_cv_prog_cc_c99=no
4155352bf44eSmrgac_save_CC=$CC
4156352bf44eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157352bf44eSmrg/* end confdefs.h.  */
4158352bf44eSmrg$ac_c_conftest_c99_program
4159352bf44eSmrg_ACEOF
4160352bf44eSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4161352bf44eSmrgdo
4162352bf44eSmrg  CC="$ac_save_CC $ac_arg"
4163352bf44eSmrg  if ac_fn_c_try_compile "$LINENO"
4164352bf44eSmrgthen :
4165352bf44eSmrg  ac_cv_prog_cc_c99=$ac_arg
4166352bf44eSmrgfi
4167352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4168352bf44eSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4169352bf44eSmrgdone
4170352bf44eSmrgrm -f conftest.$ac_ext
417138d718bdSmrgCC=$ac_save_CC ;;
417238d718bdSmrgesac
4173352bf44eSmrgfi
417433c89af1Smrg
4175352bf44eSmrgif test "x$ac_cv_prog_cc_c99" = xno
4176352bf44eSmrgthen :
4177352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178352bf44eSmrgprintf "%s\n" "unsupported" >&6; }
417938d718bdSmrgelse case e in #(
418038d718bdSmrg  e) if test "x$ac_cv_prog_cc_c99" = x
4181352bf44eSmrgthen :
4182352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183352bf44eSmrgprintf "%s\n" "none needed" >&6; }
418438d718bdSmrgelse case e in #(
418538d718bdSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4186352bf44eSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
418738d718bdSmrg     CC="$CC $ac_cv_prog_cc_c99" ;;
418838d718bdSmrgesac
4189352bf44eSmrgfi
4190352bf44eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
419138d718bdSmrg  ac_prog_cc_stdc=c99 ;;
419238d718bdSmrgesac
4193352bf44eSmrgfi
4194352bf44eSmrgfi
4195352bf44eSmrgif test x$ac_prog_cc_stdc = xno
4196352bf44eSmrgthen :
4197352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4198352bf44eSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4199352bf44eSmrgif test ${ac_cv_prog_cc_c89+y}
4200352bf44eSmrgthen :
4201352bf44eSmrg  printf %s "(cached) " >&6
420238d718bdSmrgelse case e in #(
420338d718bdSmrg  e) ac_cv_prog_cc_c89=no
4204352bf44eSmrgac_save_CC=$CC
4205352bf44eSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206352bf44eSmrg/* end confdefs.h.  */
4207352bf44eSmrg$ac_c_conftest_c89_program
420833c89af1Smrg_ACEOF
4209352bf44eSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
421033c89af1Smrgdo
421133c89af1Smrg  CC="$ac_save_CC $ac_arg"
4212352bf44eSmrg  if ac_fn_c_try_compile "$LINENO"
4213352bf44eSmrgthen :
421433c89af1Smrg  ac_cv_prog_cc_c89=$ac_arg
421533c89af1Smrgfi
4216352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
421733c89af1Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
421833c89af1Smrgdone
421933c89af1Smrgrm -f conftest.$ac_ext
422038d718bdSmrgCC=$ac_save_CC ;;
422138d718bdSmrgesac
422233c89af1Smrgfi
422333c89af1Smrg
4224352bf44eSmrgif test "x$ac_cv_prog_cc_c89" = xno
4225352bf44eSmrgthen :
4226352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227352bf44eSmrgprintf "%s\n" "unsupported" >&6; }
422838d718bdSmrgelse case e in #(
422938d718bdSmrg  e) if test "x$ac_cv_prog_cc_c89" = x
4230352bf44eSmrgthen :
4231352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232352bf44eSmrgprintf "%s\n" "none needed" >&6; }
423338d718bdSmrgelse case e in #(
423438d718bdSmrg  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235352bf44eSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
423638d718bdSmrg     CC="$CC $ac_cv_prog_cc_c89" ;;
423738d718bdSmrgesac
4238352bf44eSmrgfi
4239352bf44eSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
424038d718bdSmrg  ac_prog_cc_stdc=c89 ;;
424138d718bdSmrgesac
4242352bf44eSmrgfi
424316d8e44fSmrgfi
424433c89af1Smrg
424533c89af1Smrgac_ext=c
424633c89af1Smrgac_cpp='$CPP $CPPFLAGS'
424733c89af1Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
424833c89af1Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
424933c89af1Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
425033c89af1Smrg
4251352bf44eSmrg
4252352bf44eSmrg  ac_ext=c
4253ad47b356Smrgac_cpp='$CPP $CPPFLAGS'
4254ad47b356Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255ad47b356Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256ad47b356Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4257352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4258352bf44eSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4259352bf44eSmrgif test ${am_cv_prog_cc_c_o+y}
4260352bf44eSmrgthen :
4261352bf44eSmrg  printf %s "(cached) " >&6
426238d718bdSmrgelse case e in #(
426338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264ad47b356Smrg/* end confdefs.h.  */
4265ad47b356Smrg
4266ad47b356Smrgint
4267352bf44eSmrgmain (void)
4268ad47b356Smrg{
4269ad47b356Smrg
4270ad47b356Smrg  ;
4271ad47b356Smrg  return 0;
4272ad47b356Smrg}
4273ad47b356Smrg_ACEOF
4274ad47b356Smrg  # Make sure it works both with $CC and with simple cc.
4275ad47b356Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4276ad47b356Smrg  # compilers refuse to overwrite an existing .o file with -o,
4277ad47b356Smrg  # though they will create one.
4278ad47b356Smrg  am_cv_prog_cc_c_o=yes
4279ad47b356Smrg  for am_i in 1 2; do
4280ad47b356Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4281ad47b356Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4282ad47b356Smrg   ac_status=$?
4283ad47b356Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284ad47b356Smrg   (exit $ac_status); } \
4285ad47b356Smrg         && test -f conftest2.$ac_objext; then
4286ad47b356Smrg      : OK
4287ad47b356Smrg    else
4288ad47b356Smrg      am_cv_prog_cc_c_o=no
4289ad47b356Smrg      break
4290ad47b356Smrg    fi
4291ad47b356Smrg  done
4292ad47b356Smrg  rm -f core conftest*
429338d718bdSmrg  unset am_i ;;
429438d718bdSmrgesac
4295ad47b356Smrgfi
4296352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4297352bf44eSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4298ad47b356Smrgif test "$am_cv_prog_cc_c_o" != yes; then
4299ad47b356Smrg   # Losing compiler, so override with the script.
4300ad47b356Smrg   # FIXME: It is wrong to rewrite CC.
4301ad47b356Smrg   # But if we don't then we get into trouble of one sort or another.
4302ad47b356Smrg   # A longer-term fix would be to have automake use am__CC in this case,
4303ad47b356Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4304ad47b356Smrg   CC="$am_aux_dir/compile $CC"
4305ad47b356Smrgfi
4306ad47b356Smrgac_ext=c
4307ad47b356Smrgac_cpp='$CPP $CPPFLAGS'
4308ad47b356Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ad47b356Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ad47b356Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4311ad47b356Smrg
4312ad47b356Smrg
431333c89af1Smrgdepcc="$CC"   am_compiler_list=
431433c89af1Smrg
4315352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316352bf44eSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4317352bf44eSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4318352bf44eSmrgthen :
4319352bf44eSmrg  printf %s "(cached) " >&6
432038d718bdSmrgelse case e in #(
432138d718bdSmrg  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
432233c89af1Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
432333c89af1Smrg  # making bogus files that we don't know about and never remove.  For
432433c89af1Smrg  # instance it was reported that on HP-UX the gcc test will end up
4325ad47b356Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4326ad47b356Smrg  # in D".
4327988795beSmrg  rm -rf conftest.dir
432833c89af1Smrg  mkdir conftest.dir
432933c89af1Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
433033c89af1Smrg  # using a relative directory.
433133c89af1Smrg  cp "$am_depcomp" conftest.dir
433233c89af1Smrg  cd conftest.dir
433333c89af1Smrg  # We will build objects and dependencies in a subdirectory because
433433c89af1Smrg  # it helps to detect inapplicable dependency modes.  For instance
433533c89af1Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
433633c89af1Smrg  # side effect of compilation, but ICC will put the dependencies in
433733c89af1Smrg  # the current directory while Tru64 will put them in the object
433833c89af1Smrg  # directory.
433933c89af1Smrg  mkdir sub
434033c89af1Smrg
434133c89af1Smrg  am_cv_CC_dependencies_compiler_type=none
434233c89af1Smrg  if test "$am_compiler_list" = ""; then
434333c89af1Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
434433c89af1Smrg  fi
4345278eca22Smrg  am__universal=false
4346278eca22Smrg  case " $depcc " in #(
4347278eca22Smrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4348278eca22Smrg     esac
4349278eca22Smrg
435033c89af1Smrg  for depmode in $am_compiler_list; do
435133c89af1Smrg    # Setup a source with many dependencies, because some compilers
435233c89af1Smrg    # like to wrap large dependency lists on column 80 (with \), and
435333c89af1Smrg    # we should not choose a depcomp mode which is confused by this.
435433c89af1Smrg    #
435533c89af1Smrg    # We need to recreate these files for each test, as the compiler may
435633c89af1Smrg    # overwrite some of them when testing with obscure command lines.
435733c89af1Smrg    # This happens at least with the AIX C compiler.
435833c89af1Smrg    : > sub/conftest.c
435933c89af1Smrg    for i in 1 2 3 4 5 6; do
436033c89af1Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4361ad47b356Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4362ad47b356Smrg      # Solaris 10 /bin/sh.
4363ad47b356Smrg      echo '/* dummy */' > sub/conftst$i.h
436433c89af1Smrg    done
436533c89af1Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
436633c89af1Smrg
4367ad47b356Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4368278eca22Smrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4369ad47b356Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4370ad47b356Smrg    # versions had trouble with output in subdirs.
4371278eca22Smrg    am__obj=sub/conftest.${OBJEXT-o}
4372278eca22Smrg    am__minus_obj="-o $am__obj"
437333c89af1Smrg    case $depmode in
4374278eca22Smrg    gcc)
4375278eca22Smrg      # This depmode causes a compiler race in universal mode.
4376278eca22Smrg      test "$am__universal" = false || continue
4377278eca22Smrg      ;;
437833c89af1Smrg    nosideeffect)
4379ad47b356Smrg      # After this tag, mechanisms are not by side-effect, so they'll
4380ad47b356Smrg      # only be used when explicitly requested.
438133c89af1Smrg      if test "x$enable_dependency_tracking" = xyes; then
438233c89af1Smrg	continue
438333c89af1Smrg      else
438433c89af1Smrg	break
438533c89af1Smrg      fi
438633c89af1Smrg      ;;
4387988795beSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4388ad47b356Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4389278eca22Smrg      # not run yet.  These depmodes are late enough in the game, and
4390278eca22Smrg      # so weak that their functioning should not be impacted.
4391278eca22Smrg      am__obj=conftest.${OBJEXT-o}
4392278eca22Smrg      am__minus_obj=
4393278eca22Smrg      ;;
439433c89af1Smrg    none) break ;;
439533c89af1Smrg    esac
439633c89af1Smrg    if depmode=$depmode \
4397278eca22Smrg       source=sub/conftest.c object=$am__obj \
439833c89af1Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399352bf44eSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400352bf44eSmrg         >/dev/null 2>conftest.err &&
4401352bf44eSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402352bf44eSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403352bf44eSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404352bf44eSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405352bf44eSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4406352bf44eSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4407352bf44eSmrg      # that says an option was ignored or not supported.
4408352bf44eSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4409352bf44eSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4410352bf44eSmrg      # The diagnosis changed in icc 8.0:
4411352bf44eSmrg      #   icc: Command line remark: option '-MP' not supported
4412352bf44eSmrg      if (grep 'ignoring option' conftest.err ||
4413352bf44eSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414352bf44eSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4415352bf44eSmrg        break
4416352bf44eSmrg      fi
4417278eca22Smrg    fi
4418278eca22Smrg  done
4419278eca22Smrg
4420352bf44eSmrg  cd ..
4421352bf44eSmrg  rm -rf conftest.dir
4422278eca22Smrgelse
4423352bf44eSmrg  am_cv_CC_dependencies_compiler_type=none
4424278eca22Smrgfi
442538d718bdSmrg ;;
442638d718bdSmrgesac
4427278eca22Smrgfi
4428352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429352bf44eSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4430352bf44eSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431278eca22Smrg
4432352bf44eSmrg if
4433352bf44eSmrg  test "x$enable_dependency_tracking" != xno \
4434352bf44eSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435352bf44eSmrg  am__fastdepCC_TRUE=
4436352bf44eSmrg  am__fastdepCC_FALSE='#'
4437278eca22Smrgelse
4438352bf44eSmrg  am__fastdepCC_TRUE='#'
4439352bf44eSmrg  am__fastdepCC_FALSE=
4440278eca22Smrgfi
4441278eca22Smrg
4442278eca22Smrg
4443278eca22Smrg
4444352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4445352bf44eSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4446352bf44eSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4447352bf44eSmrgthen :
4448352bf44eSmrg  printf %s "(cached) " >&6
444938d718bdSmrgelse case e in #(
445038d718bdSmrg  e) ac_save_CFLAGS=$CFLAGS
4451352bf44eSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4452352bf44eSmrg   for ac_arg in '' -fno-builtin; do
4453352bf44eSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4454352bf44eSmrg     # This test program should *not* compile successfully.
4455352bf44eSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456278eca22Smrg/* end confdefs.h.  */
4457278eca22Smrg
4458278eca22Smrgint
4459352bf44eSmrgmain (void)
4460278eca22Smrg{
4461352bf44eSmrg(void) strchr;
4462278eca22Smrg  ;
4463278eca22Smrg  return 0;
4464278eca22Smrg}
4465278eca22Smrg_ACEOF
4466352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4467352bf44eSmrgthen :
4468278eca22Smrg
446938d718bdSmrgelse case e in #(
447038d718bdSmrg  e) # This test program should compile successfully.
4471352bf44eSmrg        # No library function is consistently available on
4472352bf44eSmrg        # freestanding implementations, so test against a dummy
4473352bf44eSmrg        # declaration.  Include always-available headers on the
4474352bf44eSmrg        # off chance that they somehow elicit warnings.
4475352bf44eSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476278eca22Smrg/* end confdefs.h.  */
4477352bf44eSmrg#include <float.h>
4478352bf44eSmrg#include <limits.h>
4479352bf44eSmrg#include <stdarg.h>
4480352bf44eSmrg#include <stddef.h>
4481352bf44eSmrgextern void ac_decl (int, char *);
4482278eca22Smrg
4483278eca22Smrgint
4484352bf44eSmrgmain (void)
4485278eca22Smrg{
4486352bf44eSmrg(void) ac_decl (0, (char *) 0);
4487352bf44eSmrg  (void) ac_decl;
4488352bf44eSmrg
4489352bf44eSmrg  ;
4490278eca22Smrg  return 0;
4491278eca22Smrg}
4492278eca22Smrg_ACEOF
4493352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4494352bf44eSmrgthen :
4495352bf44eSmrg  if test x"$ac_arg" = x
4496352bf44eSmrgthen :
4497352bf44eSmrg  ac_cv_c_undeclared_builtin_options='none needed'
449838d718bdSmrgelse case e in #(
449938d718bdSmrg  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
450038d718bdSmrgesac
4501278eca22Smrgfi
4502352bf44eSmrg          break
4503278eca22Smrgfi
450438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
450538d718bdSmrgesac
4506278eca22Smrgfi
4507352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4508352bf44eSmrg    done
4509352bf44eSmrg    CFLAGS=$ac_save_CFLAGS
451038d718bdSmrg   ;;
451138d718bdSmrgesac
4512352bf44eSmrgfi
4513352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4514352bf44eSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4515352bf44eSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4516352bf44eSmrg  'cannot detect') :
451738d718bdSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
451838d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4519352bf44eSmrgas_fn_error $? "cannot make $CC report undeclared builtins
452038d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; } ;; #(
4521352bf44eSmrg  'none needed') :
4522352bf44eSmrg    ac_c_undeclared_builtin_options='' ;; #(
4523352bf44eSmrg  *) :
4524352bf44eSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4525352bf44eSmrgesac
4526352bf44eSmrg
4527352bf44eSmrgac_header= ac_cache=
4528352bf44eSmrgfor ac_item in $ac_header_c_list
4529352bf44eSmrgdo
4530352bf44eSmrg  if test $ac_cache; then
4531352bf44eSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4532352bf44eSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4533352bf44eSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4534352bf44eSmrg    fi
4535352bf44eSmrg    ac_header= ac_cache=
4536352bf44eSmrg  elif test $ac_header; then
4537352bf44eSmrg    ac_cache=$ac_item
4538352bf44eSmrg  else
4539352bf44eSmrg    ac_header=$ac_item
4540352bf44eSmrg  fi
4541352bf44eSmrgdone
4542278eca22Smrg
4543278eca22Smrg
4544278eca22Smrg
4545278eca22Smrg
4546278eca22Smrg
4547278eca22Smrg
4548278eca22Smrg
4549278eca22Smrg
4550352bf44eSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4551352bf44eSmrgthen :
4552352bf44eSmrg
4553352bf44eSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4554352bf44eSmrg
4555352bf44eSmrgfi
4556352bf44eSmrg
4557278eca22Smrg
4558988795beSmrg
4559988795beSmrg
4560352bf44eSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4561352bf44eSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4562352bf44eSmrgthen :
4563988795beSmrg  CLANGCC="yes"
456438d718bdSmrgelse case e in #(
456538d718bdSmrg  e) CLANGCC="no" ;;
456638d718bdSmrgesac
4567988795beSmrgfi
4568352bf44eSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4569352bf44eSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4570352bf44eSmrgthen :
4571988795beSmrg  INTELCC="yes"
457238d718bdSmrgelse case e in #(
457338d718bdSmrg  e) INTELCC="no" ;;
457438d718bdSmrgesac
4575988795beSmrgfi
4576352bf44eSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4577352bf44eSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4578352bf44eSmrgthen :
4579988795beSmrg  SUNCC="yes"
458038d718bdSmrgelse case e in #(
458138d718bdSmrg  e) SUNCC="no" ;;
458238d718bdSmrgesac
4583988795beSmrgfi
4584988795beSmrg
4585988795beSmrg
4586988795beSmrg
4587988795beSmrg
4588ad47b356Smrg
4589ad47b356Smrg
4590ad47b356Smrg
4591ad47b356Smrg
459216d8e44fSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
459316d8e44fSmrg	if test -n "$ac_tool_prefix"; then
459416d8e44fSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
459516d8e44fSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
4598352bf44eSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4599352bf44eSmrgthen :
4600352bf44eSmrg  printf %s "(cached) " >&6
460138d718bdSmrgelse case e in #(
460238d718bdSmrg  e) case $PKG_CONFIG in
460316d8e44fSmrg  [\\/]* | ?:[\\/]*)
460416d8e44fSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
460516d8e44fSmrg  ;;
460616d8e44fSmrg  *)
460716d8e44fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
460816d8e44fSmrgfor as_dir in $PATH
4609278eca22Smrgdo
461016d8e44fSmrg  IFS=$as_save_IFS
4611352bf44eSmrg  case $as_dir in #(((
4612352bf44eSmrg    '') as_dir=./ ;;
4613352bf44eSmrg    */) ;;
4614352bf44eSmrg    *) as_dir=$as_dir/ ;;
4615352bf44eSmrg  esac
461616d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4617352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618352bf44eSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
462016d8e44fSmrg    break 2
462116d8e44fSmrg  fi
462216d8e44fSmrgdone
462316d8e44fSmrg  done
462416d8e44fSmrgIFS=$as_save_IFS
462516d8e44fSmrg
462616d8e44fSmrg  ;;
462738d718bdSmrgesac ;;
4628278eca22Smrgesac
462916d8e44fSmrgfi
463016d8e44fSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
463116d8e44fSmrgif test -n "$PKG_CONFIG"; then
4632352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4633352bf44eSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4634278eca22Smrgelse
4635352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636352bf44eSmrgprintf "%s\n" "no" >&6; }
4637278eca22Smrgfi
4638278eca22Smrg
4639278eca22Smrg
4640278eca22Smrgfi
464116d8e44fSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
464216d8e44fSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
464316d8e44fSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
464416d8e44fSmrgset dummy pkg-config; ac_word=$2
4645352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646352bf44eSmrgprintf %s "checking for $ac_word... " >&6; }
4647352bf44eSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4648352bf44eSmrgthen :
4649352bf44eSmrg  printf %s "(cached) " >&6
465038d718bdSmrgelse case e in #(
465138d718bdSmrg  e) case $ac_pt_PKG_CONFIG in
465216d8e44fSmrg  [\\/]* | ?:[\\/]*)
465316d8e44fSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
465416d8e44fSmrg  ;;
4655278eca22Smrg  *)
465616d8e44fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
465716d8e44fSmrgfor as_dir in $PATH
465816d8e44fSmrgdo
465916d8e44fSmrg  IFS=$as_save_IFS
4660352bf44eSmrg  case $as_dir in #(((
4661352bf44eSmrg    '') as_dir=./ ;;
4662352bf44eSmrg    */) ;;
4663352bf44eSmrg    *) as_dir=$as_dir/ ;;
4664352bf44eSmrg  esac
466516d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4666352bf44eSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4667352bf44eSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4668352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
466916d8e44fSmrg    break 2
467016d8e44fSmrg  fi
467116d8e44fSmrgdone
467216d8e44fSmrg  done
467316d8e44fSmrgIFS=$as_save_IFS
467416d8e44fSmrg
467516d8e44fSmrg  ;;
467638d718bdSmrgesac ;;
4677278eca22Smrgesac
467816d8e44fSmrgfi
467916d8e44fSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
468016d8e44fSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4681352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4682352bf44eSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
468316d8e44fSmrgelse
4684352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685352bf44eSmrgprintf "%s\n" "no" >&6; }
468616d8e44fSmrgfi
4687278eca22Smrg
468816d8e44fSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
468916d8e44fSmrg    PKG_CONFIG=""
469016d8e44fSmrg  else
469116d8e44fSmrg    case $cross_compiling:$ac_tool_warned in
469216d8e44fSmrgyes:)
4693352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694352bf44eSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
469516d8e44fSmrgac_tool_warned=yes ;;
469616d8e44fSmrgesac
469716d8e44fSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
469816d8e44fSmrg  fi
469916d8e44fSmrgelse
470016d8e44fSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
470116d8e44fSmrgfi
4702278eca22Smrg
470316d8e44fSmrgfi
470416d8e44fSmrgif test -n "$PKG_CONFIG"; then
470516d8e44fSmrg	_pkg_min_version=0.9.0
4706352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4707352bf44eSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
470816d8e44fSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4709352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710352bf44eSmrgprintf "%s\n" "yes" >&6; }
471116d8e44fSmrg	else
4712352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713352bf44eSmrgprintf "%s\n" "no" >&6; }
471416d8e44fSmrg		PKG_CONFIG=""
471516d8e44fSmrg	fi
471616d8e44fSmrgfi
4717278eca22Smrg
4718352bf44eSmrg
4719352bf44eSmrg  # Make sure we can run config.sub.
4720352bf44eSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4721352bf44eSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4722352bf44eSmrg
4723352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724352bf44eSmrgprintf %s "checking build system type... " >&6; }
4725352bf44eSmrgif test ${ac_cv_build+y}
4726352bf44eSmrgthen :
4727352bf44eSmrg  printf %s "(cached) " >&6
472838d718bdSmrgelse case e in #(
472938d718bdSmrg  e) ac_build_alias=$build_alias
4730278eca22Smrgtest "x$ac_build_alias" = x &&
4731352bf44eSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4732278eca22Smrgtest "x$ac_build_alias" = x &&
473316d8e44fSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4734352bf44eSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4735352bf44eSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
473638d718bdSmrg ;;
473738d718bdSmrgesac
4738278eca22Smrgfi
4739352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4740352bf44eSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4741278eca22Smrgcase $ac_cv_build in
4742278eca22Smrg*-*-*) ;;
474316d8e44fSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4744278eca22Smrgesac
4745278eca22Smrgbuild=$ac_cv_build
4746278eca22Smrgac_save_IFS=$IFS; IFS='-'
4747278eca22Smrgset x $ac_cv_build
4748278eca22Smrgshift
4749278eca22Smrgbuild_cpu=$1
4750278eca22Smrgbuild_vendor=$2
4751278eca22Smrgshift; shift
4752278eca22Smrg# Remember, the first character of IFS is used to create $*,
4753278eca22Smrg# except with old shells:
4754278eca22Smrgbuild_os=$*
4755278eca22SmrgIFS=$ac_save_IFS
4756278eca22Smrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757278eca22Smrg
4758278eca22Smrg
4759352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4760352bf44eSmrgprintf %s "checking host system type... " >&6; }
4761352bf44eSmrgif test ${ac_cv_host+y}
4762352bf44eSmrgthen :
4763352bf44eSmrg  printf %s "(cached) " >&6
476438d718bdSmrgelse case e in #(
476538d718bdSmrg  e) if test "x$host_alias" = x; then
4766278eca22Smrg  ac_cv_host=$ac_cv_build
4767278eca22Smrgelse
4768352bf44eSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4769352bf44eSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4770278eca22Smrgfi
477138d718bdSmrg ;;
477238d718bdSmrgesac
4773278eca22Smrgfi
4774352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4775352bf44eSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4776278eca22Smrgcase $ac_cv_host in
4777278eca22Smrg*-*-*) ;;
477816d8e44fSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4779278eca22Smrgesac
4780278eca22Smrghost=$ac_cv_host
4781278eca22Smrgac_save_IFS=$IFS; IFS='-'
4782278eca22Smrgset x $ac_cv_host
4783278eca22Smrgshift
4784278eca22Smrghost_cpu=$1
4785278eca22Smrghost_vendor=$2
4786278eca22Smrgshift; shift
4787278eca22Smrg# Remember, the first character of IFS is used to create $*,
4788278eca22Smrg# except with old shells:
4789278eca22Smrghost_os=$*
4790278eca22SmrgIFS=$ac_save_IFS
4791278eca22Smrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4792278eca22Smrg
4793278eca22Smrg
4794352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4795352bf44eSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4796352bf44eSmrgif test ${ac_cv_path_SED+y}
4797352bf44eSmrgthen :
4798352bf44eSmrg  printf %s "(cached) " >&6
479938d718bdSmrgelse case e in #(
480038d718bdSmrg  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
480116d8e44fSmrg     for ac_i in 1 2 3 4 5 6 7; do
480216d8e44fSmrg       ac_script="$ac_script$as_nl$ac_script"
480316d8e44fSmrg     done
480416d8e44fSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
480516d8e44fSmrg     { ac_script=; unset ac_script;}
480616d8e44fSmrg     if test -z "$SED"; then
480716d8e44fSmrg  ac_path_SED_found=false
480816d8e44fSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
480916d8e44fSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
481016d8e44fSmrgfor as_dir in $PATH
481116d8e44fSmrgdo
481216d8e44fSmrg  IFS=$as_save_IFS
4813352bf44eSmrg  case $as_dir in #(((
4814352bf44eSmrg    '') as_dir=./ ;;
4815352bf44eSmrg    */) ;;
4816352bf44eSmrg    *) as_dir=$as_dir/ ;;
4817352bf44eSmrg  esac
4818352bf44eSmrg    for ac_prog in sed gsed
4819352bf44eSmrg   do
482016d8e44fSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4821352bf44eSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4822ad47b356Smrg      as_fn_executable_p "$ac_path_SED" || continue
482316d8e44fSmrg# Check for GNU ac_path_SED and select it if it is found.
482416d8e44fSmrg  # Check for GNU $ac_path_SED
482538d718bdSmrgcase `"$ac_path_SED" --version 2>&1` in #(
482616d8e44fSmrg*GNU*)
482716d8e44fSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
482838d718bdSmrg#(
482916d8e44fSmrg*)
483016d8e44fSmrg  ac_count=0
4831352bf44eSmrg  printf %s 0123456789 >"conftest.in"
483216d8e44fSmrg  while :
483316d8e44fSmrg  do
483416d8e44fSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
483516d8e44fSmrg    mv "conftest.tmp" "conftest.in"
483616d8e44fSmrg    cp "conftest.in" "conftest.nl"
4837352bf44eSmrg    printf "%s\n" '' >> "conftest.nl"
483816d8e44fSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
483916d8e44fSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
484016d8e44fSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
484116d8e44fSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
484216d8e44fSmrg      # Best one so far, save it but keep looking for a better one
484316d8e44fSmrg      ac_cv_path_SED="$ac_path_SED"
484416d8e44fSmrg      ac_path_SED_max=$ac_count
484516d8e44fSmrg    fi
484616d8e44fSmrg    # 10*(2^10) chars as input seems more than enough
484716d8e44fSmrg    test $ac_count -gt 10 && break
484816d8e44fSmrg  done
484916d8e44fSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850278eca22Smrgesac
4851278eca22Smrg
485216d8e44fSmrg      $ac_path_SED_found && break 3
485316d8e44fSmrg    done
485416d8e44fSmrg  done
485516d8e44fSmrg  done
485616d8e44fSmrgIFS=$as_save_IFS
485716d8e44fSmrg  if test -z "$ac_cv_path_SED"; then
485816d8e44fSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
485916d8e44fSmrg  fi
486016d8e44fSmrgelse
486116d8e44fSmrg  ac_cv_path_SED=$SED
4862278eca22Smrgfi
486338d718bdSmrg ;;
486438d718bdSmrgesac
4865278eca22Smrgfi
4866352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867352bf44eSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
486816d8e44fSmrg SED="$ac_cv_path_SED"
486916d8e44fSmrg  rm -f conftest.sed
487016d8e44fSmrg
487116d8e44fSmrg
487216d8e44fSmrg
487316d8e44fSmrg
487416d8e44fSmrg
4875988795beSmrg
4876988795beSmrg# Check whether --enable-selective-werror was given.
4877352bf44eSmrgif test ${enable_selective_werror+y}
4878352bf44eSmrgthen :
4879988795beSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
488038d718bdSmrgelse case e in #(
488138d718bdSmrg  e) SELECTIVE_WERROR=yes ;;
488238d718bdSmrgesac
4883988795beSmrgfi
4884988795beSmrg
4885988795beSmrg
4886988795beSmrg
4887988795beSmrg
4888988795beSmrg
4889988795beSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4890988795beSmrgif test "x$SUNCC" = "xyes"; then
4891988795beSmrg    BASE_CFLAGS="-v"
4892278eca22Smrgelse
4893988795beSmrg    BASE_CFLAGS=""
4894278eca22Smrgfi
4895278eca22Smrg
4896988795beSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4897988795beSmrg
4898988795beSmrg
4899988795beSmrg
4900988795beSmrg
4901988795beSmrg
4902988795beSmrg
4903988795beSmrg
4904988795beSmrg
4905988795beSmrg
4906988795beSmrg
4907988795beSmrg
4908988795beSmrg
4909988795beSmrg
4910988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4911988795beSmrg
4912988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4917352bf44eSmrgthen :
4918352bf44eSmrg  printf %s "(cached) " >&6
491938d718bdSmrgelse case e in #(
492038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921988795beSmrg/* end confdefs.h.  */
4922988795beSmrgint i;
4923988795beSmrg_ACEOF
4924352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4925352bf44eSmrgthen :
4926988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
492738d718bdSmrgelse case e in #(
492838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
492938d718bdSmrgesac
4930988795beSmrgfi
493138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
493238d718bdSmrgesac
4933988795beSmrgfi
4934352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4938988795beSmrgfi
4939988795beSmrg
4940988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943988795beSmrg	fi
4944988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4948352bf44eSmrgthen :
4949352bf44eSmrg  printf %s "(cached) " >&6
495038d718bdSmrgelse case e in #(
495138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952988795beSmrg/* end confdefs.h.  */
4953988795beSmrgint i;
4954988795beSmrg_ACEOF
4955352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
4956352bf44eSmrgthen :
4957988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
495838d718bdSmrgelse case e in #(
495938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
496038d718bdSmrgesac
4961988795beSmrgfi
496238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
496338d718bdSmrgesac
4964988795beSmrgfi
4965352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4969278eca22Smrgfi
4970278eca22Smrg
4971988795beSmrgfound="no"
4972278eca22Smrg
4973988795beSmrg	if test $found = "no" ; then
4974ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976988795beSmrg		fi
4977278eca22Smrg
4978ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4979988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980988795beSmrg		fi
4981278eca22Smrg
4982988795beSmrg		CFLAGS="$CFLAGS -Wall"
4983278eca22Smrg
4984352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4985352bf44eSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
4986988795beSmrg		cacheid=xorg_cv_cc_flag__Wall
4987352bf44eSmrg		if eval test \${$cacheid+y}
4988352bf44eSmrgthen :
4989352bf44eSmrg  printf %s "(cached) " >&6
499038d718bdSmrgelse case e in #(
499138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992988795beSmrg/* end confdefs.h.  */
4993988795beSmrgint i;
4994988795beSmrgint
4995352bf44eSmrgmain (void)
4996988795beSmrg{
4997278eca22Smrg
4998988795beSmrg  ;
4999988795beSmrg  return 0;
5000988795beSmrg}
5001988795beSmrg_ACEOF
5002352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5003352bf44eSmrgthen :
5004988795beSmrg  eval $cacheid=yes
500538d718bdSmrgelse case e in #(
500638d718bdSmrg  e) eval $cacheid=no ;;
500738d718bdSmrgesac
5008988795beSmrgfi
5009352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
501038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
501138d718bdSmrgesac
5012278eca22Smrgfi
5013278eca22Smrg
5014988795beSmrg
5015988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5016988795beSmrg
5017988795beSmrg		eval supported=\$$cacheid
5018352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5020988795beSmrg		if test "$supported" = "yes" ; then
5021988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5022988795beSmrg			found="yes"
5023988795beSmrg		fi
5024988795beSmrg	fi
5025988795beSmrg
5026988795beSmrg
5027988795beSmrg
5028988795beSmrg
5029988795beSmrg
5030988795beSmrg
5031988795beSmrg
5032988795beSmrg
5033988795beSmrg
5034988795beSmrg
5035988795beSmrg
5036988795beSmrg
5037988795beSmrg
5038988795beSmrg
5039988795beSmrg
5040988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5041988795beSmrg
5042988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5047352bf44eSmrgthen :
5048352bf44eSmrg  printf %s "(cached) " >&6
504938d718bdSmrgelse case e in #(
505038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051988795beSmrg/* end confdefs.h.  */
5052988795beSmrgint i;
5053988795beSmrg_ACEOF
5054352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5055352bf44eSmrgthen :
5056988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
505738d718bdSmrgelse case e in #(
505838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
505938d718bdSmrgesac
5060988795beSmrgfi
506138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
506238d718bdSmrgesac
5063988795beSmrgfi
5064352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5065352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5066988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5067988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5068278eca22Smrgfi
5069278eca22Smrg
5070988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5071988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5072988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5073988795beSmrg	fi
5074988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5075352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5076352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5077352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5078352bf44eSmrgthen :
5079352bf44eSmrg  printf %s "(cached) " >&6
508038d718bdSmrgelse case e in #(
508138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082988795beSmrg/* end confdefs.h.  */
5083988795beSmrgint i;
5084988795beSmrg_ACEOF
5085352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5086352bf44eSmrgthen :
5087988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
508838d718bdSmrgelse case e in #(
508938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
509038d718bdSmrgesac
5091988795beSmrgfi
509238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
509338d718bdSmrgesac
5094988795beSmrgfi
5095352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5096352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5097988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5098988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5099988795beSmrgfi
5100988795beSmrg
5101988795beSmrgfound="no"
5102988795beSmrg
5103988795beSmrg	if test $found = "no" ; then
5104ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106988795beSmrg		fi
5107988795beSmrg
5108ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5109988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110988795beSmrg		fi
5111988795beSmrg
5112988795beSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5113988795beSmrg
5114352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5115352bf44eSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5116988795beSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5117352bf44eSmrg		if eval test \${$cacheid+y}
5118352bf44eSmrgthen :
5119352bf44eSmrg  printf %s "(cached) " >&6
512038d718bdSmrgelse case e in #(
512138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122988795beSmrg/* end confdefs.h.  */
5123988795beSmrgint i;
5124988795beSmrgint
5125352bf44eSmrgmain (void)
5126988795beSmrg{
5127988795beSmrg
5128988795beSmrg  ;
5129988795beSmrg  return 0;
5130988795beSmrg}
5131988795beSmrg_ACEOF
5132352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5133352bf44eSmrgthen :
5134988795beSmrg  eval $cacheid=yes
513538d718bdSmrgelse case e in #(
513638d718bdSmrg  e) eval $cacheid=no ;;
513738d718bdSmrgesac
5138988795beSmrgfi
5139352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
514038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
514138d718bdSmrgesac
5142988795beSmrgfi
5143988795beSmrg
5144988795beSmrg
5145988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5146988795beSmrg
5147988795beSmrg		eval supported=\$$cacheid
5148352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5149352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5150988795beSmrg		if test "$supported" = "yes" ; then
5151988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5152988795beSmrg			found="yes"
5153988795beSmrg		fi
5154988795beSmrg	fi
5155988795beSmrg
5156988795beSmrg
5157988795beSmrg
5158988795beSmrg
5159988795beSmrg
5160988795beSmrg
5161988795beSmrg
5162988795beSmrg
5163988795beSmrg
5164988795beSmrg
5165988795beSmrg
5166988795beSmrg
5167988795beSmrg
5168988795beSmrg
5169988795beSmrg
5170988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5171988795beSmrg
5172988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177352bf44eSmrgthen :
5178352bf44eSmrg  printf %s "(cached) " >&6
517938d718bdSmrgelse case e in #(
518038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181988795beSmrg/* end confdefs.h.  */
5182988795beSmrgint i;
5183988795beSmrg_ACEOF
5184352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5185352bf44eSmrgthen :
5186988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
518738d718bdSmrgelse case e in #(
518838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
518938d718bdSmrgesac
5190988795beSmrgfi
519138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
519238d718bdSmrgesac
5193988795beSmrgfi
5194352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
519833c89af1Smrgfi
5199278eca22Smrg
5200988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203278eca22Smrg	fi
5204988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5208352bf44eSmrgthen :
5209352bf44eSmrg  printf %s "(cached) " >&6
521038d718bdSmrgelse case e in #(
521138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212988795beSmrg/* end confdefs.h.  */
5213988795beSmrgint i;
5214988795beSmrg_ACEOF
5215352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5216352bf44eSmrgthen :
5217988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
521838d718bdSmrgelse case e in #(
521938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
522038d718bdSmrgesac
5221988795beSmrgfi
522238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
522338d718bdSmrgesac
5224988795beSmrgfi
5225352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5226352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5227988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5228988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5229988795beSmrgfi
5230988795beSmrg
5231988795beSmrgfound="no"
5232988795beSmrg
5233988795beSmrg	if test $found = "no" ; then
5234ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236988795beSmrg		fi
5237988795beSmrg
5238ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5239988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240988795beSmrg		fi
5241988795beSmrg
5242988795beSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
5243988795beSmrg
5244352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5245352bf44eSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5246988795beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5247352bf44eSmrg		if eval test \${$cacheid+y}
5248352bf44eSmrgthen :
5249352bf44eSmrg  printf %s "(cached) " >&6
525038d718bdSmrgelse case e in #(
525138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252988795beSmrg/* end confdefs.h.  */
5253988795beSmrgint i;
5254988795beSmrgint
5255352bf44eSmrgmain (void)
5256988795beSmrg{
5257988795beSmrg
5258988795beSmrg  ;
5259988795beSmrg  return 0;
5260988795beSmrg}
5261988795beSmrg_ACEOF
5262352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5263352bf44eSmrgthen :
5264988795beSmrg  eval $cacheid=yes
526538d718bdSmrgelse case e in #(
526638d718bdSmrg  e) eval $cacheid=no ;;
526738d718bdSmrgesac
5268988795beSmrgfi
5269352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
527038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
527138d718bdSmrgesac
5272278eca22Smrgfi
5273988795beSmrg
5274988795beSmrg
5275988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5276988795beSmrg
5277988795beSmrg		eval supported=\$$cacheid
5278352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5279352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5280988795beSmrg		if test "$supported" = "yes" ; then
5281988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5282988795beSmrg			found="yes"
5283988795beSmrg		fi
5284988795beSmrg	fi
5285988795beSmrg
5286988795beSmrg
5287988795beSmrg
5288988795beSmrg
5289988795beSmrg
5290988795beSmrg
5291988795beSmrg
5292988795beSmrg
5293988795beSmrg
5294988795beSmrg
5295988795beSmrg
5296988795beSmrg
5297988795beSmrg
5298988795beSmrg
5299988795beSmrg
5300988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5301988795beSmrg
5302988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5303988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5305352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5306352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5307352bf44eSmrgthen :
5308352bf44eSmrg  printf %s "(cached) " >&6
530938d718bdSmrgelse case e in #(
531038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311988795beSmrg/* end confdefs.h.  */
5312988795beSmrgint i;
5313988795beSmrg_ACEOF
5314352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5315352bf44eSmrgthen :
5316988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
531738d718bdSmrgelse case e in #(
531838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
531938d718bdSmrgesac
5320988795beSmrgfi
532138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
532238d718bdSmrgesac
5323988795beSmrgfi
5324352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5325352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5326988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5327988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5328988795beSmrgfi
5329988795beSmrg
5330988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5331988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333988795beSmrg	fi
5334988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5336352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5337352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5338352bf44eSmrgthen :
5339352bf44eSmrg  printf %s "(cached) " >&6
534038d718bdSmrgelse case e in #(
534138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342988795beSmrg/* end confdefs.h.  */
5343988795beSmrgint i;
5344988795beSmrg_ACEOF
5345352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5346352bf44eSmrgthen :
5347988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
534838d718bdSmrgelse case e in #(
534938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
535038d718bdSmrgesac
5351988795beSmrgfi
535238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
535338d718bdSmrgesac
5354988795beSmrgfi
5355352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5356352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5357988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5358988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5359988795beSmrgfi
5360988795beSmrg
5361988795beSmrgfound="no"
5362988795beSmrg
5363988795beSmrg	if test $found = "no" ; then
5364ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5365988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366988795beSmrg		fi
5367988795beSmrg
5368ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5369988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370988795beSmrg		fi
5371988795beSmrg
5372988795beSmrg		CFLAGS="$CFLAGS -Wformat=2"
5373988795beSmrg
5374352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5375352bf44eSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5376ad47b356Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
5377352bf44eSmrg		if eval test \${$cacheid+y}
5378352bf44eSmrgthen :
5379352bf44eSmrg  printf %s "(cached) " >&6
538038d718bdSmrgelse case e in #(
538138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382988795beSmrg/* end confdefs.h.  */
5383988795beSmrgint i;
5384988795beSmrgint
5385352bf44eSmrgmain (void)
5386988795beSmrg{
5387988795beSmrg
5388988795beSmrg  ;
5389988795beSmrg  return 0;
5390988795beSmrg}
5391988795beSmrg_ACEOF
5392352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5393352bf44eSmrgthen :
5394988795beSmrg  eval $cacheid=yes
539538d718bdSmrgelse case e in #(
539638d718bdSmrg  e) eval $cacheid=no ;;
539738d718bdSmrgesac
5398988795beSmrgfi
5399352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
540038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
540138d718bdSmrgesac
5402988795beSmrgfi
5403988795beSmrg
5404988795beSmrg
5405988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5406988795beSmrg
5407988795beSmrg		eval supported=\$$cacheid
5408352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5410988795beSmrg		if test "$supported" = "yes" ; then
5411988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5412988795beSmrg			found="yes"
5413988795beSmrg		fi
5414988795beSmrg	fi
5415988795beSmrg
5416988795beSmrg	if test $found = "no" ; then
5417ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5418988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419988795beSmrg		fi
5420988795beSmrg
5421ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5422988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423988795beSmrg		fi
5424988795beSmrg
5425988795beSmrg		CFLAGS="$CFLAGS -Wformat"
5426988795beSmrg
5427352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5428352bf44eSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5429988795beSmrg		cacheid=xorg_cv_cc_flag__Wformat
5430352bf44eSmrg		if eval test \${$cacheid+y}
5431352bf44eSmrgthen :
5432352bf44eSmrg  printf %s "(cached) " >&6
543338d718bdSmrgelse case e in #(
543438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435988795beSmrg/* end confdefs.h.  */
5436988795beSmrgint i;
5437988795beSmrgint
5438352bf44eSmrgmain (void)
5439988795beSmrg{
5440988795beSmrg
5441988795beSmrg  ;
5442988795beSmrg  return 0;
5443988795beSmrg}
5444988795beSmrg_ACEOF
5445352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5446352bf44eSmrgthen :
5447988795beSmrg  eval $cacheid=yes
544838d718bdSmrgelse case e in #(
544938d718bdSmrg  e) eval $cacheid=no ;;
545038d718bdSmrgesac
5451988795beSmrgfi
5452352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
545338d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
545438d718bdSmrgesac
5455988795beSmrgfi
5456988795beSmrg
5457988795beSmrg
5458988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5459988795beSmrg
5460988795beSmrg		eval supported=\$$cacheid
5461352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5463988795beSmrg		if test "$supported" = "yes" ; then
5464988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5465988795beSmrg			found="yes"
5466988795beSmrg		fi
5467988795beSmrg	fi
5468988795beSmrg
5469988795beSmrg
5470988795beSmrg
5471988795beSmrg
5472988795beSmrg
5473988795beSmrg
5474988795beSmrg
5475988795beSmrg
5476988795beSmrg
5477988795beSmrg
5478988795beSmrg
5479988795beSmrg
5480988795beSmrg
5481988795beSmrg
5482988795beSmrg
5483988795beSmrg
5484988795beSmrg
5485988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5486988795beSmrg
5487988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5488988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5489352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5490352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5491352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5492352bf44eSmrgthen :
5493352bf44eSmrg  printf %s "(cached) " >&6
549438d718bdSmrgelse case e in #(
549538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496988795beSmrg/* end confdefs.h.  */
5497988795beSmrgint i;
5498988795beSmrg_ACEOF
5499352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5500352bf44eSmrgthen :
5501988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
550238d718bdSmrgelse case e in #(
550338d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
550438d718bdSmrgesac
5505988795beSmrgfi
550638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
550738d718bdSmrgesac
5508988795beSmrgfi
5509352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5510352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5511988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5512988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5513988795beSmrgfi
5514988795beSmrg
5515988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5516988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5517988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518988795beSmrg	fi
5519988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5521352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5522352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5523352bf44eSmrgthen :
5524352bf44eSmrg  printf %s "(cached) " >&6
552538d718bdSmrgelse case e in #(
552638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527988795beSmrg/* end confdefs.h.  */
5528988795beSmrgint i;
5529988795beSmrg_ACEOF
5530352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5531352bf44eSmrgthen :
5532988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
553338d718bdSmrgelse case e in #(
553438d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
553538d718bdSmrgesac
5536988795beSmrgfi
553738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
553838d718bdSmrgesac
5539988795beSmrgfi
5540352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5544988795beSmrgfi
5545988795beSmrg
5546988795beSmrgfound="no"
5547988795beSmrg
5548988795beSmrg	if test $found = "no" ; then
5549ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551988795beSmrg		fi
5552988795beSmrg
5553ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5554988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555988795beSmrg		fi
5556988795beSmrg
5557988795beSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5558988795beSmrg
5559352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5560352bf44eSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5561988795beSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5562352bf44eSmrg		if eval test \${$cacheid+y}
5563352bf44eSmrgthen :
5564352bf44eSmrg  printf %s "(cached) " >&6
556538d718bdSmrgelse case e in #(
556638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567988795beSmrg/* end confdefs.h.  */
5568988795beSmrgint i;
5569988795beSmrgint
5570352bf44eSmrgmain (void)
5571988795beSmrg{
5572988795beSmrg
5573988795beSmrg  ;
5574988795beSmrg  return 0;
5575988795beSmrg}
5576988795beSmrg_ACEOF
5577352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5578352bf44eSmrgthen :
5579988795beSmrg  eval $cacheid=yes
558038d718bdSmrgelse case e in #(
558138d718bdSmrg  e) eval $cacheid=no ;;
558238d718bdSmrgesac
5583988795beSmrgfi
5584352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
558538d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
558638d718bdSmrgesac
5587988795beSmrgfi
5588988795beSmrg
5589988795beSmrg
5590988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5591988795beSmrg
5592988795beSmrg		eval supported=\$$cacheid
5593352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5595988795beSmrg		if test "$supported" = "yes" ; then
5596988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5597988795beSmrg			found="yes"
5598988795beSmrg		fi
5599988795beSmrg	fi
5600988795beSmrg
5601988795beSmrg
5602988795beSmrg
5603988795beSmrg
5604988795beSmrg
5605988795beSmrg
5606988795beSmrg
5607988795beSmrg
5608988795beSmrg
5609988795beSmrg
5610988795beSmrg
5611988795beSmrg
5612988795beSmrg
5613988795beSmrg
5614988795beSmrg
5615988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5616988795beSmrg
5617988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5622352bf44eSmrgthen :
5623352bf44eSmrg  printf %s "(cached) " >&6
562438d718bdSmrgelse case e in #(
562538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626988795beSmrg/* end confdefs.h.  */
5627988795beSmrgint i;
5628988795beSmrg_ACEOF
5629352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5630352bf44eSmrgthen :
5631988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
563238d718bdSmrgelse case e in #(
563338d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
563438d718bdSmrgesac
5635988795beSmrgfi
563638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
563738d718bdSmrgesac
5638988795beSmrgfi
5639352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5640352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5641988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5642988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5643988795beSmrgfi
5644988795beSmrg
5645988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5646988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5647988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648988795beSmrg	fi
5649988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5651352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5652352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5653352bf44eSmrgthen :
5654352bf44eSmrg  printf %s "(cached) " >&6
565538d718bdSmrgelse case e in #(
565638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657988795beSmrg/* end confdefs.h.  */
5658988795beSmrgint i;
5659988795beSmrg_ACEOF
5660352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5661352bf44eSmrgthen :
5662988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
566338d718bdSmrgelse case e in #(
566438d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
566538d718bdSmrgesac
5666988795beSmrgfi
566738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
566838d718bdSmrgesac
5669988795beSmrgfi
5670352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5674988795beSmrgfi
5675988795beSmrg
5676988795beSmrgfound="no"
5677988795beSmrg
5678988795beSmrg	if test $found = "no" ; then
5679ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681988795beSmrg		fi
5682988795beSmrg
5683ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685988795beSmrg		fi
5686988795beSmrg
5687988795beSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5688988795beSmrg
5689352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5690352bf44eSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5691988795beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5692352bf44eSmrg		if eval test \${$cacheid+y}
5693352bf44eSmrgthen :
5694352bf44eSmrg  printf %s "(cached) " >&6
569538d718bdSmrgelse case e in #(
569638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697988795beSmrg/* end confdefs.h.  */
5698988795beSmrgint i;
5699988795beSmrgint
5700352bf44eSmrgmain (void)
5701988795beSmrg{
5702988795beSmrg
5703988795beSmrg  ;
5704988795beSmrg  return 0;
5705988795beSmrg}
5706988795beSmrg_ACEOF
5707352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5708352bf44eSmrgthen :
5709988795beSmrg  eval $cacheid=yes
571038d718bdSmrgelse case e in #(
571138d718bdSmrg  e) eval $cacheid=no ;;
571238d718bdSmrgesac
5713988795beSmrgfi
5714352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
571538d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
571638d718bdSmrgesac
5717988795beSmrgfi
5718988795beSmrg
5719988795beSmrg
5720988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5721988795beSmrg
5722988795beSmrg		eval supported=\$$cacheid
5723352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5724352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5725988795beSmrg		if test "$supported" = "yes" ; then
5726988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5727988795beSmrg			found="yes"
5728988795beSmrg		fi
5729988795beSmrg	fi
5730988795beSmrg
5731988795beSmrg
5732988795beSmrg
5733988795beSmrg
5734988795beSmrg
5735988795beSmrg
5736988795beSmrg
5737988795beSmrg
5738988795beSmrg
5739988795beSmrg
5740988795beSmrg
5741988795beSmrg
5742988795beSmrg
5743988795beSmrg
5744988795beSmrg
5745988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5746988795beSmrg
5747988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5752352bf44eSmrgthen :
5753352bf44eSmrg  printf %s "(cached) " >&6
575438d718bdSmrgelse case e in #(
575538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756988795beSmrg/* end confdefs.h.  */
5757988795beSmrgint i;
5758988795beSmrg_ACEOF
5759352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5760352bf44eSmrgthen :
5761988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
576238d718bdSmrgelse case e in #(
576338d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
576438d718bdSmrgesac
5765988795beSmrgfi
576638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
576738d718bdSmrgesac
5768988795beSmrgfi
5769352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5770352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5771988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5772988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5773988795beSmrgfi
5774988795beSmrg
5775988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5776988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778988795beSmrg	fi
5779988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5781352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5782352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5783352bf44eSmrgthen :
5784352bf44eSmrg  printf %s "(cached) " >&6
578538d718bdSmrgelse case e in #(
578638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787988795beSmrg/* end confdefs.h.  */
5788988795beSmrgint i;
5789988795beSmrg_ACEOF
5790352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5791352bf44eSmrgthen :
5792988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
579338d718bdSmrgelse case e in #(
579438d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
579538d718bdSmrgesac
5796988795beSmrgfi
579738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
579838d718bdSmrgesac
5799988795beSmrgfi
5800352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5801352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5802988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5803988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5804988795beSmrgfi
5805988795beSmrg
5806988795beSmrgfound="no"
5807988795beSmrg
5808988795beSmrg	if test $found = "no" ; then
5809ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811988795beSmrg		fi
5812988795beSmrg
5813ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5814988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815988795beSmrg		fi
5816988795beSmrg
5817988795beSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5818988795beSmrg
5819352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5820352bf44eSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5821988795beSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5822352bf44eSmrg		if eval test \${$cacheid+y}
5823352bf44eSmrgthen :
5824352bf44eSmrg  printf %s "(cached) " >&6
582538d718bdSmrgelse case e in #(
582638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827988795beSmrg/* end confdefs.h.  */
5828988795beSmrgint i;
5829988795beSmrgint
5830352bf44eSmrgmain (void)
5831988795beSmrg{
5832988795beSmrg
5833988795beSmrg  ;
5834988795beSmrg  return 0;
5835988795beSmrg}
5836988795beSmrg_ACEOF
5837352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5838352bf44eSmrgthen :
5839988795beSmrg  eval $cacheid=yes
584038d718bdSmrgelse case e in #(
584138d718bdSmrg  e) eval $cacheid=no ;;
584238d718bdSmrgesac
5843988795beSmrgfi
5844352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
584538d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
584638d718bdSmrgesac
5847988795beSmrgfi
5848988795beSmrg
5849988795beSmrg
5850988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5851988795beSmrg
5852988795beSmrg		eval supported=\$$cacheid
5853352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5854352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5855988795beSmrg		if test "$supported" = "yes" ; then
5856988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5857988795beSmrg			found="yes"
5858988795beSmrg		fi
5859988795beSmrg	fi
5860988795beSmrg
5861988795beSmrg
5862988795beSmrg
5863988795beSmrg
5864988795beSmrg
5865988795beSmrg
5866988795beSmrg
5867988795beSmrg
5868988795beSmrg
5869988795beSmrg
5870988795beSmrg
5871988795beSmrg
5872988795beSmrg
5873988795beSmrg
5874988795beSmrg
5875988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5876988795beSmrg
5877988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5878988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5880352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5881352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5882352bf44eSmrgthen :
5883352bf44eSmrg  printf %s "(cached) " >&6
588438d718bdSmrgelse case e in #(
588538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886988795beSmrg/* end confdefs.h.  */
5887988795beSmrgint i;
5888988795beSmrg_ACEOF
5889352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5890352bf44eSmrgthen :
5891988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
589238d718bdSmrgelse case e in #(
589338d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
589438d718bdSmrgesac
5895988795beSmrgfi
589638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
589738d718bdSmrgesac
5898988795beSmrgfi
5899352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5903988795beSmrgfi
5904988795beSmrg
5905988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908988795beSmrg	fi
5909988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5913352bf44eSmrgthen :
5914352bf44eSmrg  printf %s "(cached) " >&6
591538d718bdSmrgelse case e in #(
591638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917988795beSmrg/* end confdefs.h.  */
5918988795beSmrgint i;
5919988795beSmrg_ACEOF
5920352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
5921352bf44eSmrgthen :
5922988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
592338d718bdSmrgelse case e in #(
592438d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
592538d718bdSmrgesac
5926988795beSmrgfi
592738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
592838d718bdSmrgesac
5929988795beSmrgfi
5930352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5931352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5932988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5933988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5934988795beSmrgfi
5935988795beSmrg
5936988795beSmrgfound="no"
5937988795beSmrg
5938988795beSmrg	if test $found = "no" ; then
5939ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5940988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5941988795beSmrg		fi
5942988795beSmrg
5943ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5944988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945988795beSmrg		fi
5946988795beSmrg
5947988795beSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5948988795beSmrg
5949352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5950352bf44eSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5951988795beSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5952352bf44eSmrg		if eval test \${$cacheid+y}
5953352bf44eSmrgthen :
5954352bf44eSmrg  printf %s "(cached) " >&6
595538d718bdSmrgelse case e in #(
595638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957988795beSmrg/* end confdefs.h.  */
5958988795beSmrgint i;
5959988795beSmrgint
5960352bf44eSmrgmain (void)
5961988795beSmrg{
5962988795beSmrg
5963988795beSmrg  ;
5964988795beSmrg  return 0;
5965988795beSmrg}
5966988795beSmrg_ACEOF
5967352bf44eSmrgif ac_fn_c_try_link "$LINENO"
5968352bf44eSmrgthen :
5969988795beSmrg  eval $cacheid=yes
597038d718bdSmrgelse case e in #(
597138d718bdSmrg  e) eval $cacheid=no ;;
597238d718bdSmrgesac
5973988795beSmrgfi
5974352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
597538d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
597638d718bdSmrgesac
5977988795beSmrgfi
5978988795beSmrg
5979988795beSmrg
5980988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5981988795beSmrg
5982988795beSmrg		eval supported=\$$cacheid
5983352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984352bf44eSmrgprintf "%s\n" "$supported" >&6; }
5985988795beSmrg		if test "$supported" = "yes" ; then
5986988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5987988795beSmrg			found="yes"
5988988795beSmrg		fi
5989988795beSmrg	fi
5990988795beSmrg
5991988795beSmrg
5992988795beSmrg
5993988795beSmrg
5994988795beSmrg
5995988795beSmrg
5996988795beSmrg
5997988795beSmrg
5998988795beSmrg
5999988795beSmrg
6000988795beSmrg
6001988795beSmrg
6002988795beSmrg
6003988795beSmrg
6004988795beSmrg
6005988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6006988795beSmrg
6007988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6008988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6010352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6011352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6012352bf44eSmrgthen :
6013352bf44eSmrg  printf %s "(cached) " >&6
601438d718bdSmrgelse case e in #(
601538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016988795beSmrg/* end confdefs.h.  */
6017988795beSmrgint i;
6018988795beSmrg_ACEOF
6019352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6020352bf44eSmrgthen :
6021988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
602238d718bdSmrgelse case e in #(
602338d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
602438d718bdSmrgesac
6025988795beSmrgfi
602638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
602738d718bdSmrgesac
6028988795beSmrgfi
6029352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6033988795beSmrgfi
6034988795beSmrg
6035988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038988795beSmrg	fi
6039988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6043352bf44eSmrgthen :
6044352bf44eSmrg  printf %s "(cached) " >&6
604538d718bdSmrgelse case e in #(
604638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047988795beSmrg/* end confdefs.h.  */
6048988795beSmrgint i;
6049988795beSmrg_ACEOF
6050352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6051352bf44eSmrgthen :
6052988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
605338d718bdSmrgelse case e in #(
605438d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
605538d718bdSmrgesac
6056988795beSmrgfi
605738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
605838d718bdSmrgesac
6059988795beSmrgfi
6060352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6061352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6062988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6063988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6064988795beSmrgfi
6065988795beSmrg
6066988795beSmrgfound="no"
6067988795beSmrg
6068988795beSmrg	if test $found = "no" ; then
6069ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071988795beSmrg		fi
6072988795beSmrg
6073ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6074988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075988795beSmrg		fi
6076988795beSmrg
6077988795beSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
6078988795beSmrg
6079352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6080352bf44eSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6081988795beSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6082352bf44eSmrg		if eval test \${$cacheid+y}
6083352bf44eSmrgthen :
6084352bf44eSmrg  printf %s "(cached) " >&6
608538d718bdSmrgelse case e in #(
608638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087988795beSmrg/* end confdefs.h.  */
6088988795beSmrgint i;
6089988795beSmrgint
6090352bf44eSmrgmain (void)
6091988795beSmrg{
6092988795beSmrg
6093988795beSmrg  ;
6094988795beSmrg  return 0;
6095988795beSmrg}
6096988795beSmrg_ACEOF
6097352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6098352bf44eSmrgthen :
6099988795beSmrg  eval $cacheid=yes
610038d718bdSmrgelse case e in #(
610138d718bdSmrg  e) eval $cacheid=no ;;
610238d718bdSmrgesac
6103988795beSmrgfi
6104352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
610538d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
610638d718bdSmrgesac
6107988795beSmrgfi
6108988795beSmrg
6109988795beSmrg
6110988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6111988795beSmrg
6112988795beSmrg		eval supported=\$$cacheid
6113352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6114352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6115988795beSmrg		if test "$supported" = "yes" ; then
6116988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6117988795beSmrg			found="yes"
6118988795beSmrg		fi
6119988795beSmrg	fi
6120988795beSmrg
6121ad47b356Smrg	if test $found = "no" ; then
6122ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123ad47b356Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124ad47b356Smrg		fi
6125ad47b356Smrg
6126ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6127ad47b356Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128ad47b356Smrg		fi
6129ad47b356Smrg
6130ad47b356Smrg		CFLAGS="$CFLAGS -fd"
6131ad47b356Smrg
6132352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6133352bf44eSmrgprintf %s "checking if $CC supports -fd... " >&6; }
6134ad47b356Smrg		cacheid=xorg_cv_cc_flag__fd
6135352bf44eSmrg		if eval test \${$cacheid+y}
6136352bf44eSmrgthen :
6137352bf44eSmrg  printf %s "(cached) " >&6
613838d718bdSmrgelse case e in #(
613938d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140ad47b356Smrg/* end confdefs.h.  */
6141ad47b356Smrgint i;
6142ad47b356Smrgint
6143352bf44eSmrgmain (void)
6144ad47b356Smrg{
6145ad47b356Smrg
6146ad47b356Smrg  ;
6147ad47b356Smrg  return 0;
6148ad47b356Smrg}
6149ad47b356Smrg_ACEOF
6150352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6151352bf44eSmrgthen :
6152ad47b356Smrg  eval $cacheid=yes
615338d718bdSmrgelse case e in #(
615438d718bdSmrg  e) eval $cacheid=no ;;
615538d718bdSmrgesac
6156ad47b356Smrgfi
6157352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
615838d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
615938d718bdSmrgesac
6160ad47b356Smrgfi
6161ad47b356Smrg
6162ad47b356Smrg
6163ad47b356Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
6164ad47b356Smrg
6165ad47b356Smrg		eval supported=\$$cacheid
6166352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6168ad47b356Smrg		if test "$supported" = "yes" ; then
6169ad47b356Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6170ad47b356Smrg			found="yes"
6171ad47b356Smrg		fi
6172ad47b356Smrg	fi
6173ad47b356Smrg
6174988795beSmrg
6175988795beSmrg
6176988795beSmrg
6177988795beSmrg
6178988795beSmrg
6179988795beSmrg
6180988795beSmrg
6181988795beSmrg
6182988795beSmrg
6183988795beSmrg
6184988795beSmrg
6185988795beSmrg
6186988795beSmrg
6187988795beSmrg
6188988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6189988795beSmrg
6190988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6191988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6193352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6194352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6195352bf44eSmrgthen :
6196352bf44eSmrg  printf %s "(cached) " >&6
619738d718bdSmrgelse case e in #(
619838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199988795beSmrg/* end confdefs.h.  */
6200988795beSmrgint i;
6201988795beSmrg_ACEOF
6202352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6203352bf44eSmrgthen :
6204988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
620538d718bdSmrgelse case e in #(
620638d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
620738d718bdSmrgesac
6208988795beSmrgfi
620938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
621038d718bdSmrgesac
6211988795beSmrgfi
6212352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6213352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6214988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6215988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6216988795beSmrgfi
6217988795beSmrg
6218988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6219988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6220988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221988795beSmrg	fi
6222988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6224352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6225352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6226352bf44eSmrgthen :
6227352bf44eSmrg  printf %s "(cached) " >&6
622838d718bdSmrgelse case e in #(
622938d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230988795beSmrg/* end confdefs.h.  */
6231988795beSmrgint i;
6232988795beSmrg_ACEOF
6233352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6234352bf44eSmrgthen :
6235988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
623638d718bdSmrgelse case e in #(
623738d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
623838d718bdSmrgesac
6239988795beSmrgfi
624038d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
624138d718bdSmrgesac
6242988795beSmrgfi
6243352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6247988795beSmrgfi
6248988795beSmrg
6249988795beSmrgfound="no"
6250988795beSmrg
6251988795beSmrg	if test $found = "no" ; then
6252ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254988795beSmrg		fi
6255988795beSmrg
6256ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258988795beSmrg		fi
6259988795beSmrg
6260988795beSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6261988795beSmrg
6262352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6263352bf44eSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6264988795beSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6265352bf44eSmrg		if eval test \${$cacheid+y}
6266352bf44eSmrgthen :
6267352bf44eSmrg  printf %s "(cached) " >&6
626838d718bdSmrgelse case e in #(
626938d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270988795beSmrg/* end confdefs.h.  */
6271988795beSmrgint i;
6272988795beSmrgint
6273352bf44eSmrgmain (void)
6274988795beSmrg{
6275988795beSmrg
6276988795beSmrg  ;
6277988795beSmrg  return 0;
6278988795beSmrg}
6279988795beSmrg_ACEOF
6280352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6281352bf44eSmrgthen :
6282988795beSmrg  eval $cacheid=yes
628338d718bdSmrgelse case e in #(
628438d718bdSmrg  e) eval $cacheid=no ;;
628538d718bdSmrgesac
6286988795beSmrgfi
6287352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
628838d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
628938d718bdSmrgesac
6290988795beSmrgfi
6291988795beSmrg
6292988795beSmrg
6293988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6294988795beSmrg
6295988795beSmrg		eval supported=\$$cacheid
6296352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6298988795beSmrg		if test "$supported" = "yes" ; then
6299988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6300988795beSmrg			found="yes"
6301988795beSmrg		fi
6302988795beSmrg	fi
6303988795beSmrg
6304988795beSmrg
6305988795beSmrg
6306988795beSmrg
6307988795beSmrg
6308988795beSmrg# This chunk adds additional warnings that could catch undesired effects.
6309988795beSmrg
6310988795beSmrg
6311988795beSmrg
6312988795beSmrg
6313988795beSmrg
6314988795beSmrg
6315988795beSmrg
6316988795beSmrg
6317988795beSmrg
6318988795beSmrg
6319988795beSmrg
6320988795beSmrg
6321988795beSmrg
6322988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6323988795beSmrg
6324988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6325988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6327352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6328352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6329352bf44eSmrgthen :
6330352bf44eSmrg  printf %s "(cached) " >&6
633138d718bdSmrgelse case e in #(
633238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333988795beSmrg/* end confdefs.h.  */
6334988795beSmrgint i;
6335988795beSmrg_ACEOF
6336352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6337352bf44eSmrgthen :
6338988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
633938d718bdSmrgelse case e in #(
634038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
634138d718bdSmrgesac
6342988795beSmrgfi
634338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
634438d718bdSmrgesac
6345988795beSmrgfi
6346352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6350988795beSmrgfi
6351988795beSmrg
6352988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355988795beSmrg	fi
6356988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6360352bf44eSmrgthen :
6361352bf44eSmrg  printf %s "(cached) " >&6
636238d718bdSmrgelse case e in #(
636338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364988795beSmrg/* end confdefs.h.  */
6365988795beSmrgint i;
6366988795beSmrg_ACEOF
6367352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6368352bf44eSmrgthen :
6369988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
637038d718bdSmrgelse case e in #(
637138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
637238d718bdSmrgesac
6373988795beSmrgfi
637438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
637538d718bdSmrgesac
6376988795beSmrgfi
6377352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6381988795beSmrgfi
6382988795beSmrg
6383988795beSmrgfound="no"
6384988795beSmrg
6385988795beSmrg	if test $found = "no" ; then
6386ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388988795beSmrg		fi
6389988795beSmrg
6390ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6391988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392988795beSmrg		fi
6393988795beSmrg
6394988795beSmrg		CFLAGS="$CFLAGS -Wunused"
6395988795beSmrg
6396352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6397352bf44eSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6398988795beSmrg		cacheid=xorg_cv_cc_flag__Wunused
6399352bf44eSmrg		if eval test \${$cacheid+y}
6400352bf44eSmrgthen :
6401352bf44eSmrg  printf %s "(cached) " >&6
640238d718bdSmrgelse case e in #(
640338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404988795beSmrg/* end confdefs.h.  */
6405988795beSmrgint i;
6406988795beSmrgint
6407352bf44eSmrgmain (void)
6408988795beSmrg{
6409988795beSmrg
6410988795beSmrg  ;
6411988795beSmrg  return 0;
6412988795beSmrg}
6413988795beSmrg_ACEOF
6414352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6415352bf44eSmrgthen :
6416988795beSmrg  eval $cacheid=yes
641738d718bdSmrgelse case e in #(
641838d718bdSmrg  e) eval $cacheid=no ;;
641938d718bdSmrgesac
6420988795beSmrgfi
6421352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
642238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
642338d718bdSmrgesac
6424988795beSmrgfi
6425988795beSmrg
6426988795beSmrg
6427988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6428988795beSmrg
6429988795beSmrg		eval supported=\$$cacheid
6430352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6432988795beSmrg		if test "$supported" = "yes" ; then
6433988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6434988795beSmrg			found="yes"
6435988795beSmrg		fi
6436988795beSmrg	fi
6437988795beSmrg
6438988795beSmrg
6439988795beSmrg
6440988795beSmrg
6441988795beSmrg
6442988795beSmrg
6443988795beSmrg
6444988795beSmrg
6445988795beSmrg
6446988795beSmrg
6447988795beSmrg
6448988795beSmrg
6449988795beSmrg
6450988795beSmrg
6451988795beSmrg
6452988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6453988795beSmrg
6454988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6459352bf44eSmrgthen :
6460352bf44eSmrg  printf %s "(cached) " >&6
646138d718bdSmrgelse case e in #(
646238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463988795beSmrg/* end confdefs.h.  */
6464988795beSmrgint i;
6465988795beSmrg_ACEOF
6466352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6467352bf44eSmrgthen :
6468988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
646938d718bdSmrgelse case e in #(
647038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
647138d718bdSmrgesac
6472988795beSmrgfi
647338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
647438d718bdSmrgesac
6475988795beSmrgfi
6476352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6477352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6478988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6479988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6480988795beSmrgfi
6481988795beSmrg
6482988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6483988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485988795beSmrg	fi
6486988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6487352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6488352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6489352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6490352bf44eSmrgthen :
6491352bf44eSmrg  printf %s "(cached) " >&6
649238d718bdSmrgelse case e in #(
649338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494988795beSmrg/* end confdefs.h.  */
6495988795beSmrgint i;
6496988795beSmrg_ACEOF
6497352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6498352bf44eSmrgthen :
6499988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
650038d718bdSmrgelse case e in #(
650138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
650238d718bdSmrgesac
6503988795beSmrgfi
650438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
650538d718bdSmrgesac
6506988795beSmrgfi
6507352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6511988795beSmrgfi
6512988795beSmrg
6513988795beSmrgfound="no"
6514988795beSmrg
6515988795beSmrg	if test $found = "no" ; then
6516ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518988795beSmrg		fi
6519988795beSmrg
6520ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522988795beSmrg		fi
6523988795beSmrg
6524988795beSmrg		CFLAGS="$CFLAGS -Wuninitialized"
6525988795beSmrg
6526352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6527352bf44eSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6528988795beSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6529352bf44eSmrg		if eval test \${$cacheid+y}
6530352bf44eSmrgthen :
6531352bf44eSmrg  printf %s "(cached) " >&6
653238d718bdSmrgelse case e in #(
653338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534988795beSmrg/* end confdefs.h.  */
6535988795beSmrgint i;
6536988795beSmrgint
6537352bf44eSmrgmain (void)
6538988795beSmrg{
6539988795beSmrg
6540988795beSmrg  ;
6541988795beSmrg  return 0;
6542988795beSmrg}
6543988795beSmrg_ACEOF
6544352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6545352bf44eSmrgthen :
6546988795beSmrg  eval $cacheid=yes
654738d718bdSmrgelse case e in #(
654838d718bdSmrg  e) eval $cacheid=no ;;
654938d718bdSmrgesac
6550988795beSmrgfi
6551352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
655238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
655338d718bdSmrgesac
6554988795beSmrgfi
6555988795beSmrg
6556988795beSmrg
6557988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6558988795beSmrg
6559988795beSmrg		eval supported=\$$cacheid
6560352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6562988795beSmrg		if test "$supported" = "yes" ; then
6563988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6564988795beSmrg			found="yes"
6565988795beSmrg		fi
6566988795beSmrg	fi
6567988795beSmrg
6568988795beSmrg
6569988795beSmrg
6570988795beSmrg
6571988795beSmrg
6572988795beSmrg
6573988795beSmrg
6574988795beSmrg
6575988795beSmrg
6576988795beSmrg
6577988795beSmrg
6578988795beSmrg
6579988795beSmrg
6580988795beSmrg
6581988795beSmrg
6582988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6583988795beSmrg
6584988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6589352bf44eSmrgthen :
6590352bf44eSmrg  printf %s "(cached) " >&6
659138d718bdSmrgelse case e in #(
659238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593988795beSmrg/* end confdefs.h.  */
6594988795beSmrgint i;
6595988795beSmrg_ACEOF
6596352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6597352bf44eSmrgthen :
6598988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
659938d718bdSmrgelse case e in #(
660038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
660138d718bdSmrgesac
6602988795beSmrgfi
660338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
660438d718bdSmrgesac
6605988795beSmrgfi
6606352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6607352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6608988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6609988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6610988795beSmrgfi
6611988795beSmrg
6612988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6613988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615988795beSmrg	fi
6616988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6618352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6619352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6620352bf44eSmrgthen :
6621352bf44eSmrg  printf %s "(cached) " >&6
662238d718bdSmrgelse case e in #(
662338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624988795beSmrg/* end confdefs.h.  */
6625988795beSmrgint i;
6626988795beSmrg_ACEOF
6627352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6628352bf44eSmrgthen :
6629988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
663038d718bdSmrgelse case e in #(
663138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
663238d718bdSmrgesac
6633988795beSmrgfi
663438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
663538d718bdSmrgesac
6636988795beSmrgfi
6637352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6641988795beSmrgfi
6642988795beSmrg
6643988795beSmrgfound="no"
6644988795beSmrg
6645988795beSmrg	if test $found = "no" ; then
6646ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6647988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648988795beSmrg		fi
6649988795beSmrg
6650ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6651988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652988795beSmrg		fi
6653988795beSmrg
6654988795beSmrg		CFLAGS="$CFLAGS -Wshadow"
6655988795beSmrg
6656352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6657352bf44eSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6658988795beSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6659352bf44eSmrg		if eval test \${$cacheid+y}
6660352bf44eSmrgthen :
6661352bf44eSmrg  printf %s "(cached) " >&6
666238d718bdSmrgelse case e in #(
666338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664988795beSmrg/* end confdefs.h.  */
6665988795beSmrgint i;
6666988795beSmrgint
6667352bf44eSmrgmain (void)
6668988795beSmrg{
6669988795beSmrg
6670988795beSmrg  ;
6671988795beSmrg  return 0;
6672988795beSmrg}
6673988795beSmrg_ACEOF
6674352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6675352bf44eSmrgthen :
6676988795beSmrg  eval $cacheid=yes
667738d718bdSmrgelse case e in #(
667838d718bdSmrg  e) eval $cacheid=no ;;
667938d718bdSmrgesac
6680988795beSmrgfi
6681352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
668238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
668338d718bdSmrgesac
6684988795beSmrgfi
6685988795beSmrg
6686988795beSmrg
6687988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6688988795beSmrg
6689988795beSmrg		eval supported=\$$cacheid
6690352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6691352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6692988795beSmrg		if test "$supported" = "yes" ; then
6693988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6694988795beSmrg			found="yes"
6695988795beSmrg		fi
6696988795beSmrg	fi
6697988795beSmrg
6698988795beSmrg
6699988795beSmrg
6700988795beSmrg
6701988795beSmrg
6702988795beSmrg
6703988795beSmrg
6704988795beSmrg
6705988795beSmrg
6706988795beSmrg
6707988795beSmrg
6708988795beSmrg
6709988795beSmrg
6710988795beSmrg
6711988795beSmrg
6712988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6713988795beSmrg
6714988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6719352bf44eSmrgthen :
6720352bf44eSmrg  printf %s "(cached) " >&6
672138d718bdSmrgelse case e in #(
672238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723988795beSmrg/* end confdefs.h.  */
6724988795beSmrgint i;
6725988795beSmrg_ACEOF
6726352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6727352bf44eSmrgthen :
6728988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
672938d718bdSmrgelse case e in #(
673038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
673138d718bdSmrgesac
6732988795beSmrgfi
673338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
673438d718bdSmrgesac
6735988795beSmrgfi
6736352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6740988795beSmrgfi
6741988795beSmrg
6742988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745988795beSmrg	fi
6746988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750352bf44eSmrgthen :
6751352bf44eSmrg  printf %s "(cached) " >&6
675238d718bdSmrgelse case e in #(
675338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754988795beSmrg/* end confdefs.h.  */
6755988795beSmrgint i;
6756988795beSmrg_ACEOF
6757352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6758352bf44eSmrgthen :
6759988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
676038d718bdSmrgelse case e in #(
676138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
676238d718bdSmrgesac
6763988795beSmrgfi
676438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
676538d718bdSmrgesac
6766988795beSmrgfi
6767352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6768352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6771988795beSmrgfi
6772988795beSmrg
6773988795beSmrgfound="no"
6774988795beSmrg
6775988795beSmrg	if test $found = "no" ; then
6776ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778988795beSmrg		fi
6779988795beSmrg
6780ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6781988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782988795beSmrg		fi
6783988795beSmrg
6784ad47b356Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6785988795beSmrg
6786352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6787352bf44eSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6788ad47b356Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6789352bf44eSmrg		if eval test \${$cacheid+y}
6790352bf44eSmrgthen :
6791352bf44eSmrg  printf %s "(cached) " >&6
679238d718bdSmrgelse case e in #(
679338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794988795beSmrg/* end confdefs.h.  */
6795988795beSmrgint i;
6796988795beSmrgint
6797352bf44eSmrgmain (void)
6798988795beSmrg{
6799988795beSmrg
6800988795beSmrg  ;
6801988795beSmrg  return 0;
6802988795beSmrg}
6803988795beSmrg_ACEOF
6804352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6805352bf44eSmrgthen :
6806988795beSmrg  eval $cacheid=yes
680738d718bdSmrgelse case e in #(
680838d718bdSmrg  e) eval $cacheid=no ;;
680938d718bdSmrgesac
6810988795beSmrgfi
6811352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
681238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
681338d718bdSmrgesac
6814988795beSmrgfi
6815988795beSmrg
6816988795beSmrg
6817988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6818988795beSmrg
6819988795beSmrg		eval supported=\$$cacheid
6820352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6821352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6822988795beSmrg		if test "$supported" = "yes" ; then
6823ad47b356Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6824988795beSmrg			found="yes"
6825988795beSmrg		fi
6826988795beSmrg	fi
6827988795beSmrg
6828988795beSmrg
6829988795beSmrg
6830988795beSmrg
6831988795beSmrg
6832988795beSmrg
6833988795beSmrg
6834988795beSmrg
6835988795beSmrg
6836988795beSmrg
6837988795beSmrg
6838988795beSmrg
6839988795beSmrg
6840988795beSmrg
6841988795beSmrg
6842988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6843988795beSmrg
6844988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6845988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6847352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6848352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6849352bf44eSmrgthen :
6850352bf44eSmrg  printf %s "(cached) " >&6
685138d718bdSmrgelse case e in #(
685238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853988795beSmrg/* end confdefs.h.  */
6854988795beSmrgint i;
6855988795beSmrg_ACEOF
6856352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6857352bf44eSmrgthen :
6858988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
685938d718bdSmrgelse case e in #(
686038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
686138d718bdSmrgesac
6862988795beSmrgfi
686338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
686438d718bdSmrgesac
6865988795beSmrgfi
6866352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6870988795beSmrgfi
6871988795beSmrg
6872988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875988795beSmrg	fi
6876988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6880352bf44eSmrgthen :
6881352bf44eSmrg  printf %s "(cached) " >&6
688238d718bdSmrgelse case e in #(
688338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884988795beSmrg/* end confdefs.h.  */
6885988795beSmrgint i;
6886988795beSmrg_ACEOF
6887352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6888352bf44eSmrgthen :
6889988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
689038d718bdSmrgelse case e in #(
689138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
689238d718bdSmrgesac
6893988795beSmrgfi
689438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
689538d718bdSmrgesac
6896988795beSmrgfi
6897352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6898352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6899988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6900988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6901988795beSmrgfi
6902988795beSmrg
6903988795beSmrgfound="no"
6904988795beSmrg
6905988795beSmrg	if test $found = "no" ; then
6906ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908988795beSmrg		fi
6909988795beSmrg
6910ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6911988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912988795beSmrg		fi
6913988795beSmrg
6914ad47b356Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6915988795beSmrg
6916352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6917352bf44eSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6918ad47b356Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6919352bf44eSmrg		if eval test \${$cacheid+y}
6920352bf44eSmrgthen :
6921352bf44eSmrg  printf %s "(cached) " >&6
692238d718bdSmrgelse case e in #(
692338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924988795beSmrg/* end confdefs.h.  */
6925988795beSmrgint i;
6926988795beSmrgint
6927352bf44eSmrgmain (void)
6928988795beSmrg{
6929988795beSmrg
6930988795beSmrg  ;
6931988795beSmrg  return 0;
6932988795beSmrg}
6933988795beSmrg_ACEOF
6934352bf44eSmrgif ac_fn_c_try_link "$LINENO"
6935352bf44eSmrgthen :
6936988795beSmrg  eval $cacheid=yes
693738d718bdSmrgelse case e in #(
693838d718bdSmrg  e) eval $cacheid=no ;;
693938d718bdSmrgesac
6940988795beSmrgfi
6941352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
694238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
694338d718bdSmrgesac
6944988795beSmrgfi
6945988795beSmrg
6946988795beSmrg
6947988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6948988795beSmrg
6949988795beSmrg		eval supported=\$$cacheid
6950352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951352bf44eSmrgprintf "%s\n" "$supported" >&6; }
6952988795beSmrg		if test "$supported" = "yes" ; then
6953ad47b356Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6954988795beSmrg			found="yes"
6955988795beSmrg		fi
6956988795beSmrg	fi
6957988795beSmrg
6958988795beSmrg
6959988795beSmrg
6960988795beSmrg
6961988795beSmrg
6962988795beSmrg
6963988795beSmrg
6964988795beSmrg
6965988795beSmrg
6966988795beSmrg
6967988795beSmrg
6968988795beSmrg
6969988795beSmrg
6970988795beSmrg
6971988795beSmrg
6972988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6973988795beSmrg
6974988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6979352bf44eSmrgthen :
6980352bf44eSmrg  printf %s "(cached) " >&6
698138d718bdSmrgelse case e in #(
698238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983988795beSmrg/* end confdefs.h.  */
6984988795beSmrgint i;
6985988795beSmrg_ACEOF
6986352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
6987352bf44eSmrgthen :
6988988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
698938d718bdSmrgelse case e in #(
699038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
699138d718bdSmrgesac
6992988795beSmrgfi
699338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
699438d718bdSmrgesac
6995988795beSmrgfi
6996352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6997352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6998988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6999988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7000988795beSmrgfi
7001988795beSmrg
7002988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7003988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7004988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7005988795beSmrg	fi
7006988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7007352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7008352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7009352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7010352bf44eSmrgthen :
7011352bf44eSmrg  printf %s "(cached) " >&6
701238d718bdSmrgelse case e in #(
701338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014988795beSmrg/* end confdefs.h.  */
7015988795beSmrgint i;
7016988795beSmrg_ACEOF
7017352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7018352bf44eSmrgthen :
7019988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
702038d718bdSmrgelse case e in #(
702138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
702238d718bdSmrgesac
7023988795beSmrgfi
702438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
702538d718bdSmrgesac
7026988795beSmrgfi
7027352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7028352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7029988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7030988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7031988795beSmrgfi
7032988795beSmrg
7033988795beSmrgfound="no"
7034988795beSmrg
7035988795beSmrg	if test $found = "no" ; then
7036ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038988795beSmrg		fi
7039988795beSmrg
7040ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042988795beSmrg		fi
7043988795beSmrg
7044ad47b356Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
7045988795beSmrg
7046352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7047352bf44eSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7048ad47b356Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
7049352bf44eSmrg		if eval test \${$cacheid+y}
7050352bf44eSmrgthen :
7051352bf44eSmrg  printf %s "(cached) " >&6
705238d718bdSmrgelse case e in #(
705338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054988795beSmrg/* end confdefs.h.  */
7055988795beSmrgint i;
7056988795beSmrgint
7057352bf44eSmrgmain (void)
7058988795beSmrg{
7059988795beSmrg
7060988795beSmrg  ;
7061988795beSmrg  return 0;
7062988795beSmrg}
7063988795beSmrg_ACEOF
7064352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7065352bf44eSmrgthen :
7066988795beSmrg  eval $cacheid=yes
706738d718bdSmrgelse case e in #(
706838d718bdSmrg  e) eval $cacheid=no ;;
706938d718bdSmrgesac
7070988795beSmrgfi
7071352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
707238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
707338d718bdSmrgesac
7074988795beSmrgfi
7075988795beSmrg
7076988795beSmrg
7077988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7078988795beSmrg
7079988795beSmrg		eval supported=\$$cacheid
7080352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7082988795beSmrg		if test "$supported" = "yes" ; then
7083ad47b356Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7084988795beSmrg			found="yes"
7085988795beSmrg		fi
7086988795beSmrg	fi
7087988795beSmrg
7088988795beSmrg
7089988795beSmrg
7090988795beSmrg
7091988795beSmrg
7092988795beSmrg
7093988795beSmrg
7094988795beSmrg
7095988795beSmrg
7096988795beSmrg
7097988795beSmrg
7098988795beSmrg
7099988795beSmrg
7100988795beSmrg
7101988795beSmrg
7102988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7103988795beSmrg
7104988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7109352bf44eSmrgthen :
7110352bf44eSmrg  printf %s "(cached) " >&6
711138d718bdSmrgelse case e in #(
711238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113988795beSmrg/* end confdefs.h.  */
7114988795beSmrgint i;
7115988795beSmrg_ACEOF
7116352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7117352bf44eSmrgthen :
7118988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
711938d718bdSmrgelse case e in #(
712038d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
712138d718bdSmrgesac
7122988795beSmrgfi
712338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
712438d718bdSmrgesac
7125988795beSmrgfi
7126352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7130988795beSmrgfi
7131988795beSmrg
7132988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135988795beSmrg	fi
7136988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7140352bf44eSmrgthen :
7141352bf44eSmrg  printf %s "(cached) " >&6
714238d718bdSmrgelse case e in #(
714338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144988795beSmrg/* end confdefs.h.  */
7145988795beSmrgint i;
7146988795beSmrg_ACEOF
7147352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7148352bf44eSmrgthen :
7149988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
715038d718bdSmrgelse case e in #(
715138d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
715238d718bdSmrgesac
7153988795beSmrgfi
715438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
715538d718bdSmrgesac
7156988795beSmrgfi
7157352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7158352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7159988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7160988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7161988795beSmrgfi
7162988795beSmrg
7163988795beSmrgfound="no"
7164988795beSmrg
7165988795beSmrg	if test $found = "no" ; then
7166ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168988795beSmrg		fi
7169988795beSmrg
7170ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172988795beSmrg		fi
7173988795beSmrg
7174ad47b356Smrg		CFLAGS="$CFLAGS -Wlogical-op"
7175988795beSmrg
7176352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7177352bf44eSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
7178ad47b356Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7179352bf44eSmrg		if eval test \${$cacheid+y}
7180352bf44eSmrgthen :
7181352bf44eSmrg  printf %s "(cached) " >&6
718238d718bdSmrgelse case e in #(
718338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184988795beSmrg/* end confdefs.h.  */
7185988795beSmrgint i;
7186988795beSmrgint
7187352bf44eSmrgmain (void)
7188988795beSmrg{
7189988795beSmrg
7190988795beSmrg  ;
7191988795beSmrg  return 0;
7192988795beSmrg}
7193988795beSmrg_ACEOF
7194352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7195352bf44eSmrgthen :
7196988795beSmrg  eval $cacheid=yes
719738d718bdSmrgelse case e in #(
719838d718bdSmrg  e) eval $cacheid=no ;;
719938d718bdSmrgesac
7200988795beSmrgfi
7201352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
720238d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
720338d718bdSmrgesac
7204988795beSmrgfi
7205988795beSmrg
7206988795beSmrg
7207988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7208988795beSmrg
7209988795beSmrg		eval supported=\$$cacheid
7210352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7211352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7212988795beSmrg		if test "$supported" = "yes" ; then
7213ad47b356Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7214988795beSmrg			found="yes"
7215988795beSmrg		fi
7216988795beSmrg	fi
7217988795beSmrg
7218988795beSmrg
7219988795beSmrg
7220988795beSmrg# These are currently disabled because they are noisy.  They will be enabled
7221988795beSmrg# in the future once the codebase is sufficiently modernized to silence
7222988795beSmrg# them.  For now, I don't want them to drown out the other warnings.
7223988795beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7224988795beSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7225ad47b356Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7226988795beSmrg
722738d718bdSmrg# Turn some warnings into errors, so we don't accidentally get successful builds
7228988795beSmrg# when there are problems that should be fixed.
7229988795beSmrg
7230988795beSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7231988795beSmrg
7232988795beSmrg
7233988795beSmrg
7234988795beSmrg
7235988795beSmrg
7236988795beSmrg
7237988795beSmrg
7238988795beSmrg
7239988795beSmrg
7240988795beSmrg
7241988795beSmrg
7242988795beSmrg
7243988795beSmrg
7244988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7245988795beSmrg
7246988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7251352bf44eSmrgthen :
7252352bf44eSmrg  printf %s "(cached) " >&6
725338d718bdSmrgelse case e in #(
725438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255988795beSmrg/* end confdefs.h.  */
7256988795beSmrgint i;
7257988795beSmrg_ACEOF
7258352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7259352bf44eSmrgthen :
7260988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
726138d718bdSmrgelse case e in #(
726238d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
726338d718bdSmrgesac
7264988795beSmrgfi
726538d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
726638d718bdSmrgesac
7267988795beSmrgfi
7268352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7269352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7270988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7271988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7272988795beSmrgfi
7273988795beSmrg
7274988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7275988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277988795beSmrg	fi
7278988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7280352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7281352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7282352bf44eSmrgthen :
7283352bf44eSmrg  printf %s "(cached) " >&6
728438d718bdSmrgelse case e in #(
728538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286988795beSmrg/* end confdefs.h.  */
7287988795beSmrgint i;
7288988795beSmrg_ACEOF
7289352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7290352bf44eSmrgthen :
7291988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
729238d718bdSmrgelse case e in #(
729338d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
729438d718bdSmrgesac
7295988795beSmrgfi
729638d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
729738d718bdSmrgesac
7298988795beSmrgfi
7299352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7300352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7301988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7302988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7303988795beSmrgfi
7304988795beSmrg
7305988795beSmrgfound="no"
7306988795beSmrg
7307988795beSmrg	if test $found = "no" ; then
7308ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310988795beSmrg		fi
7311988795beSmrg
7312ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7313988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314988795beSmrg		fi
7315988795beSmrg
7316988795beSmrg		CFLAGS="$CFLAGS -Werror=implicit"
7317988795beSmrg
7318352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7319352bf44eSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7320ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7321352bf44eSmrg		if eval test \${$cacheid+y}
7322352bf44eSmrgthen :
7323352bf44eSmrg  printf %s "(cached) " >&6
732438d718bdSmrgelse case e in #(
732538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326988795beSmrg/* end confdefs.h.  */
7327988795beSmrgint i;
7328988795beSmrgint
7329352bf44eSmrgmain (void)
7330988795beSmrg{
7331988795beSmrg
7332988795beSmrg  ;
7333988795beSmrg  return 0;
7334988795beSmrg}
7335988795beSmrg_ACEOF
7336352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7337352bf44eSmrgthen :
7338988795beSmrg  eval $cacheid=yes
733938d718bdSmrgelse case e in #(
734038d718bdSmrg  e) eval $cacheid=no ;;
734138d718bdSmrgesac
7342988795beSmrgfi
7343352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
734438d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
734538d718bdSmrgesac
7346988795beSmrgfi
7347988795beSmrg
7348988795beSmrg
7349988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7350988795beSmrg
7351988795beSmrg		eval supported=\$$cacheid
7352352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7354988795beSmrg		if test "$supported" = "yes" ; then
7355988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7356988795beSmrg			found="yes"
7357988795beSmrg		fi
7358988795beSmrg	fi
7359988795beSmrg
7360988795beSmrg	if test $found = "no" ; then
7361ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363988795beSmrg		fi
7364988795beSmrg
7365ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367988795beSmrg		fi
7368988795beSmrg
7369988795beSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7370988795beSmrg
7371352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7372352bf44eSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7373ad47b356Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7374352bf44eSmrg		if eval test \${$cacheid+y}
7375352bf44eSmrgthen :
7376352bf44eSmrg  printf %s "(cached) " >&6
737738d718bdSmrgelse case e in #(
737838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379988795beSmrg/* end confdefs.h.  */
7380988795beSmrgint i;
7381988795beSmrgint
7382352bf44eSmrgmain (void)
7383988795beSmrg{
7384988795beSmrg
7385988795beSmrg  ;
7386988795beSmrg  return 0;
7387988795beSmrg}
7388988795beSmrg_ACEOF
7389352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7390352bf44eSmrgthen :
7391988795beSmrg  eval $cacheid=yes
739238d718bdSmrgelse case e in #(
739338d718bdSmrg  e) eval $cacheid=no ;;
739438d718bdSmrgesac
7395988795beSmrgfi
7396352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
739738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
739838d718bdSmrgesac
7399988795beSmrgfi
7400988795beSmrg
7401988795beSmrg
7402988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7403988795beSmrg
7404988795beSmrg		eval supported=\$$cacheid
7405352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7406352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7407988795beSmrg		if test "$supported" = "yes" ; then
7408988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7409988795beSmrg			found="yes"
7410988795beSmrg		fi
7411988795beSmrg	fi
7412988795beSmrg
7413988795beSmrg
7414988795beSmrg
7415988795beSmrg
7416988795beSmrg
7417988795beSmrg
7418988795beSmrg
7419988795beSmrg
7420988795beSmrg
7421988795beSmrg
7422988795beSmrg
7423988795beSmrg
7424988795beSmrg
7425988795beSmrg
7426988795beSmrg
7427988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7428988795beSmrg
7429988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7430988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7432352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7433352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7434352bf44eSmrgthen :
7435352bf44eSmrg  printf %s "(cached) " >&6
743638d718bdSmrgelse case e in #(
743738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438988795beSmrg/* end confdefs.h.  */
7439988795beSmrgint i;
7440988795beSmrg_ACEOF
7441352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7442352bf44eSmrgthen :
7443988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
744438d718bdSmrgelse case e in #(
744538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
744638d718bdSmrgesac
7447988795beSmrgfi
744838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
744938d718bdSmrgesac
7450988795beSmrgfi
7451352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7455988795beSmrgfi
7456988795beSmrg
7457988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460988795beSmrg	fi
7461988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7465352bf44eSmrgthen :
7466352bf44eSmrg  printf %s "(cached) " >&6
746738d718bdSmrgelse case e in #(
746838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469988795beSmrg/* end confdefs.h.  */
7470988795beSmrgint i;
7471988795beSmrg_ACEOF
7472352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7473352bf44eSmrgthen :
7474988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
747538d718bdSmrgelse case e in #(
747638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
747738d718bdSmrgesac
7478988795beSmrgfi
747938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
748038d718bdSmrgesac
7481988795beSmrgfi
7482352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7483352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7484988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7485988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7486988795beSmrgfi
7487988795beSmrg
7488988795beSmrgfound="no"
7489988795beSmrg
7490988795beSmrg	if test $found = "no" ; then
7491ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493988795beSmrg		fi
7494988795beSmrg
7495ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7496988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497988795beSmrg		fi
7498988795beSmrg
7499988795beSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
7500988795beSmrg
7501352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7502352bf44eSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7503ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7504352bf44eSmrg		if eval test \${$cacheid+y}
7505352bf44eSmrgthen :
7506352bf44eSmrg  printf %s "(cached) " >&6
750738d718bdSmrgelse case e in #(
750838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509988795beSmrg/* end confdefs.h.  */
7510988795beSmrgint i;
7511988795beSmrgint
7512352bf44eSmrgmain (void)
7513988795beSmrg{
7514988795beSmrg
7515988795beSmrg  ;
7516988795beSmrg  return 0;
7517988795beSmrg}
7518988795beSmrg_ACEOF
7519352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7520352bf44eSmrgthen :
7521988795beSmrg  eval $cacheid=yes
752238d718bdSmrgelse case e in #(
752338d718bdSmrg  e) eval $cacheid=no ;;
752438d718bdSmrgesac
7525988795beSmrgfi
7526352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
752738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
752838d718bdSmrgesac
7529988795beSmrgfi
7530988795beSmrg
7531988795beSmrg
7532988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7533988795beSmrg
7534988795beSmrg		eval supported=\$$cacheid
7535352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7537988795beSmrg		if test "$supported" = "yes" ; then
7538988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7539988795beSmrg			found="yes"
7540988795beSmrg		fi
7541988795beSmrg	fi
7542988795beSmrg
7543988795beSmrg
7544988795beSmrg
7545988795beSmrg
7546988795beSmrg
7547988795beSmrg
7548988795beSmrg
7549988795beSmrg
7550988795beSmrg
7551988795beSmrg
7552988795beSmrg
7553988795beSmrg
7554988795beSmrg
7555988795beSmrg
7556988795beSmrg
7557988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7558988795beSmrg
7559988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7564352bf44eSmrgthen :
7565352bf44eSmrg  printf %s "(cached) " >&6
756638d718bdSmrgelse case e in #(
756738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568988795beSmrg/* end confdefs.h.  */
7569988795beSmrgint i;
7570988795beSmrg_ACEOF
7571352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7572352bf44eSmrgthen :
7573988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
757438d718bdSmrgelse case e in #(
757538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
757638d718bdSmrgesac
7577988795beSmrgfi
757838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
757938d718bdSmrgesac
7580988795beSmrgfi
7581352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7585988795beSmrgfi
7586988795beSmrg
7587988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590988795beSmrg	fi
7591988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7595352bf44eSmrgthen :
7596352bf44eSmrg  printf %s "(cached) " >&6
759738d718bdSmrgelse case e in #(
759838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599988795beSmrg/* end confdefs.h.  */
7600988795beSmrgint i;
7601988795beSmrg_ACEOF
7602352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7603352bf44eSmrgthen :
7604988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
760538d718bdSmrgelse case e in #(
760638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
760738d718bdSmrgesac
7608988795beSmrgfi
760938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
761038d718bdSmrgesac
7611988795beSmrgfi
7612352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7616988795beSmrgfi
7617988795beSmrg
7618988795beSmrgfound="no"
7619988795beSmrg
7620988795beSmrg	if test $found = "no" ; then
7621ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623988795beSmrg		fi
7624988795beSmrg
7625ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627988795beSmrg		fi
7628988795beSmrg
7629988795beSmrg		CFLAGS="$CFLAGS -Werror=init-self"
7630988795beSmrg
7631352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7632352bf44eSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7633ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7634352bf44eSmrg		if eval test \${$cacheid+y}
7635352bf44eSmrgthen :
7636352bf44eSmrg  printf %s "(cached) " >&6
763738d718bdSmrgelse case e in #(
763838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639988795beSmrg/* end confdefs.h.  */
7640988795beSmrgint i;
7641988795beSmrgint
7642352bf44eSmrgmain (void)
7643988795beSmrg{
7644988795beSmrg
7645988795beSmrg  ;
7646988795beSmrg  return 0;
7647988795beSmrg}
7648988795beSmrg_ACEOF
7649352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7650352bf44eSmrgthen :
7651988795beSmrg  eval $cacheid=yes
765238d718bdSmrgelse case e in #(
765338d718bdSmrg  e) eval $cacheid=no ;;
765438d718bdSmrgesac
7655988795beSmrgfi
7656352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
765738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
765838d718bdSmrgesac
7659988795beSmrgfi
7660988795beSmrg
7661988795beSmrg
7662988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7663988795beSmrg
7664988795beSmrg		eval supported=\$$cacheid
7665352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7667988795beSmrg		if test "$supported" = "yes" ; then
7668988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7669988795beSmrg			found="yes"
7670988795beSmrg		fi
7671988795beSmrg	fi
7672988795beSmrg
7673988795beSmrg
7674988795beSmrg
7675988795beSmrg
7676988795beSmrg
7677988795beSmrg
7678988795beSmrg
7679988795beSmrg
7680988795beSmrg
7681988795beSmrg
7682988795beSmrg
7683988795beSmrg
7684988795beSmrg
7685988795beSmrg
7686988795beSmrg
7687988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7688988795beSmrg
7689988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7690988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7692352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7693352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7694352bf44eSmrgthen :
7695352bf44eSmrg  printf %s "(cached) " >&6
769638d718bdSmrgelse case e in #(
769738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698988795beSmrg/* end confdefs.h.  */
7699988795beSmrgint i;
7700988795beSmrg_ACEOF
7701352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7702352bf44eSmrgthen :
7703988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
770438d718bdSmrgelse case e in #(
770538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
770638d718bdSmrgesac
7707988795beSmrgfi
770838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
770938d718bdSmrgesac
7710988795beSmrgfi
7711352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7712352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7713988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7714988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7715988795beSmrgfi
7716988795beSmrg
7717988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7718988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720988795beSmrg	fi
7721988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7723352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7724352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7725352bf44eSmrgthen :
7726352bf44eSmrg  printf %s "(cached) " >&6
772738d718bdSmrgelse case e in #(
772838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729988795beSmrg/* end confdefs.h.  */
7730988795beSmrgint i;
7731988795beSmrg_ACEOF
7732352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7733352bf44eSmrgthen :
7734988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
773538d718bdSmrgelse case e in #(
773638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
773738d718bdSmrgesac
7738988795beSmrgfi
773938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
774038d718bdSmrgesac
7741988795beSmrgfi
7742352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7743352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7744988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7745988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7746988795beSmrgfi
7747988795beSmrg
7748988795beSmrgfound="no"
7749988795beSmrg
7750988795beSmrg	if test $found = "no" ; then
7751ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753988795beSmrg		fi
7754988795beSmrg
7755ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7756988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757988795beSmrg		fi
7758988795beSmrg
7759988795beSmrg		CFLAGS="$CFLAGS -Werror=main"
7760988795beSmrg
7761352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7762352bf44eSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7763ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_main
7764352bf44eSmrg		if eval test \${$cacheid+y}
7765352bf44eSmrgthen :
7766352bf44eSmrg  printf %s "(cached) " >&6
776738d718bdSmrgelse case e in #(
776838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769988795beSmrg/* end confdefs.h.  */
7770988795beSmrgint i;
7771988795beSmrgint
7772352bf44eSmrgmain (void)
7773988795beSmrg{
7774988795beSmrg
7775988795beSmrg  ;
7776988795beSmrg  return 0;
7777988795beSmrg}
7778988795beSmrg_ACEOF
7779352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7780352bf44eSmrgthen :
7781988795beSmrg  eval $cacheid=yes
778238d718bdSmrgelse case e in #(
778338d718bdSmrg  e) eval $cacheid=no ;;
778438d718bdSmrgesac
7785988795beSmrgfi
7786352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
778738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
778838d718bdSmrgesac
7789988795beSmrgfi
7790988795beSmrg
7791988795beSmrg
7792988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7793988795beSmrg
7794988795beSmrg		eval supported=\$$cacheid
7795352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7796352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7797988795beSmrg		if test "$supported" = "yes" ; then
7798988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7799988795beSmrg			found="yes"
7800988795beSmrg		fi
7801988795beSmrg	fi
7802988795beSmrg
7803988795beSmrg
7804988795beSmrg
7805988795beSmrg
7806988795beSmrg
7807988795beSmrg
7808988795beSmrg
7809988795beSmrg
7810988795beSmrg
7811988795beSmrg
7812988795beSmrg
7813988795beSmrg
7814988795beSmrg
7815988795beSmrg
7816988795beSmrg
7817988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7818988795beSmrg
7819988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7820988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7824352bf44eSmrgthen :
7825352bf44eSmrg  printf %s "(cached) " >&6
782638d718bdSmrgelse case e in #(
782738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828988795beSmrg/* end confdefs.h.  */
7829988795beSmrgint i;
7830988795beSmrg_ACEOF
7831352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7832352bf44eSmrgthen :
7833988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
783438d718bdSmrgelse case e in #(
783538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
783638d718bdSmrgesac
7837988795beSmrgfi
783838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
783938d718bdSmrgesac
7840988795beSmrgfi
7841352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7842352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7843988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7844988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7845988795beSmrgfi
7846988795beSmrg
7847988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7848988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850988795beSmrg	fi
7851988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7853352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7854352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7855352bf44eSmrgthen :
7856352bf44eSmrg  printf %s "(cached) " >&6
785738d718bdSmrgelse case e in #(
785838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859988795beSmrg/* end confdefs.h.  */
7860988795beSmrgint i;
7861988795beSmrg_ACEOF
7862352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7863352bf44eSmrgthen :
7864988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
786538d718bdSmrgelse case e in #(
786638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
786738d718bdSmrgesac
7868988795beSmrgfi
786938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
787038d718bdSmrgesac
7871988795beSmrgfi
7872352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7876988795beSmrgfi
7877988795beSmrg
7878988795beSmrgfound="no"
7879988795beSmrg
7880988795beSmrg	if test $found = "no" ; then
7881ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883988795beSmrg		fi
7884988795beSmrg
7885ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887988795beSmrg		fi
7888988795beSmrg
7889988795beSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7890988795beSmrg
7891352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7892352bf44eSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7893ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7894352bf44eSmrg		if eval test \${$cacheid+y}
7895352bf44eSmrgthen :
7896352bf44eSmrg  printf %s "(cached) " >&6
789738d718bdSmrgelse case e in #(
789838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899988795beSmrg/* end confdefs.h.  */
7900988795beSmrgint i;
7901988795beSmrgint
7902352bf44eSmrgmain (void)
7903988795beSmrg{
7904988795beSmrg
7905988795beSmrg  ;
7906988795beSmrg  return 0;
7907988795beSmrg}
7908988795beSmrg_ACEOF
7909352bf44eSmrgif ac_fn_c_try_link "$LINENO"
7910352bf44eSmrgthen :
7911988795beSmrg  eval $cacheid=yes
791238d718bdSmrgelse case e in #(
791338d718bdSmrg  e) eval $cacheid=no ;;
791438d718bdSmrgesac
7915988795beSmrgfi
7916352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
791738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
791838d718bdSmrgesac
7919988795beSmrgfi
7920988795beSmrg
7921988795beSmrg
7922988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7923988795beSmrg
7924988795beSmrg		eval supported=\$$cacheid
7925352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7926352bf44eSmrgprintf "%s\n" "$supported" >&6; }
7927988795beSmrg		if test "$supported" = "yes" ; then
7928988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7929988795beSmrg			found="yes"
7930988795beSmrg		fi
7931988795beSmrg	fi
7932988795beSmrg
7933988795beSmrg
7934988795beSmrg
7935988795beSmrg
7936988795beSmrg
7937988795beSmrg
7938988795beSmrg
7939988795beSmrg
7940988795beSmrg
7941988795beSmrg
7942988795beSmrg
7943988795beSmrg
7944988795beSmrg
7945988795beSmrg
7946988795beSmrg
7947988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7948988795beSmrg
7949988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7950988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7952352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7953352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7954352bf44eSmrgthen :
7955352bf44eSmrg  printf %s "(cached) " >&6
795638d718bdSmrgelse case e in #(
795738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958988795beSmrg/* end confdefs.h.  */
7959988795beSmrgint i;
7960988795beSmrg_ACEOF
7961352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7962352bf44eSmrgthen :
7963988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
796438d718bdSmrgelse case e in #(
796538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
796638d718bdSmrgesac
7967988795beSmrgfi
796838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
796938d718bdSmrgesac
7970988795beSmrgfi
7971352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7972352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7973988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7974988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7975988795beSmrgfi
7976988795beSmrg
7977988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7978988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980988795beSmrg	fi
7981988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7983352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7984352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7985352bf44eSmrgthen :
7986352bf44eSmrg  printf %s "(cached) " >&6
798738d718bdSmrgelse case e in #(
798838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989988795beSmrg/* end confdefs.h.  */
7990988795beSmrgint i;
7991988795beSmrg_ACEOF
7992352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
7993352bf44eSmrgthen :
7994988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
799538d718bdSmrgelse case e in #(
799638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
799738d718bdSmrgesac
7998988795beSmrgfi
799938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
800038d718bdSmrgesac
8001988795beSmrgfi
8002352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8006988795beSmrgfi
8007988795beSmrg
8008988795beSmrgfound="no"
8009988795beSmrg
8010988795beSmrg	if test $found = "no" ; then
8011ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013988795beSmrg		fi
8014988795beSmrg
8015ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017988795beSmrg		fi
8018988795beSmrg
8019988795beSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
8020988795beSmrg
8021352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8022352bf44eSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8023ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8024352bf44eSmrg		if eval test \${$cacheid+y}
8025352bf44eSmrgthen :
8026352bf44eSmrg  printf %s "(cached) " >&6
802738d718bdSmrgelse case e in #(
802838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029988795beSmrg/* end confdefs.h.  */
8030988795beSmrgint i;
8031988795beSmrgint
8032352bf44eSmrgmain (void)
8033988795beSmrg{
8034988795beSmrg
8035988795beSmrg  ;
8036988795beSmrg  return 0;
8037988795beSmrg}
8038988795beSmrg_ACEOF
8039352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8040352bf44eSmrgthen :
8041988795beSmrg  eval $cacheid=yes
804238d718bdSmrgelse case e in #(
804338d718bdSmrg  e) eval $cacheid=no ;;
804438d718bdSmrgesac
8045988795beSmrgfi
8046352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
804738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
804838d718bdSmrgesac
8049988795beSmrgfi
8050988795beSmrg
8051988795beSmrg
8052988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8053988795beSmrg
8054988795beSmrg		eval supported=\$$cacheid
8055352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8057988795beSmrg		if test "$supported" = "yes" ; then
8058988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8059988795beSmrg			found="yes"
8060988795beSmrg		fi
8061988795beSmrg	fi
8062988795beSmrg
8063988795beSmrg
8064988795beSmrg
8065988795beSmrg
8066988795beSmrg
8067988795beSmrg
8068988795beSmrg
8069988795beSmrg
8070988795beSmrg
8071988795beSmrg
8072988795beSmrg
8073988795beSmrg
8074988795beSmrg
8075988795beSmrg
8076988795beSmrg
8077988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8078988795beSmrg
8079988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8084352bf44eSmrgthen :
8085352bf44eSmrg  printf %s "(cached) " >&6
808638d718bdSmrgelse case e in #(
808738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088988795beSmrg/* end confdefs.h.  */
8089988795beSmrgint i;
8090988795beSmrg_ACEOF
8091352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8092352bf44eSmrgthen :
8093988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
809438d718bdSmrgelse case e in #(
809538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
809638d718bdSmrgesac
8097988795beSmrgfi
809838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
809938d718bdSmrgesac
8100988795beSmrgfi
8101352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8105988795beSmrgfi
8106988795beSmrg
8107988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110988795beSmrg	fi
8111988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8115352bf44eSmrgthen :
8116352bf44eSmrg  printf %s "(cached) " >&6
811738d718bdSmrgelse case e in #(
811838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119988795beSmrg/* end confdefs.h.  */
8120988795beSmrgint i;
8121988795beSmrg_ACEOF
8122352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8123352bf44eSmrgthen :
8124988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
812538d718bdSmrgelse case e in #(
812638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
812738d718bdSmrgesac
8128988795beSmrgfi
812938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
813038d718bdSmrgesac
8131988795beSmrgfi
8132352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8133352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8134988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8135988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8136988795beSmrgfi
8137988795beSmrg
8138988795beSmrgfound="no"
8139988795beSmrg
8140988795beSmrg	if test $found = "no" ; then
8141ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8142988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143988795beSmrg		fi
8144988795beSmrg
8145ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8146988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147988795beSmrg		fi
8148988795beSmrg
8149988795beSmrg		CFLAGS="$CFLAGS -Werror=return-type"
8150988795beSmrg
8151352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8152352bf44eSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
8153ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
8154352bf44eSmrg		if eval test \${$cacheid+y}
8155352bf44eSmrgthen :
8156352bf44eSmrg  printf %s "(cached) " >&6
815738d718bdSmrgelse case e in #(
815838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159988795beSmrg/* end confdefs.h.  */
8160988795beSmrgint i;
8161988795beSmrgint
8162352bf44eSmrgmain (void)
8163988795beSmrg{
8164988795beSmrg
8165988795beSmrg  ;
8166988795beSmrg  return 0;
8167988795beSmrg}
8168988795beSmrg_ACEOF
8169352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8170352bf44eSmrgthen :
8171988795beSmrg  eval $cacheid=yes
817238d718bdSmrgelse case e in #(
817338d718bdSmrg  e) eval $cacheid=no ;;
817438d718bdSmrgesac
8175988795beSmrgfi
8176352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
817738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
817838d718bdSmrgesac
8179988795beSmrgfi
8180988795beSmrg
8181988795beSmrg
8182988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8183988795beSmrg
8184988795beSmrg		eval supported=\$$cacheid
8185352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8187988795beSmrg		if test "$supported" = "yes" ; then
8188988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8189988795beSmrg			found="yes"
8190988795beSmrg		fi
8191988795beSmrg	fi
8192988795beSmrg
8193988795beSmrg	if test $found = "no" ; then
8194ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196988795beSmrg		fi
8197988795beSmrg
8198ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8199988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200988795beSmrg		fi
8201988795beSmrg
8202988795beSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8203988795beSmrg
8204352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8205352bf44eSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8206ad47b356Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8207352bf44eSmrg		if eval test \${$cacheid+y}
8208352bf44eSmrgthen :
8209352bf44eSmrg  printf %s "(cached) " >&6
821038d718bdSmrgelse case e in #(
821138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212988795beSmrg/* end confdefs.h.  */
8213988795beSmrgint i;
8214988795beSmrgint
8215352bf44eSmrgmain (void)
8216988795beSmrg{
8217988795beSmrg
8218988795beSmrg  ;
8219988795beSmrg  return 0;
8220988795beSmrg}
8221988795beSmrg_ACEOF
8222352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8223352bf44eSmrgthen :
8224988795beSmrg  eval $cacheid=yes
822538d718bdSmrgelse case e in #(
822638d718bdSmrg  e) eval $cacheid=no ;;
822738d718bdSmrgesac
8228988795beSmrgfi
8229352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
823038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
823138d718bdSmrgesac
8232988795beSmrgfi
8233988795beSmrg
8234988795beSmrg
8235988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8236988795beSmrg
8237988795beSmrg		eval supported=\$$cacheid
8238352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8239352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8240988795beSmrg		if test "$supported" = "yes" ; then
8241988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8242988795beSmrg			found="yes"
8243988795beSmrg		fi
8244988795beSmrg	fi
8245988795beSmrg
8246988795beSmrg
8247988795beSmrg
8248988795beSmrg
8249988795beSmrg
8250988795beSmrg
8251988795beSmrg
8252988795beSmrg
8253988795beSmrg
8254988795beSmrg
8255988795beSmrg
8256988795beSmrg
8257988795beSmrg
8258988795beSmrg
8259988795beSmrg
8260988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8261988795beSmrg
8262988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8263988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8265352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8266352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8267352bf44eSmrgthen :
8268352bf44eSmrg  printf %s "(cached) " >&6
826938d718bdSmrgelse case e in #(
827038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271988795beSmrg/* end confdefs.h.  */
8272988795beSmrgint i;
8273988795beSmrg_ACEOF
8274352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8275352bf44eSmrgthen :
8276988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
827738d718bdSmrgelse case e in #(
827838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
827938d718bdSmrgesac
8280988795beSmrgfi
828138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
828238d718bdSmrgesac
8283988795beSmrgfi
8284352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8288988795beSmrgfi
8289988795beSmrg
8290988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293988795beSmrg	fi
8294988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8298352bf44eSmrgthen :
8299352bf44eSmrg  printf %s "(cached) " >&6
830038d718bdSmrgelse case e in #(
830138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302988795beSmrg/* end confdefs.h.  */
8303988795beSmrgint i;
8304988795beSmrg_ACEOF
8305352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8306352bf44eSmrgthen :
8307988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
830838d718bdSmrgelse case e in #(
830938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
831038d718bdSmrgesac
8311988795beSmrgfi
831238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
831338d718bdSmrgesac
8314988795beSmrgfi
8315352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8319988795beSmrgfi
8320988795beSmrg
8321988795beSmrgfound="no"
8322988795beSmrg
8323988795beSmrg	if test $found = "no" ; then
8324ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326988795beSmrg		fi
8327988795beSmrg
8328ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330988795beSmrg		fi
8331988795beSmrg
8332988795beSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8333988795beSmrg
8334352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8335352bf44eSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8336ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8337352bf44eSmrg		if eval test \${$cacheid+y}
8338352bf44eSmrgthen :
8339352bf44eSmrg  printf %s "(cached) " >&6
834038d718bdSmrgelse case e in #(
834138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342988795beSmrg/* end confdefs.h.  */
8343988795beSmrgint i;
8344988795beSmrgint
8345352bf44eSmrgmain (void)
8346988795beSmrg{
8347988795beSmrg
8348988795beSmrg  ;
8349988795beSmrg  return 0;
8350988795beSmrg}
8351988795beSmrg_ACEOF
8352352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8353352bf44eSmrgthen :
8354988795beSmrg  eval $cacheid=yes
835538d718bdSmrgelse case e in #(
835638d718bdSmrg  e) eval $cacheid=no ;;
835738d718bdSmrgesac
8358988795beSmrgfi
8359352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
836038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
836138d718bdSmrgesac
8362988795beSmrgfi
8363988795beSmrg
8364988795beSmrg
8365988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8366988795beSmrg
8367988795beSmrg		eval supported=\$$cacheid
8368352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8369352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8370988795beSmrg		if test "$supported" = "yes" ; then
8371988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8372988795beSmrg			found="yes"
8373988795beSmrg		fi
8374988795beSmrg	fi
8375988795beSmrg
8376988795beSmrg
8377988795beSmrg
8378988795beSmrg
8379988795beSmrg
8380988795beSmrg
8381988795beSmrg
8382988795beSmrg
8383988795beSmrg
8384988795beSmrg
8385988795beSmrg
8386988795beSmrg
8387988795beSmrg
8388988795beSmrg
8389988795beSmrg
8390988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8391988795beSmrg
8392988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8393988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8395352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8396352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8397352bf44eSmrgthen :
8398352bf44eSmrg  printf %s "(cached) " >&6
839938d718bdSmrgelse case e in #(
840038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401988795beSmrg/* end confdefs.h.  */
8402988795beSmrgint i;
8403988795beSmrg_ACEOF
8404352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8405352bf44eSmrgthen :
8406988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
840738d718bdSmrgelse case e in #(
840838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
840938d718bdSmrgesac
8410988795beSmrgfi
841138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
841238d718bdSmrgesac
8413988795beSmrgfi
8414352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8415352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8416988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8417988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8418988795beSmrgfi
8419988795beSmrg
8420988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8421988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8422988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423988795beSmrg	fi
8424988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8426352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8427352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8428352bf44eSmrgthen :
8429352bf44eSmrg  printf %s "(cached) " >&6
843038d718bdSmrgelse case e in #(
843138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432988795beSmrg/* end confdefs.h.  */
8433988795beSmrgint i;
8434988795beSmrg_ACEOF
8435352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8436352bf44eSmrgthen :
8437988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
843838d718bdSmrgelse case e in #(
843938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
844038d718bdSmrgesac
8441988795beSmrgfi
844238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
844338d718bdSmrgesac
8444988795beSmrgfi
8445352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8446352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8447988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8448988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8449988795beSmrgfi
8450988795beSmrg
8451988795beSmrgfound="no"
8452988795beSmrg
8453988795beSmrg	if test $found = "no" ; then
8454ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456988795beSmrg		fi
8457988795beSmrg
8458ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8459988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460988795beSmrg		fi
8461988795beSmrg
8462988795beSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8463988795beSmrg
8464352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8465352bf44eSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8466ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8467352bf44eSmrg		if eval test \${$cacheid+y}
8468352bf44eSmrgthen :
8469352bf44eSmrg  printf %s "(cached) " >&6
847038d718bdSmrgelse case e in #(
847138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472988795beSmrg/* end confdefs.h.  */
8473988795beSmrgint i;
8474988795beSmrgint
8475352bf44eSmrgmain (void)
8476988795beSmrg{
8477988795beSmrg
8478988795beSmrg  ;
8479988795beSmrg  return 0;
8480988795beSmrg}
8481988795beSmrg_ACEOF
8482352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8483352bf44eSmrgthen :
8484988795beSmrg  eval $cacheid=yes
848538d718bdSmrgelse case e in #(
848638d718bdSmrg  e) eval $cacheid=no ;;
848738d718bdSmrgesac
8488988795beSmrgfi
8489352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
849038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
849138d718bdSmrgesac
8492988795beSmrgfi
8493988795beSmrg
8494988795beSmrg
8495988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8496988795beSmrg
8497988795beSmrg		eval supported=\$$cacheid
8498352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8499352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8500988795beSmrg		if test "$supported" = "yes" ; then
8501988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8502988795beSmrg			found="yes"
8503988795beSmrg		fi
8504988795beSmrg	fi
8505988795beSmrg
8506988795beSmrg
8507988795beSmrg
8508988795beSmrg
8509988795beSmrg
8510988795beSmrg
8511988795beSmrg
8512988795beSmrg
8513988795beSmrg
8514988795beSmrg
8515988795beSmrg
8516988795beSmrg
8517988795beSmrg
8518988795beSmrg
8519988795beSmrg
8520988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8521988795beSmrg
8522988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8523988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8525352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8526352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8527352bf44eSmrgthen :
8528352bf44eSmrg  printf %s "(cached) " >&6
852938d718bdSmrgelse case e in #(
853038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531988795beSmrg/* end confdefs.h.  */
8532988795beSmrgint i;
8533988795beSmrg_ACEOF
8534352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8535352bf44eSmrgthen :
8536988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
853738d718bdSmrgelse case e in #(
853838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
853938d718bdSmrgesac
8540988795beSmrgfi
854138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
854238d718bdSmrgesac
8543988795beSmrgfi
8544352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8548988795beSmrgfi
8549988795beSmrg
8550988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553988795beSmrg	fi
8554988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8558352bf44eSmrgthen :
8559352bf44eSmrg  printf %s "(cached) " >&6
856038d718bdSmrgelse case e in #(
856138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562988795beSmrg/* end confdefs.h.  */
8563988795beSmrgint i;
8564988795beSmrg_ACEOF
8565352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8566352bf44eSmrgthen :
8567988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
856838d718bdSmrgelse case e in #(
856938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
857038d718bdSmrgesac
8571988795beSmrgfi
857238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
857338d718bdSmrgesac
8574988795beSmrgfi
8575352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8576352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8577988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8578988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8579988795beSmrgfi
8580988795beSmrg
8581988795beSmrgfound="no"
8582988795beSmrg
8583988795beSmrg	if test $found = "no" ; then
8584ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586988795beSmrg		fi
8587988795beSmrg
8588ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8589988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8590988795beSmrg		fi
8591988795beSmrg
8592988795beSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
8593988795beSmrg
8594352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8595352bf44eSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8596ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8597352bf44eSmrg		if eval test \${$cacheid+y}
8598352bf44eSmrgthen :
8599352bf44eSmrg  printf %s "(cached) " >&6
860038d718bdSmrgelse case e in #(
860138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602988795beSmrg/* end confdefs.h.  */
8603988795beSmrgint i;
8604988795beSmrgint
8605352bf44eSmrgmain (void)
8606988795beSmrg{
8607988795beSmrg
8608988795beSmrg  ;
8609988795beSmrg  return 0;
8610988795beSmrg}
8611988795beSmrg_ACEOF
8612352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8613352bf44eSmrgthen :
8614988795beSmrg  eval $cacheid=yes
861538d718bdSmrgelse case e in #(
861638d718bdSmrg  e) eval $cacheid=no ;;
861738d718bdSmrgesac
8618988795beSmrgfi
8619352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
862038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
862138d718bdSmrgesac
8622988795beSmrgfi
8623988795beSmrg
8624988795beSmrg
8625988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8626988795beSmrg
8627988795beSmrg		eval supported=\$$cacheid
8628352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8630988795beSmrg		if test "$supported" = "yes" ; then
8631988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8632988795beSmrg			found="yes"
8633988795beSmrg		fi
8634988795beSmrg	fi
8635988795beSmrg
8636988795beSmrg
8637988795beSmrg
8638988795beSmrg
8639988795beSmrg
8640988795beSmrg
8641988795beSmrg
8642988795beSmrg
8643988795beSmrg
8644988795beSmrg
8645988795beSmrg
8646988795beSmrg
8647988795beSmrg
8648988795beSmrg
8649988795beSmrg
8650988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8651988795beSmrg
8652988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8653988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8655352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8656352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8657352bf44eSmrgthen :
8658352bf44eSmrg  printf %s "(cached) " >&6
865938d718bdSmrgelse case e in #(
866038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661988795beSmrg/* end confdefs.h.  */
8662988795beSmrgint i;
8663988795beSmrg_ACEOF
8664352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8665352bf44eSmrgthen :
8666988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
866738d718bdSmrgelse case e in #(
866838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
866938d718bdSmrgesac
8670988795beSmrgfi
867138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
867238d718bdSmrgesac
8673988795beSmrgfi
8674352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8675352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8676988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8677988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8678988795beSmrgfi
8679988795beSmrg
8680988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8681988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8682988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683988795beSmrg	fi
8684988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8686352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8687352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8688352bf44eSmrgthen :
8689352bf44eSmrg  printf %s "(cached) " >&6
869038d718bdSmrgelse case e in #(
869138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692988795beSmrg/* end confdefs.h.  */
8693988795beSmrgint i;
8694988795beSmrg_ACEOF
8695352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8696352bf44eSmrgthen :
8697988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
869838d718bdSmrgelse case e in #(
869938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
870038d718bdSmrgesac
8701988795beSmrgfi
870238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
870338d718bdSmrgesac
8704988795beSmrgfi
8705352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8706352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8707988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8708988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8709988795beSmrgfi
8710988795beSmrg
8711988795beSmrgfound="no"
8712988795beSmrg
8713988795beSmrg	if test $found = "no" ; then
8714ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716988795beSmrg		fi
8717988795beSmrg
8718ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720988795beSmrg		fi
8721988795beSmrg
8722988795beSmrg		CFLAGS="$CFLAGS -Werror=address"
8723988795beSmrg
8724352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8725352bf44eSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8726ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_address
8727352bf44eSmrg		if eval test \${$cacheid+y}
8728352bf44eSmrgthen :
8729352bf44eSmrg  printf %s "(cached) " >&6
873038d718bdSmrgelse case e in #(
873138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732988795beSmrg/* end confdefs.h.  */
8733988795beSmrgint i;
8734988795beSmrgint
8735352bf44eSmrgmain (void)
8736988795beSmrg{
8737988795beSmrg
8738988795beSmrg  ;
8739988795beSmrg  return 0;
8740988795beSmrg}
8741988795beSmrg_ACEOF
8742352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8743352bf44eSmrgthen :
8744988795beSmrg  eval $cacheid=yes
874538d718bdSmrgelse case e in #(
874638d718bdSmrg  e) eval $cacheid=no ;;
874738d718bdSmrgesac
8748988795beSmrgfi
8749352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
875038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
875138d718bdSmrgesac
8752988795beSmrgfi
8753988795beSmrg
8754988795beSmrg
8755988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8756988795beSmrg
8757988795beSmrg		eval supported=\$$cacheid
8758352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8760988795beSmrg		if test "$supported" = "yes" ; then
8761988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8762988795beSmrg			found="yes"
8763988795beSmrg		fi
8764988795beSmrg	fi
8765988795beSmrg
8766988795beSmrg
8767988795beSmrg
8768988795beSmrg
8769988795beSmrg
8770988795beSmrg
8771988795beSmrg
8772988795beSmrg
8773988795beSmrg
8774988795beSmrg
8775988795beSmrg
8776988795beSmrg
8777988795beSmrg
8778988795beSmrg
8779988795beSmrg
8780988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8781988795beSmrg
8782988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8783988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8787352bf44eSmrgthen :
8788352bf44eSmrg  printf %s "(cached) " >&6
878938d718bdSmrgelse case e in #(
879038d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791988795beSmrg/* end confdefs.h.  */
8792988795beSmrgint i;
8793988795beSmrg_ACEOF
8794352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8795352bf44eSmrgthen :
8796988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
879738d718bdSmrgelse case e in #(
879838d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
879938d718bdSmrgesac
8800988795beSmrgfi
880138d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
880238d718bdSmrgesac
8803988795beSmrgfi
8804352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8805352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8806988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8807988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8808988795beSmrgfi
8809988795beSmrg
8810988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8811988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8812988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813988795beSmrg	fi
8814988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8816352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8817352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8818352bf44eSmrgthen :
8819352bf44eSmrg  printf %s "(cached) " >&6
882038d718bdSmrgelse case e in #(
882138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822988795beSmrg/* end confdefs.h.  */
8823988795beSmrgint i;
8824988795beSmrg_ACEOF
8825352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8826352bf44eSmrgthen :
8827988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
882838d718bdSmrgelse case e in #(
882938d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
883038d718bdSmrgesac
8831988795beSmrgfi
883238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
883338d718bdSmrgesac
8834988795beSmrgfi
8835352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8839988795beSmrgfi
8840988795beSmrg
8841988795beSmrgfound="no"
8842988795beSmrg
8843988795beSmrg	if test $found = "no" ; then
8844ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846988795beSmrg		fi
8847988795beSmrg
8848ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850988795beSmrg		fi
8851988795beSmrg
8852988795beSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8853988795beSmrg
8854352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8855352bf44eSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8856ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8857352bf44eSmrg		if eval test \${$cacheid+y}
8858352bf44eSmrgthen :
8859352bf44eSmrg  printf %s "(cached) " >&6
886038d718bdSmrgelse case e in #(
886138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862988795beSmrg/* end confdefs.h.  */
8863988795beSmrgint i;
8864988795beSmrgint
8865352bf44eSmrgmain (void)
8866988795beSmrg{
8867988795beSmrg
8868988795beSmrg  ;
8869988795beSmrg  return 0;
8870988795beSmrg}
8871988795beSmrg_ACEOF
8872352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8873352bf44eSmrgthen :
8874988795beSmrg  eval $cacheid=yes
887538d718bdSmrgelse case e in #(
887638d718bdSmrg  e) eval $cacheid=no ;;
887738d718bdSmrgesac
8878988795beSmrgfi
8879352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
888038d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
888138d718bdSmrgesac
8882988795beSmrgfi
8883988795beSmrg
8884988795beSmrg
8885988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8886988795beSmrg
8887988795beSmrg		eval supported=\$$cacheid
8888352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8889352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8890988795beSmrg		if test "$supported" = "yes" ; then
8891988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8892988795beSmrg			found="yes"
8893988795beSmrg		fi
8894988795beSmrg	fi
8895988795beSmrg
8896988795beSmrg	if test $found = "no" ; then
8897ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899988795beSmrg		fi
8900988795beSmrg
8901ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8902988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903988795beSmrg		fi
8904988795beSmrg
8905988795beSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8906988795beSmrg
8907352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8908352bf44eSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8909ad47b356Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8910352bf44eSmrg		if eval test \${$cacheid+y}
8911352bf44eSmrgthen :
8912352bf44eSmrg  printf %s "(cached) " >&6
891338d718bdSmrgelse case e in #(
891438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915988795beSmrg/* end confdefs.h.  */
8916988795beSmrgint i;
8917988795beSmrgint
8918352bf44eSmrgmain (void)
8919988795beSmrg{
8920988795beSmrg
8921988795beSmrg  ;
8922988795beSmrg  return 0;
8923988795beSmrg}
8924988795beSmrg_ACEOF
8925352bf44eSmrgif ac_fn_c_try_link "$LINENO"
8926352bf44eSmrgthen :
8927988795beSmrg  eval $cacheid=yes
892838d718bdSmrgelse case e in #(
892938d718bdSmrg  e) eval $cacheid=no ;;
893038d718bdSmrgesac
8931988795beSmrgfi
8932352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
893338d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
893438d718bdSmrgesac
8935988795beSmrgfi
8936988795beSmrg
8937988795beSmrg
8938988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8939988795beSmrg
8940988795beSmrg		eval supported=\$$cacheid
8941352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942352bf44eSmrgprintf "%s\n" "$supported" >&6; }
8943988795beSmrg		if test "$supported" = "yes" ; then
8944988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8945988795beSmrg			found="yes"
8946988795beSmrg		fi
8947988795beSmrg	fi
8948988795beSmrg
8949988795beSmrg
8950988795beSmrg
8951988795beSmrg
8952988795beSmrg
8953988795beSmrg
8954988795beSmrg
8955988795beSmrg
8956988795beSmrg
8957988795beSmrg
8958988795beSmrg
8959988795beSmrg
8960988795beSmrg
8961988795beSmrg
8962988795beSmrg
8963988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8964988795beSmrg
8965988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970352bf44eSmrgthen :
8971352bf44eSmrg  printf %s "(cached) " >&6
897238d718bdSmrgelse case e in #(
897338d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974988795beSmrg/* end confdefs.h.  */
8975988795beSmrgint i;
8976988795beSmrg_ACEOF
8977352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
8978352bf44eSmrgthen :
8979988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
898038d718bdSmrgelse case e in #(
898138d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
898238d718bdSmrgesac
8983988795beSmrgfi
898438d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
898538d718bdSmrgesac
8986988795beSmrgfi
8987352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8991988795beSmrgfi
8992988795beSmrg
8993988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996988795beSmrg	fi
8997988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9001352bf44eSmrgthen :
9002352bf44eSmrg  printf %s "(cached) " >&6
900338d718bdSmrgelse case e in #(
900438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005988795beSmrg/* end confdefs.h.  */
9006988795beSmrgint i;
9007988795beSmrg_ACEOF
9008352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9009352bf44eSmrgthen :
9010988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
901138d718bdSmrgelse case e in #(
901238d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
901338d718bdSmrgesac
9014988795beSmrgfi
901538d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
901638d718bdSmrgesac
9017988795beSmrgfi
9018352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9022988795beSmrgfi
9023988795beSmrg
9024988795beSmrgfound="no"
9025988795beSmrg
9026988795beSmrg	if test $found = "no" ; then
9027ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029988795beSmrg		fi
9030988795beSmrg
9031ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9032988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033988795beSmrg		fi
9034988795beSmrg
9035988795beSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9036988795beSmrg
9037352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9038352bf44eSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9039ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9040352bf44eSmrg		if eval test \${$cacheid+y}
9041352bf44eSmrgthen :
9042352bf44eSmrg  printf %s "(cached) " >&6
904338d718bdSmrgelse case e in #(
904438d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045988795beSmrg/* end confdefs.h.  */
9046988795beSmrgint i;
9047988795beSmrgint
9048352bf44eSmrgmain (void)
9049988795beSmrg{
9050988795beSmrg
9051988795beSmrg  ;
9052988795beSmrg  return 0;
9053988795beSmrg}
9054988795beSmrg_ACEOF
9055352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9056352bf44eSmrgthen :
9057988795beSmrg  eval $cacheid=yes
905838d718bdSmrgelse case e in #(
905938d718bdSmrg  e) eval $cacheid=no ;;
906038d718bdSmrgesac
9061988795beSmrgfi
9062352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
906338d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
906438d718bdSmrgesac
9065988795beSmrgfi
9066988795beSmrg
9067988795beSmrg
9068988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9069988795beSmrg
9070988795beSmrg		eval supported=\$$cacheid
9071352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9073988795beSmrg		if test "$supported" = "yes" ; then
9074988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9075988795beSmrg			found="yes"
9076988795beSmrg		fi
9077988795beSmrg	fi
9078988795beSmrg
9079988795beSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9080988795beSmrgelse
9081352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
9082352bf44eSmrgprintf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
9083988795beSmrg
9084988795beSmrg
9085988795beSmrg
9086988795beSmrg
9087988795beSmrg
9088988795beSmrg
9089988795beSmrg
9090988795beSmrg
9091988795beSmrg
9092988795beSmrg
9093988795beSmrg
9094988795beSmrg
9095988795beSmrg
9096988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9097988795beSmrg
9098988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9099988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9101352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9102352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9103352bf44eSmrgthen :
9104352bf44eSmrg  printf %s "(cached) " >&6
910538d718bdSmrgelse case e in #(
910638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107988795beSmrg/* end confdefs.h.  */
9108988795beSmrgint i;
9109988795beSmrg_ACEOF
9110352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9111352bf44eSmrgthen :
9112988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
911338d718bdSmrgelse case e in #(
911438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
911538d718bdSmrgesac
9116988795beSmrgfi
911738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
911838d718bdSmrgesac
9119988795beSmrgfi
9120352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9121352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9122988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9123988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9124988795beSmrgfi
9125988795beSmrg
9126988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9127988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129988795beSmrg	fi
9130988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9132352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9133352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9134352bf44eSmrgthen :
9135352bf44eSmrg  printf %s "(cached) " >&6
913638d718bdSmrgelse case e in #(
913738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138988795beSmrg/* end confdefs.h.  */
9139988795beSmrgint i;
9140988795beSmrg_ACEOF
9141352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9142352bf44eSmrgthen :
9143988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
914438d718bdSmrgelse case e in #(
914538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
914638d718bdSmrgesac
9147988795beSmrgfi
914838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
914938d718bdSmrgesac
9150988795beSmrgfi
9151352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9155988795beSmrgfi
9156988795beSmrg
9157988795beSmrgfound="no"
9158988795beSmrg
9159988795beSmrg	if test $found = "no" ; then
9160ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162988795beSmrg		fi
9163988795beSmrg
9164ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9165988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166988795beSmrg		fi
9167988795beSmrg
9168988795beSmrg		CFLAGS="$CFLAGS -Wimplicit"
9169988795beSmrg
9170352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9171352bf44eSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
9172988795beSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
9173352bf44eSmrg		if eval test \${$cacheid+y}
9174352bf44eSmrgthen :
9175352bf44eSmrg  printf %s "(cached) " >&6
917638d718bdSmrgelse case e in #(
917738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178988795beSmrg/* end confdefs.h.  */
9179988795beSmrgint i;
9180988795beSmrgint
9181352bf44eSmrgmain (void)
9182988795beSmrg{
9183988795beSmrg
9184988795beSmrg  ;
9185988795beSmrg  return 0;
9186988795beSmrg}
9187988795beSmrg_ACEOF
9188352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9189352bf44eSmrgthen :
9190988795beSmrg  eval $cacheid=yes
919138d718bdSmrgelse case e in #(
919238d718bdSmrg  e) eval $cacheid=no ;;
919338d718bdSmrgesac
9194988795beSmrgfi
9195352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
919638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
919738d718bdSmrgesac
9198988795beSmrgfi
9199988795beSmrg
9200988795beSmrg
9201988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9202988795beSmrg
9203988795beSmrg		eval supported=\$$cacheid
9204352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9205352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9206988795beSmrg		if test "$supported" = "yes" ; then
9207988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9208988795beSmrg			found="yes"
9209988795beSmrg		fi
9210988795beSmrg	fi
9211988795beSmrg
9212988795beSmrg
9213988795beSmrg
9214988795beSmrg
9215988795beSmrg
9216988795beSmrg
9217988795beSmrg
9218988795beSmrg
9219988795beSmrg
9220988795beSmrg
9221988795beSmrg
9222988795beSmrg
9223988795beSmrg
9224988795beSmrg
9225988795beSmrg
9226988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9227988795beSmrg
9228988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9229988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9231352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9232352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9233352bf44eSmrgthen :
9234352bf44eSmrg  printf %s "(cached) " >&6
923538d718bdSmrgelse case e in #(
923638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237988795beSmrg/* end confdefs.h.  */
9238988795beSmrgint i;
9239988795beSmrg_ACEOF
9240352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9241352bf44eSmrgthen :
9242988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
924338d718bdSmrgelse case e in #(
924438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
924538d718bdSmrgesac
9246988795beSmrgfi
924738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
924838d718bdSmrgesac
9249988795beSmrgfi
9250352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9254988795beSmrgfi
9255988795beSmrg
9256988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259988795beSmrg	fi
9260988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9264352bf44eSmrgthen :
9265352bf44eSmrg  printf %s "(cached) " >&6
926638d718bdSmrgelse case e in #(
926738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268988795beSmrg/* end confdefs.h.  */
9269988795beSmrgint i;
9270988795beSmrg_ACEOF
9271352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9272352bf44eSmrgthen :
9273988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
927438d718bdSmrgelse case e in #(
927538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
927638d718bdSmrgesac
9277988795beSmrgfi
927838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
927938d718bdSmrgesac
9280988795beSmrgfi
9281352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9282352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9283988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9284988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9285988795beSmrgfi
9286988795beSmrg
9287988795beSmrgfound="no"
9288988795beSmrg
9289988795beSmrg	if test $found = "no" ; then
9290ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292988795beSmrg		fi
9293988795beSmrg
9294ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9295988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296988795beSmrg		fi
9297988795beSmrg
9298988795beSmrg		CFLAGS="$CFLAGS -Wnonnull"
9299988795beSmrg
9300352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9301352bf44eSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9302988795beSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
9303352bf44eSmrg		if eval test \${$cacheid+y}
9304352bf44eSmrgthen :
9305352bf44eSmrg  printf %s "(cached) " >&6
930638d718bdSmrgelse case e in #(
930738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308988795beSmrg/* end confdefs.h.  */
9309988795beSmrgint i;
9310988795beSmrgint
9311352bf44eSmrgmain (void)
9312988795beSmrg{
9313988795beSmrg
9314988795beSmrg  ;
9315988795beSmrg  return 0;
9316988795beSmrg}
9317988795beSmrg_ACEOF
9318352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9319352bf44eSmrgthen :
9320988795beSmrg  eval $cacheid=yes
932138d718bdSmrgelse case e in #(
932238d718bdSmrg  e) eval $cacheid=no ;;
932338d718bdSmrgesac
9324988795beSmrgfi
9325352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
932638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
932738d718bdSmrgesac
9328988795beSmrgfi
9329988795beSmrg
9330988795beSmrg
9331988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9332988795beSmrg
9333988795beSmrg		eval supported=\$$cacheid
9334352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9335352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9336988795beSmrg		if test "$supported" = "yes" ; then
9337988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9338988795beSmrg			found="yes"
9339988795beSmrg		fi
9340988795beSmrg	fi
9341988795beSmrg
9342988795beSmrg
9343988795beSmrg
9344988795beSmrg
9345988795beSmrg
9346988795beSmrg
9347988795beSmrg
9348988795beSmrg
9349988795beSmrg
9350988795beSmrg
9351988795beSmrg
9352988795beSmrg
9353988795beSmrg
9354988795beSmrg
9355988795beSmrg
9356988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9357988795beSmrg
9358988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9359988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9361352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9362352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9363352bf44eSmrgthen :
9364352bf44eSmrg  printf %s "(cached) " >&6
936538d718bdSmrgelse case e in #(
936638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367988795beSmrg/* end confdefs.h.  */
9368988795beSmrgint i;
9369988795beSmrg_ACEOF
9370352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9371352bf44eSmrgthen :
9372988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
937338d718bdSmrgelse case e in #(
937438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
937538d718bdSmrgesac
9376988795beSmrgfi
937738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
937838d718bdSmrgesac
9379988795beSmrgfi
9380352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9381352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9382988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9383988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9384988795beSmrgfi
9385988795beSmrg
9386988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9387988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389988795beSmrg	fi
9390988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9392352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9393352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9394352bf44eSmrgthen :
9395352bf44eSmrg  printf %s "(cached) " >&6
939638d718bdSmrgelse case e in #(
939738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398988795beSmrg/* end confdefs.h.  */
9399988795beSmrgint i;
9400988795beSmrg_ACEOF
9401352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9402352bf44eSmrgthen :
9403988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
940438d718bdSmrgelse case e in #(
940538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
940638d718bdSmrgesac
9407988795beSmrgfi
940838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
940938d718bdSmrgesac
9410988795beSmrgfi
9411352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9412352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9413988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9414988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9415988795beSmrgfi
9416988795beSmrg
9417988795beSmrgfound="no"
9418988795beSmrg
9419988795beSmrg	if test $found = "no" ; then
9420ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9421988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422988795beSmrg		fi
9423988795beSmrg
9424ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9425988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9426988795beSmrg		fi
9427988795beSmrg
9428988795beSmrg		CFLAGS="$CFLAGS -Winit-self"
9429988795beSmrg
9430352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9431352bf44eSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9432988795beSmrg		cacheid=xorg_cv_cc_flag__Winit_self
9433352bf44eSmrg		if eval test \${$cacheid+y}
9434352bf44eSmrgthen :
9435352bf44eSmrg  printf %s "(cached) " >&6
943638d718bdSmrgelse case e in #(
943738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438988795beSmrg/* end confdefs.h.  */
9439988795beSmrgint i;
9440988795beSmrgint
9441352bf44eSmrgmain (void)
9442988795beSmrg{
9443988795beSmrg
9444988795beSmrg  ;
9445988795beSmrg  return 0;
9446988795beSmrg}
9447988795beSmrg_ACEOF
9448352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9449352bf44eSmrgthen :
9450988795beSmrg  eval $cacheid=yes
945138d718bdSmrgelse case e in #(
945238d718bdSmrg  e) eval $cacheid=no ;;
945338d718bdSmrgesac
9454988795beSmrgfi
9455352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
945638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
945738d718bdSmrgesac
9458988795beSmrgfi
9459988795beSmrg
9460988795beSmrg
9461988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9462988795beSmrg
9463988795beSmrg		eval supported=\$$cacheid
9464352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9466988795beSmrg		if test "$supported" = "yes" ; then
9467988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9468988795beSmrg			found="yes"
9469988795beSmrg		fi
9470988795beSmrg	fi
9471988795beSmrg
9472988795beSmrg
9473988795beSmrg
9474988795beSmrg
9475988795beSmrg
9476988795beSmrg
9477988795beSmrg
9478988795beSmrg
9479988795beSmrg
9480988795beSmrg
9481988795beSmrg
9482988795beSmrg
9483988795beSmrg
9484988795beSmrg
9485988795beSmrg
9486988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9487988795beSmrg
9488988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493352bf44eSmrgthen :
9494352bf44eSmrg  printf %s "(cached) " >&6
949538d718bdSmrgelse case e in #(
949638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497988795beSmrg/* end confdefs.h.  */
9498988795beSmrgint i;
9499988795beSmrg_ACEOF
9500352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9501352bf44eSmrgthen :
9502988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
950338d718bdSmrgelse case e in #(
950438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
950538d718bdSmrgesac
9506988795beSmrgfi
950738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
950838d718bdSmrgesac
9509988795beSmrgfi
9510352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9514988795beSmrgfi
9515988795beSmrg
9516988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519988795beSmrg	fi
9520988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9524352bf44eSmrgthen :
9525352bf44eSmrg  printf %s "(cached) " >&6
952638d718bdSmrgelse case e in #(
952738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528988795beSmrg/* end confdefs.h.  */
9529988795beSmrgint i;
9530988795beSmrg_ACEOF
9531352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9532352bf44eSmrgthen :
9533988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
953438d718bdSmrgelse case e in #(
953538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
953638d718bdSmrgesac
9537988795beSmrgfi
953838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
953938d718bdSmrgesac
9540988795beSmrgfi
9541352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9545988795beSmrgfi
9546988795beSmrg
9547988795beSmrgfound="no"
9548988795beSmrg
9549988795beSmrg	if test $found = "no" ; then
9550ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552988795beSmrg		fi
9553988795beSmrg
9554ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9555988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556988795beSmrg		fi
9557988795beSmrg
9558988795beSmrg		CFLAGS="$CFLAGS -Wmain"
9559988795beSmrg
9560352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9561352bf44eSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9562988795beSmrg		cacheid=xorg_cv_cc_flag__Wmain
9563352bf44eSmrg		if eval test \${$cacheid+y}
9564352bf44eSmrgthen :
9565352bf44eSmrg  printf %s "(cached) " >&6
956638d718bdSmrgelse case e in #(
956738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568988795beSmrg/* end confdefs.h.  */
9569988795beSmrgint i;
9570988795beSmrgint
9571352bf44eSmrgmain (void)
9572988795beSmrg{
9573988795beSmrg
9574988795beSmrg  ;
9575988795beSmrg  return 0;
9576988795beSmrg}
9577988795beSmrg_ACEOF
9578352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9579352bf44eSmrgthen :
9580988795beSmrg  eval $cacheid=yes
958138d718bdSmrgelse case e in #(
958238d718bdSmrg  e) eval $cacheid=no ;;
958338d718bdSmrgesac
9584988795beSmrgfi
9585352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
958638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
958738d718bdSmrgesac
9588988795beSmrgfi
9589988795beSmrg
9590988795beSmrg
9591988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9592988795beSmrg
9593988795beSmrg		eval supported=\$$cacheid
9594352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9595352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9596988795beSmrg		if test "$supported" = "yes" ; then
9597988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9598988795beSmrg			found="yes"
9599988795beSmrg		fi
9600988795beSmrg	fi
9601988795beSmrg
9602988795beSmrg
9603988795beSmrg
9604988795beSmrg
9605988795beSmrg
9606988795beSmrg
9607988795beSmrg
9608988795beSmrg
9609988795beSmrg
9610988795beSmrg
9611988795beSmrg
9612988795beSmrg
9613988795beSmrg
9614988795beSmrg
9615988795beSmrg
9616988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9617988795beSmrg
9618988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9619988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9621352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9622352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9623352bf44eSmrgthen :
9624352bf44eSmrg  printf %s "(cached) " >&6
962538d718bdSmrgelse case e in #(
962638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627988795beSmrg/* end confdefs.h.  */
9628988795beSmrgint i;
9629988795beSmrg_ACEOF
9630352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9631352bf44eSmrgthen :
9632988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
963338d718bdSmrgelse case e in #(
963438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
963538d718bdSmrgesac
9636988795beSmrgfi
963738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
963838d718bdSmrgesac
9639988795beSmrgfi
9640352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9644988795beSmrgfi
9645988795beSmrg
9646988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649988795beSmrg	fi
9650988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9654352bf44eSmrgthen :
9655352bf44eSmrg  printf %s "(cached) " >&6
965638d718bdSmrgelse case e in #(
965738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658988795beSmrg/* end confdefs.h.  */
9659988795beSmrgint i;
9660988795beSmrg_ACEOF
9661352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9662352bf44eSmrgthen :
9663988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
966438d718bdSmrgelse case e in #(
966538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
966638d718bdSmrgesac
9667988795beSmrgfi
966838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
966938d718bdSmrgesac
9670988795beSmrgfi
9671352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9675988795beSmrgfi
9676988795beSmrg
9677988795beSmrgfound="no"
9678988795beSmrg
9679988795beSmrg	if test $found = "no" ; then
9680ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682988795beSmrg		fi
9683988795beSmrg
9684ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686988795beSmrg		fi
9687988795beSmrg
9688988795beSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
9689988795beSmrg
9690352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9691352bf44eSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9692988795beSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9693352bf44eSmrg		if eval test \${$cacheid+y}
9694352bf44eSmrgthen :
9695352bf44eSmrg  printf %s "(cached) " >&6
969638d718bdSmrgelse case e in #(
969738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698988795beSmrg/* end confdefs.h.  */
9699988795beSmrgint i;
9700988795beSmrgint
9701352bf44eSmrgmain (void)
9702988795beSmrg{
9703988795beSmrg
9704988795beSmrg  ;
9705988795beSmrg  return 0;
9706988795beSmrg}
9707988795beSmrg_ACEOF
9708352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9709352bf44eSmrgthen :
9710988795beSmrg  eval $cacheid=yes
971138d718bdSmrgelse case e in #(
971238d718bdSmrg  e) eval $cacheid=no ;;
971338d718bdSmrgesac
9714988795beSmrgfi
9715352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
971638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
971738d718bdSmrgesac
9718988795beSmrgfi
9719988795beSmrg
9720988795beSmrg
9721988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9722988795beSmrg
9723988795beSmrg		eval supported=\$$cacheid
9724352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9725352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9726988795beSmrg		if test "$supported" = "yes" ; then
9727988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9728988795beSmrg			found="yes"
9729988795beSmrg		fi
9730988795beSmrg	fi
9731988795beSmrg
9732988795beSmrg
9733988795beSmrg
9734988795beSmrg
9735988795beSmrg
9736988795beSmrg
9737988795beSmrg
9738988795beSmrg
9739988795beSmrg
9740988795beSmrg
9741988795beSmrg
9742988795beSmrg
9743988795beSmrg
9744988795beSmrg
9745988795beSmrg
9746988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9747988795beSmrg
9748988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9749988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9751352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9752352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9753352bf44eSmrgthen :
9754352bf44eSmrg  printf %s "(cached) " >&6
975538d718bdSmrgelse case e in #(
975638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757988795beSmrg/* end confdefs.h.  */
9758988795beSmrgint i;
9759988795beSmrg_ACEOF
9760352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9761352bf44eSmrgthen :
9762988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
976338d718bdSmrgelse case e in #(
976438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
976538d718bdSmrgesac
9766988795beSmrgfi
976738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
976838d718bdSmrgesac
9769988795beSmrgfi
9770352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9771352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9772988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9773988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9774988795beSmrgfi
9775988795beSmrg
9776988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9777988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9778988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779988795beSmrg	fi
9780988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9781352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9782352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9783352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9784352bf44eSmrgthen :
9785352bf44eSmrg  printf %s "(cached) " >&6
978638d718bdSmrgelse case e in #(
978738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788988795beSmrg/* end confdefs.h.  */
9789988795beSmrgint i;
9790988795beSmrg_ACEOF
9791352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9792352bf44eSmrgthen :
9793988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
979438d718bdSmrgelse case e in #(
979538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
979638d718bdSmrgesac
9797988795beSmrgfi
979838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
979938d718bdSmrgesac
9800988795beSmrgfi
9801352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9805988795beSmrgfi
9806988795beSmrg
9807988795beSmrgfound="no"
9808988795beSmrg
9809988795beSmrg	if test $found = "no" ; then
9810ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812988795beSmrg		fi
9813988795beSmrg
9814ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816988795beSmrg		fi
9817988795beSmrg
9818988795beSmrg		CFLAGS="$CFLAGS -Wsequence-point"
9819988795beSmrg
9820352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9821352bf44eSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9822988795beSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9823352bf44eSmrg		if eval test \${$cacheid+y}
9824352bf44eSmrgthen :
9825352bf44eSmrg  printf %s "(cached) " >&6
982638d718bdSmrgelse case e in #(
982738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828988795beSmrg/* end confdefs.h.  */
9829988795beSmrgint i;
9830988795beSmrgint
9831352bf44eSmrgmain (void)
9832988795beSmrg{
9833988795beSmrg
9834988795beSmrg  ;
9835988795beSmrg  return 0;
9836988795beSmrg}
9837988795beSmrg_ACEOF
9838352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9839352bf44eSmrgthen :
9840988795beSmrg  eval $cacheid=yes
984138d718bdSmrgelse case e in #(
984238d718bdSmrg  e) eval $cacheid=no ;;
984338d718bdSmrgesac
9844988795beSmrgfi
9845352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
984638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
984738d718bdSmrgesac
9848988795beSmrgfi
9849988795beSmrg
9850988795beSmrg
9851988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9852988795beSmrg
9853988795beSmrg		eval supported=\$$cacheid
9854352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9856988795beSmrg		if test "$supported" = "yes" ; then
9857988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9858988795beSmrg			found="yes"
9859988795beSmrg		fi
9860988795beSmrg	fi
9861988795beSmrg
9862988795beSmrg
9863988795beSmrg
9864988795beSmrg
9865988795beSmrg
9866988795beSmrg
9867988795beSmrg
9868988795beSmrg
9869988795beSmrg
9870988795beSmrg
9871988795beSmrg
9872988795beSmrg
9873988795beSmrg
9874988795beSmrg
9875988795beSmrg
9876988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9877988795beSmrg
9878988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9883352bf44eSmrgthen :
9884352bf44eSmrg  printf %s "(cached) " >&6
988538d718bdSmrgelse case e in #(
988638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887988795beSmrg/* end confdefs.h.  */
9888988795beSmrgint i;
9889988795beSmrg_ACEOF
9890352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9891352bf44eSmrgthen :
9892988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
989338d718bdSmrgelse case e in #(
989438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
989538d718bdSmrgesac
9896988795beSmrgfi
989738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
989838d718bdSmrgesac
9899988795beSmrgfi
9900352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9901352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9902988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9903988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9904988795beSmrgfi
9905988795beSmrg
9906988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9907988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909988795beSmrg	fi
9910988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9911352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9912352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9913352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9914352bf44eSmrgthen :
9915352bf44eSmrg  printf %s "(cached) " >&6
991638d718bdSmrgelse case e in #(
991738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918988795beSmrg/* end confdefs.h.  */
9919988795beSmrgint i;
9920988795beSmrg_ACEOF
9921352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
9922352bf44eSmrgthen :
9923988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
992438d718bdSmrgelse case e in #(
992538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
992638d718bdSmrgesac
9927988795beSmrgfi
992838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
992938d718bdSmrgesac
9930988795beSmrgfi
9931352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9935988795beSmrgfi
9936988795beSmrg
9937988795beSmrgfound="no"
9938988795beSmrg
9939988795beSmrg	if test $found = "no" ; then
9940ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942988795beSmrg		fi
9943988795beSmrg
9944ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946988795beSmrg		fi
9947988795beSmrg
9948988795beSmrg		CFLAGS="$CFLAGS -Wreturn-type"
9949988795beSmrg
9950352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9951352bf44eSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9952988795beSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9953352bf44eSmrg		if eval test \${$cacheid+y}
9954352bf44eSmrgthen :
9955352bf44eSmrg  printf %s "(cached) " >&6
995638d718bdSmrgelse case e in #(
995738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958988795beSmrg/* end confdefs.h.  */
9959988795beSmrgint i;
9960988795beSmrgint
9961352bf44eSmrgmain (void)
9962988795beSmrg{
9963988795beSmrg
9964988795beSmrg  ;
9965988795beSmrg  return 0;
9966988795beSmrg}
9967988795beSmrg_ACEOF
9968352bf44eSmrgif ac_fn_c_try_link "$LINENO"
9969352bf44eSmrgthen :
9970988795beSmrg  eval $cacheid=yes
997138d718bdSmrgelse case e in #(
997238d718bdSmrg  e) eval $cacheid=no ;;
997338d718bdSmrgesac
9974988795beSmrgfi
9975352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
997638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
997738d718bdSmrgesac
9978988795beSmrgfi
9979988795beSmrg
9980988795beSmrg
9981988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9982988795beSmrg
9983988795beSmrg		eval supported=\$$cacheid
9984352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985352bf44eSmrgprintf "%s\n" "$supported" >&6; }
9986988795beSmrg		if test "$supported" = "yes" ; then
9987988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9988988795beSmrg			found="yes"
9989988795beSmrg		fi
9990988795beSmrg	fi
9991988795beSmrg
9992988795beSmrg
9993988795beSmrg
9994988795beSmrg
9995988795beSmrg
9996988795beSmrg
9997988795beSmrg
9998988795beSmrg
9999988795beSmrg
10000988795beSmrg
10001988795beSmrg
10002988795beSmrg
10003988795beSmrg
10004988795beSmrg
10005988795beSmrg
10006988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10007988795beSmrg
10008988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10013352bf44eSmrgthen :
10014352bf44eSmrg  printf %s "(cached) " >&6
1001538d718bdSmrgelse case e in #(
1001638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017988795beSmrg/* end confdefs.h.  */
10018988795beSmrgint i;
10019988795beSmrg_ACEOF
10020352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10021352bf44eSmrgthen :
10022988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1002338d718bdSmrgelse case e in #(
1002438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1002538d718bdSmrgesac
10026988795beSmrgfi
1002738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1002838d718bdSmrgesac
10029988795beSmrgfi
10030352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10032988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10033988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10034988795beSmrgfi
10035988795beSmrg
10036988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10037988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039988795beSmrg	fi
10040988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10044352bf44eSmrgthen :
10045352bf44eSmrg  printf %s "(cached) " >&6
1004638d718bdSmrgelse case e in #(
1004738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048988795beSmrg/* end confdefs.h.  */
10049988795beSmrgint i;
10050988795beSmrg_ACEOF
10051352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10052352bf44eSmrgthen :
10053988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1005438d718bdSmrgelse case e in #(
1005538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1005638d718bdSmrgesac
10057988795beSmrgfi
1005838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1005938d718bdSmrgesac
10060988795beSmrgfi
10061352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10062352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10063988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10064988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10065988795beSmrgfi
10066988795beSmrg
10067988795beSmrgfound="no"
10068988795beSmrg
10069988795beSmrg	if test $found = "no" ; then
10070ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072988795beSmrg		fi
10073988795beSmrg
10074ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10075988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076988795beSmrg		fi
10077988795beSmrg
10078988795beSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
10079988795beSmrg
10080352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10081352bf44eSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10082988795beSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
10083352bf44eSmrg		if eval test \${$cacheid+y}
10084352bf44eSmrgthen :
10085352bf44eSmrg  printf %s "(cached) " >&6
1008638d718bdSmrgelse case e in #(
1008738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088988795beSmrg/* end confdefs.h.  */
10089988795beSmrgint i;
10090988795beSmrgint
10091352bf44eSmrgmain (void)
10092988795beSmrg{
10093988795beSmrg
10094988795beSmrg  ;
10095988795beSmrg  return 0;
10096988795beSmrg}
10097988795beSmrg_ACEOF
10098352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10099352bf44eSmrgthen :
10100988795beSmrg  eval $cacheid=yes
1010138d718bdSmrgelse case e in #(
1010238d718bdSmrg  e) eval $cacheid=no ;;
1010338d718bdSmrgesac
10104988795beSmrgfi
10105352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1010638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1010738d718bdSmrgesac
10108988795beSmrgfi
10109988795beSmrg
10110988795beSmrg
10111988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10112988795beSmrg
10113988795beSmrg		eval supported=\$$cacheid
10114352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10115352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10116988795beSmrg		if test "$supported" = "yes" ; then
10117988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10118988795beSmrg			found="yes"
10119988795beSmrg		fi
10120988795beSmrg	fi
10121988795beSmrg
10122988795beSmrg
10123988795beSmrg
10124988795beSmrg
10125988795beSmrg
10126988795beSmrg
10127988795beSmrg
10128988795beSmrg
10129988795beSmrg
10130988795beSmrg
10131988795beSmrg
10132988795beSmrg
10133988795beSmrg
10134988795beSmrg
10135988795beSmrg
10136988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10137988795beSmrg
10138988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10139988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10141352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10142352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10143352bf44eSmrgthen :
10144352bf44eSmrg  printf %s "(cached) " >&6
1014538d718bdSmrgelse case e in #(
1014638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147988795beSmrg/* end confdefs.h.  */
10148988795beSmrgint i;
10149988795beSmrg_ACEOF
10150352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10151352bf44eSmrgthen :
10152988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1015338d718bdSmrgelse case e in #(
1015438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1015538d718bdSmrgesac
10156988795beSmrgfi
1015738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1015838d718bdSmrgesac
10159988795beSmrgfi
10160352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10164988795beSmrgfi
10165988795beSmrg
10166988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169988795beSmrg	fi
10170988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10174352bf44eSmrgthen :
10175352bf44eSmrg  printf %s "(cached) " >&6
1017638d718bdSmrgelse case e in #(
1017738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178988795beSmrg/* end confdefs.h.  */
10179988795beSmrgint i;
10180988795beSmrg_ACEOF
10181352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10182352bf44eSmrgthen :
10183988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1018438d718bdSmrgelse case e in #(
1018538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1018638d718bdSmrgesac
10187988795beSmrgfi
1018838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1018938d718bdSmrgesac
10190988795beSmrgfi
10191352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10195988795beSmrgfi
10196988795beSmrg
10197988795beSmrgfound="no"
10198988795beSmrg
10199988795beSmrg	if test $found = "no" ; then
10200ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202988795beSmrg		fi
10203988795beSmrg
10204ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206988795beSmrg		fi
10207988795beSmrg
10208988795beSmrg		CFLAGS="$CFLAGS -Warray-bounds"
10209988795beSmrg
10210352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10211352bf44eSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
10212988795beSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
10213352bf44eSmrg		if eval test \${$cacheid+y}
10214352bf44eSmrgthen :
10215352bf44eSmrg  printf %s "(cached) " >&6
1021638d718bdSmrgelse case e in #(
1021738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218988795beSmrg/* end confdefs.h.  */
10219988795beSmrgint i;
10220988795beSmrgint
10221352bf44eSmrgmain (void)
10222988795beSmrg{
10223988795beSmrg
10224988795beSmrg  ;
10225988795beSmrg  return 0;
10226988795beSmrg}
10227988795beSmrg_ACEOF
10228352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10229352bf44eSmrgthen :
10230988795beSmrg  eval $cacheid=yes
1023138d718bdSmrgelse case e in #(
1023238d718bdSmrg  e) eval $cacheid=no ;;
1023338d718bdSmrgesac
10234988795beSmrgfi
10235352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1023638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1023738d718bdSmrgesac
10238988795beSmrgfi
10239988795beSmrg
10240988795beSmrg
10241988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10242988795beSmrg
10243988795beSmrg		eval supported=\$$cacheid
10244352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10245352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10246988795beSmrg		if test "$supported" = "yes" ; then
10247988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10248988795beSmrg			found="yes"
10249988795beSmrg		fi
10250988795beSmrg	fi
10251988795beSmrg
10252988795beSmrg
10253988795beSmrg
10254988795beSmrg
10255988795beSmrg
10256988795beSmrg
10257988795beSmrg
10258988795beSmrg
10259988795beSmrg
10260988795beSmrg
10261988795beSmrg
10262988795beSmrg
10263988795beSmrg
10264988795beSmrg
10265988795beSmrg
10266988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10267988795beSmrg
10268988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10273352bf44eSmrgthen :
10274352bf44eSmrg  printf %s "(cached) " >&6
1027538d718bdSmrgelse case e in #(
1027638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277988795beSmrg/* end confdefs.h.  */
10278988795beSmrgint i;
10279988795beSmrg_ACEOF
10280352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10281352bf44eSmrgthen :
10282988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1028338d718bdSmrgelse case e in #(
1028438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1028538d718bdSmrgesac
10286988795beSmrgfi
1028738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1028838d718bdSmrgesac
10289988795beSmrgfi
10290352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10294988795beSmrgfi
10295988795beSmrg
10296988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299988795beSmrg	fi
10300988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10304352bf44eSmrgthen :
10305352bf44eSmrg  printf %s "(cached) " >&6
1030638d718bdSmrgelse case e in #(
1030738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308988795beSmrg/* end confdefs.h.  */
10309988795beSmrgint i;
10310988795beSmrg_ACEOF
10311352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10312352bf44eSmrgthen :
10313988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1031438d718bdSmrgelse case e in #(
1031538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1031638d718bdSmrgesac
10317988795beSmrgfi
1031838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1031938d718bdSmrgesac
10320988795beSmrgfi
10321352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10322352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10323988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10324988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10325988795beSmrgfi
10326988795beSmrg
10327988795beSmrgfound="no"
10328988795beSmrg
10329988795beSmrg	if test $found = "no" ; then
10330ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332988795beSmrg		fi
10333988795beSmrg
10334ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336988795beSmrg		fi
10337988795beSmrg
10338988795beSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
10339988795beSmrg
10340352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10341352bf44eSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10342988795beSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10343352bf44eSmrg		if eval test \${$cacheid+y}
10344352bf44eSmrgthen :
10345352bf44eSmrg  printf %s "(cached) " >&6
1034638d718bdSmrgelse case e in #(
1034738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348988795beSmrg/* end confdefs.h.  */
10349988795beSmrgint i;
10350988795beSmrgint
10351352bf44eSmrgmain (void)
10352988795beSmrg{
10353988795beSmrg
10354988795beSmrg  ;
10355988795beSmrg  return 0;
10356988795beSmrg}
10357988795beSmrg_ACEOF
10358352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10359352bf44eSmrgthen :
10360988795beSmrg  eval $cacheid=yes
1036138d718bdSmrgelse case e in #(
1036238d718bdSmrg  e) eval $cacheid=no ;;
1036338d718bdSmrgesac
10364988795beSmrgfi
10365352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1036638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1036738d718bdSmrgesac
10368988795beSmrgfi
10369988795beSmrg
10370988795beSmrg
10371988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10372988795beSmrg
10373988795beSmrg		eval supported=\$$cacheid
10374352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10376988795beSmrg		if test "$supported" = "yes" ; then
10377988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10378988795beSmrg			found="yes"
10379988795beSmrg		fi
10380988795beSmrg	fi
10381988795beSmrg
10382988795beSmrg
10383988795beSmrg
10384988795beSmrg
10385988795beSmrg
10386988795beSmrg
10387988795beSmrg
10388988795beSmrg
10389988795beSmrg
10390988795beSmrg
10391988795beSmrg
10392988795beSmrg
10393988795beSmrg
10394988795beSmrg
10395988795beSmrg
10396988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10397988795beSmrg
10398988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10399988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10401352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10402352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10403352bf44eSmrgthen :
10404352bf44eSmrg  printf %s "(cached) " >&6
1040538d718bdSmrgelse case e in #(
1040638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407988795beSmrg/* end confdefs.h.  */
10408988795beSmrgint i;
10409988795beSmrg_ACEOF
10410352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10411352bf44eSmrgthen :
10412988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1041338d718bdSmrgelse case e in #(
1041438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1041538d718bdSmrgesac
10416988795beSmrgfi
1041738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1041838d718bdSmrgesac
10419988795beSmrgfi
10420352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10421352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10422988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10423988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10424988795beSmrgfi
10425988795beSmrg
10426988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10427988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10428988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10429988795beSmrg	fi
10430988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10432352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10433352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10434352bf44eSmrgthen :
10435352bf44eSmrg  printf %s "(cached) " >&6
1043638d718bdSmrgelse case e in #(
1043738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438988795beSmrg/* end confdefs.h.  */
10439988795beSmrgint i;
10440988795beSmrg_ACEOF
10441352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10442352bf44eSmrgthen :
10443988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1044438d718bdSmrgelse case e in #(
1044538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1044638d718bdSmrgesac
10447988795beSmrgfi
1044838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1044938d718bdSmrgesac
10450988795beSmrgfi
10451352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10452352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10453988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10454988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10455988795beSmrgfi
10456988795beSmrg
10457988795beSmrgfound="no"
10458988795beSmrg
10459988795beSmrg	if test $found = "no" ; then
10460ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462988795beSmrg		fi
10463988795beSmrg
10464ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466988795beSmrg		fi
10467988795beSmrg
10468988795beSmrg		CFLAGS="$CFLAGS -Waddress"
10469988795beSmrg
10470352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10471352bf44eSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10472988795beSmrg		cacheid=xorg_cv_cc_flag__Waddress
10473352bf44eSmrg		if eval test \${$cacheid+y}
10474352bf44eSmrgthen :
10475352bf44eSmrg  printf %s "(cached) " >&6
1047638d718bdSmrgelse case e in #(
1047738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478988795beSmrg/* end confdefs.h.  */
10479988795beSmrgint i;
10480988795beSmrgint
10481352bf44eSmrgmain (void)
10482988795beSmrg{
10483988795beSmrg
10484988795beSmrg  ;
10485988795beSmrg  return 0;
10486988795beSmrg}
10487988795beSmrg_ACEOF
10488352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10489352bf44eSmrgthen :
10490988795beSmrg  eval $cacheid=yes
1049138d718bdSmrgelse case e in #(
1049238d718bdSmrg  e) eval $cacheid=no ;;
1049338d718bdSmrgesac
10494988795beSmrgfi
10495352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1049638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1049738d718bdSmrgesac
10498988795beSmrgfi
10499988795beSmrg
10500988795beSmrg
10501988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10502988795beSmrg
10503988795beSmrg		eval supported=\$$cacheid
10504352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10505352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10506988795beSmrg		if test "$supported" = "yes" ; then
10507988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10508988795beSmrg			found="yes"
10509988795beSmrg		fi
10510988795beSmrg	fi
10511988795beSmrg
10512988795beSmrg
10513988795beSmrg
10514988795beSmrg
10515988795beSmrg
10516988795beSmrg
10517988795beSmrg
10518988795beSmrg
10519988795beSmrg
10520988795beSmrg
10521988795beSmrg
10522988795beSmrg
10523988795beSmrg
10524988795beSmrg
10525988795beSmrg
10526988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10527988795beSmrg
10528988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10529988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10531352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10532352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10533352bf44eSmrgthen :
10534352bf44eSmrg  printf %s "(cached) " >&6
1053538d718bdSmrgelse case e in #(
1053638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537988795beSmrg/* end confdefs.h.  */
10538988795beSmrgint i;
10539988795beSmrg_ACEOF
10540352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10541352bf44eSmrgthen :
10542988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1054338d718bdSmrgelse case e in #(
1054438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1054538d718bdSmrgesac
10546988795beSmrgfi
1054738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1054838d718bdSmrgesac
10549988795beSmrgfi
10550352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10551352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10552988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10553988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10554988795beSmrgfi
10555988795beSmrg
10556988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10557988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559988795beSmrg	fi
10560988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10562352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10563352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10564352bf44eSmrgthen :
10565352bf44eSmrg  printf %s "(cached) " >&6
1056638d718bdSmrgelse case e in #(
1056738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568988795beSmrg/* end confdefs.h.  */
10569988795beSmrgint i;
10570988795beSmrg_ACEOF
10571352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10572352bf44eSmrgthen :
10573988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1057438d718bdSmrgelse case e in #(
1057538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1057638d718bdSmrgesac
10577988795beSmrgfi
1057838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1057938d718bdSmrgesac
10580988795beSmrgfi
10581352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10585988795beSmrgfi
10586988795beSmrg
10587988795beSmrgfound="no"
10588988795beSmrg
10589988795beSmrg	if test $found = "no" ; then
10590ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592988795beSmrg		fi
10593988795beSmrg
10594ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596988795beSmrg		fi
10597988795beSmrg
10598988795beSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10599988795beSmrg
10600352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10601352bf44eSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10602988795beSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10603352bf44eSmrg		if eval test \${$cacheid+y}
10604352bf44eSmrgthen :
10605352bf44eSmrg  printf %s "(cached) " >&6
1060638d718bdSmrgelse case e in #(
1060738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608988795beSmrg/* end confdefs.h.  */
10609988795beSmrgint i;
10610988795beSmrgint
10611352bf44eSmrgmain (void)
10612988795beSmrg{
10613988795beSmrg
10614988795beSmrg  ;
10615988795beSmrg  return 0;
10616988795beSmrg}
10617988795beSmrg_ACEOF
10618352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10619352bf44eSmrgthen :
10620988795beSmrg  eval $cacheid=yes
1062138d718bdSmrgelse case e in #(
1062238d718bdSmrg  e) eval $cacheid=no ;;
1062338d718bdSmrgesac
10624988795beSmrgfi
10625352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1062638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1062738d718bdSmrgesac
10628988795beSmrgfi
10629988795beSmrg
10630988795beSmrg
10631988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10632988795beSmrg
10633988795beSmrg		eval supported=\$$cacheid
10634352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10635352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10636988795beSmrg		if test "$supported" = "yes" ; then
10637988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10638988795beSmrg			found="yes"
10639988795beSmrg		fi
10640988795beSmrg	fi
10641988795beSmrg
10642988795beSmrg
10643988795beSmrg
10644988795beSmrg
10645988795beSmrg
10646988795beSmrg
10647988795beSmrg
10648988795beSmrg
10649988795beSmrg
10650988795beSmrg
10651988795beSmrg
10652988795beSmrg
10653988795beSmrg
10654988795beSmrg
10655988795beSmrg
10656988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10657988795beSmrg
10658988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10659988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10661352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10662352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10663352bf44eSmrgthen :
10664352bf44eSmrg  printf %s "(cached) " >&6
1066538d718bdSmrgelse case e in #(
1066638d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667988795beSmrg/* end confdefs.h.  */
10668988795beSmrgint i;
10669988795beSmrg_ACEOF
10670352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10671352bf44eSmrgthen :
10672988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1067338d718bdSmrgelse case e in #(
1067438d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1067538d718bdSmrgesac
10676988795beSmrgfi
1067738d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1067838d718bdSmrgesac
10679988795beSmrgfi
10680352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10681352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10682988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10683988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10684988795beSmrgfi
10685988795beSmrg
10686988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10687988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10688988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10689988795beSmrg	fi
10690988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10691352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10692352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10693352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10694352bf44eSmrgthen :
10695352bf44eSmrg  printf %s "(cached) " >&6
1069638d718bdSmrgelse case e in #(
1069738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698988795beSmrg/* end confdefs.h.  */
10699988795beSmrgint i;
10700988795beSmrg_ACEOF
10701352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10702352bf44eSmrgthen :
10703988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1070438d718bdSmrgelse case e in #(
1070538d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1070638d718bdSmrgesac
10707988795beSmrgfi
1070838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1070938d718bdSmrgesac
10710988795beSmrgfi
10711352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10715988795beSmrgfi
10716988795beSmrg
10717988795beSmrgfound="no"
10718988795beSmrg
10719988795beSmrg	if test $found = "no" ; then
10720ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722988795beSmrg		fi
10723988795beSmrg
10724ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726988795beSmrg		fi
10727988795beSmrg
10728988795beSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10729988795beSmrg
10730352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10731352bf44eSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10732988795beSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10733352bf44eSmrg		if eval test \${$cacheid+y}
10734352bf44eSmrgthen :
10735352bf44eSmrg  printf %s "(cached) " >&6
1073638d718bdSmrgelse case e in #(
1073738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738988795beSmrg/* end confdefs.h.  */
10739988795beSmrgint i;
10740988795beSmrgint
10741352bf44eSmrgmain (void)
10742988795beSmrg{
10743988795beSmrg
10744988795beSmrg  ;
10745988795beSmrg  return 0;
10746988795beSmrg}
10747988795beSmrg_ACEOF
10748352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10749352bf44eSmrgthen :
10750988795beSmrg  eval $cacheid=yes
1075138d718bdSmrgelse case e in #(
1075238d718bdSmrg  e) eval $cacheid=no ;;
1075338d718bdSmrgesac
10754988795beSmrgfi
10755352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1075638d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1075738d718bdSmrgesac
10758988795beSmrgfi
10759988795beSmrg
10760988795beSmrg
10761988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10762988795beSmrg
10763988795beSmrg		eval supported=\$$cacheid
10764352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10765352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10766988795beSmrg		if test "$supported" = "yes" ; then
10767988795beSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10768988795beSmrg			found="yes"
10769988795beSmrg		fi
10770988795beSmrg	fi
10771988795beSmrg
10772988795beSmrg
10773988795beSmrgfi
10774988795beSmrg
10775988795beSmrg
10776988795beSmrg
10777988795beSmrg
10778988795beSmrg
10779988795beSmrg
10780988795beSmrg
10781988795beSmrg		CWARNFLAGS="$BASE_CFLAGS"
10782988795beSmrg		if  test "x$GCC" = xyes ; then
10783988795beSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10784988795beSmrg		fi
10785988795beSmrg
10786988795beSmrg
10787988795beSmrg
10788988795beSmrg
10789988795beSmrg
10790988795beSmrg
10791988795beSmrg
10792988795beSmrg
10793988795beSmrg# Check whether --enable-strict-compilation was given.
10794352bf44eSmrgif test ${enable_strict_compilation+y}
10795352bf44eSmrgthen :
10796988795beSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1079738d718bdSmrgelse case e in #(
1079838d718bdSmrg  e) STRICT_COMPILE=no ;;
1079938d718bdSmrgesac
10800988795beSmrgfi
10801988795beSmrg
10802988795beSmrg
10803988795beSmrg
10804988795beSmrg
10805988795beSmrg
10806988795beSmrg
10807988795beSmrgSTRICT_CFLAGS=""
10808988795beSmrg
10809988795beSmrg
10810988795beSmrg
10811988795beSmrg
10812988795beSmrg
10813988795beSmrg
10814988795beSmrg
10815988795beSmrg
10816988795beSmrg
10817988795beSmrg
10818988795beSmrg
10819988795beSmrg
10820988795beSmrg
10821988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10822988795beSmrg
10823988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10824988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10826352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10827352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10828352bf44eSmrgthen :
10829352bf44eSmrg  printf %s "(cached) " >&6
1083038d718bdSmrgelse case e in #(
1083138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832988795beSmrg/* end confdefs.h.  */
10833988795beSmrgint i;
10834988795beSmrg_ACEOF
10835352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10836352bf44eSmrgthen :
10837988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1083838d718bdSmrgelse case e in #(
1083938d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1084038d718bdSmrgesac
10841988795beSmrgfi
1084238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1084338d718bdSmrgesac
10844988795beSmrgfi
10845352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10846352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10847988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10848988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10849988795beSmrgfi
10850988795beSmrg
10851988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10852988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10853988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10854988795beSmrg	fi
10855988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10856352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10857352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10858352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10859352bf44eSmrgthen :
10860352bf44eSmrg  printf %s "(cached) " >&6
1086138d718bdSmrgelse case e in #(
1086238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863988795beSmrg/* end confdefs.h.  */
10864988795beSmrgint i;
10865988795beSmrg_ACEOF
10866352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10867352bf44eSmrgthen :
10868988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1086938d718bdSmrgelse case e in #(
1087038d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1087138d718bdSmrgesac
10872988795beSmrgfi
1087338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1087438d718bdSmrgesac
10875988795beSmrgfi
10876352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10877352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10878988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10879988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10880988795beSmrgfi
10881988795beSmrg
10882988795beSmrgfound="no"
10883988795beSmrg
10884988795beSmrg	if test $found = "no" ; then
10885ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10886988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10887988795beSmrg		fi
10888988795beSmrg
10889ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10890988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10891988795beSmrg		fi
10892988795beSmrg
10893988795beSmrg		CFLAGS="$CFLAGS -pedantic"
10894988795beSmrg
10895352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10896352bf44eSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10897988795beSmrg		cacheid=xorg_cv_cc_flag__pedantic
10898352bf44eSmrg		if eval test \${$cacheid+y}
10899352bf44eSmrgthen :
10900352bf44eSmrg  printf %s "(cached) " >&6
1090138d718bdSmrgelse case e in #(
1090238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903988795beSmrg/* end confdefs.h.  */
10904988795beSmrgint i;
10905988795beSmrgint
10906352bf44eSmrgmain (void)
10907988795beSmrg{
10908988795beSmrg
10909988795beSmrg  ;
10910988795beSmrg  return 0;
10911988795beSmrg}
10912988795beSmrg_ACEOF
10913352bf44eSmrgif ac_fn_c_try_link "$LINENO"
10914352bf44eSmrgthen :
10915988795beSmrg  eval $cacheid=yes
1091638d718bdSmrgelse case e in #(
1091738d718bdSmrg  e) eval $cacheid=no ;;
1091838d718bdSmrgesac
10919988795beSmrgfi
10920352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1092138d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1092238d718bdSmrgesac
10923988795beSmrgfi
10924988795beSmrg
10925988795beSmrg
10926988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10927988795beSmrg
10928988795beSmrg		eval supported=\$$cacheid
10929352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10930352bf44eSmrgprintf "%s\n" "$supported" >&6; }
10931988795beSmrg		if test "$supported" = "yes" ; then
10932988795beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10933988795beSmrg			found="yes"
10934988795beSmrg		fi
10935988795beSmrg	fi
10936988795beSmrg
10937988795beSmrg
10938988795beSmrg
10939988795beSmrg
10940988795beSmrg
10941988795beSmrg
10942988795beSmrg
10943988795beSmrg
10944988795beSmrg
10945988795beSmrg
10946988795beSmrg
10947988795beSmrg
10948988795beSmrg
10949988795beSmrg
10950988795beSmrg
10951988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10952988795beSmrg
10953988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10954988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10956352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10957352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10958352bf44eSmrgthen :
10959352bf44eSmrg  printf %s "(cached) " >&6
1096038d718bdSmrgelse case e in #(
1096138d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962988795beSmrg/* end confdefs.h.  */
10963988795beSmrgint i;
10964988795beSmrg_ACEOF
10965352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10966352bf44eSmrgthen :
10967988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1096838d718bdSmrgelse case e in #(
1096938d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1097038d718bdSmrgesac
10971988795beSmrgfi
1097238d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1097338d718bdSmrgesac
10974988795beSmrgfi
10975352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10976352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10977988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10978988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10979988795beSmrgfi
10980988795beSmrg
10981988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10982988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10983988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10984988795beSmrg	fi
10985988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10986352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10987352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10988352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10989352bf44eSmrgthen :
10990352bf44eSmrg  printf %s "(cached) " >&6
1099138d718bdSmrgelse case e in #(
1099238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993988795beSmrg/* end confdefs.h.  */
10994988795beSmrgint i;
10995988795beSmrg_ACEOF
10996352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
10997352bf44eSmrgthen :
10998988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1099938d718bdSmrgelse case e in #(
1100038d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1100138d718bdSmrgesac
11002988795beSmrgfi
1100338d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1100438d718bdSmrgesac
11005988795beSmrgfi
11006352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11007352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11008988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11009988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
11010988795beSmrgfi
11011988795beSmrg
11012988795beSmrgfound="no"
11013988795beSmrg
11014988795beSmrg	if test $found = "no" ; then
11015ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11016988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11017988795beSmrg		fi
11018988795beSmrg
11019ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11020988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11021988795beSmrg		fi
11022988795beSmrg
11023988795beSmrg		CFLAGS="$CFLAGS -Werror"
11024988795beSmrg
11025352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11026352bf44eSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
11027988795beSmrg		cacheid=xorg_cv_cc_flag__Werror
11028352bf44eSmrg		if eval test \${$cacheid+y}
11029352bf44eSmrgthen :
11030352bf44eSmrg  printf %s "(cached) " >&6
1103138d718bdSmrgelse case e in #(
1103238d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033988795beSmrg/* end confdefs.h.  */
11034988795beSmrgint i;
11035988795beSmrgint
11036352bf44eSmrgmain (void)
11037988795beSmrg{
11038988795beSmrg
11039988795beSmrg  ;
11040988795beSmrg  return 0;
11041988795beSmrg}
11042988795beSmrg_ACEOF
11043352bf44eSmrgif ac_fn_c_try_link "$LINENO"
11044352bf44eSmrgthen :
11045988795beSmrg  eval $cacheid=yes
1104638d718bdSmrgelse case e in #(
1104738d718bdSmrg  e) eval $cacheid=no ;;
1104838d718bdSmrgesac
11049988795beSmrgfi
11050352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1105138d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1105238d718bdSmrgesac
11053988795beSmrgfi
11054988795beSmrg
11055988795beSmrg
11056988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
11057988795beSmrg
11058988795beSmrg		eval supported=\$$cacheid
11059352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11060352bf44eSmrgprintf "%s\n" "$supported" >&6; }
11061988795beSmrg		if test "$supported" = "yes" ; then
11062988795beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11063988795beSmrg			found="yes"
11064988795beSmrg		fi
11065988795beSmrg	fi
11066988795beSmrg
11067988795beSmrg	if test $found = "no" ; then
11068ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070988795beSmrg		fi
11071988795beSmrg
11072ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074988795beSmrg		fi
11075988795beSmrg
11076988795beSmrg		CFLAGS="$CFLAGS -errwarn"
11077988795beSmrg
11078352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11079352bf44eSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
11080988795beSmrg		cacheid=xorg_cv_cc_flag__errwarn
11081352bf44eSmrg		if eval test \${$cacheid+y}
11082352bf44eSmrgthen :
11083352bf44eSmrg  printf %s "(cached) " >&6
1108438d718bdSmrgelse case e in #(
1108538d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086988795beSmrg/* end confdefs.h.  */
11087988795beSmrgint i;
11088988795beSmrgint
11089352bf44eSmrgmain (void)
11090988795beSmrg{
11091988795beSmrg
11092988795beSmrg  ;
11093988795beSmrg  return 0;
11094988795beSmrg}
11095988795beSmrg_ACEOF
11096352bf44eSmrgif ac_fn_c_try_link "$LINENO"
11097352bf44eSmrgthen :
11098988795beSmrg  eval $cacheid=yes
1109938d718bdSmrgelse case e in #(
1110038d718bdSmrg  e) eval $cacheid=no ;;
1110138d718bdSmrgesac
11102988795beSmrgfi
11103352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1110438d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1110538d718bdSmrgesac
11106988795beSmrgfi
11107988795beSmrg
11108988795beSmrg
11109988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
11110988795beSmrg
11111988795beSmrg		eval supported=\$$cacheid
11112352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11113352bf44eSmrgprintf "%s\n" "$supported" >&6; }
11114988795beSmrg		if test "$supported" = "yes" ; then
11115988795beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11116988795beSmrg			found="yes"
11117988795beSmrg		fi
11118988795beSmrg	fi
11119988795beSmrg
11120988795beSmrg
11121988795beSmrg
11122988795beSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11123988795beSmrg# activate it with -Werror, so we add it here explicitly.
11124988795beSmrg
11125988795beSmrg
11126988795beSmrg
11127988795beSmrg
11128988795beSmrg
11129988795beSmrg
11130988795beSmrg
11131988795beSmrg
11132988795beSmrg
11133988795beSmrg
11134988795beSmrg
11135988795beSmrg
11136988795beSmrg
11137988795beSmrgxorg_testset_save_CFLAGS="$CFLAGS"
11138988795beSmrg
11139988795beSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11140988795beSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11141352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11142352bf44eSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11143352bf44eSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
11144352bf44eSmrgthen :
11145352bf44eSmrg  printf %s "(cached) " >&6
1114638d718bdSmrgelse case e in #(
1114738d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148988795beSmrg/* end confdefs.h.  */
11149988795beSmrgint i;
11150988795beSmrg_ACEOF
11151352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
11152352bf44eSmrgthen :
11153988795beSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
1115438d718bdSmrgelse case e in #(
1115538d718bdSmrg  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
1115638d718bdSmrgesac
11157988795beSmrgfi
1115838d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1115938d718bdSmrgesac
11160988795beSmrgfi
11161352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11162352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11163988795beSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11164988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
11165988795beSmrgfi
11166988795beSmrg
11167988795beSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11168988795beSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11169988795beSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11170988795beSmrg	fi
11171988795beSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11172352bf44eSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11173352bf44eSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11174352bf44eSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11175352bf44eSmrgthen :
11176352bf44eSmrg  printf %s "(cached) " >&6
1117738d718bdSmrgelse case e in #(
1117838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179988795beSmrg/* end confdefs.h.  */
11180988795beSmrgint i;
11181988795beSmrg_ACEOF
11182352bf44eSmrgif ac_fn_c_try_compile "$LINENO"
11183352bf44eSmrgthen :
11184988795beSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1118538d718bdSmrgelse case e in #(
1118638d718bdSmrg  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
1118738d718bdSmrgesac
11188988795beSmrgfi
1118938d718bdSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1119038d718bdSmrgesac
11191988795beSmrgfi
11192352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11193352bf44eSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11194988795beSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11195988795beSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
11196988795beSmrgfi
11197988795beSmrg
11198988795beSmrgfound="no"
11199988795beSmrg
11200988795beSmrg	if test $found = "no" ; then
11201ad47b356Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11202988795beSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11203988795beSmrg		fi
11204988795beSmrg
11205ad47b356Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11206988795beSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11207988795beSmrg		fi
11208988795beSmrg
11209988795beSmrg		CFLAGS="$CFLAGS -Werror=attributes"
11210988795beSmrg
11211352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11212352bf44eSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
11213ad47b356Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
11214352bf44eSmrg		if eval test \${$cacheid+y}
11215352bf44eSmrgthen :
11216352bf44eSmrg  printf %s "(cached) " >&6
1121738d718bdSmrgelse case e in #(
1121838d718bdSmrg  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219988795beSmrg/* end confdefs.h.  */
11220988795beSmrgint i;
11221988795beSmrgint
11222352bf44eSmrgmain (void)
11223988795beSmrg{
11224988795beSmrg
11225988795beSmrg  ;
11226988795beSmrg  return 0;
11227988795beSmrg}
11228988795beSmrg_ACEOF
11229352bf44eSmrgif ac_fn_c_try_link "$LINENO"
11230352bf44eSmrgthen :
11231988795beSmrg  eval $cacheid=yes
1123238d718bdSmrgelse case e in #(
1123338d718bdSmrg  e) eval $cacheid=no ;;
1123438d718bdSmrgesac
11235988795beSmrgfi
11236352bf44eSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1123738d718bdSmrg    conftest$ac_exeext conftest.$ac_ext ;;
1123838d718bdSmrgesac
11239988795beSmrgfi
11240988795beSmrg
11241988795beSmrg
11242988795beSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
11243988795beSmrg
11244988795beSmrg		eval supported=\$$cacheid
11245352bf44eSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11246352bf44eSmrgprintf "%s\n" "$supported" >&6; }
11247988795beSmrg		if test "$supported" = "yes" ; then
11248988795beSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11249988795beSmrg			found="yes"
11250988795beSmrg		fi
11251988795beSmrg	fi
11252988795beSmrg
11253988795beSmrg
11254988795beSmrg
11255988795beSmrgif test "x$STRICT_COMPILE" = "xyes"; then
11256988795beSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11257988795beSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11258988795beSmrgfi
11259988795beSmrg
11260988795beSmrg
11261278eca22Smrg
11262278eca22Smrg
11263278eca22Smrg
11264278eca22Smrg
1126538d718bdSmrg
1126638d718bdSmrg
11267278eca22Smrgcat >>confdefs.h <<_ACEOF
11268278eca22Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11269278eca22Smrg_ACEOF
11270278eca22Smrg
11271278eca22Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11272278eca22Smrg	if test "x$PVM" = "x"; then
11273278eca22Smrg		PVM="0"
11274278eca22Smrg	fi
11275278eca22Smrg
11276352bf44eSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11277278eca22Smrg
11278278eca22Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11279278eca22Smrg	if test "x$PVP" = "x"; then
11280278eca22Smrg		PVP="0"
11281278eca22Smrg	fi
11282278eca22Smrg
11283352bf44eSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11284278eca22Smrg
11285278eca22Smrg
11286278eca22Smrg
11287352bf44eSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1128816d8e44fSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11289352bf44eSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11290352bf44eSmrgtouch \$(top_srcdir)/ChangeLog; \
11291352bf44eSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11292278eca22Smrg
1129316d8e44fSmrg
1129416d8e44fSmrg
1129516d8e44fSmrg
1129616d8e44fSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1129716d8e44fSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1129816d8e44fSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11299352bf44eSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11300352bf44eSmrgtouch \$(top_srcdir)/INSTALL; \
11301352bf44eSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11302352bf44eSmrg
11303352bf44eSmrg
1130416d8e44fSmrg
11305278eca22Smrg
11306278eca22Smrg
11307278eca22Smrg
11308352bf44eSmrgcase $host_os in
11309352bf44eSmrg    solaris*)
11310352bf44eSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11311352bf44eSmrg        # check for a man page file found in later versions that use
11312352bf44eSmrg        # traditional section numbers instead
11313352bf44eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11314352bf44eSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11315352bf44eSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11316352bf44eSmrgthen :
11317352bf44eSmrg  printf %s "(cached) " >&6
1131838d718bdSmrgelse case e in #(
1131938d718bdSmrg  e) test "$cross_compiling" = yes &&
11320352bf44eSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11321352bf44eSmrgif test -r "/usr/share/man/man7/attributes.7"; then
11322352bf44eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11323352bf44eSmrgelse
11324352bf44eSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
1132538d718bdSmrgfi ;;
1132638d718bdSmrgesac
11327352bf44eSmrgfi
11328352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11329352bf44eSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11330352bf44eSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11331352bf44eSmrgthen :
11332352bf44eSmrg  SYSV_MAN_SECTIONS=false
1133338d718bdSmrgelse case e in #(
1133438d718bdSmrg  e) SYSV_MAN_SECTIONS=true ;;
1133538d718bdSmrgesac
11336352bf44eSmrgfi
11337278eca22Smrg
11338352bf44eSmrg        ;;
11339352bf44eSmrg    *) SYSV_MAN_SECTIONS=false ;;
11340352bf44eSmrgesac
11341278eca22Smrg
11342278eca22Smrgif test x$APP_MAN_SUFFIX = x    ; then
11343278eca22Smrg    APP_MAN_SUFFIX=1
11344278eca22Smrgfi
11345278eca22Smrgif test x$APP_MAN_DIR = x    ; then
11346278eca22Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11347278eca22Smrgfi
11348278eca22Smrg
11349278eca22Smrgif test x$LIB_MAN_SUFFIX = x    ; then
11350278eca22Smrg    LIB_MAN_SUFFIX=3
11351278eca22Smrgfi
11352278eca22Smrgif test x$LIB_MAN_DIR = x    ; then
11353278eca22Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11354278eca22Smrgfi
11355278eca22Smrg
11356278eca22Smrgif test x$FILE_MAN_SUFFIX = x    ; then
11357352bf44eSmrg    case $SYSV_MAN_SECTIONS in
11358352bf44eSmrg	true)				FILE_MAN_SUFFIX=4  ;;
11359ad47b356Smrg	*)				FILE_MAN_SUFFIX=5  ;;
11360278eca22Smrg    esac
11361278eca22Smrgfi
11362278eca22Smrgif test x$FILE_MAN_DIR = x    ; then
11363278eca22Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11364278eca22Smrgfi
11365278eca22Smrg
11366278eca22Smrgif test x$MISC_MAN_SUFFIX = x    ; then
11367352bf44eSmrg    case $SYSV_MAN_SECTIONS in
11368352bf44eSmrg	true)				MISC_MAN_SUFFIX=5  ;;
11369ad47b356Smrg	*)				MISC_MAN_SUFFIX=7  ;;
11370278eca22Smrg    esac
11371278eca22Smrgfi
11372278eca22Smrgif test x$MISC_MAN_DIR = x    ; then
11373278eca22Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11374278eca22Smrgfi
11375278eca22Smrg
11376278eca22Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11377352bf44eSmrg    case $SYSV_MAN_SECTIONS in
11378352bf44eSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11379ad47b356Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11380278eca22Smrg    esac
11381278eca22Smrgfi
11382278eca22Smrgif test x$DRIVER_MAN_DIR = x    ; then
11383278eca22Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11384278eca22Smrgfi
11385278eca22Smrg
11386278eca22Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11387352bf44eSmrg    case $SYSV_MAN_SECTIONS in
11388352bf44eSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11389ad47b356Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11390278eca22Smrg    esac
11391278eca22Smrgfi
11392278eca22Smrgif test x$ADMIN_MAN_DIR = x    ; then
11393278eca22Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1139433c89af1Smrgfi
1139533c89af1Smrg
1139633c89af1Smrg
1139733c89af1Smrg
1139833c89af1Smrg
1139933c89af1Smrg
1140033c89af1Smrg
1140133c89af1Smrg
1140233c89af1Smrg
1140333c89af1Smrg
1140433c89af1Smrg
1140533c89af1Smrg
1140633c89af1Smrg
1140733c89af1Smrg
1140833c89af1Smrg
1140933c89af1Smrg
1141016d8e44fSmrgXORG_MAN_PAGE="X Version 11"
1141133c89af1Smrg
1141216d8e44fSmrgMAN_SUBSTS="\
1141316d8e44fSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1141416d8e44fSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1141516d8e44fSmrg	-e 's|__xservername__|Xorg|g' \
1141616d8e44fSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
1141716d8e44fSmrg	-e 's|__projectroot__|\$(prefix)|g' \
1141816d8e44fSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1141916d8e44fSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1142016d8e44fSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1142116d8e44fSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1142216d8e44fSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1142316d8e44fSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1142416d8e44fSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1142533c89af1Smrg
1142633c89af1Smrg
1142733c89af1Smrg
1142816d8e44fSmrg# Check whether --enable-silent-rules was given.
11429352bf44eSmrgif test ${enable_silent_rules+y}
11430352bf44eSmrgthen :
1143116d8e44fSmrg  enableval=$enable_silent_rules;
11432278eca22Smrgfi
1143333c89af1Smrg
11434ad47b356Smrgcase $enable_silent_rules in # (((
11435ad47b356Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
11436ad47b356Smrg   no) AM_DEFAULT_VERBOSITY=1;;
11437ad47b356Smrg    *) AM_DEFAULT_VERBOSITY=0;;
11438278eca22Smrgesac
11439ad47b356Smrgam_make=${MAKE-make}
11440352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11441352bf44eSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11442352bf44eSmrgif test ${am_cv_make_support_nested_variables+y}
11443352bf44eSmrgthen :
11444352bf44eSmrg  printf %s "(cached) " >&6
1144538d718bdSmrgelse case e in #(
1144638d718bdSmrg  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11447ad47b356SmrgBAR0=false
11448ad47b356SmrgBAR1=true
11449ad47b356SmrgV=1
11450ad47b356Smrgam__doit:
11451ad47b356Smrg	@$(TRUE)
11452ad47b356Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11453ad47b356Smrg  am_cv_make_support_nested_variables=yes
11454ad47b356Smrgelse
11455ad47b356Smrg  am_cv_make_support_nested_variables=no
1145638d718bdSmrgfi ;;
1145738d718bdSmrgesac
11458ad47b356Smrgfi
11459352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11460352bf44eSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11461ad47b356Smrgif test $am_cv_make_support_nested_variables = yes; then
11462ad47b356Smrg    AM_V='$(V)'
11463ad47b356Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11464ad47b356Smrgelse
11465ad47b356Smrg  AM_V=$AM_DEFAULT_VERBOSITY
11466ad47b356Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11467ad47b356Smrgfi
1146816d8e44fSmrgAM_BACKSLASH='\'
1146933c89af1Smrg
1147033c89af1Smrg
1147133c89af1Smrg
1147238d718bdSmrg
1147338d718bdSmrg# Optional dependencies
1147438d718bdSmrg
1147538d718bdSmrg# Check whether --with-xkb was given.
1147638d718bdSmrgif test ${with_xkb+y}
1147738d718bdSmrgthen :
1147838d718bdSmrg  withval=$with_xkb; use_xkb="$withval"
1147938d718bdSmrgelse case e in #(
1148038d718bdSmrg  e) use_xkb="yes" ;;
1148138d718bdSmrgesac
1148238d718bdSmrgfi
1148338d718bdSmrg
1148438d718bdSmrgif test x$use_xkb != xno ; then
1148538d718bdSmrg        XKBMODULE="xkbfile"
1148638d718bdSmrg
1148738d718bdSmrgprintf "%s\n" "#define XKB 1" >>confdefs.h
1148838d718bdSmrg
1148938d718bdSmrgfi
1149038d718bdSmrg
11491352bf44eSmrg# Obtain compiler/linker options from dependencies
1149233c89af1Smrg
11493278eca22Smrgpkg_failed=no
11494352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EDITRES" >&5
11495352bf44eSmrgprintf %s "checking for EDITRES... " >&6; }
11496278eca22Smrg
11497278eca22Smrgif test -n "$EDITRES_CFLAGS"; then
11498278eca22Smrg    pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS"
11499278eca22Smrg elif test -n "$PKG_CONFIG"; then
11500278eca22Smrg    if test -n "$PKG_CONFIG" && \
1150138d718bdSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
1150238d718bdSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11503278eca22Smrg  ac_status=$?
11504352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1150516d8e44fSmrg  test $ac_status = 0; }; then
1150638d718bdSmrg  pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11507ad47b356Smrg		      test "x$?" != "x0" && pkg_failed=yes
11508278eca22Smrgelse
11509278eca22Smrg  pkg_failed=yes
1151033c89af1Smrgfi
11511278eca22Smrg else
11512278eca22Smrg    pkg_failed=untried
1151333c89af1Smrgfi
11514278eca22Smrgif test -n "$EDITRES_LIBS"; then
11515278eca22Smrg    pkg_cv_EDITRES_LIBS="$EDITRES_LIBS"
11516278eca22Smrg elif test -n "$PKG_CONFIG"; then
11517278eca22Smrg    if test -n "$PKG_CONFIG" && \
1151838d718bdSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
1151938d718bdSmrg  ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11520278eca22Smrg  ac_status=$?
11521352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1152216d8e44fSmrg  test $ac_status = 0; }; then
1152338d718bdSmrg  pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11524ad47b356Smrg		      test "x$?" != "x0" && pkg_failed=yes
11525278eca22Smrgelse
11526278eca22Smrg  pkg_failed=yes
1152733c89af1Smrgfi
11528278eca22Smrg else
11529278eca22Smrg    pkg_failed=untried
1153033c89af1Smrgfi
1153133c89af1Smrg
11532278eca22Smrg
11533278eca22Smrg
11534278eca22Smrgif test $pkg_failed = yes; then
11535352bf44eSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536352bf44eSmrgprintf "%s\n" "no" >&6; }
11537278eca22Smrg
11538278eca22Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11539278eca22Smrg        _pkg_short_errors_supported=yes
11540278eca22Smrgelse
11541278eca22Smrg        _pkg_short_errors_supported=no
1154233c89af1Smrgfi
11543278eca22Smrg        if test $_pkg_short_errors_supported = yes; then
1154438d718bdSmrg	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11545278eca22Smrg        else
1154638d718bdSmrg	        EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11547278eca22Smrg        fi
11548278eca22Smrg	# Put the nasty error message in config.log where it belongs
11549278eca22Smrg	echo "$EDITRES_PKG_ERRORS" >&5
1155033c89af1Smrg
1155138d718bdSmrg	as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}) were not met:
1155216d8e44fSmrg
11553278eca22Smrg$EDITRES_PKG_ERRORS
1155433c89af1Smrg
11555278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11556278eca22Smrginstalled software in a non-standard prefix.
1155733c89af1Smrg
11558278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS
11559278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config.
11560ad47b356SmrgSee the pkg-config man page for more details." "$LINENO" 5
11561278eca22Smrgelif test $pkg_failed = untried; then
11562352bf44eSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563352bf44eSmrgprintf "%s\n" "no" >&6; }
1156438d718bdSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1156538d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1156616d8e44fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11567278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11568278eca22Smrgpath to pkg-config.
1156933c89af1Smrg
11570278eca22SmrgAlternatively, you may set the environment variables EDITRES_CFLAGS
11571278eca22Smrgand EDITRES_LIBS to avoid the need to call pkg-config.
11572278eca22SmrgSee the pkg-config man page for more details.
1157333c89af1Smrg
11574278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1157538d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
11576278eca22Smrgelse
11577278eca22Smrg	EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS
11578278eca22Smrg	EDITRES_LIBS=$pkg_cv_EDITRES_LIBS
11579352bf44eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580352bf44eSmrgprintf "%s\n" "yes" >&6; }
11581ad47b356Smrg
11582278eca22Smrgfi
1158333c89af1Smrg
1158433c89af1Smrg
11585278eca22Smrgpkg_failed=no
11586352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11587352bf44eSmrgprintf %s "checking for APPDEFS... " >&6; }
11588278eca22Smrg
11589278eca22Smrgif test -n "$APPDEFS_CFLAGS"; then
11590278eca22Smrg    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11591278eca22Smrg elif test -n "$PKG_CONFIG"; then
11592278eca22Smrg    if test -n "$PKG_CONFIG" && \
11593352bf44eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11594278eca22Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11595278eca22Smrg  ac_status=$?
11596352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1159716d8e44fSmrg  test $ac_status = 0; }; then
11598278eca22Smrg  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11599ad47b356Smrg		      test "x$?" != "x0" && pkg_failed=yes
11600278eca22Smrgelse
11601278eca22Smrg  pkg_failed=yes
11602278eca22Smrgfi
11603278eca22Smrg else
11604278eca22Smrg    pkg_failed=untried
11605278eca22Smrgfi
11606278eca22Smrgif test -n "$APPDEFS_LIBS"; then
11607278eca22Smrg    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11608278eca22Smrg elif test -n "$PKG_CONFIG"; then
11609278eca22Smrg    if test -n "$PKG_CONFIG" && \
11610352bf44eSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11611278eca22Smrg  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11612278eca22Smrg  ac_status=$?
11613352bf44eSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1161416d8e44fSmrg  test $ac_status = 0; }; then
11615278eca22Smrg  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11616ad47b356Smrg		      test "x$?" != "x0" && pkg_failed=yes
11617278eca22Smrgelse
11618278eca22Smrg  pkg_failed=yes
11619278eca22Smrgfi
11620278eca22Smrg else
11621278eca22Smrg    pkg_failed=untried
11622278eca22Smrgfi
1162333c89af1Smrg
1162433c89af1Smrg
1162533c89af1Smrg
11626278eca22Smrgif test $pkg_failed = yes; then
11627352bf44eSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628352bf44eSmrgprintf "%s\n" "no" >&6; }
1162933c89af1Smrg
11630278eca22Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11631278eca22Smrg        _pkg_short_errors_supported=yes
1163233c89af1Smrgelse
11633278eca22Smrg        _pkg_short_errors_supported=no
1163433c89af1Smrgfi
11635278eca22Smrg        if test $_pkg_short_errors_supported = yes; then
11636ad47b356Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11637278eca22Smrg        else
11638ad47b356Smrg	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11639278eca22Smrg        fi
11640278eca22Smrg	# Put the nasty error message in config.log where it belongs
11641278eca22Smrg	echo "$APPDEFS_PKG_ERRORS" >&5
1164233c89af1Smrg
1164316d8e44fSmrg	as_fn_error $? "Package requirements (xt) were not met:
1164433c89af1Smrg
11645278eca22Smrg$APPDEFS_PKG_ERRORS
1164633c89af1Smrg
11647278eca22SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11648278eca22Smrginstalled software in a non-standard prefix.
11649278eca22Smrg
11650278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
11651278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
11652ad47b356SmrgSee the pkg-config man page for more details." "$LINENO" 5
11653278eca22Smrgelif test $pkg_failed = untried; then
11654352bf44eSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655352bf44eSmrgprintf "%s\n" "no" >&6; }
1165638d718bdSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1165738d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1165816d8e44fSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11659278eca22Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
11660278eca22Smrgpath to pkg-config.
11661278eca22Smrg
11662278eca22SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS
11663278eca22Smrgand APPDEFS_LIBS to avoid the need to call pkg-config.
11664278eca22SmrgSee the pkg-config man page for more details.
11665278eca22Smrg
11666278eca22SmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
1166738d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
11668278eca22Smrgelse
11669278eca22Smrg	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11670278eca22Smrg	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11671352bf44eSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672352bf44eSmrgprintf "%s\n" "yes" >&6; }
11673ad47b356Smrg
11674278eca22Smrgfi
1167516d8e44fSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11676278eca22Smrg
11677278eca22Smrg# Check whether --with-appdefaultdir was given.
11678352bf44eSmrgif test ${with_appdefaultdir+y}
11679352bf44eSmrgthen :
11680278eca22Smrg  withval=$with_appdefaultdir; appdefaultdir="$withval"
1168138d718bdSmrgelse case e in #(
1168238d718bdSmrg  e) appdefaultdir="${xt_appdefaultdir}" ;;
1168338d718bdSmrgesac
11684278eca22Smrgfi
1168533c89af1Smrg
1168633c89af1Smrg
1168733c89af1Smrg
11688988795beSmrgac_config_files="$ac_config_files Makefile man/Makefile"
1168933c89af1Smrg
1169033c89af1Smrgcat >confcache <<\_ACEOF
1169133c89af1Smrg# This file is a shell script that caches the results of configure
1169233c89af1Smrg# tests run on this system so they can be shared between configure
1169333c89af1Smrg# scripts and configure runs, see configure's option --config-cache.
1169433c89af1Smrg# It is not useful on other systems.  If it contains results you don't
1169533c89af1Smrg# want to keep, you may remove or edit it.
1169633c89af1Smrg#
1169733c89af1Smrg# config.status only pays attention to the cache file if you give it
1169833c89af1Smrg# the --recheck option to rerun configure.
1169933c89af1Smrg#
1170038d718bdSmrg# 'ac_cv_env_foo' variables (set or unset) will be overridden when
1170138d718bdSmrg# loading this file, other *unset* 'ac_cv_foo' will be assigned the
1170233c89af1Smrg# following values.
1170333c89af1Smrg
1170433c89af1Smrg_ACEOF
1170533c89af1Smrg
1170633c89af1Smrg# The following way of writing the cache mishandles newlines in values,
1170733c89af1Smrg# but we know of no workaround that is simple, portable, and efficient.
1170833c89af1Smrg# So, we kill variables containing newlines.
1170933c89af1Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1171033c89af1Smrg# and sets the high bit in the cache file unless we assign to the vars.
1171133c89af1Smrg(
1171233c89af1Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1171333c89af1Smrg    eval ac_val=\$$ac_var
1171433c89af1Smrg    case $ac_val in #(
1171533c89af1Smrg    *${as_nl}*)
1171633c89af1Smrg      case $ac_var in #(
11717352bf44eSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11718352bf44eSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1171933c89af1Smrg      esac
1172033c89af1Smrg      case $ac_var in #(
1172133c89af1Smrg      _ | IFS | as_nl) ;; #(
11722278eca22Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1172316d8e44fSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1172433c89af1Smrg      esac ;;
1172533c89af1Smrg    esac
1172633c89af1Smrg  done
1172733c89af1Smrg
1172833c89af1Smrg  (set) 2>&1 |
1172933c89af1Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1173033c89af1Smrg    *${as_nl}ac_space=\ *)
1173138d718bdSmrg      # 'set' does not quote correctly, so add quotes: double-quote
1173216d8e44fSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1173333c89af1Smrg      sed -n \
1173433c89af1Smrg	"s/'/'\\\\''/g;
1173533c89af1Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1173633c89af1Smrg      ;; #(
1173733c89af1Smrg    *)
1173838d718bdSmrg      # 'set' quotes correctly as required by POSIX, so do not add quotes.
1173933c89af1Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1174033c89af1Smrg      ;;
1174133c89af1Smrg    esac |
1174233c89af1Smrg    sort
1174333c89af1Smrg) |
1174433c89af1Smrg  sed '
1174533c89af1Smrg     /^ac_cv_env_/b end
1174633c89af1Smrg     t clear
1174733c89af1Smrg     :clear
11748352bf44eSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1174933c89af1Smrg     t end
1175033c89af1Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1175133c89af1Smrg     :end' >>confcache
1175233c89af1Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1175333c89af1Smrg  if test -w "$cache_file"; then
1175416d8e44fSmrg    if test "x$cache_file" != "x/dev/null"; then
11755352bf44eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11756352bf44eSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1175716d8e44fSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1175816d8e44fSmrg	cat confcache >"$cache_file"
1175916d8e44fSmrg      else
1176016d8e44fSmrg        case $cache_file in #(
1176116d8e44fSmrg        */* | ?:*)
1176216d8e44fSmrg	  mv -f confcache "$cache_file"$$ &&
1176316d8e44fSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1176416d8e44fSmrg        *)
1176516d8e44fSmrg	  mv -f confcache "$cache_file" ;;
1176616d8e44fSmrg	esac
1176716d8e44fSmrg      fi
1176816d8e44fSmrg    fi
1176933c89af1Smrg  else
11770352bf44eSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11771352bf44eSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1177233c89af1Smrg  fi
1177333c89af1Smrgfi
1177433c89af1Smrgrm -f confcache
1177533c89af1Smrg
1177633c89af1Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1177733c89af1Smrg# Let make expand exec_prefix.
1177833c89af1Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1177933c89af1Smrg
1178033c89af1SmrgDEFS=-DHAVE_CONFIG_H
1178133c89af1Smrg
1178233c89af1Smrgac_libobjs=
1178333c89af1Smrgac_ltlibobjs=
1178416d8e44fSmrgU=
1178533c89af1Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1178633c89af1Smrg  # 1. Remove the extension, and $U if already installed.
1178733c89af1Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11788352bf44eSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1178933c89af1Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1179033c89af1Smrg  #    will be set to the directory where LIBOBJS objects are built.
1179116d8e44fSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1179216d8e44fSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1179333c89af1Smrgdone
1179433c89af1SmrgLIBOBJS=$ac_libobjs
1179533c89af1Smrg
1179633c89af1SmrgLTLIBOBJS=$ac_ltlibobjs
1179733c89af1Smrg
1179833c89af1Smrg
11799352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11800352bf44eSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
11801ad47b356Smrg   if test -n "$am_sleep_pid"; then
11802ad47b356Smrg     # Hide warnings about reused PIDs.
11803ad47b356Smrg     wait $am_sleep_pid 2>/dev/null
11804ad47b356Smrg   fi
11805352bf44eSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11806352bf44eSmrgprintf "%s\n" "done" >&6; }
11807278eca22Smrg if test -n "$EXEEXT"; then
11808278eca22Smrg  am__EXEEXT_TRUE=
11809278eca22Smrg  am__EXEEXT_FALSE='#'
11810278eca22Smrgelse
11811278eca22Smrg  am__EXEEXT_TRUE='#'
11812278eca22Smrg  am__EXEEXT_FALSE=
11813278eca22Smrgfi
11814278eca22Smrg
1181533c89af1Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1181616d8e44fSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1181716d8e44fSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1181833c89af1Smrgfi
1181933c89af1Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1182016d8e44fSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1182116d8e44fSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1182233c89af1Smrgfi
1182333c89af1Smrg
1182416d8e44fSmrg: "${CONFIG_STATUS=./config.status}"
11825278eca22Smrgac_write_fail=0
1182633c89af1Smrgac_clean_files_save=$ac_clean_files
1182733c89af1Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11828352bf44eSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11829352bf44eSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1183016d8e44fSmrgas_write_fail=0
1183116d8e44fSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1183233c89af1Smrg#! $SHELL
1183333c89af1Smrg# Generated by $as_me.
1183433c89af1Smrg# Run this file to recreate the current configuration.
1183533c89af1Smrg# Compiler output produced by configure, useful for debugging
1183633c89af1Smrg# configure, is in config.log if it exists.
1183733c89af1Smrg
1183833c89af1Smrgdebug=false
1183933c89af1Smrgac_cs_recheck=false
1184033c89af1Smrgac_cs_silent=false
1184133c89af1Smrg
1184216d8e44fSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1184316d8e44fSmrgexport SHELL
1184416d8e44fSmrg_ASEOF
1184516d8e44fSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1184616d8e44fSmrg## -------------------- ##
1184716d8e44fSmrg## M4sh Initialization. ##
1184816d8e44fSmrg## -------------------- ##
1184933c89af1Smrg
11850278eca22Smrg# Be more Bourne compatible
11851278eca22SmrgDUALCASE=1; export DUALCASE # for MKS sh
11852352bf44eSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11853352bf44eSmrgthen :
1185433c89af1Smrg  emulate sh
1185533c89af1Smrg  NULLCMD=:
11856278eca22Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1185733c89af1Smrg  # is contrary to our usage.  Disable this feature.
1185833c89af1Smrg  alias -g '${1+"$@"}'='"$@"'
1185933c89af1Smrg  setopt NO_GLOB_SUBST
1186038d718bdSmrgelse case e in #(
1186138d718bdSmrg  e) case `(set -o) 2>/dev/null` in #(
1186216d8e44fSmrg  *posix*) :
1186316d8e44fSmrg    set -o posix ;; #(
1186416d8e44fSmrg  *) :
1186516d8e44fSmrg     ;;
1186638d718bdSmrgesac ;;
11867278eca22Smrgesac
1186833c89af1Smrgfi
11869278eca22Smrg
11870278eca22Smrg
11871352bf44eSmrg
11872352bf44eSmrg# Reset variables that may have inherited troublesome values from
11873352bf44eSmrg# the environment.
11874352bf44eSmrg
11875352bf44eSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11876352bf44eSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11877352bf44eSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11878352bf44eSmrg# Quoting is to prevent editors from complaining about space-tab.
11879278eca22Smrgas_nl='
11880278eca22Smrg'
11881278eca22Smrgexport as_nl
11882352bf44eSmrgIFS=" ""	$as_nl"
11883352bf44eSmrg
11884352bf44eSmrgPS1='$ '
11885352bf44eSmrgPS2='> '
11886352bf44eSmrgPS4='+ '
11887352bf44eSmrg
11888352bf44eSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11889352bf44eSmrgLC_ALL=C
11890352bf44eSmrgexport LC_ALL
11891352bf44eSmrgLANGUAGE=C
11892352bf44eSmrgexport LANGUAGE
11893352bf44eSmrg
11894352bf44eSmrg# We cannot yet rely on "unset" to work, but we need these variables
11895352bf44eSmrg# to be unset--not just set to an empty or harmless value--now, to
11896352bf44eSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11897352bf44eSmrg# also avoids known problems related to "unset" and subshell syntax
11898352bf44eSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11899352bf44eSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11900352bf44eSmrgdo eval test \${$as_var+y} \
11901352bf44eSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11902352bf44eSmrgdone
11903352bf44eSmrg
11904352bf44eSmrg# Ensure that fds 0, 1, and 2 are open.
11905352bf44eSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11906352bf44eSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11907352bf44eSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11908278eca22Smrg
11909278eca22Smrg# The user is always right.
11910352bf44eSmrgif ${PATH_SEPARATOR+false} :; then
11911278eca22Smrg  PATH_SEPARATOR=:
11912278eca22Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11913278eca22Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11914278eca22Smrg      PATH_SEPARATOR=';'
11915278eca22Smrg  }
1191633c89af1Smrgfi
1191733c89af1Smrg
1191833c89af1Smrg
1191933c89af1Smrg# Find who we are.  Look in the path if we contain no directory separator.
1192016d8e44fSmrgas_myself=
1192116d8e44fSmrgcase $0 in #((
1192233c89af1Smrg  *[\\/]* ) as_myself=$0 ;;
1192333c89af1Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1192433c89af1Smrgfor as_dir in $PATH
1192533c89af1Smrgdo
1192633c89af1Smrg  IFS=$as_save_IFS
11927352bf44eSmrg  case $as_dir in #(((
11928352bf44eSmrg    '') as_dir=./ ;;
11929352bf44eSmrg    */) ;;
11930352bf44eSmrg    *) as_dir=$as_dir/ ;;
11931352bf44eSmrg  esac
11932352bf44eSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1193316d8e44fSmrg  done
1193433c89af1SmrgIFS=$as_save_IFS
1193533c89af1Smrg
1193633c89af1Smrg     ;;
1193733c89af1Smrgesac
1193838d718bdSmrg# We did not find ourselves, most probably we were run as 'sh COMMAND'
1193933c89af1Smrg# in which case we are not to be found in the path.
1194033c89af1Smrgif test "x$as_myself" = x; then
1194133c89af1Smrg  as_myself=$0
1194233c89af1Smrgfi
1194333c89af1Smrgif test ! -f "$as_myself"; then
11944352bf44eSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1194516d8e44fSmrg  exit 1
1194633c89af1Smrgfi
1194733c89af1Smrg
1194816d8e44fSmrg
1194916d8e44fSmrg
1195016d8e44fSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1195116d8e44fSmrg# ----------------------------------------
1195216d8e44fSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1195316d8e44fSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1195416d8e44fSmrg# script with STATUS, using 1 if that was 0.
1195516d8e44fSmrgas_fn_error ()
1195616d8e44fSmrg{
1195716d8e44fSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1195816d8e44fSmrg  if test "$4"; then
1195916d8e44fSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11960352bf44eSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1196116d8e44fSmrg  fi
11962352bf44eSmrg  printf "%s\n" "$as_me: error: $2" >&2
1196316d8e44fSmrg  as_fn_exit $as_status
1196416d8e44fSmrg} # as_fn_error
1196516d8e44fSmrg
1196616d8e44fSmrg
1196716d8e44fSmrg# as_fn_set_status STATUS
1196816d8e44fSmrg# -----------------------
1196916d8e44fSmrg# Set $? to STATUS, without forking.
1197016d8e44fSmrgas_fn_set_status ()
1197116d8e44fSmrg{
1197216d8e44fSmrg  return $1
1197316d8e44fSmrg} # as_fn_set_status
1197416d8e44fSmrg
1197516d8e44fSmrg# as_fn_exit STATUS
1197616d8e44fSmrg# -----------------
1197716d8e44fSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1197816d8e44fSmrgas_fn_exit ()
1197916d8e44fSmrg{
1198016d8e44fSmrg  set +e
1198116d8e44fSmrg  as_fn_set_status $1
1198216d8e44fSmrg  exit $1
1198316d8e44fSmrg} # as_fn_exit
1198416d8e44fSmrg
1198516d8e44fSmrg# as_fn_unset VAR
1198616d8e44fSmrg# ---------------
1198716d8e44fSmrg# Portably unset VAR.
1198816d8e44fSmrgas_fn_unset ()
1198916d8e44fSmrg{
1199016d8e44fSmrg  { eval $1=; unset $1;}
1199116d8e44fSmrg}
1199216d8e44fSmrgas_unset=as_fn_unset
11993352bf44eSmrg
1199416d8e44fSmrg# as_fn_append VAR VALUE
1199516d8e44fSmrg# ----------------------
1199616d8e44fSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1199716d8e44fSmrg# advantage of any shell optimizations that allow amortized linear growth over
1199816d8e44fSmrg# repeated appends, instead of the typical quadratic growth present in naive
1199916d8e44fSmrg# implementations.
12000352bf44eSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12001352bf44eSmrgthen :
1200216d8e44fSmrg  eval 'as_fn_append ()
1200316d8e44fSmrg  {
1200416d8e44fSmrg    eval $1+=\$2
1200516d8e44fSmrg  }'
1200638d718bdSmrgelse case e in #(
1200738d718bdSmrg  e) as_fn_append ()
1200816d8e44fSmrg  {
1200916d8e44fSmrg    eval $1=\$$1\$2
1201038d718bdSmrg  } ;;
1201138d718bdSmrgesac
1201216d8e44fSmrgfi # as_fn_append
1201316d8e44fSmrg
1201416d8e44fSmrg# as_fn_arith ARG...
1201516d8e44fSmrg# ------------------
1201616d8e44fSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1201716d8e44fSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1201816d8e44fSmrg# must be portable across $(()) and expr.
12019352bf44eSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12020352bf44eSmrgthen :
1202116d8e44fSmrg  eval 'as_fn_arith ()
1202216d8e44fSmrg  {
1202316d8e44fSmrg    as_val=$(( $* ))
1202416d8e44fSmrg  }'
1202538d718bdSmrgelse case e in #(
1202638d718bdSmrg  e) as_fn_arith ()
1202716d8e44fSmrg  {
1202816d8e44fSmrg    as_val=`expr "$@" || test $? -eq 1`
1202938d718bdSmrg  } ;;
1203038d718bdSmrgesac
1203116d8e44fSmrgfi # as_fn_arith
1203216d8e44fSmrg
1203316d8e44fSmrg
1203433c89af1Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1203533c89af1Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1203633c89af1Smrg  as_expr=expr
1203733c89af1Smrgelse
1203833c89af1Smrg  as_expr=false
1203933c89af1Smrgfi
1204033c89af1Smrg
1204133c89af1Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1204233c89af1Smrg  as_basename=basename
1204333c89af1Smrgelse
1204433c89af1Smrg  as_basename=false
1204533c89af1Smrgfi
1204633c89af1Smrg
1204716d8e44fSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1204816d8e44fSmrg  as_dirname=dirname
1204916d8e44fSmrgelse
1205016d8e44fSmrg  as_dirname=false
1205116d8e44fSmrgfi
1205233c89af1Smrg
1205333c89af1Smrgas_me=`$as_basename -- "$0" ||
1205433c89af1Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1205533c89af1Smrg	 X"$0" : 'X\(//\)$' \| \
1205633c89af1Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12057352bf44eSmrgprintf "%s\n" X/"$0" |
1205833c89af1Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1205933c89af1Smrg	    s//\1/
1206033c89af1Smrg	    q
1206133c89af1Smrg	  }
1206233c89af1Smrg	  /^X\/\(\/\/\)$/{
1206333c89af1Smrg	    s//\1/
1206433c89af1Smrg	    q
1206533c89af1Smrg	  }
1206633c89af1Smrg	  /^X\/\(\/\).*/{
1206733c89af1Smrg	    s//\1/
1206833c89af1Smrg	    q
1206933c89af1Smrg	  }
1207033c89af1Smrg	  s/.*/./; q'`
1207133c89af1Smrg
1207216d8e44fSmrg# Avoid depending upon Character Ranges.
1207316d8e44fSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1207416d8e44fSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1207516d8e44fSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1207616d8e44fSmrgas_cr_digits='0123456789'
1207716d8e44fSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1207833c89af1Smrg
12079352bf44eSmrg
12080352bf44eSmrg# Determine whether it's possible to make 'echo' print without a newline.
12081352bf44eSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12082352bf44eSmrg# for compatibility with existing Makefiles.
1208333c89af1SmrgECHO_C= ECHO_N= ECHO_T=
1208416d8e44fSmrgcase `echo -n x` in #(((((
1208533c89af1Smrg-n*)
1208616d8e44fSmrg  case `echo 'xy\c'` in
1208733c89af1Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1208816d8e44fSmrg  xy)  ECHO_C='\c';;
1208916d8e44fSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1209016d8e44fSmrg       ECHO_T='	';;
1209133c89af1Smrg  esac;;
1209233c89af1Smrg*)
1209333c89af1Smrg  ECHO_N='-n';;
1209433c89af1Smrgesac
1209533c89af1Smrg
12096352bf44eSmrg# For backward compatibility with old third-party macros, we provide
12097352bf44eSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
12098352bf44eSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12099352bf44eSmrgas_echo='printf %s\n'
12100352bf44eSmrgas_echo_n='printf %s'
12101352bf44eSmrg
1210233c89af1Smrgrm -f conf$$ conf$$.exe conf$$.file
1210333c89af1Smrgif test -d conf$$.dir; then
1210433c89af1Smrg  rm -f conf$$.dir/conf$$.file
1210533c89af1Smrgelse
1210633c89af1Smrg  rm -f conf$$.dir
12107278eca22Smrg  mkdir conf$$.dir 2>/dev/null
12108278eca22Smrgfi
12109278eca22Smrgif (echo >conf$$.file) 2>/dev/null; then
12110278eca22Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
12111278eca22Smrg    as_ln_s='ln -s'
12112278eca22Smrg    # ... but there are two gotchas:
1211338d718bdSmrg    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
1211438d718bdSmrg    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
1211538d718bdSmrg    # In both cases, we have to default to 'cp -pR'.
12116278eca22Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12117ad47b356Smrg      as_ln_s='cp -pR'
12118278eca22Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
12119278eca22Smrg    as_ln_s=ln
12120278eca22Smrg  else
12121ad47b356Smrg    as_ln_s='cp -pR'
12122278eca22Smrg  fi
1212333c89af1Smrgelse
12124ad47b356Smrg  as_ln_s='cp -pR'
1212533c89af1Smrgfi
1212633c89af1Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1212733c89af1Smrgrmdir conf$$.dir 2>/dev/null
1212833c89af1Smrg
1212916d8e44fSmrg
1213016d8e44fSmrg# as_fn_mkdir_p
1213116d8e44fSmrg# -------------
1213216d8e44fSmrg# Create "$as_dir" as a directory, including parents if necessary.
1213316d8e44fSmrgas_fn_mkdir_p ()
1213416d8e44fSmrg{
1213516d8e44fSmrg
1213616d8e44fSmrg  case $as_dir in #(
1213716d8e44fSmrg  -*) as_dir=./$as_dir;;
1213816d8e44fSmrg  esac
1213916d8e44fSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1214016d8e44fSmrg    as_dirs=
1214116d8e44fSmrg    while :; do
1214216d8e44fSmrg      case $as_dir in #(
12143352bf44eSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1214416d8e44fSmrg      *) as_qdir=$as_dir;;
1214516d8e44fSmrg      esac
1214616d8e44fSmrg      as_dirs="'$as_qdir' $as_dirs"
1214716d8e44fSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1214816d8e44fSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1214916d8e44fSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1215016d8e44fSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1215116d8e44fSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12152352bf44eSmrgprintf "%s\n" X"$as_dir" |
1215316d8e44fSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215416d8e44fSmrg	    s//\1/
1215516d8e44fSmrg	    q
1215616d8e44fSmrg	  }
1215716d8e44fSmrg	  /^X\(\/\/\)[^/].*/{
1215816d8e44fSmrg	    s//\1/
1215916d8e44fSmrg	    q
1216016d8e44fSmrg	  }
1216116d8e44fSmrg	  /^X\(\/\/\)$/{
1216216d8e44fSmrg	    s//\1/
1216316d8e44fSmrg	    q
1216416d8e44fSmrg	  }
1216516d8e44fSmrg	  /^X\(\/\).*/{
1216616d8e44fSmrg	    s//\1/
1216716d8e44fSmrg	    q
1216816d8e44fSmrg	  }
1216916d8e44fSmrg	  s/.*/./; q'`
1217016d8e44fSmrg      test -d "$as_dir" && break
1217116d8e44fSmrg    done
1217216d8e44fSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1217316d8e44fSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1217416d8e44fSmrg
1217516d8e44fSmrg
1217616d8e44fSmrg} # as_fn_mkdir_p
1217733c89af1Smrgif mkdir -p . 2>/dev/null; then
1217816d8e44fSmrg  as_mkdir_p='mkdir -p "$as_dir"'
1217933c89af1Smrgelse
1218033c89af1Smrg  test -d ./-p && rmdir ./-p
1218133c89af1Smrg  as_mkdir_p=false
1218233c89af1Smrgfi
1218333c89af1Smrg
12184ad47b356Smrg
12185ad47b356Smrg# as_fn_executable_p FILE
12186ad47b356Smrg# -----------------------
12187ad47b356Smrg# Test if FILE is an executable regular file.
12188ad47b356Smrgas_fn_executable_p ()
12189ad47b356Smrg{
12190ad47b356Smrg  test -f "$1" && test -x "$1"
12191ad47b356Smrg} # as_fn_executable_p
12192ad47b356Smrgas_test_x='test -x'
12193ad47b356Smrgas_executable_p=as_fn_executable_p
1219433c89af1Smrg
1219533c89af1Smrg# Sed expression to map a string onto a valid CPP name.
1219638d718bdSmrgas_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
1219738d718bdSmrgas_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1219833c89af1Smrg
1219933c89af1Smrg# Sed expression to map a string onto a valid variable name.
1220038d718bdSmrgas_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1220138d718bdSmrgas_tr_sh="eval sed '$as_sed_sh'" # deprecated
1220233c89af1Smrg
1220333c89af1Smrg
1220433c89af1Smrgexec 6>&1
1220516d8e44fSmrg## ----------------------------------- ##
1220616d8e44fSmrg## Main body of $CONFIG_STATUS script. ##
1220716d8e44fSmrg## ----------------------------------- ##
1220816d8e44fSmrg_ASEOF
1220916d8e44fSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1221033c89af1Smrg
1221116d8e44fSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1221216d8e44fSmrg# Save the log message, to keep $0 and so on meaningful, and to
1221333c89af1Smrg# report actual input values of CONFIG_FILES etc. instead of their
1221433c89af1Smrg# values after options handling.
1221533c89af1Smrgac_log="
1221638d718bdSmrgThis file was extended by editres $as_me 1.0.9, which was
1221738d718bdSmrggenerated by GNU Autoconf 2.72.  Invocation command line was
1221833c89af1Smrg
1221933c89af1Smrg  CONFIG_FILES    = $CONFIG_FILES
1222033c89af1Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1222133c89af1Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1222233c89af1Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1222333c89af1Smrg  $ $0 $@
1222433c89af1Smrg
1222533c89af1Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1222633c89af1Smrg"
1222733c89af1Smrg
1222833c89af1Smrg_ACEOF
1222933c89af1Smrg
12230278eca22Smrgcase $ac_config_files in *"
12231278eca22Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
12232278eca22Smrgesac
12233278eca22Smrg
12234278eca22Smrgcase $ac_config_headers in *"
12235278eca22Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12236278eca22Smrgesac
12237278eca22Smrg
12238278eca22Smrg
12239278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1224033c89af1Smrg# Files that config.status was made for.
1224133c89af1Smrgconfig_files="$ac_config_files"
1224233c89af1Smrgconfig_headers="$ac_config_headers"
1224333c89af1Smrgconfig_commands="$ac_config_commands"
1224433c89af1Smrg
1224533c89af1Smrg_ACEOF
1224633c89af1Smrg
12247278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1224833c89af1Smrgac_cs_usage="\
1224938d718bdSmrg'$as_me' instantiates files and other configuration actions
1225016d8e44fSmrgfrom templates according to the current configuration.  Unless the files
1225116d8e44fSmrgand actions are specified as TAGs, all are instantiated by default.
1225233c89af1Smrg
1225316d8e44fSmrgUsage: $0 [OPTION]... [TAG]...
1225433c89af1Smrg
1225533c89af1Smrg  -h, --help       print this help, then exit
12256278eca22Smrg  -V, --version    print version number and configuration settings, then exit
1225716d8e44fSmrg      --config     print configuration, then exit
12258278eca22Smrg  -q, --quiet, --silent
12259278eca22Smrg                   do not print progress messages
1226033c89af1Smrg  -d, --debug      don't remove temporary files
1226133c89af1Smrg      --recheck    update $as_me by reconfiguring in the same conditions
12262278eca22Smrg      --file=FILE[:TEMPLATE]
12263278eca22Smrg                   instantiate the configuration file FILE
12264278eca22Smrg      --header=FILE[:TEMPLATE]
12265278eca22Smrg                   instantiate the configuration header FILE
1226633c89af1Smrg
1226733c89af1SmrgConfiguration files:
1226833c89af1Smrg$config_files
1226933c89af1Smrg
1227033c89af1SmrgConfiguration headers:
1227133c89af1Smrg$config_headers
1227233c89af1Smrg
1227333c89af1SmrgConfiguration commands:
1227433c89af1Smrg$config_commands
1227533c89af1Smrg
1227638d718bdSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>."
1227733c89af1Smrg
1227833c89af1Smrg_ACEOF
12279352bf44eSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12280352bf44eSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12281278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282352bf44eSmrgac_cs_config='$ac_cs_config_escaped'
1228333c89af1Smrgac_cs_version="\\
1228438d718bdSmrgeditres config.status 1.0.9
1228538d718bdSmrgconfigured by $0, generated by GNU Autoconf 2.72,
1228616d8e44fSmrg  with options \\"\$ac_cs_config\\"
1228733c89af1Smrg
1228838d718bdSmrgCopyright (C) 2023 Free Software Foundation, Inc.
1228933c89af1SmrgThis config.status script is free software; the Free Software Foundation
1229033c89af1Smrggives unlimited permission to copy, distribute and modify it."
1229133c89af1Smrg
1229233c89af1Smrgac_pwd='$ac_pwd'
1229333c89af1Smrgsrcdir='$srcdir'
1229433c89af1SmrgINSTALL='$INSTALL'
12295278eca22SmrgMKDIR_P='$MKDIR_P'
12296278eca22SmrgAWK='$AWK'
12297278eca22Smrgtest -n "\$AWK" || AWK=awk
1229833c89af1Smrg_ACEOF
1229933c89af1Smrg
12300278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12301278eca22Smrg# The default lists apply if the user does not specify any file.
1230233c89af1Smrgac_need_defaults=:
1230333c89af1Smrgwhile test $# != 0
1230433c89af1Smrgdo
1230533c89af1Smrg  case $1 in
1230616d8e44fSmrg  --*=?*)
1230733c89af1Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1230833c89af1Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1230933c89af1Smrg    ac_shift=:
1231033c89af1Smrg    ;;
1231116d8e44fSmrg  --*=)
1231216d8e44fSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1231316d8e44fSmrg    ac_optarg=
1231416d8e44fSmrg    ac_shift=:
1231516d8e44fSmrg    ;;
1231633c89af1Smrg  *)
1231733c89af1Smrg    ac_option=$1
1231833c89af1Smrg    ac_optarg=$2
1231933c89af1Smrg    ac_shift=shift
1232033c89af1Smrg    ;;
1232133c89af1Smrg  esac
1232233c89af1Smrg
1232333c89af1Smrg  case $ac_option in
1232433c89af1Smrg  # Handling of the options.
1232533c89af1Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1232633c89af1Smrg    ac_cs_recheck=: ;;
1232733c89af1Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12328352bf44eSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
1232916d8e44fSmrg  --config | --confi | --conf | --con | --co | --c )
12330352bf44eSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
1233133c89af1Smrg  --debug | --debu | --deb | --de | --d | -d )
1233233c89af1Smrg    debug=: ;;
1233333c89af1Smrg  --file | --fil | --fi | --f )
1233433c89af1Smrg    $ac_shift
12335278eca22Smrg    case $ac_optarg in
12336352bf44eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1233716d8e44fSmrg    '') as_fn_error $? "missing file argument" ;;
12338278eca22Smrg    esac
1233916d8e44fSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1234033c89af1Smrg    ac_need_defaults=false;;
1234133c89af1Smrg  --header | --heade | --head | --hea )
1234233c89af1Smrg    $ac_shift
12343278eca22Smrg    case $ac_optarg in
12344352bf44eSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12345278eca22Smrg    esac
1234616d8e44fSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1234733c89af1Smrg    ac_need_defaults=false;;
1234833c89af1Smrg  --he | --h)
1234933c89af1Smrg    # Conflict between --help and --header
1235038d718bdSmrg    as_fn_error $? "ambiguous option: '$1'
1235138d718bdSmrgTry '$0 --help' for more information.";;
1235233c89af1Smrg  --help | --hel | -h )
12353352bf44eSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1235433c89af1Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235533c89af1Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1235633c89af1Smrg    ac_cs_silent=: ;;
1235733c89af1Smrg
1235833c89af1Smrg  # This is an error.
1235938d718bdSmrg  -*) as_fn_error $? "unrecognized option: '$1'
1236038d718bdSmrgTry '$0 --help' for more information." ;;
1236133c89af1Smrg
1236216d8e44fSmrg  *) as_fn_append ac_config_targets " $1"
1236333c89af1Smrg     ac_need_defaults=false ;;
1236433c89af1Smrg
1236533c89af1Smrg  esac
1236633c89af1Smrg  shift
1236733c89af1Smrgdone
1236833c89af1Smrg
1236933c89af1Smrgac_configure_extra_args=
1237033c89af1Smrg
1237133c89af1Smrgif $ac_cs_silent; then
1237233c89af1Smrg  exec 6>/dev/null
1237333c89af1Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1237433c89af1Smrgfi
1237533c89af1Smrg
1237633c89af1Smrg_ACEOF
12377278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1237833c89af1Smrgif \$ac_cs_recheck; then
12379ad47b356Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12380278eca22Smrg  shift
12381352bf44eSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12382278eca22Smrg  CONFIG_SHELL='$SHELL'
1238333c89af1Smrg  export CONFIG_SHELL
12384278eca22Smrg  exec "\$@"
1238533c89af1Smrgfi
1238633c89af1Smrg
1238733c89af1Smrg_ACEOF
12388278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1238933c89af1Smrgexec 5>>config.log
1239033c89af1Smrg{
1239133c89af1Smrg  echo
1239233c89af1Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1239333c89af1Smrg## Running $as_me. ##
1239433c89af1Smrg_ASBOX
12395352bf44eSmrg  printf "%s\n" "$ac_log"
1239633c89af1Smrg} >&5
1239733c89af1Smrg
1239833c89af1Smrg_ACEOF
12399278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1240033c89af1Smrg#
1240133c89af1Smrg# INIT-COMMANDS
1240233c89af1Smrg#
12403352bf44eSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1240433c89af1Smrg
1240533c89af1Smrg_ACEOF
1240633c89af1Smrg
12407278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1240833c89af1Smrg
1240933c89af1Smrg# Handling of arguments.
1241033c89af1Smrgfor ac_config_target in $ac_config_targets
1241133c89af1Smrgdo
1241233c89af1Smrg  case $ac_config_target in
1241316d8e44fSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12414ad47b356Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1241533c89af1Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12416988795beSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
1241733c89af1Smrg
1241838d718bdSmrg  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1241933c89af1Smrg  esac
1242033c89af1Smrgdone
1242133c89af1Smrg
1242233c89af1Smrg
1242333c89af1Smrg# If the user did not use the arguments to specify the items to instantiate,
1242433c89af1Smrg# then the envvar interface is used.  Set only those that are not.
1242533c89af1Smrg# We use the long form for the default assignment because of an extremely
1242633c89af1Smrg# bizarre bug on SunOS 4.1.3.
1242733c89af1Smrgif $ac_need_defaults; then
12428352bf44eSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12429352bf44eSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12430352bf44eSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1243133c89af1Smrgfi
1243233c89af1Smrg
1243333c89af1Smrg# Have a temporary directory for convenience.  Make it in the build tree
1243433c89af1Smrg# simply because there is no reason against having it here, and in addition,
1243533c89af1Smrg# creating and moving files from /tmp can sometimes cause problems.
1243633c89af1Smrg# Hook for its removal unless debugging.
1243733c89af1Smrg# Note that there is a small window in which the directory will not be cleaned:
1243838d718bdSmrg# after its creation but before its name has been assigned to '$tmp'.
1243933c89af1Smrg$debug ||
1244033c89af1Smrg{
1244116d8e44fSmrg  tmp= ac_tmp=
1244233c89af1Smrg  trap 'exit_status=$?
1244316d8e44fSmrg  : "${ac_tmp:=$tmp}"
1244416d8e44fSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1244533c89af1Smrg' 0
1244616d8e44fSmrg  trap 'as_fn_exit 1' 1 2 13 15
1244733c89af1Smrg}
1244833c89af1Smrg# Create a (secure) tmp directory for tmp files.
1244933c89af1Smrg
1245033c89af1Smrg{
1245133c89af1Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1245216d8e44fSmrg  test -d "$tmp"
1245333c89af1Smrg}  ||
1245433c89af1Smrg{
1245533c89af1Smrg  tmp=./conf$$-$RANDOM
1245633c89af1Smrg  (umask 077 && mkdir "$tmp")
1245716d8e44fSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1245816d8e44fSmrgac_tmp=$tmp
1245933c89af1Smrg
12460278eca22Smrg# Set up the scripts for CONFIG_FILES section.
12461278eca22Smrg# No need to generate them if there are no CONFIG_FILES.
1246238d718bdSmrg# This happens for instance with './config.status config.h'.
1246333c89af1Smrgif test -n "$CONFIG_FILES"; then
1246433c89af1Smrg
1246533c89af1Smrg
1246616d8e44fSmrgac_cr=`echo X | tr X '\015'`
1246716d8e44fSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1246816d8e44fSmrg# But we know of no other shell where ac_cr would be empty at this
1246916d8e44fSmrg# point, so we can use a bashism as a fallback.
1247016d8e44fSmrgif test "x$ac_cr" = x; then
1247116d8e44fSmrg  eval ac_cr=\$\'\\r\'
1247216d8e44fSmrgfi
12473278eca22Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12474278eca22Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12475278eca22Smrg  ac_cs_awk_cr='\\r'
12476278eca22Smrgelse
12477278eca22Smrg  ac_cs_awk_cr=$ac_cr
1247833c89af1Smrgfi
1247933c89af1Smrg
1248016d8e44fSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1248133c89af1Smrg_ACEOF
1248233c89af1Smrg
1248333c89af1Smrg
12484278eca22Smrg{
12485278eca22Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12486278eca22Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12487278eca22Smrg  echo "_ACEOF"
12488278eca22Smrg} >conf$$subs.sh ||
1248916d8e44fSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1249016d8e44fSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1249133c89af1Smrgac_delim='%!_!# '
1249233c89af1Smrgfor ac_last_try in false false false false false :; do
12493278eca22Smrg  . ./conf$$subs.sh ||
1249416d8e44fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1249533c89af1Smrg
12496278eca22Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12497278eca22Smrg  if test $ac_delim_n = $ac_delim_num; then
1249833c89af1Smrg    break
1249933c89af1Smrg  elif $ac_last_try; then
1250016d8e44fSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1250133c89af1Smrg  else
1250233c89af1Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1250333c89af1Smrg  fi
1250433c89af1Smrgdone
12505278eca22Smrgrm -f conf$$subs.sh
1250633c89af1Smrg
12507278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1250816d8e44fSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12509278eca22Smrg_ACEOF
12510278eca22Smrgsed -n '
12511278eca22Smrgh
12512278eca22Smrgs/^/S["/; s/!.*/"]=/
12513278eca22Smrgp
12514278eca22Smrgg
12515278eca22Smrgs/^[^!]*!//
12516278eca22Smrg:repl
12517278eca22Smrgt repl
12518278eca22Smrgs/'"$ac_delim"'$//
12519278eca22Smrgt delim
12520278eca22Smrg:nl
12521278eca22Smrgh
1252216d8e44fSmrgs/\(.\{148\}\)..*/\1/
12523278eca22Smrgt more1
12524278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12525278eca22Smrgp
12526278eca22Smrgn
12527278eca22Smrgb repl
12528278eca22Smrg:more1
12529278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12530278eca22Smrgp
12531278eca22Smrgg
12532278eca22Smrgs/.\{148\}//
12533278eca22Smrgt nl
12534278eca22Smrg:delim
12535278eca22Smrgh
1253616d8e44fSmrgs/\(.\{148\}\)..*/\1/
12537278eca22Smrgt more2
12538278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12539278eca22Smrgp
12540278eca22Smrgb
12541278eca22Smrg:more2
12542278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12543278eca22Smrgp
12544278eca22Smrgg
12545278eca22Smrgs/.\{148\}//
12546278eca22Smrgt delim
12547278eca22Smrg' <conf$$subs.awk | sed '
12548278eca22Smrg/^[^""]/{
12549278eca22Smrg  N
12550278eca22Smrg  s/\n//
12551278eca22Smrg}
12552278eca22Smrg' >>$CONFIG_STATUS || ac_write_fail=1
12553278eca22Smrgrm -f conf$$subs.awk
12554278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555278eca22Smrg_ACAWK
1255616d8e44fSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12557278eca22Smrg  for (key in S) S_is_set[key] = 1
12558278eca22Smrg  FS = ""
12559278eca22Smrg
12560278eca22Smrg}
12561278eca22Smrg{
12562278eca22Smrg  line = $ 0
12563278eca22Smrg  nfields = split(line, field, "@")
12564278eca22Smrg  substed = 0
12565278eca22Smrg  len = length(field[1])
12566278eca22Smrg  for (i = 2; i < nfields; i++) {
12567278eca22Smrg    key = field[i]
12568278eca22Smrg    keylen = length(key)
12569278eca22Smrg    if (S_is_set[key]) {
12570278eca22Smrg      value = S[key]
12571278eca22Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12572278eca22Smrg      len += length(value) + length(field[++i])
12573278eca22Smrg      substed = 1
12574278eca22Smrg    } else
12575278eca22Smrg      len += 1 + keylen
12576278eca22Smrg  }
12577278eca22Smrg
12578278eca22Smrg  print line
12579278eca22Smrg}
1258033c89af1Smrg
12581278eca22Smrg_ACAWK
1258233c89af1Smrg_ACEOF
12583278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584278eca22Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12585278eca22Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12586278eca22Smrgelse
12587278eca22Smrg  cat
1258816d8e44fSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1258916d8e44fSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1259033c89af1Smrg_ACEOF
1259133c89af1Smrg
1259216d8e44fSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1259316d8e44fSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1259433c89af1Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1259533c89af1Smrg# (actually we leave an empty line to preserve line numbers).
1259633c89af1Smrgif test "x$srcdir" = x.; then
1259716d8e44fSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1259816d8e44fSmrgh
1259916d8e44fSmrgs///
1260016d8e44fSmrgs/^/:/
1260116d8e44fSmrgs/[	 ]*$/:/
1260216d8e44fSmrgs/:\$(srcdir):/:/g
1260316d8e44fSmrgs/:\${srcdir}:/:/g
1260416d8e44fSmrgs/:@srcdir@:/:/g
1260516d8e44fSmrgs/^:*//
1260633c89af1Smrgs/:*$//
1260716d8e44fSmrgx
1260816d8e44fSmrgs/\(=[	 ]*\).*/\1/
1260916d8e44fSmrgG
1261016d8e44fSmrgs/\n//
1261133c89af1Smrgs/^[^=]*=[	 ]*$//
1261233c89af1Smrg}'
1261333c89af1Smrgfi
1261433c89af1Smrg
12615278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1261633c89af1Smrgfi # test -n "$CONFIG_FILES"
1261733c89af1Smrg
12618278eca22Smrg# Set up the scripts for CONFIG_HEADERS section.
12619278eca22Smrg# No need to generate them if there are no CONFIG_HEADERS.
1262038d718bdSmrg# This happens for instance with './config.status Makefile'.
12621278eca22Smrgif test -n "$CONFIG_HEADERS"; then
1262216d8e44fSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12623278eca22SmrgBEGIN {
12624278eca22Smrg_ACEOF
12625278eca22Smrg
1262638d718bdSmrg# Transform confdefs.h into an awk script 'defines.awk', embedded as
12627278eca22Smrg# here-document in config.status, that substitutes the proper values into
12628278eca22Smrg# config.h.in to produce config.h.
12629278eca22Smrg
12630278eca22Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
12631278eca22Smrg# handling of long lines.
12632278eca22Smrgac_delim='%!_!# '
12633278eca22Smrgfor ac_last_try in false false :; do
1263416d8e44fSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1263516d8e44fSmrg  if test -z "$ac_tt"; then
12636278eca22Smrg    break
12637278eca22Smrg  elif $ac_last_try; then
1263816d8e44fSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12639278eca22Smrg  else
12640278eca22Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12641278eca22Smrg  fi
12642278eca22Smrgdone
12643278eca22Smrg
12644278eca22Smrg# For the awk script, D is an array of macro values keyed by name,
12645278eca22Smrg# likewise P contains macro parameters if any.  Preserve backslash
12646278eca22Smrg# newline sequences.
12647278eca22Smrg
12648278eca22Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12649278eca22Smrgsed -n '
12650278eca22Smrgs/.\{148\}/&'"$ac_delim"'/g
12651278eca22Smrgt rset
12652278eca22Smrg:rset
12653278eca22Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12654278eca22Smrgt def
12655278eca22Smrgd
12656278eca22Smrg:def
12657278eca22Smrgs/\\$//
12658278eca22Smrgt bsnl
12659278eca22Smrgs/["\\]/\\&/g
12660278eca22Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12661278eca22SmrgD["\1"]=" \3"/p
12662278eca22Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12663278eca22Smrgd
12664278eca22Smrg:bsnl
12665278eca22Smrgs/["\\]/\\&/g
12666278eca22Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12667278eca22SmrgD["\1"]=" \3\\\\\\n"\\/p
12668278eca22Smrgt cont
12669278eca22Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12670278eca22Smrgt cont
12671278eca22Smrgd
12672278eca22Smrg:cont
12673278eca22Smrgn
12674278eca22Smrgs/.\{148\}/&'"$ac_delim"'/g
12675278eca22Smrgt clear
12676278eca22Smrg:clear
12677278eca22Smrgs/\\$//
12678278eca22Smrgt bsnlc
12679278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12680278eca22Smrgd
12681278eca22Smrg:bsnlc
12682278eca22Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12683278eca22Smrgb cont
12684278eca22Smrg' <confdefs.h | sed '
12685278eca22Smrgs/'"$ac_delim"'/"\\\
12686278eca22Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12687278eca22Smrg
12688278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689278eca22Smrg  for (key in D) D_is_set[key] = 1
12690278eca22Smrg  FS = ""
12691278eca22Smrg}
12692278eca22Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12693278eca22Smrg  line = \$ 0
12694278eca22Smrg  split(line, arg, " ")
12695278eca22Smrg  if (arg[1] == "#") {
12696278eca22Smrg    defundef = arg[2]
12697278eca22Smrg    mac1 = arg[3]
12698278eca22Smrg  } else {
12699278eca22Smrg    defundef = substr(arg[1], 2)
12700278eca22Smrg    mac1 = arg[2]
12701278eca22Smrg  }
12702278eca22Smrg  split(mac1, mac2, "(") #)
12703278eca22Smrg  macro = mac2[1]
12704278eca22Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
12705278eca22Smrg  if (D_is_set[macro]) {
12706278eca22Smrg    # Preserve the white space surrounding the "#".
12707278eca22Smrg    print prefix "define", macro P[macro] D[macro]
12708278eca22Smrg    next
12709278eca22Smrg  } else {
12710278eca22Smrg    # Replace #undef with comments.  This is necessary, for example,
12711278eca22Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
12712278eca22Smrg    # on some systems where configure will not decide to define it.
12713278eca22Smrg    if (defundef == "undef") {
12714278eca22Smrg      print "/*", prefix defundef, macro, "*/"
12715278eca22Smrg      next
12716278eca22Smrg    }
12717278eca22Smrg  }
12718278eca22Smrg}
12719278eca22Smrg{ print }
12720278eca22Smrg_ACAWK
12721278eca22Smrg_ACEOF
12722278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1272316d8e44fSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12724278eca22Smrgfi # test -n "$CONFIG_HEADERS"
12725278eca22Smrg
1272633c89af1Smrg
12727278eca22Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12728278eca22Smrgshift
12729278eca22Smrgfor ac_tag
1273033c89af1Smrgdo
1273133c89af1Smrg  case $ac_tag in
1273233c89af1Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1273333c89af1Smrg  esac
1273433c89af1Smrg  case $ac_mode$ac_tag in
1273533c89af1Smrg  :[FHL]*:*);;
1273638d718bdSmrg  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1273733c89af1Smrg  :[FH]-) ac_tag=-:-;;
1273833c89af1Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1273933c89af1Smrg  esac
1274033c89af1Smrg  ac_save_IFS=$IFS
1274133c89af1Smrg  IFS=:
1274233c89af1Smrg  set x $ac_tag
1274333c89af1Smrg  IFS=$ac_save_IFS
1274433c89af1Smrg  shift
1274533c89af1Smrg  ac_file=$1
1274633c89af1Smrg  shift
1274733c89af1Smrg
1274833c89af1Smrg  case $ac_mode in
1274933c89af1Smrg  :L) ac_source=$1;;
1275033c89af1Smrg  :[FH])
1275133c89af1Smrg    ac_file_inputs=
1275233c89af1Smrg    for ac_f
1275333c89af1Smrg    do
1275433c89af1Smrg      case $ac_f in
1275516d8e44fSmrg      -) ac_f="$ac_tmp/stdin";;
1275633c89af1Smrg      *) # Look for the file first in the build tree, then in the source tree
1275733c89af1Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1275838d718bdSmrg	 # because $ac_f cannot contain ':'.
1275933c89af1Smrg	 test -f "$ac_f" ||
1276033c89af1Smrg	   case $ac_f in
1276133c89af1Smrg	   [\\/$]*) false;;
1276233c89af1Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1276333c89af1Smrg	   esac ||
1276438d718bdSmrg	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1276533c89af1Smrg      esac
12766352bf44eSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1276716d8e44fSmrg      as_fn_append ac_file_inputs " '$ac_f'"
1276833c89af1Smrg    done
1276933c89af1Smrg
1277038d718bdSmrg    # Let's still pretend it is 'configure' which instantiates (i.e., don't
1277133c89af1Smrg    # use $as_me), people would be surprised to read:
1277233c89af1Smrg    #    /* config.h.  Generated by config.status.  */
12773278eca22Smrg    configure_input='Generated from '`
12774352bf44eSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12775278eca22Smrg	`' by configure.'
1277633c89af1Smrg    if test x"$ac_file" != x-; then
1277733c89af1Smrg      configure_input="$ac_file.  $configure_input"
12778352bf44eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12779352bf44eSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
1278033c89af1Smrg    fi
12781278eca22Smrg    # Neutralize special characters interpreted by sed in replacement strings.
12782278eca22Smrg    case $configure_input in #(
12783278eca22Smrg    *\&* | *\|* | *\\* )
12784352bf44eSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12785278eca22Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12786278eca22Smrg    *) ac_sed_conf_input=$configure_input;;
12787278eca22Smrg    esac
1278833c89af1Smrg
1278933c89af1Smrg    case $ac_tag in
1279016d8e44fSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1279116d8e44fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1279233c89af1Smrg    esac
1279333c89af1Smrg    ;;
1279433c89af1Smrg  esac
1279533c89af1Smrg
1279633c89af1Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1279733c89af1Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279833c89af1Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1279933c89af1Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1280033c89af1Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12801352bf44eSmrgprintf "%s\n" X"$ac_file" |
1280233c89af1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280333c89af1Smrg	    s//\1/
1280433c89af1Smrg	    q
1280533c89af1Smrg	  }
1280633c89af1Smrg	  /^X\(\/\/\)[^/].*/{
1280733c89af1Smrg	    s//\1/
1280833c89af1Smrg	    q
1280933c89af1Smrg	  }
1281033c89af1Smrg	  /^X\(\/\/\)$/{
1281133c89af1Smrg	    s//\1/
1281233c89af1Smrg	    q
1281333c89af1Smrg	  }
1281433c89af1Smrg	  /^X\(\/\).*/{
1281533c89af1Smrg	    s//\1/
1281633c89af1Smrg	    q
1281733c89af1Smrg	  }
1281833c89af1Smrg	  s/.*/./; q'`
1281916d8e44fSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
1282033c89af1Smrg  ac_builddir=.
1282133c89af1Smrg
1282233c89af1Smrgcase "$ac_dir" in
1282333c89af1Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1282433c89af1Smrg*)
12825352bf44eSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1282633c89af1Smrg  # A ".." for each directory in $ac_dir_suffix.
12827352bf44eSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1282833c89af1Smrg  case $ac_top_builddir_sub in
1282933c89af1Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1283033c89af1Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1283133c89af1Smrg  esac ;;
1283233c89af1Smrgesac
1283333c89af1Smrgac_abs_top_builddir=$ac_pwd
1283433c89af1Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1283533c89af1Smrg# for backward compatibility:
1283633c89af1Smrgac_top_builddir=$ac_top_build_prefix
1283733c89af1Smrg
1283833c89af1Smrgcase $srcdir in
1283933c89af1Smrg  .)  # We are building in place.
1284033c89af1Smrg    ac_srcdir=.
1284133c89af1Smrg    ac_top_srcdir=$ac_top_builddir_sub
1284233c89af1Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1284333c89af1Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1284433c89af1Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1284533c89af1Smrg    ac_top_srcdir=$srcdir
1284633c89af1Smrg    ac_abs_top_srcdir=$srcdir ;;
1284733c89af1Smrg  *) # Relative name.
1284833c89af1Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1284933c89af1Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1285033c89af1Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1285133c89af1Smrgesac
1285233c89af1Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1285333c89af1Smrg
1285433c89af1Smrg
1285533c89af1Smrg  case $ac_mode in
1285633c89af1Smrg  :F)
1285733c89af1Smrg  #
1285833c89af1Smrg  # CONFIG_FILE
1285933c89af1Smrg  #
1286033c89af1Smrg
1286133c89af1Smrg  case $INSTALL in
1286233c89af1Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1286333c89af1Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1286433c89af1Smrg  esac
12865278eca22Smrg  ac_MKDIR_P=$MKDIR_P
12866278eca22Smrg  case $MKDIR_P in
12867278eca22Smrg  [\\/$]* | ?:[\\/]* ) ;;
12868278eca22Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12869278eca22Smrg  esac
1287033c89af1Smrg_ACEOF
1287133c89af1Smrg
12872278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1287333c89af1Smrg# If the template does not know about datarootdir, expand it.
1287433c89af1Smrg# FIXME: This hack should be removed a few years after 2.60.
1287533c89af1Smrgac_datarootdir_hack=; ac_datarootdir_seen=
12876278eca22Smrgac_sed_dataroot='
12877278eca22Smrg/datarootdir/ {
1287833c89af1Smrg  p
1287933c89af1Smrg  q
1288033c89af1Smrg}
1288133c89af1Smrg/@datadir@/p
1288233c89af1Smrg/@docdir@/p
1288333c89af1Smrg/@infodir@/p
1288433c89af1Smrg/@localedir@/p
1288516d8e44fSmrg/@mandir@/p'
12886278eca22Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1288733c89af1Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1288833c89af1Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12889352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12890352bf44eSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1289133c89af1Smrg_ACEOF
12892278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1289333c89af1Smrg  ac_datarootdir_hack='
1289433c89af1Smrg  s&@datadir@&$datadir&g
1289533c89af1Smrg  s&@docdir@&$docdir&g
1289633c89af1Smrg  s&@infodir@&$infodir&g
1289733c89af1Smrg  s&@localedir@&$localedir&g
1289833c89af1Smrg  s&@mandir@&$mandir&g
1289916d8e44fSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1290033c89af1Smrgesac
1290133c89af1Smrg_ACEOF
1290233c89af1Smrg
1290338d718bdSmrg# Neutralize VPATH when '$srcdir' = '.'.
1290433c89af1Smrg# Shell code in configure.ac might set extrasub.
1290533c89af1Smrg# FIXME: do we really want to maintain this feature?
12906278eca22Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907278eca22Smrgac_sed_extra="$ac_vpsub
1290833c89af1Smrg$extrasub
1290933c89af1Smrg_ACEOF
12910278eca22Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1291133c89af1Smrg:t
1291233c89af1Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12913278eca22Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1291433c89af1Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12915278eca22Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1291633c89af1Smrgs&@srcdir@&$ac_srcdir&;t t
1291733c89af1Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1291833c89af1Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1291933c89af1Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1292033c89af1Smrgs&@builddir@&$ac_builddir&;t t
1292133c89af1Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1292233c89af1Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1292333c89af1Smrgs&@INSTALL@&$ac_INSTALL&;t t
12924278eca22Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1292533c89af1Smrg$ac_datarootdir_hack
12926278eca22Smrg"
1292716d8e44fSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1292816d8e44fSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1292933c89af1Smrg
1293033c89af1Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1293116d8e44fSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1293216d8e44fSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1293316d8e44fSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1293438d718bdSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1293516d8e44fSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
1293638d718bdSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1293716d8e44fSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1293833c89af1Smrg
1293916d8e44fSmrg  rm -f "$ac_tmp/stdin"
1294033c89af1Smrg  case $ac_file in
1294116d8e44fSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1294216d8e44fSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12943278eca22Smrg  esac \
1294416d8e44fSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1294533c89af1Smrg ;;
1294633c89af1Smrg  :H)
1294733c89af1Smrg  #
1294833c89af1Smrg  # CONFIG_HEADER
1294933c89af1Smrg  #
1295033c89af1Smrg  if test x"$ac_file" != x-; then
12951278eca22Smrg    {
12952352bf44eSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
1295316d8e44fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1295416d8e44fSmrg    } >"$ac_tmp/config.h" \
1295516d8e44fSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1295616d8e44fSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12957352bf44eSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12958352bf44eSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1295933c89af1Smrg    else
12960278eca22Smrg      rm -f "$ac_file"
1296116d8e44fSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1296216d8e44fSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1296333c89af1Smrg    fi
1296433c89af1Smrg  else
12965352bf44eSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
1296616d8e44fSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1296716d8e44fSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
1296833c89af1Smrg  fi
12969278eca22Smrg# Compute "$ac_file"'s index in $config_headers.
12970278eca22Smrg_am_arg="$ac_file"
1297133c89af1Smrg_am_stamp_count=1
1297233c89af1Smrgfor _am_header in $config_headers :; do
1297333c89af1Smrg  case $_am_header in
12974278eca22Smrg    $_am_arg | $_am_arg:* )
1297533c89af1Smrg      break ;;
1297633c89af1Smrg    * )
1297733c89af1Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1297833c89af1Smrg  esac
1297933c89af1Smrgdone
12980278eca22Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12981278eca22Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12982278eca22Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12983278eca22Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
12984278eca22Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12985352bf44eSmrgprintf "%s\n" X"$_am_arg" |
1298633c89af1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298733c89af1Smrg	    s//\1/
1298833c89af1Smrg	    q
1298933c89af1Smrg	  }
1299033c89af1Smrg	  /^X\(\/\/\)[^/].*/{
1299133c89af1Smrg	    s//\1/
1299233c89af1Smrg	    q
1299333c89af1Smrg	  }
1299433c89af1Smrg	  /^X\(\/\/\)$/{
1299533c89af1Smrg	    s//\1/
1299633c89af1Smrg	    q
1299733c89af1Smrg	  }
1299833c89af1Smrg	  /^X\(\/\).*/{
1299933c89af1Smrg	    s//\1/
1300033c89af1Smrg	    q
1300133c89af1Smrg	  }
1300233c89af1Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1300333c89af1Smrg ;;
1300433c89af1Smrg
13005352bf44eSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13006352bf44eSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1300733c89af1Smrg ;;
1300833c89af1Smrg  esac
1300933c89af1Smrg
1301033c89af1Smrg
1301133c89af1Smrg  case $ac_file$ac_mode in
13012278eca22Smrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13013ad47b356Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
13014278eca22Smrg  # are listed without --file.  Let's play safe and only enable the eval
13015278eca22Smrg  # if we detect the quoting.
13016352bf44eSmrg  # TODO: see whether this extra hack can be removed once we start
13017352bf44eSmrg  # requiring Autoconf 2.70 or later.
13018352bf44eSmrg  case $CONFIG_FILES in #(
13019352bf44eSmrg  *\'*) :
13020352bf44eSmrg    eval set x "$CONFIG_FILES" ;; #(
13021352bf44eSmrg  *) :
13022352bf44eSmrg    set x $CONFIG_FILES ;; #(
13023352bf44eSmrg  *) :
13024352bf44eSmrg     ;;
13025352bf44eSmrgesac
13026278eca22Smrg  shift
13027352bf44eSmrg  # Used to flag and report bootstrapping failures.
13028352bf44eSmrg  am_rc=0
13029352bf44eSmrg  for am_mf
13030278eca22Smrg  do
13031278eca22Smrg    # Strip MF so we end up with the name of the file.
13032352bf44eSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13033352bf44eSmrg    # Check whether this is an Automake generated Makefile which includes
13034352bf44eSmrg    # dependency-tracking related rules and includes.
13035352bf44eSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
13036278eca22Smrg    # limit of 2048, but all sed's we know have understand at least 4000.
13037352bf44eSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13038352bf44eSmrg      || continue
13039352bf44eSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
13040352bf44eSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13041352bf44eSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
13042352bf44eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
13043352bf44eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13044352bf44eSmrgprintf "%s\n" X"$am_mf" |
1304533c89af1Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304633c89af1Smrg	    s//\1/
1304733c89af1Smrg	    q
1304833c89af1Smrg	  }
1304933c89af1Smrg	  /^X\(\/\/\)[^/].*/{
1305033c89af1Smrg	    s//\1/
1305133c89af1Smrg	    q
1305233c89af1Smrg	  }
1305333c89af1Smrg	  /^X\(\/\/\)$/{
1305433c89af1Smrg	    s//\1/
1305533c89af1Smrg	    q
1305633c89af1Smrg	  }
1305733c89af1Smrg	  /^X\(\/\).*/{
1305833c89af1Smrg	    s//\1/
1305933c89af1Smrg	    q
1306033c89af1Smrg	  }
1306133c89af1Smrg	  s/.*/./; q'`
13062352bf44eSmrg    am_filepart=`$as_basename -- "$am_mf" ||
13063352bf44eSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13064352bf44eSmrg	 X"$am_mf" : 'X\(//\)$' \| \
13065352bf44eSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13066352bf44eSmrgprintf "%s\n" X/"$am_mf" |
13067352bf44eSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1306833c89af1Smrg	    s//\1/
1306933c89af1Smrg	    q
1307033c89af1Smrg	  }
13071352bf44eSmrg	  /^X\/\(\/\/\)$/{
1307233c89af1Smrg	    s//\1/
1307333c89af1Smrg	    q
1307433c89af1Smrg	  }
13075352bf44eSmrg	  /^X\/\(\/\).*/{
1307633c89af1Smrg	    s//\1/
1307733c89af1Smrg	    q
1307833c89af1Smrg	  }
1307933c89af1Smrg	  s/.*/./; q'`
13080352bf44eSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
13081352bf44eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13082352bf44eSmrg        | $MAKE -f - am--depfiles" >&5
13083352bf44eSmrg   (cd "$am_dirpart" \
13084352bf44eSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
13085352bf44eSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
13086352bf44eSmrg   ac_status=$?
13087352bf44eSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088352bf44eSmrg   (exit $ac_status); } || am_rc=$?
1308933c89af1Smrg  done
13090352bf44eSmrg  if test $am_rc -ne 0; then
1309138d718bdSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1309238d718bdSmrgprintf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13093352bf44eSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
13094352bf44eSmrg    for automatic dependency tracking.  If GNU make was not used, consider
13095352bf44eSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
13096352bf44eSmrg    necessary).  You can also try re-running configure with the
13097352bf44eSmrg    '--disable-dependency-tracking' option to at least be able to build
13098352bf44eSmrg    the package (albeit without support for automatic dependency tracking).
1309938d718bdSmrgSee 'config.log' for more details" "$LINENO" 5; }
13100352bf44eSmrg  fi
13101352bf44eSmrg  { am_dirpart=; unset am_dirpart;}
13102352bf44eSmrg  { am_filepart=; unset am_filepart;}
13103352bf44eSmrg  { am_mf=; unset am_mf;}
13104352bf44eSmrg  { am_rc=; unset am_rc;}
13105352bf44eSmrg  rm -f conftest-deps.mk
13106278eca22Smrg}
1310733c89af1Smrg ;;
1310833c89af1Smrg
1310933c89af1Smrg  esac
1311033c89af1Smrgdone # for ac_tag
1311133c89af1Smrg
1311233c89af1Smrg
1311316d8e44fSmrgas_fn_exit 0
1311433c89af1Smrg_ACEOF
1311533c89af1Smrgac_clean_files=$ac_clean_files_save
1311633c89af1Smrg
13117278eca22Smrgtest $ac_write_fail = 0 ||
1311816d8e44fSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13119278eca22Smrg
1312033c89af1Smrg
1312133c89af1Smrg# configure is writing to config.log, and then calls config.status.
1312233c89af1Smrg# config.status does its own redirection, appending to config.log.
1312333c89af1Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1312433c89af1Smrg# by configure, so config.status won't be able to write to it; its
1312533c89af1Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1312633c89af1Smrg# effectively closing config.log, so it can be properly (re)opened and
1312733c89af1Smrg# appended to by config.status.  When coming back to configure, we
1312833c89af1Smrg# need to make the FD available again.
1312933c89af1Smrgif test "$no_create" != yes; then
1313033c89af1Smrg  ac_cs_success=:
1313133c89af1Smrg  ac_config_status_args=
1313233c89af1Smrg  test "$silent" = yes &&
1313333c89af1Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1313433c89af1Smrg  exec 5>/dev/null
1313533c89af1Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1313633c89af1Smrg  exec 5>>config.log
1313733c89af1Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1313833c89af1Smrg  # would make configure fail if this is the last instruction.
1313916d8e44fSmrg  $ac_cs_success || as_fn_exit 1
1314033c89af1Smrgfi
13141278eca22Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13142352bf44eSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13143352bf44eSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13144278eca22Smrgfi
1314533c89af1Smrg
13146352bf44eSmrg
13147