18440cca4Smrg#! /bin/sh
28440cca4Smrg# Guess values for system-dependent variables and create Makefiles.
394c9ab7bSmrg# Generated by GNU Autoconf 2.71 for xstdcmap 1.0.5.
48440cca4Smrg#
594c9ab7bSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/-/issues>.
68440cca4Smrg#
7d1c293acSmrg#
894c9ab7bSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
994c9ab7bSmrg# Inc.
10d1c293acSmrg#
11d1c293acSmrg#
128440cca4Smrg# This configure script is free software; the Free Software Foundation
138440cca4Smrg# gives unlimited permission to copy, distribute and modify it.
14d1c293acSmrg## -------------------- ##
15d1c293acSmrg## M4sh Initialization. ##
16d1c293acSmrg## -------------------- ##
178440cca4Smrg
18d1c293acSmrg# Be more Bourne compatible
19d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh
2094c9ab7bSmrgas_nop=:
2194c9ab7bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
2294c9ab7bSmrgthen :
238440cca4Smrg  emulate sh
248440cca4Smrg  NULLCMD=:
25d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268440cca4Smrg  # is contrary to our usage.  Disable this feature.
278440cca4Smrg  alias -g '${1+"$@"}'='"$@"'
28d1c293acSmrg  setopt NO_GLOB_SUBST
2994c9ab7bSmrgelse $as_nop
30d1c293acSmrg  case `(set -o) 2>/dev/null` in #(
31d1c293acSmrg  *posix*) :
32d1c293acSmrg    set -o posix ;; #(
33d1c293acSmrg  *) :
34d1c293acSmrg     ;;
35d1c293acSmrgesac
368440cca4Smrgfi
378440cca4Smrg
38d1c293acSmrg
3994c9ab7bSmrg
4094c9ab7bSmrg# Reset variables that may have inherited troublesome values from
4194c9ab7bSmrg# the environment.
4294c9ab7bSmrg
4394c9ab7bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
4494c9ab7bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
4594c9ab7bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
4694c9ab7bSmrg# Quoting is to prevent editors from complaining about space-tab.
47d1c293acSmrgas_nl='
48d1c293acSmrg'
49d1c293acSmrgexport as_nl
5094c9ab7bSmrgIFS=" ""	$as_nl"
5194c9ab7bSmrg
5294c9ab7bSmrgPS1='$ '
5394c9ab7bSmrgPS2='> '
5494c9ab7bSmrgPS4='+ '
5594c9ab7bSmrg
5694c9ab7bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
5794c9ab7bSmrgLC_ALL=C
5894c9ab7bSmrgexport LC_ALL
5994c9ab7bSmrgLANGUAGE=C
6094c9ab7bSmrgexport LANGUAGE
6194c9ab7bSmrg
6294c9ab7bSmrg# We cannot yet rely on "unset" to work, but we need these variables
6394c9ab7bSmrg# to be unset--not just set to an empty or harmless value--now, to
6494c9ab7bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
6594c9ab7bSmrg# also avoids known problems related to "unset" and subshell syntax
6694c9ab7bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6794c9ab7bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6894c9ab7bSmrgdo eval test \${$as_var+y} \
6994c9ab7bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7094c9ab7bSmrgdone
7194c9ab7bSmrg
7294c9ab7bSmrg# Ensure that fds 0, 1, and 2 are open.
7394c9ab7bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7494c9ab7bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7594c9ab7bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76d1c293acSmrg
77d1c293acSmrg# The user is always right.
7894c9ab7bSmrgif ${PATH_SEPARATOR+false} :; then
79d1c293acSmrg  PATH_SEPARATOR=:
80d1c293acSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81d1c293acSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82d1c293acSmrg      PATH_SEPARATOR=';'
83d1c293acSmrg  }
848440cca4Smrgfi
858440cca4Smrg
868440cca4Smrg
87d1c293acSmrg# Find who we are.  Look in the path if we contain no directory separator.
88d1c293acSmrgas_myself=
89d1c293acSmrgcase $0 in #((
90d1c293acSmrg  *[\\/]* ) as_myself=$0 ;;
91d1c293acSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92d1c293acSmrgfor as_dir in $PATH
93d1c293acSmrgdo
94d1c293acSmrg  IFS=$as_save_IFS
9594c9ab7bSmrg  case $as_dir in #(((
9694c9ab7bSmrg    '') as_dir=./ ;;
9794c9ab7bSmrg    */) ;;
9894c9ab7bSmrg    *) as_dir=$as_dir/ ;;
9994c9ab7bSmrg  esac
10094c9ab7bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101d1c293acSmrg  done
102d1c293acSmrgIFS=$as_save_IFS
103d1c293acSmrg
104d1c293acSmrg     ;;
105d1c293acSmrgesac
106d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107d1c293acSmrg# in which case we are not to be found in the path.
108d1c293acSmrgif test "x$as_myself" = x; then
109d1c293acSmrg  as_myself=$0
110d1c293acSmrgfi
111d1c293acSmrgif test ! -f "$as_myself"; then
11294c9ab7bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113d1c293acSmrg  exit 1
114d1c293acSmrgfi
115d1c293acSmrg
116d1c293acSmrg
11704449c54Smrg# Use a proper internal environment variable to ensure we don't fall
11804449c54Smrg  # into an infinite loop, continuously re-executing ourselves.
11904449c54Smrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
12004449c54Smrg    _as_can_reexec=no; export _as_can_reexec;
12104449c54Smrg    # We cannot yet assume a decent shell, so we have to provide a
12204449c54Smrg# neutralization value for shells without unset; and this also
12304449c54Smrg# works around shells that cannot unset nonexistent variables.
12404449c54Smrg# Preserve -v and -x to the replacement shell.
12504449c54SmrgBASH_ENV=/dev/null
12604449c54SmrgENV=/dev/null
12704449c54Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
12804449c54Smrgcase $- in # ((((
12904449c54Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
13004449c54Smrg  *v* ) as_opts=-v ;;
13104449c54Smrg  *x* ) as_opts=-x ;;
13204449c54Smrg  * ) as_opts= ;;
13304449c54Smrgesac
13404449c54Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
13504449c54Smrg# Admittedly, this is quite paranoid, since all the known shells bail
13604449c54Smrg# out after a failed `exec'.
13794c9ab7bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
13894c9ab7bSmrgexit 255
13904449c54Smrg  fi
14004449c54Smrg  # We don't want this to propagate to other subprocesses.
14104449c54Smrg          { _as_can_reexec=; unset _as_can_reexec;}
142d1c293acSmrgif test "x$CONFIG_SHELL" = x; then
14394c9ab7bSmrg  as_bourne_compatible="as_nop=:
14494c9ab7bSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14594c9ab7bSmrgthen :
146d1c293acSmrg  emulate sh
147d1c293acSmrg  NULLCMD=:
148d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149d1c293acSmrg  # is contrary to our usage.  Disable this feature.
150d1c293acSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151d1c293acSmrg  setopt NO_GLOB_SUBST
15294c9ab7bSmrgelse \$as_nop
153d1c293acSmrg  case \`(set -o) 2>/dev/null\` in #(
154d1c293acSmrg  *posix*) :
155d1c293acSmrg    set -o posix ;; #(
156d1c293acSmrg  *) :
157d1c293acSmrg     ;;
158d1c293acSmrgesac
159d1c293acSmrgfi
160d1c293acSmrg"
161d1c293acSmrg  as_required="as_fn_return () { (exit \$1); }
162d1c293acSmrgas_fn_success () { as_fn_return 0; }
163d1c293acSmrgas_fn_failure () { as_fn_return 1; }
164d1c293acSmrgas_fn_ret_success () { return 0; }
165d1c293acSmrgas_fn_ret_failure () { return 1; }
166d1c293acSmrg
167d1c293acSmrgexitcode=0
168d1c293acSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169d1c293acSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170d1c293acSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171d1c293acSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
17294c9ab7bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
17394c9ab7bSmrgthen :
174d1c293acSmrg
17594c9ab7bSmrgelse \$as_nop
176d1c293acSmrg  exitcode=1; echo positional parameters were not saved.
177d1c293acSmrgfi
17804449c54Smrgtest x\$exitcode = x0 || exit 1
17994c9ab7bSmrgblah=\$(echo \$(echo blah))
18094c9ab7bSmrgtest x\"\$blah\" = xblah || exit 1
18104449c54Smrgtest -x / || exit 1"
182d1c293acSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183d1c293acSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184d1c293acSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185d1c293acSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186d1c293acSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
18794c9ab7bSmrg  if (eval "$as_required") 2>/dev/null
18894c9ab7bSmrgthen :
189d1c293acSmrg  as_have_required=yes
19094c9ab7bSmrgelse $as_nop
191d1c293acSmrg  as_have_required=no
192d1c293acSmrgfi
19394c9ab7bSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
19494c9ab7bSmrgthen :
195d1c293acSmrg
19694c9ab7bSmrgelse $as_nop
197d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198d1c293acSmrgas_found=false
199d1c293acSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2008440cca4Smrgdo
201d1c293acSmrg  IFS=$as_save_IFS
20294c9ab7bSmrg  case $as_dir in #(((
20394c9ab7bSmrg    '') as_dir=./ ;;
20494c9ab7bSmrg    */) ;;
20594c9ab7bSmrg    *) as_dir=$as_dir/ ;;
20694c9ab7bSmrg  esac
207d1c293acSmrg  as_found=:
208d1c293acSmrg  case $as_dir in #(
209d1c293acSmrg	 /*)
210d1c293acSmrg	   for as_base in sh bash ksh sh5; do
211d1c293acSmrg	     # Try only shells that exist, to save several forks.
21294c9ab7bSmrg	     as_shell=$as_dir$as_base
213d1c293acSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
21494c9ab7bSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
21594c9ab7bSmrgthen :
216d1c293acSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
21794c9ab7bSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
21894c9ab7bSmrgthen :
219d1c293acSmrg  break 2
220d1c293acSmrgfi
221d1c293acSmrgfi
222d1c293acSmrg	   done;;
223d1c293acSmrg       esac
224d1c293acSmrg  as_found=false
225d1c293acSmrgdone
226d1c293acSmrgIFS=$as_save_IFS
22794c9ab7bSmrgif $as_found
22894c9ab7bSmrgthen :
22994c9ab7bSmrg
23094c9ab7bSmrgelse $as_nop
23194c9ab7bSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
23294c9ab7bSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
23394c9ab7bSmrgthen :
23494c9ab7bSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
23594c9ab7bSmrgfi
23694c9ab7bSmrgfi
237d1c293acSmrg
238d1c293acSmrg
23994c9ab7bSmrg      if test "x$CONFIG_SHELL" != x
24094c9ab7bSmrgthen :
24104449c54Smrg  export CONFIG_SHELL
24204449c54Smrg             # We cannot yet assume a decent shell, so we have to provide a
24304449c54Smrg# neutralization value for shells without unset; and this also
24404449c54Smrg# works around shells that cannot unset nonexistent variables.
24504449c54Smrg# Preserve -v and -x to the replacement shell.
24604449c54SmrgBASH_ENV=/dev/null
24704449c54SmrgENV=/dev/null
24804449c54Smrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
24904449c54Smrgcase $- in # ((((
25004449c54Smrg  *v*x* | *x*v* ) as_opts=-vx ;;
25104449c54Smrg  *v* ) as_opts=-v ;;
25204449c54Smrg  *x* ) as_opts=-x ;;
25304449c54Smrg  * ) as_opts= ;;
25404449c54Smrgesac
25504449c54Smrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
25604449c54Smrg# Admittedly, this is quite paranoid, since all the known shells bail
25704449c54Smrg# out after a failed `exec'.
25894c9ab7bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
25904449c54Smrgexit 255
260d1c293acSmrgfi
261d1c293acSmrg
26294c9ab7bSmrg    if test x$as_have_required = xno
26394c9ab7bSmrgthen :
26494c9ab7bSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
26594c9ab7bSmrg  printf "%s\n" "$0: the shells that I found on your system."
26694c9ab7bSmrg  if test ${ZSH_VERSION+y} ; then
26794c9ab7bSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
26894c9ab7bSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
2698440cca4Smrg  else
27094c9ab7bSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
27194c9ab7bSmrg$0: https://gitlab.freedesktop.org/xorg/app/xstdcmap/-/issues
272d1c293acSmrg$0: about your system, including any error possibly output
273d1c293acSmrg$0: before this message. Then install a modern shell, or
274d1c293acSmrg$0: manually run the script under such a shell if you do
275d1c293acSmrg$0: have one."
2768440cca4Smrg  fi
277d1c293acSmrg  exit 1
278d1c293acSmrgfi
279d1c293acSmrgfi
280d1c293acSmrgfi
281d1c293acSmrgSHELL=${CONFIG_SHELL-/bin/sh}
282d1c293acSmrgexport SHELL
283d1c293acSmrg# Unset more variables known to interfere with behavior of common tools.
284d1c293acSmrgCLICOLOR_FORCE= GREP_OPTIONS=
285d1c293acSmrgunset CLICOLOR_FORCE GREP_OPTIONS
286d1c293acSmrg
287d1c293acSmrg## --------------------- ##
288d1c293acSmrg## M4sh Shell Functions. ##
289d1c293acSmrg## --------------------- ##
290d1c293acSmrg# as_fn_unset VAR
291d1c293acSmrg# ---------------
292d1c293acSmrg# Portably unset VAR.
293d1c293acSmrgas_fn_unset ()
294d1c293acSmrg{
295d1c293acSmrg  { eval $1=; unset $1;}
296d1c293acSmrg}
297d1c293acSmrgas_unset=as_fn_unset
298d1c293acSmrg
29994c9ab7bSmrg
300d1c293acSmrg# as_fn_set_status STATUS
301d1c293acSmrg# -----------------------
302d1c293acSmrg# Set $? to STATUS, without forking.
303d1c293acSmrgas_fn_set_status ()
304d1c293acSmrg{
305d1c293acSmrg  return $1
306d1c293acSmrg} # as_fn_set_status
3078440cca4Smrg
308d1c293acSmrg# as_fn_exit STATUS
309d1c293acSmrg# -----------------
310d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311d1c293acSmrgas_fn_exit ()
312d1c293acSmrg{
313d1c293acSmrg  set +e
314d1c293acSmrg  as_fn_set_status $1
315d1c293acSmrg  exit $1
316d1c293acSmrg} # as_fn_exit
31794c9ab7bSmrg# as_fn_nop
31894c9ab7bSmrg# ---------
31994c9ab7bSmrg# Do nothing but, unlike ":", preserve the value of $?.
32094c9ab7bSmrgas_fn_nop ()
32194c9ab7bSmrg{
32294c9ab7bSmrg  return $?
32394c9ab7bSmrg}
32494c9ab7bSmrgas_nop=as_fn_nop
325d1c293acSmrg
326d1c293acSmrg# as_fn_mkdir_p
327d1c293acSmrg# -------------
328d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary.
329d1c293acSmrgas_fn_mkdir_p ()
330d1c293acSmrg{
331d1c293acSmrg
332d1c293acSmrg  case $as_dir in #(
333d1c293acSmrg  -*) as_dir=./$as_dir;;
334d1c293acSmrg  esac
335d1c293acSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
336d1c293acSmrg    as_dirs=
337d1c293acSmrg    while :; do
338d1c293acSmrg      case $as_dir in #(
33994c9ab7bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340d1c293acSmrg      *) as_qdir=$as_dir;;
341d1c293acSmrg      esac
342d1c293acSmrg      as_dirs="'$as_qdir' $as_dirs"
343d1c293acSmrg      as_dir=`$as_dirname -- "$as_dir" ||
344d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345d1c293acSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
346d1c293acSmrg	 X"$as_dir" : 'X\(//\)$' \| \
347d1c293acSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34894c9ab7bSmrgprintf "%s\n" X"$as_dir" |
349d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350d1c293acSmrg	    s//\1/
351d1c293acSmrg	    q
352d1c293acSmrg	  }
353d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
354d1c293acSmrg	    s//\1/
355d1c293acSmrg	    q
356d1c293acSmrg	  }
357d1c293acSmrg	  /^X\(\/\/\)$/{
358d1c293acSmrg	    s//\1/
359d1c293acSmrg	    q
360d1c293acSmrg	  }
361d1c293acSmrg	  /^X\(\/\).*/{
362d1c293acSmrg	    s//\1/
363d1c293acSmrg	    q
364d1c293acSmrg	  }
365d1c293acSmrg	  s/.*/./; q'`
366d1c293acSmrg      test -d "$as_dir" && break
367d1c293acSmrg    done
368d1c293acSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
369d1c293acSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370d1c293acSmrg
371d1c293acSmrg
372d1c293acSmrg} # as_fn_mkdir_p
37304449c54Smrg
37404449c54Smrg# as_fn_executable_p FILE
37504449c54Smrg# -----------------------
37604449c54Smrg# Test if FILE is an executable regular file.
37704449c54Smrgas_fn_executable_p ()
37804449c54Smrg{
37904449c54Smrg  test -f "$1" && test -x "$1"
38004449c54Smrg} # as_fn_executable_p
381d1c293acSmrg# as_fn_append VAR VALUE
382d1c293acSmrg# ----------------------
383d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
384d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over
385d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive
386d1c293acSmrg# implementations.
38794c9ab7bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
38894c9ab7bSmrgthen :
389d1c293acSmrg  eval 'as_fn_append ()
390d1c293acSmrg  {
391d1c293acSmrg    eval $1+=\$2
392d1c293acSmrg  }'
39394c9ab7bSmrgelse $as_nop
394d1c293acSmrg  as_fn_append ()
395d1c293acSmrg  {
396d1c293acSmrg    eval $1=\$$1\$2
397d1c293acSmrg  }
398d1c293acSmrgfi # as_fn_append
399d1c293acSmrg
400d1c293acSmrg# as_fn_arith ARG...
401d1c293acSmrg# ------------------
402d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
403d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
404d1c293acSmrg# must be portable across $(()) and expr.
40594c9ab7bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
40694c9ab7bSmrgthen :
407d1c293acSmrg  eval 'as_fn_arith ()
408d1c293acSmrg  {
409d1c293acSmrg    as_val=$(( $* ))
410d1c293acSmrg  }'
41194c9ab7bSmrgelse $as_nop
412d1c293acSmrg  as_fn_arith ()
413d1c293acSmrg  {
414d1c293acSmrg    as_val=`expr "$@" || test $? -eq 1`
415d1c293acSmrg  }
416d1c293acSmrgfi # as_fn_arith
417d1c293acSmrg
41894c9ab7bSmrg# as_fn_nop
41994c9ab7bSmrg# ---------
42094c9ab7bSmrg# Do nothing but, unlike ":", preserve the value of $?.
42194c9ab7bSmrgas_fn_nop ()
42294c9ab7bSmrg{
42394c9ab7bSmrg  return $?
42494c9ab7bSmrg}
42594c9ab7bSmrgas_nop=as_fn_nop
426d1c293acSmrg
427d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
428d1c293acSmrg# ----------------------------------------
429d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431d1c293acSmrg# script with STATUS, using 1 if that was 0.
432d1c293acSmrgas_fn_error ()
433d1c293acSmrg{
434d1c293acSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
435d1c293acSmrg  if test "$4"; then
436d1c293acSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
43794c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438d1c293acSmrg  fi
43994c9ab7bSmrg  printf "%s\n" "$as_me: error: $2" >&2
440d1c293acSmrg  as_fn_exit $as_status
441d1c293acSmrg} # as_fn_error
442d1c293acSmrg
443d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444d1c293acSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4458440cca4Smrg  as_expr=expr
4468440cca4Smrgelse
4478440cca4Smrg  as_expr=false
4488440cca4Smrgfi
4498440cca4Smrg
450d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4518440cca4Smrg  as_basename=basename
4528440cca4Smrgelse
4538440cca4Smrg  as_basename=false
4548440cca4Smrgfi
4558440cca4Smrg
456d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457d1c293acSmrg  as_dirname=dirname
458d1c293acSmrgelse
459d1c293acSmrg  as_dirname=false
460d1c293acSmrgfi
4618440cca4Smrg
462d1c293acSmrgas_me=`$as_basename -- "$0" ||
4638440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4648440cca4Smrg	 X"$0" : 'X\(//\)$' \| \
465d1c293acSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46694c9ab7bSmrgprintf "%s\n" X/"$0" |
467d1c293acSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468d1c293acSmrg	    s//\1/
469d1c293acSmrg	    q
470d1c293acSmrg	  }
471d1c293acSmrg	  /^X\/\(\/\/\)$/{
472d1c293acSmrg	    s//\1/
473d1c293acSmrg	    q
474d1c293acSmrg	  }
475d1c293acSmrg	  /^X\/\(\/\).*/{
476d1c293acSmrg	    s//\1/
477d1c293acSmrg	    q
478d1c293acSmrg	  }
479d1c293acSmrg	  s/.*/./; q'`
4808440cca4Smrg
4818440cca4Smrg# Avoid depending upon Character Ranges.
4828440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
4838440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4848440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
4858440cca4Smrgas_cr_digits='0123456789'
4868440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
4878440cca4Smrg
4888440cca4Smrg
489d1c293acSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490d1c293acSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491d1c293acSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492d1c293acSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493d1c293acSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494d1c293acSmrg  sed -n '
495d1c293acSmrg    p
496d1c293acSmrg    /[$]LINENO/=
497d1c293acSmrg  ' <$as_myself |
4988440cca4Smrg    sed '
499d1c293acSmrg      s/[$]LINENO.*/&-/
500d1c293acSmrg      t lineno
501d1c293acSmrg      b
502d1c293acSmrg      :lineno
5038440cca4Smrg      N
504d1c293acSmrg      :loop
505d1c293acSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5068440cca4Smrg      t loop
507d1c293acSmrg      s/-\n.*//
5088440cca4Smrg    ' >$as_me.lineno &&
509d1c293acSmrg  chmod +x "$as_me.lineno" ||
51094c9ab7bSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
5118440cca4Smrg
51204449c54Smrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
51304449c54Smrg  # already done that, so ensure we don't try to do so again and fall
51404449c54Smrg  # in an infinite loop.  This has already happened in practice.
51504449c54Smrg  _as_can_reexec=no; export _as_can_reexec
5168440cca4Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
5178440cca4Smrg  # (the dirname of $[0] is not the place where we might find the
518d1c293acSmrg  # original and so on.  Autoconf is especially sensitive to this).
519d1c293acSmrg  . "./$as_me.lineno"
5208440cca4Smrg  # Exit status is that of the last command.
5218440cca4Smrg  exit
5228440cca4Smrg}
5238440cca4Smrg
52494c9ab7bSmrg
52594c9ab7bSmrg# Determine whether it's possible to make 'echo' print without a newline.
52694c9ab7bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
52794c9ab7bSmrg# for compatibility with existing Makefiles.
528d1c293acSmrgECHO_C= ECHO_N= ECHO_T=
529d1c293acSmrgcase `echo -n x` in #(((((
530d1c293acSmrg-n*)
531d1c293acSmrg  case `echo 'xy\c'` in
532d1c293acSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533d1c293acSmrg  xy)  ECHO_C='\c';;
534d1c293acSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535d1c293acSmrg       ECHO_T='	';;
536d1c293acSmrg  esac;;
537d1c293acSmrg*)
538d1c293acSmrg  ECHO_N='-n';;
5398440cca4Smrgesac
5408440cca4Smrg
54194c9ab7bSmrg# For backward compatibility with old third-party macros, we provide
54294c9ab7bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
54394c9ab7bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
54494c9ab7bSmrgas_echo='printf %s\n'
54594c9ab7bSmrgas_echo_n='printf %s'
54694c9ab7bSmrg
54794c9ab7bSmrg
548d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file
549d1c293acSmrgif test -d conf$$.dir; then
550d1c293acSmrg  rm -f conf$$.dir/conf$$.file
5518440cca4Smrgelse
552d1c293acSmrg  rm -f conf$$.dir
553d1c293acSmrg  mkdir conf$$.dir 2>/dev/null
5548440cca4Smrgfi
555d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then
556d1c293acSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
5578440cca4Smrg    as_ln_s='ln -s'
558d1c293acSmrg    # ... but there are two gotchas:
559d1c293acSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560d1c293acSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56104449c54Smrg    # In both cases, we have to default to `cp -pR'.
562d1c293acSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56304449c54Smrg      as_ln_s='cp -pR'
564d1c293acSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
565d1c293acSmrg    as_ln_s=ln
566d1c293acSmrg  else
56704449c54Smrg    as_ln_s='cp -pR'
5688440cca4Smrg  fi
5698440cca4Smrgelse
57004449c54Smrg  as_ln_s='cp -pR'
5718440cca4Smrgfi
572d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573d1c293acSmrgrmdir conf$$.dir 2>/dev/null
5748440cca4Smrg
5758440cca4Smrgif mkdir -p . 2>/dev/null; then
576d1c293acSmrg  as_mkdir_p='mkdir -p "$as_dir"'
5778440cca4Smrgelse
5788440cca4Smrg  test -d ./-p && rmdir ./-p
5798440cca4Smrg  as_mkdir_p=false
5808440cca4Smrgfi
5818440cca4Smrg
58204449c54Smrgas_test_x='test -x'
58304449c54Smrgas_executable_p=as_fn_executable_p
5848440cca4Smrg
5858440cca4Smrg# Sed expression to map a string onto a valid CPP name.
5868440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5878440cca4Smrg
5888440cca4Smrg# Sed expression to map a string onto a valid variable name.
5898440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5908440cca4Smrg
5918440cca4Smrg
592d1c293acSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
593d1c293acSmrgexec 6>&1
5948440cca4Smrg
5958440cca4Smrg# Name of the host.
596d1c293acSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
5978440cca4Smrg# so uname gets run too.
5988440cca4Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
5998440cca4Smrg
6008440cca4Smrg#
6018440cca4Smrg# Initializations.
6028440cca4Smrg#
6038440cca4Smrgac_default_prefix=/usr/local
604d1c293acSmrgac_clean_files=
6058440cca4Smrgac_config_libobj_dir=.
606d1c293acSmrgLIBOBJS=
6078440cca4Smrgcross_compiling=no
6088440cca4Smrgsubdirs=
6098440cca4SmrgMFLAGS=
6108440cca4SmrgMAKEFLAGS=
6118440cca4Smrg
6128440cca4Smrg# Identity of this package.
6138440cca4SmrgPACKAGE_NAME='xstdcmap'
6148440cca4SmrgPACKAGE_TARNAME='xstdcmap'
61594c9ab7bSmrgPACKAGE_VERSION='1.0.5'
61694c9ab7bSmrgPACKAGE_STRING='xstdcmap 1.0.5'
61794c9ab7bSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xstdcmap/-/issues'
618d1c293acSmrgPACKAGE_URL=''
6198440cca4Smrg
62020915927Smrgac_unique_file="Makefile.am"
621d1c293acSmrg# Factoring default headers for most tests.
622d1c293acSmrgac_includes_default="\
62394c9ab7bSmrg#include <stddef.h>
62494c9ab7bSmrg#ifdef HAVE_STDIO_H
62594c9ab7bSmrg# include <stdio.h>
626d1c293acSmrg#endif
62794c9ab7bSmrg#ifdef HAVE_STDLIB_H
628d1c293acSmrg# include <stdlib.h>
629d1c293acSmrg#endif
630d1c293acSmrg#ifdef HAVE_STRING_H
631d1c293acSmrg# include <string.h>
632d1c293acSmrg#endif
633d1c293acSmrg#ifdef HAVE_INTTYPES_H
634d1c293acSmrg# include <inttypes.h>
635d1c293acSmrg#endif
636d1c293acSmrg#ifdef HAVE_STDINT_H
637d1c293acSmrg# include <stdint.h>
638d1c293acSmrg#endif
63994c9ab7bSmrg#ifdef HAVE_STRINGS_H
64094c9ab7bSmrg# include <strings.h>
64194c9ab7bSmrg#endif
64294c9ab7bSmrg#ifdef HAVE_SYS_TYPES_H
64394c9ab7bSmrg# include <sys/types.h>
64494c9ab7bSmrg#endif
64594c9ab7bSmrg#ifdef HAVE_SYS_STAT_H
64694c9ab7bSmrg# include <sys/stat.h>
64794c9ab7bSmrg#endif
648d1c293acSmrg#ifdef HAVE_UNISTD_H
649d1c293acSmrg# include <unistd.h>
650d1c293acSmrg#endif"
651d1c293acSmrg
65294c9ab7bSmrgac_header_c_list=
653d1c293acSmrgac_subst_vars='am__EXEEXT_FALSE
654d1c293acSmrgam__EXEEXT_TRUE
655d1c293acSmrgLTLIBOBJS
656d1c293acSmrgLIBOBJS
657d1c293acSmrgXSTDCMAP_LIBS
658d1c293acSmrgXSTDCMAP_CFLAGS
659d1c293acSmrgMAN_SUBSTS
660d1c293acSmrgXORG_MAN_PAGE
661d1c293acSmrgADMIN_MAN_DIR
662d1c293acSmrgDRIVER_MAN_DIR
663d1c293acSmrgMISC_MAN_DIR
664d1c293acSmrgFILE_MAN_DIR
665d1c293acSmrgLIB_MAN_DIR
666d1c293acSmrgAPP_MAN_DIR
667d1c293acSmrgADMIN_MAN_SUFFIX
668d1c293acSmrgDRIVER_MAN_SUFFIX
669d1c293acSmrgMISC_MAN_SUFFIX
670d1c293acSmrgFILE_MAN_SUFFIX
671d1c293acSmrgLIB_MAN_SUFFIX
672d1c293acSmrgAPP_MAN_SUFFIX
673d1c293acSmrgSED
674d1c293acSmrghost_os
675d1c293acSmrghost_vendor
676d1c293acSmrghost_cpu
677d1c293acSmrghost
678d1c293acSmrgbuild_os
679d1c293acSmrgbuild_vendor
680d1c293acSmrgbuild_cpu
681d1c293acSmrgbuild
682d1c293acSmrgINSTALL_CMD
68304449c54SmrgPKG_CONFIG_LIBDIR
68404449c54SmrgPKG_CONFIG_PATH
685d1c293acSmrgPKG_CONFIG
686d1c293acSmrgCHANGELOG_CMD
68720915927SmrgSTRICT_CFLAGS
688d1c293acSmrgCWARNFLAGS
68920915927SmrgBASE_CFLAGS
690d1c293acSmrgam__fastdepCC_FALSE
691d1c293acSmrgam__fastdepCC_TRUE
692d1c293acSmrgCCDEPMODE
69320915927Smrgam__nodep
694d1c293acSmrgAMDEPBACKSLASH
695d1c293acSmrgAMDEP_FALSE
696d1c293acSmrgAMDEP_TRUE
697d1c293acSmrgam__include
698d1c293acSmrgDEPDIR
699d1c293acSmrgOBJEXT
700d1c293acSmrgEXEEXT
701d1c293acSmrgac_ct_CC
702d1c293acSmrgCPPFLAGS
703d1c293acSmrgLDFLAGS
704d1c293acSmrgCFLAGS
705d1c293acSmrgCC
70604449c54SmrgAM_BACKSLASH
70704449c54SmrgAM_DEFAULT_VERBOSITY
70804449c54SmrgAM_DEFAULT_V
70904449c54SmrgAM_V
71094c9ab7bSmrgCSCOPE
71194c9ab7bSmrgETAGS
71294c9ab7bSmrgCTAGS
713d1c293acSmrgam__untar
714d1c293acSmrgam__tar
715d1c293acSmrgAMTAR
716d1c293acSmrgam__leading_dot
717d1c293acSmrgSET_MAKE
718d1c293acSmrgAWK
719d1c293acSmrgmkdir_p
720d1c293acSmrgMKDIR_P
721d1c293acSmrgINSTALL_STRIP_PROGRAM
722d1c293acSmrgSTRIP
723d1c293acSmrginstall_sh
724d1c293acSmrgMAKEINFO
725d1c293acSmrgAUTOHEADER
726d1c293acSmrgAUTOMAKE
727d1c293acSmrgAUTOCONF
728d1c293acSmrgACLOCAL
729d1c293acSmrgVERSION
730d1c293acSmrgPACKAGE
731d1c293acSmrgCYGPATH_W
732d1c293acSmrgam__isrc
733d1c293acSmrgINSTALL_DATA
734d1c293acSmrgINSTALL_SCRIPT
735d1c293acSmrgINSTALL_PROGRAM
736d1c293acSmrgtarget_alias
737d1c293acSmrghost_alias
738d1c293acSmrgbuild_alias
739d1c293acSmrgLIBS
740d1c293acSmrgECHO_T
741d1c293acSmrgECHO_N
742d1c293acSmrgECHO_C
743d1c293acSmrgDEFS
744d1c293acSmrgmandir
745d1c293acSmrglocaledir
746d1c293acSmrglibdir
747d1c293acSmrgpsdir
748d1c293acSmrgpdfdir
749d1c293acSmrgdvidir
750d1c293acSmrghtmldir
751d1c293acSmrginfodir
752d1c293acSmrgdocdir
753d1c293acSmrgoldincludedir
754d1c293acSmrgincludedir
75594c9ab7bSmrgrunstatedir
756d1c293acSmrglocalstatedir
757d1c293acSmrgsharedstatedir
758d1c293acSmrgsysconfdir
759d1c293acSmrgdatadir
760d1c293acSmrgdatarootdir
761d1c293acSmrglibexecdir
762d1c293acSmrgsbindir
763d1c293acSmrgbindir
764d1c293acSmrgprogram_transform_name
765d1c293acSmrgprefix
766d1c293acSmrgexec_prefix
767d1c293acSmrgPACKAGE_URL
768d1c293acSmrgPACKAGE_BUGREPORT
769d1c293acSmrgPACKAGE_STRING
770d1c293acSmrgPACKAGE_VERSION
771d1c293acSmrgPACKAGE_TARNAME
772d1c293acSmrgPACKAGE_NAME
773d1c293acSmrgPATH_SEPARATOR
77494c9ab7bSmrgSHELL
77594c9ab7bSmrgam__quote'
7768440cca4Smrgac_subst_files=''
777d1c293acSmrgac_user_opts='
778d1c293acSmrgenable_option_checking
77904449c54Smrgenable_silent_rules
780d1c293acSmrgenable_dependency_tracking
78120915927Smrgenable_selective_werror
782d1c293acSmrgenable_strict_compilation
783d1c293acSmrg'
784d1c293acSmrg      ac_precious_vars='build_alias
785d1c293acSmrghost_alias
786d1c293acSmrgtarget_alias
787d1c293acSmrgCC
788d1c293acSmrgCFLAGS
789d1c293acSmrgLDFLAGS
790d1c293acSmrgLIBS
791d1c293acSmrgCPPFLAGS
792d1c293acSmrgPKG_CONFIG
79304449c54SmrgPKG_CONFIG_PATH
79404449c54SmrgPKG_CONFIG_LIBDIR
795d1c293acSmrgXSTDCMAP_CFLAGS
796d1c293acSmrgXSTDCMAP_LIBS'
797d1c293acSmrg
7988440cca4Smrg
7998440cca4Smrg# Initialize some variables set by options.
8008440cca4Smrgac_init_help=
8018440cca4Smrgac_init_version=false
802d1c293acSmrgac_unrecognized_opts=
803d1c293acSmrgac_unrecognized_sep=
8048440cca4Smrg# The variables have the same names as the options, with
8058440cca4Smrg# dashes changed to underlines.
8068440cca4Smrgcache_file=/dev/null
8078440cca4Smrgexec_prefix=NONE
8088440cca4Smrgno_create=
8098440cca4Smrgno_recursion=
8108440cca4Smrgprefix=NONE
8118440cca4Smrgprogram_prefix=NONE
8128440cca4Smrgprogram_suffix=NONE
8138440cca4Smrgprogram_transform_name=s,x,x,
8148440cca4Smrgsilent=
8158440cca4Smrgsite=
8168440cca4Smrgsrcdir=
8178440cca4Smrgverbose=
8188440cca4Smrgx_includes=NONE
8198440cca4Smrgx_libraries=NONE
8208440cca4Smrg
8218440cca4Smrg# Installation directory options.
8228440cca4Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
8238440cca4Smrg# and all the variables that are supposed to be based on exec_prefix
8248440cca4Smrg# by default will actually change.
8258440cca4Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
826d1c293acSmrg# (The list follows the same order as the GNU Coding Standards.)
8278440cca4Smrgbindir='${exec_prefix}/bin'
8288440cca4Smrgsbindir='${exec_prefix}/sbin'
8298440cca4Smrglibexecdir='${exec_prefix}/libexec'
830d1c293acSmrgdatarootdir='${prefix}/share'
831d1c293acSmrgdatadir='${datarootdir}'
8328440cca4Smrgsysconfdir='${prefix}/etc'
8338440cca4Smrgsharedstatedir='${prefix}/com'
8348440cca4Smrglocalstatedir='${prefix}/var'
83594c9ab7bSmrgrunstatedir='${localstatedir}/run'
8368440cca4Smrgincludedir='${prefix}/include'
8378440cca4Smrgoldincludedir='/usr/include'
838d1c293acSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839d1c293acSmrginfodir='${datarootdir}/info'
840d1c293acSmrghtmldir='${docdir}'
841d1c293acSmrgdvidir='${docdir}'
842d1c293acSmrgpdfdir='${docdir}'
843d1c293acSmrgpsdir='${docdir}'
844d1c293acSmrglibdir='${exec_prefix}/lib'
845d1c293acSmrglocaledir='${datarootdir}/locale'
846d1c293acSmrgmandir='${datarootdir}/man'
8478440cca4Smrg
8488440cca4Smrgac_prev=
849d1c293acSmrgac_dashdash=
8508440cca4Smrgfor ac_option
8518440cca4Smrgdo
8528440cca4Smrg  # If the previous option needs an argument, assign it.
8538440cca4Smrg  if test -n "$ac_prev"; then
854d1c293acSmrg    eval $ac_prev=\$ac_option
8558440cca4Smrg    ac_prev=
8568440cca4Smrg    continue
8578440cca4Smrg  fi
8588440cca4Smrg
859d1c293acSmrg  case $ac_option in
860d1c293acSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861d1c293acSmrg  *=)   ac_optarg= ;;
862d1c293acSmrg  *)    ac_optarg=yes ;;
863d1c293acSmrg  esac
8648440cca4Smrg
865d1c293acSmrg  case $ac_dashdash$ac_option in
866d1c293acSmrg  --)
867d1c293acSmrg    ac_dashdash=yes ;;
8688440cca4Smrg
8698440cca4Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
8708440cca4Smrg    ac_prev=bindir ;;
8718440cca4Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8728440cca4Smrg    bindir=$ac_optarg ;;
8738440cca4Smrg
8748440cca4Smrg  -build | --build | --buil | --bui | --bu)
8758440cca4Smrg    ac_prev=build_alias ;;
8768440cca4Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8778440cca4Smrg    build_alias=$ac_optarg ;;
8788440cca4Smrg
8798440cca4Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
8808440cca4Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8818440cca4Smrg    ac_prev=cache_file ;;
8828440cca4Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8838440cca4Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8848440cca4Smrg    cache_file=$ac_optarg ;;
8858440cca4Smrg
8868440cca4Smrg  --config-cache | -C)
8878440cca4Smrg    cache_file=config.cache ;;
8888440cca4Smrg
889d1c293acSmrg  -datadir | --datadir | --datadi | --datad)
8908440cca4Smrg    ac_prev=datadir ;;
891d1c293acSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
8928440cca4Smrg    datadir=$ac_optarg ;;
8938440cca4Smrg
894d1c293acSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895d1c293acSmrg  | --dataroo | --dataro | --datar)
896d1c293acSmrg    ac_prev=datarootdir ;;
897d1c293acSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898d1c293acSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899d1c293acSmrg    datarootdir=$ac_optarg ;;
900d1c293acSmrg
9018440cca4Smrg  -disable-* | --disable-*)
902d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
9038440cca4Smrg    # Reject names that are not valid shell variable names.
904d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
90594c9ab7bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
906d1c293acSmrg    ac_useropt_orig=$ac_useropt
90794c9ab7bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908d1c293acSmrg    case $ac_user_opts in
909d1c293acSmrg      *"
910d1c293acSmrg"enable_$ac_useropt"
911d1c293acSmrg"*) ;;
912d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913d1c293acSmrg	 ac_unrecognized_sep=', ';;
914d1c293acSmrg    esac
915d1c293acSmrg    eval enable_$ac_useropt=no ;;
916d1c293acSmrg
917d1c293acSmrg  -docdir | --docdir | --docdi | --doc | --do)
918d1c293acSmrg    ac_prev=docdir ;;
919d1c293acSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920d1c293acSmrg    docdir=$ac_optarg ;;
921d1c293acSmrg
922d1c293acSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923d1c293acSmrg    ac_prev=dvidir ;;
924d1c293acSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925d1c293acSmrg    dvidir=$ac_optarg ;;
9268440cca4Smrg
9278440cca4Smrg  -enable-* | --enable-*)
928d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
9298440cca4Smrg    # Reject names that are not valid shell variable names.
930d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
93194c9ab7bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
932d1c293acSmrg    ac_useropt_orig=$ac_useropt
93394c9ab7bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934d1c293acSmrg    case $ac_user_opts in
935d1c293acSmrg      *"
936d1c293acSmrg"enable_$ac_useropt"
937d1c293acSmrg"*) ;;
938d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939d1c293acSmrg	 ac_unrecognized_sep=', ';;
9408440cca4Smrg    esac
941d1c293acSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
9428440cca4Smrg
9438440cca4Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
9448440cca4Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
9458440cca4Smrg  | --exec | --exe | --ex)
9468440cca4Smrg    ac_prev=exec_prefix ;;
9478440cca4Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
9488440cca4Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
9498440cca4Smrg  | --exec=* | --exe=* | --ex=*)
9508440cca4Smrg    exec_prefix=$ac_optarg ;;
9518440cca4Smrg
9528440cca4Smrg  -gas | --gas | --ga | --g)
9538440cca4Smrg    # Obsolete; use --with-gas.
9548440cca4Smrg    with_gas=yes ;;
9558440cca4Smrg
9568440cca4Smrg  -help | --help | --hel | --he | -h)
9578440cca4Smrg    ac_init_help=long ;;
9588440cca4Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
9598440cca4Smrg    ac_init_help=recursive ;;
9608440cca4Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
9618440cca4Smrg    ac_init_help=short ;;
9628440cca4Smrg
9638440cca4Smrg  -host | --host | --hos | --ho)
9648440cca4Smrg    ac_prev=host_alias ;;
9658440cca4Smrg  -host=* | --host=* | --hos=* | --ho=*)
9668440cca4Smrg    host_alias=$ac_optarg ;;
9678440cca4Smrg
968d1c293acSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969d1c293acSmrg    ac_prev=htmldir ;;
970d1c293acSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971d1c293acSmrg  | --ht=*)
972d1c293acSmrg    htmldir=$ac_optarg ;;
973d1c293acSmrg
9748440cca4Smrg  -includedir | --includedir | --includedi | --included | --include \
9758440cca4Smrg  | --includ | --inclu | --incl | --inc)
9768440cca4Smrg    ac_prev=includedir ;;
9778440cca4Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
9788440cca4Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
9798440cca4Smrg    includedir=$ac_optarg ;;
9808440cca4Smrg
9818440cca4Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
9828440cca4Smrg    ac_prev=infodir ;;
9838440cca4Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9848440cca4Smrg    infodir=$ac_optarg ;;
9858440cca4Smrg
9868440cca4Smrg  -libdir | --libdir | --libdi | --libd)
9878440cca4Smrg    ac_prev=libdir ;;
9888440cca4Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
9898440cca4Smrg    libdir=$ac_optarg ;;
9908440cca4Smrg
9918440cca4Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
9928440cca4Smrg  | --libexe | --libex | --libe)
9938440cca4Smrg    ac_prev=libexecdir ;;
9948440cca4Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
9958440cca4Smrg  | --libexe=* | --libex=* | --libe=*)
9968440cca4Smrg    libexecdir=$ac_optarg ;;
9978440cca4Smrg
998d1c293acSmrg  -localedir | --localedir | --localedi | --localed | --locale)
999d1c293acSmrg    ac_prev=localedir ;;
1000d1c293acSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001d1c293acSmrg    localedir=$ac_optarg ;;
1002d1c293acSmrg
10038440cca4Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004d1c293acSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
10058440cca4Smrg    ac_prev=localstatedir ;;
10068440cca4Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007d1c293acSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
10088440cca4Smrg    localstatedir=$ac_optarg ;;
10098440cca4Smrg
10108440cca4Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
10118440cca4Smrg    ac_prev=mandir ;;
10128440cca4Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
10138440cca4Smrg    mandir=$ac_optarg ;;
10148440cca4Smrg
10158440cca4Smrg  -nfp | --nfp | --nf)
10168440cca4Smrg    # Obsolete; use --without-fp.
10178440cca4Smrg    with_fp=no ;;
10188440cca4Smrg
10198440cca4Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
10208440cca4Smrg  | --no-cr | --no-c | -n)
10218440cca4Smrg    no_create=yes ;;
10228440cca4Smrg
10238440cca4Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
10248440cca4Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
10258440cca4Smrg    no_recursion=yes ;;
10268440cca4Smrg
10278440cca4Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
10288440cca4Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
10298440cca4Smrg  | --oldin | --oldi | --old | --ol | --o)
10308440cca4Smrg    ac_prev=oldincludedir ;;
10318440cca4Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
10328440cca4Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
10338440cca4Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
10348440cca4Smrg    oldincludedir=$ac_optarg ;;
10358440cca4Smrg
10368440cca4Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10378440cca4Smrg    ac_prev=prefix ;;
10388440cca4Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10398440cca4Smrg    prefix=$ac_optarg ;;
10408440cca4Smrg
10418440cca4Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
10428440cca4Smrg  | --program-pre | --program-pr | --program-p)
10438440cca4Smrg    ac_prev=program_prefix ;;
10448440cca4Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
10458440cca4Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
10468440cca4Smrg    program_prefix=$ac_optarg ;;
10478440cca4Smrg
10488440cca4Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
10498440cca4Smrg  | --program-suf | --program-su | --program-s)
10508440cca4Smrg    ac_prev=program_suffix ;;
10518440cca4Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
10528440cca4Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
10538440cca4Smrg    program_suffix=$ac_optarg ;;
10548440cca4Smrg
10558440cca4Smrg  -program-transform-name | --program-transform-name \
10568440cca4Smrg  | --program-transform-nam | --program-transform-na \
10578440cca4Smrg  | --program-transform-n | --program-transform- \
10588440cca4Smrg  | --program-transform | --program-transfor \
10598440cca4Smrg  | --program-transfo | --program-transf \
10608440cca4Smrg  | --program-trans | --program-tran \
10618440cca4Smrg  | --progr-tra | --program-tr | --program-t)
10628440cca4Smrg    ac_prev=program_transform_name ;;
10638440cca4Smrg  -program-transform-name=* | --program-transform-name=* \
10648440cca4Smrg  | --program-transform-nam=* | --program-transform-na=* \
10658440cca4Smrg  | --program-transform-n=* | --program-transform-=* \
10668440cca4Smrg  | --program-transform=* | --program-transfor=* \
10678440cca4Smrg  | --program-transfo=* | --program-transf=* \
10688440cca4Smrg  | --program-trans=* | --program-tran=* \
10698440cca4Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
10708440cca4Smrg    program_transform_name=$ac_optarg ;;
10718440cca4Smrg
1072d1c293acSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073d1c293acSmrg    ac_prev=pdfdir ;;
1074d1c293acSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075d1c293acSmrg    pdfdir=$ac_optarg ;;
1076d1c293acSmrg
1077d1c293acSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1078d1c293acSmrg    ac_prev=psdir ;;
1079d1c293acSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080d1c293acSmrg    psdir=$ac_optarg ;;
1081d1c293acSmrg
10828440cca4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10838440cca4Smrg  | -silent | --silent | --silen | --sile | --sil)
10848440cca4Smrg    silent=yes ;;
10858440cca4Smrg
108694c9ab7bSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
108794c9ab7bSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
108894c9ab7bSmrg  | --run | --ru | --r)
108994c9ab7bSmrg    ac_prev=runstatedir ;;
109094c9ab7bSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
109194c9ab7bSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
109294c9ab7bSmrg  | --run=* | --ru=* | --r=*)
109394c9ab7bSmrg    runstatedir=$ac_optarg ;;
109494c9ab7bSmrg
10958440cca4Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10968440cca4Smrg    ac_prev=sbindir ;;
10978440cca4Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
10988440cca4Smrg  | --sbi=* | --sb=*)
10998440cca4Smrg    sbindir=$ac_optarg ;;
11008440cca4Smrg
11018440cca4Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
11028440cca4Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11038440cca4Smrg  | --sharedst | --shareds | --shared | --share | --shar \
11048440cca4Smrg  | --sha | --sh)
11058440cca4Smrg    ac_prev=sharedstatedir ;;
11068440cca4Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11078440cca4Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11088440cca4Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11098440cca4Smrg  | --sha=* | --sh=*)
11108440cca4Smrg    sharedstatedir=$ac_optarg ;;
11118440cca4Smrg
11128440cca4Smrg  -site | --site | --sit)
11138440cca4Smrg    ac_prev=site ;;
11148440cca4Smrg  -site=* | --site=* | --sit=*)
11158440cca4Smrg    site=$ac_optarg ;;
11168440cca4Smrg
11178440cca4Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11188440cca4Smrg    ac_prev=srcdir ;;
11198440cca4Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11208440cca4Smrg    srcdir=$ac_optarg ;;
11218440cca4Smrg
11228440cca4Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11238440cca4Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
11248440cca4Smrg    ac_prev=sysconfdir ;;
11258440cca4Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11268440cca4Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11278440cca4Smrg    sysconfdir=$ac_optarg ;;
11288440cca4Smrg
11298440cca4Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
11308440cca4Smrg    ac_prev=target_alias ;;
11318440cca4Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11328440cca4Smrg    target_alias=$ac_optarg ;;
11338440cca4Smrg
11348440cca4Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
11358440cca4Smrg    verbose=yes ;;
11368440cca4Smrg
11378440cca4Smrg  -version | --version | --versio | --versi | --vers | -V)
11388440cca4Smrg    ac_init_version=: ;;
11398440cca4Smrg
11408440cca4Smrg  -with-* | --with-*)
1141d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11428440cca4Smrg    # Reject names that are not valid shell variable names.
1143d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
114494c9ab7bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1145d1c293acSmrg    ac_useropt_orig=$ac_useropt
114694c9ab7bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147d1c293acSmrg    case $ac_user_opts in
1148d1c293acSmrg      *"
1149d1c293acSmrg"with_$ac_useropt"
1150d1c293acSmrg"*) ;;
1151d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152d1c293acSmrg	 ac_unrecognized_sep=', ';;
11538440cca4Smrg    esac
1154d1c293acSmrg    eval with_$ac_useropt=\$ac_optarg ;;
11558440cca4Smrg
11568440cca4Smrg  -without-* | --without-*)
1157d1c293acSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11588440cca4Smrg    # Reject names that are not valid shell variable names.
1159d1c293acSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
116094c9ab7bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1161d1c293acSmrg    ac_useropt_orig=$ac_useropt
116294c9ab7bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163d1c293acSmrg    case $ac_user_opts in
1164d1c293acSmrg      *"
1165d1c293acSmrg"with_$ac_useropt"
1166d1c293acSmrg"*) ;;
1167d1c293acSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168d1c293acSmrg	 ac_unrecognized_sep=', ';;
1169d1c293acSmrg    esac
1170d1c293acSmrg    eval with_$ac_useropt=no ;;
11718440cca4Smrg
11728440cca4Smrg  --x)
11738440cca4Smrg    # Obsolete; use --with-x.
11748440cca4Smrg    with_x=yes ;;
11758440cca4Smrg
11768440cca4Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11778440cca4Smrg  | --x-incl | --x-inc | --x-in | --x-i)
11788440cca4Smrg    ac_prev=x_includes ;;
11798440cca4Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11808440cca4Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11818440cca4Smrg    x_includes=$ac_optarg ;;
11828440cca4Smrg
11838440cca4Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
11848440cca4Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11858440cca4Smrg    ac_prev=x_libraries ;;
11868440cca4Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11878440cca4Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11888440cca4Smrg    x_libraries=$ac_optarg ;;
11898440cca4Smrg
1190d1c293acSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191d1c293acSmrgTry \`$0 --help' for more information"
11928440cca4Smrg    ;;
11938440cca4Smrg
11948440cca4Smrg  *=*)
11958440cca4Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11968440cca4Smrg    # Reject names that are not valid shell variable names.
1197d1c293acSmrg    case $ac_envvar in #(
1198d1c293acSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1199d1c293acSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200d1c293acSmrg    esac
1201d1c293acSmrg    eval $ac_envvar=\$ac_optarg
12028440cca4Smrg    export $ac_envvar ;;
12038440cca4Smrg
12048440cca4Smrg  *)
12058440cca4Smrg    # FIXME: should be removed in autoconf 3.0.
120694c9ab7bSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
12078440cca4Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
120894c9ab7bSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209d1c293acSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12108440cca4Smrg    ;;
12118440cca4Smrg
12128440cca4Smrg  esac
12138440cca4Smrgdone
12148440cca4Smrg
12158440cca4Smrgif test -n "$ac_prev"; then
12168440cca4Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217d1c293acSmrg  as_fn_error $? "missing argument to $ac_option"
12188440cca4Smrgfi
12198440cca4Smrg
1220d1c293acSmrgif test -n "$ac_unrecognized_opts"; then
1221d1c293acSmrg  case $enable_option_checking in
1222d1c293acSmrg    no) ;;
1223d1c293acSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
122494c9ab7bSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
12258440cca4Smrg  esac
1226d1c293acSmrgfi
12278440cca4Smrg
1228d1c293acSmrg# Check all directory arguments for consistency.
1229d1c293acSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230d1c293acSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1231d1c293acSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
123294c9ab7bSmrg		libdir localedir mandir runstatedir
12338440cca4Smrgdo
1234d1c293acSmrg  eval ac_val=\$$ac_var
1235d1c293acSmrg  # Remove trailing slashes.
1236d1c293acSmrg  case $ac_val in
1237d1c293acSmrg    */ )
1238d1c293acSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239d1c293acSmrg      eval $ac_var=\$ac_val;;
1240d1c293acSmrg  esac
1241d1c293acSmrg  # Be sure to have absolute directory names.
12428440cca4Smrg  case $ac_val in
1243d1c293acSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1244d1c293acSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
12458440cca4Smrg  esac
1246d1c293acSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
12478440cca4Smrgdone
12488440cca4Smrg
12498440cca4Smrg# There might be people who depend on the old broken behavior: `$host'
12508440cca4Smrg# used to hold the argument of --host etc.
12518440cca4Smrg# FIXME: To remove some day.
12528440cca4Smrgbuild=$build_alias
12538440cca4Smrghost=$host_alias
12548440cca4Smrgtarget=$target_alias
12558440cca4Smrg
12568440cca4Smrg# FIXME: To remove some day.
12578440cca4Smrgif test "x$host_alias" != x; then
12588440cca4Smrg  if test "x$build_alias" = x; then
12598440cca4Smrg    cross_compiling=maybe
12608440cca4Smrg  elif test "x$build_alias" != "x$host_alias"; then
12618440cca4Smrg    cross_compiling=yes
12628440cca4Smrg  fi
12638440cca4Smrgfi
12648440cca4Smrg
12658440cca4Smrgac_tool_prefix=
12668440cca4Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
12678440cca4Smrg
12688440cca4Smrgtest "$silent" = yes && exec 6>/dev/null
12698440cca4Smrg
12708440cca4Smrg
1271d1c293acSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1272d1c293acSmrgac_ls_di=`ls -di .` &&
1273d1c293acSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274d1c293acSmrg  as_fn_error $? "working directory cannot be determined"
1275d1c293acSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276d1c293acSmrg  as_fn_error $? "pwd does not report name of working directory"
1277d1c293acSmrg
1278d1c293acSmrg
12798440cca4Smrg# Find the source files, if location was not specified.
12808440cca4Smrgif test -z "$srcdir"; then
12818440cca4Smrg  ac_srcdir_defaulted=yes
1282d1c293acSmrg  # Try the directory containing this script, then the parent directory.
1283d1c293acSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1284d1c293acSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285d1c293acSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1286d1c293acSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1287d1c293acSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
128894c9ab7bSmrgprintf "%s\n" X"$as_myself" |
1289d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290d1c293acSmrg	    s//\1/
1291d1c293acSmrg	    q
1292d1c293acSmrg	  }
1293d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
1294d1c293acSmrg	    s//\1/
1295d1c293acSmrg	    q
1296d1c293acSmrg	  }
1297d1c293acSmrg	  /^X\(\/\/\)$/{
1298d1c293acSmrg	    s//\1/
1299d1c293acSmrg	    q
1300d1c293acSmrg	  }
1301d1c293acSmrg	  /^X\(\/\).*/{
1302d1c293acSmrg	    s//\1/
1303d1c293acSmrg	    q
1304d1c293acSmrg	  }
1305d1c293acSmrg	  s/.*/./; q'`
13068440cca4Smrg  srcdir=$ac_confdir
1307d1c293acSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
13088440cca4Smrg    srcdir=..
13098440cca4Smrg  fi
13108440cca4Smrgelse
13118440cca4Smrg  ac_srcdir_defaulted=no
13128440cca4Smrgfi
1313d1c293acSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1314d1c293acSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315d1c293acSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316d1c293acSmrgfi
1317d1c293acSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318d1c293acSmrgac_abs_confdir=`(
1319d1c293acSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320d1c293acSmrg	pwd)`
1321d1c293acSmrg# When building in place, set srcdir=.
1322d1c293acSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1323d1c293acSmrg  srcdir=.
1324d1c293acSmrgfi
1325d1c293acSmrg# Remove unnecessary trailing slashes from srcdir.
1326d1c293acSmrg# Double slashes in file names in object file debugging info
1327d1c293acSmrg# mess up M-x gdb in Emacs.
1328d1c293acSmrgcase $srcdir in
1329d1c293acSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330d1c293acSmrgesac
1331d1c293acSmrgfor ac_var in $ac_precious_vars; do
1332d1c293acSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333d1c293acSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1334d1c293acSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335d1c293acSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336d1c293acSmrgdone
13378440cca4Smrg
13388440cca4Smrg#
13398440cca4Smrg# Report the --help message.
13408440cca4Smrg#
13418440cca4Smrgif test "$ac_init_help" = "long"; then
13428440cca4Smrg  # Omit some internal or obsolete options to make the list less imposing.
13438440cca4Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
13448440cca4Smrg  cat <<_ACEOF
134594c9ab7bSmrg\`configure' configures xstdcmap 1.0.5 to adapt to many kinds of systems.
13468440cca4Smrg
13478440cca4SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
13488440cca4Smrg
13498440cca4SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
13508440cca4SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
13518440cca4Smrg
13528440cca4SmrgDefaults for the options are specified in brackets.
13538440cca4Smrg
13548440cca4SmrgConfiguration:
13558440cca4Smrg  -h, --help              display this help and exit
13568440cca4Smrg      --help=short        display options specific to this package
13578440cca4Smrg      --help=recursive    display the short help of all the included packages
13588440cca4Smrg  -V, --version           display version information and exit
1359d1c293acSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
13608440cca4Smrg      --cache-file=FILE   cache test results in FILE [disabled]
13618440cca4Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
13628440cca4Smrg  -n, --no-create         do not create output files
13638440cca4Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
13648440cca4Smrg
13658440cca4SmrgInstallation directories:
13668440cca4Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1367d1c293acSmrg                          [$ac_default_prefix]
13688440cca4Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1369d1c293acSmrg                          [PREFIX]
13708440cca4Smrg
13718440cca4SmrgBy default, \`make install' will install all the files in
13728440cca4Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
13738440cca4Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
13748440cca4Smrgfor instance \`--prefix=\$HOME'.
13758440cca4Smrg
13768440cca4SmrgFor better control, use the options below.
13778440cca4Smrg
13788440cca4SmrgFine tuning of the installation directories:
1379d1c293acSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1380d1c293acSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1381d1c293acSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1382d1c293acSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1383d1c293acSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1384d1c293acSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
138594c9ab7bSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1386d1c293acSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1387d1c293acSmrg  --includedir=DIR        C header files [PREFIX/include]
1388d1c293acSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389d1c293acSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390d1c293acSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391d1c293acSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392d1c293acSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393d1c293acSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394d1c293acSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xstdcmap]
1395d1c293acSmrg  --htmldir=DIR           html documentation [DOCDIR]
1396d1c293acSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1397d1c293acSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1398d1c293acSmrg  --psdir=DIR             ps documentation [DOCDIR]
13998440cca4Smrg_ACEOF
14008440cca4Smrg
14018440cca4Smrg  cat <<\_ACEOF
14028440cca4Smrg
14038440cca4SmrgProgram names:
14048440cca4Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
14058440cca4Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
14068440cca4Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
14078440cca4Smrg
14088440cca4SmrgSystem types:
14098440cca4Smrg  --build=BUILD     configure for building on BUILD [guessed]
14108440cca4Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
14118440cca4Smrg_ACEOF
14128440cca4Smrgfi
14138440cca4Smrg
14148440cca4Smrgif test -n "$ac_init_help"; then
14158440cca4Smrg  case $ac_init_help in
141694c9ab7bSmrg     short | recursive ) echo "Configuration of xstdcmap 1.0.5:";;
14178440cca4Smrg   esac
14188440cca4Smrg  cat <<\_ACEOF
14198440cca4Smrg
14208440cca4SmrgOptional Features:
1421d1c293acSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
14228440cca4Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
14238440cca4Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
142404449c54Smrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
142504449c54Smrg  --disable-silent-rules  verbose build output (undo: "make V=0")
142604449c54Smrg  --enable-dependency-tracking
142704449c54Smrg                          do not reject slow dependency extractors
142804449c54Smrg  --disable-dependency-tracking
142904449c54Smrg                          speeds up one-time build
143020915927Smrg  --disable-selective-werror
143120915927Smrg                          Turn off selective compiler errors. (default:
143220915927Smrg                          enabled)
1433d1c293acSmrg  --enable-strict-compilation
1434d1c293acSmrg                          Enable all warnings from compiler and make them
1435d1c293acSmrg                          errors (default: disabled)
14368440cca4Smrg
14378440cca4SmrgSome influential environment variables:
14388440cca4Smrg  CC          C compiler command
14398440cca4Smrg  CFLAGS      C compiler flags
14408440cca4Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
14418440cca4Smrg              nonstandard directory <lib dir>
1442d1c293acSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1443d1c293acSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444d1c293acSmrg              you have headers in a nonstandard directory <include dir>
14458440cca4Smrg  PKG_CONFIG  path to pkg-config utility
144604449c54Smrg  PKG_CONFIG_PATH
144704449c54Smrg              directories to add to pkg-config's search path
144804449c54Smrg  PKG_CONFIG_LIBDIR
144904449c54Smrg              path overriding pkg-config's built-in search path
14508440cca4Smrg  XSTDCMAP_CFLAGS
14518440cca4Smrg              C compiler flags for XSTDCMAP, overriding pkg-config
14528440cca4Smrg  XSTDCMAP_LIBS
14538440cca4Smrg              linker flags for XSTDCMAP, overriding pkg-config
14548440cca4Smrg
14558440cca4SmrgUse these variables to override the choices made by `configure' or to help
14568440cca4Smrgit to find libraries and programs with nonstandard names/locations.
14578440cca4Smrg
145894c9ab7bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/-/issues>.
14598440cca4Smrg_ACEOF
1460d1c293acSmrgac_status=$?
14618440cca4Smrgfi
14628440cca4Smrg
14638440cca4Smrgif test "$ac_init_help" = "recursive"; then
14648440cca4Smrg  # If there are subdirs, report their specific --help.
14658440cca4Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466d1c293acSmrg    test -d "$ac_dir" ||
1467d1c293acSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468d1c293acSmrg      continue
14698440cca4Smrg    ac_builddir=.
14708440cca4Smrg
1471d1c293acSmrgcase "$ac_dir" in
1472d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473d1c293acSmrg*)
147494c9ab7bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1475d1c293acSmrg  # A ".." for each directory in $ac_dir_suffix.
147694c9ab7bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477d1c293acSmrg  case $ac_top_builddir_sub in
1478d1c293acSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479d1c293acSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480d1c293acSmrg  esac ;;
1481d1c293acSmrgesac
1482d1c293acSmrgac_abs_top_builddir=$ac_pwd
1483d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1484d1c293acSmrg# for backward compatibility:
1485d1c293acSmrgac_top_builddir=$ac_top_build_prefix
14868440cca4Smrg
14878440cca4Smrgcase $srcdir in
1488d1c293acSmrg  .)  # We are building in place.
14898440cca4Smrg    ac_srcdir=.
1490d1c293acSmrg    ac_top_srcdir=$ac_top_builddir_sub
1491d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1492d1c293acSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
14938440cca4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1494d1c293acSmrg    ac_top_srcdir=$srcdir
1495d1c293acSmrg    ac_abs_top_srcdir=$srcdir ;;
1496d1c293acSmrg  *) # Relative name.
1497d1c293acSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498d1c293acSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1499d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15008440cca4Smrgesac
1501d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502d1c293acSmrg
1503d1c293acSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
150494c9ab7bSmrg    # Check for configure.gnu first; this name is used for a wrapper for
150594c9ab7bSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
1506d1c293acSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1507d1c293acSmrg      echo &&
1508d1c293acSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509d1c293acSmrg    elif test -f "$ac_srcdir/configure"; then
1510d1c293acSmrg      echo &&
1511d1c293acSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
15128440cca4Smrg    else
151394c9ab7bSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514d1c293acSmrg    fi || ac_status=$?
1515d1c293acSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
15168440cca4Smrg  done
15178440cca4Smrgfi
15188440cca4Smrg
1519d1c293acSmrgtest -n "$ac_init_help" && exit $ac_status
15208440cca4Smrgif $ac_init_version; then
15218440cca4Smrg  cat <<\_ACEOF
152294c9ab7bSmrgxstdcmap configure 1.0.5
152394c9ab7bSmrggenerated by GNU Autoconf 2.71
15248440cca4Smrg
152594c9ab7bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
15268440cca4SmrgThis configure script is free software; the Free Software Foundation
15278440cca4Smrggives unlimited permission to copy, distribute and modify it.
15288440cca4Smrg_ACEOF
1529d1c293acSmrg  exit
15308440cca4Smrgfi
15318440cca4Smrg
1532d1c293acSmrg## ------------------------ ##
1533d1c293acSmrg## Autoconf initialization. ##
1534d1c293acSmrg## ------------------------ ##
15358440cca4Smrg
1536d1c293acSmrg# ac_fn_c_try_compile LINENO
1537d1c293acSmrg# --------------------------
1538d1c293acSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1539d1c293acSmrgac_fn_c_try_compile ()
15408440cca4Smrg{
1541d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
154294c9ab7bSmrg  rm -f conftest.$ac_objext conftest.beam
1543d1c293acSmrg  if { { ac_try="$ac_compile"
1544d1c293acSmrgcase "(($ac_try" in
1545d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546d1c293acSmrg  *) ac_try_echo=$ac_try;;
1547d1c293acSmrgesac
1548d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
154994c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1550d1c293acSmrg  (eval "$ac_compile") 2>conftest.err
1551d1c293acSmrg  ac_status=$?
1552d1c293acSmrg  if test -s conftest.err; then
1553d1c293acSmrg    grep -v '^ *+' conftest.err >conftest.er1
1554d1c293acSmrg    cat conftest.er1 >&5
1555d1c293acSmrg    mv -f conftest.er1 conftest.err
1556d1c293acSmrg  fi
155794c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558d1c293acSmrg  test $ac_status = 0; } && {
1559d1c293acSmrg	 test -z "$ac_c_werror_flag" ||
1560d1c293acSmrg	 test ! -s conftest.err
156194c9ab7bSmrg       } && test -s conftest.$ac_objext
156294c9ab7bSmrgthen :
1563d1c293acSmrg  ac_retval=0
156494c9ab7bSmrgelse $as_nop
156594c9ab7bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1566d1c293acSmrgsed 's/^/| /' conftest.$ac_ext >&5
15678440cca4Smrg
1568d1c293acSmrg	ac_retval=1
1569d1c293acSmrgfi
1570d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1571d1c293acSmrg  as_fn_set_status $ac_retval
15728440cca4Smrg
1573d1c293acSmrg} # ac_fn_c_try_compile
15748440cca4Smrg
157594c9ab7bSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
157694c9ab7bSmrg# ------------------------------------------------------------------
1577d1c293acSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
157894c9ab7bSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
157994c9ab7bSmrgac_fn_check_decl ()
1580d1c293acSmrg{
1581d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582d1c293acSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
158394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
158494c9ab7bSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
158594c9ab7bSmrgif eval test \${$3+y}
158694c9ab7bSmrgthen :
158794c9ab7bSmrg  printf %s "(cached) " >&6
158894c9ab7bSmrgelse $as_nop
1589d1c293acSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
159094c9ab7bSmrg  eval ac_save_FLAGS=\$$6
159194c9ab7bSmrg  as_fn_append $6 " $5"
1592d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593d1c293acSmrg/* end confdefs.h.  */
1594d1c293acSmrg$4
1595d1c293acSmrgint
159694c9ab7bSmrgmain (void)
1597d1c293acSmrg{
1598d1c293acSmrg#ifndef $as_decl_name
1599d1c293acSmrg#ifdef __cplusplus
1600d1c293acSmrg  (void) $as_decl_use;
1601d1c293acSmrg#else
1602d1c293acSmrg  (void) $as_decl_name;
1603d1c293acSmrg#endif
1604d1c293acSmrg#endif
16058440cca4Smrg
1606d1c293acSmrg  ;
1607d1c293acSmrg  return 0;
1608d1c293acSmrg}
1609d1c293acSmrg_ACEOF
161094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
161194c9ab7bSmrgthen :
1612d1c293acSmrg  eval "$3=yes"
161394c9ab7bSmrgelse $as_nop
1614d1c293acSmrg  eval "$3=no"
1615d1c293acSmrgfi
161694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
161794c9ab7bSmrg  eval $6=\$ac_save_FLAGS
1618d1c293acSmrg
1619d1c293acSmrgfi
162094c9ab7bSmrgeval ac_res=\$$3
162194c9ab7bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
162294c9ab7bSmrgprintf "%s\n" "$ac_res" >&6; }
1623d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624d1c293acSmrg
162594c9ab7bSmrg} # ac_fn_check_decl
1626d1c293acSmrg
1627d1c293acSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628d1c293acSmrg# -------------------------------------------------------
1629d1c293acSmrg# Tests whether HEADER exists and can be compiled using the include files in
1630d1c293acSmrg# INCLUDES, setting the cache variable VAR accordingly.
1631d1c293acSmrgac_fn_c_check_header_compile ()
1632d1c293acSmrg{
1633d1c293acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
163494c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
163594c9ab7bSmrgprintf %s "checking for $2... " >&6; }
163694c9ab7bSmrgif eval test \${$3+y}
163794c9ab7bSmrgthen :
163894c9ab7bSmrg  printf %s "(cached) " >&6
163994c9ab7bSmrgelse $as_nop
1640d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641d1c293acSmrg/* end confdefs.h.  */
1642d1c293acSmrg$4
1643d1c293acSmrg#include <$2>
1644d1c293acSmrg_ACEOF
164594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
164694c9ab7bSmrgthen :
1647d1c293acSmrg  eval "$3=yes"
164894c9ab7bSmrgelse $as_nop
1649d1c293acSmrg  eval "$3=no"
1650d1c293acSmrgfi
165194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1652d1c293acSmrgfi
1653d1c293acSmrgeval ac_res=\$$3
165494c9ab7bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
165594c9ab7bSmrgprintf "%s\n" "$ac_res" >&6; }
1656d1c293acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657d1c293acSmrg
1658d1c293acSmrg} # ac_fn_c_check_header_compile
165920915927Smrg
166020915927Smrg# ac_fn_c_try_link LINENO
166120915927Smrg# -----------------------
166220915927Smrg# Try to link conftest.$ac_ext, and return whether this succeeded.
166320915927Smrgac_fn_c_try_link ()
166420915927Smrg{
166520915927Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
166694c9ab7bSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
166720915927Smrg  if { { ac_try="$ac_link"
166820915927Smrgcase "(($ac_try" in
166920915927Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
167020915927Smrg  *) ac_try_echo=$ac_try;;
167120915927Smrgesac
167220915927Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
167394c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
167420915927Smrg  (eval "$ac_link") 2>conftest.err
167520915927Smrg  ac_status=$?
167620915927Smrg  if test -s conftest.err; then
167720915927Smrg    grep -v '^ *+' conftest.err >conftest.er1
167820915927Smrg    cat conftest.er1 >&5
167920915927Smrg    mv -f conftest.er1 conftest.err
168020915927Smrg  fi
168194c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
168220915927Smrg  test $ac_status = 0; } && {
168320915927Smrg	 test -z "$ac_c_werror_flag" ||
168420915927Smrg	 test ! -s conftest.err
168520915927Smrg       } && test -s conftest$ac_exeext && {
168620915927Smrg	 test "$cross_compiling" = yes ||
168704449c54Smrg	 test -x conftest$ac_exeext
168894c9ab7bSmrg       }
168994c9ab7bSmrgthen :
169020915927Smrg  ac_retval=0
169194c9ab7bSmrgelse $as_nop
169294c9ab7bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
169320915927Smrgsed 's/^/| /' conftest.$ac_ext >&5
169420915927Smrg
169520915927Smrg	ac_retval=1
169620915927Smrgfi
169720915927Smrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
169820915927Smrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
169920915927Smrg  # interfere with the next link command; also delete a directory that is
170020915927Smrg  # left behind by Apple's compiler.  We do this before executing the actions.
170120915927Smrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
170220915927Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
170320915927Smrg  as_fn_set_status $ac_retval
170420915927Smrg
170520915927Smrg} # ac_fn_c_try_link
170694c9ab7bSmrgac_configure_args_raw=
170794c9ab7bSmrgfor ac_arg
170894c9ab7bSmrgdo
170994c9ab7bSmrg  case $ac_arg in
171094c9ab7bSmrg  *\'*)
171194c9ab7bSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
171294c9ab7bSmrg  esac
171394c9ab7bSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
171494c9ab7bSmrgdone
171594c9ab7bSmrg
171694c9ab7bSmrgcase $ac_configure_args_raw in
171794c9ab7bSmrg  *$as_nl*)
171894c9ab7bSmrg    ac_safe_unquote= ;;
171994c9ab7bSmrg  *)
172094c9ab7bSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
172194c9ab7bSmrg    ac_unsafe_a="$ac_unsafe_z#~"
172294c9ab7bSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
172394c9ab7bSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
172494c9ab7bSmrgesac
172594c9ab7bSmrg
1726d1c293acSmrgcat >config.log <<_ACEOF
1727d1c293acSmrgThis file contains any messages produced by compilers while
1728d1c293acSmrgrunning configure, to aid debugging if configure makes a mistake.
1729d1c293acSmrg
173094c9ab7bSmrgIt was created by xstdcmap $as_me 1.0.5, which was
173194c9ab7bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
1732d1c293acSmrg
173394c9ab7bSmrg  $ $0$ac_configure_args_raw
1734d1c293acSmrg
1735d1c293acSmrg_ACEOF
1736d1c293acSmrgexec 5>>config.log
1737d1c293acSmrg{
1738d1c293acSmrgcat <<_ASUNAME
1739d1c293acSmrg## --------- ##
1740d1c293acSmrg## Platform. ##
1741d1c293acSmrg## --------- ##
1742d1c293acSmrg
1743d1c293acSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1744d1c293acSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1745d1c293acSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1746d1c293acSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1747d1c293acSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
1748d1c293acSmrg
1749d1c293acSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1750d1c293acSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1751d1c293acSmrg
1752d1c293acSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1753d1c293acSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1754d1c293acSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1755d1c293acSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1756d1c293acSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1757d1c293acSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1758d1c293acSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1759d1c293acSmrg
1760d1c293acSmrg_ASUNAME
1761d1c293acSmrg
1762d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763d1c293acSmrgfor as_dir in $PATH
1764d1c293acSmrgdo
1765d1c293acSmrg  IFS=$as_save_IFS
176694c9ab7bSmrg  case $as_dir in #(((
176794c9ab7bSmrg    '') as_dir=./ ;;
176894c9ab7bSmrg    */) ;;
176994c9ab7bSmrg    *) as_dir=$as_dir/ ;;
177094c9ab7bSmrg  esac
177194c9ab7bSmrg    printf "%s\n" "PATH: $as_dir"
1772d1c293acSmrg  done
1773d1c293acSmrgIFS=$as_save_IFS
17748440cca4Smrg
17758440cca4Smrg} >&5
17768440cca4Smrg
17778440cca4Smrgcat >&5 <<_ACEOF
17788440cca4Smrg
17798440cca4Smrg
17808440cca4Smrg## ----------- ##
17818440cca4Smrg## Core tests. ##
17828440cca4Smrg## ----------- ##
17838440cca4Smrg
17848440cca4Smrg_ACEOF
17858440cca4Smrg
17868440cca4Smrg
17878440cca4Smrg# Keep a trace of the command line.
17888440cca4Smrg# Strip out --no-create and --no-recursion so they do not pile up.
17898440cca4Smrg# Strip out --silent because we don't want to record it for future runs.
17908440cca4Smrg# Also quote any args containing shell meta-characters.
17918440cca4Smrg# Make two passes to allow for proper duplicate-argument suppression.
17928440cca4Smrgac_configure_args=
17938440cca4Smrgac_configure_args0=
17948440cca4Smrgac_configure_args1=
17958440cca4Smrgac_must_keep_next=false
17968440cca4Smrgfor ac_pass in 1 2
17978440cca4Smrgdo
17988440cca4Smrg  for ac_arg
17998440cca4Smrg  do
18008440cca4Smrg    case $ac_arg in
18018440cca4Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
18028440cca4Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18038440cca4Smrg    | -silent | --silent | --silen | --sile | --sil)
18048440cca4Smrg      continue ;;
1805d1c293acSmrg    *\'*)
180694c9ab7bSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18078440cca4Smrg    esac
18088440cca4Smrg    case $ac_pass in
1809d1c293acSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
18108440cca4Smrg    2)
1811d1c293acSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
18128440cca4Smrg      if test $ac_must_keep_next = true; then
18138440cca4Smrg	ac_must_keep_next=false # Got value, back to normal.
18148440cca4Smrg      else
18158440cca4Smrg	case $ac_arg in
18168440cca4Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
18178440cca4Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
18188440cca4Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
18198440cca4Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
18208440cca4Smrg	    case "$ac_configure_args0 " in
18218440cca4Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
18228440cca4Smrg	    esac
18238440cca4Smrg	    ;;
18248440cca4Smrg	  -* ) ac_must_keep_next=true ;;
18258440cca4Smrg	esac
18268440cca4Smrg      fi
1827d1c293acSmrg      as_fn_append ac_configure_args " '$ac_arg'"
18288440cca4Smrg      ;;
18298440cca4Smrg    esac
18308440cca4Smrg  done
18318440cca4Smrgdone
1832d1c293acSmrg{ ac_configure_args0=; unset ac_configure_args0;}
1833d1c293acSmrg{ ac_configure_args1=; unset ac_configure_args1;}
18348440cca4Smrg
18358440cca4Smrg# When interrupted or exit'd, cleanup temporary files, and complete
18368440cca4Smrg# config.log.  We remove comments because anyway the quotes in there
18378440cca4Smrg# would cause problems or look ugly.
1838d1c293acSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1839d1c293acSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
18408440cca4Smrgtrap 'exit_status=$?
184194c9ab7bSmrg  # Sanitize IFS.
184294c9ab7bSmrg  IFS=" ""	$as_nl"
18438440cca4Smrg  # Save into config.log some information that might help in debugging.
18448440cca4Smrg  {
18458440cca4Smrg    echo
18468440cca4Smrg
184794c9ab7bSmrg    printf "%s\n" "## ---------------- ##
18488440cca4Smrg## Cache variables. ##
1849d1c293acSmrg## ---------------- ##"
18508440cca4Smrg    echo
18518440cca4Smrg    # The following way of writing the cache mishandles newlines in values,
1852d1c293acSmrg(
1853d1c293acSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1854d1c293acSmrg    eval ac_val=\$$ac_var
1855d1c293acSmrg    case $ac_val in #(
1856d1c293acSmrg    *${as_nl}*)
1857d1c293acSmrg      case $ac_var in #(
185894c9ab7bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
185994c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1860d1c293acSmrg      esac
1861d1c293acSmrg      case $ac_var in #(
1862d1c293acSmrg      _ | IFS | as_nl) ;; #(
1863d1c293acSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1864d1c293acSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1865d1c293acSmrg      esac ;;
1866d1c293acSmrg    esac
1867d1c293acSmrg  done
18688440cca4Smrg  (set) 2>&1 |
1869d1c293acSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1870d1c293acSmrg    *${as_nl}ac_space=\ *)
18718440cca4Smrg      sed -n \
1872d1c293acSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1873d1c293acSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1874d1c293acSmrg      ;; #(
18758440cca4Smrg    *)
1876d1c293acSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18778440cca4Smrg      ;;
1878d1c293acSmrg    esac |
1879d1c293acSmrg    sort
1880d1c293acSmrg)
18818440cca4Smrg    echo
18828440cca4Smrg
188394c9ab7bSmrg    printf "%s\n" "## ----------------- ##
18848440cca4Smrg## Output variables. ##
1885d1c293acSmrg## ----------------- ##"
18868440cca4Smrg    echo
18878440cca4Smrg    for ac_var in $ac_subst_vars
18888440cca4Smrg    do
1889d1c293acSmrg      eval ac_val=\$$ac_var
1890d1c293acSmrg      case $ac_val in
189194c9ab7bSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892d1c293acSmrg      esac
189394c9ab7bSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
18948440cca4Smrg    done | sort
18958440cca4Smrg    echo
18968440cca4Smrg
18978440cca4Smrg    if test -n "$ac_subst_files"; then
189894c9ab7bSmrg      printf "%s\n" "## ------------------- ##
1899d1c293acSmrg## File substitutions. ##
1900d1c293acSmrg## ------------------- ##"
19018440cca4Smrg      echo
19028440cca4Smrg      for ac_var in $ac_subst_files
19038440cca4Smrg      do
1904d1c293acSmrg	eval ac_val=\$$ac_var
1905d1c293acSmrg	case $ac_val in
190694c9ab7bSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907d1c293acSmrg	esac
190894c9ab7bSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
19098440cca4Smrg      done | sort
19108440cca4Smrg      echo
19118440cca4Smrg    fi
19128440cca4Smrg
19138440cca4Smrg    if test -s confdefs.h; then
191494c9ab7bSmrg      printf "%s\n" "## ----------- ##
19158440cca4Smrg## confdefs.h. ##
1916d1c293acSmrg## ----------- ##"
19178440cca4Smrg      echo
1918d1c293acSmrg      cat confdefs.h
19198440cca4Smrg      echo
19208440cca4Smrg    fi
19218440cca4Smrg    test "$ac_signal" != 0 &&
192294c9ab7bSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
192394c9ab7bSmrg    printf "%s\n" "$as_me: exit $exit_status"
19248440cca4Smrg  } >&5
1925d1c293acSmrg  rm -f core *.core core.conftest.* &&
1926d1c293acSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
19278440cca4Smrg    exit $exit_status
1928d1c293acSmrg' 0
19298440cca4Smrgfor ac_signal in 1 2 13 15; do
1930d1c293acSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
19318440cca4Smrgdone
19328440cca4Smrgac_signal=0
19338440cca4Smrg
19348440cca4Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
1935d1c293acSmrgrm -f -r conftest* confdefs.h
1936d1c293acSmrg
193794c9ab7bSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
19388440cca4Smrg
19398440cca4Smrg# Predefined preprocessor variables.
19408440cca4Smrg
194194c9ab7bSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
19428440cca4Smrg
194394c9ab7bSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
19448440cca4Smrg
194594c9ab7bSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
19468440cca4Smrg
194794c9ab7bSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
19488440cca4Smrg
194994c9ab7bSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
19508440cca4Smrg
195194c9ab7bSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1952d1c293acSmrg
19538440cca4Smrg
19548440cca4Smrg# Let the site file select an alternate cache file if it wants to.
1955d1c293acSmrg# Prefer an explicitly selected file to automatically selected ones.
1956d1c293acSmrgif test -n "$CONFIG_SITE"; then
195794c9ab7bSmrg  ac_site_files="$CONFIG_SITE"
1958d1c293acSmrgelif test "x$prefix" != xNONE; then
195994c9ab7bSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1960d1c293acSmrgelse
196194c9ab7bSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
19628440cca4Smrgfi
196394c9ab7bSmrg
196494c9ab7bSmrgfor ac_site_file in $ac_site_files
1965d1c293acSmrgdo
196694c9ab7bSmrg  case $ac_site_file in #(
196794c9ab7bSmrg  */*) :
196894c9ab7bSmrg     ;; #(
196994c9ab7bSmrg  *) :
197094c9ab7bSmrg    ac_site_file=./$ac_site_file ;;
197194c9ab7bSmrgesac
197294c9ab7bSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
197394c9ab7bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
197494c9ab7bSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
19758440cca4Smrg    sed 's/^/| /' "$ac_site_file" >&5
1976d1c293acSmrg    . "$ac_site_file" \
197794c9ab7bSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
197894c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1979d1c293acSmrgas_fn_error $? "failed to load site script $ac_site_file
1980d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
19818440cca4Smrg  fi
19828440cca4Smrgdone
19838440cca4Smrg
19848440cca4Smrgif test -r "$cache_file"; then
1985d1c293acSmrg  # Some versions of bash will fail to source /dev/null (special files
1986d1c293acSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1987d1c293acSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
198894c9ab7bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
198994c9ab7bSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
19908440cca4Smrg    case $cache_file in
1991d1c293acSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992d1c293acSmrg      *)                      . "./$cache_file";;
19938440cca4Smrg    esac
19948440cca4Smrg  fi
19958440cca4Smrgelse
199694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
199794c9ab7bSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
19988440cca4Smrg  >$cache_file
19998440cca4Smrgfi
20008440cca4Smrg
200194c9ab7bSmrg# Test code for whether the C compiler supports C89 (global declarations)
200294c9ab7bSmrgac_c_conftest_c89_globals='
200394c9ab7bSmrg/* Does the compiler advertise C89 conformance?
200494c9ab7bSmrg   Do not test the value of __STDC__, because some compilers set it to 0
200594c9ab7bSmrg   while being otherwise adequately conformant. */
200694c9ab7bSmrg#if !defined __STDC__
200794c9ab7bSmrg# error "Compiler does not advertise C89 conformance"
200894c9ab7bSmrg#endif
20098440cca4Smrg
201094c9ab7bSmrg#include <stddef.h>
201194c9ab7bSmrg#include <stdarg.h>
201294c9ab7bSmrgstruct stat;
201394c9ab7bSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
201494c9ab7bSmrgstruct buf { int x; };
201594c9ab7bSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
201694c9ab7bSmrgstatic char *e (p, i)
201794c9ab7bSmrg     char **p;
201894c9ab7bSmrg     int i;
201994c9ab7bSmrg{
202094c9ab7bSmrg  return p[i];
202194c9ab7bSmrg}
202294c9ab7bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
202394c9ab7bSmrg{
202494c9ab7bSmrg  char *s;
202594c9ab7bSmrg  va_list v;
202694c9ab7bSmrg  va_start (v,p);
202794c9ab7bSmrg  s = g (p, va_arg (v,int));
202894c9ab7bSmrg  va_end (v);
202994c9ab7bSmrg  return s;
203094c9ab7bSmrg}
203120915927Smrg
203294c9ab7bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
203394c9ab7bSmrg   function prototypes and stuff, but not \xHH hex character constants.
203494c9ab7bSmrg   These do not provoke an error unfortunately, instead are silently treated
203594c9ab7bSmrg   as an "x".  The following induces an error, until -std is added to get
203694c9ab7bSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
203794c9ab7bSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
203894c9ab7bSmrg   that is true only with -std.  */
203994c9ab7bSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
204020915927Smrg
204194c9ab7bSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
204294c9ab7bSmrg   inside strings and character constants.  */
204394c9ab7bSmrg#define FOO(x) '\''x'\''
204494c9ab7bSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
204520915927Smrg
204694c9ab7bSmrgint test (int i, double x);
204794c9ab7bSmrgstruct s1 {int (*f) (int a);};
204894c9ab7bSmrgstruct s2 {int (*f) (double a);};
204994c9ab7bSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
205094c9ab7bSmrg               int, int);'
20518440cca4Smrg
205294c9ab7bSmrg# Test code for whether the C compiler supports C89 (body of main).
205394c9ab7bSmrgac_c_conftest_c89_main='
205494c9ab7bSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
205594c9ab7bSmrg'
2056d1c293acSmrg
205794c9ab7bSmrg# Test code for whether the C compiler supports C99 (global declarations)
205894c9ab7bSmrgac_c_conftest_c99_globals='
205994c9ab7bSmrg// Does the compiler advertise C99 conformance?
206094c9ab7bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
206194c9ab7bSmrg# error "Compiler does not advertise C99 conformance"
206294c9ab7bSmrg#endif
2063d1c293acSmrg
206494c9ab7bSmrg#include <stdbool.h>
206594c9ab7bSmrgextern int puts (const char *);
206694c9ab7bSmrgextern int printf (const char *, ...);
206794c9ab7bSmrgextern int dprintf (int, const char *, ...);
206894c9ab7bSmrgextern void *malloc (size_t);
20698440cca4Smrg
207094c9ab7bSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
207194c9ab7bSmrg// dprintf is used instead of fprintf to avoid needing to declare
207294c9ab7bSmrg// FILE and stderr.
207394c9ab7bSmrg#define debug(...) dprintf (2, __VA_ARGS__)
207494c9ab7bSmrg#define showlist(...) puts (#__VA_ARGS__)
207594c9ab7bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
207694c9ab7bSmrgstatic void
207794c9ab7bSmrgtest_varargs_macros (void)
207894c9ab7bSmrg{
207994c9ab7bSmrg  int x = 1234;
208094c9ab7bSmrg  int y = 5678;
208194c9ab7bSmrg  debug ("Flag");
208294c9ab7bSmrg  debug ("X = %d\n", x);
208394c9ab7bSmrg  showlist (The first, second, and third items.);
208494c9ab7bSmrg  report (x>y, "x is %d but y is %d", x, y);
208594c9ab7bSmrg}
208694c9ab7bSmrg
208794c9ab7bSmrg// Check long long types.
208894c9ab7bSmrg#define BIG64 18446744073709551615ull
208994c9ab7bSmrg#define BIG32 4294967295ul
209094c9ab7bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
209194c9ab7bSmrg#if !BIG_OK
209294c9ab7bSmrg  #error "your preprocessor is broken"
209394c9ab7bSmrg#endif
209494c9ab7bSmrg#if BIG_OK
209594c9ab7bSmrg#else
209694c9ab7bSmrg  #error "your preprocessor is broken"
209794c9ab7bSmrg#endif
209894c9ab7bSmrgstatic long long int bignum = -9223372036854775807LL;
209994c9ab7bSmrgstatic unsigned long long int ubignum = BIG64;
210094c9ab7bSmrg
210194c9ab7bSmrgstruct incomplete_array
210294c9ab7bSmrg{
210394c9ab7bSmrg  int datasize;
210494c9ab7bSmrg  double data[];
210594c9ab7bSmrg};
210694c9ab7bSmrg
210794c9ab7bSmrgstruct named_init {
210894c9ab7bSmrg  int number;
210994c9ab7bSmrg  const wchar_t *name;
211094c9ab7bSmrg  double average;
211194c9ab7bSmrg};
211294c9ab7bSmrg
211394c9ab7bSmrgtypedef const char *ccp;
211494c9ab7bSmrg
211594c9ab7bSmrgstatic inline int
211694c9ab7bSmrgtest_restrict (ccp restrict text)
211794c9ab7bSmrg{
211894c9ab7bSmrg  // See if C++-style comments work.
211994c9ab7bSmrg  // Iterate through items via the restricted pointer.
212094c9ab7bSmrg  // Also check for declarations in for loops.
212194c9ab7bSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
212294c9ab7bSmrg    continue;
212394c9ab7bSmrg  return 0;
212494c9ab7bSmrg}
212594c9ab7bSmrg
212694c9ab7bSmrg// Check varargs and va_copy.
212794c9ab7bSmrgstatic bool
212894c9ab7bSmrgtest_varargs (const char *format, ...)
212994c9ab7bSmrg{
213094c9ab7bSmrg  va_list args;
213194c9ab7bSmrg  va_start (args, format);
213294c9ab7bSmrg  va_list args_copy;
213394c9ab7bSmrg  va_copy (args_copy, args);
213494c9ab7bSmrg
213594c9ab7bSmrg  const char *str = "";
213694c9ab7bSmrg  int number = 0;
213794c9ab7bSmrg  float fnumber = 0;
213894c9ab7bSmrg
213994c9ab7bSmrg  while (*format)
214094c9ab7bSmrg    {
214194c9ab7bSmrg      switch (*format++)
214294c9ab7bSmrg	{
214394c9ab7bSmrg	case '\''s'\'': // string
214494c9ab7bSmrg	  str = va_arg (args_copy, const char *);
214594c9ab7bSmrg	  break;
214694c9ab7bSmrg	case '\''d'\'': // int
214794c9ab7bSmrg	  number = va_arg (args_copy, int);
214894c9ab7bSmrg	  break;
214994c9ab7bSmrg	case '\''f'\'': // float
215094c9ab7bSmrg	  fnumber = va_arg (args_copy, double);
215194c9ab7bSmrg	  break;
215294c9ab7bSmrg	default:
215394c9ab7bSmrg	  break;
215494c9ab7bSmrg	}
215594c9ab7bSmrg    }
215694c9ab7bSmrg  va_end (args_copy);
215794c9ab7bSmrg  va_end (args);
215894c9ab7bSmrg
215994c9ab7bSmrg  return *str && number && fnumber;
216094c9ab7bSmrg}
216194c9ab7bSmrg'
216294c9ab7bSmrg
216394c9ab7bSmrg# Test code for whether the C compiler supports C99 (body of main).
216494c9ab7bSmrgac_c_conftest_c99_main='
216594c9ab7bSmrg  // Check bool.
216694c9ab7bSmrg  _Bool success = false;
216794c9ab7bSmrg  success |= (argc != 0);
216894c9ab7bSmrg
216994c9ab7bSmrg  // Check restrict.
217094c9ab7bSmrg  if (test_restrict ("String literal") == 0)
217194c9ab7bSmrg    success = true;
217294c9ab7bSmrg  char *restrict newvar = "Another string";
217394c9ab7bSmrg
217494c9ab7bSmrg  // Check varargs.
217594c9ab7bSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
217694c9ab7bSmrg  test_varargs_macros ();
217794c9ab7bSmrg
217894c9ab7bSmrg  // Check flexible array members.
217994c9ab7bSmrg  struct incomplete_array *ia =
218094c9ab7bSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
218194c9ab7bSmrg  ia->datasize = 10;
218294c9ab7bSmrg  for (int i = 0; i < ia->datasize; ++i)
218394c9ab7bSmrg    ia->data[i] = i * 1.234;
218494c9ab7bSmrg
218594c9ab7bSmrg  // Check named initializers.
218694c9ab7bSmrg  struct named_init ni = {
218794c9ab7bSmrg    .number = 34,
218894c9ab7bSmrg    .name = L"Test wide string",
218994c9ab7bSmrg    .average = 543.34343,
219094c9ab7bSmrg  };
219194c9ab7bSmrg
219294c9ab7bSmrg  ni.number = 58;
219394c9ab7bSmrg
219494c9ab7bSmrg  int dynamic_array[ni.number];
219594c9ab7bSmrg  dynamic_array[0] = argv[0][0];
219694c9ab7bSmrg  dynamic_array[ni.number - 1] = 543;
219794c9ab7bSmrg
219894c9ab7bSmrg  // work around unused variable warnings
219994c9ab7bSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
220094c9ab7bSmrg	 || dynamic_array[ni.number - 1] != 543);
220194c9ab7bSmrg'
220294c9ab7bSmrg
220394c9ab7bSmrg# Test code for whether the C compiler supports C11 (global declarations)
220494c9ab7bSmrgac_c_conftest_c11_globals='
220594c9ab7bSmrg// Does the compiler advertise C11 conformance?
220694c9ab7bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
220794c9ab7bSmrg# error "Compiler does not advertise C11 conformance"
220894c9ab7bSmrg#endif
220994c9ab7bSmrg
221094c9ab7bSmrg// Check _Alignas.
221194c9ab7bSmrgchar _Alignas (double) aligned_as_double;
221294c9ab7bSmrgchar _Alignas (0) no_special_alignment;
221394c9ab7bSmrgextern char aligned_as_int;
221494c9ab7bSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
221594c9ab7bSmrg
221694c9ab7bSmrg// Check _Alignof.
221794c9ab7bSmrgenum
221894c9ab7bSmrg{
221994c9ab7bSmrg  int_alignment = _Alignof (int),
222094c9ab7bSmrg  int_array_alignment = _Alignof (int[100]),
222194c9ab7bSmrg  char_alignment = _Alignof (char)
222294c9ab7bSmrg};
222394c9ab7bSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
222494c9ab7bSmrg
222594c9ab7bSmrg// Check _Noreturn.
222694c9ab7bSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
222794c9ab7bSmrg
222894c9ab7bSmrg// Check _Static_assert.
222994c9ab7bSmrgstruct test_static_assert
223094c9ab7bSmrg{
223194c9ab7bSmrg  int x;
223294c9ab7bSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
223394c9ab7bSmrg                  "_Static_assert does not work in struct");
223494c9ab7bSmrg  long int y;
223594c9ab7bSmrg};
223694c9ab7bSmrg
223794c9ab7bSmrg// Check UTF-8 literals.
223894c9ab7bSmrg#define u8 syntax error!
223994c9ab7bSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
224094c9ab7bSmrg
224194c9ab7bSmrg// Check duplicate typedefs.
224294c9ab7bSmrgtypedef long *long_ptr;
224394c9ab7bSmrgtypedef long int *long_ptr;
224494c9ab7bSmrgtypedef long_ptr long_ptr;
224594c9ab7bSmrg
224694c9ab7bSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
224794c9ab7bSmrgstruct anonymous
224894c9ab7bSmrg{
224994c9ab7bSmrg  union {
225094c9ab7bSmrg    struct { int i; int j; };
225194c9ab7bSmrg    struct { int k; long int l; } w;
225294c9ab7bSmrg  };
225394c9ab7bSmrg  int m;
225494c9ab7bSmrg} v1;
225594c9ab7bSmrg'
225694c9ab7bSmrg
225794c9ab7bSmrg# Test code for whether the C compiler supports C11 (body of main).
225894c9ab7bSmrgac_c_conftest_c11_main='
225994c9ab7bSmrg  _Static_assert ((offsetof (struct anonymous, i)
226094c9ab7bSmrg		   == offsetof (struct anonymous, w.k)),
226194c9ab7bSmrg		  "Anonymous union alignment botch");
226294c9ab7bSmrg  v1.i = 2;
226394c9ab7bSmrg  v1.w.k = 5;
226494c9ab7bSmrg  ok |= v1.i != 5;
226594c9ab7bSmrg'
226694c9ab7bSmrg
226794c9ab7bSmrg# Test code for whether the C compiler supports C11 (complete).
226894c9ab7bSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
226994c9ab7bSmrg${ac_c_conftest_c99_globals}
227094c9ab7bSmrg${ac_c_conftest_c11_globals}
227194c9ab7bSmrg
227294c9ab7bSmrgint
227394c9ab7bSmrgmain (int argc, char **argv)
227494c9ab7bSmrg{
227594c9ab7bSmrg  int ok = 0;
227694c9ab7bSmrg  ${ac_c_conftest_c89_main}
227794c9ab7bSmrg  ${ac_c_conftest_c99_main}
227894c9ab7bSmrg  ${ac_c_conftest_c11_main}
227994c9ab7bSmrg  return ok;
228094c9ab7bSmrg}
228194c9ab7bSmrg"
228294c9ab7bSmrg
228394c9ab7bSmrg# Test code for whether the C compiler supports C99 (complete).
228494c9ab7bSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
228594c9ab7bSmrg${ac_c_conftest_c99_globals}
228694c9ab7bSmrg
228794c9ab7bSmrgint
228894c9ab7bSmrgmain (int argc, char **argv)
228994c9ab7bSmrg{
229094c9ab7bSmrg  int ok = 0;
229194c9ab7bSmrg  ${ac_c_conftest_c89_main}
229294c9ab7bSmrg  ${ac_c_conftest_c99_main}
229394c9ab7bSmrg  return ok;
229494c9ab7bSmrg}
229594c9ab7bSmrg"
229694c9ab7bSmrg
229794c9ab7bSmrg# Test code for whether the C compiler supports C89 (complete).
229894c9ab7bSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
229994c9ab7bSmrg
230094c9ab7bSmrgint
230194c9ab7bSmrgmain (int argc, char **argv)
230294c9ab7bSmrg{
230394c9ab7bSmrg  int ok = 0;
230494c9ab7bSmrg  ${ac_c_conftest_c89_main}
230594c9ab7bSmrg  return ok;
230694c9ab7bSmrg}
230794c9ab7bSmrg"
230894c9ab7bSmrg
230994c9ab7bSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
231094c9ab7bSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
231194c9ab7bSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
231294c9ab7bSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
231394c9ab7bSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
231494c9ab7bSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
231594c9ab7bSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
231694c9ab7bSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
231794c9ab7bSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
231894c9ab7bSmrg
231994c9ab7bSmrg# Auxiliary files required by this configure script.
232094c9ab7bSmrgac_aux_files="config.guess config.sub compile missing install-sh"
232194c9ab7bSmrg
232294c9ab7bSmrg# Locations in which to look for auxiliary files.
232394c9ab7bSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
232494c9ab7bSmrg
232594c9ab7bSmrg# Search for a directory containing all of the required auxiliary files,
232694c9ab7bSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
232794c9ab7bSmrg# If we don't find one directory that contains all the files we need,
232894c9ab7bSmrg# we report the set of missing files from the *first* directory in
232994c9ab7bSmrg# $ac_aux_dir_candidates and give up.
233094c9ab7bSmrgac_missing_aux_files=""
233194c9ab7bSmrgac_first_candidate=:
233294c9ab7bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
233394c9ab7bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233494c9ab7bSmrgas_found=false
233594c9ab7bSmrgfor as_dir in $ac_aux_dir_candidates
233694c9ab7bSmrgdo
233794c9ab7bSmrg  IFS=$as_save_IFS
233894c9ab7bSmrg  case $as_dir in #(((
233994c9ab7bSmrg    '') as_dir=./ ;;
234094c9ab7bSmrg    */) ;;
234194c9ab7bSmrg    *) as_dir=$as_dir/ ;;
234294c9ab7bSmrg  esac
234394c9ab7bSmrg  as_found=:
234494c9ab7bSmrg
234594c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
234694c9ab7bSmrg  ac_aux_dir_found=yes
234794c9ab7bSmrg  ac_install_sh=
234894c9ab7bSmrg  for ac_aux in $ac_aux_files
234994c9ab7bSmrg  do
235094c9ab7bSmrg    # As a special case, if "install-sh" is required, that requirement
235194c9ab7bSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
235294c9ab7bSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
235394c9ab7bSmrg    if test x"$ac_aux" = x"install-sh"
235494c9ab7bSmrg    then
235594c9ab7bSmrg      if test -f "${as_dir}install-sh"; then
235694c9ab7bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
235794c9ab7bSmrg        ac_install_sh="${as_dir}install-sh -c"
235894c9ab7bSmrg      elif test -f "${as_dir}install.sh"; then
235994c9ab7bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
236094c9ab7bSmrg        ac_install_sh="${as_dir}install.sh -c"
236194c9ab7bSmrg      elif test -f "${as_dir}shtool"; then
236294c9ab7bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
236394c9ab7bSmrg        ac_install_sh="${as_dir}shtool install -c"
236494c9ab7bSmrg      else
236594c9ab7bSmrg        ac_aux_dir_found=no
236694c9ab7bSmrg        if $ac_first_candidate; then
236794c9ab7bSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
236894c9ab7bSmrg        else
236994c9ab7bSmrg          break
237094c9ab7bSmrg        fi
237194c9ab7bSmrg      fi
237294c9ab7bSmrg    else
237394c9ab7bSmrg      if test -f "${as_dir}${ac_aux}"; then
237494c9ab7bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
237594c9ab7bSmrg      else
237694c9ab7bSmrg        ac_aux_dir_found=no
237794c9ab7bSmrg        if $ac_first_candidate; then
237894c9ab7bSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
237994c9ab7bSmrg        else
238094c9ab7bSmrg          break
238194c9ab7bSmrg        fi
238294c9ab7bSmrg      fi
238394c9ab7bSmrg    fi
238494c9ab7bSmrg  done
238594c9ab7bSmrg  if test "$ac_aux_dir_found" = yes; then
238694c9ab7bSmrg    ac_aux_dir="$as_dir"
238794c9ab7bSmrg    break
238894c9ab7bSmrg  fi
238994c9ab7bSmrg  ac_first_candidate=false
239094c9ab7bSmrg
239194c9ab7bSmrg  as_found=false
239294c9ab7bSmrgdone
239394c9ab7bSmrgIFS=$as_save_IFS
239494c9ab7bSmrgif $as_found
239594c9ab7bSmrgthen :
239694c9ab7bSmrg
239794c9ab7bSmrgelse $as_nop
239894c9ab7bSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
239994c9ab7bSmrgfi
240094c9ab7bSmrg
240194c9ab7bSmrg
240294c9ab7bSmrg# These three variables are undocumented and unsupported,
240394c9ab7bSmrg# and are intended to be withdrawn in a future Autoconf release.
240494c9ab7bSmrg# They can cause serious problems if a builder's source tree is in a directory
240594c9ab7bSmrg# whose full name contains unusual characters.
240694c9ab7bSmrgif test -f "${ac_aux_dir}config.guess"; then
240794c9ab7bSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
240894c9ab7bSmrgfi
240994c9ab7bSmrgif test -f "${ac_aux_dir}config.sub"; then
241094c9ab7bSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
241194c9ab7bSmrgfi
241294c9ab7bSmrgif test -f "$ac_aux_dir/configure"; then
241394c9ab7bSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
241494c9ab7bSmrgfi
241594c9ab7bSmrg
241694c9ab7bSmrg# Check that the precious variables saved in the cache have kept the same
241794c9ab7bSmrg# value.
241894c9ab7bSmrgac_cache_corrupted=false
241994c9ab7bSmrgfor ac_var in $ac_precious_vars; do
242094c9ab7bSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
242194c9ab7bSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
242294c9ab7bSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
242394c9ab7bSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
242494c9ab7bSmrg  case $ac_old_set,$ac_new_set in
242594c9ab7bSmrg    set,)
242694c9ab7bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
242794c9ab7bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
242894c9ab7bSmrg      ac_cache_corrupted=: ;;
242994c9ab7bSmrg    ,set)
243094c9ab7bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
243194c9ab7bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
243294c9ab7bSmrg      ac_cache_corrupted=: ;;
243394c9ab7bSmrg    ,);;
243494c9ab7bSmrg    *)
243594c9ab7bSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
243694c9ab7bSmrg	# differences in whitespace do not lead to failure.
243794c9ab7bSmrg	ac_old_val_w=`echo x $ac_old_val`
243894c9ab7bSmrg	ac_new_val_w=`echo x $ac_new_val`
243994c9ab7bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
244094c9ab7bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
244194c9ab7bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
244294c9ab7bSmrg	  ac_cache_corrupted=:
244394c9ab7bSmrg	else
244494c9ab7bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
244594c9ab7bSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
244694c9ab7bSmrg	  eval $ac_var=\$ac_old_val
244794c9ab7bSmrg	fi
244894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
244994c9ab7bSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
245094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
245194c9ab7bSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
245294c9ab7bSmrg      fi;;
245394c9ab7bSmrg  esac
245494c9ab7bSmrg  # Pass precious variables to config.status.
245594c9ab7bSmrg  if test "$ac_new_set" = set; then
245694c9ab7bSmrg    case $ac_new_val in
245794c9ab7bSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
245894c9ab7bSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
245994c9ab7bSmrg    esac
246094c9ab7bSmrg    case " $ac_configure_args " in
246194c9ab7bSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
246294c9ab7bSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
246394c9ab7bSmrg    esac
246494c9ab7bSmrg  fi
246594c9ab7bSmrgdone
246694c9ab7bSmrgif $ac_cache_corrupted; then
246794c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
246894c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
246994c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
247094c9ab7bSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
247194c9ab7bSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
247294c9ab7bSmrg	    and start over" "$LINENO" 5
247394c9ab7bSmrgfi
247494c9ab7bSmrg## -------------------- ##
247594c9ab7bSmrg## Main body of script. ##
247694c9ab7bSmrg## -------------------- ##
247794c9ab7bSmrg
247894c9ab7bSmrgac_ext=c
247994c9ab7bSmrgac_cpp='$CPP $CPPFLAGS'
248094c9ab7bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
248194c9ab7bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
248294c9ab7bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
248394c9ab7bSmrg
248494c9ab7bSmrg
248594c9ab7bSmrg
248694c9ab7bSmrgac_config_headers="$ac_config_headers config.h"
248794c9ab7bSmrg
248894c9ab7bSmrg
248994c9ab7bSmrg# Initialize Automake
249094c9ab7bSmrgam__api_version='1.16'
249194c9ab7bSmrg
249294c9ab7bSmrg
249394c9ab7bSmrg
249494c9ab7bSmrg  # Find a good install program.  We prefer a C program (faster),
249594c9ab7bSmrg# so one script is as good as another.  But avoid the broken or
249694c9ab7bSmrg# incompatible versions:
249794c9ab7bSmrg# SysV /etc/install, /usr/sbin/install
249894c9ab7bSmrg# SunOS /usr/etc/install
249994c9ab7bSmrg# IRIX /sbin/install
250094c9ab7bSmrg# AIX /bin/install
25018440cca4Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
25028440cca4Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
25038440cca4Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
25048440cca4Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
25058440cca4Smrg# OS/2's system install, which has a completely different semantic
25068440cca4Smrg# ./install, which can be erroneously created by make from ./install.sh.
2507d1c293acSmrg# Reject install programs that cannot install multiple files.
250894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
250994c9ab7bSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
25108440cca4Smrgif test -z "$INSTALL"; then
251194c9ab7bSmrgif test ${ac_cv_path_install+y}
251294c9ab7bSmrgthen :
251394c9ab7bSmrg  printf %s "(cached) " >&6
251494c9ab7bSmrgelse $as_nop
25158440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25168440cca4Smrgfor as_dir in $PATH
25178440cca4Smrgdo
25188440cca4Smrg  IFS=$as_save_IFS
251994c9ab7bSmrg  case $as_dir in #(((
252094c9ab7bSmrg    '') as_dir=./ ;;
252194c9ab7bSmrg    */) ;;
252294c9ab7bSmrg    *) as_dir=$as_dir/ ;;
252394c9ab7bSmrg  esac
252494c9ab7bSmrg    # Account for fact that we put trailing slashes in our PATH walk.
252594c9ab7bSmrgcase $as_dir in #((
252694c9ab7bSmrg  ./ | /[cC]/* | \
25278440cca4Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528d1c293acSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
25298440cca4Smrg  /usr/ucb/* ) ;;
25308440cca4Smrg  *)
25318440cca4Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
25328440cca4Smrg    # Don't use installbsd from OSF since it installs stuff as root
25338440cca4Smrg    # by default.
25348440cca4Smrg    for ac_prog in ginstall scoinst install; do
25358440cca4Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
253694c9ab7bSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
25378440cca4Smrg	  if test $ac_prog = install &&
253894c9ab7bSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25398440cca4Smrg	    # AIX install.  It has an incompatible calling convention.
25408440cca4Smrg	    :
25418440cca4Smrg	  elif test $ac_prog = install &&
254294c9ab7bSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25438440cca4Smrg	    # program-specific install script used by HP pwplus--don't use.
25448440cca4Smrg	    :
25458440cca4Smrg	  else
2546d1c293acSmrg	    rm -rf conftest.one conftest.two conftest.dir
2547d1c293acSmrg	    echo one > conftest.one
2548d1c293acSmrg	    echo two > conftest.two
2549d1c293acSmrg	    mkdir conftest.dir
255094c9ab7bSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2551d1c293acSmrg	      test -s conftest.one && test -s conftest.two &&
2552d1c293acSmrg	      test -s conftest.dir/conftest.one &&
2553d1c293acSmrg	      test -s conftest.dir/conftest.two
2554d1c293acSmrg	    then
255594c9ab7bSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2556d1c293acSmrg	      break 3
2557d1c293acSmrg	    fi
25588440cca4Smrg	  fi
25598440cca4Smrg	fi
25608440cca4Smrg      done
25618440cca4Smrg    done
25628440cca4Smrg    ;;
25638440cca4Smrgesac
25648440cca4Smrg
2565d1c293acSmrg  done
2566d1c293acSmrgIFS=$as_save_IFS
2567d1c293acSmrg
2568d1c293acSmrgrm -rf conftest.one conftest.two conftest.dir
25698440cca4Smrg
25708440cca4Smrgfi
257194c9ab7bSmrg  if test ${ac_cv_path_install+y}; then
25728440cca4Smrg    INSTALL=$ac_cv_path_install
25738440cca4Smrg  else
2574d1c293acSmrg    # As a last resort, use the slow shell script.  Don't cache a
2575d1c293acSmrg    # value for INSTALL within a source directory, because that will
25768440cca4Smrg    # break other packages using the cache if that directory is
2577d1c293acSmrg    # removed, or if the value is a relative name.
25788440cca4Smrg    INSTALL=$ac_install_sh
25798440cca4Smrg  fi
25808440cca4Smrgfi
258194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
258294c9ab7bSmrgprintf "%s\n" "$INSTALL" >&6; }
25838440cca4Smrg
25848440cca4Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
25858440cca4Smrg# It thinks the first close brace ends the variable substitution.
25868440cca4Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
25878440cca4Smrg
25888440cca4Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
25898440cca4Smrg
25908440cca4Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25918440cca4Smrg
259294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
259394c9ab7bSmrgprintf %s "checking whether build environment is sane... " >&6; }
2594d1c293acSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2595d1c293acSmrg# name.  Accept space and tab only in the latter.
2596d1c293acSmrgam_lf='
2597d1c293acSmrg'
2598d1c293acSmrgcase `pwd` in
2599d1c293acSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2600d1c293acSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2601d1c293acSmrgesac
2602d1c293acSmrgcase $srcdir in
2603d1c293acSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
260404449c54Smrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2605d1c293acSmrgesac
2606d1c293acSmrg
260704449c54Smrg# Do 'set' in a subshell so we don't clobber the current shell's
26088440cca4Smrg# arguments.  Must try -L first in case configure is actually a
26098440cca4Smrg# symlink; some systems play weird games with the mod time of symlinks
26108440cca4Smrg# (eg FreeBSD returns the mod time of the symlink's containing
26118440cca4Smrg# directory).
26128440cca4Smrgif (
261304449c54Smrg   am_has_slept=no
261404449c54Smrg   for am_try in 1 2; do
261504449c54Smrg     echo "timestamp, slept: $am_has_slept" > conftest.file
261604449c54Smrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
261704449c54Smrg     if test "$*" = "X"; then
261804449c54Smrg	# -L didn't work.
261904449c54Smrg	set X `ls -t "$srcdir/configure" conftest.file`
262004449c54Smrg     fi
262104449c54Smrg     if test "$*" != "X $srcdir/configure conftest.file" \
262204449c54Smrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
262304449c54Smrg
262404449c54Smrg	# If neither matched, then we have a broken ls.  This can happen
262504449c54Smrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
262604449c54Smrg	# broken ls alias from the environment.  This has actually
262704449c54Smrg	# happened.  Such a system could not be considered "sane".
262804449c54Smrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
262904449c54Smrg  alias in your environment" "$LINENO" 5
263004449c54Smrg     fi
263104449c54Smrg     if test "$2" = conftest.file || test $am_try -eq 2; then
263204449c54Smrg       break
263304449c54Smrg     fi
263404449c54Smrg     # Just in case.
263504449c54Smrg     sleep 1
263604449c54Smrg     am_has_slept=yes
263704449c54Smrg   done
26388440cca4Smrg   test "$2" = conftest.file
26398440cca4Smrg   )
26408440cca4Smrgthen
26418440cca4Smrg   # Ok.
26428440cca4Smrg   :
26438440cca4Smrgelse
2644d1c293acSmrg   as_fn_error $? "newly created file is older than distributed files!
2645d1c293acSmrgCheck your system clock" "$LINENO" 5
26468440cca4Smrgfi
264794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
264894c9ab7bSmrgprintf "%s\n" "yes" >&6; }
264904449c54Smrg# If we didn't sleep, we still need to ensure time stamps of config.status and
265004449c54Smrg# generated files are strictly newer.
265104449c54Smrgam_sleep_pid=
265204449c54Smrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
265304449c54Smrg  ( sleep 1 ) &
265404449c54Smrg  am_sleep_pid=$!
265504449c54Smrgfi
265604449c54Smrg
265704449c54Smrgrm -f conftest.file
265804449c54Smrg
26598440cca4Smrgtest "$program_prefix" != NONE &&
2660d1c293acSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
26618440cca4Smrg# Use a double $ so make ignores it.
26628440cca4Smrgtest "$program_suffix" != NONE &&
2663d1c293acSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2664d1c293acSmrg# Double any \ or $.
26658440cca4Smrg# By default was `s,x,x', remove it if useless.
2666d1c293acSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
266794c9ab7bSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
266894c9ab7bSmrg
26698440cca4Smrg
267004449c54Smrg# Expand $ac_aux_dir to an absolute path.
267104449c54Smrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
26728440cca4Smrg
267394c9ab7bSmrg
267494c9ab7bSmrg  if test x"${MISSING+set}" != xset; then
267594c9ab7bSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2676d1c293acSmrgfi
26778440cca4Smrg# Use eval to expand $SHELL
267804449c54Smrgif eval "$MISSING --is-lightweight"; then
267904449c54Smrg  am_missing_run="$MISSING "
26808440cca4Smrgelse
26818440cca4Smrg  am_missing_run=
268294c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
268394c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2684d1c293acSmrgfi
2685d1c293acSmrg
268604449c54Smrgif test x"${install_sh+set}" != xset; then
2687d1c293acSmrg  case $am_aux_dir in
2688d1c293acSmrg  *\ * | *\	*)
2689d1c293acSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2690d1c293acSmrg  *)
2691d1c293acSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2692d1c293acSmrg  esac
2693d1c293acSmrgfi
2694d1c293acSmrg
269504449c54Smrg# Installed binaries are usually stripped using 'strip' when the user
269604449c54Smrg# run "make install-strip".  However 'strip' might not be the right
2697d1c293acSmrg# tool to use in cross-compilation environments, therefore Automake
269804449c54Smrg# will honor the 'STRIP' environment variable to overrule this program.
2699d1c293acSmrgif test "$cross_compiling" != no; then
2700d1c293acSmrg  if test -n "$ac_tool_prefix"; then
2701d1c293acSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2702d1c293acSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
270394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
270494c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
270594c9ab7bSmrgif test ${ac_cv_prog_STRIP+y}
270694c9ab7bSmrgthen :
270794c9ab7bSmrg  printf %s "(cached) " >&6
270894c9ab7bSmrgelse $as_nop
2709d1c293acSmrg  if test -n "$STRIP"; then
2710d1c293acSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2711d1c293acSmrgelse
2712d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713d1c293acSmrgfor as_dir in $PATH
2714d1c293acSmrgdo
2715d1c293acSmrg  IFS=$as_save_IFS
271694c9ab7bSmrg  case $as_dir in #(((
271794c9ab7bSmrg    '') as_dir=./ ;;
271894c9ab7bSmrg    */) ;;
271994c9ab7bSmrg    *) as_dir=$as_dir/ ;;
272094c9ab7bSmrg  esac
2721d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
272294c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2723d1c293acSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
272494c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2725d1c293acSmrg    break 2
2726d1c293acSmrg  fi
2727d1c293acSmrgdone
2728d1c293acSmrg  done
2729d1c293acSmrgIFS=$as_save_IFS
2730d1c293acSmrg
2731d1c293acSmrgfi
2732d1c293acSmrgfi
2733d1c293acSmrgSTRIP=$ac_cv_prog_STRIP
2734d1c293acSmrgif test -n "$STRIP"; then
273594c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
273694c9ab7bSmrgprintf "%s\n" "$STRIP" >&6; }
2737d1c293acSmrgelse
273894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
273994c9ab7bSmrgprintf "%s\n" "no" >&6; }
2740d1c293acSmrgfi
2741d1c293acSmrg
2742d1c293acSmrg
2743d1c293acSmrgfi
2744d1c293acSmrgif test -z "$ac_cv_prog_STRIP"; then
2745d1c293acSmrg  ac_ct_STRIP=$STRIP
2746d1c293acSmrg  # Extract the first word of "strip", so it can be a program name with args.
2747d1c293acSmrgset dummy strip; ac_word=$2
274894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
274994c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
275094c9ab7bSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
275194c9ab7bSmrgthen :
275294c9ab7bSmrg  printf %s "(cached) " >&6
275394c9ab7bSmrgelse $as_nop
2754d1c293acSmrg  if test -n "$ac_ct_STRIP"; then
2755d1c293acSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2756d1c293acSmrgelse
2757d1c293acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758d1c293acSmrgfor as_dir in $PATH
2759d1c293acSmrgdo
2760d1c293acSmrg  IFS=$as_save_IFS
276194c9ab7bSmrg  case $as_dir in #(((
276294c9ab7bSmrg    '') as_dir=./ ;;
276394c9ab7bSmrg    */) ;;
276494c9ab7bSmrg    *) as_dir=$as_dir/ ;;
276594c9ab7bSmrg  esac
2766d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
276794c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2768d1c293acSmrg    ac_cv_prog_ac_ct_STRIP="strip"
276994c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2770d1c293acSmrg    break 2
2771d1c293acSmrg  fi
2772d1c293acSmrgdone
2773d1c293acSmrg  done
2774d1c293acSmrgIFS=$as_save_IFS
2775d1c293acSmrg
2776d1c293acSmrgfi
2777d1c293acSmrgfi
2778d1c293acSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2779d1c293acSmrgif test -n "$ac_ct_STRIP"; then
278094c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
278194c9ab7bSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2782d1c293acSmrgelse
278394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
278494c9ab7bSmrgprintf "%s\n" "no" >&6; }
2785d1c293acSmrgfi
2786d1c293acSmrg
2787d1c293acSmrg  if test "x$ac_ct_STRIP" = x; then
2788d1c293acSmrg    STRIP=":"
2789d1c293acSmrg  else
2790d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
2791d1c293acSmrgyes:)
279294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
279394c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794d1c293acSmrgac_tool_warned=yes ;;
2795d1c293acSmrgesac
2796d1c293acSmrg    STRIP=$ac_ct_STRIP
2797d1c293acSmrg  fi
2798d1c293acSmrgelse
2799d1c293acSmrg  STRIP="$ac_cv_prog_STRIP"
2800d1c293acSmrgfi
2801d1c293acSmrg
2802d1c293acSmrgfi
2803d1c293acSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2804d1c293acSmrg
280594c9ab7bSmrg
280694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
280794c9ab7bSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2808d1c293acSmrgif test -z "$MKDIR_P"; then
280994c9ab7bSmrg  if test ${ac_cv_path_mkdir+y}
281094c9ab7bSmrgthen :
281194c9ab7bSmrg  printf %s "(cached) " >&6
281294c9ab7bSmrgelse $as_nop
2813d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814d1c293acSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815d1c293acSmrgdo
2816d1c293acSmrg  IFS=$as_save_IFS
281794c9ab7bSmrg  case $as_dir in #(((
281894c9ab7bSmrg    '') as_dir=./ ;;
281994c9ab7bSmrg    */) ;;
282094c9ab7bSmrg    *) as_dir=$as_dir/ ;;
282194c9ab7bSmrg  esac
2822d1c293acSmrg    for ac_prog in mkdir gmkdir; do
2823d1c293acSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
282494c9ab7bSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
282594c9ab7bSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
282694c9ab7bSmrg	     'mkdir ('*'coreutils) '* | \
282794c9ab7bSmrg	     'BusyBox '* | \
2828d1c293acSmrg	     'mkdir (fileutils) '4.1*)
282994c9ab7bSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2830d1c293acSmrg	       break 3;;
2831d1c293acSmrg	   esac
2832d1c293acSmrg	 done
2833d1c293acSmrg       done
2834d1c293acSmrg  done
2835d1c293acSmrgIFS=$as_save_IFS
2836d1c293acSmrg
2837d1c293acSmrgfi
2838d1c293acSmrg
2839d1c293acSmrg  test -d ./--version && rmdir ./--version
284094c9ab7bSmrg  if test ${ac_cv_path_mkdir+y}; then
2841d1c293acSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
2842d1c293acSmrg  else
2843d1c293acSmrg    # As a last resort, use the slow shell script.  Don't cache a
2844d1c293acSmrg    # value for MKDIR_P within a source directory, because that will
2845d1c293acSmrg    # break other packages using the cache if that directory is
2846d1c293acSmrg    # removed, or if the value is a relative name.
2847d1c293acSmrg    MKDIR_P="$ac_install_sh -d"
2848d1c293acSmrg  fi
28498440cca4Smrgfi
285094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
285194c9ab7bSmrgprintf "%s\n" "$MKDIR_P" >&6; }
2852d1c293acSmrg
28538440cca4Smrgfor ac_prog in gawk mawk nawk awk
28548440cca4Smrgdo
28558440cca4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
28568440cca4Smrgset dummy $ac_prog; ac_word=$2
285794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
285894c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
285994c9ab7bSmrgif test ${ac_cv_prog_AWK+y}
286094c9ab7bSmrgthen :
286194c9ab7bSmrg  printf %s "(cached) " >&6
286294c9ab7bSmrgelse $as_nop
28638440cca4Smrg  if test -n "$AWK"; then
28648440cca4Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
28658440cca4Smrgelse
28668440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28678440cca4Smrgfor as_dir in $PATH
28688440cca4Smrgdo
28698440cca4Smrg  IFS=$as_save_IFS
287094c9ab7bSmrg  case $as_dir in #(((
287194c9ab7bSmrg    '') as_dir=./ ;;
287294c9ab7bSmrg    */) ;;
287394c9ab7bSmrg    *) as_dir=$as_dir/ ;;
287494c9ab7bSmrg  esac
2875d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
287694c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28778440cca4Smrg    ac_cv_prog_AWK="$ac_prog"
287894c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28798440cca4Smrg    break 2
28808440cca4Smrg  fi
28818440cca4Smrgdone
2882d1c293acSmrg  done
2883d1c293acSmrgIFS=$as_save_IFS
28848440cca4Smrg
28858440cca4Smrgfi
28868440cca4Smrgfi
28878440cca4SmrgAWK=$ac_cv_prog_AWK
28888440cca4Smrgif test -n "$AWK"; then
288994c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
289094c9ab7bSmrgprintf "%s\n" "$AWK" >&6; }
28918440cca4Smrgelse
289294c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
289394c9ab7bSmrgprintf "%s\n" "no" >&6; }
28948440cca4Smrgfi
28958440cca4Smrg
2896d1c293acSmrg
28978440cca4Smrg  test -n "$AWK" && break
28988440cca4Smrgdone
28998440cca4Smrg
290094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
290194c9ab7bSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902d1c293acSmrgset x ${MAKE-make}
290394c9ab7bSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
290494c9ab7bSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
290594c9ab7bSmrgthen :
290694c9ab7bSmrg  printf %s "(cached) " >&6
290794c9ab7bSmrgelse $as_nop
29088440cca4Smrg  cat >conftest.make <<\_ACEOF
2909d1c293acSmrgSHELL = /bin/sh
29108440cca4Smrgall:
2911d1c293acSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
29128440cca4Smrg_ACEOF
2913d1c293acSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2914d1c293acSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2915d1c293acSmrg  *@@@%%%=?*=@@@%%%*)
2916d1c293acSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2917d1c293acSmrg  *)
2918d1c293acSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2919d1c293acSmrgesac
29208440cca4Smrgrm -f conftest.make
29218440cca4Smrgfi
2922d1c293acSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
292394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
292494c9ab7bSmrgprintf "%s\n" "yes" >&6; }
29258440cca4Smrg  SET_MAKE=
29268440cca4Smrgelse
292794c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
292894c9ab7bSmrgprintf "%s\n" "no" >&6; }
29298440cca4Smrg  SET_MAKE="MAKE=${MAKE-make}"
29308440cca4Smrgfi
29318440cca4Smrg
29328440cca4Smrgrm -rf .tst 2>/dev/null
29338440cca4Smrgmkdir .tst 2>/dev/null
29348440cca4Smrgif test -d .tst; then
29358440cca4Smrg  am__leading_dot=.
29368440cca4Smrgelse
29378440cca4Smrg  am__leading_dot=_
29388440cca4Smrgfi
29398440cca4Smrgrmdir .tst 2>/dev/null
29408440cca4Smrg
294104449c54Smrg# Check whether --enable-silent-rules was given.
294294c9ab7bSmrgif test ${enable_silent_rules+y}
294394c9ab7bSmrgthen :
294404449c54Smrg  enableval=$enable_silent_rules;
294504449c54Smrgfi
294604449c54Smrg
294704449c54Smrgcase $enable_silent_rules in # (((
294804449c54Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
294904449c54Smrg   no) AM_DEFAULT_VERBOSITY=1;;
295004449c54Smrg    *) AM_DEFAULT_VERBOSITY=1;;
295104449c54Smrgesac
295204449c54Smrgam_make=${MAKE-make}
295394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
295494c9ab7bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
295594c9ab7bSmrgif test ${am_cv_make_support_nested_variables+y}
295694c9ab7bSmrgthen :
295794c9ab7bSmrg  printf %s "(cached) " >&6
295894c9ab7bSmrgelse $as_nop
295994c9ab7bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
296004449c54SmrgBAR0=false
296104449c54SmrgBAR1=true
296204449c54SmrgV=1
296304449c54Smrgam__doit:
296404449c54Smrg	@$(TRUE)
296504449c54Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
296604449c54Smrg  am_cv_make_support_nested_variables=yes
296704449c54Smrgelse
296804449c54Smrg  am_cv_make_support_nested_variables=no
296904449c54Smrgfi
297004449c54Smrgfi
297194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
297294c9ab7bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
297304449c54Smrgif test $am_cv_make_support_nested_variables = yes; then
297404449c54Smrg    AM_V='$(V)'
297504449c54Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
297604449c54Smrgelse
297704449c54Smrg  AM_V=$AM_DEFAULT_VERBOSITY
297804449c54Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
297904449c54Smrgfi
298004449c54SmrgAM_BACKSLASH='\'
298104449c54Smrg
2982d1c293acSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
2983d1c293acSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2984d1c293acSmrg  # is not polluted with repeated "-I."
2985d1c293acSmrg  am__isrc=' -I$(srcdir)'
2986d1c293acSmrg  # test to see if srcdir already configured
2987d1c293acSmrg  if test -f $srcdir/config.status; then
2988d1c293acSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2989d1c293acSmrg  fi
29908440cca4Smrgfi
29918440cca4Smrg
29928440cca4Smrg# test whether we have cygpath
29938440cca4Smrgif test -z "$CYGPATH_W"; then
29948440cca4Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
29958440cca4Smrg    CYGPATH_W='cygpath -w'
29968440cca4Smrg  else
29978440cca4Smrg    CYGPATH_W=echo
29988440cca4Smrg  fi
29998440cca4Smrgfi
30008440cca4Smrg
30018440cca4Smrg
30028440cca4Smrg# Define the identity of the package.
30038440cca4Smrg PACKAGE='xstdcmap'
300494c9ab7bSmrg VERSION='1.0.5'
30058440cca4Smrg
30068440cca4Smrg
300794c9ab7bSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
30088440cca4Smrg
30098440cca4Smrg
301094c9ab7bSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
30118440cca4Smrg
30128440cca4Smrg# Some tools Automake needs.
30138440cca4Smrg
30148440cca4SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
30158440cca4Smrg
30168440cca4Smrg
30178440cca4SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30188440cca4Smrg
30198440cca4Smrg
30208440cca4SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
30218440cca4Smrg
30228440cca4Smrg
30238440cca4SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30248440cca4Smrg
30258440cca4Smrg
30268440cca4SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
30278440cca4Smrg
302804449c54Smrg# For better backward compatibility.  To be removed once Automake 1.9.x
302904449c54Smrg# dies out for good.  For more background, see:
303094c9ab7bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
303194c9ab7bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
303204449c54Smrgmkdir_p='$(MKDIR_P)'
30338440cca4Smrg
303404449c54Smrg# We need awk for the "check" target (and possibly the TAP driver).  The
303504449c54Smrg# system "awk" is bad on some platforms.
303604449c54Smrg# Always define AMTAR for backward compatibility.  Yes, it's still used
303704449c54Smrg# in the wild :-(  We should find a proper way to deprecate it ...
303804449c54SmrgAMTAR='$${TAR-tar}'
30398440cca4Smrg
30408440cca4Smrg
304104449c54Smrg# We'll loop over all known methods to create a tar archive until one works.
304204449c54Smrg_am_tools='gnutar  pax cpio none'
30438440cca4Smrg
304404449c54Smrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
30458440cca4Smrg
30468440cca4Smrg
3047d1c293acSmrg
3048d1c293acSmrg
30498440cca4Smrg
305094c9ab7bSmrg# Variables for tags utilities; see am/tags.am
305194c9ab7bSmrgif test -z "$CTAGS"; then
305294c9ab7bSmrg  CTAGS=ctags
305394c9ab7bSmrgfi
305494c9ab7bSmrg
305594c9ab7bSmrgif test -z "$ETAGS"; then
305694c9ab7bSmrg  ETAGS=etags
305794c9ab7bSmrgfi
305894c9ab7bSmrg
305994c9ab7bSmrgif test -z "$CSCOPE"; then
306094c9ab7bSmrg  CSCOPE=cscope
306194c9ab7bSmrgfi
306294c9ab7bSmrg
306394c9ab7bSmrg
30648440cca4Smrg
306504449c54Smrg# POSIX will say in a future version that running "rm -f" with no argument
306604449c54Smrg# is OK; and we want to be able to make that assumption in our Makefile
306704449c54Smrg# recipes.  So use an aggressive probe to check that the usage we want is
306804449c54Smrg# actually supported "in the wild" to an acceptable degree.
306904449c54Smrg# See automake bug#10828.
307004449c54Smrg# To make any issue more visible, cause the running configure to be aborted
307104449c54Smrg# by default if the 'rm' program in use doesn't match our expectations; the
307204449c54Smrg# user can still override this though.
307304449c54Smrgif rm -f && rm -fr && rm -rf; then : OK; else
307404449c54Smrg  cat >&2 <<'END'
307504449c54SmrgOops!
307604449c54Smrg
307704449c54SmrgYour 'rm' program seems unable to run without file operands specified
307804449c54Smrgon the command line, even when the '-f' option is present.  This is contrary
307904449c54Smrgto the behaviour of most rm programs out there, and not conforming with
308004449c54Smrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
308104449c54Smrg
308204449c54SmrgPlease tell bug-automake@gnu.org about your system, including the value
308304449c54Smrgof your $PATH and any error possibly output before this message.  This
308404449c54Smrgcan help us improve future automake versions.
308504449c54Smrg
308604449c54SmrgEND
308704449c54Smrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
308804449c54Smrg    echo 'Configuration will proceed anyway, since you have set the' >&2
308904449c54Smrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
309004449c54Smrg    echo >&2
309104449c54Smrg  else
309204449c54Smrg    cat >&2 <<'END'
309304449c54SmrgAborting the configuration process, to ensure you take notice of the issue.
309404449c54Smrg
309504449c54SmrgYou can download and install GNU coreutils to get an 'rm' implementation
309694c9ab7bSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
30978440cca4Smrg
309804449c54SmrgIf you want to complete the configuration process using your problematic
309904449c54Smrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
310004449c54Smrgto "yes", and re-run configure.
310104449c54Smrg
310204449c54SmrgEND
310304449c54Smrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
310404449c54Smrg  fi
310504449c54Smrgfi
31068440cca4Smrg
31078440cca4Smrg
3108d1c293acSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31098440cca4Smrg
31108440cca4Smrg
31118440cca4Smrg
3112d1c293acSmrg
3113d1c293acSmrg
3114d1c293acSmrg
3115d1c293acSmrg
3116d1c293acSmrg
3117d1c293acSmrg
3118d1c293acSmrg
3119d1c293acSmrg
312094c9ab7bSmrg
312194c9ab7bSmrg
312294c9ab7bSmrg
312394c9ab7bSmrg
312494c9ab7bSmrg
312594c9ab7bSmrg
312694c9ab7bSmrg
312794c9ab7bSmrg
312894c9ab7bSmrg
3129d1c293acSmrgDEPDIR="${am__leading_dot}deps"
3130d1c293acSmrg
3131d1c293acSmrgac_config_commands="$ac_config_commands depfiles"
3132d1c293acSmrg
313394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
313494c9ab7bSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
313594c9ab7bSmrgcat > confinc.mk << 'END'
3136d1c293acSmrgam__doit:
313794c9ab7bSmrg	@echo this is the am__doit target >confinc.out
3138d1c293acSmrg.PHONY: am__doit
3139d1c293acSmrgEND
3140d1c293acSmrgam__include="#"
3141d1c293acSmrgam__quote=
314294c9ab7bSmrg# BSD make does it like this.
314394c9ab7bSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
314494c9ab7bSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
314594c9ab7bSmrgecho 'include confinc.mk # ignored' > confmf.GNU
314694c9ab7bSmrg_am_result=no
314794c9ab7bSmrgfor s in GNU BSD; do
314894c9ab7bSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
314994c9ab7bSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
315094c9ab7bSmrg   ac_status=$?
315194c9ab7bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
315294c9ab7bSmrg   (exit $ac_status); }
315394c9ab7bSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
315494c9ab7bSmrg  '0:this is the am__doit target') :
315594c9ab7bSmrg    case $s in #(
315694c9ab7bSmrg  BSD) :
315794c9ab7bSmrg    am__include='.include' am__quote='"' ;; #(
315894c9ab7bSmrg  *) :
315994c9ab7bSmrg    am__include='include' am__quote='' ;;
316094c9ab7bSmrgesac ;; #(
316194c9ab7bSmrg  *) :
3162d1c293acSmrg     ;;
316394c9ab7bSmrgesac
316494c9ab7bSmrg  if test "$am__include" != "#"; then
316594c9ab7bSmrg    _am_result="yes ($s style)"
316694c9ab7bSmrg    break
316794c9ab7bSmrg  fi
316894c9ab7bSmrgdone
316994c9ab7bSmrgrm -f confinc.* confmf.*
317094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
317194c9ab7bSmrgprintf "%s\n" "${_am_result}" >&6; }
31728440cca4Smrg
3173d1c293acSmrg# Check whether --enable-dependency-tracking was given.
317494c9ab7bSmrgif test ${enable_dependency_tracking+y}
317594c9ab7bSmrgthen :
3176d1c293acSmrg  enableval=$enable_dependency_tracking;
3177d1c293acSmrgfi
31788440cca4Smrg
3179d1c293acSmrgif test "x$enable_dependency_tracking" != xno; then
3180d1c293acSmrg  am_depcomp="$ac_aux_dir/depcomp"
3181d1c293acSmrg  AMDEPBACKSLASH='\'
318220915927Smrg  am__nodep='_no'
3183d1c293acSmrgfi
3184d1c293acSmrg if test "x$enable_dependency_tracking" != xno; then
3185d1c293acSmrg  AMDEP_TRUE=
3186d1c293acSmrg  AMDEP_FALSE='#'
3187d1c293acSmrgelse
3188d1c293acSmrg  AMDEP_TRUE='#'
3189d1c293acSmrg  AMDEP_FALSE=
3190d1c293acSmrgfi
31918440cca4Smrg
31928440cca4Smrg
31938440cca4Smrgac_ext=c
31948440cca4Smrgac_cpp='$CPP $CPPFLAGS'
31958440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31978440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
31988440cca4Smrgif test -n "$ac_tool_prefix"; then
31998440cca4Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
32008440cca4Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
320194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
320294c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
320394c9ab7bSmrgif test ${ac_cv_prog_CC+y}
320494c9ab7bSmrgthen :
320594c9ab7bSmrg  printf %s "(cached) " >&6
320694c9ab7bSmrgelse $as_nop
32078440cca4Smrg  if test -n "$CC"; then
32088440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
32098440cca4Smrgelse
32108440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32118440cca4Smrgfor as_dir in $PATH
32128440cca4Smrgdo
32138440cca4Smrg  IFS=$as_save_IFS
321494c9ab7bSmrg  case $as_dir in #(((
321594c9ab7bSmrg    '') as_dir=./ ;;
321694c9ab7bSmrg    */) ;;
321794c9ab7bSmrg    *) as_dir=$as_dir/ ;;
321894c9ab7bSmrg  esac
3219d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
322094c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32218440cca4Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
322294c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32238440cca4Smrg    break 2
32248440cca4Smrg  fi
32258440cca4Smrgdone
3226d1c293acSmrg  done
3227d1c293acSmrgIFS=$as_save_IFS
32288440cca4Smrg
32298440cca4Smrgfi
32308440cca4Smrgfi
32318440cca4SmrgCC=$ac_cv_prog_CC
32328440cca4Smrgif test -n "$CC"; then
323394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
323494c9ab7bSmrgprintf "%s\n" "$CC" >&6; }
32358440cca4Smrgelse
323694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
323794c9ab7bSmrgprintf "%s\n" "no" >&6; }
32388440cca4Smrgfi
32398440cca4Smrg
3240d1c293acSmrg
32418440cca4Smrgfi
32428440cca4Smrgif test -z "$ac_cv_prog_CC"; then
32438440cca4Smrg  ac_ct_CC=$CC
32448440cca4Smrg  # Extract the first word of "gcc", so it can be a program name with args.
32458440cca4Smrgset dummy gcc; ac_word=$2
324694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
324794c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
324894c9ab7bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
324994c9ab7bSmrgthen :
325094c9ab7bSmrg  printf %s "(cached) " >&6
325194c9ab7bSmrgelse $as_nop
32528440cca4Smrg  if test -n "$ac_ct_CC"; then
32538440cca4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32548440cca4Smrgelse
32558440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32568440cca4Smrgfor as_dir in $PATH
32578440cca4Smrgdo
32588440cca4Smrg  IFS=$as_save_IFS
325994c9ab7bSmrg  case $as_dir in #(((
326094c9ab7bSmrg    '') as_dir=./ ;;
326194c9ab7bSmrg    */) ;;
326294c9ab7bSmrg    *) as_dir=$as_dir/ ;;
326394c9ab7bSmrg  esac
3264d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
326594c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32668440cca4Smrg    ac_cv_prog_ac_ct_CC="gcc"
326794c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32688440cca4Smrg    break 2
32698440cca4Smrg  fi
32708440cca4Smrgdone
3271d1c293acSmrg  done
3272d1c293acSmrgIFS=$as_save_IFS
32738440cca4Smrg
32748440cca4Smrgfi
32758440cca4Smrgfi
32768440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
32778440cca4Smrgif test -n "$ac_ct_CC"; then
327894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
327994c9ab7bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
32808440cca4Smrgelse
328194c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
328294c9ab7bSmrgprintf "%s\n" "no" >&6; }
32838440cca4Smrgfi
32848440cca4Smrg
3285d1c293acSmrg  if test "x$ac_ct_CC" = x; then
3286d1c293acSmrg    CC=""
3287d1c293acSmrg  else
3288d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
3289d1c293acSmrgyes:)
329094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
329194c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292d1c293acSmrgac_tool_warned=yes ;;
3293d1c293acSmrgesac
3294d1c293acSmrg    CC=$ac_ct_CC
3295d1c293acSmrg  fi
32968440cca4Smrgelse
32978440cca4Smrg  CC="$ac_cv_prog_CC"
32988440cca4Smrgfi
32998440cca4Smrg
33008440cca4Smrgif test -z "$CC"; then
3301d1c293acSmrg          if test -n "$ac_tool_prefix"; then
3302d1c293acSmrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
33038440cca4Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
330494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
330594c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
330694c9ab7bSmrgif test ${ac_cv_prog_CC+y}
330794c9ab7bSmrgthen :
330894c9ab7bSmrg  printf %s "(cached) " >&6
330994c9ab7bSmrgelse $as_nop
33108440cca4Smrg  if test -n "$CC"; then
33118440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33128440cca4Smrgelse
33138440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148440cca4Smrgfor as_dir in $PATH
33158440cca4Smrgdo
33168440cca4Smrg  IFS=$as_save_IFS
331794c9ab7bSmrg  case $as_dir in #(((
331894c9ab7bSmrg    '') as_dir=./ ;;
331994c9ab7bSmrg    */) ;;
332094c9ab7bSmrg    *) as_dir=$as_dir/ ;;
332194c9ab7bSmrg  esac
3322d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
332394c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33248440cca4Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
332594c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33268440cca4Smrg    break 2
33278440cca4Smrg  fi
33288440cca4Smrgdone
3329d1c293acSmrg  done
3330d1c293acSmrgIFS=$as_save_IFS
33318440cca4Smrg
33328440cca4Smrgfi
33338440cca4Smrgfi
33348440cca4SmrgCC=$ac_cv_prog_CC
33358440cca4Smrgif test -n "$CC"; then
333694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
333794c9ab7bSmrgprintf "%s\n" "$CC" >&6; }
33388440cca4Smrgelse
333994c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
334094c9ab7bSmrgprintf "%s\n" "no" >&6; }
33418440cca4Smrgfi
33428440cca4Smrg
33438440cca4Smrg
3344d1c293acSmrg  fi
33458440cca4Smrgfi
33468440cca4Smrgif test -z "$CC"; then
33478440cca4Smrg  # Extract the first word of "cc", so it can be a program name with args.
33488440cca4Smrgset dummy cc; ac_word=$2
334994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
335094c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
335194c9ab7bSmrgif test ${ac_cv_prog_CC+y}
335294c9ab7bSmrgthen :
335394c9ab7bSmrg  printf %s "(cached) " >&6
335494c9ab7bSmrgelse $as_nop
33558440cca4Smrg  if test -n "$CC"; then
33568440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
33578440cca4Smrgelse
33588440cca4Smrg  ac_prog_rejected=no
33598440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33608440cca4Smrgfor as_dir in $PATH
33618440cca4Smrgdo
33628440cca4Smrg  IFS=$as_save_IFS
336394c9ab7bSmrg  case $as_dir in #(((
336494c9ab7bSmrg    '') as_dir=./ ;;
336594c9ab7bSmrg    */) ;;
336694c9ab7bSmrg    *) as_dir=$as_dir/ ;;
336794c9ab7bSmrg  esac
3368d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
336994c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
337094c9ab7bSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
33718440cca4Smrg       ac_prog_rejected=yes
33728440cca4Smrg       continue
33738440cca4Smrg     fi
33748440cca4Smrg    ac_cv_prog_CC="cc"
337594c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33768440cca4Smrg    break 2
33778440cca4Smrg  fi
33788440cca4Smrgdone
3379d1c293acSmrg  done
3380d1c293acSmrgIFS=$as_save_IFS
33818440cca4Smrg
33828440cca4Smrgif test $ac_prog_rejected = yes; then
33838440cca4Smrg  # We found a bogon in the path, so make sure we never use it.
33848440cca4Smrg  set dummy $ac_cv_prog_CC
33858440cca4Smrg  shift
33868440cca4Smrg  if test $# != 0; then
33878440cca4Smrg    # We chose a different compiler from the bogus one.
33888440cca4Smrg    # However, it has the same basename, so the bogon will be chosen
33898440cca4Smrg    # first if we set CC to just the basename; use the full file name.
33908440cca4Smrg    shift
339194c9ab7bSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
33928440cca4Smrg  fi
33938440cca4Smrgfi
33948440cca4Smrgfi
33958440cca4Smrgfi
33968440cca4SmrgCC=$ac_cv_prog_CC
33978440cca4Smrgif test -n "$CC"; then
339894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
339994c9ab7bSmrgprintf "%s\n" "$CC" >&6; }
34008440cca4Smrgelse
340194c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
340294c9ab7bSmrgprintf "%s\n" "no" >&6; }
34038440cca4Smrgfi
34048440cca4Smrg
3405d1c293acSmrg
34068440cca4Smrgfi
34078440cca4Smrgif test -z "$CC"; then
34088440cca4Smrg  if test -n "$ac_tool_prefix"; then
3409d1c293acSmrg  for ac_prog in cl.exe
34108440cca4Smrg  do
34118440cca4Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
34128440cca4Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
341394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
341494c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
341594c9ab7bSmrgif test ${ac_cv_prog_CC+y}
341694c9ab7bSmrgthen :
341794c9ab7bSmrg  printf %s "(cached) " >&6
341894c9ab7bSmrgelse $as_nop
34198440cca4Smrg  if test -n "$CC"; then
34208440cca4Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
34218440cca4Smrgelse
34228440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34238440cca4Smrgfor as_dir in $PATH
34248440cca4Smrgdo
34258440cca4Smrg  IFS=$as_save_IFS
342694c9ab7bSmrg  case $as_dir in #(((
342794c9ab7bSmrg    '') as_dir=./ ;;
342894c9ab7bSmrg    */) ;;
342994c9ab7bSmrg    *) as_dir=$as_dir/ ;;
343094c9ab7bSmrg  esac
3431d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
343294c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34338440cca4Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
343494c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34358440cca4Smrg    break 2
34368440cca4Smrg  fi
34378440cca4Smrgdone
3438d1c293acSmrg  done
3439d1c293acSmrgIFS=$as_save_IFS
34408440cca4Smrg
34418440cca4Smrgfi
34428440cca4Smrgfi
34438440cca4SmrgCC=$ac_cv_prog_CC
34448440cca4Smrgif test -n "$CC"; then
344594c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
344694c9ab7bSmrgprintf "%s\n" "$CC" >&6; }
34478440cca4Smrgelse
344894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
344994c9ab7bSmrgprintf "%s\n" "no" >&6; }
34508440cca4Smrgfi
34518440cca4Smrg
3452d1c293acSmrg
34538440cca4Smrg    test -n "$CC" && break
34548440cca4Smrg  done
34558440cca4Smrgfi
34568440cca4Smrgif test -z "$CC"; then
34578440cca4Smrg  ac_ct_CC=$CC
3458d1c293acSmrg  for ac_prog in cl.exe
34598440cca4Smrgdo
34608440cca4Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
34618440cca4Smrgset dummy $ac_prog; ac_word=$2
346294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
346394c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
346494c9ab7bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
346594c9ab7bSmrgthen :
346694c9ab7bSmrg  printf %s "(cached) " >&6
346794c9ab7bSmrgelse $as_nop
34688440cca4Smrg  if test -n "$ac_ct_CC"; then
34698440cca4Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
34708440cca4Smrgelse
34718440cca4Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34728440cca4Smrgfor as_dir in $PATH
34738440cca4Smrgdo
34748440cca4Smrg  IFS=$as_save_IFS
347594c9ab7bSmrg  case $as_dir in #(((
347694c9ab7bSmrg    '') as_dir=./ ;;
347794c9ab7bSmrg    */) ;;
347894c9ab7bSmrg    *) as_dir=$as_dir/ ;;
347994c9ab7bSmrg  esac
3480d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
348194c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34828440cca4Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
348394c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34848440cca4Smrg    break 2
34858440cca4Smrg  fi
34868440cca4Smrgdone
3487d1c293acSmrg  done
3488d1c293acSmrgIFS=$as_save_IFS
34898440cca4Smrg
34908440cca4Smrgfi
34918440cca4Smrgfi
34928440cca4Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
34938440cca4Smrgif test -n "$ac_ct_CC"; then
349494c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
349594c9ab7bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
34968440cca4Smrgelse
349794c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
349894c9ab7bSmrgprintf "%s\n" "no" >&6; }
34998440cca4Smrgfi
35008440cca4Smrg
3501d1c293acSmrg
35028440cca4Smrg  test -n "$ac_ct_CC" && break
35038440cca4Smrgdone
35048440cca4Smrg
3505d1c293acSmrg  if test "x$ac_ct_CC" = x; then
3506d1c293acSmrg    CC=""
3507d1c293acSmrg  else
3508d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
3509d1c293acSmrgyes:)
351094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
351194c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
351294c9ab7bSmrgac_tool_warned=yes ;;
351394c9ab7bSmrgesac
351494c9ab7bSmrg    CC=$ac_ct_CC
351594c9ab7bSmrg  fi
351694c9ab7bSmrgfi
351794c9ab7bSmrg
351894c9ab7bSmrgfi
351994c9ab7bSmrgif test -z "$CC"; then
352094c9ab7bSmrg  if test -n "$ac_tool_prefix"; then
352194c9ab7bSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
352294c9ab7bSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
352394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
352494c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
352594c9ab7bSmrgif test ${ac_cv_prog_CC+y}
352694c9ab7bSmrgthen :
352794c9ab7bSmrg  printf %s "(cached) " >&6
352894c9ab7bSmrgelse $as_nop
352994c9ab7bSmrg  if test -n "$CC"; then
353094c9ab7bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
353194c9ab7bSmrgelse
353294c9ab7bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
353394c9ab7bSmrgfor as_dir in $PATH
353494c9ab7bSmrgdo
353594c9ab7bSmrg  IFS=$as_save_IFS
353694c9ab7bSmrg  case $as_dir in #(((
353794c9ab7bSmrg    '') as_dir=./ ;;
353894c9ab7bSmrg    */) ;;
353994c9ab7bSmrg    *) as_dir=$as_dir/ ;;
354094c9ab7bSmrg  esac
354194c9ab7bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
354294c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
354394c9ab7bSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
354494c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
354594c9ab7bSmrg    break 2
354694c9ab7bSmrg  fi
354794c9ab7bSmrgdone
354894c9ab7bSmrg  done
354994c9ab7bSmrgIFS=$as_save_IFS
355094c9ab7bSmrg
355194c9ab7bSmrgfi
355294c9ab7bSmrgfi
355394c9ab7bSmrgCC=$ac_cv_prog_CC
355494c9ab7bSmrgif test -n "$CC"; then
355594c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
355694c9ab7bSmrgprintf "%s\n" "$CC" >&6; }
355794c9ab7bSmrgelse
355894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
355994c9ab7bSmrgprintf "%s\n" "no" >&6; }
356094c9ab7bSmrgfi
356194c9ab7bSmrg
356294c9ab7bSmrg
356394c9ab7bSmrgfi
356494c9ab7bSmrgif test -z "$ac_cv_prog_CC"; then
356594c9ab7bSmrg  ac_ct_CC=$CC
356694c9ab7bSmrg  # Extract the first word of "clang", so it can be a program name with args.
356794c9ab7bSmrgset dummy clang; ac_word=$2
356894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
356994c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
357094c9ab7bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
357194c9ab7bSmrgthen :
357294c9ab7bSmrg  printf %s "(cached) " >&6
357394c9ab7bSmrgelse $as_nop
357494c9ab7bSmrg  if test -n "$ac_ct_CC"; then
357594c9ab7bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
357694c9ab7bSmrgelse
357794c9ab7bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
357894c9ab7bSmrgfor as_dir in $PATH
357994c9ab7bSmrgdo
358094c9ab7bSmrg  IFS=$as_save_IFS
358194c9ab7bSmrg  case $as_dir in #(((
358294c9ab7bSmrg    '') as_dir=./ ;;
358394c9ab7bSmrg    */) ;;
358494c9ab7bSmrg    *) as_dir=$as_dir/ ;;
358594c9ab7bSmrg  esac
358694c9ab7bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
358794c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
358894c9ab7bSmrg    ac_cv_prog_ac_ct_CC="clang"
358994c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
359094c9ab7bSmrg    break 2
359194c9ab7bSmrg  fi
359294c9ab7bSmrgdone
359394c9ab7bSmrg  done
359494c9ab7bSmrgIFS=$as_save_IFS
359594c9ab7bSmrg
359694c9ab7bSmrgfi
359794c9ab7bSmrgfi
359894c9ab7bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
359994c9ab7bSmrgif test -n "$ac_ct_CC"; then
360094c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
360194c9ab7bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
360294c9ab7bSmrgelse
360394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
360494c9ab7bSmrgprintf "%s\n" "no" >&6; }
360594c9ab7bSmrgfi
360694c9ab7bSmrg
360794c9ab7bSmrg  if test "x$ac_ct_CC" = x; then
360894c9ab7bSmrg    CC=""
360994c9ab7bSmrg  else
361094c9ab7bSmrg    case $cross_compiling:$ac_tool_warned in
361194c9ab7bSmrgyes:)
361294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
361394c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614d1c293acSmrgac_tool_warned=yes ;;
3615d1c293acSmrgesac
3616d1c293acSmrg    CC=$ac_ct_CC
3617d1c293acSmrg  fi
361894c9ab7bSmrgelse
361994c9ab7bSmrg  CC="$ac_cv_prog_CC"
36208440cca4Smrgfi
36218440cca4Smrg
36228440cca4Smrgfi
36238440cca4Smrg
36248440cca4Smrg
362594c9ab7bSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
362694c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3627d1c293acSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
3628d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
36298440cca4Smrg
36308440cca4Smrg# Provide some information about the compiler.
363194c9ab7bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3632d1c293acSmrgset X $ac_compile
3633d1c293acSmrgac_compiler=$2
363494c9ab7bSmrgfor ac_option in --version -v -V -qversion -version; do
3635d1c293acSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3636d1c293acSmrgcase "(($ac_try" in
3637d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638d1c293acSmrg  *) ac_try_echo=$ac_try;;
3639d1c293acSmrgesac
3640d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
364194c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3642d1c293acSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
36438440cca4Smrg  ac_status=$?
3644d1c293acSmrg  if test -s conftest.err; then
3645d1c293acSmrg    sed '10a\
3646d1c293acSmrg... rest of stderr output deleted ...
3647d1c293acSmrg         10q' conftest.err >conftest.er1
3648d1c293acSmrg    cat conftest.er1 >&5
3649d1c293acSmrg  fi
3650d1c293acSmrg  rm -f conftest.er1 conftest.err
365194c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652d1c293acSmrg  test $ac_status = 0; }
3653d1c293acSmrgdone
36548440cca4Smrg
3655d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
36568440cca4Smrg/* end confdefs.h.  */
36578440cca4Smrg
36588440cca4Smrgint
365994c9ab7bSmrgmain (void)
36608440cca4Smrg{
36618440cca4Smrg
36628440cca4Smrg  ;
36638440cca4Smrg  return 0;
36648440cca4Smrg}
36658440cca4Smrg_ACEOF
36668440cca4Smrgac_clean_files_save=$ac_clean_files
3667d1c293acSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
36688440cca4Smrg# Try to create an executable without -o first, disregard a.out.
36698440cca4Smrg# It will help us diagnose broken compilers, and finding out an intuition
36708440cca4Smrg# of exeext.
367194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
367294c9ab7bSmrgprintf %s "checking whether the C compiler works... " >&6; }
367394c9ab7bSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3674d1c293acSmrg
3675d1c293acSmrg# The possible output files:
3676d1c293acSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3677d1c293acSmrg
3678d1c293acSmrgac_rmfiles=
3679d1c293acSmrgfor ac_file in $ac_files
3680d1c293acSmrgdo
3681d1c293acSmrg  case $ac_file in
3682d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683d1c293acSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3684d1c293acSmrg  esac
3685d1c293acSmrgdone
3686d1c293acSmrgrm -f $ac_rmfiles
3687d1c293acSmrg
3688d1c293acSmrgif { { ac_try="$ac_link_default"
3689d1c293acSmrgcase "(($ac_try" in
3690d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691d1c293acSmrg  *) ac_try_echo=$ac_try;;
3692d1c293acSmrgesac
3693d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
369494c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3695d1c293acSmrg  (eval "$ac_link_default") 2>&5
36968440cca4Smrg  ac_status=$?
369794c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
369894c9ab7bSmrg  test $ac_status = 0; }
369994c9ab7bSmrgthen :
3700d1c293acSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3701d1c293acSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3702d1c293acSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3703d1c293acSmrg# so that the user can short-circuit this test for compilers unknown to
3704d1c293acSmrg# Autoconf.
3705d1c293acSmrgfor ac_file in $ac_files ''
37068440cca4Smrgdo
37078440cca4Smrg  test -f "$ac_file" || continue
37088440cca4Smrg  case $ac_file in
3709d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
37108440cca4Smrg	;;
37118440cca4Smrg    [ab].out )
37128440cca4Smrg	# We found the default executable, but exeext='' is most
37138440cca4Smrg	# certainly right.
37148440cca4Smrg	break;;
37158440cca4Smrg    *.* )
371694c9ab7bSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3717d1c293acSmrg	then :; else
3718d1c293acSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3719d1c293acSmrg	fi
3720d1c293acSmrg	# We set ac_cv_exeext here because the later test for it is not
3721d1c293acSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3722d1c293acSmrg	# argument, so we may need to know it at that point already.
3723d1c293acSmrg	# Even if this section looks crufty: it has the advantage of
3724d1c293acSmrg	# actually working.
37258440cca4Smrg	break;;
37268440cca4Smrg    * )
37278440cca4Smrg	break;;
37288440cca4Smrg  esac
37298440cca4Smrgdone
3730d1c293acSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3731d1c293acSmrg
373294c9ab7bSmrgelse $as_nop
3733d1c293acSmrg  ac_file=''
3734d1c293acSmrgfi
373594c9ab7bSmrgif test -z "$ac_file"
373694c9ab7bSmrgthen :
373794c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
373894c9ab7bSmrgprintf "%s\n" "no" >&6; }
373994c9ab7bSmrgprintf "%s\n" "$as_me: failed program was:" >&5
37408440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5
37418440cca4Smrg
374294c9ab7bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
374394c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3744d1c293acSmrgas_fn_error 77 "C compiler cannot create executables
3745d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
374694c9ab7bSmrgelse $as_nop
374794c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
374894c9ab7bSmrgprintf "%s\n" "yes" >&6; }
374994c9ab7bSmrgfi
375094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
375194c9ab7bSmrgprintf %s "checking for C compiler default output file name... " >&6; }
375294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
375394c9ab7bSmrgprintf "%s\n" "$ac_file" >&6; }
37548440cca4Smrgac_exeext=$ac_cv_exeext
37558440cca4Smrg
3756d1c293acSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
37578440cca4Smrgac_clean_files=$ac_clean_files_save
375894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
375994c9ab7bSmrgprintf %s "checking for suffix of executables... " >&6; }
3760d1c293acSmrgif { { ac_try="$ac_link"
3761d1c293acSmrgcase "(($ac_try" in
3762d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763d1c293acSmrg  *) ac_try_echo=$ac_try;;
3764d1c293acSmrgesac
3765d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
376694c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3767d1c293acSmrg  (eval "$ac_link") 2>&5
37688440cca4Smrg  ac_status=$?
376994c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
377094c9ab7bSmrg  test $ac_status = 0; }
377194c9ab7bSmrgthen :
37728440cca4Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
37738440cca4Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
37748440cca4Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
37758440cca4Smrg# `rm'.
37768440cca4Smrgfor ac_file in conftest.exe conftest conftest.*; do
37778440cca4Smrg  test -f "$ac_file" || continue
37788440cca4Smrg  case $ac_file in
3779d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
37808440cca4Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
37818440cca4Smrg	  break;;
37828440cca4Smrg    * ) break;;
37838440cca4Smrg  esac
37848440cca4Smrgdone
378594c9ab7bSmrgelse $as_nop
378694c9ab7bSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
378794c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3788d1c293acSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3789d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
37908440cca4Smrgfi
3791d1c293acSmrgrm -f conftest conftest$ac_cv_exeext
379294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
379394c9ab7bSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
37948440cca4Smrg
37958440cca4Smrgrm -f conftest.$ac_ext
37968440cca4SmrgEXEEXT=$ac_cv_exeext
37978440cca4Smrgac_exeext=$EXEEXT
3798d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799d1c293acSmrg/* end confdefs.h.  */
3800d1c293acSmrg#include <stdio.h>
3801d1c293acSmrgint
380294c9ab7bSmrgmain (void)
3803d1c293acSmrg{
3804d1c293acSmrgFILE *f = fopen ("conftest.out", "w");
3805d1c293acSmrg return ferror (f) || fclose (f) != 0;
3806d1c293acSmrg
3807d1c293acSmrg  ;
3808d1c293acSmrg  return 0;
3809d1c293acSmrg}
38108440cca4Smrg_ACEOF
3811d1c293acSmrgac_clean_files="$ac_clean_files conftest.out"
3812d1c293acSmrg# Check that the compiler produces executables we can run.  If not, either
3813d1c293acSmrg# the compiler is broken, or we cross compile.
381494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
381594c9ab7bSmrgprintf %s "checking whether we are cross compiling... " >&6; }
3816d1c293acSmrgif test "$cross_compiling" != yes; then
3817d1c293acSmrg  { { ac_try="$ac_link"
3818d1c293acSmrgcase "(($ac_try" in
3819d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820d1c293acSmrg  *) ac_try_echo=$ac_try;;
3821d1c293acSmrgesac
3822d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
382394c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3824d1c293acSmrg  (eval "$ac_link") 2>&5
3825d1c293acSmrg  ac_status=$?
382694c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827d1c293acSmrg  test $ac_status = 0; }
3828d1c293acSmrg  if { ac_try='./conftest$ac_cv_exeext'
3829d1c293acSmrg  { { case "(($ac_try" in
3830d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831d1c293acSmrg  *) ac_try_echo=$ac_try;;
3832d1c293acSmrgesac
3833d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
383494c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3835d1c293acSmrg  (eval "$ac_try") 2>&5
3836d1c293acSmrg  ac_status=$?
383794c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838d1c293acSmrg  test $ac_status = 0; }; }; then
3839d1c293acSmrg    cross_compiling=no
3840d1c293acSmrg  else
3841d1c293acSmrg    if test "$cross_compiling" = maybe; then
3842d1c293acSmrg	cross_compiling=yes
3843d1c293acSmrg    else
384494c9ab7bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
384594c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
384694c9ab7bSmrgas_fn_error 77 "cannot run C compiled programs.
3847d1c293acSmrgIf you meant to cross compile, use \`--host'.
3848d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
3849d1c293acSmrg    fi
3850d1c293acSmrg  fi
3851d1c293acSmrgfi
385294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
385394c9ab7bSmrgprintf "%s\n" "$cross_compiling" >&6; }
3854d1c293acSmrg
3855d1c293acSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3856d1c293acSmrgac_clean_files=$ac_clean_files_save
385794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
385894c9ab7bSmrgprintf %s "checking for suffix of object files... " >&6; }
385994c9ab7bSmrgif test ${ac_cv_objext+y}
386094c9ab7bSmrgthen :
386194c9ab7bSmrg  printf %s "(cached) " >&6
386294c9ab7bSmrgelse $as_nop
3863d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38648440cca4Smrg/* end confdefs.h.  */
38658440cca4Smrg
38668440cca4Smrgint
386794c9ab7bSmrgmain (void)
38688440cca4Smrg{
38698440cca4Smrg
38708440cca4Smrg  ;
38718440cca4Smrg  return 0;
38728440cca4Smrg}
38738440cca4Smrg_ACEOF
38748440cca4Smrgrm -f conftest.o conftest.obj
3875d1c293acSmrgif { { ac_try="$ac_compile"
3876d1c293acSmrgcase "(($ac_try" in
3877d1c293acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878d1c293acSmrg  *) ac_try_echo=$ac_try;;
3879d1c293acSmrgesac
3880d1c293acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
388194c9ab7bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
3882d1c293acSmrg  (eval "$ac_compile") 2>&5
38838440cca4Smrg  ac_status=$?
388494c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
388594c9ab7bSmrg  test $ac_status = 0; }
388694c9ab7bSmrgthen :
3887d1c293acSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3888d1c293acSmrg  test -f "$ac_file" || continue;
38898440cca4Smrg  case $ac_file in
3890d1c293acSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
38918440cca4Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
38928440cca4Smrg       break;;
38938440cca4Smrg  esac
38948440cca4Smrgdone
389594c9ab7bSmrgelse $as_nop
389694c9ab7bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
38978440cca4Smrgsed 's/^/| /' conftest.$ac_ext >&5
38988440cca4Smrg
389994c9ab7bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
390094c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3901d1c293acSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3902d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
39038440cca4Smrgfi
39048440cca4Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
39058440cca4Smrgfi
390694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
390794c9ab7bSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
39088440cca4SmrgOBJEXT=$ac_cv_objext
39098440cca4Smrgac_objext=$OBJEXT
391094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
391194c9ab7bSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
391294c9ab7bSmrgif test ${ac_cv_c_compiler_gnu+y}
391394c9ab7bSmrgthen :
391494c9ab7bSmrg  printf %s "(cached) " >&6
391594c9ab7bSmrgelse $as_nop
3916d1c293acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39178440cca4Smrg/* end confdefs.h.  */
39188440cca4Smrg
39198440cca4Smrgint
392094c9ab7bSmrgmain (void)
39218440cca4Smrg{
39228440cca4Smrg#ifndef __GNUC__
39238440cca4Smrg       choke me
39248440cca4Smrg#endif
39258440cca4Smrg
39268440cca4Smrg  ;
39278440cca4Smrg  return 0;
39288440cca4Smrg}
39298440cca4Smrg_ACEOF
393094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
393194c9ab7bSmrgthen :
39328440cca4Smrg  ac_compiler_gnu=yes
393394c9ab7bSmrgelse $as_nop
3934d1c293acSmrg  ac_compiler_gnu=no
39358440cca4Smrgfi
393694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39378440cca4Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
39388440cca4Smrg
39398440cca4Smrgfi
394094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
394194c9ab7bSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
394294c9ab7bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
394394c9ab7bSmrg
3944d1c293acSmrgif test $ac_compiler_gnu = yes; then
3945d1c293acSmrg  GCC=yes
3946d1c293acSmrgelse
3947d1c293acSmrg  GCC=
3948d1c293acSmrgfi
394994c9ab7bSmrgac_test_CFLAGS=${CFLAGS+y}
39508440cca4Smrgac_save_CFLAGS=$CFLAGS
395194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
395294c9ab7bSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
395394c9ab7bSmrgif test ${ac_cv_prog_cc_g+y}
395494c9ab7bSmrgthen :
395594c9ab7bSmrg  printf %s "(cached) " >&6
395694c9ab7bSmrgelse $as_nop
3957d1c293acSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
3958d1c293acSmrg   ac_c_werror_flag=yes
3959d1c293acSmrg   ac_cv_prog_cc_g=no
3960d1c293acSmrg   CFLAGS="-g"
3961d1c293acSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39628440cca4Smrg/* end confdefs.h.  */
39638440cca4Smrg
39648440cca4Smrgint
396594c9ab7bSmrgmain (void)
39668440cca4Smrg{
39678440cca4Smrg
39688440cca4Smrg  ;
39698440cca4Smrg  return 0;
39708440cca4Smrg}
39718440cca4Smrg_ACEOF
397294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
397394c9ab7bSmrgthen :
39748440cca4Smrg  ac_cv_prog_cc_g=yes
397594c9ab7bSmrgelse $as_nop
3976d1c293acSmrg  CFLAGS=""
3977d1c293acSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978d1c293acSmrg/* end confdefs.h.  */
3979d1c293acSmrg
3980d1c293acSmrgint
398194c9ab7bSmrgmain (void)
3982d1c293acSmrg{
3983d1c293acSmrg
3984d1c293acSmrg  ;
3985d1c293acSmrg  return 0;
3986d1c293acSmrg}
3987d1c293acSmrg_ACEOF
398894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
398994c9ab7bSmrgthen :
39908440cca4Smrg
399194c9ab7bSmrgelse $as_nop
3992d1c293acSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
3993d1c293acSmrg	 CFLAGS="-g"
3994d1c293acSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995d1c293acSmrg/* end confdefs.h.  */
3996d1c293acSmrg
3997d1c293acSmrgint
399894c9ab7bSmrgmain (void)
3999d1c293acSmrg{
4000d1c293acSmrg
4001d1c293acSmrg  ;
4002d1c293acSmrg  return 0;
4003d1c293acSmrg}
4004d1c293acSmrg_ACEOF
400594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
400694c9ab7bSmrgthen :
4007d1c293acSmrg  ac_cv_prog_cc_g=yes
4008d1c293acSmrgfi
400994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4010d1c293acSmrgfi
401194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4012d1c293acSmrgfi
401394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4014d1c293acSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
4015d1c293acSmrgfi
401694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
401794c9ab7bSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
401894c9ab7bSmrgif test $ac_test_CFLAGS; then
4019d1c293acSmrg  CFLAGS=$ac_save_CFLAGS
4020d1c293acSmrgelif test $ac_cv_prog_cc_g = yes; then
4021d1c293acSmrg  if test "$GCC" = yes; then
4022d1c293acSmrg    CFLAGS="-g -O2"
4023d1c293acSmrg  else
4024d1c293acSmrg    CFLAGS="-g"
4025d1c293acSmrg  fi
4026d1c293acSmrgelse
4027d1c293acSmrg  if test "$GCC" = yes; then
40288440cca4Smrg    CFLAGS="-O2"
40298440cca4Smrg  else
40308440cca4Smrg    CFLAGS=
40318440cca4Smrg  fi
40328440cca4Smrgfi
403394c9ab7bSmrgac_prog_cc_stdc=no
403494c9ab7bSmrgif test x$ac_prog_cc_stdc = xno
403594c9ab7bSmrgthen :
403694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
403794c9ab7bSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
403894c9ab7bSmrgif test ${ac_cv_prog_cc_c11+y}
403994c9ab7bSmrgthen :
404094c9ab7bSmrg  printf %s "(cached) " >&6
404194c9ab7bSmrgelse $as_nop
404294c9ab7bSmrg  ac_cv_prog_cc_c11=no
40438440cca4Smrgac_save_CC=$CC
4044d1c293acSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
40458440cca4Smrg/* end confdefs.h.  */
404694c9ab7bSmrg$ac_c_conftest_c11_program
404794c9ab7bSmrg_ACEOF
404894c9ab7bSmrgfor ac_arg in '' -std=gnu11
404994c9ab7bSmrgdo
405094c9ab7bSmrg  CC="$ac_save_CC $ac_arg"
405194c9ab7bSmrg  if ac_fn_c_try_compile "$LINENO"
405294c9ab7bSmrgthen :
405394c9ab7bSmrg  ac_cv_prog_cc_c11=$ac_arg
405494c9ab7bSmrgfi
405594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
405694c9ab7bSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
405794c9ab7bSmrgdone
405894c9ab7bSmrgrm -f conftest.$ac_ext
405994c9ab7bSmrgCC=$ac_save_CC
406094c9ab7bSmrgfi
40618440cca4Smrg
406294c9ab7bSmrgif test "x$ac_cv_prog_cc_c11" = xno
406394c9ab7bSmrgthen :
406494c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
406594c9ab7bSmrgprintf "%s\n" "unsupported" >&6; }
406694c9ab7bSmrgelse $as_nop
406794c9ab7bSmrg  if test "x$ac_cv_prog_cc_c11" = x
406894c9ab7bSmrgthen :
406994c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
407094c9ab7bSmrgprintf "%s\n" "none needed" >&6; }
407194c9ab7bSmrgelse $as_nop
407294c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
407394c9ab7bSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
407494c9ab7bSmrg     CC="$CC $ac_cv_prog_cc_c11"
407594c9ab7bSmrgfi
407694c9ab7bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
407794c9ab7bSmrg  ac_prog_cc_stdc=c11
407894c9ab7bSmrgfi
407994c9ab7bSmrgfi
408094c9ab7bSmrgif test x$ac_prog_cc_stdc = xno
408194c9ab7bSmrgthen :
408294c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
408394c9ab7bSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
408494c9ab7bSmrgif test ${ac_cv_prog_cc_c99+y}
408594c9ab7bSmrgthen :
408694c9ab7bSmrg  printf %s "(cached) " >&6
408794c9ab7bSmrgelse $as_nop
408894c9ab7bSmrg  ac_cv_prog_cc_c99=no
408994c9ab7bSmrgac_save_CC=$CC
409094c9ab7bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
409194c9ab7bSmrg/* end confdefs.h.  */
409294c9ab7bSmrg$ac_c_conftest_c99_program
409394c9ab7bSmrg_ACEOF
409494c9ab7bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
409594c9ab7bSmrgdo
409694c9ab7bSmrg  CC="$ac_save_CC $ac_arg"
409794c9ab7bSmrg  if ac_fn_c_try_compile "$LINENO"
409894c9ab7bSmrgthen :
409994c9ab7bSmrg  ac_cv_prog_cc_c99=$ac_arg
410094c9ab7bSmrgfi
410194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
410294c9ab7bSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
410394c9ab7bSmrgdone
410494c9ab7bSmrgrm -f conftest.$ac_ext
410594c9ab7bSmrgCC=$ac_save_CC
410694c9ab7bSmrgfi
4107d1c293acSmrg
410894c9ab7bSmrgif test "x$ac_cv_prog_cc_c99" = xno
410994c9ab7bSmrgthen :
411094c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
411194c9ab7bSmrgprintf "%s\n" "unsupported" >&6; }
411294c9ab7bSmrgelse $as_nop
411394c9ab7bSmrg  if test "x$ac_cv_prog_cc_c99" = x
411494c9ab7bSmrgthen :
411594c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
411694c9ab7bSmrgprintf "%s\n" "none needed" >&6; }
411794c9ab7bSmrgelse $as_nop
411894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
411994c9ab7bSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
412094c9ab7bSmrg     CC="$CC $ac_cv_prog_cc_c99"
412194c9ab7bSmrgfi
412294c9ab7bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
412394c9ab7bSmrg  ac_prog_cc_stdc=c99
412494c9ab7bSmrgfi
412594c9ab7bSmrgfi
412694c9ab7bSmrgif test x$ac_prog_cc_stdc = xno
412794c9ab7bSmrgthen :
412894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
412994c9ab7bSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
413094c9ab7bSmrgif test ${ac_cv_prog_cc_c89+y}
413194c9ab7bSmrgthen :
413294c9ab7bSmrg  printf %s "(cached) " >&6
413394c9ab7bSmrgelse $as_nop
413494c9ab7bSmrg  ac_cv_prog_cc_c89=no
413594c9ab7bSmrgac_save_CC=$CC
413694c9ab7bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
413794c9ab7bSmrg/* end confdefs.h.  */
413894c9ab7bSmrg$ac_c_conftest_c89_program
41398440cca4Smrg_ACEOF
414094c9ab7bSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
41418440cca4Smrgdo
41428440cca4Smrg  CC="$ac_save_CC $ac_arg"
414394c9ab7bSmrg  if ac_fn_c_try_compile "$LINENO"
414494c9ab7bSmrgthen :
4145d1c293acSmrg  ac_cv_prog_cc_c89=$ac_arg
41468440cca4Smrgfi
414794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4148d1c293acSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
41498440cca4Smrgdone
4150d1c293acSmrgrm -f conftest.$ac_ext
41518440cca4SmrgCC=$ac_save_CC
41528440cca4Smrgfi
41538440cca4Smrg
415494c9ab7bSmrgif test "x$ac_cv_prog_cc_c89" = xno
415594c9ab7bSmrgthen :
415694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
415794c9ab7bSmrgprintf "%s\n" "unsupported" >&6; }
415894c9ab7bSmrgelse $as_nop
415994c9ab7bSmrg  if test "x$ac_cv_prog_cc_c89" = x
416094c9ab7bSmrgthen :
416194c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
416294c9ab7bSmrgprintf "%s\n" "none needed" >&6; }
416394c9ab7bSmrgelse $as_nop
416494c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
416594c9ab7bSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
416694c9ab7bSmrg     CC="$CC $ac_cv_prog_cc_c89"
416794c9ab7bSmrgfi
416894c9ab7bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
416994c9ab7bSmrg  ac_prog_cc_stdc=c89
417094c9ab7bSmrgfi
41718440cca4Smrgfi
41728440cca4Smrg
41738440cca4Smrgac_ext=c
41748440cca4Smrgac_cpp='$CPP $CPPFLAGS'
41758440cca4Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41768440cca4Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41778440cca4Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
41788440cca4Smrg
417994c9ab7bSmrg
418094c9ab7bSmrg  ac_ext=c
418104449c54Smrgac_cpp='$CPP $CPPFLAGS'
418204449c54Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
418304449c54Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
418404449c54Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
418594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
418694c9ab7bSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
418794c9ab7bSmrgif test ${am_cv_prog_cc_c_o+y}
418894c9ab7bSmrgthen :
418994c9ab7bSmrg  printf %s "(cached) " >&6
419094c9ab7bSmrgelse $as_nop
419104449c54Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
419204449c54Smrg/* end confdefs.h.  */
419304449c54Smrg
419404449c54Smrgint
419594c9ab7bSmrgmain (void)
419604449c54Smrg{
419704449c54Smrg
419804449c54Smrg  ;
419904449c54Smrg  return 0;
420004449c54Smrg}
420104449c54Smrg_ACEOF
420204449c54Smrg  # Make sure it works both with $CC and with simple cc.
420304449c54Smrg  # Following AC_PROG_CC_C_O, we do the test twice because some
420404449c54Smrg  # compilers refuse to overwrite an existing .o file with -o,
420504449c54Smrg  # though they will create one.
420604449c54Smrg  am_cv_prog_cc_c_o=yes
420704449c54Smrg  for am_i in 1 2; do
420804449c54Smrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
420904449c54Smrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
421004449c54Smrg   ac_status=$?
421104449c54Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
421204449c54Smrg   (exit $ac_status); } \
421304449c54Smrg         && test -f conftest2.$ac_objext; then
421404449c54Smrg      : OK
421504449c54Smrg    else
421604449c54Smrg      am_cv_prog_cc_c_o=no
421704449c54Smrg      break
421804449c54Smrg    fi
421904449c54Smrg  done
422004449c54Smrg  rm -f core conftest*
422104449c54Smrg  unset am_i
422204449c54Smrgfi
422394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
422494c9ab7bSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
422504449c54Smrgif test "$am_cv_prog_cc_c_o" != yes; then
422604449c54Smrg   # Losing compiler, so override with the script.
422704449c54Smrg   # FIXME: It is wrong to rewrite CC.
422804449c54Smrg   # But if we don't then we get into trouble of one sort or another.
422904449c54Smrg   # A longer-term fix would be to have automake use am__CC in this case,
423004449c54Smrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
423104449c54Smrg   CC="$am_aux_dir/compile $CC"
423204449c54Smrgfi
423304449c54Smrgac_ext=c
423404449c54Smrgac_cpp='$CPP $CPPFLAGS'
423504449c54Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
423604449c54Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
423704449c54Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
423804449c54Smrg
423904449c54Smrg
42408440cca4Smrgdepcc="$CC"   am_compiler_list=
42418440cca4Smrg
424294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
424394c9ab7bSmrgprintf %s "checking dependency style of $depcc... " >&6; }
424494c9ab7bSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
424594c9ab7bSmrgthen :
424694c9ab7bSmrg  printf %s "(cached) " >&6
424794c9ab7bSmrgelse $as_nop
42488440cca4Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
42498440cca4Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
42508440cca4Smrg  # making bogus files that we don't know about and never remove.  For
42518440cca4Smrg  # instance it was reported that on HP-UX the gcc test will end up
425204449c54Smrg  # making a dummy file named 'D' -- because '-MD' means "put the output
425304449c54Smrg  # in D".
425420915927Smrg  rm -rf conftest.dir
42558440cca4Smrg  mkdir conftest.dir
42568440cca4Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
42578440cca4Smrg  # using a relative directory.
42588440cca4Smrg  cp "$am_depcomp" conftest.dir
42598440cca4Smrg  cd conftest.dir
42608440cca4Smrg  # We will build objects and dependencies in a subdirectory because
42618440cca4Smrg  # it helps to detect inapplicable dependency modes.  For instance
42628440cca4Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
42638440cca4Smrg  # side effect of compilation, but ICC will put the dependencies in
42648440cca4Smrg  # the current directory while Tru64 will put them in the object
42658440cca4Smrg  # directory.
42668440cca4Smrg  mkdir sub
42678440cca4Smrg
42688440cca4Smrg  am_cv_CC_dependencies_compiler_type=none
42698440cca4Smrg  if test "$am_compiler_list" = ""; then
42708440cca4Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
42718440cca4Smrg  fi
4272d1c293acSmrg  am__universal=false
4273d1c293acSmrg  case " $depcc " in #(
4274d1c293acSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4275d1c293acSmrg     esac
4276d1c293acSmrg
42778440cca4Smrg  for depmode in $am_compiler_list; do
42788440cca4Smrg    # Setup a source with many dependencies, because some compilers
42798440cca4Smrg    # like to wrap large dependency lists on column 80 (with \), and
42808440cca4Smrg    # we should not choose a depcomp mode which is confused by this.
42818440cca4Smrg    #
42828440cca4Smrg    # We need to recreate these files for each test, as the compiler may
42838440cca4Smrg    # overwrite some of them when testing with obscure command lines.
42848440cca4Smrg    # This happens at least with the AIX C compiler.
42858440cca4Smrg    : > sub/conftest.c
42868440cca4Smrg    for i in 1 2 3 4 5 6; do
42878440cca4Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
428804449c54Smrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
428904449c54Smrg      # Solaris 10 /bin/sh.
429004449c54Smrg      echo '/* dummy */' > sub/conftst$i.h
42918440cca4Smrg    done
42928440cca4Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
42938440cca4Smrg
429404449c54Smrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4295d1c293acSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
429604449c54Smrg    # handle '-M -o', and we need to detect this.  Also, some Intel
429704449c54Smrg    # versions had trouble with output in subdirs.
4298d1c293acSmrg    am__obj=sub/conftest.${OBJEXT-o}
4299d1c293acSmrg    am__minus_obj="-o $am__obj"
43008440cca4Smrg    case $depmode in
4301d1c293acSmrg    gcc)
4302d1c293acSmrg      # This depmode causes a compiler race in universal mode.
4303d1c293acSmrg      test "$am__universal" = false || continue
4304d1c293acSmrg      ;;
43058440cca4Smrg    nosideeffect)
430604449c54Smrg      # After this tag, mechanisms are not by side-effect, so they'll
430704449c54Smrg      # only be used when explicitly requested.
43088440cca4Smrg      if test "x$enable_dependency_tracking" = xyes; then
43098440cca4Smrg	continue
43108440cca4Smrg      else
43118440cca4Smrg	break
43128440cca4Smrg      fi
43138440cca4Smrg      ;;
431420915927Smrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
431504449c54Smrg      # This compiler won't grok '-c -o', but also, the minuso test has
4316d1c293acSmrg      # not run yet.  These depmodes are late enough in the game, and
4317d1c293acSmrg      # so weak that their functioning should not be impacted.
4318d1c293acSmrg      am__obj=conftest.${OBJEXT-o}
4319d1c293acSmrg      am__minus_obj=
4320d1c293acSmrg      ;;
43218440cca4Smrg    none) break ;;
43228440cca4Smrg    esac
43238440cca4Smrg    if depmode=$depmode \
4324d1c293acSmrg       source=sub/conftest.c object=$am__obj \
432594c9ab7bSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
432694c9ab7bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
432794c9ab7bSmrg         >/dev/null 2>conftest.err &&
432894c9ab7bSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
432994c9ab7bSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
433094c9ab7bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
433194c9ab7bSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
433294c9ab7bSmrg      # icc doesn't choke on unknown options, it will just issue warnings
433394c9ab7bSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
433494c9ab7bSmrg      # that says an option was ignored or not supported.
433594c9ab7bSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
433694c9ab7bSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
433794c9ab7bSmrg      # The diagnosis changed in icc 8.0:
433894c9ab7bSmrg      #   icc: Command line remark: option '-MP' not supported
433994c9ab7bSmrg      if (grep 'ignoring option' conftest.err ||
434094c9ab7bSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
434194c9ab7bSmrg        am_cv_CC_dependencies_compiler_type=$depmode
434294c9ab7bSmrg        break
434394c9ab7bSmrg      fi
4344d1c293acSmrg    fi
4345d1c293acSmrg  done
43468440cca4Smrg
434794c9ab7bSmrg  cd ..
434894c9ab7bSmrg  rm -rf conftest.dir
4349d1c293acSmrgelse
435094c9ab7bSmrg  am_cv_CC_dependencies_compiler_type=none
4351d1c293acSmrgfi
43528440cca4Smrg
43538440cca4Smrgfi
435494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
435594c9ab7bSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
435694c9ab7bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4357d1c293acSmrg
435894c9ab7bSmrg if
435994c9ab7bSmrg  test "x$enable_dependency_tracking" != xno \
436094c9ab7bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
436194c9ab7bSmrg  am__fastdepCC_TRUE=
436294c9ab7bSmrg  am__fastdepCC_FALSE='#'
4363d1c293acSmrgelse
436494c9ab7bSmrg  am__fastdepCC_TRUE='#'
436594c9ab7bSmrg  am__fastdepCC_FALSE=
43668440cca4Smrgfi
43678440cca4Smrg
43688440cca4Smrg
43698440cca4Smrg
437094c9ab7bSmrg
437194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
437294c9ab7bSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
437394c9ab7bSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
437494c9ab7bSmrgthen :
437594c9ab7bSmrg  printf %s "(cached) " >&6
437694c9ab7bSmrgelse $as_nop
437794c9ab7bSmrg  ac_save_CFLAGS=$CFLAGS
437894c9ab7bSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
437994c9ab7bSmrg   for ac_arg in '' -fno-builtin; do
438094c9ab7bSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
438194c9ab7bSmrg     # This test program should *not* compile successfully.
438294c9ab7bSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383d1c293acSmrg/* end confdefs.h.  */
4384d1c293acSmrg
4385d1c293acSmrgint
438694c9ab7bSmrgmain (void)
4387d1c293acSmrg{
438894c9ab7bSmrg(void) strchr;
4389d1c293acSmrg  ;
4390d1c293acSmrg  return 0;
4391d1c293acSmrg}
4392d1c293acSmrg_ACEOF
439394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
439494c9ab7bSmrgthen :
4395d1c293acSmrg
439694c9ab7bSmrgelse $as_nop
439794c9ab7bSmrg  # This test program should compile successfully.
439894c9ab7bSmrg        # No library function is consistently available on
439994c9ab7bSmrg        # freestanding implementations, so test against a dummy
440094c9ab7bSmrg        # declaration.  Include always-available headers on the
440194c9ab7bSmrg        # off chance that they somehow elicit warnings.
440294c9ab7bSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403d1c293acSmrg/* end confdefs.h.  */
440494c9ab7bSmrg#include <float.h>
440594c9ab7bSmrg#include <limits.h>
440694c9ab7bSmrg#include <stdarg.h>
440794c9ab7bSmrg#include <stddef.h>
440894c9ab7bSmrgextern void ac_decl (int, char *);
4409d1c293acSmrg
4410d1c293acSmrgint
441194c9ab7bSmrgmain (void)
4412d1c293acSmrg{
441394c9ab7bSmrg(void) ac_decl (0, (char *) 0);
441494c9ab7bSmrg  (void) ac_decl;
441594c9ab7bSmrg
441694c9ab7bSmrg  ;
4417d1c293acSmrg  return 0;
4418d1c293acSmrg}
4419d1c293acSmrg_ACEOF
442094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
442194c9ab7bSmrgthen :
442294c9ab7bSmrg  if test x"$ac_arg" = x
442394c9ab7bSmrgthen :
442494c9ab7bSmrg  ac_cv_c_undeclared_builtin_options='none needed'
442594c9ab7bSmrgelse $as_nop
442694c9ab7bSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4427d1c293acSmrgfi
442894c9ab7bSmrg          break
4429d1c293acSmrgfi
443094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4431d1c293acSmrgfi
443294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
443394c9ab7bSmrg    done
443494c9ab7bSmrg    CFLAGS=$ac_save_CFLAGS
443594c9ab7bSmrg
443694c9ab7bSmrgfi
443794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
443894c9ab7bSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
443994c9ab7bSmrg  case $ac_cv_c_undeclared_builtin_options in #(
444094c9ab7bSmrg  'cannot detect') :
444194c9ab7bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
444294c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
444394c9ab7bSmrgas_fn_error $? "cannot make $CC report undeclared builtins
444494c9ab7bSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
444594c9ab7bSmrg  'none needed') :
444694c9ab7bSmrg    ac_c_undeclared_builtin_options='' ;; #(
444794c9ab7bSmrg  *) :
444894c9ab7bSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
444994c9ab7bSmrgesac
4450d1c293acSmrg
445194c9ab7bSmrgac_header= ac_cache=
445294c9ab7bSmrgfor ac_item in $ac_header_c_list
445394c9ab7bSmrgdo
445494c9ab7bSmrg  if test $ac_cache; then
445594c9ab7bSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
445694c9ab7bSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
445794c9ab7bSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
445894c9ab7bSmrg    fi
445994c9ab7bSmrg    ac_header= ac_cache=
446094c9ab7bSmrg  elif test $ac_header; then
446194c9ab7bSmrg    ac_cache=$ac_item
446294c9ab7bSmrg  else
446394c9ab7bSmrg    ac_header=$ac_item
446494c9ab7bSmrg  fi
446594c9ab7bSmrgdone
4466d1c293acSmrg
4467d1c293acSmrg
4468d1c293acSmrg
4469d1c293acSmrg
44708440cca4Smrg
44718440cca4Smrg
44728440cca4Smrg
44738440cca4Smrg
447494c9ab7bSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
447594c9ab7bSmrgthen :
447694c9ab7bSmrg
447794c9ab7bSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
447894c9ab7bSmrg
447994c9ab7bSmrgfi
448094c9ab7bSmrg
448194c9ab7bSmrg
448220915927Smrg
448320915927Smrg
448494c9ab7bSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
448594c9ab7bSmrgif test "x$ac_cv_have_decl___clang__" = xyes
448694c9ab7bSmrgthen :
448720915927Smrg  CLANGCC="yes"
448894c9ab7bSmrgelse $as_nop
448920915927Smrg  CLANGCC="no"
449020915927Smrgfi
449194c9ab7bSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
449294c9ab7bSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
449394c9ab7bSmrgthen :
449420915927Smrg  INTELCC="yes"
449594c9ab7bSmrgelse $as_nop
449620915927Smrg  INTELCC="no"
449720915927Smrgfi
449894c9ab7bSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
449994c9ab7bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
450094c9ab7bSmrgthen :
450120915927Smrg  SUNCC="yes"
450294c9ab7bSmrgelse $as_nop
450320915927Smrg  SUNCC="no"
450420915927Smrgfi
450520915927Smrg
450620915927Smrg
450720915927Smrg
450820915927Smrg
450904449c54Smrg
451004449c54Smrg
451104449c54Smrg
451204449c54Smrg
45138440cca4Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45148440cca4Smrg	if test -n "$ac_tool_prefix"; then
45158440cca4Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45168440cca4Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
451794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
451894c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
451994c9ab7bSmrgif test ${ac_cv_path_PKG_CONFIG+y}
452094c9ab7bSmrgthen :
452194c9ab7bSmrg  printf %s "(cached) " >&6
452294c9ab7bSmrgelse $as_nop
45238440cca4Smrg  case $PKG_CONFIG in
45248440cca4Smrg  [\\/]* | ?:[\\/]*)
45258440cca4Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45268440cca4Smrg  ;;
45278440cca4Smrg  *)
45288440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45298440cca4Smrgfor as_dir in $PATH
45308440cca4Smrgdo
45318440cca4Smrg  IFS=$as_save_IFS
453294c9ab7bSmrg  case $as_dir in #(((
453394c9ab7bSmrg    '') as_dir=./ ;;
453494c9ab7bSmrg    */) ;;
453594c9ab7bSmrg    *) as_dir=$as_dir/ ;;
453694c9ab7bSmrg  esac
4537d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
453894c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
453994c9ab7bSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
454094c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45418440cca4Smrg    break 2
45428440cca4Smrg  fi
45438440cca4Smrgdone
4544d1c293acSmrg  done
4545d1c293acSmrgIFS=$as_save_IFS
45468440cca4Smrg
45478440cca4Smrg  ;;
45488440cca4Smrgesac
45498440cca4Smrgfi
45508440cca4SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
45518440cca4Smrgif test -n "$PKG_CONFIG"; then
455294c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
455394c9ab7bSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
45548440cca4Smrgelse
455594c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
455694c9ab7bSmrgprintf "%s\n" "no" >&6; }
45578440cca4Smrgfi
45588440cca4Smrg
4559d1c293acSmrg
45608440cca4Smrgfi
45618440cca4Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
45628440cca4Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
45638440cca4Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
45648440cca4Smrgset dummy pkg-config; ac_word=$2
456594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
456694c9ab7bSmrgprintf %s "checking for $ac_word... " >&6; }
456794c9ab7bSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
456894c9ab7bSmrgthen :
456994c9ab7bSmrg  printf %s "(cached) " >&6
457094c9ab7bSmrgelse $as_nop
45718440cca4Smrg  case $ac_pt_PKG_CONFIG in
45728440cca4Smrg  [\\/]* | ?:[\\/]*)
45738440cca4Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45748440cca4Smrg  ;;
45758440cca4Smrg  *)
45768440cca4Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45778440cca4Smrgfor as_dir in $PATH
45788440cca4Smrgdo
45798440cca4Smrg  IFS=$as_save_IFS
458094c9ab7bSmrg  case $as_dir in #(((
458194c9ab7bSmrg    '') as_dir=./ ;;
458294c9ab7bSmrg    */) ;;
458394c9ab7bSmrg    *) as_dir=$as_dir/ ;;
458494c9ab7bSmrg  esac
4585d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
458694c9ab7bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
458794c9ab7bSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
458894c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45898440cca4Smrg    break 2
45908440cca4Smrg  fi
45918440cca4Smrgdone
4592d1c293acSmrg  done
4593d1c293acSmrgIFS=$as_save_IFS
45948440cca4Smrg
45958440cca4Smrg  ;;
45968440cca4Smrgesac
45978440cca4Smrgfi
45988440cca4Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45998440cca4Smrgif test -n "$ac_pt_PKG_CONFIG"; then
460094c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
460194c9ab7bSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
46028440cca4Smrgelse
460394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
460494c9ab7bSmrgprintf "%s\n" "no" >&6; }
46058440cca4Smrgfi
46068440cca4Smrg
4607d1c293acSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4608d1c293acSmrg    PKG_CONFIG=""
4609d1c293acSmrg  else
4610d1c293acSmrg    case $cross_compiling:$ac_tool_warned in
4611d1c293acSmrgyes:)
461294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
461394c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4614d1c293acSmrgac_tool_warned=yes ;;
4615d1c293acSmrgesac
4616d1c293acSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4617d1c293acSmrg  fi
46188440cca4Smrgelse
46198440cca4Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
46208440cca4Smrgfi
46218440cca4Smrg
46228440cca4Smrgfi
46238440cca4Smrgif test -n "$PKG_CONFIG"; then
46248440cca4Smrg	_pkg_min_version=0.9.0
462594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
462694c9ab7bSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
46278440cca4Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
462894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
462994c9ab7bSmrgprintf "%s\n" "yes" >&6; }
46308440cca4Smrg	else
463194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
463294c9ab7bSmrgprintf "%s\n" "no" >&6; }
46338440cca4Smrg		PKG_CONFIG=""
46348440cca4Smrg	fi
46358440cca4Smrgfi
46368440cca4Smrg
463794c9ab7bSmrg
463894c9ab7bSmrg  # Make sure we can run config.sub.
463994c9ab7bSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
464094c9ab7bSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
464194c9ab7bSmrg
464294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
464394c9ab7bSmrgprintf %s "checking build system type... " >&6; }
464494c9ab7bSmrgif test ${ac_cv_build+y}
464594c9ab7bSmrgthen :
464694c9ab7bSmrg  printf %s "(cached) " >&6
464794c9ab7bSmrgelse $as_nop
4648d1c293acSmrg  ac_build_alias=$build_alias
4649d1c293acSmrgtest "x$ac_build_alias" = x &&
465094c9ab7bSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4651d1c293acSmrgtest "x$ac_build_alias" = x &&
4652d1c293acSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
465394c9ab7bSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
465494c9ab7bSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4655d1c293acSmrg
4656d1c293acSmrgfi
465794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
465894c9ab7bSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4659d1c293acSmrgcase $ac_cv_build in
4660d1c293acSmrg*-*-*) ;;
4661d1c293acSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4662d1c293acSmrgesac
4663d1c293acSmrgbuild=$ac_cv_build
4664d1c293acSmrgac_save_IFS=$IFS; IFS='-'
4665d1c293acSmrgset x $ac_cv_build
4666d1c293acSmrgshift
4667d1c293acSmrgbuild_cpu=$1
4668d1c293acSmrgbuild_vendor=$2
4669d1c293acSmrgshift; shift
4670d1c293acSmrg# Remember, the first character of IFS is used to create $*,
4671d1c293acSmrg# except with old shells:
4672d1c293acSmrgbuild_os=$*
4673d1c293acSmrgIFS=$ac_save_IFS
4674d1c293acSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4675d1c293acSmrg
4676d1c293acSmrg
467794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
467894c9ab7bSmrgprintf %s "checking host system type... " >&6; }
467994c9ab7bSmrgif test ${ac_cv_host+y}
468094c9ab7bSmrgthen :
468194c9ab7bSmrg  printf %s "(cached) " >&6
468294c9ab7bSmrgelse $as_nop
4683d1c293acSmrg  if test "x$host_alias" = x; then
4684d1c293acSmrg  ac_cv_host=$ac_cv_build
4685d1c293acSmrgelse
468694c9ab7bSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
468794c9ab7bSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4688d1c293acSmrgfi
4689d1c293acSmrg
46908440cca4Smrgfi
469194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
469294c9ab7bSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4693d1c293acSmrgcase $ac_cv_host in
4694d1c293acSmrg*-*-*) ;;
4695d1c293acSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4696d1c293acSmrgesac
4697d1c293acSmrghost=$ac_cv_host
4698d1c293acSmrgac_save_IFS=$IFS; IFS='-'
4699d1c293acSmrgset x $ac_cv_host
4700d1c293acSmrgshift
4701d1c293acSmrghost_cpu=$1
4702d1c293acSmrghost_vendor=$2
4703d1c293acSmrgshift; shift
4704d1c293acSmrg# Remember, the first character of IFS is used to create $*,
4705d1c293acSmrg# except with old shells:
4706d1c293acSmrghost_os=$*
4707d1c293acSmrgIFS=$ac_save_IFS
4708d1c293acSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4709d1c293acSmrg
4710d1c293acSmrg
471194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
471294c9ab7bSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
471394c9ab7bSmrgif test ${ac_cv_path_SED+y}
471494c9ab7bSmrgthen :
471594c9ab7bSmrg  printf %s "(cached) " >&6
471694c9ab7bSmrgelse $as_nop
4717d1c293acSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4718d1c293acSmrg     for ac_i in 1 2 3 4 5 6 7; do
4719d1c293acSmrg       ac_script="$ac_script$as_nl$ac_script"
4720d1c293acSmrg     done
4721d1c293acSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4722d1c293acSmrg     { ac_script=; unset ac_script;}
4723d1c293acSmrg     if test -z "$SED"; then
4724d1c293acSmrg  ac_path_SED_found=false
4725d1c293acSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
4726d1c293acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727d1c293acSmrgfor as_dir in $PATH
4728d1c293acSmrgdo
4729d1c293acSmrg  IFS=$as_save_IFS
473094c9ab7bSmrg  case $as_dir in #(((
473194c9ab7bSmrg    '') as_dir=./ ;;
473294c9ab7bSmrg    */) ;;
473394c9ab7bSmrg    *) as_dir=$as_dir/ ;;
473494c9ab7bSmrg  esac
473594c9ab7bSmrg    for ac_prog in sed gsed
473694c9ab7bSmrg   do
4737d1c293acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
473894c9ab7bSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
473904449c54Smrg      as_fn_executable_p "$ac_path_SED" || continue
4740d1c293acSmrg# Check for GNU ac_path_SED and select it if it is found.
4741d1c293acSmrg  # Check for GNU $ac_path_SED
4742d1c293acSmrgcase `"$ac_path_SED" --version 2>&1` in
4743d1c293acSmrg*GNU*)
4744d1c293acSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4745d1c293acSmrg*)
4746d1c293acSmrg  ac_count=0
474794c9ab7bSmrg  printf %s 0123456789 >"conftest.in"
4748d1c293acSmrg  while :
4749d1c293acSmrg  do
4750d1c293acSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4751d1c293acSmrg    mv "conftest.tmp" "conftest.in"
4752d1c293acSmrg    cp "conftest.in" "conftest.nl"
475394c9ab7bSmrg    printf "%s\n" '' >> "conftest.nl"
4754d1c293acSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755d1c293acSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756d1c293acSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4757d1c293acSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4758d1c293acSmrg      # Best one so far, save it but keep looking for a better one
4759d1c293acSmrg      ac_cv_path_SED="$ac_path_SED"
4760d1c293acSmrg      ac_path_SED_max=$ac_count
47618440cca4Smrg    fi
4762d1c293acSmrg    # 10*(2^10) chars as input seems more than enough
4763d1c293acSmrg    test $ac_count -gt 10 && break
4764d1c293acSmrg  done
4765d1c293acSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766d1c293acSmrgesac
4767d1c293acSmrg
4768d1c293acSmrg      $ac_path_SED_found && break 3
4769d1c293acSmrg    done
4770d1c293acSmrg  done
4771d1c293acSmrg  done
4772d1c293acSmrgIFS=$as_save_IFS
4773d1c293acSmrg  if test -z "$ac_cv_path_SED"; then
4774d1c293acSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4775d1c293acSmrg  fi
47768440cca4Smrgelse
4777d1c293acSmrg  ac_cv_path_SED=$SED
47788440cca4Smrgfi
4779d1c293acSmrg
4780d1c293acSmrgfi
478194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
478294c9ab7bSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4783d1c293acSmrg SED="$ac_cv_path_SED"
4784d1c293acSmrg  rm -f conftest.sed
4785d1c293acSmrg
4786d1c293acSmrg
4787d1c293acSmrg
4788d1c293acSmrg
4789d1c293acSmrg
479020915927Smrg
479120915927Smrg# Check whether --enable-selective-werror was given.
479294c9ab7bSmrgif test ${enable_selective_werror+y}
479394c9ab7bSmrgthen :
479420915927Smrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
479594c9ab7bSmrgelse $as_nop
479620915927Smrg  SELECTIVE_WERROR=yes
47978440cca4Smrgfi
4798d1c293acSmrg
479920915927Smrg
480020915927Smrg
480120915927Smrg
480220915927Smrg
480320915927Smrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
480420915927Smrgif test "x$SUNCC" = "xyes"; then
480520915927Smrg    BASE_CFLAGS="-v"
480620915927Smrgelse
480720915927Smrg    BASE_CFLAGS=""
48088440cca4Smrgfi
48098440cca4Smrg
481020915927Smrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
48118440cca4Smrg
48128440cca4Smrg
48138440cca4Smrg
4814d1c293acSmrg
4815d1c293acSmrg
4816d1c293acSmrg
4817d1c293acSmrg
481820915927Smrg
481920915927Smrg
482020915927Smrg
482120915927Smrg
482220915927Smrg
482320915927Smrg
482420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
482520915927Smrg
482620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
482720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
482894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
482994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
483094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
483194c9ab7bSmrgthen :
483294c9ab7bSmrg  printf %s "(cached) " >&6
483394c9ab7bSmrgelse $as_nop
483420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
483520915927Smrg/* end confdefs.h.  */
483620915927Smrgint i;
483720915927Smrg_ACEOF
483894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
483994c9ab7bSmrgthen :
484020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
484194c9ab7bSmrgelse $as_nop
484220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
484320915927Smrgfi
484494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
484520915927Smrgfi
484694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
484794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
484820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
484920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
48508440cca4Smrgfi
48518440cca4Smrg
485220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
485320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
485420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4855d1c293acSmrg	fi
485620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
485794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
485894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
485994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
486094c9ab7bSmrgthen :
486194c9ab7bSmrg  printf %s "(cached) " >&6
486294c9ab7bSmrgelse $as_nop
486320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
486420915927Smrg/* end confdefs.h.  */
486520915927Smrgint i;
486620915927Smrg_ACEOF
486794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
486894c9ab7bSmrgthen :
486920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
487094c9ab7bSmrgelse $as_nop
487120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
487220915927Smrgfi
487394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
487420915927Smrgfi
487594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
487694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
487720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
487820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
4879d1c293acSmrgfi
48808440cca4Smrg
488120915927Smrgfound="no"
48828440cca4Smrg
488320915927Smrg	if test $found = "no" ; then
488404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
488520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
488620915927Smrg		fi
48878440cca4Smrg
488804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
488920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
489020915927Smrg		fi
48918440cca4Smrg
489220915927Smrg		CFLAGS="$CFLAGS -Wall"
48938440cca4Smrg
489494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
489594c9ab7bSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
489620915927Smrg		cacheid=xorg_cv_cc_flag__Wall
489794c9ab7bSmrg		if eval test \${$cacheid+y}
489894c9ab7bSmrgthen :
489994c9ab7bSmrg  printf %s "(cached) " >&6
490094c9ab7bSmrgelse $as_nop
490120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
490220915927Smrg/* end confdefs.h.  */
490320915927Smrgint i;
490420915927Smrgint
490594c9ab7bSmrgmain (void)
490620915927Smrg{
49078440cca4Smrg
490820915927Smrg  ;
490920915927Smrg  return 0;
491020915927Smrg}
4911d1c293acSmrg_ACEOF
491294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
491394c9ab7bSmrgthen :
491420915927Smrg  eval $cacheid=yes
491594c9ab7bSmrgelse $as_nop
491620915927Smrg  eval $cacheid=no
491720915927Smrgfi
491894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
491920915927Smrg    conftest$ac_exeext conftest.$ac_ext
492020915927Smrgfi
49218440cca4Smrg
492220915927Smrg
492320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
492420915927Smrg
492520915927Smrg		eval supported=\$$cacheid
492694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
492794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
492820915927Smrg		if test "$supported" = "yes" ; then
492920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
493020915927Smrg			found="yes"
493120915927Smrg		fi
4932d1c293acSmrg	fi
49338440cca4Smrg
49348440cca4Smrg
49358440cca4Smrg
49368440cca4Smrg
49378440cca4Smrg
49388440cca4Smrg
49398440cca4Smrg
49408440cca4Smrg
49418440cca4Smrg
49428440cca4Smrg
49438440cca4Smrg
49448440cca4Smrg
49458440cca4Smrg
49468440cca4Smrg
49478440cca4Smrg
494820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
49498440cca4Smrg
495020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
495120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
495294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
495394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
495494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
495594c9ab7bSmrgthen :
495694c9ab7bSmrg  printf %s "(cached) " >&6
495794c9ab7bSmrgelse $as_nop
495820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
495920915927Smrg/* end confdefs.h.  */
496020915927Smrgint i;
496120915927Smrg_ACEOF
496294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
496394c9ab7bSmrgthen :
496420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
496594c9ab7bSmrgelse $as_nop
496620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
49678440cca4Smrgfi
496894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49698440cca4Smrgfi
497094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
497194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
497220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
497320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
49748440cca4Smrgfi
49758440cca4Smrg
497620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
497720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
497820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
497920915927Smrg	fi
498020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
498194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
498294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
498394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
498494c9ab7bSmrgthen :
498594c9ab7bSmrg  printf %s "(cached) " >&6
498694c9ab7bSmrgelse $as_nop
498720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
498820915927Smrg/* end confdefs.h.  */
498920915927Smrgint i;
499020915927Smrg_ACEOF
499194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
499294c9ab7bSmrgthen :
499320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
499494c9ab7bSmrgelse $as_nop
499520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
49968440cca4Smrgfi
499794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49988440cca4Smrgfi
499994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
500094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
500120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
500220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
50038440cca4Smrgfi
50048440cca4Smrg
500520915927Smrgfound="no"
50068440cca4Smrg
500720915927Smrg	if test $found = "no" ; then
500804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
500920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
501020915927Smrg		fi
50118440cca4Smrg
501204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
501320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
501420915927Smrg		fi
50158440cca4Smrg
501620915927Smrg		CFLAGS="$CFLAGS -Wpointer-arith"
50178440cca4Smrg
501894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
501994c9ab7bSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
502020915927Smrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
502194c9ab7bSmrg		if eval test \${$cacheid+y}
502294c9ab7bSmrgthen :
502394c9ab7bSmrg  printf %s "(cached) " >&6
502494c9ab7bSmrgelse $as_nop
502520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
502620915927Smrg/* end confdefs.h.  */
502720915927Smrgint i;
502820915927Smrgint
502994c9ab7bSmrgmain (void)
503020915927Smrg{
50318440cca4Smrg
503220915927Smrg  ;
503320915927Smrg  return 0;
503420915927Smrg}
503520915927Smrg_ACEOF
503694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
503794c9ab7bSmrgthen :
503820915927Smrg  eval $cacheid=yes
503994c9ab7bSmrgelse $as_nop
504020915927Smrg  eval $cacheid=no
504120915927Smrgfi
504294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
504320915927Smrg    conftest$ac_exeext conftest.$ac_ext
504420915927Smrgfi
50458440cca4Smrg
50468440cca4Smrg
504720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
50488440cca4Smrg
504920915927Smrg		eval supported=\$$cacheid
505094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
505194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
505220915927Smrg		if test "$supported" = "yes" ; then
505320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
505420915927Smrg			found="yes"
505520915927Smrg		fi
505620915927Smrg	fi
50578440cca4Smrg
50588440cca4Smrg
50598440cca4Smrg
50608440cca4Smrg
50618440cca4Smrg
50628440cca4Smrg
5063d1c293acSmrg
5064d1c293acSmrg
5065d1c293acSmrg
5066d1c293acSmrg
5067d1c293acSmrg
5068d1c293acSmrg
5069d1c293acSmrg
5070d1c293acSmrg
50718440cca4Smrg
507220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
507320915927Smrg
507420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
507520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
507694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
507794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
507894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
507994c9ab7bSmrgthen :
508094c9ab7bSmrg  printf %s "(cached) " >&6
508194c9ab7bSmrgelse $as_nop
508220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
508320915927Smrg/* end confdefs.h.  */
508420915927Smrgint i;
508520915927Smrg_ACEOF
508694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
508794c9ab7bSmrgthen :
508820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
508994c9ab7bSmrgelse $as_nop
509020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
509120915927Smrgfi
509294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
509320915927Smrgfi
509494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
509594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
509620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
509720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
509820915927Smrgfi
509920915927Smrg
510020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
510120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
510220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
510320915927Smrg	fi
510420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
510594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
510694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
510794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
510894c9ab7bSmrgthen :
510994c9ab7bSmrg  printf %s "(cached) " >&6
511094c9ab7bSmrgelse $as_nop
511120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
511220915927Smrg/* end confdefs.h.  */
511320915927Smrgint i;
511420915927Smrg_ACEOF
511594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
511694c9ab7bSmrgthen :
511720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
511894c9ab7bSmrgelse $as_nop
511920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
512020915927Smrgfi
512194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
512220915927Smrgfi
512394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
512494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
512520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
512620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
512720915927Smrgfi
512820915927Smrg
512920915927Smrgfound="no"
513020915927Smrg
513120915927Smrg	if test $found = "no" ; then
513204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
513320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
513420915927Smrg		fi
513520915927Smrg
513604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
513720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
513820915927Smrg		fi
513920915927Smrg
514020915927Smrg		CFLAGS="$CFLAGS -Wmissing-declarations"
514120915927Smrg
514294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
514394c9ab7bSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
514420915927Smrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
514594c9ab7bSmrg		if eval test \${$cacheid+y}
514694c9ab7bSmrgthen :
514794c9ab7bSmrg  printf %s "(cached) " >&6
514894c9ab7bSmrgelse $as_nop
514920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
515020915927Smrg/* end confdefs.h.  */
515120915927Smrgint i;
515220915927Smrgint
515394c9ab7bSmrgmain (void)
515420915927Smrg{
515520915927Smrg
515620915927Smrg  ;
515720915927Smrg  return 0;
515820915927Smrg}
515920915927Smrg_ACEOF
516094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
516194c9ab7bSmrgthen :
516220915927Smrg  eval $cacheid=yes
516394c9ab7bSmrgelse $as_nop
516420915927Smrg  eval $cacheid=no
516520915927Smrgfi
516694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
516720915927Smrg    conftest$ac_exeext conftest.$ac_ext
516820915927Smrgfi
516920915927Smrg
517020915927Smrg
517120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
517220915927Smrg
517320915927Smrg		eval supported=\$$cacheid
517494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
517594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
517620915927Smrg		if test "$supported" = "yes" ; then
517720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
517820915927Smrg			found="yes"
517920915927Smrg		fi
518020915927Smrg	fi
518120915927Smrg
518220915927Smrg
518320915927Smrg
518420915927Smrg
518520915927Smrg
518620915927Smrg
518720915927Smrg
518820915927Smrg
518920915927Smrg
519020915927Smrg
519120915927Smrg
519220915927Smrg
519320915927Smrg
519420915927Smrg
519520915927Smrg
519620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
519720915927Smrg
519820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
519920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
520094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
520194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
520294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
520394c9ab7bSmrgthen :
520494c9ab7bSmrg  printf %s "(cached) " >&6
520594c9ab7bSmrgelse $as_nop
520620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
520720915927Smrg/* end confdefs.h.  */
520820915927Smrgint i;
520920915927Smrg_ACEOF
521094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
521194c9ab7bSmrgthen :
521220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
521394c9ab7bSmrgelse $as_nop
521420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
521520915927Smrgfi
521694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
521720915927Smrgfi
521894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
521994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
522020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
522120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
522220915927Smrgfi
522320915927Smrg
522420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
522520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
522620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
522720915927Smrg	fi
522820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
522994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
523094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
523194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
523294c9ab7bSmrgthen :
523394c9ab7bSmrg  printf %s "(cached) " >&6
523494c9ab7bSmrgelse $as_nop
523520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
523620915927Smrg/* end confdefs.h.  */
523720915927Smrgint i;
523820915927Smrg_ACEOF
523994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
524094c9ab7bSmrgthen :
524120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
524294c9ab7bSmrgelse $as_nop
524320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
524420915927Smrgfi
524594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
524620915927Smrgfi
524794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
524894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
524920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
525020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
525120915927Smrgfi
525220915927Smrg
525320915927Smrgfound="no"
525420915927Smrg
525520915927Smrg	if test $found = "no" ; then
525604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
525720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
525820915927Smrg		fi
525920915927Smrg
526004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
526120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
526220915927Smrg		fi
526320915927Smrg
526420915927Smrg		CFLAGS="$CFLAGS -Wformat=2"
526520915927Smrg
526694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
526794c9ab7bSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
526804449c54Smrg		cacheid=xorg_cv_cc_flag__Wformat_2
526994c9ab7bSmrg		if eval test \${$cacheid+y}
527094c9ab7bSmrgthen :
527194c9ab7bSmrg  printf %s "(cached) " >&6
527294c9ab7bSmrgelse $as_nop
527320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
527420915927Smrg/* end confdefs.h.  */
527520915927Smrgint i;
527620915927Smrgint
527794c9ab7bSmrgmain (void)
527820915927Smrg{
527920915927Smrg
528020915927Smrg  ;
528120915927Smrg  return 0;
528220915927Smrg}
528320915927Smrg_ACEOF
528494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
528594c9ab7bSmrgthen :
528620915927Smrg  eval $cacheid=yes
528794c9ab7bSmrgelse $as_nop
528820915927Smrg  eval $cacheid=no
528920915927Smrgfi
529094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
529120915927Smrg    conftest$ac_exeext conftest.$ac_ext
529220915927Smrgfi
529320915927Smrg
529420915927Smrg
529520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
529620915927Smrg
529720915927Smrg		eval supported=\$$cacheid
529894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
529994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
530020915927Smrg		if test "$supported" = "yes" ; then
530120915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
530220915927Smrg			found="yes"
530320915927Smrg		fi
530420915927Smrg	fi
530520915927Smrg
530620915927Smrg	if test $found = "no" ; then
530704449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
530820915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
530920915927Smrg		fi
531020915927Smrg
531104449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
531220915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
531320915927Smrg		fi
531420915927Smrg
531520915927Smrg		CFLAGS="$CFLAGS -Wformat"
531620915927Smrg
531794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
531894c9ab7bSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
531920915927Smrg		cacheid=xorg_cv_cc_flag__Wformat
532094c9ab7bSmrg		if eval test \${$cacheid+y}
532194c9ab7bSmrgthen :
532294c9ab7bSmrg  printf %s "(cached) " >&6
532394c9ab7bSmrgelse $as_nop
532420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
532520915927Smrg/* end confdefs.h.  */
532620915927Smrgint i;
532720915927Smrgint
532894c9ab7bSmrgmain (void)
532920915927Smrg{
533020915927Smrg
533120915927Smrg  ;
533220915927Smrg  return 0;
533320915927Smrg}
533420915927Smrg_ACEOF
533594c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
533694c9ab7bSmrgthen :
533720915927Smrg  eval $cacheid=yes
533894c9ab7bSmrgelse $as_nop
533920915927Smrg  eval $cacheid=no
534020915927Smrgfi
534194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
534220915927Smrg    conftest$ac_exeext conftest.$ac_ext
534320915927Smrgfi
534420915927Smrg
534520915927Smrg
534620915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
534720915927Smrg
534820915927Smrg		eval supported=\$$cacheid
534994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
535094c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
535120915927Smrg		if test "$supported" = "yes" ; then
535220915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
535320915927Smrg			found="yes"
535420915927Smrg		fi
535520915927Smrg	fi
535620915927Smrg
535720915927Smrg
535820915927Smrg
535920915927Smrg
536020915927Smrg
536120915927Smrg
536220915927Smrg
536320915927Smrg
536420915927Smrg
536520915927Smrg
536620915927Smrg
536720915927Smrg
536820915927Smrg
536920915927Smrg
537020915927Smrg
537120915927Smrg
537220915927Smrg
537320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
537420915927Smrg
537520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
537620915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
537794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
537894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
537994c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
538094c9ab7bSmrgthen :
538194c9ab7bSmrg  printf %s "(cached) " >&6
538294c9ab7bSmrgelse $as_nop
538320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
538420915927Smrg/* end confdefs.h.  */
538520915927Smrgint i;
538620915927Smrg_ACEOF
538794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
538894c9ab7bSmrgthen :
538920915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
539094c9ab7bSmrgelse $as_nop
539120915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
539220915927Smrgfi
539394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
539420915927Smrgfi
539594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
539694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
539720915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
539820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
539920915927Smrgfi
540020915927Smrg
540120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
540220915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
540320915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
540420915927Smrg	fi
540520915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
540694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
540794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
540894c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
540994c9ab7bSmrgthen :
541094c9ab7bSmrg  printf %s "(cached) " >&6
541194c9ab7bSmrgelse $as_nop
541220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
541320915927Smrg/* end confdefs.h.  */
541420915927Smrgint i;
541520915927Smrg_ACEOF
541694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
541794c9ab7bSmrgthen :
541820915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
541994c9ab7bSmrgelse $as_nop
542020915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
542120915927Smrgfi
542294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
542320915927Smrgfi
542494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
542594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
542620915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
542720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
542820915927Smrgfi
542920915927Smrg
543020915927Smrgfound="no"
543120915927Smrg
543220915927Smrg	if test $found = "no" ; then
543304449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
543420915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
543520915927Smrg		fi
543620915927Smrg
543704449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
543820915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
543920915927Smrg		fi
544020915927Smrg
544120915927Smrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
544220915927Smrg
544394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
544494c9ab7bSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
544520915927Smrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
544694c9ab7bSmrg		if eval test \${$cacheid+y}
544794c9ab7bSmrgthen :
544894c9ab7bSmrg  printf %s "(cached) " >&6
544994c9ab7bSmrgelse $as_nop
545020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
545120915927Smrg/* end confdefs.h.  */
545220915927Smrgint i;
545320915927Smrgint
545494c9ab7bSmrgmain (void)
545520915927Smrg{
545620915927Smrg
545720915927Smrg  ;
545820915927Smrg  return 0;
545920915927Smrg}
546020915927Smrg_ACEOF
546194c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
546294c9ab7bSmrgthen :
546320915927Smrg  eval $cacheid=yes
546494c9ab7bSmrgelse $as_nop
546520915927Smrg  eval $cacheid=no
546620915927Smrgfi
546794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
546820915927Smrg    conftest$ac_exeext conftest.$ac_ext
546920915927Smrgfi
547020915927Smrg
547120915927Smrg
547220915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
547320915927Smrg
547420915927Smrg		eval supported=\$$cacheid
547594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
547694c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
547720915927Smrg		if test "$supported" = "yes" ; then
547820915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
547920915927Smrg			found="yes"
548020915927Smrg		fi
548120915927Smrg	fi
548220915927Smrg
548320915927Smrg
548420915927Smrg
548520915927Smrg
548620915927Smrg
548720915927Smrg
548820915927Smrg
548920915927Smrg
549020915927Smrg
549120915927Smrg
549220915927Smrg
549320915927Smrg
549420915927Smrg
549520915927Smrg
549620915927Smrg
549720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
549820915927Smrg
549920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
550020915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
550194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
550294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
550394c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
550494c9ab7bSmrgthen :
550594c9ab7bSmrg  printf %s "(cached) " >&6
550694c9ab7bSmrgelse $as_nop
550720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
550820915927Smrg/* end confdefs.h.  */
550920915927Smrgint i;
551020915927Smrg_ACEOF
551194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
551294c9ab7bSmrgthen :
551320915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
551494c9ab7bSmrgelse $as_nop
551520915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
551620915927Smrgfi
551794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
551820915927Smrgfi
551994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
552094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
552120915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
552220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
552320915927Smrgfi
552420915927Smrg
552520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
552620915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
552720915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
552820915927Smrg	fi
552920915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
553094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
553194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
553294c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
553394c9ab7bSmrgthen :
553494c9ab7bSmrg  printf %s "(cached) " >&6
553594c9ab7bSmrgelse $as_nop
553620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
553720915927Smrg/* end confdefs.h.  */
553820915927Smrgint i;
553920915927Smrg_ACEOF
554094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
554194c9ab7bSmrgthen :
554220915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
554394c9ab7bSmrgelse $as_nop
554420915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
554520915927Smrgfi
554694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
554720915927Smrgfi
554894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
554994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
555020915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
555120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
555220915927Smrgfi
555320915927Smrg
555420915927Smrgfound="no"
555520915927Smrg
555620915927Smrg	if test $found = "no" ; then
555704449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
555820915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
555920915927Smrg		fi
556020915927Smrg
556104449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
556220915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
556320915927Smrg		fi
556420915927Smrg
556520915927Smrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
556620915927Smrg
556794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
556894c9ab7bSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
556920915927Smrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
557094c9ab7bSmrg		if eval test \${$cacheid+y}
557194c9ab7bSmrgthen :
557294c9ab7bSmrg  printf %s "(cached) " >&6
557394c9ab7bSmrgelse $as_nop
557420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
557520915927Smrg/* end confdefs.h.  */
557620915927Smrgint i;
557720915927Smrgint
557894c9ab7bSmrgmain (void)
557920915927Smrg{
558020915927Smrg
558120915927Smrg  ;
558220915927Smrg  return 0;
558320915927Smrg}
558420915927Smrg_ACEOF
558594c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
558694c9ab7bSmrgthen :
558720915927Smrg  eval $cacheid=yes
558894c9ab7bSmrgelse $as_nop
558920915927Smrg  eval $cacheid=no
559020915927Smrgfi
559194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
559220915927Smrg    conftest$ac_exeext conftest.$ac_ext
559320915927Smrgfi
559420915927Smrg
559520915927Smrg
559620915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
559720915927Smrg
559820915927Smrg		eval supported=\$$cacheid
559994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
560094c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
560120915927Smrg		if test "$supported" = "yes" ; then
560220915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
560320915927Smrg			found="yes"
560420915927Smrg		fi
560520915927Smrg	fi
560620915927Smrg
560720915927Smrg
560820915927Smrg
560920915927Smrg
561020915927Smrg
561120915927Smrg
561220915927Smrg
561320915927Smrg
561420915927Smrg
561520915927Smrg
561620915927Smrg
561720915927Smrg
561820915927Smrg
561920915927Smrg
562020915927Smrg
562120915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
562220915927Smrg
562320915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
562420915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
562594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
562694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
562794c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
562894c9ab7bSmrgthen :
562994c9ab7bSmrg  printf %s "(cached) " >&6
563094c9ab7bSmrgelse $as_nop
563120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
563220915927Smrg/* end confdefs.h.  */
563320915927Smrgint i;
563420915927Smrg_ACEOF
563594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
563694c9ab7bSmrgthen :
563720915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
563894c9ab7bSmrgelse $as_nop
563920915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
564020915927Smrgfi
564194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
564220915927Smrgfi
564394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
564494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
564520915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
564620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
564720915927Smrgfi
564820915927Smrg
564920915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
565020915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
565120915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
565220915927Smrg	fi
565320915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
565494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
565594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
565694c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
565794c9ab7bSmrgthen :
565894c9ab7bSmrg  printf %s "(cached) " >&6
565994c9ab7bSmrgelse $as_nop
566020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
566120915927Smrg/* end confdefs.h.  */
566220915927Smrgint i;
566320915927Smrg_ACEOF
566494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
566594c9ab7bSmrgthen :
566620915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
566794c9ab7bSmrgelse $as_nop
566820915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
566920915927Smrgfi
567094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
567120915927Smrgfi
567294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
567394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
567420915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
567520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
567620915927Smrgfi
567720915927Smrg
567820915927Smrgfound="no"
567920915927Smrg
568020915927Smrg	if test $found = "no" ; then
568104449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
568220915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
568320915927Smrg		fi
568420915927Smrg
568504449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
568620915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
568720915927Smrg		fi
568820915927Smrg
568920915927Smrg		CFLAGS="$CFLAGS -Wnested-externs"
569020915927Smrg
569194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
569294c9ab7bSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
569320915927Smrg		cacheid=xorg_cv_cc_flag__Wnested_externs
569494c9ab7bSmrg		if eval test \${$cacheid+y}
569594c9ab7bSmrgthen :
569694c9ab7bSmrg  printf %s "(cached) " >&6
569794c9ab7bSmrgelse $as_nop
569820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
569920915927Smrg/* end confdefs.h.  */
570020915927Smrgint i;
570120915927Smrgint
570294c9ab7bSmrgmain (void)
570320915927Smrg{
570420915927Smrg
570520915927Smrg  ;
570620915927Smrg  return 0;
570720915927Smrg}
570820915927Smrg_ACEOF
570994c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
571094c9ab7bSmrgthen :
571120915927Smrg  eval $cacheid=yes
571294c9ab7bSmrgelse $as_nop
571320915927Smrg  eval $cacheid=no
571420915927Smrgfi
571594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
571620915927Smrg    conftest$ac_exeext conftest.$ac_ext
571720915927Smrgfi
571820915927Smrg
571920915927Smrg
572020915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
572120915927Smrg
572220915927Smrg		eval supported=\$$cacheid
572394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
572494c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
572520915927Smrg		if test "$supported" = "yes" ; then
572620915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
572720915927Smrg			found="yes"
572820915927Smrg		fi
572920915927Smrg	fi
573020915927Smrg
573120915927Smrg
573220915927Smrg
573320915927Smrg
573420915927Smrg
573520915927Smrg
573620915927Smrg
573720915927Smrg
573820915927Smrg
573920915927Smrg
574020915927Smrg
574120915927Smrg
574220915927Smrg
574320915927Smrg
574420915927Smrg
574520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
574620915927Smrg
574720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
574820915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
574994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
575094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
575194c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
575294c9ab7bSmrgthen :
575394c9ab7bSmrg  printf %s "(cached) " >&6
575494c9ab7bSmrgelse $as_nop
575520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
575620915927Smrg/* end confdefs.h.  */
575720915927Smrgint i;
575820915927Smrg_ACEOF
575994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
576094c9ab7bSmrgthen :
576120915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
576294c9ab7bSmrgelse $as_nop
576320915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
576420915927Smrgfi
576594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
576620915927Smrgfi
576794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
576894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
576920915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
577020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
577120915927Smrgfi
577220915927Smrg
577320915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
577420915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
577520915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
577620915927Smrg	fi
577720915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
577894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
577994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
578094c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
578194c9ab7bSmrgthen :
578294c9ab7bSmrg  printf %s "(cached) " >&6
578394c9ab7bSmrgelse $as_nop
578420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
578520915927Smrg/* end confdefs.h.  */
578620915927Smrgint i;
578720915927Smrg_ACEOF
578894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
578994c9ab7bSmrgthen :
579020915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
579194c9ab7bSmrgelse $as_nop
579220915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
579320915927Smrgfi
579494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
579520915927Smrgfi
579694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
579794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
579820915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
579920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
580020915927Smrgfi
580120915927Smrg
580220915927Smrgfound="no"
580320915927Smrg
580420915927Smrg	if test $found = "no" ; then
580504449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
580620915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
580720915927Smrg		fi
580820915927Smrg
580904449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
581020915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
581120915927Smrg		fi
581220915927Smrg
581320915927Smrg		CFLAGS="$CFLAGS -Wbad-function-cast"
581420915927Smrg
581594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
581694c9ab7bSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
581720915927Smrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
581894c9ab7bSmrg		if eval test \${$cacheid+y}
581994c9ab7bSmrgthen :
582094c9ab7bSmrg  printf %s "(cached) " >&6
582194c9ab7bSmrgelse $as_nop
582220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
582320915927Smrg/* end confdefs.h.  */
582420915927Smrgint i;
582520915927Smrgint
582694c9ab7bSmrgmain (void)
582720915927Smrg{
582820915927Smrg
582920915927Smrg  ;
583020915927Smrg  return 0;
583120915927Smrg}
583220915927Smrg_ACEOF
583394c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
583494c9ab7bSmrgthen :
583520915927Smrg  eval $cacheid=yes
583694c9ab7bSmrgelse $as_nop
583720915927Smrg  eval $cacheid=no
583820915927Smrgfi
583994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
584020915927Smrg    conftest$ac_exeext conftest.$ac_ext
584120915927Smrgfi
584220915927Smrg
584320915927Smrg
584420915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
584520915927Smrg
584620915927Smrg		eval supported=\$$cacheid
584794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
584894c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
584920915927Smrg		if test "$supported" = "yes" ; then
585020915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
585120915927Smrg			found="yes"
585220915927Smrg		fi
585320915927Smrg	fi
585420915927Smrg
585520915927Smrg
585620915927Smrg
585720915927Smrg
585820915927Smrg
585920915927Smrg
586020915927Smrg
586120915927Smrg
586220915927Smrg
586320915927Smrg
586420915927Smrg
586520915927Smrg
586620915927Smrg
586720915927Smrg
586820915927Smrg
586920915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
587020915927Smrg
587120915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
587220915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
587394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
587494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
587594c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
587694c9ab7bSmrgthen :
587794c9ab7bSmrg  printf %s "(cached) " >&6
587894c9ab7bSmrgelse $as_nop
587920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
588020915927Smrg/* end confdefs.h.  */
588120915927Smrgint i;
588220915927Smrg_ACEOF
588394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
588494c9ab7bSmrgthen :
588520915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
588694c9ab7bSmrgelse $as_nop
588720915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
588820915927Smrgfi
588994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
589020915927Smrgfi
589194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
589294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
589320915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
589420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
589520915927Smrgfi
589620915927Smrg
589720915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
589820915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
589920915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
590020915927Smrg	fi
590120915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
590294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
590394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
590494c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
590594c9ab7bSmrgthen :
590694c9ab7bSmrg  printf %s "(cached) " >&6
590794c9ab7bSmrgelse $as_nop
590820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
590920915927Smrg/* end confdefs.h.  */
591020915927Smrgint i;
591120915927Smrg_ACEOF
591294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
591394c9ab7bSmrgthen :
591420915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
591594c9ab7bSmrgelse $as_nop
591620915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
591720915927Smrgfi
591894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
591920915927Smrgfi
592094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
592194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
592220915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
592320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
592420915927Smrgfi
592520915927Smrg
592620915927Smrgfound="no"
592720915927Smrg
592820915927Smrg	if test $found = "no" ; then
592904449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
593020915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
593120915927Smrg		fi
593220915927Smrg
593304449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
593420915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
593520915927Smrg		fi
593620915927Smrg
593720915927Smrg		CFLAGS="$CFLAGS -Wold-style-definition"
593820915927Smrg
593994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
594094c9ab7bSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
594120915927Smrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
594294c9ab7bSmrg		if eval test \${$cacheid+y}
594394c9ab7bSmrgthen :
594494c9ab7bSmrg  printf %s "(cached) " >&6
594594c9ab7bSmrgelse $as_nop
594620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
594720915927Smrg/* end confdefs.h.  */
594820915927Smrgint i;
594920915927Smrgint
595094c9ab7bSmrgmain (void)
595120915927Smrg{
595220915927Smrg
595320915927Smrg  ;
595420915927Smrg  return 0;
595520915927Smrg}
595620915927Smrg_ACEOF
595794c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
595894c9ab7bSmrgthen :
595920915927Smrg  eval $cacheid=yes
596094c9ab7bSmrgelse $as_nop
596120915927Smrg  eval $cacheid=no
596220915927Smrgfi
596394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
596420915927Smrg    conftest$ac_exeext conftest.$ac_ext
596520915927Smrgfi
596620915927Smrg
596720915927Smrg
596820915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
596920915927Smrg
597020915927Smrg		eval supported=\$$cacheid
597194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
597294c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
597320915927Smrg		if test "$supported" = "yes" ; then
597420915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
597520915927Smrg			found="yes"
597620915927Smrg		fi
597720915927Smrg	fi
597820915927Smrg
597904449c54Smrg	if test $found = "no" ; then
598004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
598104449c54Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
598204449c54Smrg		fi
598304449c54Smrg
598404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
598504449c54Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
598604449c54Smrg		fi
598704449c54Smrg
598804449c54Smrg		CFLAGS="$CFLAGS -fd"
598904449c54Smrg
599094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
599194c9ab7bSmrgprintf %s "checking if $CC supports -fd... " >&6; }
599204449c54Smrg		cacheid=xorg_cv_cc_flag__fd
599394c9ab7bSmrg		if eval test \${$cacheid+y}
599494c9ab7bSmrgthen :
599594c9ab7bSmrg  printf %s "(cached) " >&6
599694c9ab7bSmrgelse $as_nop
599704449c54Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
599804449c54Smrg/* end confdefs.h.  */
599904449c54Smrgint i;
600004449c54Smrgint
600194c9ab7bSmrgmain (void)
600204449c54Smrg{
600304449c54Smrg
600404449c54Smrg  ;
600504449c54Smrg  return 0;
600604449c54Smrg}
600704449c54Smrg_ACEOF
600894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
600994c9ab7bSmrgthen :
601004449c54Smrg  eval $cacheid=yes
601194c9ab7bSmrgelse $as_nop
601204449c54Smrg  eval $cacheid=no
601304449c54Smrgfi
601494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
601504449c54Smrg    conftest$ac_exeext conftest.$ac_ext
601604449c54Smrgfi
601704449c54Smrg
601804449c54Smrg
601904449c54Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
602004449c54Smrg
602104449c54Smrg		eval supported=\$$cacheid
602294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
602394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
602404449c54Smrg		if test "$supported" = "yes" ; then
602504449c54Smrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
602604449c54Smrg			found="yes"
602704449c54Smrg		fi
602804449c54Smrg	fi
602904449c54Smrg
603020915927Smrg
603120915927Smrg
603220915927Smrg
603320915927Smrg
603420915927Smrg
603520915927Smrg
603620915927Smrg
603720915927Smrg
603820915927Smrg
603920915927Smrg
604020915927Smrg
604120915927Smrg
604220915927Smrg
604320915927Smrg
604420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
604520915927Smrg
604620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
604720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
604894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
604994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
605094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
605194c9ab7bSmrgthen :
605294c9ab7bSmrg  printf %s "(cached) " >&6
605394c9ab7bSmrgelse $as_nop
605420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
605520915927Smrg/* end confdefs.h.  */
605620915927Smrgint i;
605720915927Smrg_ACEOF
605894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
605994c9ab7bSmrgthen :
606020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
606194c9ab7bSmrgelse $as_nop
606220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
606320915927Smrgfi
606494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
606520915927Smrgfi
606694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
606794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
606820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
606920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
607020915927Smrgfi
607120915927Smrg
607220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
607320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
607420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
607520915927Smrg	fi
607620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
607794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
607894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
607994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
608094c9ab7bSmrgthen :
608194c9ab7bSmrg  printf %s "(cached) " >&6
608294c9ab7bSmrgelse $as_nop
608320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
608420915927Smrg/* end confdefs.h.  */
608520915927Smrgint i;
608620915927Smrg_ACEOF
608794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
608894c9ab7bSmrgthen :
608920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
609094c9ab7bSmrgelse $as_nop
609120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
609220915927Smrgfi
609394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
609420915927Smrgfi
609594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
609694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
609720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
609820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
609920915927Smrgfi
610020915927Smrg
610120915927Smrgfound="no"
610220915927Smrg
610320915927Smrg	if test $found = "no" ; then
610404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
610520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
610620915927Smrg		fi
610720915927Smrg
610804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
610920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
611020915927Smrg		fi
611120915927Smrg
611220915927Smrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
611320915927Smrg
611494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
611594c9ab7bSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
611620915927Smrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
611794c9ab7bSmrg		if eval test \${$cacheid+y}
611894c9ab7bSmrgthen :
611994c9ab7bSmrg  printf %s "(cached) " >&6
612094c9ab7bSmrgelse $as_nop
612120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
612220915927Smrg/* end confdefs.h.  */
612320915927Smrgint i;
612420915927Smrgint
612594c9ab7bSmrgmain (void)
612620915927Smrg{
612720915927Smrg
612820915927Smrg  ;
612920915927Smrg  return 0;
613020915927Smrg}
613120915927Smrg_ACEOF
613294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
613394c9ab7bSmrgthen :
613420915927Smrg  eval $cacheid=yes
613594c9ab7bSmrgelse $as_nop
613620915927Smrg  eval $cacheid=no
613720915927Smrgfi
613894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
613920915927Smrg    conftest$ac_exeext conftest.$ac_ext
614020915927Smrgfi
614120915927Smrg
614220915927Smrg
614320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
614420915927Smrg
614520915927Smrg		eval supported=\$$cacheid
614694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
614794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
614820915927Smrg		if test "$supported" = "yes" ; then
614920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
615020915927Smrg			found="yes"
615120915927Smrg		fi
615220915927Smrg	fi
615320915927Smrg
615420915927Smrg
615520915927Smrg
615620915927Smrg
615720915927Smrg
615820915927Smrg# This chunk adds additional warnings that could catch undesired effects.
615920915927Smrg
616020915927Smrg
616120915927Smrg
616220915927Smrg
616320915927Smrg
616420915927Smrg
616520915927Smrg
616620915927Smrg
616720915927Smrg
616820915927Smrg
616920915927Smrg
617020915927Smrg
617120915927Smrg
617220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
617320915927Smrg
617420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
617520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
617694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
617794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
617894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
617994c9ab7bSmrgthen :
618094c9ab7bSmrg  printf %s "(cached) " >&6
618194c9ab7bSmrgelse $as_nop
618220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
618320915927Smrg/* end confdefs.h.  */
618420915927Smrgint i;
618520915927Smrg_ACEOF
618694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
618794c9ab7bSmrgthen :
618820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
618994c9ab7bSmrgelse $as_nop
619020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
619120915927Smrgfi
619294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
619320915927Smrgfi
619494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
619594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
619620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
619720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
619820915927Smrgfi
619920915927Smrg
620020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
620120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
620220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
620320915927Smrg	fi
620420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
620594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
620694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
620794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
620894c9ab7bSmrgthen :
620994c9ab7bSmrg  printf %s "(cached) " >&6
621094c9ab7bSmrgelse $as_nop
621120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
621220915927Smrg/* end confdefs.h.  */
621320915927Smrgint i;
621420915927Smrg_ACEOF
621594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
621694c9ab7bSmrgthen :
621720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
621894c9ab7bSmrgelse $as_nop
621920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
622020915927Smrgfi
622194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
622220915927Smrgfi
622394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
622494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
622520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
622620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
622720915927Smrgfi
622820915927Smrg
622920915927Smrgfound="no"
623020915927Smrg
623120915927Smrg	if test $found = "no" ; then
623204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
623320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
623420915927Smrg		fi
623520915927Smrg
623604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
623720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
623820915927Smrg		fi
623920915927Smrg
624020915927Smrg		CFLAGS="$CFLAGS -Wunused"
624120915927Smrg
624294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
624394c9ab7bSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
624420915927Smrg		cacheid=xorg_cv_cc_flag__Wunused
624594c9ab7bSmrg		if eval test \${$cacheid+y}
624694c9ab7bSmrgthen :
624794c9ab7bSmrg  printf %s "(cached) " >&6
624894c9ab7bSmrgelse $as_nop
624920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
625020915927Smrg/* end confdefs.h.  */
625120915927Smrgint i;
625220915927Smrgint
625394c9ab7bSmrgmain (void)
625420915927Smrg{
625520915927Smrg
625620915927Smrg  ;
625720915927Smrg  return 0;
625820915927Smrg}
625920915927Smrg_ACEOF
626094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
626194c9ab7bSmrgthen :
626220915927Smrg  eval $cacheid=yes
626394c9ab7bSmrgelse $as_nop
626420915927Smrg  eval $cacheid=no
626520915927Smrgfi
626694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
626720915927Smrg    conftest$ac_exeext conftest.$ac_ext
626820915927Smrgfi
626920915927Smrg
627020915927Smrg
627120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
627220915927Smrg
627320915927Smrg		eval supported=\$$cacheid
627494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
627594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
627620915927Smrg		if test "$supported" = "yes" ; then
627720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
627820915927Smrg			found="yes"
627920915927Smrg		fi
628020915927Smrg	fi
628120915927Smrg
628220915927Smrg
628320915927Smrg
628420915927Smrg
628520915927Smrg
628620915927Smrg
628720915927Smrg
628820915927Smrg
628920915927Smrg
629020915927Smrg
629120915927Smrg
629220915927Smrg
629320915927Smrg
629420915927Smrg
629520915927Smrg
629620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
629720915927Smrg
629820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
629920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
630094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
630194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
630294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
630394c9ab7bSmrgthen :
630494c9ab7bSmrg  printf %s "(cached) " >&6
630594c9ab7bSmrgelse $as_nop
630620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
630720915927Smrg/* end confdefs.h.  */
630820915927Smrgint i;
630920915927Smrg_ACEOF
631094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
631194c9ab7bSmrgthen :
631220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
631394c9ab7bSmrgelse $as_nop
631420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
631520915927Smrgfi
631694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
631720915927Smrgfi
631894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
631994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
632020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
632120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
632220915927Smrgfi
632320915927Smrg
632420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
632520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
632620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
632720915927Smrg	fi
632820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
632994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
633094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
633194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
633294c9ab7bSmrgthen :
633394c9ab7bSmrg  printf %s "(cached) " >&6
633494c9ab7bSmrgelse $as_nop
633520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
633620915927Smrg/* end confdefs.h.  */
633720915927Smrgint i;
633820915927Smrg_ACEOF
633994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
634094c9ab7bSmrgthen :
634120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
634294c9ab7bSmrgelse $as_nop
634320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
634420915927Smrgfi
634594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
634620915927Smrgfi
634794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
634894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
634920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
635020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
635120915927Smrgfi
635220915927Smrg
635320915927Smrgfound="no"
635420915927Smrg
635520915927Smrg	if test $found = "no" ; then
635604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
635720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
635820915927Smrg		fi
635920915927Smrg
636004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
636120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
636220915927Smrg		fi
636320915927Smrg
636420915927Smrg		CFLAGS="$CFLAGS -Wuninitialized"
636520915927Smrg
636694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
636794c9ab7bSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
636820915927Smrg		cacheid=xorg_cv_cc_flag__Wuninitialized
636994c9ab7bSmrg		if eval test \${$cacheid+y}
637094c9ab7bSmrgthen :
637194c9ab7bSmrg  printf %s "(cached) " >&6
637294c9ab7bSmrgelse $as_nop
637320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
637420915927Smrg/* end confdefs.h.  */
637520915927Smrgint i;
637620915927Smrgint
637794c9ab7bSmrgmain (void)
637820915927Smrg{
637920915927Smrg
638020915927Smrg  ;
638120915927Smrg  return 0;
638220915927Smrg}
638320915927Smrg_ACEOF
638494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
638594c9ab7bSmrgthen :
638620915927Smrg  eval $cacheid=yes
638794c9ab7bSmrgelse $as_nop
638820915927Smrg  eval $cacheid=no
638920915927Smrgfi
639094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
639120915927Smrg    conftest$ac_exeext conftest.$ac_ext
639220915927Smrgfi
639320915927Smrg
639420915927Smrg
639520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
639620915927Smrg
639720915927Smrg		eval supported=\$$cacheid
639894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
639994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
640020915927Smrg		if test "$supported" = "yes" ; then
640120915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
640220915927Smrg			found="yes"
640320915927Smrg		fi
640420915927Smrg	fi
640520915927Smrg
640620915927Smrg
640720915927Smrg
640820915927Smrg
640920915927Smrg
641020915927Smrg
641120915927Smrg
641220915927Smrg
641320915927Smrg
641420915927Smrg
641520915927Smrg
641620915927Smrg
641720915927Smrg
641820915927Smrg
641920915927Smrg
642020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
642120915927Smrg
642220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
642320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
642494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
642594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
642694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
642794c9ab7bSmrgthen :
642894c9ab7bSmrg  printf %s "(cached) " >&6
642994c9ab7bSmrgelse $as_nop
643020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
643120915927Smrg/* end confdefs.h.  */
643220915927Smrgint i;
643320915927Smrg_ACEOF
643494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
643594c9ab7bSmrgthen :
643620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
643794c9ab7bSmrgelse $as_nop
643820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
643920915927Smrgfi
644094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
644120915927Smrgfi
644294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
644394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
644420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
644520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
644620915927Smrgfi
644720915927Smrg
644820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
644920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
645020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
645120915927Smrg	fi
645220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
645394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
645494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
645594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
645694c9ab7bSmrgthen :
645794c9ab7bSmrg  printf %s "(cached) " >&6
645894c9ab7bSmrgelse $as_nop
645920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
646020915927Smrg/* end confdefs.h.  */
646120915927Smrgint i;
646220915927Smrg_ACEOF
646394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
646494c9ab7bSmrgthen :
646520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
646694c9ab7bSmrgelse $as_nop
646720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
646820915927Smrgfi
646994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
647020915927Smrgfi
647194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
647294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
647320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
647420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
647520915927Smrgfi
647620915927Smrg
647720915927Smrgfound="no"
647820915927Smrg
647920915927Smrg	if test $found = "no" ; then
648004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
648120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
648220915927Smrg		fi
648320915927Smrg
648404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
648520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
648620915927Smrg		fi
648720915927Smrg
648820915927Smrg		CFLAGS="$CFLAGS -Wshadow"
648920915927Smrg
649094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
649194c9ab7bSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
649220915927Smrg		cacheid=xorg_cv_cc_flag__Wshadow
649394c9ab7bSmrg		if eval test \${$cacheid+y}
649494c9ab7bSmrgthen :
649594c9ab7bSmrg  printf %s "(cached) " >&6
649694c9ab7bSmrgelse $as_nop
649720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
649820915927Smrg/* end confdefs.h.  */
649920915927Smrgint i;
650020915927Smrgint
650194c9ab7bSmrgmain (void)
650220915927Smrg{
650320915927Smrg
650420915927Smrg  ;
650520915927Smrg  return 0;
650620915927Smrg}
650720915927Smrg_ACEOF
650894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
650994c9ab7bSmrgthen :
651020915927Smrg  eval $cacheid=yes
651194c9ab7bSmrgelse $as_nop
651220915927Smrg  eval $cacheid=no
651320915927Smrgfi
651494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
651520915927Smrg    conftest$ac_exeext conftest.$ac_ext
651620915927Smrgfi
651720915927Smrg
651820915927Smrg
651920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
652020915927Smrg
652120915927Smrg		eval supported=\$$cacheid
652294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
652394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
652420915927Smrg		if test "$supported" = "yes" ; then
652520915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
652620915927Smrg			found="yes"
652720915927Smrg		fi
652820915927Smrg	fi
652920915927Smrg
653020915927Smrg
653120915927Smrg
653220915927Smrg
653320915927Smrg
653420915927Smrg
653520915927Smrg
653620915927Smrg
653720915927Smrg
653820915927Smrg
653920915927Smrg
654020915927Smrg
654120915927Smrg
654220915927Smrg
654320915927Smrg
654420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
654520915927Smrg
654620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
654720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
654894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
654994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
655094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
655194c9ab7bSmrgthen :
655294c9ab7bSmrg  printf %s "(cached) " >&6
655394c9ab7bSmrgelse $as_nop
655420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
655520915927Smrg/* end confdefs.h.  */
655620915927Smrgint i;
655720915927Smrg_ACEOF
655894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
655994c9ab7bSmrgthen :
656020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
656194c9ab7bSmrgelse $as_nop
656220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
656320915927Smrgfi
656494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
656520915927Smrgfi
656694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
656794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
656820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
656920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
657020915927Smrgfi
657120915927Smrg
657220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
657320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
657420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
657520915927Smrg	fi
657620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
657794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
657894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
657994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
658094c9ab7bSmrgthen :
658194c9ab7bSmrg  printf %s "(cached) " >&6
658294c9ab7bSmrgelse $as_nop
658320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
658420915927Smrg/* end confdefs.h.  */
658520915927Smrgint i;
658620915927Smrg_ACEOF
658794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
658894c9ab7bSmrgthen :
658920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
659094c9ab7bSmrgelse $as_nop
659120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
659220915927Smrgfi
659394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
659420915927Smrgfi
659594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
659694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
659720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
659820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
659920915927Smrgfi
660020915927Smrg
660120915927Smrgfound="no"
660220915927Smrg
660320915927Smrg	if test $found = "no" ; then
660404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
660520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
660620915927Smrg		fi
660720915927Smrg
660804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
660920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
661020915927Smrg		fi
661120915927Smrg
661204449c54Smrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
661320915927Smrg
661494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
661594c9ab7bSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
661604449c54Smrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
661794c9ab7bSmrg		if eval test \${$cacheid+y}
661894c9ab7bSmrgthen :
661994c9ab7bSmrg  printf %s "(cached) " >&6
662094c9ab7bSmrgelse $as_nop
662120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
662220915927Smrg/* end confdefs.h.  */
662320915927Smrgint i;
662420915927Smrgint
662594c9ab7bSmrgmain (void)
662620915927Smrg{
662720915927Smrg
662820915927Smrg  ;
662920915927Smrg  return 0;
663020915927Smrg}
663120915927Smrg_ACEOF
663294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
663394c9ab7bSmrgthen :
663420915927Smrg  eval $cacheid=yes
663594c9ab7bSmrgelse $as_nop
663620915927Smrg  eval $cacheid=no
663720915927Smrgfi
663894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
663920915927Smrg    conftest$ac_exeext conftest.$ac_ext
664020915927Smrgfi
664120915927Smrg
664220915927Smrg
664320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
664420915927Smrg
664520915927Smrg		eval supported=\$$cacheid
664694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
664794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
664820915927Smrg		if test "$supported" = "yes" ; then
664904449c54Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
665020915927Smrg			found="yes"
665120915927Smrg		fi
665220915927Smrg	fi
665320915927Smrg
665420915927Smrg
665520915927Smrg
665620915927Smrg
665720915927Smrg
665820915927Smrg
665920915927Smrg
666020915927Smrg
666120915927Smrg
666220915927Smrg
666320915927Smrg
666420915927Smrg
666520915927Smrg
666620915927Smrg
666720915927Smrg
666820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
666920915927Smrg
667020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
667120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
667294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
667394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
667494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
667594c9ab7bSmrgthen :
667694c9ab7bSmrg  printf %s "(cached) " >&6
667794c9ab7bSmrgelse $as_nop
667820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
667920915927Smrg/* end confdefs.h.  */
668020915927Smrgint i;
668120915927Smrg_ACEOF
668294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
668394c9ab7bSmrgthen :
668420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
668594c9ab7bSmrgelse $as_nop
668620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
668720915927Smrgfi
668894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
668920915927Smrgfi
669094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
669194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
669220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
669320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
669420915927Smrgfi
669520915927Smrg
669620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
669720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
669820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
669920915927Smrg	fi
670020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
670194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
670294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
670394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
670494c9ab7bSmrgthen :
670594c9ab7bSmrg  printf %s "(cached) " >&6
670694c9ab7bSmrgelse $as_nop
670720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
670820915927Smrg/* end confdefs.h.  */
670920915927Smrgint i;
671020915927Smrg_ACEOF
671194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
671294c9ab7bSmrgthen :
671320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
671494c9ab7bSmrgelse $as_nop
671520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
671620915927Smrgfi
671794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
671820915927Smrgfi
671994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
672094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
672120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
672220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
672320915927Smrgfi
672420915927Smrg
672520915927Smrgfound="no"
672620915927Smrg
672720915927Smrg	if test $found = "no" ; then
672804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
672920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
673020915927Smrg		fi
673120915927Smrg
673204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
673320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
673420915927Smrg		fi
673520915927Smrg
673604449c54Smrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
673720915927Smrg
673894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
673994c9ab7bSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
674004449c54Smrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
674194c9ab7bSmrg		if eval test \${$cacheid+y}
674294c9ab7bSmrgthen :
674394c9ab7bSmrg  printf %s "(cached) " >&6
674494c9ab7bSmrgelse $as_nop
674520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
674620915927Smrg/* end confdefs.h.  */
674720915927Smrgint i;
674820915927Smrgint
674994c9ab7bSmrgmain (void)
675020915927Smrg{
675120915927Smrg
675220915927Smrg  ;
675320915927Smrg  return 0;
675420915927Smrg}
675520915927Smrg_ACEOF
675694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
675794c9ab7bSmrgthen :
675820915927Smrg  eval $cacheid=yes
675994c9ab7bSmrgelse $as_nop
676020915927Smrg  eval $cacheid=no
676120915927Smrgfi
676294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
676320915927Smrg    conftest$ac_exeext conftest.$ac_ext
676420915927Smrgfi
676520915927Smrg
676620915927Smrg
676720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
676820915927Smrg
676920915927Smrg		eval supported=\$$cacheid
677094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
677194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
677220915927Smrg		if test "$supported" = "yes" ; then
677304449c54Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
677420915927Smrg			found="yes"
677520915927Smrg		fi
677620915927Smrg	fi
677720915927Smrg
677820915927Smrg
677920915927Smrg
678020915927Smrg
678120915927Smrg
678220915927Smrg
678320915927Smrg
678420915927Smrg
678520915927Smrg
678620915927Smrg
678720915927Smrg
678820915927Smrg
678920915927Smrg
679020915927Smrg
679120915927Smrg
679220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
679320915927Smrg
679420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
679520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
679694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
679794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
679894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
679994c9ab7bSmrgthen :
680094c9ab7bSmrg  printf %s "(cached) " >&6
680194c9ab7bSmrgelse $as_nop
680220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
680320915927Smrg/* end confdefs.h.  */
680420915927Smrgint i;
680520915927Smrg_ACEOF
680694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
680794c9ab7bSmrgthen :
680820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
680994c9ab7bSmrgelse $as_nop
681020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
681120915927Smrgfi
681294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
681320915927Smrgfi
681494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
681594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
681620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
681720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
681820915927Smrgfi
681920915927Smrg
682020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
682120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
682220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
682320915927Smrg	fi
682420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
682594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
682694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
682794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
682894c9ab7bSmrgthen :
682994c9ab7bSmrg  printf %s "(cached) " >&6
683094c9ab7bSmrgelse $as_nop
683120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
683220915927Smrg/* end confdefs.h.  */
683320915927Smrgint i;
683420915927Smrg_ACEOF
683594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
683694c9ab7bSmrgthen :
683720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
683894c9ab7bSmrgelse $as_nop
683920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
684020915927Smrgfi
684194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
684220915927Smrgfi
684394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
684494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
684520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
684620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
684720915927Smrgfi
684820915927Smrg
684920915927Smrgfound="no"
685020915927Smrg
685120915927Smrg	if test $found = "no" ; then
685204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
685320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
685420915927Smrg		fi
685520915927Smrg
685604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
685720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
685820915927Smrg		fi
685920915927Smrg
686004449c54Smrg		CFLAGS="$CFLAGS -Wredundant-decls"
686120915927Smrg
686294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
686394c9ab7bSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
686404449c54Smrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
686594c9ab7bSmrg		if eval test \${$cacheid+y}
686694c9ab7bSmrgthen :
686794c9ab7bSmrg  printf %s "(cached) " >&6
686894c9ab7bSmrgelse $as_nop
686920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
687020915927Smrg/* end confdefs.h.  */
687120915927Smrgint i;
687220915927Smrgint
687394c9ab7bSmrgmain (void)
687420915927Smrg{
687520915927Smrg
687620915927Smrg  ;
687720915927Smrg  return 0;
687820915927Smrg}
687920915927Smrg_ACEOF
688094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
688194c9ab7bSmrgthen :
688220915927Smrg  eval $cacheid=yes
688394c9ab7bSmrgelse $as_nop
688420915927Smrg  eval $cacheid=no
688520915927Smrgfi
688694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
688720915927Smrg    conftest$ac_exeext conftest.$ac_ext
688820915927Smrgfi
688920915927Smrg
689020915927Smrg
689120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
689220915927Smrg
689320915927Smrg		eval supported=\$$cacheid
689494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
689594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
689620915927Smrg		if test "$supported" = "yes" ; then
689704449c54Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
689820915927Smrg			found="yes"
689920915927Smrg		fi
690020915927Smrg	fi
690120915927Smrg
690220915927Smrg
690320915927Smrg
690420915927Smrg
690520915927Smrg
690620915927Smrg
690720915927Smrg
690820915927Smrg
690920915927Smrg
691020915927Smrg
691120915927Smrg
691220915927Smrg
691320915927Smrg
691420915927Smrg
691520915927Smrg
691620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
691720915927Smrg
691820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
691920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
692094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
692194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
692294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
692394c9ab7bSmrgthen :
692494c9ab7bSmrg  printf %s "(cached) " >&6
692594c9ab7bSmrgelse $as_nop
692620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
692720915927Smrg/* end confdefs.h.  */
692820915927Smrgint i;
692920915927Smrg_ACEOF
693094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
693194c9ab7bSmrgthen :
693220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
693394c9ab7bSmrgelse $as_nop
693420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
693520915927Smrgfi
693694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
693720915927Smrgfi
693894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
693994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
694020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
694120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
694220915927Smrgfi
694320915927Smrg
694420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
694520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
694620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
694720915927Smrg	fi
694820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
694994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
695094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
695194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
695294c9ab7bSmrgthen :
695394c9ab7bSmrg  printf %s "(cached) " >&6
695494c9ab7bSmrgelse $as_nop
695520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
695620915927Smrg/* end confdefs.h.  */
695720915927Smrgint i;
695820915927Smrg_ACEOF
695994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
696094c9ab7bSmrgthen :
696120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
696294c9ab7bSmrgelse $as_nop
696320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
696420915927Smrgfi
696594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
696620915927Smrgfi
696794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
696894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
696920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
697020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
697120915927Smrgfi
697220915927Smrg
697320915927Smrgfound="no"
697420915927Smrg
697520915927Smrg	if test $found = "no" ; then
697604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
697720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
697820915927Smrg		fi
697920915927Smrg
698004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
698120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
698220915927Smrg		fi
698320915927Smrg
698404449c54Smrg		CFLAGS="$CFLAGS -Wlogical-op"
698520915927Smrg
698694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
698794c9ab7bSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
698804449c54Smrg		cacheid=xorg_cv_cc_flag__Wlogical_op
698994c9ab7bSmrg		if eval test \${$cacheid+y}
699094c9ab7bSmrgthen :
699194c9ab7bSmrg  printf %s "(cached) " >&6
699294c9ab7bSmrgelse $as_nop
699320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
699420915927Smrg/* end confdefs.h.  */
699520915927Smrgint i;
699620915927Smrgint
699794c9ab7bSmrgmain (void)
699820915927Smrg{
699920915927Smrg
700020915927Smrg  ;
700120915927Smrg  return 0;
700220915927Smrg}
700320915927Smrg_ACEOF
700494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
700594c9ab7bSmrgthen :
700620915927Smrg  eval $cacheid=yes
700794c9ab7bSmrgelse $as_nop
700820915927Smrg  eval $cacheid=no
700920915927Smrgfi
701094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
701120915927Smrg    conftest$ac_exeext conftest.$ac_ext
701220915927Smrgfi
701320915927Smrg
701420915927Smrg
701520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
701620915927Smrg
701720915927Smrg		eval supported=\$$cacheid
701894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
701994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
702020915927Smrg		if test "$supported" = "yes" ; then
702104449c54Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
702220915927Smrg			found="yes"
702320915927Smrg		fi
702420915927Smrg	fi
702520915927Smrg
702620915927Smrg
702720915927Smrg
702820915927Smrg# These are currently disabled because they are noisy.  They will be enabled
702920915927Smrg# in the future once the codebase is sufficiently modernized to silence
703020915927Smrg# them.  For now, I don't want them to drown out the other warnings.
703120915927Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
703220915927Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
703304449c54Smrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
703420915927Smrg
703520915927Smrg# Turn some warnings into errors, so we don't accidently get successful builds
703620915927Smrg# when there are problems that should be fixed.
703720915927Smrg
703820915927Smrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
703920915927Smrg
704020915927Smrg
704120915927Smrg
704220915927Smrg
704320915927Smrg
704420915927Smrg
704520915927Smrg
704620915927Smrg
704720915927Smrg
704820915927Smrg
704920915927Smrg
705020915927Smrg
705120915927Smrg
705220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
705320915927Smrg
705420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
705520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
705694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
705794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
705894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
705994c9ab7bSmrgthen :
706094c9ab7bSmrg  printf %s "(cached) " >&6
706194c9ab7bSmrgelse $as_nop
706220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
706320915927Smrg/* end confdefs.h.  */
706420915927Smrgint i;
706520915927Smrg_ACEOF
706694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
706794c9ab7bSmrgthen :
706820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
706994c9ab7bSmrgelse $as_nop
707020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
707120915927Smrgfi
707294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
707320915927Smrgfi
707494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
707594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
707620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
707720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
707820915927Smrgfi
707920915927Smrg
708020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
708120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
708220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
708320915927Smrg	fi
708420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
708594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
708694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
708794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
708894c9ab7bSmrgthen :
708994c9ab7bSmrg  printf %s "(cached) " >&6
709094c9ab7bSmrgelse $as_nop
709120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
709220915927Smrg/* end confdefs.h.  */
709320915927Smrgint i;
709420915927Smrg_ACEOF
709594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
709694c9ab7bSmrgthen :
709720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
709894c9ab7bSmrgelse $as_nop
709920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
710020915927Smrgfi
710194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
710220915927Smrgfi
710394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
710494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
710520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
710620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
710720915927Smrgfi
710820915927Smrg
710920915927Smrgfound="no"
711020915927Smrg
711120915927Smrg	if test $found = "no" ; then
711204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
711320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
711420915927Smrg		fi
711520915927Smrg
711604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
711720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
711820915927Smrg		fi
711920915927Smrg
712020915927Smrg		CFLAGS="$CFLAGS -Werror=implicit"
712120915927Smrg
712294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
712394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
712404449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_implicit
712594c9ab7bSmrg		if eval test \${$cacheid+y}
712694c9ab7bSmrgthen :
712794c9ab7bSmrg  printf %s "(cached) " >&6
712894c9ab7bSmrgelse $as_nop
712920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
713020915927Smrg/* end confdefs.h.  */
713120915927Smrgint i;
713220915927Smrgint
713394c9ab7bSmrgmain (void)
713420915927Smrg{
713520915927Smrg
713620915927Smrg  ;
713720915927Smrg  return 0;
713820915927Smrg}
713920915927Smrg_ACEOF
714094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
714194c9ab7bSmrgthen :
714220915927Smrg  eval $cacheid=yes
714394c9ab7bSmrgelse $as_nop
714420915927Smrg  eval $cacheid=no
714520915927Smrgfi
714694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
714720915927Smrg    conftest$ac_exeext conftest.$ac_ext
714820915927Smrgfi
714920915927Smrg
715020915927Smrg
715120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
715220915927Smrg
715320915927Smrg		eval supported=\$$cacheid
715494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
715594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
715620915927Smrg		if test "$supported" = "yes" ; then
715720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
715820915927Smrg			found="yes"
715920915927Smrg		fi
716020915927Smrg	fi
716120915927Smrg
716220915927Smrg	if test $found = "no" ; then
716304449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
716420915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
716520915927Smrg		fi
716620915927Smrg
716704449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
716820915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
716920915927Smrg		fi
717020915927Smrg
717120915927Smrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
717220915927Smrg
717394c9ab7bSmrg		{ 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
717494c9ab7bSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
717504449c54Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
717694c9ab7bSmrg		if eval test \${$cacheid+y}
717794c9ab7bSmrgthen :
717894c9ab7bSmrg  printf %s "(cached) " >&6
717994c9ab7bSmrgelse $as_nop
718020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718120915927Smrg/* end confdefs.h.  */
718220915927Smrgint i;
718320915927Smrgint
718494c9ab7bSmrgmain (void)
718520915927Smrg{
718620915927Smrg
718720915927Smrg  ;
718820915927Smrg  return 0;
718920915927Smrg}
719020915927Smrg_ACEOF
719194c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
719294c9ab7bSmrgthen :
719320915927Smrg  eval $cacheid=yes
719494c9ab7bSmrgelse $as_nop
719520915927Smrg  eval $cacheid=no
719620915927Smrgfi
719794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
719820915927Smrg    conftest$ac_exeext conftest.$ac_ext
719920915927Smrgfi
720020915927Smrg
720120915927Smrg
720220915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
720320915927Smrg
720420915927Smrg		eval supported=\$$cacheid
720594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
720694c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
720720915927Smrg		if test "$supported" = "yes" ; then
720820915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
720920915927Smrg			found="yes"
721020915927Smrg		fi
721120915927Smrg	fi
721220915927Smrg
721320915927Smrg
721420915927Smrg
721520915927Smrg
721620915927Smrg
721720915927Smrg
721820915927Smrg
721920915927Smrg
722020915927Smrg
722120915927Smrg
722220915927Smrg
722320915927Smrg
722420915927Smrg
722520915927Smrg
722620915927Smrg
722720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
722820915927Smrg
722920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
723020915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
723194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
723294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
723394c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
723494c9ab7bSmrgthen :
723594c9ab7bSmrg  printf %s "(cached) " >&6
723694c9ab7bSmrgelse $as_nop
723720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
723820915927Smrg/* end confdefs.h.  */
723920915927Smrgint i;
724020915927Smrg_ACEOF
724194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
724294c9ab7bSmrgthen :
724320915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
724494c9ab7bSmrgelse $as_nop
724520915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
724620915927Smrgfi
724794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
724820915927Smrgfi
724994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
725094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
725120915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
725220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
725320915927Smrgfi
725420915927Smrg
725520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
725620915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
725720915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
725820915927Smrg	fi
725920915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
726094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
726194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
726294c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
726394c9ab7bSmrgthen :
726494c9ab7bSmrg  printf %s "(cached) " >&6
726594c9ab7bSmrgelse $as_nop
726620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
726720915927Smrg/* end confdefs.h.  */
726820915927Smrgint i;
726920915927Smrg_ACEOF
727094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
727194c9ab7bSmrgthen :
727220915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
727394c9ab7bSmrgelse $as_nop
727420915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
727520915927Smrgfi
727694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
727720915927Smrgfi
727894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
727994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
728020915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
728120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
728220915927Smrgfi
728320915927Smrg
728420915927Smrgfound="no"
728520915927Smrg
728620915927Smrg	if test $found = "no" ; then
728704449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
728820915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
728920915927Smrg		fi
729020915927Smrg
729104449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
729220915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
729320915927Smrg		fi
729420915927Smrg
729520915927Smrg		CFLAGS="$CFLAGS -Werror=nonnull"
729620915927Smrg
729794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
729894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
729904449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
730094c9ab7bSmrg		if eval test \${$cacheid+y}
730194c9ab7bSmrgthen :
730294c9ab7bSmrg  printf %s "(cached) " >&6
730394c9ab7bSmrgelse $as_nop
730420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
730520915927Smrg/* end confdefs.h.  */
730620915927Smrgint i;
730720915927Smrgint
730894c9ab7bSmrgmain (void)
730920915927Smrg{
731020915927Smrg
731120915927Smrg  ;
731220915927Smrg  return 0;
731320915927Smrg}
731420915927Smrg_ACEOF
731594c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
731694c9ab7bSmrgthen :
731720915927Smrg  eval $cacheid=yes
731894c9ab7bSmrgelse $as_nop
731920915927Smrg  eval $cacheid=no
732020915927Smrgfi
732194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
732220915927Smrg    conftest$ac_exeext conftest.$ac_ext
732320915927Smrgfi
732420915927Smrg
732520915927Smrg
732620915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
732720915927Smrg
732820915927Smrg		eval supported=\$$cacheid
732994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
733094c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
733120915927Smrg		if test "$supported" = "yes" ; then
733220915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
733320915927Smrg			found="yes"
733420915927Smrg		fi
733520915927Smrg	fi
733620915927Smrg
733720915927Smrg
733820915927Smrg
733920915927Smrg
734020915927Smrg
734120915927Smrg
734220915927Smrg
734320915927Smrg
734420915927Smrg
734520915927Smrg
734620915927Smrg
734720915927Smrg
734820915927Smrg
734920915927Smrg
735020915927Smrg
735120915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
735220915927Smrg
735320915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
735420915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
735594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
735694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
735794c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
735894c9ab7bSmrgthen :
735994c9ab7bSmrg  printf %s "(cached) " >&6
736094c9ab7bSmrgelse $as_nop
736120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
736220915927Smrg/* end confdefs.h.  */
736320915927Smrgint i;
736420915927Smrg_ACEOF
736594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
736694c9ab7bSmrgthen :
736720915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
736894c9ab7bSmrgelse $as_nop
736920915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
737020915927Smrgfi
737194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
737220915927Smrgfi
737394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
737494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
737520915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
737620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
737720915927Smrgfi
737820915927Smrg
737920915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
738020915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
738120915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
738220915927Smrg	fi
738320915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
738494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
738594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
738694c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
738794c9ab7bSmrgthen :
738894c9ab7bSmrg  printf %s "(cached) " >&6
738994c9ab7bSmrgelse $as_nop
739020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
739120915927Smrg/* end confdefs.h.  */
739220915927Smrgint i;
739320915927Smrg_ACEOF
739494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
739594c9ab7bSmrgthen :
739620915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
739794c9ab7bSmrgelse $as_nop
739820915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
739920915927Smrgfi
740094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
740120915927Smrgfi
740294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
740394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
740420915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
740520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
740620915927Smrgfi
740720915927Smrg
740820915927Smrgfound="no"
740920915927Smrg
741020915927Smrg	if test $found = "no" ; then
741104449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
741220915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
741320915927Smrg		fi
741420915927Smrg
741504449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
741620915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
741720915927Smrg		fi
741820915927Smrg
741920915927Smrg		CFLAGS="$CFLAGS -Werror=init-self"
742020915927Smrg
742194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
742294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
742304449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_init_self
742494c9ab7bSmrg		if eval test \${$cacheid+y}
742594c9ab7bSmrgthen :
742694c9ab7bSmrg  printf %s "(cached) " >&6
742794c9ab7bSmrgelse $as_nop
742820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
742920915927Smrg/* end confdefs.h.  */
743020915927Smrgint i;
743120915927Smrgint
743294c9ab7bSmrgmain (void)
743320915927Smrg{
743420915927Smrg
743520915927Smrg  ;
743620915927Smrg  return 0;
743720915927Smrg}
743820915927Smrg_ACEOF
743994c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
744094c9ab7bSmrgthen :
744120915927Smrg  eval $cacheid=yes
744294c9ab7bSmrgelse $as_nop
744320915927Smrg  eval $cacheid=no
744420915927Smrgfi
744594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
744620915927Smrg    conftest$ac_exeext conftest.$ac_ext
744720915927Smrgfi
744820915927Smrg
744920915927Smrg
745020915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
745120915927Smrg
745220915927Smrg		eval supported=\$$cacheid
745394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
745494c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
745520915927Smrg		if test "$supported" = "yes" ; then
745620915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
745720915927Smrg			found="yes"
745820915927Smrg		fi
745920915927Smrg	fi
746020915927Smrg
746120915927Smrg
746220915927Smrg
746320915927Smrg
746420915927Smrg
746520915927Smrg
746620915927Smrg
746720915927Smrg
746820915927Smrg
746920915927Smrg
747020915927Smrg
747120915927Smrg
747220915927Smrg
747320915927Smrg
747420915927Smrg
747520915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
747620915927Smrg
747720915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
747820915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
747994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
748094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
748194c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
748294c9ab7bSmrgthen :
748394c9ab7bSmrg  printf %s "(cached) " >&6
748494c9ab7bSmrgelse $as_nop
748520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
748620915927Smrg/* end confdefs.h.  */
748720915927Smrgint i;
748820915927Smrg_ACEOF
748994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
749094c9ab7bSmrgthen :
749120915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
749294c9ab7bSmrgelse $as_nop
749320915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
749420915927Smrgfi
749594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
749620915927Smrgfi
749794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
749894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
749920915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
750020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
750120915927Smrgfi
750220915927Smrg
750320915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
750420915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
750520915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
750620915927Smrg	fi
750720915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
750894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
750994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
751094c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
751194c9ab7bSmrgthen :
751294c9ab7bSmrg  printf %s "(cached) " >&6
751394c9ab7bSmrgelse $as_nop
751420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
751520915927Smrg/* end confdefs.h.  */
751620915927Smrgint i;
751720915927Smrg_ACEOF
751894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
751994c9ab7bSmrgthen :
752020915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
752194c9ab7bSmrgelse $as_nop
752220915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
752320915927Smrgfi
752494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
752520915927Smrgfi
752694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
752794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
752820915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
752920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
753020915927Smrgfi
753120915927Smrg
753220915927Smrgfound="no"
753320915927Smrg
753420915927Smrg	if test $found = "no" ; then
753504449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
753620915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
753720915927Smrg		fi
753820915927Smrg
753904449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
754020915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
754120915927Smrg		fi
754220915927Smrg
754320915927Smrg		CFLAGS="$CFLAGS -Werror=main"
754420915927Smrg
754594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
754694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
754704449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_main
754894c9ab7bSmrg		if eval test \${$cacheid+y}
754994c9ab7bSmrgthen :
755094c9ab7bSmrg  printf %s "(cached) " >&6
755194c9ab7bSmrgelse $as_nop
755220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
755320915927Smrg/* end confdefs.h.  */
755420915927Smrgint i;
755520915927Smrgint
755694c9ab7bSmrgmain (void)
755720915927Smrg{
755820915927Smrg
755920915927Smrg  ;
756020915927Smrg  return 0;
756120915927Smrg}
756220915927Smrg_ACEOF
756394c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
756494c9ab7bSmrgthen :
756520915927Smrg  eval $cacheid=yes
756694c9ab7bSmrgelse $as_nop
756720915927Smrg  eval $cacheid=no
756820915927Smrgfi
756994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
757020915927Smrg    conftest$ac_exeext conftest.$ac_ext
757120915927Smrgfi
757220915927Smrg
757320915927Smrg
757420915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
757520915927Smrg
757620915927Smrg		eval supported=\$$cacheid
757794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
757894c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
757920915927Smrg		if test "$supported" = "yes" ; then
758020915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
758120915927Smrg			found="yes"
758220915927Smrg		fi
758320915927Smrg	fi
758420915927Smrg
758520915927Smrg
758620915927Smrg
758720915927Smrg
758820915927Smrg
758920915927Smrg
759020915927Smrg
759120915927Smrg
759220915927Smrg
759320915927Smrg
759420915927Smrg
759520915927Smrg
759620915927Smrg
759720915927Smrg
759820915927Smrg
759920915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
760020915927Smrg
760120915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
760220915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
760394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
760494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
760594c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
760694c9ab7bSmrgthen :
760794c9ab7bSmrg  printf %s "(cached) " >&6
760894c9ab7bSmrgelse $as_nop
760920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
761020915927Smrg/* end confdefs.h.  */
761120915927Smrgint i;
761220915927Smrg_ACEOF
761394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
761494c9ab7bSmrgthen :
761520915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
761694c9ab7bSmrgelse $as_nop
761720915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
761820915927Smrgfi
761994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
762020915927Smrgfi
762194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
762294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
762320915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
762420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
762520915927Smrgfi
762620915927Smrg
762720915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
762820915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
762920915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
763020915927Smrg	fi
763120915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
763294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
763394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
763494c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
763594c9ab7bSmrgthen :
763694c9ab7bSmrg  printf %s "(cached) " >&6
763794c9ab7bSmrgelse $as_nop
763820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
763920915927Smrg/* end confdefs.h.  */
764020915927Smrgint i;
764120915927Smrg_ACEOF
764294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
764394c9ab7bSmrgthen :
764420915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
764594c9ab7bSmrgelse $as_nop
764620915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
764720915927Smrgfi
764894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
764920915927Smrgfi
765094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
765194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
765220915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
765320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
765420915927Smrgfi
765520915927Smrg
765620915927Smrgfound="no"
765720915927Smrg
765820915927Smrg	if test $found = "no" ; then
765904449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
766020915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
766120915927Smrg		fi
766220915927Smrg
766304449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
766420915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
766520915927Smrg		fi
766620915927Smrg
766720915927Smrg		CFLAGS="$CFLAGS -Werror=missing-braces"
766820915927Smrg
766994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
767094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
767104449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
767294c9ab7bSmrg		if eval test \${$cacheid+y}
767394c9ab7bSmrgthen :
767494c9ab7bSmrg  printf %s "(cached) " >&6
767594c9ab7bSmrgelse $as_nop
767620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
767720915927Smrg/* end confdefs.h.  */
767820915927Smrgint i;
767920915927Smrgint
768094c9ab7bSmrgmain (void)
768120915927Smrg{
768220915927Smrg
768320915927Smrg  ;
768420915927Smrg  return 0;
768520915927Smrg}
768620915927Smrg_ACEOF
768794c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
768894c9ab7bSmrgthen :
768920915927Smrg  eval $cacheid=yes
769094c9ab7bSmrgelse $as_nop
769120915927Smrg  eval $cacheid=no
769220915927Smrgfi
769394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
769420915927Smrg    conftest$ac_exeext conftest.$ac_ext
769520915927Smrgfi
769620915927Smrg
769720915927Smrg
769820915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
769920915927Smrg
770020915927Smrg		eval supported=\$$cacheid
770194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
770294c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
770320915927Smrg		if test "$supported" = "yes" ; then
770420915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
770520915927Smrg			found="yes"
770620915927Smrg		fi
770720915927Smrg	fi
770820915927Smrg
770920915927Smrg
771020915927Smrg
771120915927Smrg
771220915927Smrg
771320915927Smrg
771420915927Smrg
771520915927Smrg
771620915927Smrg
771720915927Smrg
771820915927Smrg
771920915927Smrg
772020915927Smrg
772120915927Smrg
772220915927Smrg
772320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
772420915927Smrg
772520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
772620915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
772794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
772894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
772994c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
773094c9ab7bSmrgthen :
773194c9ab7bSmrg  printf %s "(cached) " >&6
773294c9ab7bSmrgelse $as_nop
773320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
773420915927Smrg/* end confdefs.h.  */
773520915927Smrgint i;
773620915927Smrg_ACEOF
773794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
773894c9ab7bSmrgthen :
773920915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
774094c9ab7bSmrgelse $as_nop
774120915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
774220915927Smrgfi
774394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
774420915927Smrgfi
774594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
774694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
774720915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
774820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
774920915927Smrgfi
775020915927Smrg
775120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
775220915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
775320915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
775420915927Smrg	fi
775520915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
775694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
775794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
775894c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
775994c9ab7bSmrgthen :
776094c9ab7bSmrg  printf %s "(cached) " >&6
776194c9ab7bSmrgelse $as_nop
776220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
776320915927Smrg/* end confdefs.h.  */
776420915927Smrgint i;
776520915927Smrg_ACEOF
776694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
776794c9ab7bSmrgthen :
776820915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
776994c9ab7bSmrgelse $as_nop
777020915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
777120915927Smrgfi
777294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
777320915927Smrgfi
777494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
777594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
777620915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
777720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
777820915927Smrgfi
777920915927Smrg
778020915927Smrgfound="no"
778120915927Smrg
778220915927Smrg	if test $found = "no" ; then
778304449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
778420915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
778520915927Smrg		fi
778620915927Smrg
778704449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
778820915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
778920915927Smrg		fi
779020915927Smrg
779120915927Smrg		CFLAGS="$CFLAGS -Werror=sequence-point"
779220915927Smrg
779394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
779494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
779504449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
779694c9ab7bSmrg		if eval test \${$cacheid+y}
779794c9ab7bSmrgthen :
779894c9ab7bSmrg  printf %s "(cached) " >&6
779994c9ab7bSmrgelse $as_nop
780020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
780120915927Smrg/* end confdefs.h.  */
780220915927Smrgint i;
780320915927Smrgint
780494c9ab7bSmrgmain (void)
780520915927Smrg{
780620915927Smrg
780720915927Smrg  ;
780820915927Smrg  return 0;
780920915927Smrg}
781020915927Smrg_ACEOF
781194c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
781294c9ab7bSmrgthen :
781320915927Smrg  eval $cacheid=yes
781494c9ab7bSmrgelse $as_nop
781520915927Smrg  eval $cacheid=no
781620915927Smrgfi
781794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
781820915927Smrg    conftest$ac_exeext conftest.$ac_ext
781920915927Smrgfi
782020915927Smrg
782120915927Smrg
782220915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
782320915927Smrg
782420915927Smrg		eval supported=\$$cacheid
782594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
782694c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
782720915927Smrg		if test "$supported" = "yes" ; then
782820915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
782920915927Smrg			found="yes"
783020915927Smrg		fi
783120915927Smrg	fi
783220915927Smrg
783320915927Smrg
783420915927Smrg
783520915927Smrg
783620915927Smrg
783720915927Smrg
783820915927Smrg
783920915927Smrg
784020915927Smrg
784120915927Smrg
784220915927Smrg
784320915927Smrg
784420915927Smrg
784520915927Smrg
784620915927Smrg
784720915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
784820915927Smrg
784920915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
785020915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
785194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
785294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
785394c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
785494c9ab7bSmrgthen :
785594c9ab7bSmrg  printf %s "(cached) " >&6
785694c9ab7bSmrgelse $as_nop
785720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
785820915927Smrg/* end confdefs.h.  */
785920915927Smrgint i;
786020915927Smrg_ACEOF
786194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
786294c9ab7bSmrgthen :
786320915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
786494c9ab7bSmrgelse $as_nop
786520915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
786620915927Smrgfi
786794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
786820915927Smrgfi
786994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
787094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
787120915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
787220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
787320915927Smrgfi
787420915927Smrg
787520915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
787620915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
787720915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
787820915927Smrg	fi
787920915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
788094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
788194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
788294c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
788394c9ab7bSmrgthen :
788494c9ab7bSmrg  printf %s "(cached) " >&6
788594c9ab7bSmrgelse $as_nop
788620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
788720915927Smrg/* end confdefs.h.  */
788820915927Smrgint i;
788920915927Smrg_ACEOF
789094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
789194c9ab7bSmrgthen :
789220915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
789394c9ab7bSmrgelse $as_nop
789420915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
789520915927Smrgfi
789694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
789720915927Smrgfi
789894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
789994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
790020915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
790120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
790220915927Smrgfi
790320915927Smrg
790420915927Smrgfound="no"
790520915927Smrg
790620915927Smrg	if test $found = "no" ; then
790704449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
790820915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
790920915927Smrg		fi
791020915927Smrg
791104449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
791220915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
791320915927Smrg		fi
791420915927Smrg
791520915927Smrg		CFLAGS="$CFLAGS -Werror=return-type"
791620915927Smrg
791794c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
791894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
791904449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_return_type
792094c9ab7bSmrg		if eval test \${$cacheid+y}
792194c9ab7bSmrgthen :
792294c9ab7bSmrg  printf %s "(cached) " >&6
792394c9ab7bSmrgelse $as_nop
792420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
792520915927Smrg/* end confdefs.h.  */
792620915927Smrgint i;
792720915927Smrgint
792894c9ab7bSmrgmain (void)
792920915927Smrg{
793020915927Smrg
793120915927Smrg  ;
793220915927Smrg  return 0;
793320915927Smrg}
793420915927Smrg_ACEOF
793594c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
793694c9ab7bSmrgthen :
793720915927Smrg  eval $cacheid=yes
793894c9ab7bSmrgelse $as_nop
793920915927Smrg  eval $cacheid=no
794020915927Smrgfi
794194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
794220915927Smrg    conftest$ac_exeext conftest.$ac_ext
794320915927Smrgfi
794420915927Smrg
794520915927Smrg
794620915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
794720915927Smrg
794820915927Smrg		eval supported=\$$cacheid
794994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
795094c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
795120915927Smrg		if test "$supported" = "yes" ; then
795220915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
795320915927Smrg			found="yes"
795420915927Smrg		fi
795520915927Smrg	fi
795620915927Smrg
795720915927Smrg	if test $found = "no" ; then
795804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
795920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
796020915927Smrg		fi
796120915927Smrg
796204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
796320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
796420915927Smrg		fi
796520915927Smrg
796620915927Smrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
796720915927Smrg
796894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
796994c9ab7bSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
797004449c54Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
797194c9ab7bSmrg		if eval test \${$cacheid+y}
797294c9ab7bSmrgthen :
797394c9ab7bSmrg  printf %s "(cached) " >&6
797494c9ab7bSmrgelse $as_nop
797520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
797620915927Smrg/* end confdefs.h.  */
797720915927Smrgint i;
797820915927Smrgint
797994c9ab7bSmrgmain (void)
798020915927Smrg{
798120915927Smrg
798220915927Smrg  ;
798320915927Smrg  return 0;
798420915927Smrg}
798520915927Smrg_ACEOF
798694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
798794c9ab7bSmrgthen :
798820915927Smrg  eval $cacheid=yes
798994c9ab7bSmrgelse $as_nop
799020915927Smrg  eval $cacheid=no
799120915927Smrgfi
799294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
799320915927Smrg    conftest$ac_exeext conftest.$ac_ext
799420915927Smrgfi
799520915927Smrg
799620915927Smrg
799720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
799820915927Smrg
799920915927Smrg		eval supported=\$$cacheid
800094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
800194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
800220915927Smrg		if test "$supported" = "yes" ; then
800320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
800420915927Smrg			found="yes"
800520915927Smrg		fi
800620915927Smrg	fi
800720915927Smrg
800820915927Smrg
800920915927Smrg
801020915927Smrg
801120915927Smrg
801220915927Smrg
801320915927Smrg
801420915927Smrg
801520915927Smrg
801620915927Smrg
801720915927Smrg
801820915927Smrg
801920915927Smrg
802020915927Smrg
802120915927Smrg
802220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
802320915927Smrg
802420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
802520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
802694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
802794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
802894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
802994c9ab7bSmrgthen :
803094c9ab7bSmrg  printf %s "(cached) " >&6
803194c9ab7bSmrgelse $as_nop
803220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
803320915927Smrg/* end confdefs.h.  */
803420915927Smrgint i;
803520915927Smrg_ACEOF
803694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
803794c9ab7bSmrgthen :
803820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
803994c9ab7bSmrgelse $as_nop
804020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
804120915927Smrgfi
804294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
804320915927Smrgfi
804494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
804594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
804620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
804720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
804820915927Smrgfi
804920915927Smrg
805020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
805120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
805220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
805320915927Smrg	fi
805420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
805594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
805694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
805794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
805894c9ab7bSmrgthen :
805994c9ab7bSmrg  printf %s "(cached) " >&6
806094c9ab7bSmrgelse $as_nop
806120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
806220915927Smrg/* end confdefs.h.  */
806320915927Smrgint i;
806420915927Smrg_ACEOF
806594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
806694c9ab7bSmrgthen :
806720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
806894c9ab7bSmrgelse $as_nop
806920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
807020915927Smrgfi
807194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
807220915927Smrgfi
807394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
807494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
807520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
807620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
807720915927Smrgfi
807820915927Smrg
807920915927Smrgfound="no"
808020915927Smrg
808120915927Smrg	if test $found = "no" ; then
808204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
808320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
808420915927Smrg		fi
808520915927Smrg
808604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
808720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
808820915927Smrg		fi
808920915927Smrg
809020915927Smrg		CFLAGS="$CFLAGS -Werror=trigraphs"
809120915927Smrg
809294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
809394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
809404449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
809594c9ab7bSmrg		if eval test \${$cacheid+y}
809694c9ab7bSmrgthen :
809794c9ab7bSmrg  printf %s "(cached) " >&6
809894c9ab7bSmrgelse $as_nop
809920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
810020915927Smrg/* end confdefs.h.  */
810120915927Smrgint i;
810220915927Smrgint
810394c9ab7bSmrgmain (void)
810420915927Smrg{
810520915927Smrg
810620915927Smrg  ;
810720915927Smrg  return 0;
810820915927Smrg}
810920915927Smrg_ACEOF
811094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
811194c9ab7bSmrgthen :
811220915927Smrg  eval $cacheid=yes
811394c9ab7bSmrgelse $as_nop
811420915927Smrg  eval $cacheid=no
811520915927Smrgfi
811694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
811720915927Smrg    conftest$ac_exeext conftest.$ac_ext
811820915927Smrgfi
811920915927Smrg
812020915927Smrg
812120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
812220915927Smrg
812320915927Smrg		eval supported=\$$cacheid
812494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
812594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
812620915927Smrg		if test "$supported" = "yes" ; then
812720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
812820915927Smrg			found="yes"
812920915927Smrg		fi
813020915927Smrg	fi
813120915927Smrg
813220915927Smrg
813320915927Smrg
813420915927Smrg
813520915927Smrg
813620915927Smrg
813720915927Smrg
813820915927Smrg
813920915927Smrg
814020915927Smrg
814120915927Smrg
814220915927Smrg
814320915927Smrg
814420915927Smrg
814520915927Smrg
814620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
814720915927Smrg
814820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
814920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
815094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
815194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
815294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
815394c9ab7bSmrgthen :
815494c9ab7bSmrg  printf %s "(cached) " >&6
815594c9ab7bSmrgelse $as_nop
815620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
815720915927Smrg/* end confdefs.h.  */
815820915927Smrgint i;
815920915927Smrg_ACEOF
816094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
816194c9ab7bSmrgthen :
816220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
816394c9ab7bSmrgelse $as_nop
816420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
816520915927Smrgfi
816694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
816720915927Smrgfi
816894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
816994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
817020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
817120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
817220915927Smrgfi
817320915927Smrg
817420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
817520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
817620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
817720915927Smrg	fi
817820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
817994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
818094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
818194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
818294c9ab7bSmrgthen :
818394c9ab7bSmrg  printf %s "(cached) " >&6
818494c9ab7bSmrgelse $as_nop
818520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
818620915927Smrg/* end confdefs.h.  */
818720915927Smrgint i;
818820915927Smrg_ACEOF
818994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
819094c9ab7bSmrgthen :
819120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
819294c9ab7bSmrgelse $as_nop
819320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
819420915927Smrgfi
819594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
819620915927Smrgfi
819794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
819894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
819920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
820020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
820120915927Smrgfi
820220915927Smrg
820320915927Smrgfound="no"
820420915927Smrg
820520915927Smrg	if test $found = "no" ; then
820604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
820720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
820820915927Smrg		fi
820920915927Smrg
821004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
821120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
821220915927Smrg		fi
821320915927Smrg
821420915927Smrg		CFLAGS="$CFLAGS -Werror=array-bounds"
821520915927Smrg
821694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
821794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
821804449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
821994c9ab7bSmrg		if eval test \${$cacheid+y}
822094c9ab7bSmrgthen :
822194c9ab7bSmrg  printf %s "(cached) " >&6
822294c9ab7bSmrgelse $as_nop
822320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
822420915927Smrg/* end confdefs.h.  */
822520915927Smrgint i;
822620915927Smrgint
822794c9ab7bSmrgmain (void)
822820915927Smrg{
822920915927Smrg
823020915927Smrg  ;
823120915927Smrg  return 0;
823220915927Smrg}
823320915927Smrg_ACEOF
823494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
823594c9ab7bSmrgthen :
823620915927Smrg  eval $cacheid=yes
823794c9ab7bSmrgelse $as_nop
823820915927Smrg  eval $cacheid=no
823920915927Smrgfi
824094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
824120915927Smrg    conftest$ac_exeext conftest.$ac_ext
824220915927Smrgfi
824320915927Smrg
824420915927Smrg
824520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
824620915927Smrg
824720915927Smrg		eval supported=\$$cacheid
824894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
824994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
825020915927Smrg		if test "$supported" = "yes" ; then
825120915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
825220915927Smrg			found="yes"
825320915927Smrg		fi
825420915927Smrg	fi
825520915927Smrg
825620915927Smrg
825720915927Smrg
825820915927Smrg
825920915927Smrg
826020915927Smrg
826120915927Smrg
826220915927Smrg
826320915927Smrg
826420915927Smrg
826520915927Smrg
826620915927Smrg
826720915927Smrg
826820915927Smrg
826920915927Smrg
827020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
827120915927Smrg
827220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
827320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
827494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
827594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
827694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
827794c9ab7bSmrgthen :
827894c9ab7bSmrg  printf %s "(cached) " >&6
827994c9ab7bSmrgelse $as_nop
828020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
828120915927Smrg/* end confdefs.h.  */
828220915927Smrgint i;
828320915927Smrg_ACEOF
828494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
828594c9ab7bSmrgthen :
828620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
828794c9ab7bSmrgelse $as_nop
828820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
828920915927Smrgfi
829094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
829120915927Smrgfi
829294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
829394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
829420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
829520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
829620915927Smrgfi
829720915927Smrg
829820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
829920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
830020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
830120915927Smrg	fi
830220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
830394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
830494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
830594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
830694c9ab7bSmrgthen :
830794c9ab7bSmrg  printf %s "(cached) " >&6
830894c9ab7bSmrgelse $as_nop
830920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
831020915927Smrg/* end confdefs.h.  */
831120915927Smrgint i;
831220915927Smrg_ACEOF
831394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
831494c9ab7bSmrgthen :
831520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
831694c9ab7bSmrgelse $as_nop
831720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
831820915927Smrgfi
831994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
832020915927Smrgfi
832194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
832294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
832320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
832420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
832520915927Smrgfi
832620915927Smrg
832720915927Smrgfound="no"
832820915927Smrg
832920915927Smrg	if test $found = "no" ; then
833004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
833120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
833220915927Smrg		fi
833320915927Smrg
833404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
833520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
833620915927Smrg		fi
833720915927Smrg
833820915927Smrg		CFLAGS="$CFLAGS -Werror=write-strings"
833920915927Smrg
834094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
834194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
834204449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
834394c9ab7bSmrg		if eval test \${$cacheid+y}
834494c9ab7bSmrgthen :
834594c9ab7bSmrg  printf %s "(cached) " >&6
834694c9ab7bSmrgelse $as_nop
834720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
834820915927Smrg/* end confdefs.h.  */
834920915927Smrgint i;
835020915927Smrgint
835194c9ab7bSmrgmain (void)
835220915927Smrg{
835320915927Smrg
835420915927Smrg  ;
835520915927Smrg  return 0;
835620915927Smrg}
835720915927Smrg_ACEOF
835894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
835994c9ab7bSmrgthen :
836020915927Smrg  eval $cacheid=yes
836194c9ab7bSmrgelse $as_nop
836220915927Smrg  eval $cacheid=no
836320915927Smrgfi
836494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
836520915927Smrg    conftest$ac_exeext conftest.$ac_ext
836620915927Smrgfi
836720915927Smrg
836820915927Smrg
836920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
837020915927Smrg
837120915927Smrg		eval supported=\$$cacheid
837294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
837394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
837420915927Smrg		if test "$supported" = "yes" ; then
837520915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
837620915927Smrg			found="yes"
837720915927Smrg		fi
837820915927Smrg	fi
837920915927Smrg
838020915927Smrg
838120915927Smrg
838220915927Smrg
838320915927Smrg
838420915927Smrg
838520915927Smrg
838620915927Smrg
838720915927Smrg
838820915927Smrg
838920915927Smrg
839020915927Smrg
839120915927Smrg
839220915927Smrg
839320915927Smrg
839420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
839520915927Smrg
839620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
839720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
839894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
839994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
840094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
840194c9ab7bSmrgthen :
840294c9ab7bSmrg  printf %s "(cached) " >&6
840394c9ab7bSmrgelse $as_nop
840420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
840520915927Smrg/* end confdefs.h.  */
840620915927Smrgint i;
840720915927Smrg_ACEOF
840894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
840994c9ab7bSmrgthen :
841020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
841194c9ab7bSmrgelse $as_nop
841220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
841320915927Smrgfi
841494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
841520915927Smrgfi
841694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
841794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
841820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
841920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
842020915927Smrgfi
842120915927Smrg
842220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
842320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
842420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
842520915927Smrg	fi
842620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
842794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
842894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
842994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
843094c9ab7bSmrgthen :
843194c9ab7bSmrg  printf %s "(cached) " >&6
843294c9ab7bSmrgelse $as_nop
843320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
843420915927Smrg/* end confdefs.h.  */
843520915927Smrgint i;
843620915927Smrg_ACEOF
843794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
843894c9ab7bSmrgthen :
843920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
844094c9ab7bSmrgelse $as_nop
844120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
844220915927Smrgfi
844394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
844420915927Smrgfi
844594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
844694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
844720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
844820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
844920915927Smrgfi
845020915927Smrg
845120915927Smrgfound="no"
845220915927Smrg
845320915927Smrg	if test $found = "no" ; then
845404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
845520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
845620915927Smrg		fi
845720915927Smrg
845804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
845920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
846020915927Smrg		fi
846120915927Smrg
846220915927Smrg		CFLAGS="$CFLAGS -Werror=address"
846320915927Smrg
846494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
846594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
846604449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_address
846794c9ab7bSmrg		if eval test \${$cacheid+y}
846894c9ab7bSmrgthen :
846994c9ab7bSmrg  printf %s "(cached) " >&6
847094c9ab7bSmrgelse $as_nop
847120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
847220915927Smrg/* end confdefs.h.  */
847320915927Smrgint i;
847420915927Smrgint
847594c9ab7bSmrgmain (void)
847620915927Smrg{
847720915927Smrg
847820915927Smrg  ;
847920915927Smrg  return 0;
848020915927Smrg}
848120915927Smrg_ACEOF
848294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
848394c9ab7bSmrgthen :
848420915927Smrg  eval $cacheid=yes
848594c9ab7bSmrgelse $as_nop
848620915927Smrg  eval $cacheid=no
848720915927Smrgfi
848894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
848920915927Smrg    conftest$ac_exeext conftest.$ac_ext
849020915927Smrgfi
849120915927Smrg
849220915927Smrg
849320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
849420915927Smrg
849520915927Smrg		eval supported=\$$cacheid
849694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
849794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
849820915927Smrg		if test "$supported" = "yes" ; then
849920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
850020915927Smrg			found="yes"
850120915927Smrg		fi
850220915927Smrg	fi
850320915927Smrg
850420915927Smrg
850520915927Smrg
850620915927Smrg
850720915927Smrg
850820915927Smrg
850920915927Smrg
851020915927Smrg
851120915927Smrg
851220915927Smrg
851320915927Smrg
851420915927Smrg
851520915927Smrg
851620915927Smrg
851720915927Smrg
851820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
851920915927Smrg
852020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
852120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
852294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
852394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
852494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
852594c9ab7bSmrgthen :
852694c9ab7bSmrg  printf %s "(cached) " >&6
852794c9ab7bSmrgelse $as_nop
852820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
852920915927Smrg/* end confdefs.h.  */
853020915927Smrgint i;
853120915927Smrg_ACEOF
853294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
853394c9ab7bSmrgthen :
853420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
853594c9ab7bSmrgelse $as_nop
853620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
853720915927Smrgfi
853894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
853920915927Smrgfi
854094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
854194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
854220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
854320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
854420915927Smrgfi
854520915927Smrg
854620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
854720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
854820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
854920915927Smrg	fi
855020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
855194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
855294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
855394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
855494c9ab7bSmrgthen :
855594c9ab7bSmrg  printf %s "(cached) " >&6
855694c9ab7bSmrgelse $as_nop
855720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
855820915927Smrg/* end confdefs.h.  */
855920915927Smrgint i;
856020915927Smrg_ACEOF
856194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
856294c9ab7bSmrgthen :
856320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
856494c9ab7bSmrgelse $as_nop
856520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
856620915927Smrgfi
856794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
856820915927Smrgfi
856994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
857094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
857120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
857220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
857320915927Smrgfi
857420915927Smrg
857520915927Smrgfound="no"
857620915927Smrg
857720915927Smrg	if test $found = "no" ; then
857804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
857920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
858020915927Smrg		fi
858120915927Smrg
858204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
858320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
858420915927Smrg		fi
858520915927Smrg
858620915927Smrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
858720915927Smrg
858894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
858994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
859004449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
859194c9ab7bSmrg		if eval test \${$cacheid+y}
859294c9ab7bSmrgthen :
859394c9ab7bSmrg  printf %s "(cached) " >&6
859494c9ab7bSmrgelse $as_nop
859520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
859620915927Smrg/* end confdefs.h.  */
859720915927Smrgint i;
859820915927Smrgint
859994c9ab7bSmrgmain (void)
860020915927Smrg{
860120915927Smrg
860220915927Smrg  ;
860320915927Smrg  return 0;
860420915927Smrg}
860520915927Smrg_ACEOF
860694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
860794c9ab7bSmrgthen :
860820915927Smrg  eval $cacheid=yes
860994c9ab7bSmrgelse $as_nop
861020915927Smrg  eval $cacheid=no
861120915927Smrgfi
861294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
861320915927Smrg    conftest$ac_exeext conftest.$ac_ext
861420915927Smrgfi
861520915927Smrg
861620915927Smrg
861720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
861820915927Smrg
861920915927Smrg		eval supported=\$$cacheid
862094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
862194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
862220915927Smrg		if test "$supported" = "yes" ; then
862320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
862420915927Smrg			found="yes"
862520915927Smrg		fi
862620915927Smrg	fi
862720915927Smrg
862820915927Smrg	if test $found = "no" ; then
862904449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
863020915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
863120915927Smrg		fi
863220915927Smrg
863304449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
863420915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
863520915927Smrg		fi
863620915927Smrg
863720915927Smrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
863820915927Smrg
863994c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
864094c9ab7bSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
864104449c54Smrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
864294c9ab7bSmrg		if eval test \${$cacheid+y}
864394c9ab7bSmrgthen :
864494c9ab7bSmrg  printf %s "(cached) " >&6
864594c9ab7bSmrgelse $as_nop
864620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
864720915927Smrg/* end confdefs.h.  */
864820915927Smrgint i;
864920915927Smrgint
865094c9ab7bSmrgmain (void)
865120915927Smrg{
865220915927Smrg
865320915927Smrg  ;
865420915927Smrg  return 0;
865520915927Smrg}
865620915927Smrg_ACEOF
865794c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
865894c9ab7bSmrgthen :
865920915927Smrg  eval $cacheid=yes
866094c9ab7bSmrgelse $as_nop
866120915927Smrg  eval $cacheid=no
866220915927Smrgfi
866394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
866420915927Smrg    conftest$ac_exeext conftest.$ac_ext
866520915927Smrgfi
866620915927Smrg
866720915927Smrg
866820915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
866920915927Smrg
867020915927Smrg		eval supported=\$$cacheid
867194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
867294c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
867320915927Smrg		if test "$supported" = "yes" ; then
867420915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
867520915927Smrg			found="yes"
867620915927Smrg		fi
867720915927Smrg	fi
867820915927Smrg
867920915927Smrg
868020915927Smrg
868120915927Smrg
868220915927Smrg
868320915927Smrg
868420915927Smrg
868520915927Smrg
868620915927Smrg
868720915927Smrg
868820915927Smrg
868920915927Smrg
869020915927Smrg
869120915927Smrg
869220915927Smrg
869320915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
869420915927Smrg
869520915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
869620915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
869794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
869894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
869994c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
870094c9ab7bSmrgthen :
870194c9ab7bSmrg  printf %s "(cached) " >&6
870294c9ab7bSmrgelse $as_nop
870320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
870420915927Smrg/* end confdefs.h.  */
870520915927Smrgint i;
870620915927Smrg_ACEOF
870794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
870894c9ab7bSmrgthen :
870920915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
871094c9ab7bSmrgelse $as_nop
871120915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
871220915927Smrgfi
871394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
871420915927Smrgfi
871594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
871694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
871720915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
871820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
871920915927Smrgfi
872020915927Smrg
872120915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
872220915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
872320915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
872420915927Smrg	fi
872520915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
872694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
872794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
872894c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
872994c9ab7bSmrgthen :
873094c9ab7bSmrg  printf %s "(cached) " >&6
873194c9ab7bSmrgelse $as_nop
873220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
873320915927Smrg/* end confdefs.h.  */
873420915927Smrgint i;
873520915927Smrg_ACEOF
873694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
873794c9ab7bSmrgthen :
873820915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
873994c9ab7bSmrgelse $as_nop
874020915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
874120915927Smrgfi
874294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
874320915927Smrgfi
874494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
874594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
874620915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
874720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
874820915927Smrgfi
874920915927Smrg
875020915927Smrgfound="no"
875120915927Smrg
875220915927Smrg	if test $found = "no" ; then
875304449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
875420915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
875520915927Smrg		fi
875620915927Smrg
875704449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
875820915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
875920915927Smrg		fi
876020915927Smrg
876120915927Smrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
876220915927Smrg
876394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
876494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
876504449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
876694c9ab7bSmrg		if eval test \${$cacheid+y}
876794c9ab7bSmrgthen :
876894c9ab7bSmrg  printf %s "(cached) " >&6
876994c9ab7bSmrgelse $as_nop
877020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
877120915927Smrg/* end confdefs.h.  */
877220915927Smrgint i;
877320915927Smrgint
877494c9ab7bSmrgmain (void)
877520915927Smrg{
877620915927Smrg
877720915927Smrg  ;
877820915927Smrg  return 0;
877920915927Smrg}
878020915927Smrg_ACEOF
878194c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
878294c9ab7bSmrgthen :
878320915927Smrg  eval $cacheid=yes
878494c9ab7bSmrgelse $as_nop
878520915927Smrg  eval $cacheid=no
878620915927Smrgfi
878794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
878820915927Smrg    conftest$ac_exeext conftest.$ac_ext
878920915927Smrgfi
879020915927Smrg
879120915927Smrg
879220915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
879320915927Smrg
879420915927Smrg		eval supported=\$$cacheid
879594c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
879694c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
879720915927Smrg		if test "$supported" = "yes" ; then
879820915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
879920915927Smrg			found="yes"
880020915927Smrg		fi
880120915927Smrg	fi
880220915927Smrg
880320915927Smrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
880420915927Smrgelse
880594c9ab7bSmrg{ 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
880694c9ab7bSmrgprintf "%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;}
880720915927Smrg
880820915927Smrg
880920915927Smrg
881020915927Smrg
881120915927Smrg
881220915927Smrg
881320915927Smrg
881420915927Smrg
881520915927Smrg
881620915927Smrg
881720915927Smrg
881820915927Smrg
881920915927Smrg
882020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
882120915927Smrg
882220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
882320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
882494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
882594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
882694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
882794c9ab7bSmrgthen :
882894c9ab7bSmrg  printf %s "(cached) " >&6
882994c9ab7bSmrgelse $as_nop
883020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
883120915927Smrg/* end confdefs.h.  */
883220915927Smrgint i;
883320915927Smrg_ACEOF
883494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
883594c9ab7bSmrgthen :
883620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
883794c9ab7bSmrgelse $as_nop
883820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
883920915927Smrgfi
884094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
884120915927Smrgfi
884294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
884394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
884420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
884520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
884620915927Smrgfi
884720915927Smrg
884820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
884920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
885020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
885120915927Smrg	fi
885220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
885394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
885494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
885594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
885694c9ab7bSmrgthen :
885794c9ab7bSmrg  printf %s "(cached) " >&6
885894c9ab7bSmrgelse $as_nop
885920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
886020915927Smrg/* end confdefs.h.  */
886120915927Smrgint i;
886220915927Smrg_ACEOF
886394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
886494c9ab7bSmrgthen :
886520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
886694c9ab7bSmrgelse $as_nop
886720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
886820915927Smrgfi
886994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
887020915927Smrgfi
887194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
887294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
887320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
887420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
887520915927Smrgfi
887620915927Smrg
887720915927Smrgfound="no"
887820915927Smrg
887920915927Smrg	if test $found = "no" ; then
888004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
888120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
888220915927Smrg		fi
888320915927Smrg
888404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
888520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
888620915927Smrg		fi
888720915927Smrg
888820915927Smrg		CFLAGS="$CFLAGS -Wimplicit"
888920915927Smrg
889094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
889194c9ab7bSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
889220915927Smrg		cacheid=xorg_cv_cc_flag__Wimplicit
889394c9ab7bSmrg		if eval test \${$cacheid+y}
889494c9ab7bSmrgthen :
889594c9ab7bSmrg  printf %s "(cached) " >&6
889694c9ab7bSmrgelse $as_nop
889720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
889820915927Smrg/* end confdefs.h.  */
889920915927Smrgint i;
890020915927Smrgint
890194c9ab7bSmrgmain (void)
890220915927Smrg{
890320915927Smrg
890420915927Smrg  ;
890520915927Smrg  return 0;
890620915927Smrg}
890720915927Smrg_ACEOF
890894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
890994c9ab7bSmrgthen :
891020915927Smrg  eval $cacheid=yes
891194c9ab7bSmrgelse $as_nop
891220915927Smrg  eval $cacheid=no
891320915927Smrgfi
891494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
891520915927Smrg    conftest$ac_exeext conftest.$ac_ext
891620915927Smrgfi
891720915927Smrg
891820915927Smrg
891920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
892020915927Smrg
892120915927Smrg		eval supported=\$$cacheid
892294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
892394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
892420915927Smrg		if test "$supported" = "yes" ; then
892520915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
892620915927Smrg			found="yes"
892720915927Smrg		fi
892820915927Smrg	fi
892920915927Smrg
893020915927Smrg
893120915927Smrg
893220915927Smrg
893320915927Smrg
893420915927Smrg
893520915927Smrg
893620915927Smrg
893720915927Smrg
893820915927Smrg
893920915927Smrg
894020915927Smrg
894120915927Smrg
894220915927Smrg
894320915927Smrg
894420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
894520915927Smrg
894620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
894720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
894894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
894994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
895094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
895194c9ab7bSmrgthen :
895294c9ab7bSmrg  printf %s "(cached) " >&6
895394c9ab7bSmrgelse $as_nop
895420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
895520915927Smrg/* end confdefs.h.  */
895620915927Smrgint i;
895720915927Smrg_ACEOF
895894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
895994c9ab7bSmrgthen :
896020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
896194c9ab7bSmrgelse $as_nop
896220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
896320915927Smrgfi
896494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
896520915927Smrgfi
896694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
896794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
896820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
896920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
897020915927Smrgfi
897120915927Smrg
897220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
897320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
897420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
897520915927Smrg	fi
897620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
897794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
897894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
897994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
898094c9ab7bSmrgthen :
898194c9ab7bSmrg  printf %s "(cached) " >&6
898294c9ab7bSmrgelse $as_nop
898320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
898420915927Smrg/* end confdefs.h.  */
898520915927Smrgint i;
898620915927Smrg_ACEOF
898794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
898894c9ab7bSmrgthen :
898920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
899094c9ab7bSmrgelse $as_nop
899120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
899220915927Smrgfi
899394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
899420915927Smrgfi
899594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
899694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
899720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
899820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
899920915927Smrgfi
900020915927Smrg
900120915927Smrgfound="no"
900220915927Smrg
900320915927Smrg	if test $found = "no" ; then
900404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
900520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
900620915927Smrg		fi
900720915927Smrg
900804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
900920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
901020915927Smrg		fi
901120915927Smrg
901220915927Smrg		CFLAGS="$CFLAGS -Wnonnull"
901320915927Smrg
901494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
901594c9ab7bSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
901620915927Smrg		cacheid=xorg_cv_cc_flag__Wnonnull
901794c9ab7bSmrg		if eval test \${$cacheid+y}
901894c9ab7bSmrgthen :
901994c9ab7bSmrg  printf %s "(cached) " >&6
902094c9ab7bSmrgelse $as_nop
902120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
902220915927Smrg/* end confdefs.h.  */
902320915927Smrgint i;
902420915927Smrgint
902594c9ab7bSmrgmain (void)
902620915927Smrg{
902720915927Smrg
902820915927Smrg  ;
902920915927Smrg  return 0;
903020915927Smrg}
903120915927Smrg_ACEOF
903294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
903394c9ab7bSmrgthen :
903420915927Smrg  eval $cacheid=yes
903594c9ab7bSmrgelse $as_nop
903620915927Smrg  eval $cacheid=no
903720915927Smrgfi
903894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
903920915927Smrg    conftest$ac_exeext conftest.$ac_ext
904020915927Smrgfi
904120915927Smrg
904220915927Smrg
904320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
904420915927Smrg
904520915927Smrg		eval supported=\$$cacheid
904694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
904794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
904820915927Smrg		if test "$supported" = "yes" ; then
904920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
905020915927Smrg			found="yes"
905120915927Smrg		fi
905220915927Smrg	fi
905320915927Smrg
905420915927Smrg
905520915927Smrg
905620915927Smrg
905720915927Smrg
905820915927Smrg
905920915927Smrg
906020915927Smrg
906120915927Smrg
906220915927Smrg
906320915927Smrg
906420915927Smrg
906520915927Smrg
906620915927Smrg
906720915927Smrg
906820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
906920915927Smrg
907020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
907120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
907294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
907394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
907494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
907594c9ab7bSmrgthen :
907694c9ab7bSmrg  printf %s "(cached) " >&6
907794c9ab7bSmrgelse $as_nop
907820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
907920915927Smrg/* end confdefs.h.  */
908020915927Smrgint i;
908120915927Smrg_ACEOF
908294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
908394c9ab7bSmrgthen :
908420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
908594c9ab7bSmrgelse $as_nop
908620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
908720915927Smrgfi
908894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
908920915927Smrgfi
909094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
909194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
909220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
909320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
909420915927Smrgfi
909520915927Smrg
909620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
909720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
909820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
909920915927Smrg	fi
910020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
910194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
910294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
910394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
910494c9ab7bSmrgthen :
910594c9ab7bSmrg  printf %s "(cached) " >&6
910694c9ab7bSmrgelse $as_nop
910720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
910820915927Smrg/* end confdefs.h.  */
910920915927Smrgint i;
911020915927Smrg_ACEOF
911194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
911294c9ab7bSmrgthen :
911320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
911494c9ab7bSmrgelse $as_nop
911520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
911620915927Smrgfi
911794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
911820915927Smrgfi
911994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
912094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
912120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
912220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
912320915927Smrgfi
912420915927Smrg
912520915927Smrgfound="no"
912620915927Smrg
912720915927Smrg	if test $found = "no" ; then
912804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
912920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
913020915927Smrg		fi
913120915927Smrg
913204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
913320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
913420915927Smrg		fi
913520915927Smrg
913620915927Smrg		CFLAGS="$CFLAGS -Winit-self"
913720915927Smrg
913894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
913994c9ab7bSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
914020915927Smrg		cacheid=xorg_cv_cc_flag__Winit_self
914194c9ab7bSmrg		if eval test \${$cacheid+y}
914294c9ab7bSmrgthen :
914394c9ab7bSmrg  printf %s "(cached) " >&6
914494c9ab7bSmrgelse $as_nop
914520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
914620915927Smrg/* end confdefs.h.  */
914720915927Smrgint i;
914820915927Smrgint
914994c9ab7bSmrgmain (void)
915020915927Smrg{
915120915927Smrg
915220915927Smrg  ;
915320915927Smrg  return 0;
915420915927Smrg}
915520915927Smrg_ACEOF
915694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
915794c9ab7bSmrgthen :
915820915927Smrg  eval $cacheid=yes
915994c9ab7bSmrgelse $as_nop
916020915927Smrg  eval $cacheid=no
916120915927Smrgfi
916294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
916320915927Smrg    conftest$ac_exeext conftest.$ac_ext
916420915927Smrgfi
916520915927Smrg
916620915927Smrg
916720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
916820915927Smrg
916920915927Smrg		eval supported=\$$cacheid
917094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
917194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
917220915927Smrg		if test "$supported" = "yes" ; then
917320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
917420915927Smrg			found="yes"
917520915927Smrg		fi
917620915927Smrg	fi
917720915927Smrg
917820915927Smrg
917920915927Smrg
918020915927Smrg
918120915927Smrg
918220915927Smrg
918320915927Smrg
918420915927Smrg
918520915927Smrg
918620915927Smrg
918720915927Smrg
918820915927Smrg
918920915927Smrg
919020915927Smrg
919120915927Smrg
919220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
919320915927Smrg
919420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
919520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
919694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
919794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
919894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
919994c9ab7bSmrgthen :
920094c9ab7bSmrg  printf %s "(cached) " >&6
920194c9ab7bSmrgelse $as_nop
920220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
920320915927Smrg/* end confdefs.h.  */
920420915927Smrgint i;
920520915927Smrg_ACEOF
920694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
920794c9ab7bSmrgthen :
920820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
920994c9ab7bSmrgelse $as_nop
921020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
921120915927Smrgfi
921294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
921320915927Smrgfi
921494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
921594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
921620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
921720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
921820915927Smrgfi
921920915927Smrg
922020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
922120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
922220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
922320915927Smrg	fi
922420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
922594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
922694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
922794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
922894c9ab7bSmrgthen :
922994c9ab7bSmrg  printf %s "(cached) " >&6
923094c9ab7bSmrgelse $as_nop
923120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
923220915927Smrg/* end confdefs.h.  */
923320915927Smrgint i;
923420915927Smrg_ACEOF
923594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
923694c9ab7bSmrgthen :
923720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
923894c9ab7bSmrgelse $as_nop
923920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
924020915927Smrgfi
924194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
924220915927Smrgfi
924394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
924494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
924520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
924620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
924720915927Smrgfi
924820915927Smrg
924920915927Smrgfound="no"
925020915927Smrg
925120915927Smrg	if test $found = "no" ; then
925204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
925320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
925420915927Smrg		fi
925520915927Smrg
925604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
925720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
925820915927Smrg		fi
925920915927Smrg
926020915927Smrg		CFLAGS="$CFLAGS -Wmain"
926120915927Smrg
926294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
926394c9ab7bSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
926420915927Smrg		cacheid=xorg_cv_cc_flag__Wmain
926594c9ab7bSmrg		if eval test \${$cacheid+y}
926694c9ab7bSmrgthen :
926794c9ab7bSmrg  printf %s "(cached) " >&6
926894c9ab7bSmrgelse $as_nop
926920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
927020915927Smrg/* end confdefs.h.  */
927120915927Smrgint i;
927220915927Smrgint
927394c9ab7bSmrgmain (void)
927420915927Smrg{
927520915927Smrg
927620915927Smrg  ;
927720915927Smrg  return 0;
927820915927Smrg}
927920915927Smrg_ACEOF
928094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
928194c9ab7bSmrgthen :
928220915927Smrg  eval $cacheid=yes
928394c9ab7bSmrgelse $as_nop
928420915927Smrg  eval $cacheid=no
928520915927Smrgfi
928694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
928720915927Smrg    conftest$ac_exeext conftest.$ac_ext
928820915927Smrgfi
928920915927Smrg
929020915927Smrg
929120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
929220915927Smrg
929320915927Smrg		eval supported=\$$cacheid
929494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
929594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
929620915927Smrg		if test "$supported" = "yes" ; then
929720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
929820915927Smrg			found="yes"
929920915927Smrg		fi
930020915927Smrg	fi
930120915927Smrg
930220915927Smrg
930320915927Smrg
930420915927Smrg
930520915927Smrg
930620915927Smrg
930720915927Smrg
930820915927Smrg
930920915927Smrg
931020915927Smrg
931120915927Smrg
931220915927Smrg
931320915927Smrg
931420915927Smrg
931520915927Smrg
931620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
931720915927Smrg
931820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
931920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
932094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
932194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
932294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
932394c9ab7bSmrgthen :
932494c9ab7bSmrg  printf %s "(cached) " >&6
932594c9ab7bSmrgelse $as_nop
932620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
932720915927Smrg/* end confdefs.h.  */
932820915927Smrgint i;
932920915927Smrg_ACEOF
933094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
933194c9ab7bSmrgthen :
933220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
933394c9ab7bSmrgelse $as_nop
933420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
933520915927Smrgfi
933694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
933720915927Smrgfi
933894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
933994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
934020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
934120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
934220915927Smrgfi
934320915927Smrg
934420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
934520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
934620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
934720915927Smrg	fi
934820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
934994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
935094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
935194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
935294c9ab7bSmrgthen :
935394c9ab7bSmrg  printf %s "(cached) " >&6
935494c9ab7bSmrgelse $as_nop
935520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
935620915927Smrg/* end confdefs.h.  */
935720915927Smrgint i;
935820915927Smrg_ACEOF
935994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
936094c9ab7bSmrgthen :
936120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
936294c9ab7bSmrgelse $as_nop
936320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
936420915927Smrgfi
936594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
936620915927Smrgfi
936794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
936894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
936920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
937020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
937120915927Smrgfi
937220915927Smrg
937320915927Smrgfound="no"
937420915927Smrg
937520915927Smrg	if test $found = "no" ; then
937604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
937720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
937820915927Smrg		fi
937920915927Smrg
938004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
938120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
938220915927Smrg		fi
938320915927Smrg
938420915927Smrg		CFLAGS="$CFLAGS -Wmissing-braces"
938520915927Smrg
938694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
938794c9ab7bSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
938820915927Smrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
938994c9ab7bSmrg		if eval test \${$cacheid+y}
939094c9ab7bSmrgthen :
939194c9ab7bSmrg  printf %s "(cached) " >&6
939294c9ab7bSmrgelse $as_nop
939320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
939420915927Smrg/* end confdefs.h.  */
939520915927Smrgint i;
939620915927Smrgint
939794c9ab7bSmrgmain (void)
939820915927Smrg{
939920915927Smrg
940020915927Smrg  ;
940120915927Smrg  return 0;
940220915927Smrg}
940320915927Smrg_ACEOF
940494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
940594c9ab7bSmrgthen :
940620915927Smrg  eval $cacheid=yes
940794c9ab7bSmrgelse $as_nop
940820915927Smrg  eval $cacheid=no
940920915927Smrgfi
941094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
941120915927Smrg    conftest$ac_exeext conftest.$ac_ext
941220915927Smrgfi
941320915927Smrg
941420915927Smrg
941520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
941620915927Smrg
941720915927Smrg		eval supported=\$$cacheid
941894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
941994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
942020915927Smrg		if test "$supported" = "yes" ; then
942120915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
942220915927Smrg			found="yes"
942320915927Smrg		fi
942420915927Smrg	fi
942520915927Smrg
942620915927Smrg
942720915927Smrg
942820915927Smrg
942920915927Smrg
943020915927Smrg
943120915927Smrg
943220915927Smrg
943320915927Smrg
943420915927Smrg
943520915927Smrg
943620915927Smrg
943720915927Smrg
943820915927Smrg
943920915927Smrg
944020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
944120915927Smrg
944220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
944320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
944494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
944594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
944694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
944794c9ab7bSmrgthen :
944894c9ab7bSmrg  printf %s "(cached) " >&6
944994c9ab7bSmrgelse $as_nop
945020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
945120915927Smrg/* end confdefs.h.  */
945220915927Smrgint i;
945320915927Smrg_ACEOF
945494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
945594c9ab7bSmrgthen :
945620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
945794c9ab7bSmrgelse $as_nop
945820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
945920915927Smrgfi
946094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
946120915927Smrgfi
946294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
946394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
946420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
946520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
946620915927Smrgfi
946720915927Smrg
946820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
946920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
947020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
947120915927Smrg	fi
947220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
947394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
947494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
947594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
947694c9ab7bSmrgthen :
947794c9ab7bSmrg  printf %s "(cached) " >&6
947894c9ab7bSmrgelse $as_nop
947920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
948020915927Smrg/* end confdefs.h.  */
948120915927Smrgint i;
948220915927Smrg_ACEOF
948394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
948494c9ab7bSmrgthen :
948520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
948694c9ab7bSmrgelse $as_nop
948720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
948820915927Smrgfi
948994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
949020915927Smrgfi
949194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
949294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
949320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
949420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
949520915927Smrgfi
949620915927Smrg
949720915927Smrgfound="no"
949820915927Smrg
949920915927Smrg	if test $found = "no" ; then
950004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
950120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
950220915927Smrg		fi
950320915927Smrg
950404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
950520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
950620915927Smrg		fi
950720915927Smrg
950820915927Smrg		CFLAGS="$CFLAGS -Wsequence-point"
950920915927Smrg
951094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
951194c9ab7bSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
951220915927Smrg		cacheid=xorg_cv_cc_flag__Wsequence_point
951394c9ab7bSmrg		if eval test \${$cacheid+y}
951494c9ab7bSmrgthen :
951594c9ab7bSmrg  printf %s "(cached) " >&6
951694c9ab7bSmrgelse $as_nop
951720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
951820915927Smrg/* end confdefs.h.  */
951920915927Smrgint i;
952020915927Smrgint
952194c9ab7bSmrgmain (void)
952220915927Smrg{
952320915927Smrg
952420915927Smrg  ;
952520915927Smrg  return 0;
952620915927Smrg}
952720915927Smrg_ACEOF
952894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
952994c9ab7bSmrgthen :
953020915927Smrg  eval $cacheid=yes
953194c9ab7bSmrgelse $as_nop
953220915927Smrg  eval $cacheid=no
953320915927Smrgfi
953494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
953520915927Smrg    conftest$ac_exeext conftest.$ac_ext
953620915927Smrgfi
953720915927Smrg
953820915927Smrg
953920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
954020915927Smrg
954120915927Smrg		eval supported=\$$cacheid
954294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
954394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
954420915927Smrg		if test "$supported" = "yes" ; then
954520915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
954620915927Smrg			found="yes"
954720915927Smrg		fi
954820915927Smrg	fi
954920915927Smrg
955020915927Smrg
955120915927Smrg
955220915927Smrg
955320915927Smrg
955420915927Smrg
955520915927Smrg
955620915927Smrg
955720915927Smrg
955820915927Smrg
955920915927Smrg
956020915927Smrg
956120915927Smrg
956220915927Smrg
956320915927Smrg
956420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
956520915927Smrg
956620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
956720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
956894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
956994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
957094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
957194c9ab7bSmrgthen :
957294c9ab7bSmrg  printf %s "(cached) " >&6
957394c9ab7bSmrgelse $as_nop
957420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
957520915927Smrg/* end confdefs.h.  */
957620915927Smrgint i;
957720915927Smrg_ACEOF
957894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
957994c9ab7bSmrgthen :
958020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
958194c9ab7bSmrgelse $as_nop
958220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
958320915927Smrgfi
958494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
958520915927Smrgfi
958694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
958794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
958820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
958920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
959020915927Smrgfi
959120915927Smrg
959220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
959320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
959420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
959520915927Smrg	fi
959620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
959794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
959894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
959994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
960094c9ab7bSmrgthen :
960194c9ab7bSmrg  printf %s "(cached) " >&6
960294c9ab7bSmrgelse $as_nop
960320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
960420915927Smrg/* end confdefs.h.  */
960520915927Smrgint i;
960620915927Smrg_ACEOF
960794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
960894c9ab7bSmrgthen :
960920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
961094c9ab7bSmrgelse $as_nop
961120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
961220915927Smrgfi
961394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
961420915927Smrgfi
961594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
961694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
961720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
961820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
961920915927Smrgfi
962020915927Smrg
962120915927Smrgfound="no"
962220915927Smrg
962320915927Smrg	if test $found = "no" ; then
962404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
962520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
962620915927Smrg		fi
962720915927Smrg
962804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
962920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
963020915927Smrg		fi
963120915927Smrg
963220915927Smrg		CFLAGS="$CFLAGS -Wreturn-type"
963320915927Smrg
963494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
963594c9ab7bSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
963620915927Smrg		cacheid=xorg_cv_cc_flag__Wreturn_type
963794c9ab7bSmrg		if eval test \${$cacheid+y}
963894c9ab7bSmrgthen :
963994c9ab7bSmrg  printf %s "(cached) " >&6
964094c9ab7bSmrgelse $as_nop
964120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
964220915927Smrg/* end confdefs.h.  */
964320915927Smrgint i;
964420915927Smrgint
964594c9ab7bSmrgmain (void)
964620915927Smrg{
964720915927Smrg
964820915927Smrg  ;
964920915927Smrg  return 0;
965020915927Smrg}
965120915927Smrg_ACEOF
965294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
965394c9ab7bSmrgthen :
965420915927Smrg  eval $cacheid=yes
965594c9ab7bSmrgelse $as_nop
965620915927Smrg  eval $cacheid=no
965720915927Smrgfi
965894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
965920915927Smrg    conftest$ac_exeext conftest.$ac_ext
966020915927Smrgfi
966120915927Smrg
966220915927Smrg
966320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
966420915927Smrg
966520915927Smrg		eval supported=\$$cacheid
966694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
966794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
966820915927Smrg		if test "$supported" = "yes" ; then
966920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
967020915927Smrg			found="yes"
967120915927Smrg		fi
967220915927Smrg	fi
967320915927Smrg
967420915927Smrg
967520915927Smrg
967620915927Smrg
967720915927Smrg
967820915927Smrg
967920915927Smrg
968020915927Smrg
968120915927Smrg
968220915927Smrg
968320915927Smrg
968420915927Smrg
968520915927Smrg
968620915927Smrg
968720915927Smrg
968820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
968920915927Smrg
969020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
969120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
969294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
969394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
969494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
969594c9ab7bSmrgthen :
969694c9ab7bSmrg  printf %s "(cached) " >&6
969794c9ab7bSmrgelse $as_nop
969820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
969920915927Smrg/* end confdefs.h.  */
970020915927Smrgint i;
970120915927Smrg_ACEOF
970294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
970394c9ab7bSmrgthen :
970420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
970594c9ab7bSmrgelse $as_nop
970620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
970720915927Smrgfi
970894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
970920915927Smrgfi
971094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
971194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
971220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
971320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
971420915927Smrgfi
971520915927Smrg
971620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
971720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
971820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
971920915927Smrg	fi
972020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
972194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
972294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
972394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
972494c9ab7bSmrgthen :
972594c9ab7bSmrg  printf %s "(cached) " >&6
972694c9ab7bSmrgelse $as_nop
972720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
972820915927Smrg/* end confdefs.h.  */
972920915927Smrgint i;
973020915927Smrg_ACEOF
973194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
973294c9ab7bSmrgthen :
973320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
973494c9ab7bSmrgelse $as_nop
973520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
973620915927Smrgfi
973794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
973820915927Smrgfi
973994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
974094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
974120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
974220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
974320915927Smrgfi
974420915927Smrg
974520915927Smrgfound="no"
974620915927Smrg
974720915927Smrg	if test $found = "no" ; then
974804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
974920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
975020915927Smrg		fi
975120915927Smrg
975204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
975320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
975420915927Smrg		fi
975520915927Smrg
975620915927Smrg		CFLAGS="$CFLAGS -Wtrigraphs"
975720915927Smrg
975894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
975994c9ab7bSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
976020915927Smrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
976194c9ab7bSmrg		if eval test \${$cacheid+y}
976294c9ab7bSmrgthen :
976394c9ab7bSmrg  printf %s "(cached) " >&6
976494c9ab7bSmrgelse $as_nop
976520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
976620915927Smrg/* end confdefs.h.  */
976720915927Smrgint i;
976820915927Smrgint
976994c9ab7bSmrgmain (void)
977020915927Smrg{
977120915927Smrg
977220915927Smrg  ;
977320915927Smrg  return 0;
977420915927Smrg}
977520915927Smrg_ACEOF
977694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
977794c9ab7bSmrgthen :
977820915927Smrg  eval $cacheid=yes
977994c9ab7bSmrgelse $as_nop
978020915927Smrg  eval $cacheid=no
978120915927Smrgfi
978294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
978320915927Smrg    conftest$ac_exeext conftest.$ac_ext
978420915927Smrgfi
978520915927Smrg
978620915927Smrg
978720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
978820915927Smrg
978920915927Smrg		eval supported=\$$cacheid
979094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
979194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
979220915927Smrg		if test "$supported" = "yes" ; then
979320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
979420915927Smrg			found="yes"
979520915927Smrg		fi
979620915927Smrg	fi
979720915927Smrg
979820915927Smrg
979920915927Smrg
980020915927Smrg
980120915927Smrg
980220915927Smrg
980320915927Smrg
980420915927Smrg
980520915927Smrg
980620915927Smrg
980720915927Smrg
980820915927Smrg
980920915927Smrg
981020915927Smrg
981120915927Smrg
981220915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
981320915927Smrg
981420915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
981520915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
981694c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
981794c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
981894c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
981994c9ab7bSmrgthen :
982094c9ab7bSmrg  printf %s "(cached) " >&6
982194c9ab7bSmrgelse $as_nop
982220915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
982320915927Smrg/* end confdefs.h.  */
982420915927Smrgint i;
982520915927Smrg_ACEOF
982694c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
982794c9ab7bSmrgthen :
982820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
982994c9ab7bSmrgelse $as_nop
983020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
983120915927Smrgfi
983294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
983320915927Smrgfi
983494c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
983594c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
983620915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
983720915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
983820915927Smrgfi
983920915927Smrg
984020915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
984120915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
984220915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
984320915927Smrg	fi
984420915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
984594c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
984694c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
984794c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
984894c9ab7bSmrgthen :
984994c9ab7bSmrg  printf %s "(cached) " >&6
985094c9ab7bSmrgelse $as_nop
985120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
985220915927Smrg/* end confdefs.h.  */
985320915927Smrgint i;
985420915927Smrg_ACEOF
985594c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
985694c9ab7bSmrgthen :
985720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
985894c9ab7bSmrgelse $as_nop
985920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
986020915927Smrgfi
986194c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
986220915927Smrgfi
986394c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
986494c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
986520915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
986620915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
986720915927Smrgfi
986820915927Smrg
986920915927Smrgfound="no"
987020915927Smrg
987120915927Smrg	if test $found = "no" ; then
987204449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
987320915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
987420915927Smrg		fi
987520915927Smrg
987604449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
987720915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
987820915927Smrg		fi
987920915927Smrg
988020915927Smrg		CFLAGS="$CFLAGS -Warray-bounds"
988120915927Smrg
988294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
988394c9ab7bSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
988420915927Smrg		cacheid=xorg_cv_cc_flag__Warray_bounds
988594c9ab7bSmrg		if eval test \${$cacheid+y}
988694c9ab7bSmrgthen :
988794c9ab7bSmrg  printf %s "(cached) " >&6
988894c9ab7bSmrgelse $as_nop
988920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
989020915927Smrg/* end confdefs.h.  */
989120915927Smrgint i;
989220915927Smrgint
989394c9ab7bSmrgmain (void)
989420915927Smrg{
989520915927Smrg
989620915927Smrg  ;
989720915927Smrg  return 0;
989820915927Smrg}
989920915927Smrg_ACEOF
990094c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
990194c9ab7bSmrgthen :
990220915927Smrg  eval $cacheid=yes
990394c9ab7bSmrgelse $as_nop
990420915927Smrg  eval $cacheid=no
990520915927Smrgfi
990694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
990720915927Smrg    conftest$ac_exeext conftest.$ac_ext
990820915927Smrgfi
990920915927Smrg
991020915927Smrg
991120915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
991220915927Smrg
991320915927Smrg		eval supported=\$$cacheid
991494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
991594c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
991620915927Smrg		if test "$supported" = "yes" ; then
991720915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
991820915927Smrg			found="yes"
991920915927Smrg		fi
992020915927Smrg	fi
992120915927Smrg
992220915927Smrg
992320915927Smrg
992420915927Smrg
992520915927Smrg
992620915927Smrg
992720915927Smrg
992820915927Smrg
992920915927Smrg
993020915927Smrg
993120915927Smrg
993220915927Smrg
993320915927Smrg
993420915927Smrg
993520915927Smrg
993620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
993720915927Smrg
993820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
993920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
994094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
994194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
994294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
994394c9ab7bSmrgthen :
994494c9ab7bSmrg  printf %s "(cached) " >&6
994594c9ab7bSmrgelse $as_nop
994620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
994720915927Smrg/* end confdefs.h.  */
994820915927Smrgint i;
994920915927Smrg_ACEOF
995094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
995194c9ab7bSmrgthen :
995220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
995394c9ab7bSmrgelse $as_nop
995420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
995520915927Smrgfi
995694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
995720915927Smrgfi
995894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
995994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
996020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
996120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
996220915927Smrgfi
996320915927Smrg
996420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
996520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
996620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
996720915927Smrg	fi
996820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
996994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
997094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
997194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
997294c9ab7bSmrgthen :
997394c9ab7bSmrg  printf %s "(cached) " >&6
997494c9ab7bSmrgelse $as_nop
997520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
997620915927Smrg/* end confdefs.h.  */
997720915927Smrgint i;
997820915927Smrg_ACEOF
997994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
998094c9ab7bSmrgthen :
998120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
998294c9ab7bSmrgelse $as_nop
998320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
998420915927Smrgfi
998594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
998620915927Smrgfi
998794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
998894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
998920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
999020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
999120915927Smrgfi
999220915927Smrg
999320915927Smrgfound="no"
999420915927Smrg
999520915927Smrg	if test $found = "no" ; then
999604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
999720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
999820915927Smrg		fi
999920915927Smrg
1000004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1000120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1000220915927Smrg		fi
1000320915927Smrg
1000420915927Smrg		CFLAGS="$CFLAGS -Wwrite-strings"
1000520915927Smrg
1000694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
1000794c9ab7bSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
1000820915927Smrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
1000994c9ab7bSmrg		if eval test \${$cacheid+y}
1001094c9ab7bSmrgthen :
1001194c9ab7bSmrg  printf %s "(cached) " >&6
1001294c9ab7bSmrgelse $as_nop
1001320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1001420915927Smrg/* end confdefs.h.  */
1001520915927Smrgint i;
1001620915927Smrgint
1001794c9ab7bSmrgmain (void)
1001820915927Smrg{
1001920915927Smrg
1002020915927Smrg  ;
1002120915927Smrg  return 0;
1002220915927Smrg}
1002320915927Smrg_ACEOF
1002494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1002594c9ab7bSmrgthen :
1002620915927Smrg  eval $cacheid=yes
1002794c9ab7bSmrgelse $as_nop
1002820915927Smrg  eval $cacheid=no
1002920915927Smrgfi
1003094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1003120915927Smrg    conftest$ac_exeext conftest.$ac_ext
1003220915927Smrgfi
1003320915927Smrg
1003420915927Smrg
1003520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1003620915927Smrg
1003720915927Smrg		eval supported=\$$cacheid
1003894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1003994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1004020915927Smrg		if test "$supported" = "yes" ; then
1004120915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
1004220915927Smrg			found="yes"
1004320915927Smrg		fi
1004420915927Smrg	fi
1004520915927Smrg
1004620915927Smrg
1004720915927Smrg
1004820915927Smrg
1004920915927Smrg
1005020915927Smrg
1005120915927Smrg
1005220915927Smrg
1005320915927Smrg
1005420915927Smrg
1005520915927Smrg
1005620915927Smrg
1005720915927Smrg
1005820915927Smrg
1005920915927Smrg
1006020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1006120915927Smrg
1006220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1006320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1006494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1006594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1006694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1006794c9ab7bSmrgthen :
1006894c9ab7bSmrg  printf %s "(cached) " >&6
1006994c9ab7bSmrgelse $as_nop
1007020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1007120915927Smrg/* end confdefs.h.  */
1007220915927Smrgint i;
1007320915927Smrg_ACEOF
1007494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1007594c9ab7bSmrgthen :
1007620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1007794c9ab7bSmrgelse $as_nop
1007820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1007920915927Smrgfi
1008094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1008120915927Smrgfi
1008294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1008394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1008420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1008520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1008620915927Smrgfi
1008720915927Smrg
1008820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1008920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1009020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1009120915927Smrg	fi
1009220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1009394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1009494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1009594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1009694c9ab7bSmrgthen :
1009794c9ab7bSmrg  printf %s "(cached) " >&6
1009894c9ab7bSmrgelse $as_nop
1009920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1010020915927Smrg/* end confdefs.h.  */
1010120915927Smrgint i;
1010220915927Smrg_ACEOF
1010394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1010494c9ab7bSmrgthen :
1010520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1010694c9ab7bSmrgelse $as_nop
1010720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1010820915927Smrgfi
1010994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1011020915927Smrgfi
1011194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1011294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1011320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1011420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1011520915927Smrgfi
1011620915927Smrg
1011720915927Smrgfound="no"
1011820915927Smrg
1011920915927Smrg	if test $found = "no" ; then
1012004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1012120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1012220915927Smrg		fi
1012320915927Smrg
1012404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1012520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1012620915927Smrg		fi
1012720915927Smrg
1012820915927Smrg		CFLAGS="$CFLAGS -Waddress"
1012920915927Smrg
1013094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
1013194c9ab7bSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
1013220915927Smrg		cacheid=xorg_cv_cc_flag__Waddress
1013394c9ab7bSmrg		if eval test \${$cacheid+y}
1013494c9ab7bSmrgthen :
1013594c9ab7bSmrg  printf %s "(cached) " >&6
1013694c9ab7bSmrgelse $as_nop
1013720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1013820915927Smrg/* end confdefs.h.  */
1013920915927Smrgint i;
1014020915927Smrgint
1014194c9ab7bSmrgmain (void)
1014220915927Smrg{
1014320915927Smrg
1014420915927Smrg  ;
1014520915927Smrg  return 0;
1014620915927Smrg}
1014720915927Smrg_ACEOF
1014894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1014994c9ab7bSmrgthen :
1015020915927Smrg  eval $cacheid=yes
1015194c9ab7bSmrgelse $as_nop
1015220915927Smrg  eval $cacheid=no
1015320915927Smrgfi
1015494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1015520915927Smrg    conftest$ac_exeext conftest.$ac_ext
1015620915927Smrgfi
1015720915927Smrg
1015820915927Smrg
1015920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1016020915927Smrg
1016120915927Smrg		eval supported=\$$cacheid
1016294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1016394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1016420915927Smrg		if test "$supported" = "yes" ; then
1016520915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
1016620915927Smrg			found="yes"
1016720915927Smrg		fi
1016820915927Smrg	fi
1016920915927Smrg
1017020915927Smrg
1017120915927Smrg
1017220915927Smrg
1017320915927Smrg
1017420915927Smrg
1017520915927Smrg
1017620915927Smrg
1017720915927Smrg
1017820915927Smrg
1017920915927Smrg
1018020915927Smrg
1018120915927Smrg
1018220915927Smrg
1018320915927Smrg
1018420915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1018520915927Smrg
1018620915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1018720915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1018894c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1018994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1019094c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1019194c9ab7bSmrgthen :
1019294c9ab7bSmrg  printf %s "(cached) " >&6
1019394c9ab7bSmrgelse $as_nop
1019420915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1019520915927Smrg/* end confdefs.h.  */
1019620915927Smrgint i;
1019720915927Smrg_ACEOF
1019894c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1019994c9ab7bSmrgthen :
1020020915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1020194c9ab7bSmrgelse $as_nop
1020220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1020320915927Smrgfi
1020494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1020520915927Smrgfi
1020694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1020794c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1020820915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1020920915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1021020915927Smrgfi
1021120915927Smrg
1021220915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1021320915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1021420915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1021520915927Smrg	fi
1021620915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1021794c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1021894c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1021994c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1022094c9ab7bSmrgthen :
1022194c9ab7bSmrg  printf %s "(cached) " >&6
1022294c9ab7bSmrgelse $as_nop
1022320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1022420915927Smrg/* end confdefs.h.  */
1022520915927Smrgint i;
1022620915927Smrg_ACEOF
1022794c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1022894c9ab7bSmrgthen :
1022920915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1023094c9ab7bSmrgelse $as_nop
1023120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1023220915927Smrgfi
1023394c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1023420915927Smrgfi
1023594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1023694c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1023720915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1023820915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1023920915927Smrgfi
1024020915927Smrg
1024120915927Smrgfound="no"
1024220915927Smrg
1024320915927Smrg	if test $found = "no" ; then
1024404449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1024520915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1024620915927Smrg		fi
1024720915927Smrg
1024804449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1024920915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1025020915927Smrg		fi
1025120915927Smrg
1025220915927Smrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
1025320915927Smrg
1025494c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
1025594c9ab7bSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
1025620915927Smrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
1025794c9ab7bSmrg		if eval test \${$cacheid+y}
1025894c9ab7bSmrgthen :
1025994c9ab7bSmrg  printf %s "(cached) " >&6
1026094c9ab7bSmrgelse $as_nop
1026120915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1026220915927Smrg/* end confdefs.h.  */
1026320915927Smrgint i;
1026420915927Smrgint
1026594c9ab7bSmrgmain (void)
1026620915927Smrg{
1026720915927Smrg
1026820915927Smrg  ;
1026920915927Smrg  return 0;
1027020915927Smrg}
1027120915927Smrg_ACEOF
1027294c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1027394c9ab7bSmrgthen :
1027420915927Smrg  eval $cacheid=yes
1027594c9ab7bSmrgelse $as_nop
1027620915927Smrg  eval $cacheid=no
1027720915927Smrgfi
1027894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1027920915927Smrg    conftest$ac_exeext conftest.$ac_ext
1028020915927Smrgfi
1028120915927Smrg
1028220915927Smrg
1028320915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1028420915927Smrg
1028520915927Smrg		eval supported=\$$cacheid
1028694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1028794c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1028820915927Smrg		if test "$supported" = "yes" ; then
1028920915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
1029020915927Smrg			found="yes"
1029120915927Smrg		fi
1029220915927Smrg	fi
1029320915927Smrg
1029420915927Smrg
1029520915927Smrg
1029620915927Smrg
1029720915927Smrg
1029820915927Smrg
1029920915927Smrg
1030020915927Smrg
1030120915927Smrg
1030220915927Smrg
1030320915927Smrg
1030420915927Smrg
1030520915927Smrg
1030620915927Smrg
1030720915927Smrg
1030820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1030920915927Smrg
1031020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1031120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1031294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1031394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1031494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1031594c9ab7bSmrgthen :
1031694c9ab7bSmrg  printf %s "(cached) " >&6
1031794c9ab7bSmrgelse $as_nop
1031820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1031920915927Smrg/* end confdefs.h.  */
1032020915927Smrgint i;
1032120915927Smrg_ACEOF
1032294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1032394c9ab7bSmrgthen :
1032420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1032594c9ab7bSmrgelse $as_nop
1032620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1032720915927Smrgfi
1032894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1032920915927Smrgfi
1033094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1033194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1033220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1033320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1033420915927Smrgfi
1033520915927Smrg
1033620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1033720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1033820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1033920915927Smrg	fi
1034020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1034194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1034294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1034394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1034494c9ab7bSmrgthen :
1034594c9ab7bSmrg  printf %s "(cached) " >&6
1034694c9ab7bSmrgelse $as_nop
1034720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1034820915927Smrg/* end confdefs.h.  */
1034920915927Smrgint i;
1035020915927Smrg_ACEOF
1035194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1035294c9ab7bSmrgthen :
1035320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1035494c9ab7bSmrgelse $as_nop
1035520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1035620915927Smrgfi
1035794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1035820915927Smrgfi
1035994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1036094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1036120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1036220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1036320915927Smrgfi
1036420915927Smrg
1036520915927Smrgfound="no"
1036620915927Smrg
1036720915927Smrg	if test $found = "no" ; then
1036804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1036920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1037020915927Smrg		fi
1037120915927Smrg
1037204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1037320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1037420915927Smrg		fi
1037520915927Smrg
1037620915927Smrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
1037720915927Smrg
1037894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
1037994c9ab7bSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
1038020915927Smrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
1038194c9ab7bSmrg		if eval test \${$cacheid+y}
1038294c9ab7bSmrgthen :
1038394c9ab7bSmrg  printf %s "(cached) " >&6
1038494c9ab7bSmrgelse $as_nop
1038520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1038620915927Smrg/* end confdefs.h.  */
1038720915927Smrgint i;
1038820915927Smrgint
1038994c9ab7bSmrgmain (void)
1039020915927Smrg{
1039120915927Smrg
1039220915927Smrg  ;
1039320915927Smrg  return 0;
1039420915927Smrg}
1039520915927Smrg_ACEOF
1039694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1039794c9ab7bSmrgthen :
1039820915927Smrg  eval $cacheid=yes
1039994c9ab7bSmrgelse $as_nop
1040020915927Smrg  eval $cacheid=no
1040120915927Smrgfi
1040294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1040320915927Smrg    conftest$ac_exeext conftest.$ac_ext
1040420915927Smrgfi
1040520915927Smrg
1040620915927Smrg
1040720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1040820915927Smrg
1040920915927Smrg		eval supported=\$$cacheid
1041094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1041194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1041220915927Smrg		if test "$supported" = "yes" ; then
1041320915927Smrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
1041420915927Smrg			found="yes"
1041520915927Smrg		fi
1041620915927Smrg	fi
1041720915927Smrg
1041820915927Smrg
1041920915927Smrgfi
1042020915927Smrg
1042120915927Smrg
1042220915927Smrg
1042320915927Smrg
1042420915927Smrg
1042520915927Smrg
1042620915927Smrg
1042720915927Smrg		CWARNFLAGS="$BASE_CFLAGS"
1042820915927Smrg		if  test "x$GCC" = xyes ; then
1042920915927Smrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
1043020915927Smrg		fi
1043120915927Smrg
1043220915927Smrg
1043320915927Smrg
1043420915927Smrg
1043520915927Smrg
1043620915927Smrg
1043720915927Smrg
1043820915927Smrg
1043920915927Smrg# Check whether --enable-strict-compilation was given.
1044094c9ab7bSmrgif test ${enable_strict_compilation+y}
1044194c9ab7bSmrgthen :
1044220915927Smrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
1044394c9ab7bSmrgelse $as_nop
1044420915927Smrg  STRICT_COMPILE=no
1044520915927Smrgfi
1044620915927Smrg
1044720915927Smrg
1044820915927Smrg
1044920915927Smrg
1045020915927Smrg
1045120915927Smrg
1045220915927SmrgSTRICT_CFLAGS=""
1045320915927Smrg
1045420915927Smrg
1045520915927Smrg
1045620915927Smrg
1045720915927Smrg
1045820915927Smrg
1045920915927Smrg
1046020915927Smrg
1046120915927Smrg
1046220915927Smrg
1046320915927Smrg
1046420915927Smrg
1046520915927Smrg
1046620915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1046720915927Smrg
1046820915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1046920915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1047094c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1047194c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1047294c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1047394c9ab7bSmrgthen :
1047494c9ab7bSmrg  printf %s "(cached) " >&6
1047594c9ab7bSmrgelse $as_nop
1047620915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1047720915927Smrg/* end confdefs.h.  */
1047820915927Smrgint i;
1047920915927Smrg_ACEOF
1048094c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1048194c9ab7bSmrgthen :
1048220915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1048394c9ab7bSmrgelse $as_nop
1048420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1048520915927Smrgfi
1048694c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1048720915927Smrgfi
1048894c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1048994c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1049020915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1049120915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1049220915927Smrgfi
1049320915927Smrg
1049420915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1049520915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1049620915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1049720915927Smrg	fi
1049820915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1049994c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1050094c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1050194c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1050294c9ab7bSmrgthen :
1050394c9ab7bSmrg  printf %s "(cached) " >&6
1050494c9ab7bSmrgelse $as_nop
1050520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1050620915927Smrg/* end confdefs.h.  */
1050720915927Smrgint i;
1050820915927Smrg_ACEOF
1050994c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1051094c9ab7bSmrgthen :
1051120915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1051294c9ab7bSmrgelse $as_nop
1051320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1051420915927Smrgfi
1051594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1051620915927Smrgfi
1051794c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1051894c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1051920915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1052020915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1052120915927Smrgfi
1052220915927Smrg
1052320915927Smrgfound="no"
1052420915927Smrg
1052520915927Smrg	if test $found = "no" ; then
1052604449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1052720915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1052820915927Smrg		fi
1052920915927Smrg
1053004449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1053120915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1053220915927Smrg		fi
1053320915927Smrg
1053420915927Smrg		CFLAGS="$CFLAGS -pedantic"
1053520915927Smrg
1053694c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
1053794c9ab7bSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
1053820915927Smrg		cacheid=xorg_cv_cc_flag__pedantic
1053994c9ab7bSmrg		if eval test \${$cacheid+y}
1054094c9ab7bSmrgthen :
1054194c9ab7bSmrg  printf %s "(cached) " >&6
1054294c9ab7bSmrgelse $as_nop
1054320915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1054420915927Smrg/* end confdefs.h.  */
1054520915927Smrgint i;
1054620915927Smrgint
1054794c9ab7bSmrgmain (void)
1054820915927Smrg{
1054920915927Smrg
1055020915927Smrg  ;
1055120915927Smrg  return 0;
1055220915927Smrg}
1055320915927Smrg_ACEOF
1055494c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1055594c9ab7bSmrgthen :
1055620915927Smrg  eval $cacheid=yes
1055794c9ab7bSmrgelse $as_nop
1055820915927Smrg  eval $cacheid=no
1055920915927Smrgfi
1056094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1056120915927Smrg    conftest$ac_exeext conftest.$ac_ext
1056220915927Smrgfi
1056320915927Smrg
1056420915927Smrg
1056520915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1056620915927Smrg
1056720915927Smrg		eval supported=\$$cacheid
1056894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1056994c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1057020915927Smrg		if test "$supported" = "yes" ; then
1057120915927Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
1057220915927Smrg			found="yes"
1057320915927Smrg		fi
1057420915927Smrg	fi
1057520915927Smrg
1057620915927Smrg
1057720915927Smrg
1057820915927Smrg
1057920915927Smrg
1058020915927Smrg
1058120915927Smrg
1058220915927Smrg
1058320915927Smrg
1058420915927Smrg
1058520915927Smrg
1058620915927Smrg
1058720915927Smrg
1058820915927Smrg
1058920915927Smrg
1059020915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1059120915927Smrg
1059220915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1059320915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1059494c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1059594c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1059694c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1059794c9ab7bSmrgthen :
1059894c9ab7bSmrg  printf %s "(cached) " >&6
1059994c9ab7bSmrgelse $as_nop
1060020915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1060120915927Smrg/* end confdefs.h.  */
1060220915927Smrgint i;
1060320915927Smrg_ACEOF
1060494c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1060594c9ab7bSmrgthen :
1060620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1060794c9ab7bSmrgelse $as_nop
1060820915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1060920915927Smrgfi
1061094c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1061120915927Smrgfi
1061294c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1061394c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1061420915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1061520915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1061620915927Smrgfi
1061720915927Smrg
1061820915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1061920915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1062020915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1062120915927Smrg	fi
1062220915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1062394c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1062494c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1062594c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1062694c9ab7bSmrgthen :
1062794c9ab7bSmrg  printf %s "(cached) " >&6
1062894c9ab7bSmrgelse $as_nop
1062920915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1063020915927Smrg/* end confdefs.h.  */
1063120915927Smrgint i;
1063220915927Smrg_ACEOF
1063394c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1063494c9ab7bSmrgthen :
1063520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1063694c9ab7bSmrgelse $as_nop
1063720915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1063820915927Smrgfi
1063994c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1064020915927Smrgfi
1064194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1064294c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1064320915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1064420915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1064520915927Smrgfi
1064620915927Smrg
1064720915927Smrgfound="no"
1064820915927Smrg
1064920915927Smrg	if test $found = "no" ; then
1065004449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1065120915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1065220915927Smrg		fi
1065320915927Smrg
1065404449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1065520915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1065620915927Smrg		fi
1065720915927Smrg
1065820915927Smrg		CFLAGS="$CFLAGS -Werror"
1065920915927Smrg
1066094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
1066194c9ab7bSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
1066220915927Smrg		cacheid=xorg_cv_cc_flag__Werror
1066394c9ab7bSmrg		if eval test \${$cacheid+y}
1066494c9ab7bSmrgthen :
1066594c9ab7bSmrg  printf %s "(cached) " >&6
1066694c9ab7bSmrgelse $as_nop
1066720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1066820915927Smrg/* end confdefs.h.  */
1066920915927Smrgint i;
1067020915927Smrgint
1067194c9ab7bSmrgmain (void)
1067220915927Smrg{
1067320915927Smrg
1067420915927Smrg  ;
1067520915927Smrg  return 0;
1067620915927Smrg}
1067720915927Smrg_ACEOF
1067894c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1067994c9ab7bSmrgthen :
1068020915927Smrg  eval $cacheid=yes
1068194c9ab7bSmrgelse $as_nop
1068220915927Smrg  eval $cacheid=no
1068320915927Smrgfi
1068494c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1068520915927Smrg    conftest$ac_exeext conftest.$ac_ext
1068620915927Smrgfi
1068720915927Smrg
1068820915927Smrg
1068920915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1069020915927Smrg
1069120915927Smrg		eval supported=\$$cacheid
1069294c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1069394c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1069420915927Smrg		if test "$supported" = "yes" ; then
1069520915927Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
1069620915927Smrg			found="yes"
1069720915927Smrg		fi
1069820915927Smrg	fi
1069920915927Smrg
1070020915927Smrg	if test $found = "no" ; then
1070104449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1070220915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1070320915927Smrg		fi
1070420915927Smrg
1070504449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1070620915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1070720915927Smrg		fi
1070820915927Smrg
1070920915927Smrg		CFLAGS="$CFLAGS -errwarn"
1071020915927Smrg
1071194c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
1071294c9ab7bSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
1071320915927Smrg		cacheid=xorg_cv_cc_flag__errwarn
1071494c9ab7bSmrg		if eval test \${$cacheid+y}
1071594c9ab7bSmrgthen :
1071694c9ab7bSmrg  printf %s "(cached) " >&6
1071794c9ab7bSmrgelse $as_nop
1071820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1071920915927Smrg/* end confdefs.h.  */
1072020915927Smrgint i;
1072120915927Smrgint
1072294c9ab7bSmrgmain (void)
1072320915927Smrg{
1072420915927Smrg
1072520915927Smrg  ;
1072620915927Smrg  return 0;
1072720915927Smrg}
1072820915927Smrg_ACEOF
1072994c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1073094c9ab7bSmrgthen :
1073120915927Smrg  eval $cacheid=yes
1073294c9ab7bSmrgelse $as_nop
1073320915927Smrg  eval $cacheid=no
1073420915927Smrgfi
1073594c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1073620915927Smrg    conftest$ac_exeext conftest.$ac_ext
1073720915927Smrgfi
1073820915927Smrg
1073920915927Smrg
1074020915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1074120915927Smrg
1074220915927Smrg		eval supported=\$$cacheid
1074394c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1074494c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1074520915927Smrg		if test "$supported" = "yes" ; then
1074620915927Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
1074720915927Smrg			found="yes"
1074820915927Smrg		fi
1074920915927Smrg	fi
1075020915927Smrg
1075120915927Smrg
1075220915927Smrg
1075320915927Smrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
1075420915927Smrg# activate it with -Werror, so we add it here explicitly.
1075520915927Smrg
1075620915927Smrg
1075720915927Smrg
1075820915927Smrg
1075920915927Smrg
1076020915927Smrg
1076120915927Smrg
1076220915927Smrg
1076320915927Smrg
1076420915927Smrg
1076520915927Smrg
1076620915927Smrg
1076720915927Smrg
1076820915927Smrgxorg_testset_save_CFLAGS="$CFLAGS"
1076920915927Smrg
1077020915927Smrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
1077120915927Smrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1077294c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
1077394c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
1077494c9ab7bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
1077594c9ab7bSmrgthen :
1077694c9ab7bSmrg  printf %s "(cached) " >&6
1077794c9ab7bSmrgelse $as_nop
1077820915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1077920915927Smrg/* end confdefs.h.  */
1078020915927Smrgint i;
1078120915927Smrg_ACEOF
1078294c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1078394c9ab7bSmrgthen :
1078420915927Smrg  xorg_cv_cc_flag_unknown_warning_option=yes
1078594c9ab7bSmrgelse $as_nop
1078620915927Smrg  xorg_cv_cc_flag_unknown_warning_option=no
1078720915927Smrgfi
1078894c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1078920915927Smrgfi
1079094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
1079194c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
1079220915927Smrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
1079320915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1079420915927Smrgfi
1079520915927Smrg
1079620915927Smrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
1079720915927Smrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1079820915927Smrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1079920915927Smrg	fi
1080020915927Smrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1080194c9ab7bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
1080294c9ab7bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
1080394c9ab7bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
1080494c9ab7bSmrgthen :
1080594c9ab7bSmrg  printf %s "(cached) " >&6
1080694c9ab7bSmrgelse $as_nop
1080720915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1080820915927Smrg/* end confdefs.h.  */
1080920915927Smrgint i;
1081020915927Smrg_ACEOF
1081194c9ab7bSmrgif ac_fn_c_try_compile "$LINENO"
1081294c9ab7bSmrgthen :
1081320915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=yes
1081494c9ab7bSmrgelse $as_nop
1081520915927Smrg  xorg_cv_cc_flag_unused_command_line_argument=no
1081620915927Smrgfi
1081794c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1081820915927Smrgfi
1081994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
1082094c9ab7bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
1082120915927Smrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
1082220915927Smrg	CFLAGS="$xorg_testset_save_CFLAGS"
1082320915927Smrgfi
1082420915927Smrg
1082520915927Smrgfound="no"
1082620915927Smrg
1082720915927Smrg	if test $found = "no" ; then
1082804449c54Smrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
1082920915927Smrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
1083020915927Smrg		fi
1083120915927Smrg
1083204449c54Smrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
1083320915927Smrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
1083420915927Smrg		fi
1083520915927Smrg
1083620915927Smrg		CFLAGS="$CFLAGS -Werror=attributes"
1083720915927Smrg
1083894c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
1083994c9ab7bSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
1084004449c54Smrg		cacheid=xorg_cv_cc_flag__Werror_attributes
1084194c9ab7bSmrg		if eval test \${$cacheid+y}
1084294c9ab7bSmrgthen :
1084394c9ab7bSmrg  printf %s "(cached) " >&6
1084494c9ab7bSmrgelse $as_nop
1084520915927Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1084620915927Smrg/* end confdefs.h.  */
1084720915927Smrgint i;
1084820915927Smrgint
1084994c9ab7bSmrgmain (void)
1085020915927Smrg{
1085120915927Smrg
1085220915927Smrg  ;
1085320915927Smrg  return 0;
1085420915927Smrg}
1085520915927Smrg_ACEOF
1085694c9ab7bSmrgif ac_fn_c_try_link "$LINENO"
1085794c9ab7bSmrgthen :
1085820915927Smrg  eval $cacheid=yes
1085994c9ab7bSmrgelse $as_nop
1086020915927Smrg  eval $cacheid=no
1086120915927Smrgfi
1086294c9ab7bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
1086320915927Smrg    conftest$ac_exeext conftest.$ac_ext
1086420915927Smrgfi
1086520915927Smrg
1086620915927Smrg
1086720915927Smrg		CFLAGS="$xorg_testset_save_CFLAGS"
1086820915927Smrg
1086920915927Smrg		eval supported=\$$cacheid
1087094c9ab7bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
1087194c9ab7bSmrgprintf "%s\n" "$supported" >&6; }
1087220915927Smrg		if test "$supported" = "yes" ; then
1087320915927Smrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
1087420915927Smrg			found="yes"
1087520915927Smrg		fi
1087620915927Smrg	fi
1087720915927Smrg
1087820915927Smrg
1087920915927Smrg
1088020915927Smrgif test "x$STRICT_COMPILE" = "xyes"; then
1088120915927Smrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
1088220915927Smrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
1088320915927Smrgfi
1088420915927Smrg
1088520915927Smrg
1088620915927Smrg
1088720915927Smrg
1088820915927Smrg
1088920915927Smrg
1089020915927Smrgcat >>confdefs.h <<_ACEOF
1089120915927Smrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
1089220915927Smrg_ACEOF
1089320915927Smrg
1089420915927Smrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
1089520915927Smrg	if test "x$PVM" = "x"; then
1089620915927Smrg		PVM="0"
1089720915927Smrg	fi
1089820915927Smrg
1089994c9ab7bSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
1090020915927Smrg
1090120915927Smrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
1090220915927Smrg	if test "x$PVP" = "x"; then
1090320915927Smrg		PVP="0"
1090420915927Smrg	fi
1090520915927Smrg
1090694c9ab7bSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
109078440cca4Smrg
1090820915927Smrg
1090920915927Smrg
1091094c9ab7bSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
1091120915927Smrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
1091294c9ab7bSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
1091394c9ab7bSmrgtouch \$(top_srcdir)/ChangeLog; \
1091494c9ab7bSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
1091520915927Smrg
1091620915927Smrg
1091720915927Smrg
1091820915927Smrg
1091920915927Smrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
1092020915927SmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
1092120915927Smrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
1092294c9ab7bSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
1092394c9ab7bSmrgtouch \$(top_srcdir)/INSTALL; \
1092494c9ab7bSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
1092594c9ab7bSmrg
1092620915927Smrg
1092720915927Smrg
1092820915927Smrg
1092920915927Smrg
1093020915927Smrg
1093194c9ab7bSmrgcase $host_os in
1093294c9ab7bSmrg    solaris*)
1093394c9ab7bSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
1093494c9ab7bSmrg        # check for a man page file found in later versions that use
1093594c9ab7bSmrg        # traditional section numbers instead
1093694c9ab7bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
1093794c9ab7bSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
1093894c9ab7bSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
1093994c9ab7bSmrgthen :
1094094c9ab7bSmrg  printf %s "(cached) " >&6
1094194c9ab7bSmrgelse $as_nop
1094294c9ab7bSmrg  test "$cross_compiling" = yes &&
1094394c9ab7bSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
1094494c9ab7bSmrgif test -r "/usr/share/man/man7/attributes.7"; then
1094594c9ab7bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
1094694c9ab7bSmrgelse
1094794c9ab7bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
1094894c9ab7bSmrgfi
1094994c9ab7bSmrgfi
1095094c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
1095194c9ab7bSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
1095294c9ab7bSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
1095394c9ab7bSmrgthen :
1095494c9ab7bSmrg  SYSV_MAN_SECTIONS=false
1095594c9ab7bSmrgelse $as_nop
1095694c9ab7bSmrg  SYSV_MAN_SECTIONS=true
1095794c9ab7bSmrgfi
1095894c9ab7bSmrg
1095994c9ab7bSmrg        ;;
1096094c9ab7bSmrg    *) SYSV_MAN_SECTIONS=false ;;
1096194c9ab7bSmrgesac
1096220915927Smrg
1096320915927Smrgif test x$APP_MAN_SUFFIX = x    ; then
1096420915927Smrg    APP_MAN_SUFFIX=1
1096520915927Smrgfi
1096620915927Smrgif test x$APP_MAN_DIR = x    ; then
1096720915927Smrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
1096820915927Smrgfi
1096920915927Smrg
1097020915927Smrgif test x$LIB_MAN_SUFFIX = x    ; then
1097120915927Smrg    LIB_MAN_SUFFIX=3
1097220915927Smrgfi
1097320915927Smrgif test x$LIB_MAN_DIR = x    ; then
1097420915927Smrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
1097520915927Smrgfi
1097620915927Smrg
1097720915927Smrgif test x$FILE_MAN_SUFFIX = x    ; then
1097894c9ab7bSmrg    case $SYSV_MAN_SECTIONS in
1097994c9ab7bSmrg	true)				FILE_MAN_SUFFIX=4  ;;
1098004449c54Smrg	*)				FILE_MAN_SUFFIX=5  ;;
1098120915927Smrg    esac
1098220915927Smrgfi
1098320915927Smrgif test x$FILE_MAN_DIR = x    ; then
1098420915927Smrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1098520915927Smrgfi
1098620915927Smrg
1098720915927Smrgif test x$MISC_MAN_SUFFIX = x    ; then
1098894c9ab7bSmrg    case $SYSV_MAN_SECTIONS in
1098994c9ab7bSmrg	true)				MISC_MAN_SUFFIX=5  ;;
1099004449c54Smrg	*)				MISC_MAN_SUFFIX=7  ;;
1099120915927Smrg    esac
1099220915927Smrgfi
1099320915927Smrgif test x$MISC_MAN_DIR = x    ; then
1099420915927Smrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1099520915927Smrgfi
1099620915927Smrg
1099720915927Smrgif test x$DRIVER_MAN_SUFFIX = x    ; then
1099894c9ab7bSmrg    case $SYSV_MAN_SECTIONS in
1099994c9ab7bSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1100004449c54Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
1100120915927Smrg    esac
1100220915927Smrgfi
1100320915927Smrgif test x$DRIVER_MAN_DIR = x    ; then
1100420915927Smrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1100520915927Smrgfi
1100620915927Smrg
1100720915927Smrgif test x$ADMIN_MAN_SUFFIX = x    ; then
1100894c9ab7bSmrg    case $SYSV_MAN_SECTIONS in
1100994c9ab7bSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1101004449c54Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
1101120915927Smrg    esac
1101220915927Smrgfi
1101320915927Smrgif test x$ADMIN_MAN_DIR = x    ; then
1101420915927Smrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
1101520915927Smrgfi
1101620915927Smrg
1101720915927Smrg
1101820915927Smrg
1101920915927Smrg
1102020915927Smrg
1102120915927Smrg
1102220915927Smrg
1102320915927Smrg
1102420915927Smrg
1102520915927Smrg
1102620915927Smrg
1102720915927Smrg
1102820915927Smrg
1102920915927Smrg
1103020915927Smrg
1103120915927SmrgXORG_MAN_PAGE="X Version 11"
1103220915927Smrg
1103320915927SmrgMAN_SUBSTS="\
1103420915927Smrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1103520915927Smrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
1103620915927Smrg	-e 's|__xservername__|Xorg|g' \
1103720915927Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
1103820915927Smrg	-e 's|__projectroot__|\$(prefix)|g' \
1103920915927Smrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
1104020915927Smrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
1104120915927Smrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
1104220915927Smrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
1104320915927Smrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
1104420915927Smrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
1104520915927Smrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
1104620915927Smrg
1104720915927Smrg
1104820915927Smrg
1104920915927Smrg# Check whether --enable-silent-rules was given.
1105094c9ab7bSmrgif test ${enable_silent_rules+y}
1105194c9ab7bSmrgthen :
1105220915927Smrg  enableval=$enable_silent_rules;
1105320915927Smrgfi
1105420915927Smrg
1105504449c54Smrgcase $enable_silent_rules in # (((
1105604449c54Smrg  yes) AM_DEFAULT_VERBOSITY=0;;
1105704449c54Smrg   no) AM_DEFAULT_VERBOSITY=1;;
1105804449c54Smrg    *) AM_DEFAULT_VERBOSITY=0;;
1105920915927Smrgesac
1106004449c54Smrgam_make=${MAKE-make}
1106194c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
1106294c9ab7bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
1106394c9ab7bSmrgif test ${am_cv_make_support_nested_variables+y}
1106494c9ab7bSmrgthen :
1106594c9ab7bSmrg  printf %s "(cached) " >&6
1106694c9ab7bSmrgelse $as_nop
1106794c9ab7bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
1106804449c54SmrgBAR0=false
1106904449c54SmrgBAR1=true
1107004449c54SmrgV=1
1107104449c54Smrgam__doit:
1107204449c54Smrg	@$(TRUE)
1107304449c54Smrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
1107404449c54Smrg  am_cv_make_support_nested_variables=yes
1107504449c54Smrgelse
1107604449c54Smrg  am_cv_make_support_nested_variables=no
1107704449c54Smrgfi
1107804449c54Smrgfi
1107994c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
1108094c9ab7bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
1108104449c54Smrgif test $am_cv_make_support_nested_variables = yes; then
1108204449c54Smrg    AM_V='$(V)'
1108304449c54Smrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1108404449c54Smrgelse
1108504449c54Smrg  AM_V=$AM_DEFAULT_VERBOSITY
1108604449c54Smrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1108704449c54Smrgfi
1108820915927SmrgAM_BACKSLASH='\'
1108920915927Smrg
1109020915927Smrg
1109120915927Smrg
1109220915927Smrg# Checks for pkg-config packages
1109320915927Smrg
1109420915927Smrgpkg_failed=no
1109594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XSTDCMAP" >&5
1109694c9ab7bSmrgprintf %s "checking for XSTDCMAP... " >&6; }
11097d1c293acSmrg
11098d1c293acSmrgif test -n "$XSTDCMAP_CFLAGS"; then
11099d1c293acSmrg    pkg_cv_XSTDCMAP_CFLAGS="$XSTDCMAP_CFLAGS"
11100d1c293acSmrg elif test -n "$PKG_CONFIG"; then
11101d1c293acSmrg    if test -n "$PKG_CONFIG" && \
1110294c9ab7bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xproto >= 7.0.17\""; } >&5
1110320915927Smrg  ($PKG_CONFIG --exists --print-errors "xmu x11 xproto >= 7.0.17") 2>&5
11104d1c293acSmrg  ac_status=$?
1110594c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11106d1c293acSmrg  test $ac_status = 0; }; then
1110720915927Smrg  pkg_cv_XSTDCMAP_CFLAGS=`$PKG_CONFIG --cflags "xmu x11 xproto >= 7.0.17" 2>/dev/null`
1110804449c54Smrg		      test "x$?" != "x0" && pkg_failed=yes
111098440cca4Smrgelse
11110d1c293acSmrg  pkg_failed=yes
11111d1c293acSmrgfi
11112d1c293acSmrg else
11113d1c293acSmrg    pkg_failed=untried
11114d1c293acSmrgfi
11115d1c293acSmrgif test -n "$XSTDCMAP_LIBS"; then
11116d1c293acSmrg    pkg_cv_XSTDCMAP_LIBS="$XSTDCMAP_LIBS"
11117d1c293acSmrg elif test -n "$PKG_CONFIG"; then
11118d1c293acSmrg    if test -n "$PKG_CONFIG" && \
1111994c9ab7bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmu x11 xproto >= 7.0.17\""; } >&5
1112020915927Smrg  ($PKG_CONFIG --exists --print-errors "xmu x11 xproto >= 7.0.17") 2>&5
11121d1c293acSmrg  ac_status=$?
1112294c9ab7bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123d1c293acSmrg  test $ac_status = 0; }; then
1112420915927Smrg  pkg_cv_XSTDCMAP_LIBS=`$PKG_CONFIG --libs "xmu x11 xproto >= 7.0.17" 2>/dev/null`
1112504449c54Smrg		      test "x$?" != "x0" && pkg_failed=yes
11126d1c293acSmrgelse
11127d1c293acSmrg  pkg_failed=yes
11128d1c293acSmrgfi
11129d1c293acSmrg else
11130d1c293acSmrg    pkg_failed=untried
11131d1c293acSmrgfi
11132d1c293acSmrg
11133d1c293acSmrg
11134d1c293acSmrg
11135d1c293acSmrgif test $pkg_failed = yes; then
1113694c9ab7bSmrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1113794c9ab7bSmrgprintf "%s\n" "no" >&6; }
11138d1c293acSmrg
11139d1c293acSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11140d1c293acSmrg        _pkg_short_errors_supported=yes
11141d1c293acSmrgelse
11142d1c293acSmrg        _pkg_short_errors_supported=no
11143d1c293acSmrgfi
11144d1c293acSmrg        if test $_pkg_short_errors_supported = yes; then
1114504449c54Smrg	        XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xmu x11 xproto >= 7.0.17" 2>&1`
11146d1c293acSmrg        else
1114704449c54Smrg	        XSTDCMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xmu x11 xproto >= 7.0.17" 2>&1`
11148d1c293acSmrg        fi
11149d1c293acSmrg	# Put the nasty error message in config.log where it belongs
11150d1c293acSmrg	echo "$XSTDCMAP_PKG_ERRORS" >&5
11151d1c293acSmrg
1115220915927Smrg	as_fn_error $? "Package requirements (xmu x11 xproto >= 7.0.17) were not met:
11153d1c293acSmrg
11154d1c293acSmrg$XSTDCMAP_PKG_ERRORS
11155d1c293acSmrg
11156d1c293acSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
11157d1c293acSmrginstalled software in a non-standard prefix.
11158d1c293acSmrg
11159d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS
11160d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config.
1116104449c54SmrgSee the pkg-config man page for more details." "$LINENO" 5
11162d1c293acSmrgelif test $pkg_failed = untried; then
1116394c9ab7bSmrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1116494c9ab7bSmrgprintf "%s\n" "no" >&6; }
1116594c9ab7bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1116694c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11167d1c293acSmrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11168d1c293acSmrgis in your PATH or set the PKG_CONFIG environment variable to the full
11169d1c293acSmrgpath to pkg-config.
111708440cca4Smrg
11171d1c293acSmrgAlternatively, you may set the environment variables XSTDCMAP_CFLAGS
11172d1c293acSmrgand XSTDCMAP_LIBS to avoid the need to call pkg-config.
11173d1c293acSmrgSee the pkg-config man page for more details.
11174d1c293acSmrg
11175d1c293acSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11176d1c293acSmrgSee \`config.log' for more details" "$LINENO" 5; }
11177d1c293acSmrgelse
11178d1c293acSmrg	XSTDCMAP_CFLAGS=$pkg_cv_XSTDCMAP_CFLAGS
11179d1c293acSmrg	XSTDCMAP_LIBS=$pkg_cv_XSTDCMAP_LIBS
1118094c9ab7bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1118194c9ab7bSmrgprintf "%s\n" "yes" >&6; }
1118204449c54Smrg
11183d1c293acSmrgfi
11184d1c293acSmrg
1118520915927Smrgac_config_files="$ac_config_files Makefile man/Makefile"
111868440cca4Smrg
111878440cca4Smrgcat >confcache <<\_ACEOF
111888440cca4Smrg# This file is a shell script that caches the results of configure
111898440cca4Smrg# tests run on this system so they can be shared between configure
111908440cca4Smrg# scripts and configure runs, see configure's option --config-cache.
111918440cca4Smrg# It is not useful on other systems.  If it contains results you don't
111928440cca4Smrg# want to keep, you may remove or edit it.
111938440cca4Smrg#
111948440cca4Smrg# config.status only pays attention to the cache file if you give it
111958440cca4Smrg# the --recheck option to rerun configure.
111968440cca4Smrg#
111978440cca4Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
111988440cca4Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
111998440cca4Smrg# following values.
112008440cca4Smrg
112018440cca4Smrg_ACEOF
112028440cca4Smrg
112038440cca4Smrg# The following way of writing the cache mishandles newlines in values,
112048440cca4Smrg# but we know of no workaround that is simple, portable, and efficient.
11205d1c293acSmrg# So, we kill variables containing newlines.
112068440cca4Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
112078440cca4Smrg# and sets the high bit in the cache file unless we assign to the vars.
11208d1c293acSmrg(
11209d1c293acSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11210d1c293acSmrg    eval ac_val=\$$ac_var
11211d1c293acSmrg    case $ac_val in #(
11212d1c293acSmrg    *${as_nl}*)
11213d1c293acSmrg      case $ac_var in #(
1121494c9ab7bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1121594c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11216d1c293acSmrg      esac
11217d1c293acSmrg      case $ac_var in #(
11218d1c293acSmrg      _ | IFS | as_nl) ;; #(
11219d1c293acSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11220d1c293acSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
11221d1c293acSmrg      esac ;;
11222d1c293acSmrg    esac
11223d1c293acSmrg  done
11224d1c293acSmrg
112258440cca4Smrg  (set) 2>&1 |
11226d1c293acSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11227d1c293acSmrg    *${as_nl}ac_space=\ *)
11228d1c293acSmrg      # `set' does not quote correctly, so add quotes: double-quote
11229d1c293acSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
112308440cca4Smrg      sed -n \
112318440cca4Smrg	"s/'/'\\\\''/g;
112328440cca4Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11233d1c293acSmrg      ;; #(
112348440cca4Smrg    *)
112358440cca4Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11236d1c293acSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
112378440cca4Smrg      ;;
11238d1c293acSmrg    esac |
11239d1c293acSmrg    sort
11240d1c293acSmrg) |
112418440cca4Smrg  sed '
11242d1c293acSmrg     /^ac_cv_env_/b end
112438440cca4Smrg     t clear
11244d1c293acSmrg     :clear
1124594c9ab7bSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
112468440cca4Smrg     t end
11247d1c293acSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11248d1c293acSmrg     :end' >>confcache
11249d1c293acSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11250d1c293acSmrg  if test -w "$cache_file"; then
11251d1c293acSmrg    if test "x$cache_file" != "x/dev/null"; then
1125294c9ab7bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1125394c9ab7bSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11254d1c293acSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11255d1c293acSmrg	cat confcache >"$cache_file"
11256d1c293acSmrg      else
11257d1c293acSmrg        case $cache_file in #(
11258d1c293acSmrg        */* | ?:*)
11259d1c293acSmrg	  mv -f confcache "$cache_file"$$ &&
11260d1c293acSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11261d1c293acSmrg        *)
11262d1c293acSmrg	  mv -f confcache "$cache_file" ;;
11263d1c293acSmrg	esac
11264d1c293acSmrg      fi
11265d1c293acSmrg    fi
112668440cca4Smrg  else
1126794c9ab7bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1126894c9ab7bSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
112698440cca4Smrg  fi
112708440cca4Smrgfi
112718440cca4Smrgrm -f confcache
112728440cca4Smrg
112738440cca4Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
112748440cca4Smrg# Let make expand exec_prefix.
112758440cca4Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
112768440cca4Smrg
112778440cca4SmrgDEFS=-DHAVE_CONFIG_H
112788440cca4Smrg
112798440cca4Smrgac_libobjs=
112808440cca4Smrgac_ltlibobjs=
11281d1c293acSmrgU=
112828440cca4Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
112838440cca4Smrg  # 1. Remove the extension, and $U if already installed.
11284d1c293acSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1128594c9ab7bSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11286d1c293acSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11287d1c293acSmrg  #    will be set to the directory where LIBOBJS objects are built.
11288d1c293acSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11289d1c293acSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
112908440cca4Smrgdone
112918440cca4SmrgLIBOBJS=$ac_libobjs
112928440cca4Smrg
112938440cca4SmrgLTLIBOBJS=$ac_ltlibobjs
112948440cca4Smrg
112958440cca4Smrg
1129694c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
1129794c9ab7bSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
1129804449c54Smrg   if test -n "$am_sleep_pid"; then
1129904449c54Smrg     # Hide warnings about reused PIDs.
1130004449c54Smrg     wait $am_sleep_pid 2>/dev/null
1130104449c54Smrg   fi
1130294c9ab7bSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
1130394c9ab7bSmrgprintf "%s\n" "done" >&6; }
11304d1c293acSmrg if test -n "$EXEEXT"; then
11305d1c293acSmrg  am__EXEEXT_TRUE=
11306d1c293acSmrg  am__EXEEXT_FALSE='#'
11307d1c293acSmrgelse
11308d1c293acSmrg  am__EXEEXT_TRUE='#'
11309d1c293acSmrg  am__EXEEXT_FALSE=
11310d1c293acSmrgfi
11311d1c293acSmrg
113128440cca4Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11313d1c293acSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11314d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113158440cca4Smrgfi
113168440cca4Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11317d1c293acSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11318d1c293acSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
113198440cca4Smrgfi
113208440cca4Smrg
11321d1c293acSmrg: "${CONFIG_STATUS=./config.status}"
11322d1c293acSmrgac_write_fail=0
113238440cca4Smrgac_clean_files_save=$ac_clean_files
113248440cca4Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
1132594c9ab7bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1132694c9ab7bSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11327d1c293acSmrgas_write_fail=0
11328d1c293acSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
113298440cca4Smrg#! $SHELL
113308440cca4Smrg# Generated by $as_me.
113318440cca4Smrg# Run this file to recreate the current configuration.
113328440cca4Smrg# Compiler output produced by configure, useful for debugging
113338440cca4Smrg# configure, is in config.log if it exists.
113348440cca4Smrg
113358440cca4Smrgdebug=false
113368440cca4Smrgac_cs_recheck=false
113378440cca4Smrgac_cs_silent=false
113388440cca4Smrg
11339d1c293acSmrgSHELL=\${CONFIG_SHELL-$SHELL}
11340d1c293acSmrgexport SHELL
11341d1c293acSmrg_ASEOF
11342d1c293acSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11343d1c293acSmrg## -------------------- ##
11344d1c293acSmrg## M4sh Initialization. ##
11345d1c293acSmrg## -------------------- ##
11346d1c293acSmrg
11347d1c293acSmrg# Be more Bourne compatible
11348d1c293acSmrgDUALCASE=1; export DUALCASE # for MKS sh
1134994c9ab7bSmrgas_nop=:
1135094c9ab7bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1135194c9ab7bSmrgthen :
113528440cca4Smrg  emulate sh
113538440cca4Smrg  NULLCMD=:
11354d1c293acSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
113558440cca4Smrg  # is contrary to our usage.  Disable this feature.
113568440cca4Smrg  alias -g '${1+"$@"}'='"$@"'
11357d1c293acSmrg  setopt NO_GLOB_SUBST
1135894c9ab7bSmrgelse $as_nop
11359d1c293acSmrg  case `(set -o) 2>/dev/null` in #(
11360d1c293acSmrg  *posix*) :
11361d1c293acSmrg    set -o posix ;; #(
11362d1c293acSmrg  *) :
11363d1c293acSmrg     ;;
11364d1c293acSmrgesac
113658440cca4Smrgfi
113668440cca4Smrg
11367d1c293acSmrg
1136894c9ab7bSmrg
1136994c9ab7bSmrg# Reset variables that may have inherited troublesome values from
1137094c9ab7bSmrg# the environment.
1137194c9ab7bSmrg
1137294c9ab7bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
1137394c9ab7bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
1137494c9ab7bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
1137594c9ab7bSmrg# Quoting is to prevent editors from complaining about space-tab.
11376d1c293acSmrgas_nl='
11377d1c293acSmrg'
11378d1c293acSmrgexport as_nl
1137994c9ab7bSmrgIFS=" ""	$as_nl"
1138094c9ab7bSmrg
1138194c9ab7bSmrgPS1='$ '
1138294c9ab7bSmrgPS2='> '
1138394c9ab7bSmrgPS4='+ '
1138494c9ab7bSmrg
1138594c9ab7bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
1138694c9ab7bSmrgLC_ALL=C
1138794c9ab7bSmrgexport LC_ALL
1138894c9ab7bSmrgLANGUAGE=C
1138994c9ab7bSmrgexport LANGUAGE
1139094c9ab7bSmrg
1139194c9ab7bSmrg# We cannot yet rely on "unset" to work, but we need these variables
1139294c9ab7bSmrg# to be unset--not just set to an empty or harmless value--now, to
1139394c9ab7bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
1139494c9ab7bSmrg# also avoids known problems related to "unset" and subshell syntax
1139594c9ab7bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
1139694c9ab7bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
1139794c9ab7bSmrgdo eval test \${$as_var+y} \
1139894c9ab7bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1139994c9ab7bSmrgdone
1140094c9ab7bSmrg
1140194c9ab7bSmrg# Ensure that fds 0, 1, and 2 are open.
1140294c9ab7bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
1140394c9ab7bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
1140494c9ab7bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11405d1c293acSmrg
11406d1c293acSmrg# The user is always right.
1140794c9ab7bSmrgif ${PATH_SEPARATOR+false} :; then
11408d1c293acSmrg  PATH_SEPARATOR=:
11409d1c293acSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11410d1c293acSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11411d1c293acSmrg      PATH_SEPARATOR=';'
11412d1c293acSmrg  }
114138440cca4Smrgfi
114148440cca4Smrg
114158440cca4Smrg
11416d1c293acSmrg# Find who we are.  Look in the path if we contain no directory separator.
11417d1c293acSmrgas_myself=
11418d1c293acSmrgcase $0 in #((
11419d1c293acSmrg  *[\\/]* ) as_myself=$0 ;;
11420d1c293acSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421d1c293acSmrgfor as_dir in $PATH
11422d1c293acSmrgdo
11423d1c293acSmrg  IFS=$as_save_IFS
1142494c9ab7bSmrg  case $as_dir in #(((
1142594c9ab7bSmrg    '') as_dir=./ ;;
1142694c9ab7bSmrg    */) ;;
1142794c9ab7bSmrg    *) as_dir=$as_dir/ ;;
1142894c9ab7bSmrg  esac
1142994c9ab7bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11430d1c293acSmrg  done
11431d1c293acSmrgIFS=$as_save_IFS
11432d1c293acSmrg
11433d1c293acSmrg     ;;
11434d1c293acSmrgesac
11435d1c293acSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11436d1c293acSmrg# in which case we are not to be found in the path.
11437d1c293acSmrgif test "x$as_myself" = x; then
11438d1c293acSmrg  as_myself=$0
11439d1c293acSmrgfi
11440d1c293acSmrgif test ! -f "$as_myself"; then
1144194c9ab7bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11442d1c293acSmrg  exit 1
11443d1c293acSmrgfi
11444d1c293acSmrg
11445d1c293acSmrg
11446d1c293acSmrg
11447d1c293acSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11448d1c293acSmrg# ----------------------------------------
11449d1c293acSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11450d1c293acSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11451d1c293acSmrg# script with STATUS, using 1 if that was 0.
11452d1c293acSmrgas_fn_error ()
11453d1c293acSmrg{
11454d1c293acSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
11455d1c293acSmrg  if test "$4"; then
11456d1c293acSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1145794c9ab7bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
114588440cca4Smrg  fi
1145994c9ab7bSmrg  printf "%s\n" "$as_me: error: $2" >&2
11460d1c293acSmrg  as_fn_exit $as_status
11461d1c293acSmrg} # as_fn_error
11462d1c293acSmrg
11463d1c293acSmrg
1146494c9ab7bSmrg
11465d1c293acSmrg# as_fn_set_status STATUS
11466d1c293acSmrg# -----------------------
11467d1c293acSmrg# Set $? to STATUS, without forking.
11468d1c293acSmrgas_fn_set_status ()
11469d1c293acSmrg{
11470d1c293acSmrg  return $1
11471d1c293acSmrg} # as_fn_set_status
11472d1c293acSmrg
11473d1c293acSmrg# as_fn_exit STATUS
11474d1c293acSmrg# -----------------
11475d1c293acSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11476d1c293acSmrgas_fn_exit ()
11477d1c293acSmrg{
11478d1c293acSmrg  set +e
11479d1c293acSmrg  as_fn_set_status $1
11480d1c293acSmrg  exit $1
11481d1c293acSmrg} # as_fn_exit
11482d1c293acSmrg
11483d1c293acSmrg# as_fn_unset VAR
11484d1c293acSmrg# ---------------
11485d1c293acSmrg# Portably unset VAR.
11486d1c293acSmrgas_fn_unset ()
11487d1c293acSmrg{
11488d1c293acSmrg  { eval $1=; unset $1;}
11489d1c293acSmrg}
11490d1c293acSmrgas_unset=as_fn_unset
1149194c9ab7bSmrg
11492d1c293acSmrg# as_fn_append VAR VALUE
11493d1c293acSmrg# ----------------------
11494d1c293acSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11495d1c293acSmrg# advantage of any shell optimizations that allow amortized linear growth over
11496d1c293acSmrg# repeated appends, instead of the typical quadratic growth present in naive
11497d1c293acSmrg# implementations.
1149894c9ab7bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
1149994c9ab7bSmrgthen :
11500d1c293acSmrg  eval 'as_fn_append ()
11501d1c293acSmrg  {
11502d1c293acSmrg    eval $1+=\$2
11503d1c293acSmrg  }'
1150494c9ab7bSmrgelse $as_nop
11505d1c293acSmrg  as_fn_append ()
11506d1c293acSmrg  {
11507d1c293acSmrg    eval $1=\$$1\$2
11508d1c293acSmrg  }
11509d1c293acSmrgfi # as_fn_append
11510d1c293acSmrg
11511d1c293acSmrg# as_fn_arith ARG...
11512d1c293acSmrg# ------------------
11513d1c293acSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11514d1c293acSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11515d1c293acSmrg# must be portable across $(()) and expr.
1151694c9ab7bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
1151794c9ab7bSmrgthen :
11518d1c293acSmrg  eval 'as_fn_arith ()
11519d1c293acSmrg  {
11520d1c293acSmrg    as_val=$(( $* ))
11521d1c293acSmrg  }'
1152294c9ab7bSmrgelse $as_nop
11523d1c293acSmrg  as_fn_arith ()
11524d1c293acSmrg  {
11525d1c293acSmrg    as_val=`expr "$@" || test $? -eq 1`
11526d1c293acSmrg  }
11527d1c293acSmrgfi # as_fn_arith
11528d1c293acSmrg
115298440cca4Smrg
11530d1c293acSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11531d1c293acSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
115328440cca4Smrg  as_expr=expr
115338440cca4Smrgelse
115348440cca4Smrg  as_expr=false
115358440cca4Smrgfi
115368440cca4Smrg
11537d1c293acSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
115388440cca4Smrg  as_basename=basename
115398440cca4Smrgelse
115408440cca4Smrg  as_basename=false
115418440cca4Smrgfi
115428440cca4Smrg
11543d1c293acSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11544d1c293acSmrg  as_dirname=dirname
11545d1c293acSmrgelse
11546d1c293acSmrg  as_dirname=false
11547d1c293acSmrgfi
115488440cca4Smrg
11549d1c293acSmrgas_me=`$as_basename -- "$0" ||
115508440cca4Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
115518440cca4Smrg	 X"$0" : 'X\(//\)$' \| \
11552d1c293acSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155394c9ab7bSmrgprintf "%s\n" X/"$0" |
11554d1c293acSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11555d1c293acSmrg	    s//\1/
11556d1c293acSmrg	    q
11557d1c293acSmrg	  }
11558d1c293acSmrg	  /^X\/\(\/\/\)$/{
11559d1c293acSmrg	    s//\1/
11560d1c293acSmrg	    q
11561d1c293acSmrg	  }
11562d1c293acSmrg	  /^X\/\(\/\).*/{
11563d1c293acSmrg	    s//\1/
11564d1c293acSmrg	    q
11565d1c293acSmrg	  }
11566d1c293acSmrg	  s/.*/./; q'`
115678440cca4Smrg
115688440cca4Smrg# Avoid depending upon Character Ranges.
115698440cca4Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
115708440cca4Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
115718440cca4Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
115728440cca4Smrgas_cr_digits='0123456789'
115738440cca4Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
115748440cca4Smrg
1157594c9ab7bSmrg
1157694c9ab7bSmrg# Determine whether it's possible to make 'echo' print without a newline.
1157794c9ab7bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
1157894c9ab7bSmrg# for compatibility with existing Makefiles.
11579d1c293acSmrgECHO_C= ECHO_N= ECHO_T=
11580d1c293acSmrgcase `echo -n x` in #(((((
11581d1c293acSmrg-n*)
11582d1c293acSmrg  case `echo 'xy\c'` in
11583d1c293acSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11584d1c293acSmrg  xy)  ECHO_C='\c';;
11585d1c293acSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11586d1c293acSmrg       ECHO_T='	';;
11587d1c293acSmrg  esac;;
11588d1c293acSmrg*)
11589d1c293acSmrg  ECHO_N='-n';;
115908440cca4Smrgesac
115918440cca4Smrg
1159294c9ab7bSmrg# For backward compatibility with old third-party macros, we provide
1159394c9ab7bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
1159494c9ab7bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
1159594c9ab7bSmrgas_echo='printf %s\n'
1159694c9ab7bSmrgas_echo_n='printf %s'
1159794c9ab7bSmrg
11598d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.file
11599d1c293acSmrgif test -d conf$$.dir; then
11600d1c293acSmrg  rm -f conf$$.dir/conf$$.file
116018440cca4Smrgelse
11602d1c293acSmrg  rm -f conf$$.dir
11603d1c293acSmrg  mkdir conf$$.dir 2>/dev/null
116048440cca4Smrgfi
11605d1c293acSmrgif (echo >conf$$.file) 2>/dev/null; then
11606d1c293acSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
116078440cca4Smrg    as_ln_s='ln -s'
11608d1c293acSmrg    # ... but there are two gotchas:
11609d1c293acSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11610d1c293acSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1161104449c54Smrg    # In both cases, we have to default to `cp -pR'.
11612d1c293acSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1161304449c54Smrg      as_ln_s='cp -pR'
11614d1c293acSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11615d1c293acSmrg    as_ln_s=ln
11616d1c293acSmrg  else
1161704449c54Smrg    as_ln_s='cp -pR'
116188440cca4Smrg  fi
116198440cca4Smrgelse
1162004449c54Smrg  as_ln_s='cp -pR'
116218440cca4Smrgfi
11622d1c293acSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11623d1c293acSmrgrmdir conf$$.dir 2>/dev/null
11624d1c293acSmrg
11625d1c293acSmrg
11626d1c293acSmrg# as_fn_mkdir_p
11627d1c293acSmrg# -------------
11628d1c293acSmrg# Create "$as_dir" as a directory, including parents if necessary.
11629d1c293acSmrgas_fn_mkdir_p ()
11630d1c293acSmrg{
11631d1c293acSmrg
11632d1c293acSmrg  case $as_dir in #(
11633d1c293acSmrg  -*) as_dir=./$as_dir;;
11634d1c293acSmrg  esac
11635d1c293acSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
11636d1c293acSmrg    as_dirs=
11637d1c293acSmrg    while :; do
11638d1c293acSmrg      case $as_dir in #(
1163994c9ab7bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11640d1c293acSmrg      *) as_qdir=$as_dir;;
11641d1c293acSmrg      esac
11642d1c293acSmrg      as_dirs="'$as_qdir' $as_dirs"
11643d1c293acSmrg      as_dir=`$as_dirname -- "$as_dir" ||
11644d1c293acSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11645d1c293acSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11646d1c293acSmrg	 X"$as_dir" : 'X\(//\)$' \| \
11647d1c293acSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1164894c9ab7bSmrgprintf "%s\n" X"$as_dir" |
11649d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11650d1c293acSmrg	    s//\1/
11651d1c293acSmrg	    q
11652d1c293acSmrg	  }
11653d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
11654d1c293acSmrg	    s//\1/
11655d1c293acSmrg	    q
11656d1c293acSmrg	  }
11657d1c293acSmrg	  /^X\(\/\/\)$/{
11658d1c293acSmrg	    s//\1/
11659d1c293acSmrg	    q
11660d1c293acSmrg	  }
11661d1c293acSmrg	  /^X\(\/\).*/{
11662d1c293acSmrg	    s//\1/
11663d1c293acSmrg	    q
11664d1c293acSmrg	  }
11665d1c293acSmrg	  s/.*/./; q'`
11666d1c293acSmrg      test -d "$as_dir" && break
11667d1c293acSmrg    done
11668d1c293acSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11669d1c293acSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11670d1c293acSmrg
116718440cca4Smrg
11672d1c293acSmrg} # as_fn_mkdir_p
116738440cca4Smrgif mkdir -p . 2>/dev/null; then
11674d1c293acSmrg  as_mkdir_p='mkdir -p "$as_dir"'
116758440cca4Smrgelse
116768440cca4Smrg  test -d ./-p && rmdir ./-p
116778440cca4Smrg  as_mkdir_p=false
116788440cca4Smrgfi
116798440cca4Smrg
1168004449c54Smrg
1168104449c54Smrg# as_fn_executable_p FILE
1168204449c54Smrg# -----------------------
1168304449c54Smrg# Test if FILE is an executable regular file.
1168404449c54Smrgas_fn_executable_p ()
1168504449c54Smrg{
1168604449c54Smrg  test -f "$1" && test -x "$1"
1168704449c54Smrg} # as_fn_executable_p
1168804449c54Smrgas_test_x='test -x'
1168904449c54Smrgas_executable_p=as_fn_executable_p
116908440cca4Smrg
116918440cca4Smrg# Sed expression to map a string onto a valid CPP name.
116928440cca4Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
116938440cca4Smrg
116948440cca4Smrg# Sed expression to map a string onto a valid variable name.
116958440cca4Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
116968440cca4Smrg
116978440cca4Smrg
116988440cca4Smrgexec 6>&1
11699d1c293acSmrg## ----------------------------------- ##
11700d1c293acSmrg## Main body of $CONFIG_STATUS script. ##
11701d1c293acSmrg## ----------------------------------- ##
11702d1c293acSmrg_ASEOF
11703d1c293acSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11704d1c293acSmrg
11705d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11706d1c293acSmrg# Save the log message, to keep $0 and so on meaningful, and to
117078440cca4Smrg# report actual input values of CONFIG_FILES etc. instead of their
11708d1c293acSmrg# values after options handling.
11709d1c293acSmrgac_log="
1171094c9ab7bSmrgThis file was extended by xstdcmap $as_me 1.0.5, which was
1171194c9ab7bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
117128440cca4Smrg
117138440cca4Smrg  CONFIG_FILES    = $CONFIG_FILES
117148440cca4Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
117158440cca4Smrg  CONFIG_LINKS    = $CONFIG_LINKS
117168440cca4Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
117178440cca4Smrg  $ $0 $@
117188440cca4Smrg
11719d1c293acSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11720d1c293acSmrg"
11721d1c293acSmrg
117228440cca4Smrg_ACEOF
117238440cca4Smrg
11724d1c293acSmrgcase $ac_config_files in *"
11725d1c293acSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11726d1c293acSmrgesac
117278440cca4Smrg
11728d1c293acSmrgcase $ac_config_headers in *"
11729d1c293acSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11730d1c293acSmrgesac
117318440cca4Smrg
117328440cca4Smrg
11733d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11734d1c293acSmrg# Files that config.status was made for.
11735d1c293acSmrgconfig_files="$ac_config_files"
11736d1c293acSmrgconfig_headers="$ac_config_headers"
11737d1c293acSmrgconfig_commands="$ac_config_commands"
117388440cca4Smrg
11739d1c293acSmrg_ACEOF
117408440cca4Smrg
11741d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
117428440cca4Smrgac_cs_usage="\
11743d1c293acSmrg\`$as_me' instantiates files and other configuration actions
11744d1c293acSmrgfrom templates according to the current configuration.  Unless the files
11745d1c293acSmrgand actions are specified as TAGs, all are instantiated by default.
117468440cca4Smrg
11747d1c293acSmrgUsage: $0 [OPTION]... [TAG]...
117488440cca4Smrg
117498440cca4Smrg  -h, --help       print this help, then exit
11750d1c293acSmrg  -V, --version    print version number and configuration settings, then exit
11751d1c293acSmrg      --config     print configuration, then exit
11752d1c293acSmrg  -q, --quiet, --silent
11753d1c293acSmrg                   do not print progress messages
117548440cca4Smrg  -d, --debug      don't remove temporary files
117558440cca4Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11756d1c293acSmrg      --file=FILE[:TEMPLATE]
11757d1c293acSmrg                   instantiate the configuration file FILE
11758d1c293acSmrg      --header=FILE[:TEMPLATE]
11759d1c293acSmrg                   instantiate the configuration header FILE
117608440cca4Smrg
117618440cca4SmrgConfiguration files:
117628440cca4Smrg$config_files
117638440cca4Smrg
117648440cca4SmrgConfiguration headers:
117658440cca4Smrg$config_headers
117668440cca4Smrg
117678440cca4SmrgConfiguration commands:
117688440cca4Smrg$config_commands
117698440cca4Smrg
1177094c9ab7bSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xstdcmap/-/issues>."
117718440cca4Smrg
11772d1c293acSmrg_ACEOF
1177394c9ab7bSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
1177494c9ab7bSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11775d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1177694c9ab7bSmrgac_cs_config='$ac_cs_config_escaped'
117778440cca4Smrgac_cs_version="\\
1177894c9ab7bSmrgxstdcmap config.status 1.0.5
1177994c9ab7bSmrgconfigured by $0, generated by GNU Autoconf 2.71,
11780d1c293acSmrg  with options \\"\$ac_cs_config\\"
117818440cca4Smrg
1178294c9ab7bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
117838440cca4SmrgThis config.status script is free software; the Free Software Foundation
117848440cca4Smrggives unlimited permission to copy, distribute and modify it."
11785d1c293acSmrg
11786d1c293acSmrgac_pwd='$ac_pwd'
11787d1c293acSmrgsrcdir='$srcdir'
11788d1c293acSmrgINSTALL='$INSTALL'
11789d1c293acSmrgMKDIR_P='$MKDIR_P'
11790d1c293acSmrgAWK='$AWK'
11791d1c293acSmrgtest -n "\$AWK" || AWK=awk
117928440cca4Smrg_ACEOF
117938440cca4Smrg
11794d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11795d1c293acSmrg# The default lists apply if the user does not specify any file.
117968440cca4Smrgac_need_defaults=:
117978440cca4Smrgwhile test $# != 0
117988440cca4Smrgdo
117998440cca4Smrg  case $1 in
11800d1c293acSmrg  --*=?*)
11801d1c293acSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11802d1c293acSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11803d1c293acSmrg    ac_shift=:
11804d1c293acSmrg    ;;
11805d1c293acSmrg  --*=)
11806d1c293acSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11807d1c293acSmrg    ac_optarg=
118088440cca4Smrg    ac_shift=:
118098440cca4Smrg    ;;
11810d1c293acSmrg  *)
118118440cca4Smrg    ac_option=$1
118128440cca4Smrg    ac_optarg=$2
118138440cca4Smrg    ac_shift=shift
118148440cca4Smrg    ;;
118158440cca4Smrg  esac
118168440cca4Smrg
118178440cca4Smrg  case $ac_option in
118188440cca4Smrg  # Handling of the options.
118198440cca4Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
118208440cca4Smrg    ac_cs_recheck=: ;;
11821d1c293acSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1182294c9ab7bSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
11823d1c293acSmrg  --config | --confi | --conf | --con | --co | --c )
1182494c9ab7bSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
11825d1c293acSmrg  --debug | --debu | --deb | --de | --d | -d )
118268440cca4Smrg    debug=: ;;
118278440cca4Smrg  --file | --fil | --fi | --f )
118288440cca4Smrg    $ac_shift
11829d1c293acSmrg    case $ac_optarg in
1183094c9ab7bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11831d1c293acSmrg    '') as_fn_error $? "missing file argument" ;;
11832d1c293acSmrg    esac
11833d1c293acSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
118348440cca4Smrg    ac_need_defaults=false;;
118358440cca4Smrg  --header | --heade | --head | --hea )
118368440cca4Smrg    $ac_shift
11837d1c293acSmrg    case $ac_optarg in
1183894c9ab7bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11839d1c293acSmrg    esac
11840d1c293acSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
118418440cca4Smrg    ac_need_defaults=false;;
11842d1c293acSmrg  --he | --h)
11843d1c293acSmrg    # Conflict between --help and --header
11844d1c293acSmrg    as_fn_error $? "ambiguous option: \`$1'
11845d1c293acSmrgTry \`$0 --help' for more information.";;
11846d1c293acSmrg  --help | --hel | -h )
1184794c9ab7bSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
118488440cca4Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
118498440cca4Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
118508440cca4Smrg    ac_cs_silent=: ;;
118518440cca4Smrg
118528440cca4Smrg  # This is an error.
11853d1c293acSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
11854d1c293acSmrgTry \`$0 --help' for more information." ;;
118558440cca4Smrg
11856d1c293acSmrg  *) as_fn_append ac_config_targets " $1"
11857d1c293acSmrg     ac_need_defaults=false ;;
118588440cca4Smrg
118598440cca4Smrg  esac
118608440cca4Smrg  shift
118618440cca4Smrgdone
118628440cca4Smrg
118638440cca4Smrgac_configure_extra_args=
118648440cca4Smrg
118658440cca4Smrgif $ac_cs_silent; then
118668440cca4Smrg  exec 6>/dev/null
118678440cca4Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
118688440cca4Smrgfi
118698440cca4Smrg
118708440cca4Smrg_ACEOF
11871d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118728440cca4Smrgif \$ac_cs_recheck; then
1187304449c54Smrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11874d1c293acSmrg  shift
1187594c9ab7bSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11876d1c293acSmrg  CONFIG_SHELL='$SHELL'
11877d1c293acSmrg  export CONFIG_SHELL
11878d1c293acSmrg  exec "\$@"
118798440cca4Smrgfi
118808440cca4Smrg
118818440cca4Smrg_ACEOF
11882d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883d1c293acSmrgexec 5>>config.log
11884d1c293acSmrg{
11885d1c293acSmrg  echo
11886d1c293acSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887d1c293acSmrg## Running $as_me. ##
11888d1c293acSmrg_ASBOX
1188994c9ab7bSmrg  printf "%s\n" "$ac_log"
11890d1c293acSmrg} >&5
118918440cca4Smrg
11892d1c293acSmrg_ACEOF
11893d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
118948440cca4Smrg#
11895d1c293acSmrg# INIT-COMMANDS
118968440cca4Smrg#
1189794c9ab7bSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
118988440cca4Smrg
118998440cca4Smrg_ACEOF
119008440cca4Smrg
11901d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
119028440cca4Smrg
11903d1c293acSmrg# Handling of arguments.
119048440cca4Smrgfor ac_config_target in $ac_config_targets
119058440cca4Smrgdo
11906d1c293acSmrg  case $ac_config_target in
11907d1c293acSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1190820915927Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11909d1c293acSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1191020915927Smrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11911d1c293acSmrg
11912d1c293acSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
119138440cca4Smrg  esac
119148440cca4Smrgdone
119158440cca4Smrg
11916d1c293acSmrg
119178440cca4Smrg# If the user did not use the arguments to specify the items to instantiate,
119188440cca4Smrg# then the envvar interface is used.  Set only those that are not.
119198440cca4Smrg# We use the long form for the default assignment because of an extremely
119208440cca4Smrg# bizarre bug on SunOS 4.1.3.
119218440cca4Smrgif $ac_need_defaults; then
1192294c9ab7bSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
1192394c9ab7bSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1192494c9ab7bSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
119258440cca4Smrgfi
119268440cca4Smrg
119278440cca4Smrg# Have a temporary directory for convenience.  Make it in the build tree
11928d1c293acSmrg# simply because there is no reason against having it here, and in addition,
119298440cca4Smrg# creating and moving files from /tmp can sometimes cause problems.
11930d1c293acSmrg# Hook for its removal unless debugging.
11931d1c293acSmrg# Note that there is a small window in which the directory will not be cleaned:
11932d1c293acSmrg# after its creation but before its name has been assigned to `$tmp'.
119338440cca4Smrg$debug ||
119348440cca4Smrg{
11935d1c293acSmrg  tmp= ac_tmp=
11936d1c293acSmrg  trap 'exit_status=$?
11937d1c293acSmrg  : "${ac_tmp:=$tmp}"
11938d1c293acSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11939d1c293acSmrg' 0
11940d1c293acSmrg  trap 'as_fn_exit 1' 1 2 13 15
119418440cca4Smrg}
119428440cca4Smrg# Create a (secure) tmp directory for tmp files.
119438440cca4Smrg
119448440cca4Smrg{
11945d1c293acSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11946d1c293acSmrg  test -d "$tmp"
119478440cca4Smrg}  ||
119488440cca4Smrg{
11949d1c293acSmrg  tmp=./conf$$-$RANDOM
11950d1c293acSmrg  (umask 077 && mkdir "$tmp")
11951d1c293acSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11952d1c293acSmrgac_tmp=$tmp
11953d1c293acSmrg
11954d1c293acSmrg# Set up the scripts for CONFIG_FILES section.
11955d1c293acSmrg# No need to generate them if there are no CONFIG_FILES.
11956d1c293acSmrg# This happens for instance with `./config.status config.h'.
11957d1c293acSmrgif test -n "$CONFIG_FILES"; then
11958d1c293acSmrg
11959d1c293acSmrg
11960d1c293acSmrgac_cr=`echo X | tr X '\015'`
11961d1c293acSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
11962d1c293acSmrg# But we know of no other shell where ac_cr would be empty at this
11963d1c293acSmrg# point, so we can use a bashism as a fallback.
11964d1c293acSmrgif test "x$ac_cr" = x; then
11965d1c293acSmrg  eval ac_cr=\$\'\\r\'
11966d1c293acSmrgfi
11967d1c293acSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11968d1c293acSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11969d1c293acSmrg  ac_cs_awk_cr='\\r'
11970d1c293acSmrgelse
11971d1c293acSmrg  ac_cs_awk_cr=$ac_cr
11972d1c293acSmrgfi
11973d1c293acSmrg
11974d1c293acSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11975d1c293acSmrg_ACEOF
11976d1c293acSmrg
11977d1c293acSmrg
11978d1c293acSmrg{
11979d1c293acSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
11980d1c293acSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11981d1c293acSmrg  echo "_ACEOF"
11982d1c293acSmrg} >conf$$subs.sh ||
11983d1c293acSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11984d1c293acSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11985d1c293acSmrgac_delim='%!_!# '
11986d1c293acSmrgfor ac_last_try in false false false false false :; do
11987d1c293acSmrg  . ./conf$$subs.sh ||
11988d1c293acSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11989d1c293acSmrg
11990d1c293acSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11991d1c293acSmrg  if test $ac_delim_n = $ac_delim_num; then
11992d1c293acSmrg    break
11993d1c293acSmrg  elif $ac_last_try; then
11994d1c293acSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11995d1c293acSmrg  else
11996d1c293acSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11997d1c293acSmrg  fi
11998d1c293acSmrgdone
11999d1c293acSmrgrm -f conf$$subs.sh
12000d1c293acSmrg
12001d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12002d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12003d1c293acSmrg_ACEOF
12004d1c293acSmrgsed -n '
12005d1c293acSmrgh
12006d1c293acSmrgs/^/S["/; s/!.*/"]=/
12007d1c293acSmrgp
12008d1c293acSmrgg
12009d1c293acSmrgs/^[^!]*!//
12010d1c293acSmrg:repl
12011d1c293acSmrgt repl
12012d1c293acSmrgs/'"$ac_delim"'$//
12013d1c293acSmrgt delim
12014d1c293acSmrg:nl
12015d1c293acSmrgh
12016d1c293acSmrgs/\(.\{148\}\)..*/\1/
12017d1c293acSmrgt more1
12018d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12019d1c293acSmrgp
12020d1c293acSmrgn
12021d1c293acSmrgb repl
12022d1c293acSmrg:more1
12023d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12024d1c293acSmrgp
12025d1c293acSmrgg
12026d1c293acSmrgs/.\{148\}//
12027d1c293acSmrgt nl
12028d1c293acSmrg:delim
12029d1c293acSmrgh
12030d1c293acSmrgs/\(.\{148\}\)..*/\1/
12031d1c293acSmrgt more2
12032d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12033d1c293acSmrgp
12034d1c293acSmrgb
12035d1c293acSmrg:more2
12036d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12037d1c293acSmrgp
12038d1c293acSmrgg
12039d1c293acSmrgs/.\{148\}//
12040d1c293acSmrgt delim
12041d1c293acSmrg' <conf$$subs.awk | sed '
12042d1c293acSmrg/^[^""]/{
12043d1c293acSmrg  N
12044d1c293acSmrg  s/\n//
12045d1c293acSmrg}
12046d1c293acSmrg' >>$CONFIG_STATUS || ac_write_fail=1
12047d1c293acSmrgrm -f conf$$subs.awk
12048d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12049d1c293acSmrg_ACAWK
12050d1c293acSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12051d1c293acSmrg  for (key in S) S_is_set[key] = 1
12052d1c293acSmrg  FS = ""
12053d1c293acSmrg
12054d1c293acSmrg}
120558440cca4Smrg{
12056d1c293acSmrg  line = $ 0
12057d1c293acSmrg  nfields = split(line, field, "@")
12058d1c293acSmrg  substed = 0
12059d1c293acSmrg  len = length(field[1])
12060d1c293acSmrg  for (i = 2; i < nfields; i++) {
12061d1c293acSmrg    key = field[i]
12062d1c293acSmrg    keylen = length(key)
12063d1c293acSmrg    if (S_is_set[key]) {
12064d1c293acSmrg      value = S[key]
12065d1c293acSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12066d1c293acSmrg      len += length(value) + length(field[++i])
12067d1c293acSmrg      substed = 1
12068d1c293acSmrg    } else
12069d1c293acSmrg      len += 1 + keylen
12070d1c293acSmrg  }
12071d1c293acSmrg
12072d1c293acSmrg  print line
120738440cca4Smrg}
120748440cca4Smrg
12075d1c293acSmrg_ACAWK
12076d1c293acSmrg_ACEOF
12077d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078d1c293acSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12079d1c293acSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12080d1c293acSmrgelse
12081d1c293acSmrg  cat
12082d1c293acSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12083d1c293acSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
120848440cca4Smrg_ACEOF
120858440cca4Smrg
12086d1c293acSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12087d1c293acSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12088d1c293acSmrg# trailing colons and then remove the whole line if VPATH becomes empty
12089d1c293acSmrg# (actually we leave an empty line to preserve line numbers).
12090d1c293acSmrgif test "x$srcdir" = x.; then
12091d1c293acSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12092d1c293acSmrgh
12093d1c293acSmrgs///
12094d1c293acSmrgs/^/:/
12095d1c293acSmrgs/[	 ]*$/:/
12096d1c293acSmrgs/:\$(srcdir):/:/g
12097d1c293acSmrgs/:\${srcdir}:/:/g
12098d1c293acSmrgs/:@srcdir@:/:/g
12099d1c293acSmrgs/^:*//
12100d1c293acSmrgs/:*$//
12101d1c293acSmrgx
12102d1c293acSmrgs/\(=[	 ]*\).*/\1/
12103d1c293acSmrgG
12104d1c293acSmrgs/\n//
12105d1c293acSmrgs/^[^=]*=[	 ]*$//
12106d1c293acSmrg}'
12107d1c293acSmrgfi
121088440cca4Smrg
12109d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12110d1c293acSmrgfi # test -n "$CONFIG_FILES"
121118440cca4Smrg
12112d1c293acSmrg# Set up the scripts for CONFIG_HEADERS section.
12113d1c293acSmrg# No need to generate them if there are no CONFIG_HEADERS.
12114d1c293acSmrg# This happens for instance with `./config.status Makefile'.
12115d1c293acSmrgif test -n "$CONFIG_HEADERS"; then
12116d1c293acSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12117d1c293acSmrgBEGIN {
121188440cca4Smrg_ACEOF
121198440cca4Smrg
12120d1c293acSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12121d1c293acSmrg# here-document in config.status, that substitutes the proper values into
12122d1c293acSmrg# config.h.in to produce config.h.
12123d1c293acSmrg
12124d1c293acSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
12125d1c293acSmrg# handling of long lines.
12126d1c293acSmrgac_delim='%!_!# '
12127d1c293acSmrgfor ac_last_try in false false :; do
12128d1c293acSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12129d1c293acSmrg  if test -z "$ac_tt"; then
12130d1c293acSmrg    break
12131d1c293acSmrg  elif $ac_last_try; then
12132d1c293acSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12133d1c293acSmrg  else
12134d1c293acSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
121358440cca4Smrg  fi
12136d1c293acSmrgdone
121378440cca4Smrg
12138d1c293acSmrg# For the awk script, D is an array of macro values keyed by name,
12139d1c293acSmrg# likewise P contains macro parameters if any.  Preserve backslash
12140d1c293acSmrg# newline sequences.
12141d1c293acSmrg
12142d1c293acSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12143d1c293acSmrgsed -n '
12144d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g
12145d1c293acSmrgt rset
12146d1c293acSmrg:rset
12147d1c293acSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12148d1c293acSmrgt def
12149d1c293acSmrgd
12150d1c293acSmrg:def
12151d1c293acSmrgs/\\$//
12152d1c293acSmrgt bsnl
12153d1c293acSmrgs/["\\]/\\&/g
12154d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12155d1c293acSmrgD["\1"]=" \3"/p
12156d1c293acSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12157d1c293acSmrgd
12158d1c293acSmrg:bsnl
12159d1c293acSmrgs/["\\]/\\&/g
12160d1c293acSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12161d1c293acSmrgD["\1"]=" \3\\\\\\n"\\/p
12162d1c293acSmrgt cont
12163d1c293acSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12164d1c293acSmrgt cont
12165d1c293acSmrgd
12166d1c293acSmrg:cont
12167d1c293acSmrgn
12168d1c293acSmrgs/.\{148\}/&'"$ac_delim"'/g
12169d1c293acSmrgt clear
12170d1c293acSmrg:clear
12171d1c293acSmrgs/\\$//
12172d1c293acSmrgt bsnlc
12173d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12174d1c293acSmrgd
12175d1c293acSmrg:bsnlc
12176d1c293acSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12177d1c293acSmrgb cont
12178d1c293acSmrg' <confdefs.h | sed '
12179d1c293acSmrgs/'"$ac_delim"'/"\\\
12180d1c293acSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12181d1c293acSmrg
12182d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183d1c293acSmrg  for (key in D) D_is_set[key] = 1
12184d1c293acSmrg  FS = ""
12185d1c293acSmrg}
12186d1c293acSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12187d1c293acSmrg  line = \$ 0
12188d1c293acSmrg  split(line, arg, " ")
12189d1c293acSmrg  if (arg[1] == "#") {
12190d1c293acSmrg    defundef = arg[2]
12191d1c293acSmrg    mac1 = arg[3]
12192d1c293acSmrg  } else {
12193d1c293acSmrg    defundef = substr(arg[1], 2)
12194d1c293acSmrg    mac1 = arg[2]
12195d1c293acSmrg  }
12196d1c293acSmrg  split(mac1, mac2, "(") #)
12197d1c293acSmrg  macro = mac2[1]
12198d1c293acSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
12199d1c293acSmrg  if (D_is_set[macro]) {
12200d1c293acSmrg    # Preserve the white space surrounding the "#".
12201d1c293acSmrg    print prefix "define", macro P[macro] D[macro]
12202d1c293acSmrg    next
12203d1c293acSmrg  } else {
12204d1c293acSmrg    # Replace #undef with comments.  This is necessary, for example,
12205d1c293acSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
12206d1c293acSmrg    # on some systems where configure will not decide to define it.
12207d1c293acSmrg    if (defundef == "undef") {
12208d1c293acSmrg      print "/*", prefix defundef, macro, "*/"
12209d1c293acSmrg      next
12210d1c293acSmrg    }
12211d1c293acSmrg  }
12212d1c293acSmrg}
12213d1c293acSmrg{ print }
12214d1c293acSmrg_ACAWK
122158440cca4Smrg_ACEOF
12216d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12217d1c293acSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12218d1c293acSmrgfi # test -n "$CONFIG_HEADERS"
12219d1c293acSmrg
12220d1c293acSmrg
12221d1c293acSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12222d1c293acSmrgshift
12223d1c293acSmrgfor ac_tag
12224d1c293acSmrgdo
12225d1c293acSmrg  case $ac_tag in
12226d1c293acSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12227d1c293acSmrg  esac
12228d1c293acSmrg  case $ac_mode$ac_tag in
12229d1c293acSmrg  :[FHL]*:*);;
12230d1c293acSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12231d1c293acSmrg  :[FH]-) ac_tag=-:-;;
12232d1c293acSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12233d1c293acSmrg  esac
12234d1c293acSmrg  ac_save_IFS=$IFS
12235d1c293acSmrg  IFS=:
12236d1c293acSmrg  set x $ac_tag
12237d1c293acSmrg  IFS=$ac_save_IFS
12238d1c293acSmrg  shift
12239d1c293acSmrg  ac_file=$1
12240d1c293acSmrg  shift
12241d1c293acSmrg
12242d1c293acSmrg  case $ac_mode in
12243d1c293acSmrg  :L) ac_source=$1;;
12244d1c293acSmrg  :[FH])
12245d1c293acSmrg    ac_file_inputs=
12246d1c293acSmrg    for ac_f
12247d1c293acSmrg    do
12248d1c293acSmrg      case $ac_f in
12249d1c293acSmrg      -) ac_f="$ac_tmp/stdin";;
12250d1c293acSmrg      *) # Look for the file first in the build tree, then in the source tree
12251d1c293acSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12252d1c293acSmrg	 # because $ac_f cannot contain `:'.
12253d1c293acSmrg	 test -f "$ac_f" ||
12254d1c293acSmrg	   case $ac_f in
12255d1c293acSmrg	   [\\/$]*) false;;
12256d1c293acSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12257d1c293acSmrg	   esac ||
12258d1c293acSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12259d1c293acSmrg      esac
1226094c9ab7bSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12261d1c293acSmrg      as_fn_append ac_file_inputs " '$ac_f'"
12262d1c293acSmrg    done
12263d1c293acSmrg
12264d1c293acSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12265d1c293acSmrg    # use $as_me), people would be surprised to read:
12266d1c293acSmrg    #    /* config.h.  Generated by config.status.  */
12267d1c293acSmrg    configure_input='Generated from '`
1226894c9ab7bSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12269d1c293acSmrg	`' by configure.'
12270d1c293acSmrg    if test x"$ac_file" != x-; then
12271d1c293acSmrg      configure_input="$ac_file.  $configure_input"
1227294c9ab7bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1227394c9ab7bSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12274d1c293acSmrg    fi
12275d1c293acSmrg    # Neutralize special characters interpreted by sed in replacement strings.
12276d1c293acSmrg    case $configure_input in #(
12277d1c293acSmrg    *\&* | *\|* | *\\* )
1227894c9ab7bSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12279d1c293acSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12280d1c293acSmrg    *) ac_sed_conf_input=$configure_input;;
12281d1c293acSmrg    esac
12282d1c293acSmrg
12283d1c293acSmrg    case $ac_tag in
12284d1c293acSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12285d1c293acSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12286d1c293acSmrg    esac
12287d1c293acSmrg    ;;
122888440cca4Smrg  esac
122898440cca4Smrg
12290d1c293acSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
122918440cca4Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
122928440cca4Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
122938440cca4Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12294d1c293acSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1229594c9ab7bSmrgprintf "%s\n" X"$ac_file" |
12296d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12297d1c293acSmrg	    s//\1/
12298d1c293acSmrg	    q
12299d1c293acSmrg	  }
12300d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
12301d1c293acSmrg	    s//\1/
12302d1c293acSmrg	    q
12303d1c293acSmrg	  }
12304d1c293acSmrg	  /^X\(\/\/\)$/{
12305d1c293acSmrg	    s//\1/
12306d1c293acSmrg	    q
12307d1c293acSmrg	  }
12308d1c293acSmrg	  /^X\(\/\).*/{
12309d1c293acSmrg	    s//\1/
12310d1c293acSmrg	    q
12311d1c293acSmrg	  }
12312d1c293acSmrg	  s/.*/./; q'`
12313d1c293acSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
123148440cca4Smrg  ac_builddir=.
123158440cca4Smrg
12316d1c293acSmrgcase "$ac_dir" in
12317d1c293acSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12318d1c293acSmrg*)
1231994c9ab7bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12320d1c293acSmrg  # A ".." for each directory in $ac_dir_suffix.
1232194c9ab7bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12322d1c293acSmrg  case $ac_top_builddir_sub in
12323d1c293acSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12324d1c293acSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12325d1c293acSmrg  esac ;;
12326d1c293acSmrgesac
12327d1c293acSmrgac_abs_top_builddir=$ac_pwd
12328d1c293acSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12329d1c293acSmrg# for backward compatibility:
12330d1c293acSmrgac_top_builddir=$ac_top_build_prefix
123318440cca4Smrg
123328440cca4Smrgcase $srcdir in
12333d1c293acSmrg  .)  # We are building in place.
123348440cca4Smrg    ac_srcdir=.
12335d1c293acSmrg    ac_top_srcdir=$ac_top_builddir_sub
12336d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd ;;
12337d1c293acSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
123388440cca4Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12339d1c293acSmrg    ac_top_srcdir=$srcdir
12340d1c293acSmrg    ac_abs_top_srcdir=$srcdir ;;
12341d1c293acSmrg  *) # Relative name.
12342d1c293acSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12343d1c293acSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12344d1c293acSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
123458440cca4Smrgesac
12346d1c293acSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
123478440cca4Smrg
123488440cca4Smrg
12349d1c293acSmrg  case $ac_mode in
12350d1c293acSmrg  :F)
12351d1c293acSmrg  #
12352d1c293acSmrg  # CONFIG_FILE
12353d1c293acSmrg  #
123548440cca4Smrg
123558440cca4Smrg  case $INSTALL in
123568440cca4Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12357d1c293acSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12358d1c293acSmrg  esac
12359d1c293acSmrg  ac_MKDIR_P=$MKDIR_P
12360d1c293acSmrg  case $MKDIR_P in
12361d1c293acSmrg  [\\/$]* | ?:[\\/]* ) ;;
12362d1c293acSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
123638440cca4Smrg  esac
12364d1c293acSmrg_ACEOF
123658440cca4Smrg
12366d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367d1c293acSmrg# If the template does not know about datarootdir, expand it.
12368d1c293acSmrg# FIXME: This hack should be removed a few years after 2.60.
12369d1c293acSmrgac_datarootdir_hack=; ac_datarootdir_seen=
12370d1c293acSmrgac_sed_dataroot='
12371d1c293acSmrg/datarootdir/ {
12372d1c293acSmrg  p
12373d1c293acSmrg  q
12374d1c293acSmrg}
12375d1c293acSmrg/@datadir@/p
12376d1c293acSmrg/@docdir@/p
12377d1c293acSmrg/@infodir@/p
12378d1c293acSmrg/@localedir@/p
12379d1c293acSmrg/@mandir@/p'
12380d1c293acSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12381d1c293acSmrg*datarootdir*) ac_datarootdir_seen=yes;;
12382d1c293acSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1238394c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1238494c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12385d1c293acSmrg_ACEOF
12386d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387d1c293acSmrg  ac_datarootdir_hack='
12388d1c293acSmrg  s&@datadir@&$datadir&g
12389d1c293acSmrg  s&@docdir@&$docdir&g
12390d1c293acSmrg  s&@infodir@&$infodir&g
12391d1c293acSmrg  s&@localedir@&$localedir&g
12392d1c293acSmrg  s&@mandir@&$mandir&g
12393d1c293acSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12394d1c293acSmrgesac
123958440cca4Smrg_ACEOF
12396d1c293acSmrg
12397d1c293acSmrg# Neutralize VPATH when `$srcdir' = `.'.
12398d1c293acSmrg# Shell code in configure.ac might set extrasub.
12399d1c293acSmrg# FIXME: do we really want to maintain this feature?
12400d1c293acSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401d1c293acSmrgac_sed_extra="$ac_vpsub
124028440cca4Smrg$extrasub
124038440cca4Smrg_ACEOF
12404d1c293acSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
124058440cca4Smrg:t
124068440cca4Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12407d1c293acSmrgs|@configure_input@|$ac_sed_conf_input|;t t
12408d1c293acSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12409d1c293acSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12410d1c293acSmrgs&@srcdir@&$ac_srcdir&;t t
12411d1c293acSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12412d1c293acSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
12413d1c293acSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12414d1c293acSmrgs&@builddir@&$ac_builddir&;t t
12415d1c293acSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
12416d1c293acSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12417d1c293acSmrgs&@INSTALL@&$ac_INSTALL&;t t
12418d1c293acSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12419d1c293acSmrg$ac_datarootdir_hack
12420d1c293acSmrg"
12421d1c293acSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12422d1c293acSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12423d1c293acSmrg
12424d1c293acSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12425d1c293acSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12426d1c293acSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12427d1c293acSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
1242894c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12429d1c293acSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
1243094c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12431d1c293acSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
12432d1c293acSmrg
12433d1c293acSmrg  rm -f "$ac_tmp/stdin"
124348440cca4Smrg  case $ac_file in
12435d1c293acSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12436d1c293acSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12437d1c293acSmrg  esac \
12438d1c293acSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12439d1c293acSmrg ;;
12440d1c293acSmrg  :H)
12441d1c293acSmrg  #
12442d1c293acSmrg  # CONFIG_HEADER
12443d1c293acSmrg  #
124448440cca4Smrg  if test x"$ac_file" != x-; then
12445d1c293acSmrg    {
1244694c9ab7bSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
12447d1c293acSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12448d1c293acSmrg    } >"$ac_tmp/config.h" \
12449d1c293acSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12450d1c293acSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1245194c9ab7bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1245294c9ab7bSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
124538440cca4Smrg    else
12454d1c293acSmrg      rm -f "$ac_file"
12455d1c293acSmrg      mv "$ac_tmp/config.h" "$ac_file" \
12456d1c293acSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
124578440cca4Smrg    fi
124588440cca4Smrg  else
1245994c9ab7bSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
12460d1c293acSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12461d1c293acSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
124628440cca4Smrg  fi
12463d1c293acSmrg# Compute "$ac_file"'s index in $config_headers.
12464d1c293acSmrg_am_arg="$ac_file"
124658440cca4Smrg_am_stamp_count=1
124668440cca4Smrgfor _am_header in $config_headers :; do
124678440cca4Smrg  case $_am_header in
12468d1c293acSmrg    $_am_arg | $_am_arg:* )
124698440cca4Smrg      break ;;
124708440cca4Smrg    * )
124718440cca4Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
124728440cca4Smrg  esac
124738440cca4Smrgdone
12474d1c293acSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12475d1c293acSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12476d1c293acSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12477d1c293acSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12478d1c293acSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1247994c9ab7bSmrgprintf "%s\n" X"$_am_arg" |
12480d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12481d1c293acSmrg	    s//\1/
12482d1c293acSmrg	    q
12483d1c293acSmrg	  }
12484d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
12485d1c293acSmrg	    s//\1/
12486d1c293acSmrg	    q
12487d1c293acSmrg	  }
12488d1c293acSmrg	  /^X\(\/\/\)$/{
12489d1c293acSmrg	    s//\1/
12490d1c293acSmrg	    q
12491d1c293acSmrg	  }
12492d1c293acSmrg	  /^X\(\/\).*/{
12493d1c293acSmrg	    s//\1/
12494d1c293acSmrg	    q
12495d1c293acSmrg	  }
12496d1c293acSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12497d1c293acSmrg ;;
124988440cca4Smrg
1249994c9ab7bSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1250094c9ab7bSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12501d1c293acSmrg ;;
12502d1c293acSmrg  esac
125038440cca4Smrg
125048440cca4Smrg
12505d1c293acSmrg  case $ac_file$ac_mode in
12506d1c293acSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1250704449c54Smrg  # Older Autoconf quotes --file arguments for eval, but not when files
12508d1c293acSmrg  # are listed without --file.  Let's play safe and only enable the eval
12509d1c293acSmrg  # if we detect the quoting.
1251094c9ab7bSmrg  # TODO: see whether this extra hack can be removed once we start
1251194c9ab7bSmrg  # requiring Autoconf 2.70 or later.
1251294c9ab7bSmrg  case $CONFIG_FILES in #(
1251394c9ab7bSmrg  *\'*) :
1251494c9ab7bSmrg    eval set x "$CONFIG_FILES" ;; #(
1251594c9ab7bSmrg  *) :
1251694c9ab7bSmrg    set x $CONFIG_FILES ;; #(
1251794c9ab7bSmrg  *) :
1251894c9ab7bSmrg     ;;
1251994c9ab7bSmrgesac
12520d1c293acSmrg  shift
1252194c9ab7bSmrg  # Used to flag and report bootstrapping failures.
1252294c9ab7bSmrg  am_rc=0
1252394c9ab7bSmrg  for am_mf
12524d1c293acSmrg  do
12525d1c293acSmrg    # Strip MF so we end up with the name of the file.
1252694c9ab7bSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1252794c9ab7bSmrg    # Check whether this is an Automake generated Makefile which includes
1252894c9ab7bSmrg    # dependency-tracking related rules and includes.
1252994c9ab7bSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12530d1c293acSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
1253194c9ab7bSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
1253294c9ab7bSmrg      || continue
1253394c9ab7bSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
1253494c9ab7bSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253594c9ab7bSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
1253694c9ab7bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
1253794c9ab7bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1253894c9ab7bSmrgprintf "%s\n" X"$am_mf" |
12539d1c293acSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12540d1c293acSmrg	    s//\1/
12541d1c293acSmrg	    q
12542d1c293acSmrg	  }
12543d1c293acSmrg	  /^X\(\/\/\)[^/].*/{
12544d1c293acSmrg	    s//\1/
12545d1c293acSmrg	    q
12546d1c293acSmrg	  }
12547d1c293acSmrg	  /^X\(\/\/\)$/{
12548d1c293acSmrg	    s//\1/
12549d1c293acSmrg	    q
12550d1c293acSmrg	  }
12551d1c293acSmrg	  /^X\(\/\).*/{
12552d1c293acSmrg	    s//\1/
12553d1c293acSmrg	    q
12554d1c293acSmrg	  }
12555d1c293acSmrg	  s/.*/./; q'`
1255694c9ab7bSmrg    am_filepart=`$as_basename -- "$am_mf" ||
1255794c9ab7bSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
1255894c9ab7bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
1255994c9ab7bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1256094c9ab7bSmrgprintf "%s\n" X/"$am_mf" |
1256194c9ab7bSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12562d1c293acSmrg	    s//\1/
12563d1c293acSmrg	    q
12564d1c293acSmrg	  }
1256594c9ab7bSmrg	  /^X\/\(\/\/\)$/{
12566d1c293acSmrg	    s//\1/
12567d1c293acSmrg	    q
12568d1c293acSmrg	  }
1256994c9ab7bSmrg	  /^X\/\(\/\).*/{
12570d1c293acSmrg	    s//\1/
12571d1c293acSmrg	    q
12572d1c293acSmrg	  }
12573d1c293acSmrg	  s/.*/./; q'`
1257494c9ab7bSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
1257594c9ab7bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1257694c9ab7bSmrg        | $MAKE -f - am--depfiles" >&5
1257794c9ab7bSmrg   (cd "$am_dirpart" \
1257894c9ab7bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
1257994c9ab7bSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
1258094c9ab7bSmrg   ac_status=$?
1258194c9ab7bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1258294c9ab7bSmrg   (exit $ac_status); } || am_rc=$?
125838440cca4Smrg  done
1258494c9ab7bSmrg  if test $am_rc -ne 0; then
1258594c9ab7bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1258694c9ab7bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1258794c9ab7bSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
1258894c9ab7bSmrg    for automatic dependency tracking.  If GNU make was not used, consider
1258994c9ab7bSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
1259094c9ab7bSmrg    necessary).  You can also try re-running configure with the
1259194c9ab7bSmrg    '--disable-dependency-tracking' option to at least be able to build
1259294c9ab7bSmrg    the package (albeit without support for automatic dependency tracking).
1259394c9ab7bSmrgSee \`config.log' for more details" "$LINENO" 5; }
1259494c9ab7bSmrg  fi
1259594c9ab7bSmrg  { am_dirpart=; unset am_dirpart;}
1259694c9ab7bSmrg  { am_filepart=; unset am_filepart;}
1259794c9ab7bSmrg  { am_mf=; unset am_mf;}
1259894c9ab7bSmrg  { am_rc=; unset am_rc;}
1259994c9ab7bSmrg  rm -f conftest-deps.mk
12600d1c293acSmrg}
126018440cca4Smrg ;;
12602d1c293acSmrg
126038440cca4Smrg  esac
12604d1c293acSmrgdone # for ac_tag
126058440cca4Smrg
126068440cca4Smrg
12607d1c293acSmrgas_fn_exit 0
126088440cca4Smrg_ACEOF
126098440cca4Smrgac_clean_files=$ac_clean_files_save
126108440cca4Smrg
12611d1c293acSmrgtest $ac_write_fail = 0 ||
12612d1c293acSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12613d1c293acSmrg
126148440cca4Smrg
126158440cca4Smrg# configure is writing to config.log, and then calls config.status.
126168440cca4Smrg# config.status does its own redirection, appending to config.log.
126178440cca4Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
126188440cca4Smrg# by configure, so config.status won't be able to write to it; its
126198440cca4Smrg# output is simply discarded.  So we exec the FD to /dev/null,
126208440cca4Smrg# effectively closing config.log, so it can be properly (re)opened and
126218440cca4Smrg# appended to by config.status.  When coming back to configure, we
126228440cca4Smrg# need to make the FD available again.
126238440cca4Smrgif test "$no_create" != yes; then
126248440cca4Smrg  ac_cs_success=:
126258440cca4Smrg  ac_config_status_args=
126268440cca4Smrg  test "$silent" = yes &&
126278440cca4Smrg    ac_config_status_args="$ac_config_status_args --quiet"
126288440cca4Smrg  exec 5>/dev/null
126298440cca4Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
126308440cca4Smrg  exec 5>>config.log
126318440cca4Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
126328440cca4Smrg  # would make configure fail if this is the last instruction.
12633d1c293acSmrg  $ac_cs_success || as_fn_exit 1
12634d1c293acSmrgfi
12635d1c293acSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1263694c9ab7bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
1263794c9ab7bSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
126388440cca4Smrgfi
126398440cca4Smrg
1264094c9ab7bSmrg
12641