configure revision a67f45c3
176910425Smrg#! /bin/sh
276910425Smrg# Guess values for system-dependent variables and create Makefiles.
3a67f45c3Smrg# Generated by GNU Autoconf 2.71 for xkbevd 1.1.5.
476910425Smrg#
5a67f45c3Smrg# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>.
676910425Smrg#
7482df631Smrg#
8a67f45c3Smrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9a67f45c3Smrg# Inc.
10482df631Smrg#
11482df631Smrg#
1276910425Smrg# This configure script is free software; the Free Software Foundation
1376910425Smrg# gives unlimited permission to copy, distribute and modify it.
14482df631Smrg## -------------------- ##
15482df631Smrg## M4sh Initialization. ##
16482df631Smrg## -------------------- ##
1776910425Smrg
18db17cd6dSmrg# Be more Bourne compatible
19db17cd6dSmrgDUALCASE=1; export DUALCASE # for MKS sh
20a67f45c3Smrgas_nop=:
21a67f45c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22a67f45c3Smrgthen :
2376910425Smrg  emulate sh
2476910425Smrg  NULLCMD=:
25db17cd6dSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2676910425Smrg  # is contrary to our usage.  Disable this feature.
2776910425Smrg  alias -g '${1+"$@"}'='"$@"'
28db17cd6dSmrg  setopt NO_GLOB_SUBST
29a67f45c3Smrgelse $as_nop
30482df631Smrg  case `(set -o) 2>/dev/null` in #(
31482df631Smrg  *posix*) :
32482df631Smrg    set -o posix ;; #(
33482df631Smrg  *) :
34482df631Smrg     ;;
35db17cd6dSmrgesac
36db17cd6dSmrgfi
37db17cd6dSmrg
38db17cd6dSmrg
39a67f45c3Smrg
40a67f45c3Smrg# Reset variables that may have inherited troublesome values from
41a67f45c3Smrg# the environment.
42a67f45c3Smrg
43a67f45c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44a67f45c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45a67f45c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
46a67f45c3Smrg# Quoting is to prevent editors from complaining about space-tab.
47db17cd6dSmrgas_nl='
48db17cd6dSmrg'
49db17cd6dSmrgexport as_nl
50a67f45c3SmrgIFS=" ""	$as_nl"
51a67f45c3Smrg
52a67f45c3SmrgPS1='$ '
53a67f45c3SmrgPS2='> '
54a67f45c3SmrgPS4='+ '
55a67f45c3Smrg
56a67f45c3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
57a67f45c3SmrgLC_ALL=C
58a67f45c3Smrgexport LC_ALL
59a67f45c3SmrgLANGUAGE=C
60a67f45c3Smrgexport LANGUAGE
61a67f45c3Smrg
62a67f45c3Smrg# We cannot yet rely on "unset" to work, but we need these variables
63a67f45c3Smrg# to be unset--not just set to an empty or harmless value--now, to
64a67f45c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65a67f45c3Smrg# also avoids known problems related to "unset" and subshell syntax
66a67f45c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67a67f45c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68a67f45c3Smrgdo eval test \${$as_var+y} \
69a67f45c3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70a67f45c3Smrgdone
71a67f45c3Smrg
72a67f45c3Smrg# Ensure that fds 0, 1, and 2 are open.
73a67f45c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74a67f45c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75a67f45c3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76db17cd6dSmrg
77db17cd6dSmrg# The user is always right.
78a67f45c3Smrgif ${PATH_SEPARATOR+false} :; then
79db17cd6dSmrg  PATH_SEPARATOR=:
80db17cd6dSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81db17cd6dSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82db17cd6dSmrg      PATH_SEPARATOR=';'
83db17cd6dSmrg  }
8476910425Smrgfi
8576910425Smrg
8676910425Smrg
87db17cd6dSmrg# Find who we are.  Look in the path if we contain no directory separator.
88482df631Smrgas_myself=
89482df631Smrgcase $0 in #((
90db17cd6dSmrg  *[\\/]* ) as_myself=$0 ;;
91db17cd6dSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92db17cd6dSmrgfor as_dir in $PATH
93db17cd6dSmrgdo
94db17cd6dSmrg  IFS=$as_save_IFS
95a67f45c3Smrg  case $as_dir in #(((
96a67f45c3Smrg    '') as_dir=./ ;;
97a67f45c3Smrg    */) ;;
98a67f45c3Smrg    *) as_dir=$as_dir/ ;;
99a67f45c3Smrg  esac
100a67f45c3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101482df631Smrg  done
102db17cd6dSmrgIFS=$as_save_IFS
103db17cd6dSmrg
104db17cd6dSmrg     ;;
105db17cd6dSmrgesac
106db17cd6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
107db17cd6dSmrg# in which case we are not to be found in the path.
108db17cd6dSmrgif test "x$as_myself" = x; then
109db17cd6dSmrg  as_myself=$0
110db17cd6dSmrgfi
111db17cd6dSmrgif test ! -f "$as_myself"; then
112a67f45c3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113482df631Smrg  exit 1
114db17cd6dSmrgfi
115db17cd6dSmrg
116482df631Smrg
1179ff100acSmrg# Use a proper internal environment variable to ensure we don't fall
1189ff100acSmrg  # into an infinite loop, continuously re-executing ourselves.
1199ff100acSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
1209ff100acSmrg    _as_can_reexec=no; export _as_can_reexec;
1219ff100acSmrg    # We cannot yet assume a decent shell, so we have to provide a
1229ff100acSmrg# neutralization value for shells without unset; and this also
1239ff100acSmrg# works around shells that cannot unset nonexistent variables.
1249ff100acSmrg# Preserve -v and -x to the replacement shell.
1259ff100acSmrgBASH_ENV=/dev/null
1269ff100acSmrgENV=/dev/null
1279ff100acSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
1289ff100acSmrgcase $- in # ((((
1299ff100acSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
1309ff100acSmrg  *v* ) as_opts=-v ;;
1319ff100acSmrg  *x* ) as_opts=-x ;;
1329ff100acSmrg  * ) as_opts= ;;
1339ff100acSmrgesac
1349ff100acSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
1359ff100acSmrg# Admittedly, this is quite paranoid, since all the known shells bail
1369ff100acSmrg# out after a failed `exec'.
137a67f45c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138a67f45c3Smrgexit 255
1399ff100acSmrg  fi
1409ff100acSmrg  # We don't want this to propagate to other subprocesses.
1419ff100acSmrg          { _as_can_reexec=; unset _as_can_reexec;}
142482df631Smrgif test "x$CONFIG_SHELL" = x; then
143a67f45c3Smrg  as_bourne_compatible="as_nop=:
144a67f45c3Smrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145a67f45c3Smrgthen :
146482df631Smrg  emulate sh
147482df631Smrg  NULLCMD=:
148482df631Smrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149482df631Smrg  # is contrary to our usage.  Disable this feature.
150482df631Smrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151482df631Smrg  setopt NO_GLOB_SUBST
152a67f45c3Smrgelse \$as_nop
153482df631Smrg  case \`(set -o) 2>/dev/null\` in #(
154482df631Smrg  *posix*) :
155482df631Smrg    set -o posix ;; #(
156482df631Smrg  *) :
157482df631Smrg     ;;
158482df631Smrgesac
159482df631Smrgfi
160482df631Smrg"
161482df631Smrg  as_required="as_fn_return () { (exit \$1); }
162482df631Smrgas_fn_success () { as_fn_return 0; }
163482df631Smrgas_fn_failure () { as_fn_return 1; }
164482df631Smrgas_fn_ret_success () { return 0; }
165482df631Smrgas_fn_ret_failure () { return 1; }
166482df631Smrg
167482df631Smrgexitcode=0
168482df631Smrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
169482df631Smrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170482df631Smrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171482df631Smrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172a67f45c3Smrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173a67f45c3Smrgthen :
174482df631Smrg
175a67f45c3Smrgelse \$as_nop
176482df631Smrg  exitcode=1; echo positional parameters were not saved.
177482df631Smrgfi
1789ff100acSmrgtest x\$exitcode = x0 || exit 1
179a67f45c3Smrgblah=\$(echo \$(echo blah))
180a67f45c3Smrgtest x\"\$blah\" = xblah || exit 1
1819ff100acSmrgtest -x / || exit 1"
182482df631Smrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183482df631Smrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184482df631Smrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185482df631Smrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186482df631Smrgtest \$(( 1 + 1 )) = 2 || exit 1"
187a67f45c3Smrg  if (eval "$as_required") 2>/dev/null
188a67f45c3Smrgthen :
189482df631Smrg  as_have_required=yes
190a67f45c3Smrgelse $as_nop
191482df631Smrg  as_have_required=no
192482df631Smrgfi
193a67f45c3Smrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194a67f45c3Smrgthen :
195482df631Smrg
196a67f45c3Smrgelse $as_nop
197482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198482df631Smrgas_found=false
199482df631Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200482df631Smrgdo
201482df631Smrg  IFS=$as_save_IFS
202a67f45c3Smrg  case $as_dir in #(((
203a67f45c3Smrg    '') as_dir=./ ;;
204a67f45c3Smrg    */) ;;
205a67f45c3Smrg    *) as_dir=$as_dir/ ;;
206a67f45c3Smrg  esac
207482df631Smrg  as_found=:
208482df631Smrg  case $as_dir in #(
209482df631Smrg	 /*)
210482df631Smrg	   for as_base in sh bash ksh sh5; do
211482df631Smrg	     # Try only shells that exist, to save several forks.
212a67f45c3Smrg	     as_shell=$as_dir$as_base
213482df631Smrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214a67f45c3Smrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215a67f45c3Smrgthen :
216482df631Smrg  CONFIG_SHELL=$as_shell as_have_required=yes
217a67f45c3Smrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218a67f45c3Smrgthen :
219482df631Smrg  break 2
220482df631Smrgfi
221482df631Smrgfi
222482df631Smrg	   done;;
223482df631Smrg       esac
224482df631Smrg  as_found=false
225482df631Smrgdone
226482df631SmrgIFS=$as_save_IFS
227a67f45c3Smrgif $as_found
228a67f45c3Smrgthen :
229a67f45c3Smrg
230a67f45c3Smrgelse $as_nop
231a67f45c3Smrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232a67f45c3Smrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233a67f45c3Smrgthen :
234a67f45c3Smrg  CONFIG_SHELL=$SHELL as_have_required=yes
235a67f45c3Smrgfi
236a67f45c3Smrgfi
237482df631Smrg
238482df631Smrg
239a67f45c3Smrg      if test "x$CONFIG_SHELL" != x
240a67f45c3Smrgthen :
2419ff100acSmrg  export CONFIG_SHELL
2429ff100acSmrg             # We cannot yet assume a decent shell, so we have to provide a
2439ff100acSmrg# neutralization value for shells without unset; and this also
2449ff100acSmrg# works around shells that cannot unset nonexistent variables.
2459ff100acSmrg# Preserve -v and -x to the replacement shell.
2469ff100acSmrgBASH_ENV=/dev/null
2479ff100acSmrgENV=/dev/null
2489ff100acSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
2499ff100acSmrgcase $- in # ((((
2509ff100acSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
2519ff100acSmrg  *v* ) as_opts=-v ;;
2529ff100acSmrg  *x* ) as_opts=-x ;;
2539ff100acSmrg  * ) as_opts= ;;
2549ff100acSmrgesac
2559ff100acSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
2569ff100acSmrg# Admittedly, this is quite paranoid, since all the known shells bail
2579ff100acSmrg# out after a failed `exec'.
258a67f45c3Smrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
2599ff100acSmrgexit 255
260482df631Smrgfi
261482df631Smrg
262a67f45c3Smrg    if test x$as_have_required = xno
263a67f45c3Smrgthen :
264a67f45c3Smrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265a67f45c3Smrg  printf "%s\n" "$0: the shells that I found on your system."
266a67f45c3Smrg  if test ${ZSH_VERSION+y} ; then
267a67f45c3Smrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268a67f45c3Smrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269482df631Smrg  else
270a67f45c3Smrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271a67f45c3Smrg$0: https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues
272482df631Smrg$0: about your system, including any error possibly output
273482df631Smrg$0: before this message. Then install a modern shell, or
274482df631Smrg$0: manually run the script under such a shell if you do
275482df631Smrg$0: have one."
276482df631Smrg  fi
277482df631Smrg  exit 1
278482df631Smrgfi
279482df631Smrgfi
280482df631Smrgfi
281482df631SmrgSHELL=${CONFIG_SHELL-/bin/sh}
282482df631Smrgexport SHELL
283482df631Smrg# Unset more variables known to interfere with behavior of common tools.
284482df631SmrgCLICOLOR_FORCE= GREP_OPTIONS=
285482df631Smrgunset CLICOLOR_FORCE GREP_OPTIONS
286482df631Smrg
287482df631Smrg## --------------------- ##
288482df631Smrg## M4sh Shell Functions. ##
289482df631Smrg## --------------------- ##
290482df631Smrg# as_fn_unset VAR
291482df631Smrg# ---------------
292482df631Smrg# Portably unset VAR.
293482df631Smrgas_fn_unset ()
294482df631Smrg{
295482df631Smrg  { eval $1=; unset $1;}
296482df631Smrg}
297482df631Smrgas_unset=as_fn_unset
298482df631Smrg
299a67f45c3Smrg
300482df631Smrg# as_fn_set_status STATUS
301482df631Smrg# -----------------------
302482df631Smrg# Set $? to STATUS, without forking.
303482df631Smrgas_fn_set_status ()
304482df631Smrg{
305482df631Smrg  return $1
306482df631Smrg} # as_fn_set_status
307482df631Smrg
308482df631Smrg# as_fn_exit STATUS
309482df631Smrg# -----------------
310482df631Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311482df631Smrgas_fn_exit ()
312482df631Smrg{
313482df631Smrg  set +e
314482df631Smrg  as_fn_set_status $1
315482df631Smrg  exit $1
316482df631Smrg} # as_fn_exit
317a67f45c3Smrg# as_fn_nop
318a67f45c3Smrg# ---------
319a67f45c3Smrg# Do nothing but, unlike ":", preserve the value of $?.
320a67f45c3Smrgas_fn_nop ()
321a67f45c3Smrg{
322a67f45c3Smrg  return $?
323a67f45c3Smrg}
324a67f45c3Smrgas_nop=as_fn_nop
325482df631Smrg
326482df631Smrg# as_fn_mkdir_p
327482df631Smrg# -------------
328482df631Smrg# Create "$as_dir" as a directory, including parents if necessary.
329482df631Smrgas_fn_mkdir_p ()
330482df631Smrg{
331482df631Smrg
332482df631Smrg  case $as_dir in #(
333482df631Smrg  -*) as_dir=./$as_dir;;
334482df631Smrg  esac
335482df631Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
336482df631Smrg    as_dirs=
337482df631Smrg    while :; do
338482df631Smrg      case $as_dir in #(
339a67f45c3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340482df631Smrg      *) as_qdir=$as_dir;;
341482df631Smrg      esac
342482df631Smrg      as_dirs="'$as_qdir' $as_dirs"
343482df631Smrg      as_dir=`$as_dirname -- "$as_dir" ||
344482df631Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345482df631Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
346482df631Smrg	 X"$as_dir" : 'X\(//\)$' \| \
347482df631Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348a67f45c3Smrgprintf "%s\n" X"$as_dir" |
349482df631Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350482df631Smrg	    s//\1/
351482df631Smrg	    q
352482df631Smrg	  }
353482df631Smrg	  /^X\(\/\/\)[^/].*/{
354482df631Smrg	    s//\1/
355482df631Smrg	    q
356482df631Smrg	  }
357482df631Smrg	  /^X\(\/\/\)$/{
358482df631Smrg	    s//\1/
359482df631Smrg	    q
360482df631Smrg	  }
361482df631Smrg	  /^X\(\/\).*/{
362482df631Smrg	    s//\1/
363482df631Smrg	    q
364482df631Smrg	  }
365482df631Smrg	  s/.*/./; q'`
366482df631Smrg      test -d "$as_dir" && break
367482df631Smrg    done
368482df631Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
369482df631Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370482df631Smrg
371482df631Smrg
372482df631Smrg} # as_fn_mkdir_p
3739ff100acSmrg
3749ff100acSmrg# as_fn_executable_p FILE
3759ff100acSmrg# -----------------------
3769ff100acSmrg# Test if FILE is an executable regular file.
3779ff100acSmrgas_fn_executable_p ()
3789ff100acSmrg{
3799ff100acSmrg  test -f "$1" && test -x "$1"
3809ff100acSmrg} # as_fn_executable_p
381482df631Smrg# as_fn_append VAR VALUE
382482df631Smrg# ----------------------
383482df631Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
384482df631Smrg# advantage of any shell optimizations that allow amortized linear growth over
385482df631Smrg# repeated appends, instead of the typical quadratic growth present in naive
386482df631Smrg# implementations.
387a67f45c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388a67f45c3Smrgthen :
389482df631Smrg  eval 'as_fn_append ()
390482df631Smrg  {
391482df631Smrg    eval $1+=\$2
392482df631Smrg  }'
393a67f45c3Smrgelse $as_nop
394482df631Smrg  as_fn_append ()
395482df631Smrg  {
396482df631Smrg    eval $1=\$$1\$2
397482df631Smrg  }
398482df631Smrgfi # as_fn_append
399482df631Smrg
400482df631Smrg# as_fn_arith ARG...
401482df631Smrg# ------------------
402482df631Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
403482df631Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
404482df631Smrg# must be portable across $(()) and expr.
405a67f45c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406a67f45c3Smrgthen :
407482df631Smrg  eval 'as_fn_arith ()
408482df631Smrg  {
409482df631Smrg    as_val=$(( $* ))
410482df631Smrg  }'
411a67f45c3Smrgelse $as_nop
412482df631Smrg  as_fn_arith ()
413482df631Smrg  {
414482df631Smrg    as_val=`expr "$@" || test $? -eq 1`
415482df631Smrg  }
416482df631Smrgfi # as_fn_arith
417482df631Smrg
418a67f45c3Smrg# as_fn_nop
419a67f45c3Smrg# ---------
420a67f45c3Smrg# Do nothing but, unlike ":", preserve the value of $?.
421a67f45c3Smrgas_fn_nop ()
422a67f45c3Smrg{
423a67f45c3Smrg  return $?
424a67f45c3Smrg}
425a67f45c3Smrgas_nop=as_fn_nop
426482df631Smrg
427482df631Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
428482df631Smrg# ----------------------------------------
429482df631Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430482df631Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431482df631Smrg# script with STATUS, using 1 if that was 0.
432482df631Smrgas_fn_error ()
433482df631Smrg{
434482df631Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
435482df631Smrg  if test "$4"; then
436482df631Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438482df631Smrg  fi
439a67f45c3Smrg  printf "%s\n" "$as_me: error: $2" >&2
440482df631Smrg  as_fn_exit $as_status
441482df631Smrg} # as_fn_error
442482df631Smrg
443db17cd6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
444db17cd6dSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
44576910425Smrg  as_expr=expr
44676910425Smrgelse
44776910425Smrg  as_expr=false
44876910425Smrgfi
44976910425Smrg
450db17cd6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45176910425Smrg  as_basename=basename
45276910425Smrgelse
45376910425Smrg  as_basename=false
45476910425Smrgfi
45576910425Smrg
456482df631Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457482df631Smrg  as_dirname=dirname
458482df631Smrgelse
459482df631Smrg  as_dirname=false
460482df631Smrgfi
46176910425Smrg
462db17cd6dSmrgas_me=`$as_basename -- "$0" ||
46376910425Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46476910425Smrg	 X"$0" : 'X\(//\)$' \| \
465db17cd6dSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466a67f45c3Smrgprintf "%s\n" X/"$0" |
467db17cd6dSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
468db17cd6dSmrg	    s//\1/
469db17cd6dSmrg	    q
470db17cd6dSmrg	  }
471db17cd6dSmrg	  /^X\/\(\/\/\)$/{
472db17cd6dSmrg	    s//\1/
473db17cd6dSmrg	    q
474db17cd6dSmrg	  }
475db17cd6dSmrg	  /^X\/\(\/\).*/{
476db17cd6dSmrg	    s//\1/
477db17cd6dSmrg	    q
478db17cd6dSmrg	  }
479db17cd6dSmrg	  s/.*/./; q'`
48076910425Smrg
481482df631Smrg# Avoid depending upon Character Ranges.
482482df631Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
483482df631Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484482df631Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
485482df631Smrgas_cr_digits='0123456789'
486482df631Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
48776910425Smrg
48876910425Smrg
489482df631Smrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
490482df631Smrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
491482df631Smrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492482df631Smrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493482df631Smrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
494482df631Smrg  sed -n '
495482df631Smrg    p
496482df631Smrg    /[$]LINENO/=
497482df631Smrg  ' <$as_myself |
498482df631Smrg    sed '
499482df631Smrg      s/[$]LINENO.*/&-/
500482df631Smrg      t lineno
501482df631Smrg      b
502482df631Smrg      :lineno
503482df631Smrg      N
504482df631Smrg      :loop
505482df631Smrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506482df631Smrg      t loop
507482df631Smrg      s/-\n.*//
508482df631Smrg    ' >$as_me.lineno &&
509482df631Smrg  chmod +x "$as_me.lineno" ||
510a67f45c3Smrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
51176910425Smrg
5129ff100acSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
5139ff100acSmrg  # already done that, so ensure we don't try to do so again and fall
5149ff100acSmrg  # in an infinite loop.  This has already happened in practice.
5159ff100acSmrg  _as_can_reexec=no; export _as_can_reexec
516482df631Smrg  # Don't try to exec as it changes $[0], causing all sort of problems
517482df631Smrg  # (the dirname of $[0] is not the place where we might find the
518482df631Smrg  # original and so on.  Autoconf is especially sensitive to this).
519482df631Smrg  . "./$as_me.lineno"
520482df631Smrg  # Exit status is that of the last command.
521482df631Smrg  exit
522db17cd6dSmrg}
52376910425Smrg
524a67f45c3Smrg
525a67f45c3Smrg# Determine whether it's possible to make 'echo' print without a newline.
526a67f45c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527a67f45c3Smrg# for compatibility with existing Makefiles.
528482df631SmrgECHO_C= ECHO_N= ECHO_T=
529482df631Smrgcase `echo -n x` in #(((((
530482df631Smrg-n*)
531482df631Smrg  case `echo 'xy\c'` in
532482df631Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533482df631Smrg  xy)  ECHO_C='\c';;
534482df631Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535482df631Smrg       ECHO_T='	';;
536482df631Smrg  esac;;
537482df631Smrg*)
538482df631Smrg  ECHO_N='-n';;
539482df631Smrgesac
54076910425Smrg
541a67f45c3Smrg# For backward compatibility with old third-party macros, we provide
542a67f45c3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
543a67f45c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544a67f45c3Smrgas_echo='printf %s\n'
545a67f45c3Smrgas_echo_n='printf %s'
546a67f45c3Smrg
547a67f45c3Smrg
548482df631Smrgrm -f conf$$ conf$$.exe conf$$.file
549482df631Smrgif test -d conf$$.dir; then
550482df631Smrg  rm -f conf$$.dir/conf$$.file
551482df631Smrgelse
552482df631Smrg  rm -f conf$$.dir
553482df631Smrg  mkdir conf$$.dir 2>/dev/null
554db17cd6dSmrgfi
555482df631Smrgif (echo >conf$$.file) 2>/dev/null; then
556482df631Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
557482df631Smrg    as_ln_s='ln -s'
558482df631Smrg    # ... but there are two gotchas:
559482df631Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560482df631Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5619ff100acSmrg    # In both cases, we have to default to `cp -pR'.
562482df631Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5639ff100acSmrg      as_ln_s='cp -pR'
564482df631Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
565482df631Smrg    as_ln_s=ln
566482df631Smrg  else
5679ff100acSmrg    as_ln_s='cp -pR'
568482df631Smrg  fi
569db17cd6dSmrgelse
5709ff100acSmrg  as_ln_s='cp -pR'
571db17cd6dSmrgfi
572482df631Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573482df631Smrgrmdir conf$$.dir 2>/dev/null
574db17cd6dSmrg
575482df631Smrgif mkdir -p . 2>/dev/null; then
576482df631Smrg  as_mkdir_p='mkdir -p "$as_dir"'
577482df631Smrgelse
578482df631Smrg  test -d ./-p && rmdir ./-p
579482df631Smrg  as_mkdir_p=false
580db17cd6dSmrgfi
581db17cd6dSmrg
5829ff100acSmrgas_test_x='test -x'
5839ff100acSmrgas_executable_p=as_fn_executable_p
584db17cd6dSmrg
585482df631Smrg# Sed expression to map a string onto a valid CPP name.
586482df631Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587db17cd6dSmrg
588482df631Smrg# Sed expression to map a string onto a valid variable name.
589482df631Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590db17cd6dSmrg
591db17cd6dSmrg
592482df631Smrgtest -n "$DJDIR" || exec 7<&0 </dev/null
593482df631Smrgexec 6>&1
59476910425Smrg
59576910425Smrg# Name of the host.
596482df631Smrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
59776910425Smrg# so uname gets run too.
59876910425Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59976910425Smrg
60076910425Smrg#
60176910425Smrg# Initializations.
60276910425Smrg#
60376910425Smrgac_default_prefix=/usr/local
604db17cd6dSmrgac_clean_files=
60576910425Smrgac_config_libobj_dir=.
606db17cd6dSmrgLIBOBJS=
60776910425Smrgcross_compiling=no
60876910425Smrgsubdirs=
60976910425SmrgMFLAGS=
61076910425SmrgMAKEFLAGS=
61176910425Smrg
61276910425Smrg# Identity of this package.
61376910425SmrgPACKAGE_NAME='xkbevd'
61476910425SmrgPACKAGE_TARNAME='xkbevd'
615a67f45c3SmrgPACKAGE_VERSION='1.1.5'
616a67f45c3SmrgPACKAGE_STRING='xkbevd 1.1.5'
617a67f45c3SmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues'
618482df631SmrgPACKAGE_URL=''
61976910425Smrg
6209ff100acSmrgac_unique_file="Makefile.am"
621db17cd6dSmrg# Factoring default headers for most tests.
622db17cd6dSmrgac_includes_default="\
623a67f45c3Smrg#include <stddef.h>
624a67f45c3Smrg#ifdef HAVE_STDIO_H
625a67f45c3Smrg# include <stdio.h>
626db17cd6dSmrg#endif
627a67f45c3Smrg#ifdef HAVE_STDLIB_H
628db17cd6dSmrg# include <stdlib.h>
629db17cd6dSmrg#endif
630db17cd6dSmrg#ifdef HAVE_STRING_H
631db17cd6dSmrg# include <string.h>
632db17cd6dSmrg#endif
633db17cd6dSmrg#ifdef HAVE_INTTYPES_H
634db17cd6dSmrg# include <inttypes.h>
635db17cd6dSmrg#endif
636db17cd6dSmrg#ifdef HAVE_STDINT_H
637db17cd6dSmrg# include <stdint.h>
638db17cd6dSmrg#endif
639a67f45c3Smrg#ifdef HAVE_STRINGS_H
640a67f45c3Smrg# include <strings.h>
641a67f45c3Smrg#endif
642a67f45c3Smrg#ifdef HAVE_SYS_TYPES_H
643a67f45c3Smrg# include <sys/types.h>
644a67f45c3Smrg#endif
645a67f45c3Smrg#ifdef HAVE_SYS_STAT_H
646a67f45c3Smrg# include <sys/stat.h>
647a67f45c3Smrg#endif
648db17cd6dSmrg#ifdef HAVE_UNISTD_H
649db17cd6dSmrg# include <unistd.h>
650db17cd6dSmrg#endif"
651db17cd6dSmrg
652a67f45c3Smrgac_header_c_list=
653db17cd6dSmrgac_subst_vars='am__EXEEXT_FALSE
654db17cd6dSmrgam__EXEEXT_TRUE
655db17cd6dSmrgLTLIBOBJS
656db17cd6dSmrgLIBOBJS
657db17cd6dSmrgXKBEVD_LIBS
658db17cd6dSmrgXKBEVD_CFLAGS
6599ff100acSmrgYACC_INST
6609ff100acSmrgYFLAGS
6619ff100acSmrgYACC
662482df631SmrgMAN_SUBSTS
663482df631SmrgXORG_MAN_PAGE
664db17cd6dSmrgADMIN_MAN_DIR
665db17cd6dSmrgDRIVER_MAN_DIR
666db17cd6dSmrgMISC_MAN_DIR
667db17cd6dSmrgFILE_MAN_DIR
668db17cd6dSmrgLIB_MAN_DIR
669db17cd6dSmrgAPP_MAN_DIR
670db17cd6dSmrgADMIN_MAN_SUFFIX
671db17cd6dSmrgDRIVER_MAN_SUFFIX
672db17cd6dSmrgMISC_MAN_SUFFIX
673db17cd6dSmrgFILE_MAN_SUFFIX
674db17cd6dSmrgLIB_MAN_SUFFIX
675db17cd6dSmrgAPP_MAN_SUFFIX
676482df631SmrgSED
677db17cd6dSmrghost_os
678db17cd6dSmrghost_vendor
679db17cd6dSmrghost_cpu
680db17cd6dSmrghost
681db17cd6dSmrgbuild_os
682db17cd6dSmrgbuild_vendor
683db17cd6dSmrgbuild_cpu
684db17cd6dSmrgbuild
685482df631SmrgINSTALL_CMD
686a67f45c3SmrgPKG_CONFIG_LIBDIR
687a67f45c3SmrgPKG_CONFIG_PATH
688482df631SmrgPKG_CONFIG
689db17cd6dSmrgCHANGELOG_CMD
6909ff100acSmrgSTRICT_CFLAGS
691db17cd6dSmrgCWARNFLAGS
6929ff100acSmrgBASE_CFLAGS
693db17cd6dSmrgam__fastdepCC_FALSE
694db17cd6dSmrgam__fastdepCC_TRUE
695db17cd6dSmrgCCDEPMODE
6969ff100acSmrgam__nodep
697db17cd6dSmrgAMDEPBACKSLASH
698db17cd6dSmrgAMDEP_FALSE
699db17cd6dSmrgAMDEP_TRUE
700db17cd6dSmrgam__include
701db17cd6dSmrgDEPDIR
702db17cd6dSmrgOBJEXT
703db17cd6dSmrgEXEEXT
704db17cd6dSmrgac_ct_CC
705db17cd6dSmrgCPPFLAGS
706db17cd6dSmrgLDFLAGS
707db17cd6dSmrgCFLAGS
708db17cd6dSmrgCC
7099ff100acSmrgAM_BACKSLASH
7109ff100acSmrgAM_DEFAULT_VERBOSITY
7119ff100acSmrgAM_DEFAULT_V
7129ff100acSmrgAM_V
713a67f45c3SmrgCSCOPE
714a67f45c3SmrgETAGS
715a67f45c3SmrgCTAGS
716db17cd6dSmrgam__untar
717db17cd6dSmrgam__tar
718db17cd6dSmrgAMTAR
719db17cd6dSmrgam__leading_dot
720db17cd6dSmrgSET_MAKE
721db17cd6dSmrgAWK
722db17cd6dSmrgmkdir_p
723db17cd6dSmrgMKDIR_P
724db17cd6dSmrgINSTALL_STRIP_PROGRAM
725db17cd6dSmrgSTRIP
726db17cd6dSmrginstall_sh
727db17cd6dSmrgMAKEINFO
728db17cd6dSmrgAUTOHEADER
729db17cd6dSmrgAUTOMAKE
730db17cd6dSmrgAUTOCONF
731db17cd6dSmrgACLOCAL
732db17cd6dSmrgVERSION
733db17cd6dSmrgPACKAGE
734db17cd6dSmrgCYGPATH_W
735db17cd6dSmrgam__isrc
736db17cd6dSmrgINSTALL_DATA
737db17cd6dSmrgINSTALL_SCRIPT
738db17cd6dSmrgINSTALL_PROGRAM
739db17cd6dSmrgtarget_alias
740db17cd6dSmrghost_alias
741db17cd6dSmrgbuild_alias
742db17cd6dSmrgLIBS
743db17cd6dSmrgECHO_T
744db17cd6dSmrgECHO_N
745db17cd6dSmrgECHO_C
746db17cd6dSmrgDEFS
747db17cd6dSmrgmandir
748db17cd6dSmrglocaledir
749db17cd6dSmrglibdir
750db17cd6dSmrgpsdir
751db17cd6dSmrgpdfdir
752db17cd6dSmrgdvidir
753db17cd6dSmrghtmldir
754db17cd6dSmrginfodir
755db17cd6dSmrgdocdir
756db17cd6dSmrgoldincludedir
757db17cd6dSmrgincludedir
758a67f45c3Smrgrunstatedir
759db17cd6dSmrglocalstatedir
760db17cd6dSmrgsharedstatedir
761db17cd6dSmrgsysconfdir
762db17cd6dSmrgdatadir
763db17cd6dSmrgdatarootdir
764db17cd6dSmrglibexecdir
765db17cd6dSmrgsbindir
766db17cd6dSmrgbindir
767db17cd6dSmrgprogram_transform_name
768db17cd6dSmrgprefix
769db17cd6dSmrgexec_prefix
770482df631SmrgPACKAGE_URL
771db17cd6dSmrgPACKAGE_BUGREPORT
772db17cd6dSmrgPACKAGE_STRING
773db17cd6dSmrgPACKAGE_VERSION
774db17cd6dSmrgPACKAGE_TARNAME
775db17cd6dSmrgPACKAGE_NAME
776db17cd6dSmrgPATH_SEPARATOR
777a67f45c3SmrgSHELL
778a67f45c3Smrgam__quote'
77976910425Smrgac_subst_files=''
780db17cd6dSmrgac_user_opts='
781db17cd6dSmrgenable_option_checking
7829ff100acSmrgenable_silent_rules
783db17cd6dSmrgenable_dependency_tracking
7849ff100acSmrgenable_selective_werror
785db17cd6dSmrgenable_strict_compilation
786db17cd6dSmrg'
787db17cd6dSmrg      ac_precious_vars='build_alias
788db17cd6dSmrghost_alias
789db17cd6dSmrgtarget_alias
790db17cd6dSmrgCC
791db17cd6dSmrgCFLAGS
792db17cd6dSmrgLDFLAGS
793db17cd6dSmrgLIBS
794db17cd6dSmrgCPPFLAGS
795db17cd6dSmrgPKG_CONFIG
796a67f45c3SmrgPKG_CONFIG_PATH
797a67f45c3SmrgPKG_CONFIG_LIBDIR
7989ff100acSmrgYACC
7999ff100acSmrgYFLAGS
800db17cd6dSmrgXKBEVD_CFLAGS
801db17cd6dSmrgXKBEVD_LIBS'
802db17cd6dSmrg
80376910425Smrg
80476910425Smrg# Initialize some variables set by options.
80576910425Smrgac_init_help=
80676910425Smrgac_init_version=false
807db17cd6dSmrgac_unrecognized_opts=
808db17cd6dSmrgac_unrecognized_sep=
80976910425Smrg# The variables have the same names as the options, with
81076910425Smrg# dashes changed to underlines.
81176910425Smrgcache_file=/dev/null
81276910425Smrgexec_prefix=NONE
81376910425Smrgno_create=
81476910425Smrgno_recursion=
81576910425Smrgprefix=NONE
81676910425Smrgprogram_prefix=NONE
81776910425Smrgprogram_suffix=NONE
81876910425Smrgprogram_transform_name=s,x,x,
81976910425Smrgsilent=
82076910425Smrgsite=
82176910425Smrgsrcdir=
82276910425Smrgverbose=
82376910425Smrgx_includes=NONE
82476910425Smrgx_libraries=NONE
82576910425Smrg
82676910425Smrg# Installation directory options.
82776910425Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
82876910425Smrg# and all the variables that are supposed to be based on exec_prefix
82976910425Smrg# by default will actually change.
83076910425Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
831db17cd6dSmrg# (The list follows the same order as the GNU Coding Standards.)
83276910425Smrgbindir='${exec_prefix}/bin'
83376910425Smrgsbindir='${exec_prefix}/sbin'
83476910425Smrglibexecdir='${exec_prefix}/libexec'
835db17cd6dSmrgdatarootdir='${prefix}/share'
836db17cd6dSmrgdatadir='${datarootdir}'
83776910425Smrgsysconfdir='${prefix}/etc'
83876910425Smrgsharedstatedir='${prefix}/com'
83976910425Smrglocalstatedir='${prefix}/var'
840a67f45c3Smrgrunstatedir='${localstatedir}/run'
84176910425Smrgincludedir='${prefix}/include'
84276910425Smrgoldincludedir='/usr/include'
843db17cd6dSmrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844db17cd6dSmrginfodir='${datarootdir}/info'
845db17cd6dSmrghtmldir='${docdir}'
846db17cd6dSmrgdvidir='${docdir}'
847db17cd6dSmrgpdfdir='${docdir}'
848db17cd6dSmrgpsdir='${docdir}'
849db17cd6dSmrglibdir='${exec_prefix}/lib'
850db17cd6dSmrglocaledir='${datarootdir}/locale'
851db17cd6dSmrgmandir='${datarootdir}/man'
85276910425Smrg
85376910425Smrgac_prev=
854db17cd6dSmrgac_dashdash=
85576910425Smrgfor ac_option
85676910425Smrgdo
85776910425Smrg  # If the previous option needs an argument, assign it.
85876910425Smrg  if test -n "$ac_prev"; then
859db17cd6dSmrg    eval $ac_prev=\$ac_option
86076910425Smrg    ac_prev=
86176910425Smrg    continue
86276910425Smrg  fi
86376910425Smrg
864db17cd6dSmrg  case $ac_option in
865482df631Smrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866482df631Smrg  *=)   ac_optarg= ;;
867482df631Smrg  *)    ac_optarg=yes ;;
868db17cd6dSmrg  esac
86976910425Smrg
870db17cd6dSmrg  case $ac_dashdash$ac_option in
871db17cd6dSmrg  --)
872db17cd6dSmrg    ac_dashdash=yes ;;
87376910425Smrg
87476910425Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87576910425Smrg    ac_prev=bindir ;;
87676910425Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87776910425Smrg    bindir=$ac_optarg ;;
87876910425Smrg
87976910425Smrg  -build | --build | --buil | --bui | --bu)
88076910425Smrg    ac_prev=build_alias ;;
88176910425Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
88276910425Smrg    build_alias=$ac_optarg ;;
88376910425Smrg
88476910425Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
88576910425Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88676910425Smrg    ac_prev=cache_file ;;
88776910425Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88876910425Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88976910425Smrg    cache_file=$ac_optarg ;;
89076910425Smrg
89176910425Smrg  --config-cache | -C)
89276910425Smrg    cache_file=config.cache ;;
89376910425Smrg
894db17cd6dSmrg  -datadir | --datadir | --datadi | --datad)
89576910425Smrg    ac_prev=datadir ;;
896db17cd6dSmrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
89776910425Smrg    datadir=$ac_optarg ;;
89876910425Smrg
899db17cd6dSmrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900db17cd6dSmrg  | --dataroo | --dataro | --datar)
901db17cd6dSmrg    ac_prev=datarootdir ;;
902db17cd6dSmrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903db17cd6dSmrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904db17cd6dSmrg    datarootdir=$ac_optarg ;;
905db17cd6dSmrg
90676910425Smrg  -disable-* | --disable-*)
907db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
90876910425Smrg    # Reject names that are not valid shell variable names.
909db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910a67f45c3Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
911db17cd6dSmrg    ac_useropt_orig=$ac_useropt
912a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913db17cd6dSmrg    case $ac_user_opts in
914db17cd6dSmrg      *"
915db17cd6dSmrg"enable_$ac_useropt"
916db17cd6dSmrg"*) ;;
917db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918db17cd6dSmrg	 ac_unrecognized_sep=', ';;
919db17cd6dSmrg    esac
920db17cd6dSmrg    eval enable_$ac_useropt=no ;;
921db17cd6dSmrg
922db17cd6dSmrg  -docdir | --docdir | --docdi | --doc | --do)
923db17cd6dSmrg    ac_prev=docdir ;;
924db17cd6dSmrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925db17cd6dSmrg    docdir=$ac_optarg ;;
926db17cd6dSmrg
927db17cd6dSmrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928db17cd6dSmrg    ac_prev=dvidir ;;
929db17cd6dSmrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930db17cd6dSmrg    dvidir=$ac_optarg ;;
93176910425Smrg
93276910425Smrg  -enable-* | --enable-*)
933db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
93476910425Smrg    # Reject names that are not valid shell variable names.
935db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936a67f45c3Smrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
937db17cd6dSmrg    ac_useropt_orig=$ac_useropt
938a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939db17cd6dSmrg    case $ac_user_opts in
940db17cd6dSmrg      *"
941db17cd6dSmrg"enable_$ac_useropt"
942db17cd6dSmrg"*) ;;
943db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944db17cd6dSmrg	 ac_unrecognized_sep=', ';;
94576910425Smrg    esac
946db17cd6dSmrg    eval enable_$ac_useropt=\$ac_optarg ;;
94776910425Smrg
94876910425Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
94976910425Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
95076910425Smrg  | --exec | --exe | --ex)
95176910425Smrg    ac_prev=exec_prefix ;;
95276910425Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
95376910425Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
95476910425Smrg  | --exec=* | --exe=* | --ex=*)
95576910425Smrg    exec_prefix=$ac_optarg ;;
95676910425Smrg
95776910425Smrg  -gas | --gas | --ga | --g)
95876910425Smrg    # Obsolete; use --with-gas.
95976910425Smrg    with_gas=yes ;;
96076910425Smrg
96176910425Smrg  -help | --help | --hel | --he | -h)
96276910425Smrg    ac_init_help=long ;;
96376910425Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
96476910425Smrg    ac_init_help=recursive ;;
96576910425Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
96676910425Smrg    ac_init_help=short ;;
96776910425Smrg
96876910425Smrg  -host | --host | --hos | --ho)
96976910425Smrg    ac_prev=host_alias ;;
97076910425Smrg  -host=* | --host=* | --hos=* | --ho=*)
97176910425Smrg    host_alias=$ac_optarg ;;
97276910425Smrg
973db17cd6dSmrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974db17cd6dSmrg    ac_prev=htmldir ;;
975db17cd6dSmrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976db17cd6dSmrg  | --ht=*)
977db17cd6dSmrg    htmldir=$ac_optarg ;;
978db17cd6dSmrg
97976910425Smrg  -includedir | --includedir | --includedi | --included | --include \
98076910425Smrg  | --includ | --inclu | --incl | --inc)
98176910425Smrg    ac_prev=includedir ;;
98276910425Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
98376910425Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
98476910425Smrg    includedir=$ac_optarg ;;
98576910425Smrg
98676910425Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
98776910425Smrg    ac_prev=infodir ;;
98876910425Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
98976910425Smrg    infodir=$ac_optarg ;;
99076910425Smrg
99176910425Smrg  -libdir | --libdir | --libdi | --libd)
99276910425Smrg    ac_prev=libdir ;;
99376910425Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
99476910425Smrg    libdir=$ac_optarg ;;
99576910425Smrg
99676910425Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
99776910425Smrg  | --libexe | --libex | --libe)
99876910425Smrg    ac_prev=libexecdir ;;
99976910425Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
100076910425Smrg  | --libexe=* | --libex=* | --libe=*)
100176910425Smrg    libexecdir=$ac_optarg ;;
100276910425Smrg
1003db17cd6dSmrg  -localedir | --localedir | --localedi | --localed | --locale)
1004db17cd6dSmrg    ac_prev=localedir ;;
1005db17cd6dSmrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006db17cd6dSmrg    localedir=$ac_optarg ;;
1007db17cd6dSmrg
100876910425Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009db17cd6dSmrg  | --localstate | --localstat | --localsta | --localst | --locals)
101076910425Smrg    ac_prev=localstatedir ;;
101176910425Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012db17cd6dSmrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
101376910425Smrg    localstatedir=$ac_optarg ;;
101476910425Smrg
101576910425Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
101676910425Smrg    ac_prev=mandir ;;
101776910425Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
101876910425Smrg    mandir=$ac_optarg ;;
101976910425Smrg
102076910425Smrg  -nfp | --nfp | --nf)
102176910425Smrg    # Obsolete; use --without-fp.
102276910425Smrg    with_fp=no ;;
102376910425Smrg
102476910425Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
102576910425Smrg  | --no-cr | --no-c | -n)
102676910425Smrg    no_create=yes ;;
102776910425Smrg
102876910425Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
102976910425Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
103076910425Smrg    no_recursion=yes ;;
103176910425Smrg
103276910425Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
103376910425Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
103476910425Smrg  | --oldin | --oldi | --old | --ol | --o)
103576910425Smrg    ac_prev=oldincludedir ;;
103676910425Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
103776910425Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
103876910425Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
103976910425Smrg    oldincludedir=$ac_optarg ;;
104076910425Smrg
104176910425Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
104276910425Smrg    ac_prev=prefix ;;
104376910425Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
104476910425Smrg    prefix=$ac_optarg ;;
104576910425Smrg
104676910425Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
104776910425Smrg  | --program-pre | --program-pr | --program-p)
104876910425Smrg    ac_prev=program_prefix ;;
104976910425Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
105076910425Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
105176910425Smrg    program_prefix=$ac_optarg ;;
105276910425Smrg
105376910425Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
105476910425Smrg  | --program-suf | --program-su | --program-s)
105576910425Smrg    ac_prev=program_suffix ;;
105676910425Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
105776910425Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
105876910425Smrg    program_suffix=$ac_optarg ;;
105976910425Smrg
106076910425Smrg  -program-transform-name | --program-transform-name \
106176910425Smrg  | --program-transform-nam | --program-transform-na \
106276910425Smrg  | --program-transform-n | --program-transform- \
106376910425Smrg  | --program-transform | --program-transfor \
106476910425Smrg  | --program-transfo | --program-transf \
106576910425Smrg  | --program-trans | --program-tran \
106676910425Smrg  | --progr-tra | --program-tr | --program-t)
106776910425Smrg    ac_prev=program_transform_name ;;
106876910425Smrg  -program-transform-name=* | --program-transform-name=* \
106976910425Smrg  | --program-transform-nam=* | --program-transform-na=* \
107076910425Smrg  | --program-transform-n=* | --program-transform-=* \
107176910425Smrg  | --program-transform=* | --program-transfor=* \
107276910425Smrg  | --program-transfo=* | --program-transf=* \
107376910425Smrg  | --program-trans=* | --program-tran=* \
107476910425Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
107576910425Smrg    program_transform_name=$ac_optarg ;;
107676910425Smrg
1077db17cd6dSmrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078db17cd6dSmrg    ac_prev=pdfdir ;;
1079db17cd6dSmrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080db17cd6dSmrg    pdfdir=$ac_optarg ;;
1081db17cd6dSmrg
1082db17cd6dSmrg  -psdir | --psdir | --psdi | --psd | --ps)
1083db17cd6dSmrg    ac_prev=psdir ;;
1084db17cd6dSmrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085db17cd6dSmrg    psdir=$ac_optarg ;;
1086db17cd6dSmrg
108776910425Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
108876910425Smrg  | -silent | --silent | --silen | --sile | --sil)
108976910425Smrg    silent=yes ;;
109076910425Smrg
1091a67f45c3Smrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1092a67f45c3Smrg  | --runstate | --runstat | --runsta | --runst | --runs \
1093a67f45c3Smrg  | --run | --ru | --r)
1094a67f45c3Smrg    ac_prev=runstatedir ;;
1095a67f45c3Smrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096a67f45c3Smrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097a67f45c3Smrg  | --run=* | --ru=* | --r=*)
1098a67f45c3Smrg    runstatedir=$ac_optarg ;;
1099a67f45c3Smrg
110076910425Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
110176910425Smrg    ac_prev=sbindir ;;
110276910425Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
110376910425Smrg  | --sbi=* | --sb=*)
110476910425Smrg    sbindir=$ac_optarg ;;
110576910425Smrg
110676910425Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
110776910425Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
110876910425Smrg  | --sharedst | --shareds | --shared | --share | --shar \
110976910425Smrg  | --sha | --sh)
111076910425Smrg    ac_prev=sharedstatedir ;;
111176910425Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
111276910425Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
111376910425Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
111476910425Smrg  | --sha=* | --sh=*)
111576910425Smrg    sharedstatedir=$ac_optarg ;;
111676910425Smrg
111776910425Smrg  -site | --site | --sit)
111876910425Smrg    ac_prev=site ;;
111976910425Smrg  -site=* | --site=* | --sit=*)
112076910425Smrg    site=$ac_optarg ;;
112176910425Smrg
112276910425Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
112376910425Smrg    ac_prev=srcdir ;;
112476910425Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
112576910425Smrg    srcdir=$ac_optarg ;;
112676910425Smrg
112776910425Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
112876910425Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
112976910425Smrg    ac_prev=sysconfdir ;;
113076910425Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
113176910425Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
113276910425Smrg    sysconfdir=$ac_optarg ;;
113376910425Smrg
113476910425Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
113576910425Smrg    ac_prev=target_alias ;;
113676910425Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
113776910425Smrg    target_alias=$ac_optarg ;;
113876910425Smrg
113976910425Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
114076910425Smrg    verbose=yes ;;
114176910425Smrg
114276910425Smrg  -version | --version | --versio | --versi | --vers | -V)
114376910425Smrg    ac_init_version=: ;;
114476910425Smrg
114576910425Smrg  -with-* | --with-*)
1146db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
114776910425Smrg    # Reject names that are not valid shell variable names.
1148db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149a67f45c3Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1150db17cd6dSmrg    ac_useropt_orig=$ac_useropt
1151a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152db17cd6dSmrg    case $ac_user_opts in
1153db17cd6dSmrg      *"
1154db17cd6dSmrg"with_$ac_useropt"
1155db17cd6dSmrg"*) ;;
1156db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157db17cd6dSmrg	 ac_unrecognized_sep=', ';;
115876910425Smrg    esac
1159db17cd6dSmrg    eval with_$ac_useropt=\$ac_optarg ;;
116076910425Smrg
116176910425Smrg  -without-* | --without-*)
1162db17cd6dSmrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
116376910425Smrg    # Reject names that are not valid shell variable names.
1164db17cd6dSmrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165a67f45c3Smrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
1166db17cd6dSmrg    ac_useropt_orig=$ac_useropt
1167a67f45c3Smrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168db17cd6dSmrg    case $ac_user_opts in
1169db17cd6dSmrg      *"
1170db17cd6dSmrg"with_$ac_useropt"
1171db17cd6dSmrg"*) ;;
1172db17cd6dSmrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173db17cd6dSmrg	 ac_unrecognized_sep=', ';;
1174db17cd6dSmrg    esac
1175db17cd6dSmrg    eval with_$ac_useropt=no ;;
117676910425Smrg
117776910425Smrg  --x)
117876910425Smrg    # Obsolete; use --with-x.
117976910425Smrg    with_x=yes ;;
118076910425Smrg
118176910425Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
118276910425Smrg  | --x-incl | --x-inc | --x-in | --x-i)
118376910425Smrg    ac_prev=x_includes ;;
118476910425Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
118576910425Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
118676910425Smrg    x_includes=$ac_optarg ;;
118776910425Smrg
118876910425Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
118976910425Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
119076910425Smrg    ac_prev=x_libraries ;;
119176910425Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
119276910425Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
119376910425Smrg    x_libraries=$ac_optarg ;;
119476910425Smrg
1195482df631Smrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1196482df631SmrgTry \`$0 --help' for more information"
119776910425Smrg    ;;
119876910425Smrg
119976910425Smrg  *=*)
120076910425Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
120176910425Smrg    # Reject names that are not valid shell variable names.
1202482df631Smrg    case $ac_envvar in #(
1203482df631Smrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
1204482df631Smrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1205482df631Smrg    esac
1206db17cd6dSmrg    eval $ac_envvar=\$ac_optarg
120776910425Smrg    export $ac_envvar ;;
120876910425Smrg
120976910425Smrg  *)
121076910425Smrg    # FIXME: should be removed in autoconf 3.0.
1211a67f45c3Smrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
121276910425Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213a67f45c3Smrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1214482df631Smrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
121576910425Smrg    ;;
121676910425Smrg
121776910425Smrg  esac
121876910425Smrgdone
121976910425Smrg
122076910425Smrgif test -n "$ac_prev"; then
122176910425Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222482df631Smrg  as_fn_error $? "missing argument to $ac_option"
122376910425Smrgfi
122476910425Smrg
1225db17cd6dSmrgif test -n "$ac_unrecognized_opts"; then
1226db17cd6dSmrg  case $enable_option_checking in
1227db17cd6dSmrg    no) ;;
1228482df631Smrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229a67f45c3Smrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
123076910425Smrg  esac
1231db17cd6dSmrgfi
123276910425Smrg
1233db17cd6dSmrg# Check all directory arguments for consistency.
1234db17cd6dSmrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235db17cd6dSmrg		datadir sysconfdir sharedstatedir localstatedir includedir \
1236db17cd6dSmrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237a67f45c3Smrg		libdir localedir mandir runstatedir
123876910425Smrgdo
1239db17cd6dSmrg  eval ac_val=\$$ac_var
1240db17cd6dSmrg  # Remove trailing slashes.
124176910425Smrg  case $ac_val in
1242db17cd6dSmrg    */ )
1243db17cd6dSmrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244db17cd6dSmrg      eval $ac_var=\$ac_val;;
1245db17cd6dSmrg  esac
1246db17cd6dSmrg  # Be sure to have absolute directory names.
1247db17cd6dSmrg  case $ac_val in
1248db17cd6dSmrg    [\\/$]* | ?:[\\/]* )  continue;;
1249db17cd6dSmrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
125076910425Smrg  esac
1251482df631Smrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
125276910425Smrgdone
125376910425Smrg
125476910425Smrg# There might be people who depend on the old broken behavior: `$host'
125576910425Smrg# used to hold the argument of --host etc.
125676910425Smrg# FIXME: To remove some day.
125776910425Smrgbuild=$build_alias
125876910425Smrghost=$host_alias
125976910425Smrgtarget=$target_alias
126076910425Smrg
126176910425Smrg# FIXME: To remove some day.
126276910425Smrgif test "x$host_alias" != x; then
126376910425Smrg  if test "x$build_alias" = x; then
126476910425Smrg    cross_compiling=maybe
126576910425Smrg  elif test "x$build_alias" != "x$host_alias"; then
126676910425Smrg    cross_compiling=yes
126776910425Smrg  fi
126876910425Smrgfi
126976910425Smrg
127076910425Smrgac_tool_prefix=
127176910425Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
127276910425Smrg
127376910425Smrgtest "$silent" = yes && exec 6>/dev/null
127476910425Smrg
127576910425Smrg
1276db17cd6dSmrgac_pwd=`pwd` && test -n "$ac_pwd" &&
1277db17cd6dSmrgac_ls_di=`ls -di .` &&
1278db17cd6dSmrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279482df631Smrg  as_fn_error $? "working directory cannot be determined"
1280db17cd6dSmrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281482df631Smrg  as_fn_error $? "pwd does not report name of working directory"
1282db17cd6dSmrg
1283db17cd6dSmrg
1284db17cd6dSmrg# Find the source files, if location was not specified.
1285db17cd6dSmrgif test -z "$srcdir"; then
1286db17cd6dSmrg  ac_srcdir_defaulted=yes
1287db17cd6dSmrg  # Try the directory containing this script, then the parent directory.
1288db17cd6dSmrg  ac_confdir=`$as_dirname -- "$as_myself" ||
1289db17cd6dSmrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290db17cd6dSmrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
1291db17cd6dSmrg	 X"$as_myself" : 'X\(//\)$' \| \
1292db17cd6dSmrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293a67f45c3Smrgprintf "%s\n" X"$as_myself" |
1294db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295db17cd6dSmrg	    s//\1/
1296db17cd6dSmrg	    q
1297db17cd6dSmrg	  }
1298db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
1299db17cd6dSmrg	    s//\1/
1300db17cd6dSmrg	    q
1301db17cd6dSmrg	  }
1302db17cd6dSmrg	  /^X\(\/\/\)$/{
1303db17cd6dSmrg	    s//\1/
1304db17cd6dSmrg	    q
1305db17cd6dSmrg	  }
1306db17cd6dSmrg	  /^X\(\/\).*/{
1307db17cd6dSmrg	    s//\1/
1308db17cd6dSmrg	    q
1309db17cd6dSmrg	  }
1310db17cd6dSmrg	  s/.*/./; q'`
131176910425Smrg  srcdir=$ac_confdir
1312db17cd6dSmrg  if test ! -r "$srcdir/$ac_unique_file"; then
131376910425Smrg    srcdir=..
131476910425Smrg  fi
131576910425Smrgelse
131676910425Smrg  ac_srcdir_defaulted=no
131776910425Smrgfi
1318db17cd6dSmrgif test ! -r "$srcdir/$ac_unique_file"; then
1319db17cd6dSmrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320482df631Smrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
132176910425Smrgfi
1322db17cd6dSmrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323db17cd6dSmrgac_abs_confdir=`(
1324482df631Smrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325db17cd6dSmrg	pwd)`
1326db17cd6dSmrg# When building in place, set srcdir=.
1327db17cd6dSmrgif test "$ac_abs_confdir" = "$ac_pwd"; then
1328db17cd6dSmrg  srcdir=.
1329db17cd6dSmrgfi
1330db17cd6dSmrg# Remove unnecessary trailing slashes from srcdir.
1331db17cd6dSmrg# Double slashes in file names in object file debugging info
1332db17cd6dSmrg# mess up M-x gdb in Emacs.
1333db17cd6dSmrgcase $srcdir in
1334db17cd6dSmrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335db17cd6dSmrgesac
1336db17cd6dSmrgfor ac_var in $ac_precious_vars; do
1337db17cd6dSmrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338db17cd6dSmrg  eval ac_env_${ac_var}_value=\$${ac_var}
1339db17cd6dSmrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340db17cd6dSmrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341db17cd6dSmrgdone
134276910425Smrg
134376910425Smrg#
134476910425Smrg# Report the --help message.
134576910425Smrg#
134676910425Smrgif test "$ac_init_help" = "long"; then
134776910425Smrg  # Omit some internal or obsolete options to make the list less imposing.
134876910425Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
134976910425Smrg  cat <<_ACEOF
1350a67f45c3Smrg\`configure' configures xkbevd 1.1.5 to adapt to many kinds of systems.
135176910425Smrg
135276910425SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
135376910425Smrg
135476910425SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
135576910425SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
135676910425Smrg
135776910425SmrgDefaults for the options are specified in brackets.
135876910425Smrg
135976910425SmrgConfiguration:
136076910425Smrg  -h, --help              display this help and exit
136176910425Smrg      --help=short        display options specific to this package
136276910425Smrg      --help=recursive    display the short help of all the included packages
136376910425Smrg  -V, --version           display version information and exit
1364482df631Smrg  -q, --quiet, --silent   do not print \`checking ...' messages
136576910425Smrg      --cache-file=FILE   cache test results in FILE [disabled]
136676910425Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
136776910425Smrg  -n, --no-create         do not create output files
136876910425Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
136976910425Smrg
137076910425SmrgInstallation directories:
137176910425Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
1372db17cd6dSmrg                          [$ac_default_prefix]
137376910425Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374db17cd6dSmrg                          [PREFIX]
137576910425Smrg
137676910425SmrgBy default, \`make install' will install all the files in
137776910425Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
137876910425Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
137976910425Smrgfor instance \`--prefix=\$HOME'.
138076910425Smrg
138176910425SmrgFor better control, use the options below.
138276910425Smrg
138376910425SmrgFine tuning of the installation directories:
1384db17cd6dSmrg  --bindir=DIR            user executables [EPREFIX/bin]
1385db17cd6dSmrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386db17cd6dSmrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
1387db17cd6dSmrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388db17cd6dSmrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389db17cd6dSmrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390a67f45c3Smrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1391db17cd6dSmrg  --libdir=DIR            object code libraries [EPREFIX/lib]
1392db17cd6dSmrg  --includedir=DIR        C header files [PREFIX/include]
1393db17cd6dSmrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1394db17cd6dSmrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1395db17cd6dSmrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1396db17cd6dSmrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
1397db17cd6dSmrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1398db17cd6dSmrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
1399db17cd6dSmrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/xkbevd]
1400db17cd6dSmrg  --htmldir=DIR           html documentation [DOCDIR]
1401db17cd6dSmrg  --dvidir=DIR            dvi documentation [DOCDIR]
1402db17cd6dSmrg  --pdfdir=DIR            pdf documentation [DOCDIR]
1403db17cd6dSmrg  --psdir=DIR             ps documentation [DOCDIR]
140476910425Smrg_ACEOF
140576910425Smrg
140676910425Smrg  cat <<\_ACEOF
140776910425Smrg
140876910425SmrgProgram names:
140976910425Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
141076910425Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
141176910425Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
141276910425Smrg
141376910425SmrgSystem types:
141476910425Smrg  --build=BUILD     configure for building on BUILD [guessed]
141576910425Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
141676910425Smrg_ACEOF
141776910425Smrgfi
141876910425Smrg
141976910425Smrgif test -n "$ac_init_help"; then
142076910425Smrg  case $ac_init_help in
1421a67f45c3Smrg     short | recursive ) echo "Configuration of xkbevd 1.1.5:";;
142276910425Smrg   esac
142376910425Smrg  cat <<\_ACEOF
142476910425Smrg
142576910425SmrgOptional Features:
1426db17cd6dSmrg  --disable-option-checking  ignore unrecognized --enable/--with options
142776910425Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
142876910425Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
14299ff100acSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
14309ff100acSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
14319ff100acSmrg  --enable-dependency-tracking
14329ff100acSmrg                          do not reject slow dependency extractors
14339ff100acSmrg  --disable-dependency-tracking
14349ff100acSmrg                          speeds up one-time build
14359ff100acSmrg  --disable-selective-werror
14369ff100acSmrg                          Turn off selective compiler errors. (default:
14379ff100acSmrg                          enabled)
1438db17cd6dSmrg  --enable-strict-compilation
1439db17cd6dSmrg                          Enable all warnings from compiler and make them
1440db17cd6dSmrg                          errors (default: disabled)
144176910425Smrg
144276910425SmrgSome influential environment variables:
144376910425Smrg  CC          C compiler command
144476910425Smrg  CFLAGS      C compiler flags
144576910425Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
144676910425Smrg              nonstandard directory <lib dir>
1447db17cd6dSmrg  LIBS        libraries to pass to the linker, e.g. -l<library>
1448482df631Smrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449db17cd6dSmrg              you have headers in a nonstandard directory <include dir>
145076910425Smrg  PKG_CONFIG  path to pkg-config utility
1451a67f45c3Smrg  PKG_CONFIG_PATH
1452a67f45c3Smrg              directories to add to pkg-config's search path
1453a67f45c3Smrg  PKG_CONFIG_LIBDIR
1454a67f45c3Smrg              path overriding pkg-config's built-in search path
14559ff100acSmrg  YACC        The `Yet Another Compiler Compiler' implementation to use.
14569ff100acSmrg              Defaults to the first program found out of: `bison -y', `byacc',
14579ff100acSmrg              `yacc'.
14589ff100acSmrg  YFLAGS      The list of arguments that will be passed by default to $YACC.
14599ff100acSmrg              This script will default YFLAGS to the empty string to avoid a
14609ff100acSmrg              default value of `-d' given by some make applications.
146176910425Smrg  XKBEVD_CFLAGS
146276910425Smrg              C compiler flags for XKBEVD, overriding pkg-config
146376910425Smrg  XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
146476910425Smrg
146576910425SmrgUse these variables to override the choices made by `configure' or to help
146676910425Smrgit to find libraries and programs with nonstandard names/locations.
146776910425Smrg
1468a67f45c3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>.
146976910425Smrg_ACEOF
1470db17cd6dSmrgac_status=$?
147176910425Smrgfi
147276910425Smrg
147376910425Smrgif test "$ac_init_help" = "recursive"; then
147476910425Smrg  # If there are subdirs, report their specific --help.
147576910425Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476db17cd6dSmrg    test -d "$ac_dir" ||
1477db17cd6dSmrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478db17cd6dSmrg      continue
147976910425Smrg    ac_builddir=.
148076910425Smrg
1481db17cd6dSmrgcase "$ac_dir" in
1482db17cd6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483db17cd6dSmrg*)
1484a67f45c3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1485db17cd6dSmrg  # A ".." for each directory in $ac_dir_suffix.
1486a67f45c3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487db17cd6dSmrg  case $ac_top_builddir_sub in
1488db17cd6dSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489db17cd6dSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490db17cd6dSmrg  esac ;;
1491db17cd6dSmrgesac
1492db17cd6dSmrgac_abs_top_builddir=$ac_pwd
1493db17cd6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1494db17cd6dSmrg# for backward compatibility:
1495db17cd6dSmrgac_top_builddir=$ac_top_build_prefix
149676910425Smrg
149776910425Smrgcase $srcdir in
1498db17cd6dSmrg  .)  # We are building in place.
149976910425Smrg    ac_srcdir=.
1500db17cd6dSmrg    ac_top_srcdir=$ac_top_builddir_sub
1501db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd ;;
1502db17cd6dSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
150376910425Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1504db17cd6dSmrg    ac_top_srcdir=$srcdir
1505db17cd6dSmrg    ac_abs_top_srcdir=$srcdir ;;
1506db17cd6dSmrg  *) # Relative name.
1507db17cd6dSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508db17cd6dSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1509db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
151076910425Smrgesac
1511db17cd6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512db17cd6dSmrg
1513db17cd6dSmrg    cd "$ac_dir" || { ac_status=$?; continue; }
1514a67f45c3Smrg    # Check for configure.gnu first; this name is used for a wrapper for
1515a67f45c3Smrg    # Metaconfig's "Configure" on case-insensitive file systems.
1516db17cd6dSmrg    if test -f "$ac_srcdir/configure.gnu"; then
1517db17cd6dSmrg      echo &&
1518db17cd6dSmrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519db17cd6dSmrg    elif test -f "$ac_srcdir/configure"; then
1520db17cd6dSmrg      echo &&
1521db17cd6dSmrg      $SHELL "$ac_srcdir/configure" --help=recursive
152276910425Smrg    else
1523a67f45c3Smrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524db17cd6dSmrg    fi || ac_status=$?
1525db17cd6dSmrg    cd "$ac_pwd" || { ac_status=$?; break; }
152676910425Smrg  done
152776910425Smrgfi
152876910425Smrg
1529db17cd6dSmrgtest -n "$ac_init_help" && exit $ac_status
153076910425Smrgif $ac_init_version; then
153176910425Smrg  cat <<\_ACEOF
1532a67f45c3Smrgxkbevd configure 1.1.5
1533a67f45c3Smrggenerated by GNU Autoconf 2.71
153476910425Smrg
1535a67f45c3SmrgCopyright (C) 2021 Free Software Foundation, Inc.
153676910425SmrgThis configure script is free software; the Free Software Foundation
153776910425Smrggives unlimited permission to copy, distribute and modify it.
153876910425Smrg_ACEOF
1539db17cd6dSmrg  exit
154076910425Smrgfi
154176910425Smrg
1542482df631Smrg## ------------------------ ##
1543482df631Smrg## Autoconf initialization. ##
1544482df631Smrg## ------------------------ ##
154576910425Smrg
1546482df631Smrg# ac_fn_c_try_compile LINENO
1547482df631Smrg# --------------------------
1548482df631Smrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
1549482df631Smrgac_fn_c_try_compile ()
155076910425Smrg{
1551482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552a67f45c3Smrg  rm -f conftest.$ac_objext conftest.beam
1553482df631Smrg  if { { ac_try="$ac_compile"
1554482df631Smrgcase "(($ac_try" in
1555482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556482df631Smrg  *) ac_try_echo=$ac_try;;
1557482df631Smrgesac
1558482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
1560482df631Smrg  (eval "$ac_compile") 2>conftest.err
1561482df631Smrg  ac_status=$?
1562482df631Smrg  if test -s conftest.err; then
1563482df631Smrg    grep -v '^ *+' conftest.err >conftest.er1
1564482df631Smrg    cat conftest.er1 >&5
1565482df631Smrg    mv -f conftest.er1 conftest.err
1566482df631Smrg  fi
1567a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568482df631Smrg  test $ac_status = 0; } && {
1569482df631Smrg	 test -z "$ac_c_werror_flag" ||
1570482df631Smrg	 test ! -s conftest.err
1571a67f45c3Smrg       } && test -s conftest.$ac_objext
1572a67f45c3Smrgthen :
1573482df631Smrg  ac_retval=0
1574a67f45c3Smrgelse $as_nop
1575a67f45c3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
1576482df631Smrgsed 's/^/| /' conftest.$ac_ext >&5
157776910425Smrg
1578482df631Smrg	ac_retval=1
1579482df631Smrgfi
1580482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581482df631Smrg  as_fn_set_status $ac_retval
1582482df631Smrg
1583482df631Smrg} # ac_fn_c_try_compile
1584482df631Smrg
1585a67f45c3Smrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1586a67f45c3Smrg# ------------------------------------------------------------------
1587482df631Smrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1588a67f45c3Smrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1589a67f45c3Smrgac_fn_check_decl ()
1590482df631Smrg{
1591482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592482df631Smrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1593a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1594a67f45c3Smrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1595a67f45c3Smrgif eval test \${$3+y}
1596a67f45c3Smrgthen :
1597a67f45c3Smrg  printf %s "(cached) " >&6
1598a67f45c3Smrgelse $as_nop
1599482df631Smrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1600a67f45c3Smrg  eval ac_save_FLAGS=\$$6
1601a67f45c3Smrg  as_fn_append $6 " $5"
1602482df631Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603482df631Smrg/* end confdefs.h.  */
1604482df631Smrg$4
1605482df631Smrgint
1606a67f45c3Smrgmain (void)
1607482df631Smrg{
1608482df631Smrg#ifndef $as_decl_name
1609482df631Smrg#ifdef __cplusplus
1610482df631Smrg  (void) $as_decl_use;
1611482df631Smrg#else
1612482df631Smrg  (void) $as_decl_name;
1613482df631Smrg#endif
1614482df631Smrg#endif
1615482df631Smrg
1616482df631Smrg  ;
1617482df631Smrg  return 0;
1618482df631Smrg}
1619482df631Smrg_ACEOF
1620a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
1621a67f45c3Smrgthen :
1622482df631Smrg  eval "$3=yes"
1623a67f45c3Smrgelse $as_nop
1624482df631Smrg  eval "$3=no"
1625482df631Smrgfi
1626a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1627a67f45c3Smrg  eval $6=\$ac_save_FLAGS
1628482df631Smrg
1629482df631Smrgfi
1630a67f45c3Smrgeval ac_res=\$$3
1631a67f45c3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632a67f45c3Smrgprintf "%s\n" "$ac_res" >&6; }
1633482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634482df631Smrg
1635a67f45c3Smrg} # ac_fn_check_decl
1636482df631Smrg
1637482df631Smrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638482df631Smrg# -------------------------------------------------------
1639482df631Smrg# Tests whether HEADER exists and can be compiled using the include files in
1640482df631Smrg# INCLUDES, setting the cache variable VAR accordingly.
1641482df631Smrgac_fn_c_check_header_compile ()
1642482df631Smrg{
1643482df631Smrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645a67f45c3Smrgprintf %s "checking for $2... " >&6; }
1646a67f45c3Smrgif eval test \${$3+y}
1647a67f45c3Smrgthen :
1648a67f45c3Smrg  printf %s "(cached) " >&6
1649a67f45c3Smrgelse $as_nop
1650482df631Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651482df631Smrg/* end confdefs.h.  */
1652482df631Smrg$4
1653482df631Smrg#include <$2>
1654482df631Smrg_ACEOF
1655a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
1656a67f45c3Smrgthen :
1657482df631Smrg  eval "$3=yes"
1658a67f45c3Smrgelse $as_nop
1659482df631Smrg  eval "$3=no"
1660482df631Smrgfi
1661a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1662482df631Smrgfi
1663482df631Smrgeval ac_res=\$$3
1664a67f45c3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665a67f45c3Smrgprintf "%s\n" "$ac_res" >&6; }
1666482df631Smrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667482df631Smrg
1668482df631Smrg} # ac_fn_c_check_header_compile
16699ff100acSmrg
16709ff100acSmrg# ac_fn_c_try_link LINENO
16719ff100acSmrg# -----------------------
16729ff100acSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
16739ff100acSmrgac_fn_c_try_link ()
16749ff100acSmrg{
16759ff100acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676a67f45c3Smrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
16779ff100acSmrg  if { { ac_try="$ac_link"
16789ff100acSmrgcase "(($ac_try" in
16799ff100acSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809ff100acSmrg  *) ac_try_echo=$ac_try;;
16819ff100acSmrgesac
16829ff100acSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
16849ff100acSmrg  (eval "$ac_link") 2>conftest.err
16859ff100acSmrg  ac_status=$?
16869ff100acSmrg  if test -s conftest.err; then
16879ff100acSmrg    grep -v '^ *+' conftest.err >conftest.er1
16889ff100acSmrg    cat conftest.er1 >&5
16899ff100acSmrg    mv -f conftest.er1 conftest.err
16909ff100acSmrg  fi
1691a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16929ff100acSmrg  test $ac_status = 0; } && {
16939ff100acSmrg	 test -z "$ac_c_werror_flag" ||
16949ff100acSmrg	 test ! -s conftest.err
16959ff100acSmrg       } && test -s conftest$ac_exeext && {
16969ff100acSmrg	 test "$cross_compiling" = yes ||
16979ff100acSmrg	 test -x conftest$ac_exeext
1698a67f45c3Smrg       }
1699a67f45c3Smrgthen :
17009ff100acSmrg  ac_retval=0
1701a67f45c3Smrgelse $as_nop
1702a67f45c3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
17039ff100acSmrgsed 's/^/| /' conftest.$ac_ext >&5
17049ff100acSmrg
17059ff100acSmrg	ac_retval=1
17069ff100acSmrgfi
17079ff100acSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
17089ff100acSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
17099ff100acSmrg  # interfere with the next link command; also delete a directory that is
17109ff100acSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
17119ff100acSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
17129ff100acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17139ff100acSmrg  as_fn_set_status $ac_retval
17149ff100acSmrg
17159ff100acSmrg} # ac_fn_c_try_link
17169ff100acSmrg
17179ff100acSmrg# ac_fn_c_check_func LINENO FUNC VAR
17189ff100acSmrg# ----------------------------------
17199ff100acSmrg# Tests whether FUNC exists, setting the cache variable VAR accordingly
17209ff100acSmrgac_fn_c_check_func ()
17219ff100acSmrg{
17229ff100acSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724a67f45c3Smrgprintf %s "checking for $2... " >&6; }
1725a67f45c3Smrgif eval test \${$3+y}
1726a67f45c3Smrgthen :
1727a67f45c3Smrg  printf %s "(cached) " >&6
1728a67f45c3Smrgelse $as_nop
17299ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309ff100acSmrg/* end confdefs.h.  */
17319ff100acSmrg/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17329ff100acSmrg   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17339ff100acSmrg#define $2 innocuous_$2
17349ff100acSmrg
17359ff100acSmrg/* System header to define __stub macros and hopefully few prototypes,
1736a67f45c3Smrg   which can conflict with char $2 (); below.  */
17379ff100acSmrg
1738a67f45c3Smrg#include <limits.h>
17399ff100acSmrg#undef $2
17409ff100acSmrg
17419ff100acSmrg/* Override any GCC internal prototype to avoid an error.
17429ff100acSmrg   Use char because int might match the return type of a GCC
17439ff100acSmrg   builtin and then its argument prototype would still apply.  */
17449ff100acSmrg#ifdef __cplusplus
17459ff100acSmrgextern "C"
17469ff100acSmrg#endif
17479ff100acSmrgchar $2 ();
17489ff100acSmrg/* The GNU C library defines this for functions which it implements
17499ff100acSmrg    to always fail with ENOSYS.  Some functions are actually named
17509ff100acSmrg    something starting with __ and the normal name is an alias.  */
17519ff100acSmrg#if defined __stub_$2 || defined __stub___$2
17529ff100acSmrgchoke me
17539ff100acSmrg#endif
17549ff100acSmrg
17559ff100acSmrgint
1756a67f45c3Smrgmain (void)
17579ff100acSmrg{
17589ff100acSmrgreturn $2 ();
17599ff100acSmrg  ;
17609ff100acSmrg  return 0;
17619ff100acSmrg}
17629ff100acSmrg_ACEOF
1763a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
1764a67f45c3Smrgthen :
17659ff100acSmrg  eval "$3=yes"
1766a67f45c3Smrgelse $as_nop
17679ff100acSmrg  eval "$3=no"
17689ff100acSmrgfi
1769a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
17709ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
17719ff100acSmrgfi
17729ff100acSmrgeval ac_res=\$$3
1773a67f45c3Smrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774a67f45c3Smrgprintf "%s\n" "$ac_res" >&6; }
17759ff100acSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17769ff100acSmrg
17779ff100acSmrg} # ac_fn_c_check_func
1778a67f45c3Smrgac_configure_args_raw=
1779a67f45c3Smrgfor ac_arg
1780a67f45c3Smrgdo
1781a67f45c3Smrg  case $ac_arg in
1782a67f45c3Smrg  *\'*)
1783a67f45c3Smrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784a67f45c3Smrg  esac
1785a67f45c3Smrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1786a67f45c3Smrgdone
1787a67f45c3Smrg
1788a67f45c3Smrgcase $ac_configure_args_raw in
1789a67f45c3Smrg  *$as_nl*)
1790a67f45c3Smrg    ac_safe_unquote= ;;
1791a67f45c3Smrg  *)
1792a67f45c3Smrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1793a67f45c3Smrg    ac_unsafe_a="$ac_unsafe_z#~"
1794a67f45c3Smrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1795a67f45c3Smrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1796a67f45c3Smrgesac
1797a67f45c3Smrg
1798482df631Smrgcat >config.log <<_ACEOF
1799482df631SmrgThis file contains any messages produced by compilers while
1800482df631Smrgrunning configure, to aid debugging if configure makes a mistake.
1801482df631Smrg
1802a67f45c3SmrgIt was created by xkbevd $as_me 1.1.5, which was
1803a67f45c3Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
1804482df631Smrg
1805a67f45c3Smrg  $ $0$ac_configure_args_raw
1806482df631Smrg
1807482df631Smrg_ACEOF
1808482df631Smrgexec 5>>config.log
1809482df631Smrg{
1810482df631Smrgcat <<_ASUNAME
1811482df631Smrg## --------- ##
1812482df631Smrg## Platform. ##
1813482df631Smrg## --------- ##
1814482df631Smrg
1815482df631Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816482df631Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
1817482df631Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
1818482df631Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
1819482df631Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
182076910425Smrg
182176910425Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
182276910425Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
182376910425Smrg
182476910425Smrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
182576910425Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
182676910425Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827db17cd6dSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
182876910425Smrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
182976910425Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
183076910425Smrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
183176910425Smrg
183276910425Smrg_ASUNAME
183376910425Smrg
183476910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183576910425Smrgfor as_dir in $PATH
183676910425Smrgdo
183776910425Smrg  IFS=$as_save_IFS
1838a67f45c3Smrg  case $as_dir in #(((
1839a67f45c3Smrg    '') as_dir=./ ;;
1840a67f45c3Smrg    */) ;;
1841a67f45c3Smrg    *) as_dir=$as_dir/ ;;
1842a67f45c3Smrg  esac
1843a67f45c3Smrg    printf "%s\n" "PATH: $as_dir"
1844482df631Smrg  done
1845db17cd6dSmrgIFS=$as_save_IFS
184676910425Smrg
184776910425Smrg} >&5
184876910425Smrg
184976910425Smrgcat >&5 <<_ACEOF
185076910425Smrg
185176910425Smrg
185276910425Smrg## ----------- ##
185376910425Smrg## Core tests. ##
185476910425Smrg## ----------- ##
185576910425Smrg
185676910425Smrg_ACEOF
185776910425Smrg
185876910425Smrg
185976910425Smrg# Keep a trace of the command line.
186076910425Smrg# Strip out --no-create and --no-recursion so they do not pile up.
186176910425Smrg# Strip out --silent because we don't want to record it for future runs.
186276910425Smrg# Also quote any args containing shell meta-characters.
186376910425Smrg# Make two passes to allow for proper duplicate-argument suppression.
186476910425Smrgac_configure_args=
186576910425Smrgac_configure_args0=
186676910425Smrgac_configure_args1=
186776910425Smrgac_must_keep_next=false
186876910425Smrgfor ac_pass in 1 2
186976910425Smrgdo
187076910425Smrg  for ac_arg
187176910425Smrg  do
187276910425Smrg    case $ac_arg in
187376910425Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
187476910425Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
187576910425Smrg    | -silent | --silent | --silen | --sile | --sil)
187676910425Smrg      continue ;;
1877db17cd6dSmrg    *\'*)
1878a67f45c3Smrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
187976910425Smrg    esac
188076910425Smrg    case $ac_pass in
1881482df631Smrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
188276910425Smrg    2)
1883482df631Smrg      as_fn_append ac_configure_args1 " '$ac_arg'"
188476910425Smrg      if test $ac_must_keep_next = true; then
188576910425Smrg	ac_must_keep_next=false # Got value, back to normal.
188676910425Smrg      else
188776910425Smrg	case $ac_arg in
188876910425Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
188976910425Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
189076910425Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
189176910425Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
189276910425Smrg	    case "$ac_configure_args0 " in
189376910425Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
189476910425Smrg	    esac
189576910425Smrg	    ;;
189676910425Smrg	  -* ) ac_must_keep_next=true ;;
189776910425Smrg	esac
189876910425Smrg      fi
1899482df631Smrg      as_fn_append ac_configure_args " '$ac_arg'"
190076910425Smrg      ;;
190176910425Smrg    esac
190276910425Smrg  done
190376910425Smrgdone
1904482df631Smrg{ ac_configure_args0=; unset ac_configure_args0;}
1905482df631Smrg{ ac_configure_args1=; unset ac_configure_args1;}
190676910425Smrg
190776910425Smrg# When interrupted or exit'd, cleanup temporary files, and complete
190876910425Smrg# config.log.  We remove comments because anyway the quotes in there
190976910425Smrg# would cause problems or look ugly.
1910db17cd6dSmrg# WARNING: Use '\'' to represent an apostrophe within the trap.
1911db17cd6dSmrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
191276910425Smrgtrap 'exit_status=$?
1913a67f45c3Smrg  # Sanitize IFS.
1914a67f45c3Smrg  IFS=" ""	$as_nl"
191576910425Smrg  # Save into config.log some information that might help in debugging.
191676910425Smrg  {
191776910425Smrg    echo
191876910425Smrg
1919a67f45c3Smrg    printf "%s\n" "## ---------------- ##
192076910425Smrg## Cache variables. ##
1921482df631Smrg## ---------------- ##"
192276910425Smrg    echo
192376910425Smrg    # The following way of writing the cache mishandles newlines in values,
1924db17cd6dSmrg(
1925db17cd6dSmrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926db17cd6dSmrg    eval ac_val=\$$ac_var
1927db17cd6dSmrg    case $ac_val in #(
1928db17cd6dSmrg    *${as_nl}*)
1929db17cd6dSmrg      case $ac_var in #(
1930a67f45c3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932db17cd6dSmrg      esac
1933db17cd6dSmrg      case $ac_var in #(
1934db17cd6dSmrg      _ | IFS | as_nl) ;; #(
1935db17cd6dSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936482df631Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
1937db17cd6dSmrg      esac ;;
1938db17cd6dSmrg    esac
1939db17cd6dSmrg  done
194076910425Smrg  (set) 2>&1 |
1941db17cd6dSmrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942db17cd6dSmrg    *${as_nl}ac_space=\ *)
194376910425Smrg      sed -n \
1944db17cd6dSmrg	"s/'\''/'\''\\\\'\'''\''/g;
1945db17cd6dSmrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946db17cd6dSmrg      ;; #(
194776910425Smrg    *)
1948db17cd6dSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
194976910425Smrg      ;;
1950db17cd6dSmrg    esac |
1951db17cd6dSmrg    sort
1952db17cd6dSmrg)
195376910425Smrg    echo
195476910425Smrg
1955a67f45c3Smrg    printf "%s\n" "## ----------------- ##
195676910425Smrg## Output variables. ##
1957482df631Smrg## ----------------- ##"
195876910425Smrg    echo
195976910425Smrg    for ac_var in $ac_subst_vars
196076910425Smrg    do
1961db17cd6dSmrg      eval ac_val=\$$ac_var
1962db17cd6dSmrg      case $ac_val in
1963a67f45c3Smrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964db17cd6dSmrg      esac
1965a67f45c3Smrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
196676910425Smrg    done | sort
196776910425Smrg    echo
196876910425Smrg
196976910425Smrg    if test -n "$ac_subst_files"; then
1970a67f45c3Smrg      printf "%s\n" "## ------------------- ##
1971db17cd6dSmrg## File substitutions. ##
1972482df631Smrg## ------------------- ##"
197376910425Smrg      echo
197476910425Smrg      for ac_var in $ac_subst_files
197576910425Smrg      do
1976db17cd6dSmrg	eval ac_val=\$$ac_var
1977db17cd6dSmrg	case $ac_val in
1978a67f45c3Smrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979db17cd6dSmrg	esac
1980a67f45c3Smrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
198176910425Smrg      done | sort
198276910425Smrg      echo
198376910425Smrg    fi
198476910425Smrg
198576910425Smrg    if test -s confdefs.h; then
1986a67f45c3Smrg      printf "%s\n" "## ----------- ##
198776910425Smrg## confdefs.h. ##
1988482df631Smrg## ----------- ##"
198976910425Smrg      echo
1990db17cd6dSmrg      cat confdefs.h
199176910425Smrg      echo
199276910425Smrg    fi
199376910425Smrg    test "$ac_signal" != 0 &&
1994a67f45c3Smrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1995a67f45c3Smrg    printf "%s\n" "$as_me: exit $exit_status"
199676910425Smrg  } >&5
1997db17cd6dSmrg  rm -f core *.core core.conftest.* &&
1998db17cd6dSmrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
199976910425Smrg    exit $exit_status
2000db17cd6dSmrg' 0
200176910425Smrgfor ac_signal in 1 2 13 15; do
2002482df631Smrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
200376910425Smrgdone
200476910425Smrgac_signal=0
200576910425Smrg
200676910425Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
2007db17cd6dSmrgrm -f -r conftest* confdefs.h
200876910425Smrg
2009a67f45c3Smrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
2010482df631Smrg
201176910425Smrg# Predefined preprocessor variables.
201276910425Smrg
2013a67f45c3Smrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
201476910425Smrg
2015a67f45c3Smrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
201676910425Smrg
2017a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
201876910425Smrg
2019a67f45c3Smrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
202076910425Smrg
2021a67f45c3Smrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
202276910425Smrg
2023a67f45c3Smrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2024482df631Smrg
202576910425Smrg
202676910425Smrg# Let the site file select an alternate cache file if it wants to.
2027db17cd6dSmrg# Prefer an explicitly selected file to automatically selected ones.
2028db17cd6dSmrgif test -n "$CONFIG_SITE"; then
2029a67f45c3Smrg  ac_site_files="$CONFIG_SITE"
2030db17cd6dSmrgelif test "x$prefix" != xNONE; then
2031a67f45c3Smrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2032db17cd6dSmrgelse
2033a67f45c3Smrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
203476910425Smrgfi
2035a67f45c3Smrg
2036a67f45c3Smrgfor ac_site_file in $ac_site_files
2037db17cd6dSmrgdo
2038a67f45c3Smrg  case $ac_site_file in #(
2039a67f45c3Smrg  */*) :
2040a67f45c3Smrg     ;; #(
2041a67f45c3Smrg  *) :
2042a67f45c3Smrg    ac_site_file=./$ac_site_file ;;
2043a67f45c3Smrgesac
2044a67f45c3Smrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2045a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2046a67f45c3Smrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
204776910425Smrg    sed 's/^/| /' "$ac_site_file" >&5
2048482df631Smrg    . "$ac_site_file" \
2049a67f45c3Smrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2050a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2051482df631Smrgas_fn_error $? "failed to load site script $ac_site_file
2052482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
205376910425Smrg  fi
205476910425Smrgdone
205576910425Smrg
205676910425Smrgif test -r "$cache_file"; then
2057482df631Smrg  # Some versions of bash will fail to source /dev/null (special files
2058482df631Smrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2059482df631Smrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2060a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061a67f45c3Smrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
206276910425Smrg    case $cache_file in
2063db17cd6dSmrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064db17cd6dSmrg      *)                      . "./$cache_file";;
206576910425Smrg    esac
206676910425Smrg  fi
206776910425Smrgelse
2068a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069a67f45c3Smrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
207076910425Smrg  >$cache_file
207176910425Smrgfi
207276910425Smrg
2073a67f45c3Smrg# Test code for whether the C compiler supports C89 (global declarations)
2074a67f45c3Smrgac_c_conftest_c89_globals='
2075a67f45c3Smrg/* Does the compiler advertise C89 conformance?
2076a67f45c3Smrg   Do not test the value of __STDC__, because some compilers set it to 0
2077a67f45c3Smrg   while being otherwise adequately conformant. */
2078a67f45c3Smrg#if !defined __STDC__
2079a67f45c3Smrg# error "Compiler does not advertise C89 conformance"
2080a67f45c3Smrg#endif
208176910425Smrg
2082a67f45c3Smrg#include <stddef.h>
2083a67f45c3Smrg#include <stdarg.h>
2084a67f45c3Smrgstruct stat;
2085a67f45c3Smrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2086a67f45c3Smrgstruct buf { int x; };
2087a67f45c3Smrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2088a67f45c3Smrgstatic char *e (p, i)
2089a67f45c3Smrg     char **p;
2090a67f45c3Smrg     int i;
2091a67f45c3Smrg{
2092a67f45c3Smrg  return p[i];
2093a67f45c3Smrg}
2094a67f45c3Smrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2095a67f45c3Smrg{
2096a67f45c3Smrg  char *s;
2097a67f45c3Smrg  va_list v;
2098a67f45c3Smrg  va_start (v,p);
2099a67f45c3Smrg  s = g (p, va_arg (v,int));
2100a67f45c3Smrg  va_end (v);
2101a67f45c3Smrg  return s;
2102a67f45c3Smrg}
21039ff100acSmrg
2104a67f45c3Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2105a67f45c3Smrg   function prototypes and stuff, but not \xHH hex character constants.
2106a67f45c3Smrg   These do not provoke an error unfortunately, instead are silently treated
2107a67f45c3Smrg   as an "x".  The following induces an error, until -std is added to get
2108a67f45c3Smrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2109a67f45c3Smrg   array size at least.  It is necessary to write \x00 == 0 to get something
2110a67f45c3Smrg   that is true only with -std.  */
2111a67f45c3Smrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
21129ff100acSmrg
2113a67f45c3Smrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2114a67f45c3Smrg   inside strings and character constants.  */
2115a67f45c3Smrg#define FOO(x) '\''x'\''
2116a67f45c3Smrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
21179ff100acSmrg
2118a67f45c3Smrgint test (int i, double x);
2119a67f45c3Smrgstruct s1 {int (*f) (int a);};
2120a67f45c3Smrgstruct s2 {int (*f) (double a);};
2121a67f45c3Smrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2122a67f45c3Smrg               int, int);'
212376910425Smrg
2124a67f45c3Smrg# Test code for whether the C compiler supports C89 (body of main).
2125a67f45c3Smrgac_c_conftest_c89_main='
2126a67f45c3Smrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2127a67f45c3Smrg'
2128db17cd6dSmrg
2129a67f45c3Smrg# Test code for whether the C compiler supports C99 (global declarations)
2130a67f45c3Smrgac_c_conftest_c99_globals='
2131a67f45c3Smrg// Does the compiler advertise C99 conformance?
2132a67f45c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2133a67f45c3Smrg# error "Compiler does not advertise C99 conformance"
2134a67f45c3Smrg#endif
2135db17cd6dSmrg
2136a67f45c3Smrg#include <stdbool.h>
2137a67f45c3Smrgextern int puts (const char *);
2138a67f45c3Smrgextern int printf (const char *, ...);
2139a67f45c3Smrgextern int dprintf (int, const char *, ...);
2140a67f45c3Smrgextern void *malloc (size_t);
214176910425Smrg
2142a67f45c3Smrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2143a67f45c3Smrg// dprintf is used instead of fprintf to avoid needing to declare
2144a67f45c3Smrg// FILE and stderr.
2145a67f45c3Smrg#define debug(...) dprintf (2, __VA_ARGS__)
2146a67f45c3Smrg#define showlist(...) puts (#__VA_ARGS__)
2147a67f45c3Smrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2148a67f45c3Smrgstatic void
2149a67f45c3Smrgtest_varargs_macros (void)
2150a67f45c3Smrg{
2151a67f45c3Smrg  int x = 1234;
2152a67f45c3Smrg  int y = 5678;
2153a67f45c3Smrg  debug ("Flag");
2154a67f45c3Smrg  debug ("X = %d\n", x);
2155a67f45c3Smrg  showlist (The first, second, and third items.);
2156a67f45c3Smrg  report (x>y, "x is %d but y is %d", x, y);
2157a67f45c3Smrg}
2158a67f45c3Smrg
2159a67f45c3Smrg// Check long long types.
2160a67f45c3Smrg#define BIG64 18446744073709551615ull
2161a67f45c3Smrg#define BIG32 4294967295ul
2162a67f45c3Smrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2163a67f45c3Smrg#if !BIG_OK
2164a67f45c3Smrg  #error "your preprocessor is broken"
2165a67f45c3Smrg#endif
2166a67f45c3Smrg#if BIG_OK
2167a67f45c3Smrg#else
2168a67f45c3Smrg  #error "your preprocessor is broken"
2169a67f45c3Smrg#endif
2170a67f45c3Smrgstatic long long int bignum = -9223372036854775807LL;
2171a67f45c3Smrgstatic unsigned long long int ubignum = BIG64;
2172a67f45c3Smrg
2173a67f45c3Smrgstruct incomplete_array
2174a67f45c3Smrg{
2175a67f45c3Smrg  int datasize;
2176a67f45c3Smrg  double data[];
2177a67f45c3Smrg};
2178a67f45c3Smrg
2179a67f45c3Smrgstruct named_init {
2180a67f45c3Smrg  int number;
2181a67f45c3Smrg  const wchar_t *name;
2182a67f45c3Smrg  double average;
2183a67f45c3Smrg};
2184a67f45c3Smrg
2185a67f45c3Smrgtypedef const char *ccp;
2186a67f45c3Smrg
2187a67f45c3Smrgstatic inline int
2188a67f45c3Smrgtest_restrict (ccp restrict text)
2189a67f45c3Smrg{
2190a67f45c3Smrg  // See if C++-style comments work.
2191a67f45c3Smrg  // Iterate through items via the restricted pointer.
2192a67f45c3Smrg  // Also check for declarations in for loops.
2193a67f45c3Smrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2194a67f45c3Smrg    continue;
2195a67f45c3Smrg  return 0;
2196a67f45c3Smrg}
2197a67f45c3Smrg
2198a67f45c3Smrg// Check varargs and va_copy.
2199a67f45c3Smrgstatic bool
2200a67f45c3Smrgtest_varargs (const char *format, ...)
2201a67f45c3Smrg{
2202a67f45c3Smrg  va_list args;
2203a67f45c3Smrg  va_start (args, format);
2204a67f45c3Smrg  va_list args_copy;
2205a67f45c3Smrg  va_copy (args_copy, args);
2206a67f45c3Smrg
2207a67f45c3Smrg  const char *str = "";
2208a67f45c3Smrg  int number = 0;
2209a67f45c3Smrg  float fnumber = 0;
2210a67f45c3Smrg
2211a67f45c3Smrg  while (*format)
2212a67f45c3Smrg    {
2213a67f45c3Smrg      switch (*format++)
2214a67f45c3Smrg	{
2215a67f45c3Smrg	case '\''s'\'': // string
2216a67f45c3Smrg	  str = va_arg (args_copy, const char *);
2217a67f45c3Smrg	  break;
2218a67f45c3Smrg	case '\''d'\'': // int
2219a67f45c3Smrg	  number = va_arg (args_copy, int);
2220a67f45c3Smrg	  break;
2221a67f45c3Smrg	case '\''f'\'': // float
2222a67f45c3Smrg	  fnumber = va_arg (args_copy, double);
2223a67f45c3Smrg	  break;
2224a67f45c3Smrg	default:
2225a67f45c3Smrg	  break;
2226a67f45c3Smrg	}
2227a67f45c3Smrg    }
2228a67f45c3Smrg  va_end (args_copy);
2229a67f45c3Smrg  va_end (args);
2230a67f45c3Smrg
2231a67f45c3Smrg  return *str && number && fnumber;
2232a67f45c3Smrg}
2233a67f45c3Smrg'
2234a67f45c3Smrg
2235a67f45c3Smrg# Test code for whether the C compiler supports C99 (body of main).
2236a67f45c3Smrgac_c_conftest_c99_main='
2237a67f45c3Smrg  // Check bool.
2238a67f45c3Smrg  _Bool success = false;
2239a67f45c3Smrg  success |= (argc != 0);
2240a67f45c3Smrg
2241a67f45c3Smrg  // Check restrict.
2242a67f45c3Smrg  if (test_restrict ("String literal") == 0)
2243a67f45c3Smrg    success = true;
2244a67f45c3Smrg  char *restrict newvar = "Another string";
2245a67f45c3Smrg
2246a67f45c3Smrg  // Check varargs.
2247a67f45c3Smrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2248a67f45c3Smrg  test_varargs_macros ();
2249a67f45c3Smrg
2250a67f45c3Smrg  // Check flexible array members.
2251a67f45c3Smrg  struct incomplete_array *ia =
2252a67f45c3Smrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2253a67f45c3Smrg  ia->datasize = 10;
2254a67f45c3Smrg  for (int i = 0; i < ia->datasize; ++i)
2255a67f45c3Smrg    ia->data[i] = i * 1.234;
2256a67f45c3Smrg
2257a67f45c3Smrg  // Check named initializers.
2258a67f45c3Smrg  struct named_init ni = {
2259a67f45c3Smrg    .number = 34,
2260a67f45c3Smrg    .name = L"Test wide string",
2261a67f45c3Smrg    .average = 543.34343,
2262a67f45c3Smrg  };
2263a67f45c3Smrg
2264a67f45c3Smrg  ni.number = 58;
2265a67f45c3Smrg
2266a67f45c3Smrg  int dynamic_array[ni.number];
2267a67f45c3Smrg  dynamic_array[0] = argv[0][0];
2268a67f45c3Smrg  dynamic_array[ni.number - 1] = 543;
2269a67f45c3Smrg
2270a67f45c3Smrg  // work around unused variable warnings
2271a67f45c3Smrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2272a67f45c3Smrg	 || dynamic_array[ni.number - 1] != 543);
2273a67f45c3Smrg'
2274a67f45c3Smrg
2275a67f45c3Smrg# Test code for whether the C compiler supports C11 (global declarations)
2276a67f45c3Smrgac_c_conftest_c11_globals='
2277a67f45c3Smrg// Does the compiler advertise C11 conformance?
2278a67f45c3Smrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2279a67f45c3Smrg# error "Compiler does not advertise C11 conformance"
2280a67f45c3Smrg#endif
2281a67f45c3Smrg
2282a67f45c3Smrg// Check _Alignas.
2283a67f45c3Smrgchar _Alignas (double) aligned_as_double;
2284a67f45c3Smrgchar _Alignas (0) no_special_alignment;
2285a67f45c3Smrgextern char aligned_as_int;
2286a67f45c3Smrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2287a67f45c3Smrg
2288a67f45c3Smrg// Check _Alignof.
2289a67f45c3Smrgenum
2290a67f45c3Smrg{
2291a67f45c3Smrg  int_alignment = _Alignof (int),
2292a67f45c3Smrg  int_array_alignment = _Alignof (int[100]),
2293a67f45c3Smrg  char_alignment = _Alignof (char)
2294a67f45c3Smrg};
2295a67f45c3Smrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2296a67f45c3Smrg
2297a67f45c3Smrg// Check _Noreturn.
2298a67f45c3Smrgint _Noreturn does_not_return (void) { for (;;) continue; }
2299a67f45c3Smrg
2300a67f45c3Smrg// Check _Static_assert.
2301a67f45c3Smrgstruct test_static_assert
2302a67f45c3Smrg{
2303a67f45c3Smrg  int x;
2304a67f45c3Smrg  _Static_assert (sizeof (int) <= sizeof (long int),
2305a67f45c3Smrg                  "_Static_assert does not work in struct");
2306a67f45c3Smrg  long int y;
2307a67f45c3Smrg};
2308a67f45c3Smrg
2309a67f45c3Smrg// Check UTF-8 literals.
2310a67f45c3Smrg#define u8 syntax error!
2311a67f45c3Smrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2312a67f45c3Smrg
2313a67f45c3Smrg// Check duplicate typedefs.
2314a67f45c3Smrgtypedef long *long_ptr;
2315a67f45c3Smrgtypedef long int *long_ptr;
2316a67f45c3Smrgtypedef long_ptr long_ptr;
2317a67f45c3Smrg
2318a67f45c3Smrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2319a67f45c3Smrgstruct anonymous
2320a67f45c3Smrg{
2321a67f45c3Smrg  union {
2322a67f45c3Smrg    struct { int i; int j; };
2323a67f45c3Smrg    struct { int k; long int l; } w;
2324a67f45c3Smrg  };
2325a67f45c3Smrg  int m;
2326a67f45c3Smrg} v1;
2327a67f45c3Smrg'
2328a67f45c3Smrg
2329a67f45c3Smrg# Test code for whether the C compiler supports C11 (body of main).
2330a67f45c3Smrgac_c_conftest_c11_main='
2331a67f45c3Smrg  _Static_assert ((offsetof (struct anonymous, i)
2332a67f45c3Smrg		   == offsetof (struct anonymous, w.k)),
2333a67f45c3Smrg		  "Anonymous union alignment botch");
2334a67f45c3Smrg  v1.i = 2;
2335a67f45c3Smrg  v1.w.k = 5;
2336a67f45c3Smrg  ok |= v1.i != 5;
2337a67f45c3Smrg'
2338a67f45c3Smrg
2339a67f45c3Smrg# Test code for whether the C compiler supports C11 (complete).
2340a67f45c3Smrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2341a67f45c3Smrg${ac_c_conftest_c99_globals}
2342a67f45c3Smrg${ac_c_conftest_c11_globals}
2343a67f45c3Smrg
2344a67f45c3Smrgint
2345a67f45c3Smrgmain (int argc, char **argv)
2346a67f45c3Smrg{
2347a67f45c3Smrg  int ok = 0;
2348a67f45c3Smrg  ${ac_c_conftest_c89_main}
2349a67f45c3Smrg  ${ac_c_conftest_c99_main}
2350a67f45c3Smrg  ${ac_c_conftest_c11_main}
2351a67f45c3Smrg  return ok;
2352a67f45c3Smrg}
2353a67f45c3Smrg"
2354a67f45c3Smrg
2355a67f45c3Smrg# Test code for whether the C compiler supports C99 (complete).
2356a67f45c3Smrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2357a67f45c3Smrg${ac_c_conftest_c99_globals}
2358a67f45c3Smrg
2359a67f45c3Smrgint
2360a67f45c3Smrgmain (int argc, char **argv)
2361a67f45c3Smrg{
2362a67f45c3Smrg  int ok = 0;
2363a67f45c3Smrg  ${ac_c_conftest_c89_main}
2364a67f45c3Smrg  ${ac_c_conftest_c99_main}
2365a67f45c3Smrg  return ok;
2366a67f45c3Smrg}
2367a67f45c3Smrg"
2368a67f45c3Smrg
2369a67f45c3Smrg# Test code for whether the C compiler supports C89 (complete).
2370a67f45c3Smrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2371a67f45c3Smrg
2372a67f45c3Smrgint
2373a67f45c3Smrgmain (int argc, char **argv)
2374a67f45c3Smrg{
2375a67f45c3Smrg  int ok = 0;
2376a67f45c3Smrg  ${ac_c_conftest_c89_main}
2377a67f45c3Smrg  return ok;
2378a67f45c3Smrg}
2379a67f45c3Smrg"
2380a67f45c3Smrg
2381a67f45c3Smrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2382a67f45c3Smrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2383a67f45c3Smrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2384a67f45c3Smrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2385a67f45c3Smrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2386a67f45c3Smrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2387a67f45c3Smrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2388a67f45c3Smrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2389a67f45c3Smrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2390a67f45c3Smrg
2391a67f45c3Smrg# Auxiliary files required by this configure script.
2392a67f45c3Smrgac_aux_files="config.guess config.sub compile missing install-sh"
2393a67f45c3Smrg
2394a67f45c3Smrg# Locations in which to look for auxiliary files.
2395a67f45c3Smrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2396a67f45c3Smrg
2397a67f45c3Smrg# Search for a directory containing all of the required auxiliary files,
2398a67f45c3Smrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2399a67f45c3Smrg# If we don't find one directory that contains all the files we need,
2400a67f45c3Smrg# we report the set of missing files from the *first* directory in
2401a67f45c3Smrg# $ac_aux_dir_candidates and give up.
2402a67f45c3Smrgac_missing_aux_files=""
2403a67f45c3Smrgac_first_candidate=:
2404a67f45c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2405a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406a67f45c3Smrgas_found=false
2407a67f45c3Smrgfor as_dir in $ac_aux_dir_candidates
2408a67f45c3Smrgdo
2409a67f45c3Smrg  IFS=$as_save_IFS
2410a67f45c3Smrg  case $as_dir in #(((
2411a67f45c3Smrg    '') as_dir=./ ;;
2412a67f45c3Smrg    */) ;;
2413a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2414a67f45c3Smrg  esac
2415a67f45c3Smrg  as_found=:
2416a67f45c3Smrg
2417a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2418a67f45c3Smrg  ac_aux_dir_found=yes
2419a67f45c3Smrg  ac_install_sh=
2420a67f45c3Smrg  for ac_aux in $ac_aux_files
2421a67f45c3Smrg  do
2422a67f45c3Smrg    # As a special case, if "install-sh" is required, that requirement
2423a67f45c3Smrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2424a67f45c3Smrg    # and $ac_install_sh is set appropriately for whichever one is found.
2425a67f45c3Smrg    if test x"$ac_aux" = x"install-sh"
2426a67f45c3Smrg    then
2427a67f45c3Smrg      if test -f "${as_dir}install-sh"; then
2428a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2429a67f45c3Smrg        ac_install_sh="${as_dir}install-sh -c"
2430a67f45c3Smrg      elif test -f "${as_dir}install.sh"; then
2431a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2432a67f45c3Smrg        ac_install_sh="${as_dir}install.sh -c"
2433a67f45c3Smrg      elif test -f "${as_dir}shtool"; then
2434a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2435a67f45c3Smrg        ac_install_sh="${as_dir}shtool install -c"
2436a67f45c3Smrg      else
2437a67f45c3Smrg        ac_aux_dir_found=no
2438a67f45c3Smrg        if $ac_first_candidate; then
2439a67f45c3Smrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2440a67f45c3Smrg        else
2441a67f45c3Smrg          break
2442a67f45c3Smrg        fi
2443a67f45c3Smrg      fi
2444a67f45c3Smrg    else
2445a67f45c3Smrg      if test -f "${as_dir}${ac_aux}"; then
2446a67f45c3Smrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2447a67f45c3Smrg      else
2448a67f45c3Smrg        ac_aux_dir_found=no
2449a67f45c3Smrg        if $ac_first_candidate; then
2450a67f45c3Smrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2451a67f45c3Smrg        else
2452a67f45c3Smrg          break
2453a67f45c3Smrg        fi
2454a67f45c3Smrg      fi
2455a67f45c3Smrg    fi
2456a67f45c3Smrg  done
2457a67f45c3Smrg  if test "$ac_aux_dir_found" = yes; then
2458a67f45c3Smrg    ac_aux_dir="$as_dir"
2459a67f45c3Smrg    break
2460a67f45c3Smrg  fi
2461a67f45c3Smrg  ac_first_candidate=false
2462a67f45c3Smrg
2463a67f45c3Smrg  as_found=false
2464a67f45c3Smrgdone
2465a67f45c3SmrgIFS=$as_save_IFS
2466a67f45c3Smrgif $as_found
2467a67f45c3Smrgthen :
2468a67f45c3Smrg
2469a67f45c3Smrgelse $as_nop
2470a67f45c3Smrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2471a67f45c3Smrgfi
2472a67f45c3Smrg
2473a67f45c3Smrg
2474a67f45c3Smrg# These three variables are undocumented and unsupported,
2475a67f45c3Smrg# and are intended to be withdrawn in a future Autoconf release.
2476a67f45c3Smrg# They can cause serious problems if a builder's source tree is in a directory
2477a67f45c3Smrg# whose full name contains unusual characters.
2478a67f45c3Smrgif test -f "${ac_aux_dir}config.guess"; then
2479a67f45c3Smrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2480a67f45c3Smrgfi
2481a67f45c3Smrgif test -f "${ac_aux_dir}config.sub"; then
2482a67f45c3Smrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2483a67f45c3Smrgfi
2484a67f45c3Smrgif test -f "$ac_aux_dir/configure"; then
2485a67f45c3Smrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2486a67f45c3Smrgfi
2487a67f45c3Smrg
2488a67f45c3Smrg# Check that the precious variables saved in the cache have kept the same
2489a67f45c3Smrg# value.
2490a67f45c3Smrgac_cache_corrupted=false
2491a67f45c3Smrgfor ac_var in $ac_precious_vars; do
2492a67f45c3Smrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2493a67f45c3Smrg  eval ac_new_set=\$ac_env_${ac_var}_set
2494a67f45c3Smrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2495a67f45c3Smrg  eval ac_new_val=\$ac_env_${ac_var}_value
2496a67f45c3Smrg  case $ac_old_set,$ac_new_set in
2497a67f45c3Smrg    set,)
2498a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2499a67f45c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2500a67f45c3Smrg      ac_cache_corrupted=: ;;
2501a67f45c3Smrg    ,set)
2502a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2503a67f45c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2504a67f45c3Smrg      ac_cache_corrupted=: ;;
2505a67f45c3Smrg    ,);;
2506a67f45c3Smrg    *)
2507a67f45c3Smrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2508a67f45c3Smrg	# differences in whitespace do not lead to failure.
2509a67f45c3Smrg	ac_old_val_w=`echo x $ac_old_val`
2510a67f45c3Smrg	ac_new_val_w=`echo x $ac_new_val`
2511a67f45c3Smrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2512a67f45c3Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2513a67f45c3Smrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2514a67f45c3Smrg	  ac_cache_corrupted=:
2515a67f45c3Smrg	else
2516a67f45c3Smrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2517a67f45c3Smrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2518a67f45c3Smrg	  eval $ac_var=\$ac_old_val
2519a67f45c3Smrg	fi
2520a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2521a67f45c3Smrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2522a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2523a67f45c3Smrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2524a67f45c3Smrg      fi;;
2525a67f45c3Smrg  esac
2526a67f45c3Smrg  # Pass precious variables to config.status.
2527a67f45c3Smrg  if test "$ac_new_set" = set; then
2528a67f45c3Smrg    case $ac_new_val in
2529a67f45c3Smrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2530a67f45c3Smrg    *) ac_arg=$ac_var=$ac_new_val ;;
2531a67f45c3Smrg    esac
2532a67f45c3Smrg    case " $ac_configure_args " in
2533a67f45c3Smrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2534a67f45c3Smrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535a67f45c3Smrg    esac
2536a67f45c3Smrg  fi
2537a67f45c3Smrgdone
2538a67f45c3Smrgif $ac_cache_corrupted; then
2539a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2540a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2541a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2542a67f45c3Smrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2543a67f45c3Smrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2544a67f45c3Smrg	    and start over" "$LINENO" 5
2545a67f45c3Smrgfi
2546a67f45c3Smrg## -------------------- ##
2547a67f45c3Smrg## Main body of script. ##
2548a67f45c3Smrg## -------------------- ##
2549a67f45c3Smrg
2550a67f45c3Smrgac_ext=c
2551a67f45c3Smrgac_cpp='$CPP $CPPFLAGS'
2552a67f45c3Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553a67f45c3Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554a67f45c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2555a67f45c3Smrg
2556a67f45c3Smrg
2557a67f45c3Smrg
2558a67f45c3Smrgac_config_headers="$ac_config_headers config.h"
2559a67f45c3Smrg
2560a67f45c3Smrg
2561a67f45c3Smrg# Initialize Automake
2562a67f45c3Smrgam__api_version='1.16'
2563a67f45c3Smrg
2564a67f45c3Smrg
2565a67f45c3Smrg
2566a67f45c3Smrg  # Find a good install program.  We prefer a C program (faster),
2567a67f45c3Smrg# so one script is as good as another.  But avoid the broken or
256876910425Smrg# incompatible versions:
256976910425Smrg# SysV /etc/install, /usr/sbin/install
257076910425Smrg# SunOS /usr/etc/install
257176910425Smrg# IRIX /sbin/install
257276910425Smrg# AIX /bin/install
257376910425Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
257476910425Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
257576910425Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
257676910425Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
257776910425Smrg# OS/2's system install, which has a completely different semantic
257876910425Smrg# ./install, which can be erroneously created by make from ./install.sh.
2579db17cd6dSmrg# Reject install programs that cannot install multiple files.
2580a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581a67f45c3Smrgprintf %s "checking for a BSD-compatible install... " >&6; }
258276910425Smrgif test -z "$INSTALL"; then
2583a67f45c3Smrgif test ${ac_cv_path_install+y}
2584a67f45c3Smrgthen :
2585a67f45c3Smrg  printf %s "(cached) " >&6
2586a67f45c3Smrgelse $as_nop
258776910425Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
258876910425Smrgfor as_dir in $PATH
258976910425Smrgdo
259076910425Smrg  IFS=$as_save_IFS
2591a67f45c3Smrg  case $as_dir in #(((
2592a67f45c3Smrg    '') as_dir=./ ;;
2593a67f45c3Smrg    */) ;;
2594a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2595a67f45c3Smrg  esac
2596a67f45c3Smrg    # Account for fact that we put trailing slashes in our PATH walk.
2597a67f45c3Smrgcase $as_dir in #((
2598a67f45c3Smrg  ./ | /[cC]/* | \
259976910425Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2600482df631Smrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
260176910425Smrg  /usr/ucb/* ) ;;
260276910425Smrg  *)
260376910425Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
260476910425Smrg    # Don't use installbsd from OSF since it installs stuff as root
260576910425Smrg    # by default.
260676910425Smrg    for ac_prog in ginstall scoinst install; do
260776910425Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2608a67f45c3Smrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
260976910425Smrg	  if test $ac_prog = install &&
2610a67f45c3Smrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
261176910425Smrg	    # AIX install.  It has an incompatible calling convention.
261276910425Smrg	    :
261376910425Smrg	  elif test $ac_prog = install &&
2614a67f45c3Smrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
261576910425Smrg	    # program-specific install script used by HP pwplus--don't use.
261676910425Smrg	    :
261776910425Smrg	  else
2618db17cd6dSmrg	    rm -rf conftest.one conftest.two conftest.dir
2619db17cd6dSmrg	    echo one > conftest.one
2620db17cd6dSmrg	    echo two > conftest.two
2621db17cd6dSmrg	    mkdir conftest.dir
2622a67f45c3Smrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2623db17cd6dSmrg	      test -s conftest.one && test -s conftest.two &&
2624db17cd6dSmrg	      test -s conftest.dir/conftest.one &&
2625db17cd6dSmrg	      test -s conftest.dir/conftest.two
2626db17cd6dSmrg	    then
2627a67f45c3Smrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2628db17cd6dSmrg	      break 3
2629db17cd6dSmrg	    fi
263076910425Smrg	  fi
263176910425Smrg	fi
263276910425Smrg      done
263376910425Smrg    done
263476910425Smrg    ;;
263576910425Smrgesac
2636db17cd6dSmrg
2637482df631Smrg  done
2638db17cd6dSmrgIFS=$as_save_IFS
263976910425Smrg
2640db17cd6dSmrgrm -rf conftest.one conftest.two conftest.dir
264176910425Smrg
264276910425Smrgfi
2643a67f45c3Smrg  if test ${ac_cv_path_install+y}; then
264476910425Smrg    INSTALL=$ac_cv_path_install
264576910425Smrg  else
2646db17cd6dSmrg    # As a last resort, use the slow shell script.  Don't cache a
2647db17cd6dSmrg    # value for INSTALL within a source directory, because that will
264876910425Smrg    # break other packages using the cache if that directory is
2649db17cd6dSmrg    # removed, or if the value is a relative name.
265076910425Smrg    INSTALL=$ac_install_sh
265176910425Smrg  fi
265276910425Smrgfi
2653a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2654a67f45c3Smrgprintf "%s\n" "$INSTALL" >&6; }
265576910425Smrg
265676910425Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
265776910425Smrg# It thinks the first close brace ends the variable substitution.
265876910425Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
265976910425Smrg
266076910425Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
266176910425Smrg
266276910425Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
266376910425Smrg
2664a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2665a67f45c3Smrgprintf %s "checking whether build environment is sane... " >&6; }
2666db17cd6dSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2667db17cd6dSmrg# name.  Accept space and tab only in the latter.
2668db17cd6dSmrgam_lf='
2669db17cd6dSmrg'
2670db17cd6dSmrgcase `pwd` in
2671db17cd6dSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
2672482df631Smrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2673db17cd6dSmrgesac
2674db17cd6dSmrgcase $srcdir in
2675db17cd6dSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
26769ff100acSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2677db17cd6dSmrgesac
2678db17cd6dSmrg
26799ff100acSmrg# Do 'set' in a subshell so we don't clobber the current shell's
268076910425Smrg# arguments.  Must try -L first in case configure is actually a
268176910425Smrg# symlink; some systems play weird games with the mod time of symlinks
268276910425Smrg# (eg FreeBSD returns the mod time of the symlink's containing
268376910425Smrg# directory).
268476910425Smrgif (
26859ff100acSmrg   am_has_slept=no
26869ff100acSmrg   for am_try in 1 2; do
26879ff100acSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
26889ff100acSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
26899ff100acSmrg     if test "$*" = "X"; then
26909ff100acSmrg	# -L didn't work.
26919ff100acSmrg	set X `ls -t "$srcdir/configure" conftest.file`
26929ff100acSmrg     fi
26939ff100acSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
26949ff100acSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
26959ff100acSmrg
26969ff100acSmrg	# If neither matched, then we have a broken ls.  This can happen
26979ff100acSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
26989ff100acSmrg	# broken ls alias from the environment.  This has actually
26999ff100acSmrg	# happened.  Such a system could not be considered "sane".
27009ff100acSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
27019ff100acSmrg  alias in your environment" "$LINENO" 5
27029ff100acSmrg     fi
27039ff100acSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
27049ff100acSmrg       break
27059ff100acSmrg     fi
27069ff100acSmrg     # Just in case.
27079ff100acSmrg     sleep 1
27089ff100acSmrg     am_has_slept=yes
27099ff100acSmrg   done
271076910425Smrg   test "$2" = conftest.file
271176910425Smrg   )
271276910425Smrgthen
271376910425Smrg   # Ok.
271476910425Smrg   :
271576910425Smrgelse
2716482df631Smrg   as_fn_error $? "newly created file is older than distributed files!
2717482df631SmrgCheck your system clock" "$LINENO" 5
271876910425Smrgfi
2719a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720a67f45c3Smrgprintf "%s\n" "yes" >&6; }
27219ff100acSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
27229ff100acSmrg# generated files are strictly newer.
27239ff100acSmrgam_sleep_pid=
27249ff100acSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
27259ff100acSmrg  ( sleep 1 ) &
27269ff100acSmrg  am_sleep_pid=$!
27279ff100acSmrgfi
27289ff100acSmrg
27299ff100acSmrgrm -f conftest.file
27309ff100acSmrg
273176910425Smrgtest "$program_prefix" != NONE &&
2732db17cd6dSmrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
273376910425Smrg# Use a double $ so make ignores it.
273476910425Smrgtest "$program_suffix" != NONE &&
2735db17cd6dSmrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2736db17cd6dSmrg# Double any \ or $.
273776910425Smrg# By default was `s,x,x', remove it if useless.
2738db17cd6dSmrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2739a67f45c3Smrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2740a67f45c3Smrg
274176910425Smrg
27429ff100acSmrg# Expand $ac_aux_dir to an absolute path.
27439ff100acSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
274476910425Smrg
2745a67f45c3Smrg
2746a67f45c3Smrg  if test x"${MISSING+set}" != xset; then
2747a67f45c3Smrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2748db17cd6dSmrgfi
274976910425Smrg# Use eval to expand $SHELL
27509ff100acSmrgif eval "$MISSING --is-lightweight"; then
27519ff100acSmrg  am_missing_run="$MISSING "
275276910425Smrgelse
275376910425Smrg  am_missing_run=
2754a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2755a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2756db17cd6dSmrgfi
2757db17cd6dSmrg
27589ff100acSmrgif test x"${install_sh+set}" != xset; then
2759db17cd6dSmrg  case $am_aux_dir in
2760db17cd6dSmrg  *\ * | *\	*)
2761db17cd6dSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2762db17cd6dSmrg  *)
2763db17cd6dSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2764db17cd6dSmrg  esac
2765db17cd6dSmrgfi
2766db17cd6dSmrg
27679ff100acSmrg# Installed binaries are usually stripped using 'strip' when the user
27689ff100acSmrg# run "make install-strip".  However 'strip' might not be the right
2769db17cd6dSmrg# tool to use in cross-compilation environments, therefore Automake
27709ff100acSmrg# will honor the 'STRIP' environment variable to overrule this program.
2771db17cd6dSmrgif test "$cross_compiling" != no; then
2772db17cd6dSmrg  if test -n "$ac_tool_prefix"; then
2773db17cd6dSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774db17cd6dSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2775a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
2777a67f45c3Smrgif test ${ac_cv_prog_STRIP+y}
2778a67f45c3Smrgthen :
2779a67f45c3Smrg  printf %s "(cached) " >&6
2780a67f45c3Smrgelse $as_nop
2781db17cd6dSmrg  if test -n "$STRIP"; then
2782db17cd6dSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783db17cd6dSmrgelse
2784db17cd6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785db17cd6dSmrgfor as_dir in $PATH
2786db17cd6dSmrgdo
2787db17cd6dSmrg  IFS=$as_save_IFS
2788a67f45c3Smrg  case $as_dir in #(((
2789a67f45c3Smrg    '') as_dir=./ ;;
2790a67f45c3Smrg    */) ;;
2791a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2792a67f45c3Smrg  esac
2793482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2794a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2795db17cd6dSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2797db17cd6dSmrg    break 2
2798db17cd6dSmrg  fi
2799db17cd6dSmrgdone
2800482df631Smrg  done
2801db17cd6dSmrgIFS=$as_save_IFS
2802db17cd6dSmrg
2803db17cd6dSmrgfi
2804db17cd6dSmrgfi
2805db17cd6dSmrgSTRIP=$ac_cv_prog_STRIP
2806db17cd6dSmrgif test -n "$STRIP"; then
2807a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808a67f45c3Smrgprintf "%s\n" "$STRIP" >&6; }
2809db17cd6dSmrgelse
2810a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811a67f45c3Smrgprintf "%s\n" "no" >&6; }
2812db17cd6dSmrgfi
2813db17cd6dSmrg
2814db17cd6dSmrg
2815db17cd6dSmrgfi
2816db17cd6dSmrgif test -z "$ac_cv_prog_STRIP"; then
2817db17cd6dSmrg  ac_ct_STRIP=$STRIP
2818db17cd6dSmrg  # Extract the first word of "strip", so it can be a program name with args.
2819db17cd6dSmrgset dummy strip; ac_word=$2
2820a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
2822a67f45c3Smrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2823a67f45c3Smrgthen :
2824a67f45c3Smrg  printf %s "(cached) " >&6
2825a67f45c3Smrgelse $as_nop
2826db17cd6dSmrg  if test -n "$ac_ct_STRIP"; then
2827db17cd6dSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828db17cd6dSmrgelse
2829db17cd6dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830db17cd6dSmrgfor as_dir in $PATH
2831db17cd6dSmrgdo
2832db17cd6dSmrg  IFS=$as_save_IFS
2833a67f45c3Smrg  case $as_dir in #(((
2834a67f45c3Smrg    '') as_dir=./ ;;
2835a67f45c3Smrg    */) ;;
2836a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2837a67f45c3Smrg  esac
2838482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2839a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2840db17cd6dSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2841a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2842db17cd6dSmrg    break 2
2843db17cd6dSmrg  fi
2844db17cd6dSmrgdone
2845482df631Smrg  done
2846db17cd6dSmrgIFS=$as_save_IFS
2847db17cd6dSmrg
2848db17cd6dSmrgfi
2849db17cd6dSmrgfi
2850db17cd6dSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2851db17cd6dSmrgif test -n "$ac_ct_STRIP"; then
2852a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2853a67f45c3Smrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2854db17cd6dSmrgelse
2855a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856a67f45c3Smrgprintf "%s\n" "no" >&6; }
2857db17cd6dSmrgfi
2858db17cd6dSmrg
2859db17cd6dSmrg  if test "x$ac_ct_STRIP" = x; then
2860db17cd6dSmrg    STRIP=":"
2861db17cd6dSmrg  else
2862db17cd6dSmrg    case $cross_compiling:$ac_tool_warned in
2863db17cd6dSmrgyes:)
2864a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2865a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2866db17cd6dSmrgac_tool_warned=yes ;;
2867db17cd6dSmrgesac
2868db17cd6dSmrg    STRIP=$ac_ct_STRIP
2869db17cd6dSmrg  fi
2870db17cd6dSmrgelse
2871db17cd6dSmrg  STRIP="$ac_cv_prog_STRIP"
2872db17cd6dSmrgfi
2873db17cd6dSmrg
2874db17cd6dSmrgfi
2875db17cd6dSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2876db17cd6dSmrg
2877a67f45c3Smrg
2878a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2879a67f45c3Smrgprintf %s "checking for a race-free mkdir -p... " >&6; }
2880db17cd6dSmrgif test -z "$MKDIR_P"; then
2881a67f45c3Smrg  if test ${ac_cv_path_mkdir+y}
2882a67f45c3Smrgthen :
2883a67f45c3Smrg  printf %s "(cached) " >&6
2884a67f45c3Smrgelse $as_nop
2885db17cd6dSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886db17cd6dSmrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2887db17cd6dSmrgdo
2888db17cd6dSmrg  IFS=$as_save_IFS
2889a67f45c3Smrg  case $as_dir in #(((
2890a67f45c3Smrg    '') as_dir=./ ;;
2891a67f45c3Smrg    */) ;;
2892a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2893a67f45c3Smrg  esac
2894482df631Smrg    for ac_prog in mkdir gmkdir; do
2895db17cd6dSmrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2896a67f45c3Smrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2897a67f45c3Smrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2898a67f45c3Smrg	     'mkdir ('*'coreutils) '* | \
2899a67f45c3Smrg	     'BusyBox '* | \
2900db17cd6dSmrg	     'mkdir (fileutils) '4.1*)
2901a67f45c3Smrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2902db17cd6dSmrg	       break 3;;
2903db17cd6dSmrg	   esac
2904db17cd6dSmrg	 done
2905db17cd6dSmrg       done
2906482df631Smrg  done
2907db17cd6dSmrgIFS=$as_save_IFS
2908db17cd6dSmrg
2909db17cd6dSmrgfi
2910db17cd6dSmrg
2911482df631Smrg  test -d ./--version && rmdir ./--version
2912a67f45c3Smrg  if test ${ac_cv_path_mkdir+y}; then
2913db17cd6dSmrg    MKDIR_P="$ac_cv_path_mkdir -p"
291476910425Smrg  else
2915db17cd6dSmrg    # As a last resort, use the slow shell script.  Don't cache a
2916db17cd6dSmrg    # value for MKDIR_P within a source directory, because that will
2917db17cd6dSmrg    # break other packages using the cache if that directory is
2918db17cd6dSmrg    # removed, or if the value is a relative name.
2919db17cd6dSmrg    MKDIR_P="$ac_install_sh -d"
292076910425Smrg  fi
292176910425Smrgfi
2922a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2923a67f45c3Smrgprintf "%s\n" "$MKDIR_P" >&6; }
2924db17cd6dSmrg
292576910425Smrgfor ac_prog in gawk mawk nawk awk
292676910425Smrgdo
292776910425Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
292876910425Smrgset dummy $ac_prog; ac_word=$2
2929a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
2931a67f45c3Smrgif test ${ac_cv_prog_AWK+y}
2932a67f45c3Smrgthen :
2933a67f45c3Smrg  printf %s "(cached) " >&6
2934a67f45c3Smrgelse $as_nop
293576910425Smrg  if test -n "$AWK"; then
293676910425Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
293776910425Smrgelse
293876910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
293976910425Smrgfor as_dir in $PATH
294076910425Smrgdo
294176910425Smrg  IFS=$as_save_IFS
2942a67f45c3Smrg  case $as_dir in #(((
2943a67f45c3Smrg    '') as_dir=./ ;;
2944a67f45c3Smrg    */) ;;
2945a67f45c3Smrg    *) as_dir=$as_dir/ ;;
2946a67f45c3Smrg  esac
2947482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
2948a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
294976910425Smrg    ac_cv_prog_AWK="$ac_prog"
2950a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
295176910425Smrg    break 2
295276910425Smrg  fi
295376910425Smrgdone
2954482df631Smrg  done
2955db17cd6dSmrgIFS=$as_save_IFS
295676910425Smrg
295776910425Smrgfi
295876910425Smrgfi
295976910425SmrgAWK=$ac_cv_prog_AWK
296076910425Smrgif test -n "$AWK"; then
2961a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2962a67f45c3Smrgprintf "%s\n" "$AWK" >&6; }
296376910425Smrgelse
2964a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965a67f45c3Smrgprintf "%s\n" "no" >&6; }
296676910425Smrgfi
296776910425Smrg
2968db17cd6dSmrg
296976910425Smrg  test -n "$AWK" && break
297076910425Smrgdone
297176910425Smrg
2972a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2973a67f45c3Smrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2974db17cd6dSmrgset x ${MAKE-make}
2975a67f45c3Smrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2976a67f45c3Smrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2977a67f45c3Smrgthen :
2978a67f45c3Smrg  printf %s "(cached) " >&6
2979a67f45c3Smrgelse $as_nop
298076910425Smrg  cat >conftest.make <<\_ACEOF
2981db17cd6dSmrgSHELL = /bin/sh
298276910425Smrgall:
2983db17cd6dSmrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
298476910425Smrg_ACEOF
2985482df631Smrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986db17cd6dSmrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
2987db17cd6dSmrg  *@@@%%%=?*=@@@%%%*)
2988db17cd6dSmrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
2989db17cd6dSmrg  *)
2990db17cd6dSmrg    eval ac_cv_prog_make_${ac_make}_set=no;;
2991db17cd6dSmrgesac
299276910425Smrgrm -f conftest.make
299376910425Smrgfi
2994db17cd6dSmrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996a67f45c3Smrgprintf "%s\n" "yes" >&6; }
299776910425Smrg  SET_MAKE=
299876910425Smrgelse
2999a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000a67f45c3Smrgprintf "%s\n" "no" >&6; }
300176910425Smrg  SET_MAKE="MAKE=${MAKE-make}"
300276910425Smrgfi
300376910425Smrg
300476910425Smrgrm -rf .tst 2>/dev/null
300576910425Smrgmkdir .tst 2>/dev/null
300676910425Smrgif test -d .tst; then
300776910425Smrg  am__leading_dot=.
300876910425Smrgelse
300976910425Smrg  am__leading_dot=_
301076910425Smrgfi
301176910425Smrgrmdir .tst 2>/dev/null
301276910425Smrg
30139ff100acSmrg# Check whether --enable-silent-rules was given.
3014a67f45c3Smrgif test ${enable_silent_rules+y}
3015a67f45c3Smrgthen :
30169ff100acSmrg  enableval=$enable_silent_rules;
30179ff100acSmrgfi
30189ff100acSmrg
30199ff100acSmrgcase $enable_silent_rules in # (((
30209ff100acSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
30219ff100acSmrg   no) AM_DEFAULT_VERBOSITY=1;;
30229ff100acSmrg    *) AM_DEFAULT_VERBOSITY=1;;
30239ff100acSmrgesac
30249ff100acSmrgam_make=${MAKE-make}
3025a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3026a67f45c3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
3027a67f45c3Smrgif test ${am_cv_make_support_nested_variables+y}
3028a67f45c3Smrgthen :
3029a67f45c3Smrg  printf %s "(cached) " >&6
3030a67f45c3Smrgelse $as_nop
3031a67f45c3Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
30329ff100acSmrgBAR0=false
30339ff100acSmrgBAR1=true
30349ff100acSmrgV=1
30359ff100acSmrgam__doit:
30369ff100acSmrg	@$(TRUE)
30379ff100acSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
30389ff100acSmrg  am_cv_make_support_nested_variables=yes
30399ff100acSmrgelse
30409ff100acSmrg  am_cv_make_support_nested_variables=no
30419ff100acSmrgfi
30429ff100acSmrgfi
3043a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3044a67f45c3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
30459ff100acSmrgif test $am_cv_make_support_nested_variables = yes; then
30469ff100acSmrg    AM_V='$(V)'
30479ff100acSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
30489ff100acSmrgelse
30499ff100acSmrg  AM_V=$AM_DEFAULT_VERBOSITY
30509ff100acSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
30519ff100acSmrgfi
30529ff100acSmrgAM_BACKSLASH='\'
30539ff100acSmrg
3054db17cd6dSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
3055db17cd6dSmrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3056db17cd6dSmrg  # is not polluted with repeated "-I."
3057db17cd6dSmrg  am__isrc=' -I$(srcdir)'
3058db17cd6dSmrg  # test to see if srcdir already configured
3059db17cd6dSmrg  if test -f $srcdir/config.status; then
3060482df631Smrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3061db17cd6dSmrg  fi
306276910425Smrgfi
306376910425Smrg
306476910425Smrg# test whether we have cygpath
306576910425Smrgif test -z "$CYGPATH_W"; then
306676910425Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
306776910425Smrg    CYGPATH_W='cygpath -w'
306876910425Smrg  else
306976910425Smrg    CYGPATH_W=echo
307076910425Smrg  fi
307176910425Smrgfi
307276910425Smrg
307376910425Smrg
307476910425Smrg# Define the identity of the package.
307576910425Smrg PACKAGE='xkbevd'
3076a67f45c3Smrg VERSION='1.1.5'
307776910425Smrg
307876910425Smrg
3079a67f45c3Smrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
308076910425Smrg
308176910425Smrg
3082a67f45c3Smrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
308376910425Smrg
308476910425Smrg# Some tools Automake needs.
308576910425Smrg
308676910425SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
308776910425Smrg
308876910425Smrg
308976910425SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
309076910425Smrg
309176910425Smrg
309276910425SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
309376910425Smrg
309476910425Smrg
309576910425SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
309676910425Smrg
309776910425Smrg
309876910425SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
309976910425Smrg
31009ff100acSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
31019ff100acSmrg# dies out for good.  For more background, see:
3102a67f45c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103a67f45c3Smrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
31049ff100acSmrgmkdir_p='$(MKDIR_P)'
310576910425Smrg
31069ff100acSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
31079ff100acSmrg# system "awk" is bad on some platforms.
31089ff100acSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
31099ff100acSmrg# in the wild :-(  We should find a proper way to deprecate it ...
31109ff100acSmrgAMTAR='$${TAR-tar}'
3111db17cd6dSmrg
311276910425Smrg
31139ff100acSmrg# We'll loop over all known methods to create a tar archive until one works.
31149ff100acSmrg_am_tools='gnutar  pax cpio none'
311576910425Smrg
31169ff100acSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
311776910425Smrg
311876910425Smrg
311976910425Smrg
3120db17cd6dSmrg
3121db17cd6dSmrg
3122a67f45c3Smrg# Variables for tags utilities; see am/tags.am
3123a67f45c3Smrgif test -z "$CTAGS"; then
3124a67f45c3Smrg  CTAGS=ctags
3125a67f45c3Smrgfi
3126a67f45c3Smrg
3127a67f45c3Smrgif test -z "$ETAGS"; then
3128a67f45c3Smrg  ETAGS=etags
3129a67f45c3Smrgfi
3130a67f45c3Smrg
3131a67f45c3Smrgif test -z "$CSCOPE"; then
3132a67f45c3Smrg  CSCOPE=cscope
3133a67f45c3Smrgfi
3134a67f45c3Smrg
3135a67f45c3Smrg
3136db17cd6dSmrg
31379ff100acSmrg# POSIX will say in a future version that running "rm -f" with no argument
31389ff100acSmrg# is OK; and we want to be able to make that assumption in our Makefile
31399ff100acSmrg# recipes.  So use an aggressive probe to check that the usage we want is
31409ff100acSmrg# actually supported "in the wild" to an acceptable degree.
31419ff100acSmrg# See automake bug#10828.
31429ff100acSmrg# To make any issue more visible, cause the running configure to be aborted
31439ff100acSmrg# by default if the 'rm' program in use doesn't match our expectations; the
31449ff100acSmrg# user can still override this though.
31459ff100acSmrgif rm -f && rm -fr && rm -rf; then : OK; else
31469ff100acSmrg  cat >&2 <<'END'
31479ff100acSmrgOops!
3148db17cd6dSmrg
31499ff100acSmrgYour 'rm' program seems unable to run without file operands specified
31509ff100acSmrgon the command line, even when the '-f' option is present.  This is contrary
31519ff100acSmrgto the behaviour of most rm programs out there, and not conforming with
31529ff100acSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3153db17cd6dSmrg
31549ff100acSmrgPlease tell bug-automake@gnu.org about your system, including the value
31559ff100acSmrgof your $PATH and any error possibly output before this message.  This
31569ff100acSmrgcan help us improve future automake versions.
3157db17cd6dSmrg
31589ff100acSmrgEND
31599ff100acSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
31609ff100acSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
31619ff100acSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
31629ff100acSmrg    echo >&2
31639ff100acSmrg  else
31649ff100acSmrg    cat >&2 <<'END'
31659ff100acSmrgAborting the configuration process, to ensure you take notice of the issue.
3166db17cd6dSmrg
31679ff100acSmrgYou can download and install GNU coreutils to get an 'rm' implementation
3168a67f45c3Smrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3169db17cd6dSmrg
31709ff100acSmrgIf you want to complete the configuration process using your problematic
31719ff100acSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
31729ff100acSmrgto "yes", and re-run configure.
3173db17cd6dSmrg
31749ff100acSmrgEND
31759ff100acSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
31769ff100acSmrg  fi
31779ff100acSmrgfi
3178db17cd6dSmrg
3179db17cd6dSmrg
31809ff100acSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3181db17cd6dSmrg
318276910425Smrg
318376910425Smrg
3184db17cd6dSmrg
3185482df631Smrg
318676910425Smrg
318776910425Smrg
318876910425Smrg
3189482df631Smrg
319076910425Smrg
319176910425Smrg
3192a67f45c3Smrg
3193a67f45c3Smrg
3194a67f45c3Smrg
3195a67f45c3Smrg
3196a67f45c3Smrg
3197a67f45c3Smrg
3198a67f45c3Smrg
3199a67f45c3Smrg
3200a67f45c3Smrg
3201482df631SmrgDEPDIR="${am__leading_dot}deps"
3202482df631Smrg
3203482df631Smrgac_config_commands="$ac_config_commands depfiles"
3204482df631Smrg
3205a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3206a67f45c3Smrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3207a67f45c3Smrgcat > confinc.mk << 'END'
3208482df631Smrgam__doit:
3209a67f45c3Smrg	@echo this is the am__doit target >confinc.out
3210482df631Smrg.PHONY: am__doit
3211482df631SmrgEND
3212482df631Smrgam__include="#"
3213482df631Smrgam__quote=
3214a67f45c3Smrg# BSD make does it like this.
3215a67f45c3Smrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3216a67f45c3Smrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3217a67f45c3Smrgecho 'include confinc.mk # ignored' > confmf.GNU
3218a67f45c3Smrg_am_result=no
3219a67f45c3Smrgfor s in GNU BSD; do
3220a67f45c3Smrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3221a67f45c3Smrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3222a67f45c3Smrg   ac_status=$?
3223a67f45c3Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224a67f45c3Smrg   (exit $ac_status); }
3225a67f45c3Smrg  case $?:`cat confinc.out 2>/dev/null` in #(
3226a67f45c3Smrg  '0:this is the am__doit target') :
3227a67f45c3Smrg    case $s in #(
3228a67f45c3Smrg  BSD) :
3229a67f45c3Smrg    am__include='.include' am__quote='"' ;; #(
3230a67f45c3Smrg  *) :
3231a67f45c3Smrg    am__include='include' am__quote='' ;;
3232a67f45c3Smrgesac ;; #(
3233a67f45c3Smrg  *) :
3234482df631Smrg     ;;
3235a67f45c3Smrgesac
3236a67f45c3Smrg  if test "$am__include" != "#"; then
3237a67f45c3Smrg    _am_result="yes ($s style)"
3238a67f45c3Smrg    break
3239a67f45c3Smrg  fi
3240a67f45c3Smrgdone
3241a67f45c3Smrgrm -f confinc.* confmf.*
3242a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3243a67f45c3Smrgprintf "%s\n" "${_am_result}" >&6; }
3244482df631Smrg
3245482df631Smrg# Check whether --enable-dependency-tracking was given.
3246a67f45c3Smrgif test ${enable_dependency_tracking+y}
3247a67f45c3Smrgthen :
3248482df631Smrg  enableval=$enable_dependency_tracking;
3249482df631Smrgfi
3250482df631Smrg
3251482df631Smrgif test "x$enable_dependency_tracking" != xno; then
3252482df631Smrg  am_depcomp="$ac_aux_dir/depcomp"
3253482df631Smrg  AMDEPBACKSLASH='\'
32549ff100acSmrg  am__nodep='_no'
3255482df631Smrgfi
3256482df631Smrg if test "x$enable_dependency_tracking" != xno; then
3257482df631Smrg  AMDEP_TRUE=
3258482df631Smrg  AMDEP_FALSE='#'
3259482df631Smrgelse
3260482df631Smrg  AMDEP_TRUE='#'
3261482df631Smrg  AMDEP_FALSE=
3262482df631Smrgfi
3263482df631Smrg
3264482df631Smrg
3265482df631Smrgac_ext=c
3266482df631Smrgac_cpp='$CPP $CPPFLAGS'
3267482df631Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268482df631Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269482df631Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3270482df631Smrgif test -n "$ac_tool_prefix"; then
3271482df631Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272482df631Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3273a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3275a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3276a67f45c3Smrgthen :
3277a67f45c3Smrg  printf %s "(cached) " >&6
3278a67f45c3Smrgelse $as_nop
3279482df631Smrg  if test -n "$CC"; then
3280482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3281482df631Smrgelse
3282482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283482df631Smrgfor as_dir in $PATH
3284482df631Smrgdo
3285482df631Smrg  IFS=$as_save_IFS
3286a67f45c3Smrg  case $as_dir in #(((
3287a67f45c3Smrg    '') as_dir=./ ;;
3288a67f45c3Smrg    */) ;;
3289a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3290a67f45c3Smrg  esac
3291482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3292a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3293482df631Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3295482df631Smrg    break 2
3296482df631Smrg  fi
3297482df631Smrgdone
3298482df631Smrg  done
3299482df631SmrgIFS=$as_save_IFS
3300482df631Smrg
3301482df631Smrgfi
3302482df631Smrgfi
3303482df631SmrgCC=$ac_cv_prog_CC
3304482df631Smrgif test -n "$CC"; then
3305a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3306a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3307482df631Smrgelse
3308a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309a67f45c3Smrgprintf "%s\n" "no" >&6; }
3310482df631Smrgfi
3311482df631Smrg
3312482df631Smrg
3313482df631Smrgfi
3314482df631Smrgif test -z "$ac_cv_prog_CC"; then
3315482df631Smrg  ac_ct_CC=$CC
3316482df631Smrg  # Extract the first word of "gcc", so it can be a program name with args.
3317482df631Smrgset dummy gcc; ac_word=$2
3318a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3320a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3321a67f45c3Smrgthen :
3322a67f45c3Smrg  printf %s "(cached) " >&6
3323a67f45c3Smrgelse $as_nop
3324482df631Smrg  if test -n "$ac_ct_CC"; then
3325482df631Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326482df631Smrgelse
3327482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328482df631Smrgfor as_dir in $PATH
3329482df631Smrgdo
3330482df631Smrg  IFS=$as_save_IFS
3331a67f45c3Smrg  case $as_dir in #(((
3332a67f45c3Smrg    '') as_dir=./ ;;
3333a67f45c3Smrg    */) ;;
3334a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3335a67f45c3Smrg  esac
3336482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3337a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3338482df631Smrg    ac_cv_prog_ac_ct_CC="gcc"
3339a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3340482df631Smrg    break 2
3341482df631Smrg  fi
3342482df631Smrgdone
3343482df631Smrg  done
3344482df631SmrgIFS=$as_save_IFS
3345482df631Smrg
3346482df631Smrgfi
3347482df631Smrgfi
3348482df631Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3349482df631Smrgif test -n "$ac_ct_CC"; then
3350a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3351a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3352482df631Smrgelse
3353a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354a67f45c3Smrgprintf "%s\n" "no" >&6; }
3355482df631Smrgfi
3356482df631Smrg
3357482df631Smrg  if test "x$ac_ct_CC" = x; then
3358482df631Smrg    CC=""
3359482df631Smrg  else
3360482df631Smrg    case $cross_compiling:$ac_tool_warned in
3361482df631Smrgyes:)
3362a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364482df631Smrgac_tool_warned=yes ;;
3365482df631Smrgesac
3366482df631Smrg    CC=$ac_ct_CC
3367482df631Smrg  fi
3368482df631Smrgelse
3369482df631Smrg  CC="$ac_cv_prog_CC"
3370482df631Smrgfi
3371482df631Smrg
3372482df631Smrgif test -z "$CC"; then
3373482df631Smrg          if test -n "$ac_tool_prefix"; then
3374482df631Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3375482df631Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3376a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3378a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3379a67f45c3Smrgthen :
3380a67f45c3Smrg  printf %s "(cached) " >&6
3381a67f45c3Smrgelse $as_nop
3382482df631Smrg  if test -n "$CC"; then
3383482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3384482df631Smrgelse
3385482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386482df631Smrgfor as_dir in $PATH
3387482df631Smrgdo
3388482df631Smrg  IFS=$as_save_IFS
3389a67f45c3Smrg  case $as_dir in #(((
3390a67f45c3Smrg    '') as_dir=./ ;;
3391a67f45c3Smrg    */) ;;
3392a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3393a67f45c3Smrg  esac
3394482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3395a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3396482df631Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3397a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3398482df631Smrg    break 2
3399482df631Smrg  fi
3400482df631Smrgdone
3401482df631Smrg  done
3402482df631SmrgIFS=$as_save_IFS
3403482df631Smrg
3404482df631Smrgfi
3405482df631Smrgfi
3406482df631SmrgCC=$ac_cv_prog_CC
3407482df631Smrgif test -n "$CC"; then
3408a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3410482df631Smrgelse
3411a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412a67f45c3Smrgprintf "%s\n" "no" >&6; }
3413482df631Smrgfi
3414482df631Smrg
3415482df631Smrg
3416482df631Smrg  fi
3417482df631Smrgfi
3418482df631Smrgif test -z "$CC"; then
3419482df631Smrg  # Extract the first word of "cc", so it can be a program name with args.
3420482df631Smrgset dummy cc; ac_word=$2
3421a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3423a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3424a67f45c3Smrgthen :
3425a67f45c3Smrg  printf %s "(cached) " >&6
3426a67f45c3Smrgelse $as_nop
3427482df631Smrg  if test -n "$CC"; then
3428482df631Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3429482df631Smrgelse
3430482df631Smrg  ac_prog_rejected=no
3431482df631Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432482df631Smrgfor as_dir in $PATH
3433482df631Smrgdo
3434482df631Smrg  IFS=$as_save_IFS
3435a67f45c3Smrg  case $as_dir in #(((
3436a67f45c3Smrg    '') as_dir=./ ;;
3437a67f45c3Smrg    */) ;;
3438a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3439a67f45c3Smrg  esac
3440482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3441a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442a67f45c3Smrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
344376910425Smrg       ac_prog_rejected=yes
344476910425Smrg       continue
344576910425Smrg     fi
344676910425Smrg    ac_cv_prog_CC="cc"
3447a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
344876910425Smrg    break 2
344976910425Smrg  fi
345076910425Smrgdone
3451482df631Smrg  done
3452db17cd6dSmrgIFS=$as_save_IFS
345376910425Smrg
345476910425Smrgif test $ac_prog_rejected = yes; then
345576910425Smrg  # We found a bogon in the path, so make sure we never use it.
345676910425Smrg  set dummy $ac_cv_prog_CC
345776910425Smrg  shift
345876910425Smrg  if test $# != 0; then
345976910425Smrg    # We chose a different compiler from the bogus one.
346076910425Smrg    # However, it has the same basename, so the bogon will be chosen
346176910425Smrg    # first if we set CC to just the basename; use the full file name.
346276910425Smrg    shift
3463a67f45c3Smrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
346476910425Smrg  fi
346576910425Smrgfi
346676910425Smrgfi
346776910425Smrgfi
346876910425SmrgCC=$ac_cv_prog_CC
346976910425Smrgif test -n "$CC"; then
3470a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
347276910425Smrgelse
3473a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474a67f45c3Smrgprintf "%s\n" "no" >&6; }
347576910425Smrgfi
347676910425Smrg
3477db17cd6dSmrg
347876910425Smrgfi
347976910425Smrgif test -z "$CC"; then
348076910425Smrg  if test -n "$ac_tool_prefix"; then
3481db17cd6dSmrg  for ac_prog in cl.exe
348276910425Smrg  do
348376910425Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
348476910425Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3485a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3487a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3488a67f45c3Smrgthen :
3489a67f45c3Smrg  printf %s "(cached) " >&6
3490a67f45c3Smrgelse $as_nop
349176910425Smrg  if test -n "$CC"; then
349276910425Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
349376910425Smrgelse
349476910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
349576910425Smrgfor as_dir in $PATH
349676910425Smrgdo
349776910425Smrg  IFS=$as_save_IFS
3498a67f45c3Smrg  case $as_dir in #(((
3499a67f45c3Smrg    '') as_dir=./ ;;
3500a67f45c3Smrg    */) ;;
3501a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3502a67f45c3Smrg  esac
3503482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3504a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
350576910425Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
350776910425Smrg    break 2
350876910425Smrg  fi
350976910425Smrgdone
3510482df631Smrg  done
3511db17cd6dSmrgIFS=$as_save_IFS
351276910425Smrg
351376910425Smrgfi
351476910425Smrgfi
351576910425SmrgCC=$ac_cv_prog_CC
351676910425Smrgif test -n "$CC"; then
3517a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3518a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
351976910425Smrgelse
3520a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521a67f45c3Smrgprintf "%s\n" "no" >&6; }
352276910425Smrgfi
352376910425Smrg
3524db17cd6dSmrg
352576910425Smrg    test -n "$CC" && break
352676910425Smrg  done
352776910425Smrgfi
352876910425Smrgif test -z "$CC"; then
352976910425Smrg  ac_ct_CC=$CC
3530db17cd6dSmrg  for ac_prog in cl.exe
353176910425Smrgdo
353276910425Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
353376910425Smrgset dummy $ac_prog; ac_word=$2
3534a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3536a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3537a67f45c3Smrgthen :
3538a67f45c3Smrg  printf %s "(cached) " >&6
3539a67f45c3Smrgelse $as_nop
354076910425Smrg  if test -n "$ac_ct_CC"; then
354176910425Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
354276910425Smrgelse
354376910425Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
354476910425Smrgfor as_dir in $PATH
354576910425Smrgdo
354676910425Smrg  IFS=$as_save_IFS
3547a67f45c3Smrg  case $as_dir in #(((
3548a67f45c3Smrg    '') as_dir=./ ;;
3549a67f45c3Smrg    */) ;;
3550a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3551a67f45c3Smrg  esac
3552482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3553a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
355476910425Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3555a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
355676910425Smrg    break 2
355776910425Smrg  fi
355876910425Smrgdone
3559482df631Smrg  done
3560db17cd6dSmrgIFS=$as_save_IFS
356176910425Smrg
356276910425Smrgfi
356376910425Smrgfi
356476910425Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
356576910425Smrgif test -n "$ac_ct_CC"; then
3566a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
356876910425Smrgelse
3569a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570a67f45c3Smrgprintf "%s\n" "no" >&6; }
357176910425Smrgfi
357276910425Smrg
3573db17cd6dSmrg
357476910425Smrg  test -n "$ac_ct_CC" && break
357576910425Smrgdone
357676910425Smrg
3577db17cd6dSmrg  if test "x$ac_ct_CC" = x; then
3578db17cd6dSmrg    CC=""
3579db17cd6dSmrg  else
3580db17cd6dSmrg    case $cross_compiling:$ac_tool_warned in
3581db17cd6dSmrgyes:)
3582a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584db17cd6dSmrgac_tool_warned=yes ;;
3585db17cd6dSmrgesac
3586db17cd6dSmrg    CC=$ac_ct_CC
3587db17cd6dSmrg  fi
358876910425Smrgfi
358976910425Smrg
359076910425Smrgfi
3591a67f45c3Smrgif test -z "$CC"; then
3592a67f45c3Smrg  if test -n "$ac_tool_prefix"; then
3593a67f45c3Smrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3594a67f45c3Smrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3595a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3597a67f45c3Smrgif test ${ac_cv_prog_CC+y}
3598a67f45c3Smrgthen :
3599a67f45c3Smrg  printf %s "(cached) " >&6
3600a67f45c3Smrgelse $as_nop
3601a67f45c3Smrg  if test -n "$CC"; then
3602a67f45c3Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3603a67f45c3Smrgelse
3604a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605a67f45c3Smrgfor as_dir in $PATH
3606a67f45c3Smrgdo
3607a67f45c3Smrg  IFS=$as_save_IFS
3608a67f45c3Smrg  case $as_dir in #(((
3609a67f45c3Smrg    '') as_dir=./ ;;
3610a67f45c3Smrg    */) ;;
3611a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3612a67f45c3Smrg  esac
3613a67f45c3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3614a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3615a67f45c3Smrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3616a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617a67f45c3Smrg    break 2
3618a67f45c3Smrg  fi
3619a67f45c3Smrgdone
3620a67f45c3Smrg  done
3621a67f45c3SmrgIFS=$as_save_IFS
3622a67f45c3Smrg
3623a67f45c3Smrgfi
3624a67f45c3Smrgfi
3625a67f45c3SmrgCC=$ac_cv_prog_CC
3626a67f45c3Smrgif test -n "$CC"; then
3627a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628a67f45c3Smrgprintf "%s\n" "$CC" >&6; }
3629a67f45c3Smrgelse
3630a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631a67f45c3Smrgprintf "%s\n" "no" >&6; }
3632a67f45c3Smrgfi
3633a67f45c3Smrg
3634a67f45c3Smrg
3635a67f45c3Smrgfi
3636a67f45c3Smrgif test -z "$ac_cv_prog_CC"; then
3637a67f45c3Smrg  ac_ct_CC=$CC
3638a67f45c3Smrg  # Extract the first word of "clang", so it can be a program name with args.
3639a67f45c3Smrgset dummy clang; ac_word=$2
3640a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
3642a67f45c3Smrgif test ${ac_cv_prog_ac_ct_CC+y}
3643a67f45c3Smrgthen :
3644a67f45c3Smrg  printf %s "(cached) " >&6
3645a67f45c3Smrgelse $as_nop
3646a67f45c3Smrg  if test -n "$ac_ct_CC"; then
3647a67f45c3Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3648a67f45c3Smrgelse
3649a67f45c3Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650a67f45c3Smrgfor as_dir in $PATH
3651a67f45c3Smrgdo
3652a67f45c3Smrg  IFS=$as_save_IFS
3653a67f45c3Smrg  case $as_dir in #(((
3654a67f45c3Smrg    '') as_dir=./ ;;
3655a67f45c3Smrg    */) ;;
3656a67f45c3Smrg    *) as_dir=$as_dir/ ;;
3657a67f45c3Smrg  esac
3658a67f45c3Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
3659a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3660a67f45c3Smrg    ac_cv_prog_ac_ct_CC="clang"
3661a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3662a67f45c3Smrg    break 2
3663a67f45c3Smrg  fi
3664a67f45c3Smrgdone
3665a67f45c3Smrg  done
3666a67f45c3SmrgIFS=$as_save_IFS
366776910425Smrg
3668a67f45c3Smrgfi
3669a67f45c3Smrgfi
3670a67f45c3Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3671a67f45c3Smrgif test -n "$ac_ct_CC"; then
3672a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3673a67f45c3Smrgprintf "%s\n" "$ac_ct_CC" >&6; }
3674a67f45c3Smrgelse
3675a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676a67f45c3Smrgprintf "%s\n" "no" >&6; }
3677a67f45c3Smrgfi
367876910425Smrg
3679a67f45c3Smrg  if test "x$ac_ct_CC" = x; then
3680a67f45c3Smrg    CC=""
3681a67f45c3Smrg  else
3682a67f45c3Smrg    case $cross_compiling:$ac_tool_warned in
3683a67f45c3Smrgyes:)
3684a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686a67f45c3Smrgac_tool_warned=yes ;;
3687a67f45c3Smrgesac
3688a67f45c3Smrg    CC=$ac_ct_CC
3689a67f45c3Smrg  fi
3690a67f45c3Smrgelse
3691a67f45c3Smrg  CC="$ac_cv_prog_CC"
3692a67f45c3Smrgfi
3693a67f45c3Smrg
3694a67f45c3Smrgfi
3695a67f45c3Smrg
3696a67f45c3Smrg
3697a67f45c3Smrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3699482df631Smrgas_fn_error $? "no acceptable C compiler found in \$PATH
3700482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
370176910425Smrg
370276910425Smrg# Provide some information about the compiler.
3703a67f45c3Smrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3704db17cd6dSmrgset X $ac_compile
3705db17cd6dSmrgac_compiler=$2
3706a67f45c3Smrgfor ac_option in --version -v -V -qversion -version; do
3707482df631Smrg  { { ac_try="$ac_compiler $ac_option >&5"
3708db17cd6dSmrgcase "(($ac_try" in
3709db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3711db17cd6dSmrgesac
3712482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3714482df631Smrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
371576910425Smrg  ac_status=$?
3716482df631Smrg  if test -s conftest.err; then
3717482df631Smrg    sed '10a\
3718482df631Smrg... rest of stderr output deleted ...
3719482df631Smrg         10q' conftest.err >conftest.er1
3720482df631Smrg    cat conftest.er1 >&5
3721482df631Smrg  fi
3722482df631Smrg  rm -f conftest.er1 conftest.err
3723a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724482df631Smrg  test $ac_status = 0; }
3725482df631Smrgdone
372676910425Smrg
3727482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
372876910425Smrg/* end confdefs.h.  */
372976910425Smrg
373076910425Smrgint
3731a67f45c3Smrgmain (void)
373276910425Smrg{
373376910425Smrg
373476910425Smrg  ;
373576910425Smrg  return 0;
373676910425Smrg}
373776910425Smrg_ACEOF
373876910425Smrgac_clean_files_save=$ac_clean_files
3739db17cd6dSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
374076910425Smrg# Try to create an executable without -o first, disregard a.out.
374176910425Smrg# It will help us diagnose broken compilers, and finding out an intuition
374276910425Smrg# of exeext.
3743a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3744a67f45c3Smrgprintf %s "checking whether the C compiler works... " >&6; }
3745a67f45c3Smrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3746db17cd6dSmrg
3747db17cd6dSmrg# The possible output files:
3748db17cd6dSmrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749db17cd6dSmrg
3750db17cd6dSmrgac_rmfiles=
3751db17cd6dSmrgfor ac_file in $ac_files
3752db17cd6dSmrgdo
3753db17cd6dSmrg  case $ac_file in
3754db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755db17cd6dSmrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3756db17cd6dSmrg  esac
3757db17cd6dSmrgdone
3758db17cd6dSmrgrm -f $ac_rmfiles
3759db17cd6dSmrg
3760482df631Smrgif { { ac_try="$ac_link_default"
3761db17cd6dSmrgcase "(($ac_try" in
3762db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3764db17cd6dSmrgesac
3765482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3767db17cd6dSmrg  (eval "$ac_link_default") 2>&5
376876910425Smrg  ac_status=$?
3769a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3770a67f45c3Smrg  test $ac_status = 0; }
3771a67f45c3Smrgthen :
3772db17cd6dSmrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3773db17cd6dSmrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3774db17cd6dSmrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3775db17cd6dSmrg# so that the user can short-circuit this test for compilers unknown to
3776db17cd6dSmrg# Autoconf.
3777db17cd6dSmrgfor ac_file in $ac_files ''
377876910425Smrgdo
377976910425Smrg  test -f "$ac_file" || continue
378076910425Smrg  case $ac_file in
3781db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
378276910425Smrg	;;
378376910425Smrg    [ab].out )
378476910425Smrg	# We found the default executable, but exeext='' is most
378576910425Smrg	# certainly right.
378676910425Smrg	break;;
378776910425Smrg    *.* )
3788a67f45c3Smrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3789db17cd6dSmrg	then :; else
3790db17cd6dSmrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791db17cd6dSmrg	fi
3792db17cd6dSmrg	# We set ac_cv_exeext here because the later test for it is not
3793db17cd6dSmrg	# safe: cross compilers may not add the suffix if given an `-o'
3794db17cd6dSmrg	# argument, so we may need to know it at that point already.
3795db17cd6dSmrg	# Even if this section looks crufty: it has the advantage of
3796db17cd6dSmrg	# actually working.
379776910425Smrg	break;;
379876910425Smrg    * )
379976910425Smrg	break;;
380076910425Smrg  esac
380176910425Smrgdone
3802db17cd6dSmrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
3803db17cd6dSmrg
3804a67f45c3Smrgelse $as_nop
3805db17cd6dSmrg  ac_file=''
3806db17cd6dSmrgfi
3807a67f45c3Smrgif test -z "$ac_file"
3808a67f45c3Smrgthen :
3809a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810a67f45c3Smrgprintf "%s\n" "no" >&6; }
3811a67f45c3Smrgprintf "%s\n" "$as_me: failed program was:" >&5
381276910425Smrgsed 's/^/| /' conftest.$ac_ext >&5
381376910425Smrg
3814a67f45c3Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3816482df631Smrgas_fn_error 77 "C compiler cannot create executables
3817482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
3818a67f45c3Smrgelse $as_nop
3819a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820a67f45c3Smrgprintf "%s\n" "yes" >&6; }
3821a67f45c3Smrgfi
3822a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3823a67f45c3Smrgprintf %s "checking for C compiler default output file name... " >&6; }
3824a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3825a67f45c3Smrgprintf "%s\n" "$ac_file" >&6; }
382676910425Smrgac_exeext=$ac_cv_exeext
382776910425Smrg
3828db17cd6dSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
382976910425Smrgac_clean_files=$ac_clean_files_save
3830a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3831a67f45c3Smrgprintf %s "checking for suffix of executables... " >&6; }
3832482df631Smrgif { { ac_try="$ac_link"
3833db17cd6dSmrgcase "(($ac_try" in
3834db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3836db17cd6dSmrgesac
3837482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3839db17cd6dSmrg  (eval "$ac_link") 2>&5
384076910425Smrg  ac_status=$?
3841a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842a67f45c3Smrg  test $ac_status = 0; }
3843a67f45c3Smrgthen :
384476910425Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
384576910425Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
384676910425Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
384776910425Smrg# `rm'.
384876910425Smrgfor ac_file in conftest.exe conftest conftest.*; do
384976910425Smrg  test -f "$ac_file" || continue
385076910425Smrg  case $ac_file in
3851db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
385276910425Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
385376910425Smrg	  break;;
385476910425Smrg    * ) break;;
385576910425Smrg  esac
385676910425Smrgdone
3857a67f45c3Smrgelse $as_nop
3858a67f45c3Smrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3860482df631Smrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
3861482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
386276910425Smrgfi
3863482df631Smrgrm -f conftest conftest$ac_cv_exeext
3864a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3865a67f45c3Smrgprintf "%s\n" "$ac_cv_exeext" >&6; }
386676910425Smrg
386776910425Smrgrm -f conftest.$ac_ext
386876910425SmrgEXEEXT=$ac_cv_exeext
386976910425Smrgac_exeext=$EXEEXT
3870482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871482df631Smrg/* end confdefs.h.  */
3872482df631Smrg#include <stdio.h>
3873482df631Smrgint
3874a67f45c3Smrgmain (void)
3875482df631Smrg{
3876482df631SmrgFILE *f = fopen ("conftest.out", "w");
3877482df631Smrg return ferror (f) || fclose (f) != 0;
3878482df631Smrg
3879482df631Smrg  ;
3880482df631Smrg  return 0;
3881482df631Smrg}
3882482df631Smrg_ACEOF
3883482df631Smrgac_clean_files="$ac_clean_files conftest.out"
3884482df631Smrg# Check that the compiler produces executables we can run.  If not, either
3885482df631Smrg# the compiler is broken, or we cross compile.
3886a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3887a67f45c3Smrgprintf %s "checking whether we are cross compiling... " >&6; }
3888482df631Smrgif test "$cross_compiling" != yes; then
3889482df631Smrg  { { ac_try="$ac_link"
3890482df631Smrgcase "(($ac_try" in
3891482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892482df631Smrg  *) ac_try_echo=$ac_try;;
3893482df631Smrgesac
3894482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3896482df631Smrg  (eval "$ac_link") 2>&5
3897482df631Smrg  ac_status=$?
3898a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899482df631Smrg  test $ac_status = 0; }
3900482df631Smrg  if { ac_try='./conftest$ac_cv_exeext'
3901482df631Smrg  { { case "(($ac_try" in
3902482df631Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903482df631Smrg  *) ac_try_echo=$ac_try;;
3904482df631Smrgesac
3905482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3907482df631Smrg  (eval "$ac_try") 2>&5
3908482df631Smrg  ac_status=$?
3909a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910482df631Smrg  test $ac_status = 0; }; }; then
3911482df631Smrg    cross_compiling=no
3912482df631Smrg  else
3913482df631Smrg    if test "$cross_compiling" = maybe; then
3914482df631Smrg	cross_compiling=yes
3915482df631Smrg    else
3916a67f45c3Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3918a67f45c3Smrgas_fn_error 77 "cannot run C compiled programs.
3919482df631SmrgIf you meant to cross compile, use \`--host'.
3920482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
3921482df631Smrg    fi
3922482df631Smrg  fi
3923482df631Smrgfi
3924a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3925a67f45c3Smrgprintf "%s\n" "$cross_compiling" >&6; }
3926482df631Smrg
3927482df631Smrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3928482df631Smrgac_clean_files=$ac_clean_files_save
3929a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930a67f45c3Smrgprintf %s "checking for suffix of object files... " >&6; }
3931a67f45c3Smrgif test ${ac_cv_objext+y}
3932a67f45c3Smrgthen :
3933a67f45c3Smrg  printf %s "(cached) " >&6
3934a67f45c3Smrgelse $as_nop
3935482df631Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
393676910425Smrg/* end confdefs.h.  */
393776910425Smrg
393876910425Smrgint
3939a67f45c3Smrgmain (void)
394076910425Smrg{
394176910425Smrg
394276910425Smrg  ;
394376910425Smrg  return 0;
394476910425Smrg}
394576910425Smrg_ACEOF
394676910425Smrgrm -f conftest.o conftest.obj
3947482df631Smrgif { { ac_try="$ac_compile"
3948db17cd6dSmrgcase "(($ac_try" in
3949db17cd6dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950db17cd6dSmrg  *) ac_try_echo=$ac_try;;
3951db17cd6dSmrgesac
3952482df631Smrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953a67f45c3Smrgprintf "%s\n" "$ac_try_echo"; } >&5
3954db17cd6dSmrg  (eval "$ac_compile") 2>&5
395576910425Smrg  ac_status=$?
3956a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957a67f45c3Smrg  test $ac_status = 0; }
3958a67f45c3Smrgthen :
3959db17cd6dSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
3960db17cd6dSmrg  test -f "$ac_file" || continue;
396176910425Smrg  case $ac_file in
3962db17cd6dSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
396376910425Smrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
396476910425Smrg       break;;
396576910425Smrg  esac
396676910425Smrgdone
3967a67f45c3Smrgelse $as_nop
3968a67f45c3Smrg  printf "%s\n" "$as_me: failed program was:" >&5
396976910425Smrgsed 's/^/| /' conftest.$ac_ext >&5
397076910425Smrg
3971a67f45c3Smrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3973482df631Smrgas_fn_error $? "cannot compute suffix of object files: cannot compile
3974482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
397576910425Smrgfi
397676910425Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
397776910425Smrgfi
3978a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3979a67f45c3Smrgprintf "%s\n" "$ac_cv_objext" >&6; }
398076910425SmrgOBJEXT=$ac_cv_objext
398176910425Smrgac_objext=$OBJEXT
3982a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3983a67f45c3Smrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3984a67f45c3Smrgif test ${ac_cv_c_compiler_gnu+y}
3985a67f45c3Smrgthen :
3986a67f45c3Smrg  printf %s "(cached) " >&6
3987a67f45c3Smrgelse $as_nop
3988482df631Smrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
398976910425Smrg/* end confdefs.h.  */
399076910425Smrg
399176910425Smrgint
3992a67f45c3Smrgmain (void)
399376910425Smrg{
399476910425Smrg#ifndef __GNUC__
399576910425Smrg       choke me
399676910425Smrg#endif
399776910425Smrg
399876910425Smrg  ;
399976910425Smrg  return 0;
400076910425Smrg}
400176910425Smrg_ACEOF
4002a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4003a67f45c3Smrgthen :
400476910425Smrg  ac_compiler_gnu=yes
4005a67f45c3Smrgelse $as_nop
4006482df631Smrg  ac_compiler_gnu=no
400776910425Smrgfi
4008a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
400976910425Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
401076910425Smrg
401176910425Smrgfi
4012a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4013a67f45c3Smrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4014a67f45c3Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4015a67f45c3Smrg
4016db17cd6dSmrgif test $ac_compiler_gnu = yes; then
4017db17cd6dSmrg  GCC=yes
4018db17cd6dSmrgelse
4019db17cd6dSmrg  GCC=
4020db17cd6dSmrgfi
4021a67f45c3Smrgac_test_CFLAGS=${CFLAGS+y}
402276910425Smrgac_save_CFLAGS=$CFLAGS
4023a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4024a67f45c3Smrgprintf %s "checking whether $CC accepts -g... " >&6; }
4025a67f45c3Smrgif test ${ac_cv_prog_cc_g+y}
4026a67f45c3Smrgthen :
4027a67f45c3Smrg  printf %s "(cached) " >&6
4028a67f45c3Smrgelse $as_nop
4029db17cd6dSmrg  ac_save_c_werror_flag=$ac_c_werror_flag
4030db17cd6dSmrg   ac_c_werror_flag=yes
4031db17cd6dSmrg   ac_cv_prog_cc_g=no
4032db17cd6dSmrg   CFLAGS="-g"
4033482df631Smrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
403476910425Smrg/* end confdefs.h.  */
403576910425Smrg
403676910425Smrgint
4037a67f45c3Smrgmain (void)
403876910425Smrg{
403976910425Smrg
404076910425Smrg  ;
404176910425Smrg  return 0;
404276910425Smrg}
404376910425Smrg_ACEOF
4044a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4045a67f45c3Smrgthen :
4046db17cd6dSmrg  ac_cv_prog_cc_g=yes
4047a67f45c3Smrgelse $as_nop
4048482df631Smrg  CFLAGS=""
4049482df631Smrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050db17cd6dSmrg/* end confdefs.h.  */
4051db17cd6dSmrg
4052db17cd6dSmrgint
4053a67f45c3Smrgmain (void)
4054db17cd6dSmrg{
4055db17cd6dSmrg
4056db17cd6dSmrg  ;
4057db17cd6dSmrg  return 0;
4058db17cd6dSmrg}
4059db17cd6dSmrg_ACEOF
4060a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4061a67f45c3Smrgthen :
4062db17cd6dSmrg
4063a67f45c3Smrgelse $as_nop
4064482df631Smrg  ac_c_werror_flag=$ac_save_c_werror_flag
4065db17cd6dSmrg	 CFLAGS="-g"
4066482df631Smrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067db17cd6dSmrg/* end confdefs.h.  */
4068db17cd6dSmrg
4069db17cd6dSmrgint
4070a67f45c3Smrgmain (void)
4071db17cd6dSmrg{
4072db17cd6dSmrg
4073db17cd6dSmrg  ;
4074db17cd6dSmrg  return 0;
4075db17cd6dSmrg}
4076db17cd6dSmrg_ACEOF
4077a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4078a67f45c3Smrgthen :
407976910425Smrg  ac_cv_prog_cc_g=yes
4080db17cd6dSmrgfi
4081a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
408276910425Smrgfi
4083a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4084db17cd6dSmrgfi
4085a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4086db17cd6dSmrg   ac_c_werror_flag=$ac_save_c_werror_flag
408776910425Smrgfi
4088a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4089a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4090a67f45c3Smrgif test $ac_test_CFLAGS; then
409176910425Smrg  CFLAGS=$ac_save_CFLAGS
409276910425Smrgelif test $ac_cv_prog_cc_g = yes; then
409376910425Smrg  if test "$GCC" = yes; then
409476910425Smrg    CFLAGS="-g -O2"
409576910425Smrg  else
409676910425Smrg    CFLAGS="-g"
409776910425Smrg  fi
409876910425Smrgelse
409976910425Smrg  if test "$GCC" = yes; then
410076910425Smrg    CFLAGS="-O2"
410176910425Smrg  else
410276910425Smrg    CFLAGS=
410376910425Smrg  fi
410476910425Smrgfi
4105a67f45c3Smrgac_prog_cc_stdc=no
4106a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4107a67f45c3Smrgthen :
4108a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4109a67f45c3Smrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4110a67f45c3Smrgif test ${ac_cv_prog_cc_c11+y}
4111a67f45c3Smrgthen :
4112a67f45c3Smrg  printf %s "(cached) " >&6
4113a67f45c3Smrgelse $as_nop
4114a67f45c3Smrg  ac_cv_prog_cc_c11=no
411576910425Smrgac_save_CC=$CC
4116482df631Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
411776910425Smrg/* end confdefs.h.  */
4118a67f45c3Smrg$ac_c_conftest_c11_program
4119a67f45c3Smrg_ACEOF
4120a67f45c3Smrgfor ac_arg in '' -std=gnu11
4121a67f45c3Smrgdo
4122a67f45c3Smrg  CC="$ac_save_CC $ac_arg"
4123a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4124a67f45c3Smrgthen :
4125a67f45c3Smrg  ac_cv_prog_cc_c11=$ac_arg
4126a67f45c3Smrgfi
4127a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4128a67f45c3Smrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4129a67f45c3Smrgdone
4130a67f45c3Smrgrm -f conftest.$ac_ext
4131a67f45c3SmrgCC=$ac_save_CC
4132a67f45c3Smrgfi
413376910425Smrg
4134a67f45c3Smrgif test "x$ac_cv_prog_cc_c11" = xno
4135a67f45c3Smrgthen :
4136a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
4138a67f45c3Smrgelse $as_nop
4139a67f45c3Smrg  if test "x$ac_cv_prog_cc_c11" = x
4140a67f45c3Smrgthen :
4141a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4142a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
4143a67f45c3Smrgelse $as_nop
4144a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4145a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4146a67f45c3Smrg     CC="$CC $ac_cv_prog_cc_c11"
4147a67f45c3Smrgfi
4148a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4149a67f45c3Smrg  ac_prog_cc_stdc=c11
4150a67f45c3Smrgfi
4151a67f45c3Smrgfi
4152a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4153a67f45c3Smrgthen :
4154a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4155a67f45c3Smrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4156a67f45c3Smrgif test ${ac_cv_prog_cc_c99+y}
4157a67f45c3Smrgthen :
4158a67f45c3Smrg  printf %s "(cached) " >&6
4159a67f45c3Smrgelse $as_nop
4160a67f45c3Smrg  ac_cv_prog_cc_c99=no
4161a67f45c3Smrgac_save_CC=$CC
4162a67f45c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163a67f45c3Smrg/* end confdefs.h.  */
4164a67f45c3Smrg$ac_c_conftest_c99_program
4165a67f45c3Smrg_ACEOF
4166a67f45c3Smrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4167a67f45c3Smrgdo
4168a67f45c3Smrg  CC="$ac_save_CC $ac_arg"
4169a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4170a67f45c3Smrgthen :
4171a67f45c3Smrg  ac_cv_prog_cc_c99=$ac_arg
4172a67f45c3Smrgfi
4173a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4174a67f45c3Smrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4175a67f45c3Smrgdone
4176a67f45c3Smrgrm -f conftest.$ac_ext
4177a67f45c3SmrgCC=$ac_save_CC
4178a67f45c3Smrgfi
4179db17cd6dSmrg
4180a67f45c3Smrgif test "x$ac_cv_prog_cc_c99" = xno
4181a67f45c3Smrgthen :
4182a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4183a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
4184a67f45c3Smrgelse $as_nop
4185a67f45c3Smrg  if test "x$ac_cv_prog_cc_c99" = x
4186a67f45c3Smrgthen :
4187a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
4189a67f45c3Smrgelse $as_nop
4190a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4191a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4192a67f45c3Smrg     CC="$CC $ac_cv_prog_cc_c99"
4193a67f45c3Smrgfi
4194a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4195a67f45c3Smrg  ac_prog_cc_stdc=c99
4196a67f45c3Smrgfi
4197a67f45c3Smrgfi
4198a67f45c3Smrgif test x$ac_prog_cc_stdc = xno
4199a67f45c3Smrgthen :
4200a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4201a67f45c3Smrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4202a67f45c3Smrgif test ${ac_cv_prog_cc_c89+y}
4203a67f45c3Smrgthen :
4204a67f45c3Smrg  printf %s "(cached) " >&6
4205a67f45c3Smrgelse $as_nop
4206a67f45c3Smrg  ac_cv_prog_cc_c89=no
4207a67f45c3Smrgac_save_CC=$CC
4208a67f45c3Smrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209a67f45c3Smrg/* end confdefs.h.  */
4210a67f45c3Smrg$ac_c_conftest_c89_program
421176910425Smrg_ACEOF
4212a67f45c3Smrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
421376910425Smrgdo
421476910425Smrg  CC="$ac_save_CC $ac_arg"
4215a67f45c3Smrg  if ac_fn_c_try_compile "$LINENO"
4216a67f45c3Smrgthen :
4217db17cd6dSmrg  ac_cv_prog_cc_c89=$ac_arg
421876910425Smrgfi
4219a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4220db17cd6dSmrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
422176910425Smrgdone
4222db17cd6dSmrgrm -f conftest.$ac_ext
422376910425SmrgCC=$ac_save_CC
422476910425Smrgfi
422576910425Smrg
4226a67f45c3Smrgif test "x$ac_cv_prog_cc_c89" = xno
4227a67f45c3Smrgthen :
4228a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4229a67f45c3Smrgprintf "%s\n" "unsupported" >&6; }
4230a67f45c3Smrgelse $as_nop
4231a67f45c3Smrg  if test "x$ac_cv_prog_cc_c89" = x
4232a67f45c3Smrgthen :
4233a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234a67f45c3Smrgprintf "%s\n" "none needed" >&6; }
4235a67f45c3Smrgelse $as_nop
4236a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4237a67f45c3Smrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4238a67f45c3Smrg     CC="$CC $ac_cv_prog_cc_c89"
4239a67f45c3Smrgfi
4240a67f45c3Smrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4241a67f45c3Smrg  ac_prog_cc_stdc=c89
4242a67f45c3Smrgfi
4243482df631Smrgfi
424476910425Smrg
424576910425Smrgac_ext=c
424676910425Smrgac_cpp='$CPP $CPPFLAGS'
424776910425Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
424876910425Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
424976910425Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
425076910425Smrg
4251a67f45c3Smrg
4252a67f45c3Smrg  ac_ext=c
42539ff100acSmrgac_cpp='$CPP $CPPFLAGS'
42549ff100acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42559ff100acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42569ff100acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4257a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4258a67f45c3Smrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4259a67f45c3Smrgif test ${am_cv_prog_cc_c_o+y}
4260a67f45c3Smrgthen :
4261a67f45c3Smrg  printf %s "(cached) " >&6
4262a67f45c3Smrgelse $as_nop
42639ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42649ff100acSmrg/* end confdefs.h.  */
42659ff100acSmrg
42669ff100acSmrgint
4267a67f45c3Smrgmain (void)
42689ff100acSmrg{
42699ff100acSmrg
42709ff100acSmrg  ;
42719ff100acSmrg  return 0;
42729ff100acSmrg}
42739ff100acSmrg_ACEOF
42749ff100acSmrg  # Make sure it works both with $CC and with simple cc.
42759ff100acSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
42769ff100acSmrg  # compilers refuse to overwrite an existing .o file with -o,
42779ff100acSmrg  # though they will create one.
42789ff100acSmrg  am_cv_prog_cc_c_o=yes
42799ff100acSmrg  for am_i in 1 2; do
42809ff100acSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
42819ff100acSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
42829ff100acSmrg   ac_status=$?
42839ff100acSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42849ff100acSmrg   (exit $ac_status); } \
42859ff100acSmrg         && test -f conftest2.$ac_objext; then
42869ff100acSmrg      : OK
42879ff100acSmrg    else
42889ff100acSmrg      am_cv_prog_cc_c_o=no
42899ff100acSmrg      break
42909ff100acSmrg    fi
42919ff100acSmrg  done
42929ff100acSmrg  rm -f core conftest*
42939ff100acSmrg  unset am_i
42949ff100acSmrgfi
4295a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4296a67f45c3Smrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
42979ff100acSmrgif test "$am_cv_prog_cc_c_o" != yes; then
42989ff100acSmrg   # Losing compiler, so override with the script.
42999ff100acSmrg   # FIXME: It is wrong to rewrite CC.
43009ff100acSmrg   # But if we don't then we get into trouble of one sort or another.
43019ff100acSmrg   # A longer-term fix would be to have automake use am__CC in this case,
43029ff100acSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
43039ff100acSmrg   CC="$am_aux_dir/compile $CC"
43049ff100acSmrgfi
43059ff100acSmrgac_ext=c
43069ff100acSmrgac_cpp='$CPP $CPPFLAGS'
43079ff100acSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43089ff100acSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43099ff100acSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
43109ff100acSmrg
43119ff100acSmrg
43129ff100acSmrgdepcc="$CC"   am_compiler_list=
43139ff100acSmrg
4314a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4315a67f45c3Smrgprintf %s "checking dependency style of $depcc... " >&6; }
4316a67f45c3Smrgif test ${am_cv_CC_dependencies_compiler_type+y}
4317a67f45c3Smrgthen :
4318a67f45c3Smrg  printf %s "(cached) " >&6
4319a67f45c3Smrgelse $as_nop
432076910425Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
432176910425Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
432276910425Smrg  # making bogus files that we don't know about and never remove.  For
432376910425Smrg  # instance it was reported that on HP-UX the gcc test will end up
43249ff100acSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
43259ff100acSmrg  # in D".
43269ff100acSmrg  rm -rf conftest.dir
432776910425Smrg  mkdir conftest.dir
432876910425Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
432976910425Smrg  # using a relative directory.
433076910425Smrg  cp "$am_depcomp" conftest.dir
433176910425Smrg  cd conftest.dir
433276910425Smrg  # We will build objects and dependencies in a subdirectory because
433376910425Smrg  # it helps to detect inapplicable dependency modes.  For instance
433476910425Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
433576910425Smrg  # side effect of compilation, but ICC will put the dependencies in
433676910425Smrg  # the current directory while Tru64 will put them in the object
433776910425Smrg  # directory.
433876910425Smrg  mkdir sub
433976910425Smrg
434076910425Smrg  am_cv_CC_dependencies_compiler_type=none
434176910425Smrg  if test "$am_compiler_list" = ""; then
434276910425Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
434376910425Smrg  fi
4344db17cd6dSmrg  am__universal=false
4345db17cd6dSmrg  case " $depcc " in #(
4346db17cd6dSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4347db17cd6dSmrg     esac
4348db17cd6dSmrg
434976910425Smrg  for depmode in $am_compiler_list; do
435076910425Smrg    # Setup a source with many dependencies, because some compilers
435176910425Smrg    # like to wrap large dependency lists on column 80 (with \), and
435276910425Smrg    # we should not choose a depcomp mode which is confused by this.
435376910425Smrg    #
435476910425Smrg    # We need to recreate these files for each test, as the compiler may
435576910425Smrg    # overwrite some of them when testing with obscure command lines.
435676910425Smrg    # This happens at least with the AIX C compiler.
435776910425Smrg    : > sub/conftest.c
435876910425Smrg    for i in 1 2 3 4 5 6; do
435976910425Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
43609ff100acSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
43619ff100acSmrg      # Solaris 10 /bin/sh.
43629ff100acSmrg      echo '/* dummy */' > sub/conftst$i.h
436376910425Smrg    done
436476910425Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
436576910425Smrg
43669ff100acSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4367db17cd6dSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
43689ff100acSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
43699ff100acSmrg    # versions had trouble with output in subdirs.
4370db17cd6dSmrg    am__obj=sub/conftest.${OBJEXT-o}
4371db17cd6dSmrg    am__minus_obj="-o $am__obj"
437276910425Smrg    case $depmode in
4373db17cd6dSmrg    gcc)
4374db17cd6dSmrg      # This depmode causes a compiler race in universal mode.
4375db17cd6dSmrg      test "$am__universal" = false || continue
4376db17cd6dSmrg      ;;
437776910425Smrg    nosideeffect)
43789ff100acSmrg      # After this tag, mechanisms are not by side-effect, so they'll
43799ff100acSmrg      # only be used when explicitly requested.
438076910425Smrg      if test "x$enable_dependency_tracking" = xyes; then
438176910425Smrg	continue
438276910425Smrg      else
438376910425Smrg	break
438476910425Smrg      fi
438576910425Smrg      ;;
43869ff100acSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
43879ff100acSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
4388db17cd6dSmrg      # not run yet.  These depmodes are late enough in the game, and
4389db17cd6dSmrg      # so weak that their functioning should not be impacted.
4390db17cd6dSmrg      am__obj=conftest.${OBJEXT-o}
4391db17cd6dSmrg      am__minus_obj=
4392db17cd6dSmrg      ;;
439376910425Smrg    none) break ;;
439476910425Smrg    esac
439576910425Smrg    if depmode=$depmode \
4396db17cd6dSmrg       source=sub/conftest.c object=$am__obj \
439776910425Smrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398db17cd6dSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
439976910425Smrg         >/dev/null 2>conftest.err &&
4400db17cd6dSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
440176910425Smrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402db17cd6dSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
440376910425Smrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
440476910425Smrg      # icc doesn't choke on unknown options, it will just issue warnings
440576910425Smrg      # or remarks (even with -Werror).  So we grep stderr for any message
440676910425Smrg      # that says an option was ignored or not supported.
440776910425Smrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
440876910425Smrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4409a67f45c3Smrg      # The diagnosis changed in icc 8.0:
4410a67f45c3Smrg      #   icc: Command line remark: option '-MP' not supported
4411a67f45c3Smrg      if (grep 'ignoring option' conftest.err ||
4412a67f45c3Smrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413a67f45c3Smrg        am_cv_CC_dependencies_compiler_type=$depmode
4414a67f45c3Smrg        break
4415a67f45c3Smrg      fi
4416db17cd6dSmrg    fi
4417db17cd6dSmrg  done
4418db17cd6dSmrg
4419a67f45c3Smrg  cd ..
4420a67f45c3Smrg  rm -rf conftest.dir
4421db17cd6dSmrgelse
4422a67f45c3Smrg  am_cv_CC_dependencies_compiler_type=none
4423db17cd6dSmrgfi
4424db17cd6dSmrg
4425db17cd6dSmrgfi
4426a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4427a67f45c3Smrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4428a67f45c3SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4429db17cd6dSmrg
4430a67f45c3Smrg if
4431a67f45c3Smrg  test "x$enable_dependency_tracking" != xno \
4432a67f45c3Smrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4433a67f45c3Smrg  am__fastdepCC_TRUE=
4434a67f45c3Smrg  am__fastdepCC_FALSE='#'
4435db17cd6dSmrgelse
4436a67f45c3Smrg  am__fastdepCC_TRUE='#'
4437a67f45c3Smrg  am__fastdepCC_FALSE=
4438db17cd6dSmrgfi
4439db17cd6dSmrg
4440db17cd6dSmrg
4441db17cd6dSmrg
4442a67f45c3Smrg
4443a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4444a67f45c3Smrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4445a67f45c3Smrgif test ${ac_cv_c_undeclared_builtin_options+y}
4446a67f45c3Smrgthen :
4447a67f45c3Smrg  printf %s "(cached) " >&6
4448a67f45c3Smrgelse $as_nop
4449a67f45c3Smrg  ac_save_CFLAGS=$CFLAGS
4450a67f45c3Smrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4451a67f45c3Smrg   for ac_arg in '' -fno-builtin; do
4452a67f45c3Smrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4453a67f45c3Smrg     # This test program should *not* compile successfully.
4454a67f45c3Smrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455db17cd6dSmrg/* end confdefs.h.  */
4456db17cd6dSmrg
4457db17cd6dSmrgint
4458a67f45c3Smrgmain (void)
4459db17cd6dSmrg{
4460a67f45c3Smrg(void) strchr;
4461db17cd6dSmrg  ;
4462db17cd6dSmrg  return 0;
4463db17cd6dSmrg}
4464db17cd6dSmrg_ACEOF
4465a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4466a67f45c3Smrgthen :
4467db17cd6dSmrg
4468a67f45c3Smrgelse $as_nop
4469a67f45c3Smrg  # This test program should compile successfully.
4470a67f45c3Smrg        # No library function is consistently available on
4471a67f45c3Smrg        # freestanding implementations, so test against a dummy
4472a67f45c3Smrg        # declaration.  Include always-available headers on the
4473a67f45c3Smrg        # off chance that they somehow elicit warnings.
4474a67f45c3Smrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475db17cd6dSmrg/* end confdefs.h.  */
4476a67f45c3Smrg#include <float.h>
4477a67f45c3Smrg#include <limits.h>
4478a67f45c3Smrg#include <stdarg.h>
4479a67f45c3Smrg#include <stddef.h>
4480a67f45c3Smrgextern void ac_decl (int, char *);
4481db17cd6dSmrg
4482db17cd6dSmrgint
4483a67f45c3Smrgmain (void)
4484db17cd6dSmrg{
4485a67f45c3Smrg(void) ac_decl (0, (char *) 0);
4486a67f45c3Smrg  (void) ac_decl;
4487a67f45c3Smrg
4488a67f45c3Smrg  ;
4489db17cd6dSmrg  return 0;
4490db17cd6dSmrg}
4491db17cd6dSmrg_ACEOF
4492a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4493a67f45c3Smrgthen :
4494a67f45c3Smrg  if test x"$ac_arg" = x
4495a67f45c3Smrgthen :
4496a67f45c3Smrg  ac_cv_c_undeclared_builtin_options='none needed'
4497a67f45c3Smrgelse $as_nop
4498a67f45c3Smrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4499db17cd6dSmrgfi
4500a67f45c3Smrg          break
4501db17cd6dSmrgfi
4502a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4503db17cd6dSmrgfi
4504a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4505a67f45c3Smrg    done
4506a67f45c3Smrg    CFLAGS=$ac_save_CFLAGS
4507a67f45c3Smrg
4508a67f45c3Smrgfi
4509a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4510a67f45c3Smrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4511a67f45c3Smrg  case $ac_cv_c_undeclared_builtin_options in #(
4512a67f45c3Smrg  'cannot detect') :
4513a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4515a67f45c3Smrgas_fn_error $? "cannot make $CC report undeclared builtins
4516a67f45c3SmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4517a67f45c3Smrg  'none needed') :
4518a67f45c3Smrg    ac_c_undeclared_builtin_options='' ;; #(
4519a67f45c3Smrg  *) :
4520a67f45c3Smrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4521a67f45c3Smrgesac
4522db17cd6dSmrg
4523a67f45c3Smrgac_header= ac_cache=
4524a67f45c3Smrgfor ac_item in $ac_header_c_list
4525a67f45c3Smrgdo
4526a67f45c3Smrg  if test $ac_cache; then
4527a67f45c3Smrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4528a67f45c3Smrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4529a67f45c3Smrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4530a67f45c3Smrg    fi
4531a67f45c3Smrg    ac_header= ac_cache=
4532a67f45c3Smrg  elif test $ac_header; then
4533a67f45c3Smrg    ac_cache=$ac_item
4534a67f45c3Smrg  else
4535a67f45c3Smrg    ac_header=$ac_item
4536a67f45c3Smrg  fi
4537a67f45c3Smrgdone
4538db17cd6dSmrg
4539db17cd6dSmrg
4540db17cd6dSmrg
4541db17cd6dSmrg
4542db17cd6dSmrg
4543db17cd6dSmrg
4544db17cd6dSmrg
4545db17cd6dSmrg
4546a67f45c3Smrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4547a67f45c3Smrgthen :
45489ff100acSmrg
4549a67f45c3Smrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
45509ff100acSmrg
4551a67f45c3Smrgfi
4552a67f45c3Smrg
4553a67f45c3Smrg
4554a67f45c3Smrg
4555a67f45c3Smrg
4556a67f45c3Smrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4557a67f45c3Smrgif test "x$ac_cv_have_decl___clang__" = xyes
4558a67f45c3Smrgthen :
45599ff100acSmrg  CLANGCC="yes"
4560a67f45c3Smrgelse $as_nop
45619ff100acSmrg  CLANGCC="no"
45629ff100acSmrgfi
4563a67f45c3Smrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564a67f45c3Smrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4565a67f45c3Smrgthen :
45669ff100acSmrg  INTELCC="yes"
4567a67f45c3Smrgelse $as_nop
45689ff100acSmrg  INTELCC="no"
45699ff100acSmrgfi
4570a67f45c3Smrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571a67f45c3Smrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4572a67f45c3Smrgthen :
45739ff100acSmrg  SUNCC="yes"
4574a67f45c3Smrgelse $as_nop
45759ff100acSmrg  SUNCC="no"
45769ff100acSmrgfi
45779ff100acSmrg
45789ff100acSmrg
45799ff100acSmrg
45809ff100acSmrg
4581a67f45c3Smrg
4582a67f45c3Smrg
4583a67f45c3Smrg
4584a67f45c3Smrg
4585482df631Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4586482df631Smrg	if test -n "$ac_tool_prefix"; then
4587482df631Smrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4588482df631Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4589a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
4591a67f45c3Smrgif test ${ac_cv_path_PKG_CONFIG+y}
4592a67f45c3Smrgthen :
4593a67f45c3Smrg  printf %s "(cached) " >&6
4594a67f45c3Smrgelse $as_nop
4595482df631Smrg  case $PKG_CONFIG in
4596482df631Smrg  [\\/]* | ?:[\\/]*)
4597482df631Smrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4598482df631Smrg  ;;
4599482df631Smrg  *)
4600482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601482df631Smrgfor as_dir in $PATH
4602db17cd6dSmrgdo
4603482df631Smrg  IFS=$as_save_IFS
4604a67f45c3Smrg  case $as_dir in #(((
4605a67f45c3Smrg    '') as_dir=./ ;;
4606a67f45c3Smrg    */) ;;
4607a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4608a67f45c3Smrg  esac
4609482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4610a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4611a67f45c3Smrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4612a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4613482df631Smrg    break 2
4614482df631Smrg  fi
4615482df631Smrgdone
4616482df631Smrg  done
4617482df631SmrgIFS=$as_save_IFS
4618482df631Smrg
4619482df631Smrg  ;;
4620db17cd6dSmrgesac
4621482df631Smrgfi
4622482df631SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
4623482df631Smrgif test -n "$PKG_CONFIG"; then
4624a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4625a67f45c3Smrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4626db17cd6dSmrgelse
4627a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628a67f45c3Smrgprintf "%s\n" "no" >&6; }
4629db17cd6dSmrgfi
4630db17cd6dSmrg
4631db17cd6dSmrg
4632db17cd6dSmrgfi
4633482df631Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then
4634482df631Smrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
4635482df631Smrg  # Extract the first word of "pkg-config", so it can be a program name with args.
4636482df631Smrgset dummy pkg-config; ac_word=$2
4637a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
4639a67f45c3Smrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4640a67f45c3Smrgthen :
4641a67f45c3Smrg  printf %s "(cached) " >&6
4642a67f45c3Smrgelse $as_nop
4643482df631Smrg  case $ac_pt_PKG_CONFIG in
4644482df631Smrg  [\\/]* | ?:[\\/]*)
4645482df631Smrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4646482df631Smrg  ;;
4647db17cd6dSmrg  *)
4648482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649482df631Smrgfor as_dir in $PATH
4650482df631Smrgdo
4651482df631Smrg  IFS=$as_save_IFS
4652a67f45c3Smrg  case $as_dir in #(((
4653a67f45c3Smrg    '') as_dir=./ ;;
4654a67f45c3Smrg    */) ;;
4655a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4656a67f45c3Smrg  esac
4657482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4658a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4659a67f45c3Smrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4660a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4661482df631Smrg    break 2
4662482df631Smrg  fi
4663482df631Smrgdone
4664482df631Smrg  done
4665482df631SmrgIFS=$as_save_IFS
4666482df631Smrg
4667482df631Smrg  ;;
4668db17cd6dSmrgesac
4669482df631Smrgfi
4670482df631Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4671482df631Smrgif test -n "$ac_pt_PKG_CONFIG"; then
4672a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4673a67f45c3Smrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4674482df631Smrgelse
4675a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676a67f45c3Smrgprintf "%s\n" "no" >&6; }
4677482df631Smrgfi
4678db17cd6dSmrg
4679482df631Smrg  if test "x$ac_pt_PKG_CONFIG" = x; then
4680482df631Smrg    PKG_CONFIG=""
4681482df631Smrg  else
4682482df631Smrg    case $cross_compiling:$ac_tool_warned in
4683482df631Smrgyes:)
4684a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686482df631Smrgac_tool_warned=yes ;;
4687482df631Smrgesac
4688482df631Smrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
4689482df631Smrg  fi
4690482df631Smrgelse
4691482df631Smrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4692482df631Smrgfi
4693db17cd6dSmrg
4694482df631Smrgfi
4695482df631Smrgif test -n "$PKG_CONFIG"; then
4696482df631Smrg	_pkg_min_version=0.9.0
4697a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4698a67f45c3Smrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4699482df631Smrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4700a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4701a67f45c3Smrgprintf "%s\n" "yes" >&6; }
4702482df631Smrg	else
4703a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704a67f45c3Smrgprintf "%s\n" "no" >&6; }
4705482df631Smrg		PKG_CONFIG=""
4706482df631Smrg	fi
4707482df631Smrgfi
4708db17cd6dSmrg
4709a67f45c3Smrg
4710a67f45c3Smrg  # Make sure we can run config.sub.
4711a67f45c3Smrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4712a67f45c3Smrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4713a67f45c3Smrg
4714a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4715a67f45c3Smrgprintf %s "checking build system type... " >&6; }
4716a67f45c3Smrgif test ${ac_cv_build+y}
4717a67f45c3Smrgthen :
4718a67f45c3Smrg  printf %s "(cached) " >&6
4719a67f45c3Smrgelse $as_nop
4720db17cd6dSmrg  ac_build_alias=$build_alias
4721db17cd6dSmrgtest "x$ac_build_alias" = x &&
4722a67f45c3Smrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4723db17cd6dSmrgtest "x$ac_build_alias" = x &&
4724482df631Smrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4725a67f45c3Smrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4726a67f45c3Smrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4727db17cd6dSmrg
4728db17cd6dSmrgfi
4729a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4730a67f45c3Smrgprintf "%s\n" "$ac_cv_build" >&6; }
4731db17cd6dSmrgcase $ac_cv_build in
4732db17cd6dSmrg*-*-*) ;;
4733482df631Smrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4734db17cd6dSmrgesac
4735db17cd6dSmrgbuild=$ac_cv_build
4736db17cd6dSmrgac_save_IFS=$IFS; IFS='-'
4737db17cd6dSmrgset x $ac_cv_build
4738db17cd6dSmrgshift
4739db17cd6dSmrgbuild_cpu=$1
4740db17cd6dSmrgbuild_vendor=$2
4741db17cd6dSmrgshift; shift
4742db17cd6dSmrg# Remember, the first character of IFS is used to create $*,
4743db17cd6dSmrg# except with old shells:
4744db17cd6dSmrgbuild_os=$*
4745db17cd6dSmrgIFS=$ac_save_IFS
4746db17cd6dSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4747db17cd6dSmrg
4748db17cd6dSmrg
4749a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4750a67f45c3Smrgprintf %s "checking host system type... " >&6; }
4751a67f45c3Smrgif test ${ac_cv_host+y}
4752a67f45c3Smrgthen :
4753a67f45c3Smrg  printf %s "(cached) " >&6
4754a67f45c3Smrgelse $as_nop
4755db17cd6dSmrg  if test "x$host_alias" = x; then
4756db17cd6dSmrg  ac_cv_host=$ac_cv_build
4757db17cd6dSmrgelse
4758a67f45c3Smrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4759a67f45c3Smrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4760db17cd6dSmrgfi
4761db17cd6dSmrg
4762db17cd6dSmrgfi
4763a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4764a67f45c3Smrgprintf "%s\n" "$ac_cv_host" >&6; }
4765db17cd6dSmrgcase $ac_cv_host in
4766db17cd6dSmrg*-*-*) ;;
4767482df631Smrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4768db17cd6dSmrgesac
4769db17cd6dSmrghost=$ac_cv_host
4770db17cd6dSmrgac_save_IFS=$IFS; IFS='-'
4771db17cd6dSmrgset x $ac_cv_host
4772db17cd6dSmrgshift
4773db17cd6dSmrghost_cpu=$1
4774db17cd6dSmrghost_vendor=$2
4775db17cd6dSmrgshift; shift
4776db17cd6dSmrg# Remember, the first character of IFS is used to create $*,
4777db17cd6dSmrg# except with old shells:
4778db17cd6dSmrghost_os=$*
4779db17cd6dSmrgIFS=$ac_save_IFS
4780db17cd6dSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4781db17cd6dSmrg
4782db17cd6dSmrg
4783a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4784a67f45c3Smrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4785a67f45c3Smrgif test ${ac_cv_path_SED+y}
4786a67f45c3Smrgthen :
4787a67f45c3Smrg  printf %s "(cached) " >&6
4788a67f45c3Smrgelse $as_nop
4789482df631Smrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4790482df631Smrg     for ac_i in 1 2 3 4 5 6 7; do
4791482df631Smrg       ac_script="$ac_script$as_nl$ac_script"
4792482df631Smrg     done
4793482df631Smrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4794482df631Smrg     { ac_script=; unset ac_script;}
4795482df631Smrg     if test -z "$SED"; then
4796482df631Smrg  ac_path_SED_found=false
4797482df631Smrg  # Loop through the user's path and test for each of PROGNAME-LIST
4798482df631Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799482df631Smrgfor as_dir in $PATH
4800482df631Smrgdo
4801482df631Smrg  IFS=$as_save_IFS
4802a67f45c3Smrg  case $as_dir in #(((
4803a67f45c3Smrg    '') as_dir=./ ;;
4804a67f45c3Smrg    */) ;;
4805a67f45c3Smrg    *) as_dir=$as_dir/ ;;
4806a67f45c3Smrg  esac
4807a67f45c3Smrg    for ac_prog in sed gsed
4808a67f45c3Smrg   do
4809482df631Smrg    for ac_exec_ext in '' $ac_executable_extensions; do
4810a67f45c3Smrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
48119ff100acSmrg      as_fn_executable_p "$ac_path_SED" || continue
4812482df631Smrg# Check for GNU ac_path_SED and select it if it is found.
4813482df631Smrg  # Check for GNU $ac_path_SED
4814482df631Smrgcase `"$ac_path_SED" --version 2>&1` in
4815482df631Smrg*GNU*)
4816482df631Smrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4817482df631Smrg*)
4818482df631Smrg  ac_count=0
4819a67f45c3Smrg  printf %s 0123456789 >"conftest.in"
4820482df631Smrg  while :
4821482df631Smrg  do
4822482df631Smrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
4823482df631Smrg    mv "conftest.tmp" "conftest.in"
4824482df631Smrg    cp "conftest.in" "conftest.nl"
4825a67f45c3Smrg    printf "%s\n" '' >> "conftest.nl"
4826482df631Smrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4827482df631Smrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4828482df631Smrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
4829482df631Smrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
4830482df631Smrg      # Best one so far, save it but keep looking for a better one
4831482df631Smrg      ac_cv_path_SED="$ac_path_SED"
4832482df631Smrg      ac_path_SED_max=$ac_count
4833482df631Smrg    fi
4834482df631Smrg    # 10*(2^10) chars as input seems more than enough
4835482df631Smrg    test $ac_count -gt 10 && break
4836482df631Smrg  done
4837482df631Smrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4838482df631Smrgesac
4839482df631Smrg
4840482df631Smrg      $ac_path_SED_found && break 3
4841482df631Smrg    done
4842482df631Smrg  done
4843482df631Smrg  done
4844482df631SmrgIFS=$as_save_IFS
4845482df631Smrg  if test -z "$ac_cv_path_SED"; then
4846482df631Smrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4847482df631Smrg  fi
4848482df631Smrgelse
4849482df631Smrg  ac_cv_path_SED=$SED
4850482df631Smrgfi
4851482df631Smrg
4852482df631Smrgfi
4853a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4854a67f45c3Smrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
4855482df631Smrg SED="$ac_cv_path_SED"
4856482df631Smrg  rm -f conftest.sed
4857482df631Smrg
4858482df631Smrg
4859db17cd6dSmrg
4860db17cd6dSmrg
4861db17cd6dSmrg
48629ff100acSmrg
48639ff100acSmrg# Check whether --enable-selective-werror was given.
4864a67f45c3Smrgif test ${enable_selective_werror+y}
4865a67f45c3Smrgthen :
48669ff100acSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4867a67f45c3Smrgelse $as_nop
48689ff100acSmrg  SELECTIVE_WERROR=yes
4869db17cd6dSmrgfi
4870db17cd6dSmrg
48719ff100acSmrg
48729ff100acSmrg
48739ff100acSmrg
48749ff100acSmrg
48759ff100acSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
48769ff100acSmrgif test "x$SUNCC" = "xyes"; then
48779ff100acSmrg    BASE_CFLAGS="-v"
48789ff100acSmrgelse
48799ff100acSmrg    BASE_CFLAGS=""
4880db17cd6dSmrgfi
4881db17cd6dSmrg
48829ff100acSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4883db17cd6dSmrg
4884db17cd6dSmrg
4885db17cd6dSmrg
4886db17cd6dSmrg
4887db17cd6dSmrg
4888db17cd6dSmrg
4889db17cd6dSmrg
48909ff100acSmrg
48919ff100acSmrg
48929ff100acSmrg
48939ff100acSmrg
48949ff100acSmrg
48959ff100acSmrg
48969ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
48979ff100acSmrg
48989ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
48999ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4900a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4901a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4902a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4903a67f45c3Smrgthen :
4904a67f45c3Smrg  printf %s "(cached) " >&6
4905a67f45c3Smrgelse $as_nop
49069ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49079ff100acSmrg/* end confdefs.h.  */
49089ff100acSmrgint i;
49099ff100acSmrg_ACEOF
4910a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4911a67f45c3Smrgthen :
49129ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4913a67f45c3Smrgelse $as_nop
49149ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
49159ff100acSmrgfi
4916a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49179ff100acSmrgfi
4918a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4919a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
49209ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
49219ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4922db17cd6dSmrgfi
4923db17cd6dSmrg
49249ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
49259ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49269ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927db17cd6dSmrg	fi
49289ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4929a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4930a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4931a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4932a67f45c3Smrgthen :
4933a67f45c3Smrg  printf %s "(cached) " >&6
4934a67f45c3Smrgelse $as_nop
49359ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49369ff100acSmrg/* end confdefs.h.  */
49379ff100acSmrgint i;
49389ff100acSmrg_ACEOF
4939a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
4940a67f45c3Smrgthen :
49419ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4942a67f45c3Smrgelse $as_nop
49439ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
49449ff100acSmrgfi
4945a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
49469ff100acSmrgfi
4947a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4948a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
49499ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
49509ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
4951db17cd6dSmrgfi
4952db17cd6dSmrg
49539ff100acSmrgfound="no"
4954db17cd6dSmrg
49559ff100acSmrg	if test $found = "no" ; then
49569ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
49579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
49589ff100acSmrg		fi
4959db17cd6dSmrg
49609ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
49619ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
49629ff100acSmrg		fi
4963db17cd6dSmrg
49649ff100acSmrg		CFLAGS="$CFLAGS -Wall"
4965db17cd6dSmrg
4966a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4967a67f45c3Smrgprintf %s "checking if $CC supports -Wall... " >&6; }
49689ff100acSmrg		cacheid=xorg_cv_cc_flag__Wall
4969a67f45c3Smrg		if eval test \${$cacheid+y}
4970a67f45c3Smrgthen :
4971a67f45c3Smrg  printf %s "(cached) " >&6
4972a67f45c3Smrgelse $as_nop
49739ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49749ff100acSmrg/* end confdefs.h.  */
49759ff100acSmrgint i;
49769ff100acSmrgint
4977a67f45c3Smrgmain (void)
49789ff100acSmrg{
4979db17cd6dSmrg
49809ff100acSmrg  ;
49819ff100acSmrg  return 0;
49829ff100acSmrg}
4983db17cd6dSmrg_ACEOF
4984a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
4985a67f45c3Smrgthen :
49869ff100acSmrg  eval $cacheid=yes
4987a67f45c3Smrgelse $as_nop
49889ff100acSmrg  eval $cacheid=no
49899ff100acSmrgfi
4990a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
49919ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
49929ff100acSmrgfi
4993db17cd6dSmrg
49949ff100acSmrg
49959ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
49969ff100acSmrg
49979ff100acSmrg		eval supported=\$$cacheid
4998a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
50009ff100acSmrg		if test "$supported" = "yes" ; then
50019ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
50029ff100acSmrg			found="yes"
50039ff100acSmrg		fi
5004db17cd6dSmrg	fi
5005db17cd6dSmrg
5006db17cd6dSmrg
5007db17cd6dSmrg
5008db17cd6dSmrg
5009db17cd6dSmrg
5010482df631Smrg
5011482df631Smrg
5012482df631Smrg
5013482df631Smrg
5014db17cd6dSmrg
5015db17cd6dSmrg
5016db17cd6dSmrg
5017db17cd6dSmrg
5018db17cd6dSmrg
5019db17cd6dSmrg
50209ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5021db17cd6dSmrg
50229ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
50239ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5027a67f45c3Smrgthen :
5028a67f45c3Smrg  printf %s "(cached) " >&6
5029a67f45c3Smrgelse $as_nop
50309ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50319ff100acSmrg/* end confdefs.h.  */
50329ff100acSmrgint i;
50339ff100acSmrg_ACEOF
5034a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5035a67f45c3Smrgthen :
50369ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5037a67f45c3Smrgelse $as_nop
50389ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5039db17cd6dSmrgfi
5040a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5041db17cd6dSmrgfi
5042a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5043a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
50449ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
50459ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5046db17cd6dSmrgfi
5047db17cd6dSmrg
50489ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
50499ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50509ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50519ff100acSmrg	fi
50529ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5054a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5055a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5056a67f45c3Smrgthen :
5057a67f45c3Smrg  printf %s "(cached) " >&6
5058a67f45c3Smrgelse $as_nop
50599ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50609ff100acSmrg/* end confdefs.h.  */
50619ff100acSmrgint i;
50629ff100acSmrg_ACEOF
5063a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5064a67f45c3Smrgthen :
50659ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5066a67f45c3Smrgelse $as_nop
50679ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5068db17cd6dSmrgfi
5069a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5070db17cd6dSmrgfi
5071a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5072a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
50739ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
50749ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5075db17cd6dSmrgfi
5076db17cd6dSmrg
50779ff100acSmrgfound="no"
5078db17cd6dSmrg
50799ff100acSmrg	if test $found = "no" ; then
50809ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
50819ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
50829ff100acSmrg		fi
5083db17cd6dSmrg
50849ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
50859ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
50869ff100acSmrg		fi
5087db17cd6dSmrg
50889ff100acSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5089db17cd6dSmrg
5090a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5091a67f45c3Smrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
50929ff100acSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5093a67f45c3Smrg		if eval test \${$cacheid+y}
5094a67f45c3Smrgthen :
5095a67f45c3Smrg  printf %s "(cached) " >&6
5096a67f45c3Smrgelse $as_nop
50979ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50989ff100acSmrg/* end confdefs.h.  */
50999ff100acSmrgint i;
51009ff100acSmrgint
5101a67f45c3Smrgmain (void)
51029ff100acSmrg{
5103db17cd6dSmrg
51049ff100acSmrg  ;
51059ff100acSmrg  return 0;
51069ff100acSmrg}
51079ff100acSmrg_ACEOF
5108a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5109a67f45c3Smrgthen :
51109ff100acSmrg  eval $cacheid=yes
5111a67f45c3Smrgelse $as_nop
51129ff100acSmrg  eval $cacheid=no
51139ff100acSmrgfi
5114a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
51159ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
51169ff100acSmrgfi
5117db17cd6dSmrg
5118db17cd6dSmrg
51199ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5120db17cd6dSmrg
51219ff100acSmrg		eval supported=\$$cacheid
5122a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5123a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
51249ff100acSmrg		if test "$supported" = "yes" ; then
51259ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
51269ff100acSmrg			found="yes"
51279ff100acSmrg		fi
51289ff100acSmrg	fi
5129db17cd6dSmrg
5130db17cd6dSmrg
5131db17cd6dSmrg
5132db17cd6dSmrg
5133db17cd6dSmrg
5134db17cd6dSmrg
5135db17cd6dSmrg
5136db17cd6dSmrg
513776910425Smrg
513876910425Smrg
513976910425Smrg
5140482df631Smrg
5141482df631Smrg
5142482df631Smrg
5143482df631Smrg
51449ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5145db17cd6dSmrg
51469ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
51479ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5148a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5149a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5150a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5151a67f45c3Smrgthen :
5152a67f45c3Smrg  printf %s "(cached) " >&6
5153a67f45c3Smrgelse $as_nop
51549ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51559ff100acSmrg/* end confdefs.h.  */
51569ff100acSmrgint i;
51579ff100acSmrg_ACEOF
5158a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5159a67f45c3Smrgthen :
51609ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5161a67f45c3Smrgelse $as_nop
51629ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
51639ff100acSmrgfi
5164a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51659ff100acSmrgfi
5166a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5167a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
51689ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
51699ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
51709ff100acSmrgfi
51719ff100acSmrg
51729ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
51739ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
51749ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
51759ff100acSmrg	fi
51769ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5180a67f45c3Smrgthen :
5181a67f45c3Smrg  printf %s "(cached) " >&6
5182a67f45c3Smrgelse $as_nop
51839ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51849ff100acSmrg/* end confdefs.h.  */
51859ff100acSmrgint i;
51869ff100acSmrg_ACEOF
5187a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5188a67f45c3Smrgthen :
51899ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5190a67f45c3Smrgelse $as_nop
51919ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
51929ff100acSmrgfi
5193a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
51949ff100acSmrgfi
5195a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5196a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
51979ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
51989ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
51999ff100acSmrgfi
52009ff100acSmrg
52019ff100acSmrgfound="no"
52029ff100acSmrg
52039ff100acSmrg	if test $found = "no" ; then
52049ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52069ff100acSmrg		fi
52079ff100acSmrg
52089ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
52099ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
52109ff100acSmrg		fi
52119ff100acSmrg
52129ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
52139ff100acSmrg
5214a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5215a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
52169ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5217a67f45c3Smrg		if eval test \${$cacheid+y}
5218a67f45c3Smrgthen :
5219a67f45c3Smrg  printf %s "(cached) " >&6
5220a67f45c3Smrgelse $as_nop
52219ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52229ff100acSmrg/* end confdefs.h.  */
52239ff100acSmrgint i;
52249ff100acSmrgint
5225a67f45c3Smrgmain (void)
52269ff100acSmrg{
52279ff100acSmrg
52289ff100acSmrg  ;
52299ff100acSmrg  return 0;
52309ff100acSmrg}
52319ff100acSmrg_ACEOF
5232a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5233a67f45c3Smrgthen :
52349ff100acSmrg  eval $cacheid=yes
5235a67f45c3Smrgelse $as_nop
52369ff100acSmrg  eval $cacheid=no
52379ff100acSmrgfi
5238a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
52399ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
52409ff100acSmrgfi
52419ff100acSmrg
52429ff100acSmrg
52439ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
52449ff100acSmrg
52459ff100acSmrg		eval supported=\$$cacheid
5246a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5247a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
52489ff100acSmrg		if test "$supported" = "yes" ; then
52499ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
52509ff100acSmrg			found="yes"
52519ff100acSmrg		fi
52529ff100acSmrg	fi
52539ff100acSmrg
52549ff100acSmrg
52559ff100acSmrg
52569ff100acSmrg
52579ff100acSmrg
52589ff100acSmrg
52599ff100acSmrg
52609ff100acSmrg
52619ff100acSmrg
52629ff100acSmrg
52639ff100acSmrg
52649ff100acSmrg
52659ff100acSmrg
52669ff100acSmrg
52679ff100acSmrg
52689ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
52699ff100acSmrg
52709ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
52719ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5273a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5274a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5275a67f45c3Smrgthen :
5276a67f45c3Smrg  printf %s "(cached) " >&6
5277a67f45c3Smrgelse $as_nop
52789ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52799ff100acSmrg/* end confdefs.h.  */
52809ff100acSmrgint i;
52819ff100acSmrg_ACEOF
5282a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5283a67f45c3Smrgthen :
52849ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5285a67f45c3Smrgelse $as_nop
52869ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
52879ff100acSmrgfi
5288a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52899ff100acSmrgfi
5290a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5291a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
52929ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
52939ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
52949ff100acSmrgfi
52959ff100acSmrg
52969ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
52979ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
52989ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
52999ff100acSmrg	fi
53009ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5302a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5303a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5304a67f45c3Smrgthen :
5305a67f45c3Smrg  printf %s "(cached) " >&6
5306a67f45c3Smrgelse $as_nop
53079ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53089ff100acSmrg/* end confdefs.h.  */
53099ff100acSmrgint i;
53109ff100acSmrg_ACEOF
5311a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5312a67f45c3Smrgthen :
53139ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5314a67f45c3Smrgelse $as_nop
53159ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
53169ff100acSmrgfi
5317a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
53189ff100acSmrgfi
5319a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5320a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
53219ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
53229ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
53239ff100acSmrgfi
53249ff100acSmrg
53259ff100acSmrgfound="no"
53269ff100acSmrg
53279ff100acSmrg	if test $found = "no" ; then
53289ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53299ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53309ff100acSmrg		fi
53319ff100acSmrg
53329ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53339ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53349ff100acSmrg		fi
53359ff100acSmrg
53369ff100acSmrg		CFLAGS="$CFLAGS -Wformat=2"
53379ff100acSmrg
5338a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5339a67f45c3Smrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
53409ff100acSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5341a67f45c3Smrg		if eval test \${$cacheid+y}
5342a67f45c3Smrgthen :
5343a67f45c3Smrg  printf %s "(cached) " >&6
5344a67f45c3Smrgelse $as_nop
53459ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53469ff100acSmrg/* end confdefs.h.  */
53479ff100acSmrgint i;
53489ff100acSmrgint
5349a67f45c3Smrgmain (void)
53509ff100acSmrg{
53519ff100acSmrg
53529ff100acSmrg  ;
53539ff100acSmrg  return 0;
53549ff100acSmrg}
53559ff100acSmrg_ACEOF
5356a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5357a67f45c3Smrgthen :
53589ff100acSmrg  eval $cacheid=yes
5359a67f45c3Smrgelse $as_nop
53609ff100acSmrg  eval $cacheid=no
53619ff100acSmrgfi
5362a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
53639ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
53649ff100acSmrgfi
53659ff100acSmrg
53669ff100acSmrg
53679ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
53689ff100acSmrg
53699ff100acSmrg		eval supported=\$$cacheid
5370a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5371a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
53729ff100acSmrg		if test "$supported" = "yes" ; then
53739ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
53749ff100acSmrg			found="yes"
53759ff100acSmrg		fi
53769ff100acSmrg	fi
53779ff100acSmrg
53789ff100acSmrg	if test $found = "no" ; then
53799ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
53809ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
53819ff100acSmrg		fi
53829ff100acSmrg
53839ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
53849ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
53859ff100acSmrg		fi
53869ff100acSmrg
53879ff100acSmrg		CFLAGS="$CFLAGS -Wformat"
53889ff100acSmrg
5389a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5390a67f45c3Smrgprintf %s "checking if $CC supports -Wformat... " >&6; }
53919ff100acSmrg		cacheid=xorg_cv_cc_flag__Wformat
5392a67f45c3Smrg		if eval test \${$cacheid+y}
5393a67f45c3Smrgthen :
5394a67f45c3Smrg  printf %s "(cached) " >&6
5395a67f45c3Smrgelse $as_nop
53969ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53979ff100acSmrg/* end confdefs.h.  */
53989ff100acSmrgint i;
53999ff100acSmrgint
5400a67f45c3Smrgmain (void)
54019ff100acSmrg{
54029ff100acSmrg
54039ff100acSmrg  ;
54049ff100acSmrg  return 0;
54059ff100acSmrg}
54069ff100acSmrg_ACEOF
5407a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5408a67f45c3Smrgthen :
54099ff100acSmrg  eval $cacheid=yes
5410a67f45c3Smrgelse $as_nop
54119ff100acSmrg  eval $cacheid=no
54129ff100acSmrgfi
5413a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
54149ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
54159ff100acSmrgfi
54169ff100acSmrg
54179ff100acSmrg
54189ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
54199ff100acSmrg
54209ff100acSmrg		eval supported=\$$cacheid
5421a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5422a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
54239ff100acSmrg		if test "$supported" = "yes" ; then
54249ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
54259ff100acSmrg			found="yes"
54269ff100acSmrg		fi
54279ff100acSmrg	fi
54289ff100acSmrg
54299ff100acSmrg
54309ff100acSmrg
54319ff100acSmrg
54329ff100acSmrg
54339ff100acSmrg
54349ff100acSmrg
54359ff100acSmrg
54369ff100acSmrg
54379ff100acSmrg
54389ff100acSmrg
54399ff100acSmrg
54409ff100acSmrg
54419ff100acSmrg
54429ff100acSmrg
54439ff100acSmrg
54449ff100acSmrg
54459ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
54469ff100acSmrg
54479ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
54489ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5450a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5451a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5452a67f45c3Smrgthen :
5453a67f45c3Smrg  printf %s "(cached) " >&6
5454a67f45c3Smrgelse $as_nop
54559ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54569ff100acSmrg/* end confdefs.h.  */
54579ff100acSmrgint i;
54589ff100acSmrg_ACEOF
5459a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5460a67f45c3Smrgthen :
54619ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5462a67f45c3Smrgelse $as_nop
54639ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
54649ff100acSmrgfi
5465a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54669ff100acSmrgfi
5467a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5468a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
54699ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
54709ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
54719ff100acSmrgfi
54729ff100acSmrg
54739ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
54749ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
54759ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
54769ff100acSmrg	fi
54779ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5478a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5479a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5480a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5481a67f45c3Smrgthen :
5482a67f45c3Smrg  printf %s "(cached) " >&6
5483a67f45c3Smrgelse $as_nop
54849ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54859ff100acSmrg/* end confdefs.h.  */
54869ff100acSmrgint i;
54879ff100acSmrg_ACEOF
5488a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5489a67f45c3Smrgthen :
54909ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5491a67f45c3Smrgelse $as_nop
54929ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
54939ff100acSmrgfi
5494a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
54959ff100acSmrgfi
5496a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5497a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
54989ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
54999ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
55009ff100acSmrgfi
55019ff100acSmrg
55029ff100acSmrgfound="no"
55039ff100acSmrg
55049ff100acSmrg	if test $found = "no" ; then
55059ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55069ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
55079ff100acSmrg		fi
55089ff100acSmrg
55099ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
55109ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
55119ff100acSmrg		fi
55129ff100acSmrg
55139ff100acSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
55149ff100acSmrg
5515a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5516a67f45c3Smrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
55179ff100acSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5518a67f45c3Smrg		if eval test \${$cacheid+y}
5519a67f45c3Smrgthen :
5520a67f45c3Smrg  printf %s "(cached) " >&6
5521a67f45c3Smrgelse $as_nop
55229ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55239ff100acSmrg/* end confdefs.h.  */
55249ff100acSmrgint i;
55259ff100acSmrgint
5526a67f45c3Smrgmain (void)
55279ff100acSmrg{
55289ff100acSmrg
55299ff100acSmrg  ;
55309ff100acSmrg  return 0;
55319ff100acSmrg}
55329ff100acSmrg_ACEOF
5533a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5534a67f45c3Smrgthen :
55359ff100acSmrg  eval $cacheid=yes
5536a67f45c3Smrgelse $as_nop
55379ff100acSmrg  eval $cacheid=no
55389ff100acSmrgfi
5539a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
55409ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
55419ff100acSmrgfi
55429ff100acSmrg
55439ff100acSmrg
55449ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
55459ff100acSmrg
55469ff100acSmrg		eval supported=\$$cacheid
5547a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5548a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
55499ff100acSmrg		if test "$supported" = "yes" ; then
55509ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
55519ff100acSmrg			found="yes"
55529ff100acSmrg		fi
55539ff100acSmrg	fi
55549ff100acSmrg
55559ff100acSmrg
55569ff100acSmrg
55579ff100acSmrg
55589ff100acSmrg
55599ff100acSmrg
55609ff100acSmrg
55619ff100acSmrg
55629ff100acSmrg
55639ff100acSmrg
55649ff100acSmrg
55659ff100acSmrg
55669ff100acSmrg
55679ff100acSmrg
55689ff100acSmrg
55699ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
55709ff100acSmrg
55719ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
55729ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5574a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5575a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5576a67f45c3Smrgthen :
5577a67f45c3Smrg  printf %s "(cached) " >&6
5578a67f45c3Smrgelse $as_nop
55799ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55809ff100acSmrg/* end confdefs.h.  */
55819ff100acSmrgint i;
55829ff100acSmrg_ACEOF
5583a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5584a67f45c3Smrgthen :
55859ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5586a67f45c3Smrgelse $as_nop
55879ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
55889ff100acSmrgfi
5589a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
55909ff100acSmrgfi
5591a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5592a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
55939ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
55949ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
55959ff100acSmrgfi
55969ff100acSmrg
55979ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
55989ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
55999ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56009ff100acSmrg	fi
56019ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5602a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5603a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5604a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5605a67f45c3Smrgthen :
5606a67f45c3Smrg  printf %s "(cached) " >&6
5607a67f45c3Smrgelse $as_nop
56089ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56099ff100acSmrg/* end confdefs.h.  */
56109ff100acSmrgint i;
56119ff100acSmrg_ACEOF
5612a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5613a67f45c3Smrgthen :
56149ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5615a67f45c3Smrgelse $as_nop
56169ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
56179ff100acSmrgfi
5618a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
56199ff100acSmrgfi
5620a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5621a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
56229ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
56239ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
56249ff100acSmrgfi
56259ff100acSmrg
56269ff100acSmrgfound="no"
56279ff100acSmrg
56289ff100acSmrg	if test $found = "no" ; then
56299ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
56309ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
56319ff100acSmrg		fi
56329ff100acSmrg
56339ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
56349ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
56359ff100acSmrg		fi
56369ff100acSmrg
56379ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
56389ff100acSmrg
5639a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5640a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
56419ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5642a67f45c3Smrg		if eval test \${$cacheid+y}
5643a67f45c3Smrgthen :
5644a67f45c3Smrg  printf %s "(cached) " >&6
5645a67f45c3Smrgelse $as_nop
56469ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56479ff100acSmrg/* end confdefs.h.  */
56489ff100acSmrgint i;
56499ff100acSmrgint
5650a67f45c3Smrgmain (void)
56519ff100acSmrg{
56529ff100acSmrg
56539ff100acSmrg  ;
56549ff100acSmrg  return 0;
56559ff100acSmrg}
56569ff100acSmrg_ACEOF
5657a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5658a67f45c3Smrgthen :
56599ff100acSmrg  eval $cacheid=yes
5660a67f45c3Smrgelse $as_nop
56619ff100acSmrg  eval $cacheid=no
56629ff100acSmrgfi
5663a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
56649ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
56659ff100acSmrgfi
56669ff100acSmrg
56679ff100acSmrg
56689ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
56699ff100acSmrg
56709ff100acSmrg		eval supported=\$$cacheid
5671a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5672a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
56739ff100acSmrg		if test "$supported" = "yes" ; then
56749ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
56759ff100acSmrg			found="yes"
56769ff100acSmrg		fi
56779ff100acSmrg	fi
56789ff100acSmrg
56799ff100acSmrg
56809ff100acSmrg
56819ff100acSmrg
56829ff100acSmrg
56839ff100acSmrg
56849ff100acSmrg
56859ff100acSmrg
56869ff100acSmrg
56879ff100acSmrg
56889ff100acSmrg
56899ff100acSmrg
56909ff100acSmrg
56919ff100acSmrg
56929ff100acSmrg
56939ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
56949ff100acSmrg
56959ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
56969ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5698a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5699a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5700a67f45c3Smrgthen :
5701a67f45c3Smrg  printf %s "(cached) " >&6
5702a67f45c3Smrgelse $as_nop
57039ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57049ff100acSmrg/* end confdefs.h.  */
57059ff100acSmrgint i;
57069ff100acSmrg_ACEOF
5707a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5708a67f45c3Smrgthen :
57099ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5710a67f45c3Smrgelse $as_nop
57119ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
57129ff100acSmrgfi
5713a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57149ff100acSmrgfi
5715a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5716a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
57179ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
57189ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57199ff100acSmrgfi
57209ff100acSmrg
57219ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
57229ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57239ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57249ff100acSmrg	fi
57259ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5727a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5728a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5729a67f45c3Smrgthen :
5730a67f45c3Smrg  printf %s "(cached) " >&6
5731a67f45c3Smrgelse $as_nop
57329ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57339ff100acSmrg/* end confdefs.h.  */
57349ff100acSmrgint i;
57359ff100acSmrg_ACEOF
5736a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5737a67f45c3Smrgthen :
57389ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5739a67f45c3Smrgelse $as_nop
57409ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
57419ff100acSmrgfi
5742a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57439ff100acSmrgfi
5744a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5745a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
57469ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
57479ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
57489ff100acSmrgfi
57499ff100acSmrg
57509ff100acSmrgfound="no"
57519ff100acSmrg
57529ff100acSmrg	if test $found = "no" ; then
57539ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
57549ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
57559ff100acSmrg		fi
57569ff100acSmrg
57579ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
57589ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
57599ff100acSmrg		fi
57609ff100acSmrg
57619ff100acSmrg		CFLAGS="$CFLAGS -Wnested-externs"
57629ff100acSmrg
5763a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5764a67f45c3Smrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
57659ff100acSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5766a67f45c3Smrg		if eval test \${$cacheid+y}
5767a67f45c3Smrgthen :
5768a67f45c3Smrg  printf %s "(cached) " >&6
5769a67f45c3Smrgelse $as_nop
57709ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57719ff100acSmrg/* end confdefs.h.  */
57729ff100acSmrgint i;
57739ff100acSmrgint
5774a67f45c3Smrgmain (void)
57759ff100acSmrg{
57769ff100acSmrg
57779ff100acSmrg  ;
57789ff100acSmrg  return 0;
57799ff100acSmrg}
57809ff100acSmrg_ACEOF
5781a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5782a67f45c3Smrgthen :
57839ff100acSmrg  eval $cacheid=yes
5784a67f45c3Smrgelse $as_nop
57859ff100acSmrg  eval $cacheid=no
57869ff100acSmrgfi
5787a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
57889ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
57899ff100acSmrgfi
57909ff100acSmrg
57919ff100acSmrg
57929ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
57939ff100acSmrg
57949ff100acSmrg		eval supported=\$$cacheid
5795a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5796a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
57979ff100acSmrg		if test "$supported" = "yes" ; then
57989ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
57999ff100acSmrg			found="yes"
58009ff100acSmrg		fi
58019ff100acSmrg	fi
58029ff100acSmrg
58039ff100acSmrg
58049ff100acSmrg
58059ff100acSmrg
58069ff100acSmrg
58079ff100acSmrg
58089ff100acSmrg
58099ff100acSmrg
58109ff100acSmrg
58119ff100acSmrg
58129ff100acSmrg
58139ff100acSmrg
58149ff100acSmrg
58159ff100acSmrg
58169ff100acSmrg
58179ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
58189ff100acSmrg
58199ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
58209ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5822a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5823a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5824a67f45c3Smrgthen :
5825a67f45c3Smrg  printf %s "(cached) " >&6
5826a67f45c3Smrgelse $as_nop
58279ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58289ff100acSmrg/* end confdefs.h.  */
58299ff100acSmrgint i;
58309ff100acSmrg_ACEOF
5831a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5832a67f45c3Smrgthen :
58339ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5834a67f45c3Smrgelse $as_nop
58359ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
58369ff100acSmrgfi
5837a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58389ff100acSmrgfi
5839a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5840a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
58419ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
58429ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58439ff100acSmrgfi
58449ff100acSmrg
58459ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
58469ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58479ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58489ff100acSmrg	fi
58499ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5850a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5851a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5852a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5853a67f45c3Smrgthen :
5854a67f45c3Smrg  printf %s "(cached) " >&6
5855a67f45c3Smrgelse $as_nop
58569ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58579ff100acSmrg/* end confdefs.h.  */
58589ff100acSmrgint i;
58599ff100acSmrg_ACEOF
5860a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5861a67f45c3Smrgthen :
58629ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5863a67f45c3Smrgelse $as_nop
58649ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
58659ff100acSmrgfi
5866a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
58679ff100acSmrgfi
5868a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5869a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
58709ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
58719ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
58729ff100acSmrgfi
58739ff100acSmrg
58749ff100acSmrgfound="no"
58759ff100acSmrg
58769ff100acSmrg	if test $found = "no" ; then
58779ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
58789ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
58799ff100acSmrg		fi
58809ff100acSmrg
58819ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
58829ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
58839ff100acSmrg		fi
58849ff100acSmrg
58859ff100acSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
58869ff100acSmrg
5887a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5888a67f45c3Smrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
58899ff100acSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5890a67f45c3Smrg		if eval test \${$cacheid+y}
5891a67f45c3Smrgthen :
5892a67f45c3Smrg  printf %s "(cached) " >&6
5893a67f45c3Smrgelse $as_nop
58949ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58959ff100acSmrg/* end confdefs.h.  */
58969ff100acSmrgint i;
58979ff100acSmrgint
5898a67f45c3Smrgmain (void)
58999ff100acSmrg{
59009ff100acSmrg
59019ff100acSmrg  ;
59029ff100acSmrg  return 0;
59039ff100acSmrg}
59049ff100acSmrg_ACEOF
5905a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
5906a67f45c3Smrgthen :
59079ff100acSmrg  eval $cacheid=yes
5908a67f45c3Smrgelse $as_nop
59099ff100acSmrg  eval $cacheid=no
59109ff100acSmrgfi
5911a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
59129ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
59139ff100acSmrgfi
59149ff100acSmrg
59159ff100acSmrg
59169ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
59179ff100acSmrg
59189ff100acSmrg		eval supported=\$$cacheid
5919a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5920a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
59219ff100acSmrg		if test "$supported" = "yes" ; then
59229ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
59239ff100acSmrg			found="yes"
59249ff100acSmrg		fi
59259ff100acSmrg	fi
59269ff100acSmrg
59279ff100acSmrg
59289ff100acSmrg
59299ff100acSmrg
59309ff100acSmrg
59319ff100acSmrg
59329ff100acSmrg
59339ff100acSmrg
59349ff100acSmrg
59359ff100acSmrg
59369ff100acSmrg
59379ff100acSmrg
59389ff100acSmrg
59399ff100acSmrg
59409ff100acSmrg
59419ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
59429ff100acSmrg
59439ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
59449ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5946a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5947a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5948a67f45c3Smrgthen :
5949a67f45c3Smrg  printf %s "(cached) " >&6
5950a67f45c3Smrgelse $as_nop
59519ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59529ff100acSmrg/* end confdefs.h.  */
59539ff100acSmrgint i;
59549ff100acSmrg_ACEOF
5955a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5956a67f45c3Smrgthen :
59579ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5958a67f45c3Smrgelse $as_nop
59599ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
59609ff100acSmrgfi
5961a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59629ff100acSmrgfi
5963a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5964a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
59659ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
59669ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59679ff100acSmrgfi
59689ff100acSmrg
59699ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
59709ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
59719ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
59729ff100acSmrg	fi
59739ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5974a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5975a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5976a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5977a67f45c3Smrgthen :
5978a67f45c3Smrg  printf %s "(cached) " >&6
5979a67f45c3Smrgelse $as_nop
59809ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59819ff100acSmrg/* end confdefs.h.  */
59829ff100acSmrgint i;
59839ff100acSmrg_ACEOF
5984a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
5985a67f45c3Smrgthen :
59869ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5987a67f45c3Smrgelse $as_nop
59889ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
59899ff100acSmrgfi
5990a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
59919ff100acSmrgfi
5992a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5993a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
59949ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
59959ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
59969ff100acSmrgfi
59979ff100acSmrg
59989ff100acSmrgfound="no"
59999ff100acSmrg
60009ff100acSmrg	if test $found = "no" ; then
60019ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60029ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60039ff100acSmrg		fi
60049ff100acSmrg
60059ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60069ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60079ff100acSmrg		fi
60089ff100acSmrg
60099ff100acSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
60109ff100acSmrg
6011a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6012a67f45c3Smrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
60139ff100acSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
6014a67f45c3Smrg		if eval test \${$cacheid+y}
6015a67f45c3Smrgthen :
6016a67f45c3Smrg  printf %s "(cached) " >&6
6017a67f45c3Smrgelse $as_nop
60189ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60199ff100acSmrg/* end confdefs.h.  */
60209ff100acSmrgint i;
60219ff100acSmrgint
6022a67f45c3Smrgmain (void)
60239ff100acSmrg{
60249ff100acSmrg
60259ff100acSmrg  ;
60269ff100acSmrg  return 0;
60279ff100acSmrg}
60289ff100acSmrg_ACEOF
6029a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6030a67f45c3Smrgthen :
60319ff100acSmrg  eval $cacheid=yes
6032a67f45c3Smrgelse $as_nop
60339ff100acSmrg  eval $cacheid=no
60349ff100acSmrgfi
6035a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60369ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
60379ff100acSmrgfi
60389ff100acSmrg
60399ff100acSmrg
60409ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
60419ff100acSmrg
60429ff100acSmrg		eval supported=\$$cacheid
6043a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
60459ff100acSmrg		if test "$supported" = "yes" ; then
60469ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
60479ff100acSmrg			found="yes"
60489ff100acSmrg		fi
60499ff100acSmrg	fi
60509ff100acSmrg
60519ff100acSmrg	if test $found = "no" ; then
60529ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
60539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
60549ff100acSmrg		fi
60559ff100acSmrg
60569ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
60579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
60589ff100acSmrg		fi
60599ff100acSmrg
60609ff100acSmrg		CFLAGS="$CFLAGS -fd"
60619ff100acSmrg
6062a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6063a67f45c3Smrgprintf %s "checking if $CC supports -fd... " >&6; }
60649ff100acSmrg		cacheid=xorg_cv_cc_flag__fd
6065a67f45c3Smrg		if eval test \${$cacheid+y}
6066a67f45c3Smrgthen :
6067a67f45c3Smrg  printf %s "(cached) " >&6
6068a67f45c3Smrgelse $as_nop
60699ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60709ff100acSmrg/* end confdefs.h.  */
60719ff100acSmrgint i;
60729ff100acSmrgint
6073a67f45c3Smrgmain (void)
60749ff100acSmrg{
60759ff100acSmrg
60769ff100acSmrg  ;
60779ff100acSmrg  return 0;
60789ff100acSmrg}
60799ff100acSmrg_ACEOF
6080a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6081a67f45c3Smrgthen :
60829ff100acSmrg  eval $cacheid=yes
6083a67f45c3Smrgelse $as_nop
60849ff100acSmrg  eval $cacheid=no
60859ff100acSmrgfi
6086a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
60879ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
60889ff100acSmrgfi
60899ff100acSmrg
60909ff100acSmrg
60919ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
60929ff100acSmrg
60939ff100acSmrg		eval supported=\$$cacheid
6094a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6095a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
60969ff100acSmrg		if test "$supported" = "yes" ; then
60979ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
60989ff100acSmrg			found="yes"
60999ff100acSmrg		fi
61009ff100acSmrg	fi
61019ff100acSmrg
61029ff100acSmrg
61039ff100acSmrg
61049ff100acSmrg
61059ff100acSmrg
61069ff100acSmrg
61079ff100acSmrg
61089ff100acSmrg
61099ff100acSmrg
61109ff100acSmrg
61119ff100acSmrg
61129ff100acSmrg
61139ff100acSmrg
61149ff100acSmrg
61159ff100acSmrg
61169ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
61179ff100acSmrg
61189ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
61199ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6121a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6122a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6123a67f45c3Smrgthen :
6124a67f45c3Smrg  printf %s "(cached) " >&6
6125a67f45c3Smrgelse $as_nop
61269ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61279ff100acSmrg/* end confdefs.h.  */
61289ff100acSmrgint i;
61299ff100acSmrg_ACEOF
6130a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6131a67f45c3Smrgthen :
61329ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6133a67f45c3Smrgelse $as_nop
61349ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
61359ff100acSmrgfi
6136a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61379ff100acSmrgfi
6138a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6139a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
61409ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
61419ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61429ff100acSmrgfi
61439ff100acSmrg
61449ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
61459ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61469ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61479ff100acSmrg	fi
61489ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6149a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6150a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6151a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6152a67f45c3Smrgthen :
6153a67f45c3Smrg  printf %s "(cached) " >&6
6154a67f45c3Smrgelse $as_nop
61559ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61569ff100acSmrg/* end confdefs.h.  */
61579ff100acSmrgint i;
61589ff100acSmrg_ACEOF
6159a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6160a67f45c3Smrgthen :
61619ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6162a67f45c3Smrgelse $as_nop
61639ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
61649ff100acSmrgfi
6165a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
61669ff100acSmrgfi
6167a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6168a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
61699ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
61709ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
61719ff100acSmrgfi
61729ff100acSmrg
61739ff100acSmrgfound="no"
61749ff100acSmrg
61759ff100acSmrg	if test $found = "no" ; then
61769ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
61779ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
61789ff100acSmrg		fi
61799ff100acSmrg
61809ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
61819ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
61829ff100acSmrg		fi
61839ff100acSmrg
61849ff100acSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
61859ff100acSmrg
6186a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6187a67f45c3Smrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
61889ff100acSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6189a67f45c3Smrg		if eval test \${$cacheid+y}
6190a67f45c3Smrgthen :
6191a67f45c3Smrg  printf %s "(cached) " >&6
6192a67f45c3Smrgelse $as_nop
61939ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61949ff100acSmrg/* end confdefs.h.  */
61959ff100acSmrgint i;
61969ff100acSmrgint
6197a67f45c3Smrgmain (void)
61989ff100acSmrg{
61999ff100acSmrg
62009ff100acSmrg  ;
62019ff100acSmrg  return 0;
62029ff100acSmrg}
62039ff100acSmrg_ACEOF
6204a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6205a67f45c3Smrgthen :
62069ff100acSmrg  eval $cacheid=yes
6207a67f45c3Smrgelse $as_nop
62089ff100acSmrg  eval $cacheid=no
62099ff100acSmrgfi
6210a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
62119ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
62129ff100acSmrgfi
62139ff100acSmrg
62149ff100acSmrg
62159ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
62169ff100acSmrg
62179ff100acSmrg		eval supported=\$$cacheid
6218a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6219a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
62209ff100acSmrg		if test "$supported" = "yes" ; then
62219ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
62229ff100acSmrg			found="yes"
62239ff100acSmrg		fi
62249ff100acSmrg	fi
62259ff100acSmrg
62269ff100acSmrg
62279ff100acSmrg
62289ff100acSmrg
62299ff100acSmrg
62309ff100acSmrg# This chunk adds additional warnings that could catch undesired effects.
62319ff100acSmrg
62329ff100acSmrg
62339ff100acSmrg
62349ff100acSmrg
62359ff100acSmrg
62369ff100acSmrg
62379ff100acSmrg
62389ff100acSmrg
62399ff100acSmrg
62409ff100acSmrg
62419ff100acSmrg
62429ff100acSmrg
62439ff100acSmrg
62449ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
62459ff100acSmrg
62469ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
62479ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6249a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6250a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6251a67f45c3Smrgthen :
6252a67f45c3Smrg  printf %s "(cached) " >&6
6253a67f45c3Smrgelse $as_nop
62549ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62559ff100acSmrg/* end confdefs.h.  */
62569ff100acSmrgint i;
62579ff100acSmrg_ACEOF
6258a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6259a67f45c3Smrgthen :
62609ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6261a67f45c3Smrgelse $as_nop
62629ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
62639ff100acSmrgfi
6264a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62659ff100acSmrgfi
6266a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6267a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
62689ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
62699ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
62709ff100acSmrgfi
62719ff100acSmrg
62729ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
62739ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
62749ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
62759ff100acSmrg	fi
62769ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6278a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6279a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6280a67f45c3Smrgthen :
6281a67f45c3Smrg  printf %s "(cached) " >&6
6282a67f45c3Smrgelse $as_nop
62839ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62849ff100acSmrg/* end confdefs.h.  */
62859ff100acSmrgint i;
62869ff100acSmrg_ACEOF
6287a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6288a67f45c3Smrgthen :
62899ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6290a67f45c3Smrgelse $as_nop
62919ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
62929ff100acSmrgfi
6293a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
62949ff100acSmrgfi
6295a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6296a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
62979ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
62989ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
62999ff100acSmrgfi
63009ff100acSmrg
63019ff100acSmrgfound="no"
63029ff100acSmrg
63039ff100acSmrg	if test $found = "no" ; then
63049ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63069ff100acSmrg		fi
63079ff100acSmrg
63089ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
63099ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
63109ff100acSmrg		fi
63119ff100acSmrg
63129ff100acSmrg		CFLAGS="$CFLAGS -Wunused"
63139ff100acSmrg
6314a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6315a67f45c3Smrgprintf %s "checking if $CC supports -Wunused... " >&6; }
63169ff100acSmrg		cacheid=xorg_cv_cc_flag__Wunused
6317a67f45c3Smrg		if eval test \${$cacheid+y}
6318a67f45c3Smrgthen :
6319a67f45c3Smrg  printf %s "(cached) " >&6
6320a67f45c3Smrgelse $as_nop
63219ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63229ff100acSmrg/* end confdefs.h.  */
63239ff100acSmrgint i;
63249ff100acSmrgint
6325a67f45c3Smrgmain (void)
63269ff100acSmrg{
63279ff100acSmrg
63289ff100acSmrg  ;
63299ff100acSmrg  return 0;
63309ff100acSmrg}
63319ff100acSmrg_ACEOF
6332a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6333a67f45c3Smrgthen :
63349ff100acSmrg  eval $cacheid=yes
6335a67f45c3Smrgelse $as_nop
63369ff100acSmrg  eval $cacheid=no
63379ff100acSmrgfi
6338a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
63399ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
63409ff100acSmrgfi
63419ff100acSmrg
63429ff100acSmrg
63439ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
63449ff100acSmrg
63459ff100acSmrg		eval supported=\$$cacheid
6346a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6347a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
63489ff100acSmrg		if test "$supported" = "yes" ; then
63499ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
63509ff100acSmrg			found="yes"
63519ff100acSmrg		fi
63529ff100acSmrg	fi
63539ff100acSmrg
63549ff100acSmrg
63559ff100acSmrg
63569ff100acSmrg
63579ff100acSmrg
63589ff100acSmrg
63599ff100acSmrg
63609ff100acSmrg
63619ff100acSmrg
63629ff100acSmrg
63639ff100acSmrg
63649ff100acSmrg
63659ff100acSmrg
63669ff100acSmrg
63679ff100acSmrg
63689ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
63699ff100acSmrg
63709ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
63719ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6373a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6374a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6375a67f45c3Smrgthen :
6376a67f45c3Smrg  printf %s "(cached) " >&6
6377a67f45c3Smrgelse $as_nop
63789ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63799ff100acSmrg/* end confdefs.h.  */
63809ff100acSmrgint i;
63819ff100acSmrg_ACEOF
6382a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6383a67f45c3Smrgthen :
63849ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6385a67f45c3Smrgelse $as_nop
63869ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
63879ff100acSmrgfi
6388a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
63899ff100acSmrgfi
6390a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6391a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
63929ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
63939ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
63949ff100acSmrgfi
63959ff100acSmrg
63969ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
63979ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
63989ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
63999ff100acSmrg	fi
64009ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6401a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6402a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6403a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6404a67f45c3Smrgthen :
6405a67f45c3Smrg  printf %s "(cached) " >&6
6406a67f45c3Smrgelse $as_nop
64079ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64089ff100acSmrg/* end confdefs.h.  */
64099ff100acSmrgint i;
64109ff100acSmrg_ACEOF
6411a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6412a67f45c3Smrgthen :
64139ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6414a67f45c3Smrgelse $as_nop
64159ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
64169ff100acSmrgfi
6417a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64189ff100acSmrgfi
6419a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6420a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
64219ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
64229ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
64239ff100acSmrgfi
64249ff100acSmrg
64259ff100acSmrgfound="no"
64269ff100acSmrg
64279ff100acSmrg	if test $found = "no" ; then
64289ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
64299ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
64309ff100acSmrg		fi
64319ff100acSmrg
64329ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
64339ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
64349ff100acSmrg		fi
64359ff100acSmrg
64369ff100acSmrg		CFLAGS="$CFLAGS -Wuninitialized"
64379ff100acSmrg
6438a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6439a67f45c3Smrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
64409ff100acSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6441a67f45c3Smrg		if eval test \${$cacheid+y}
6442a67f45c3Smrgthen :
6443a67f45c3Smrg  printf %s "(cached) " >&6
6444a67f45c3Smrgelse $as_nop
64459ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64469ff100acSmrg/* end confdefs.h.  */
64479ff100acSmrgint i;
64489ff100acSmrgint
6449a67f45c3Smrgmain (void)
64509ff100acSmrg{
64519ff100acSmrg
64529ff100acSmrg  ;
64539ff100acSmrg  return 0;
64549ff100acSmrg}
64559ff100acSmrg_ACEOF
6456a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6457a67f45c3Smrgthen :
64589ff100acSmrg  eval $cacheid=yes
6459a67f45c3Smrgelse $as_nop
64609ff100acSmrg  eval $cacheid=no
64619ff100acSmrgfi
6462a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
64639ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
64649ff100acSmrgfi
64659ff100acSmrg
64669ff100acSmrg
64679ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
64689ff100acSmrg
64699ff100acSmrg		eval supported=\$$cacheid
6470a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6471a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
64729ff100acSmrg		if test "$supported" = "yes" ; then
64739ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
64749ff100acSmrg			found="yes"
64759ff100acSmrg		fi
64769ff100acSmrg	fi
64779ff100acSmrg
64789ff100acSmrg
64799ff100acSmrg
64809ff100acSmrg
64819ff100acSmrg
64829ff100acSmrg
64839ff100acSmrg
64849ff100acSmrg
64859ff100acSmrg
64869ff100acSmrg
64879ff100acSmrg
64889ff100acSmrg
64899ff100acSmrg
64909ff100acSmrg
64919ff100acSmrg
64929ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
64939ff100acSmrg
64949ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
64959ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6496a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6497a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6498a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6499a67f45c3Smrgthen :
6500a67f45c3Smrg  printf %s "(cached) " >&6
6501a67f45c3Smrgelse $as_nop
65029ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65039ff100acSmrg/* end confdefs.h.  */
65049ff100acSmrgint i;
65059ff100acSmrg_ACEOF
6506a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6507a67f45c3Smrgthen :
65089ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6509a67f45c3Smrgelse $as_nop
65109ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
65119ff100acSmrgfi
6512a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
65139ff100acSmrgfi
6514a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6515a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
65169ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
65179ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65189ff100acSmrgfi
65199ff100acSmrg
65209ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
65219ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65229ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65239ff100acSmrg	fi
65249ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6526a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6527a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6528a67f45c3Smrgthen :
6529a67f45c3Smrg  printf %s "(cached) " >&6
6530a67f45c3Smrgelse $as_nop
65319ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65329ff100acSmrg/* end confdefs.h.  */
65339ff100acSmrgint i;
65349ff100acSmrg_ACEOF
6535a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6536a67f45c3Smrgthen :
65379ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6538a67f45c3Smrgelse $as_nop
65399ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
65409ff100acSmrgfi
6541a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
65429ff100acSmrgfi
6543a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6544a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
65459ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
65469ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
65479ff100acSmrgfi
65489ff100acSmrg
65499ff100acSmrgfound="no"
65509ff100acSmrg
65519ff100acSmrg	if test $found = "no" ; then
65529ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
65539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
65549ff100acSmrg		fi
65559ff100acSmrg
65569ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
65579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
65589ff100acSmrg		fi
65599ff100acSmrg
65609ff100acSmrg		CFLAGS="$CFLAGS -Wshadow"
65619ff100acSmrg
6562a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6563a67f45c3Smrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
65649ff100acSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6565a67f45c3Smrg		if eval test \${$cacheid+y}
6566a67f45c3Smrgthen :
6567a67f45c3Smrg  printf %s "(cached) " >&6
6568a67f45c3Smrgelse $as_nop
65699ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65709ff100acSmrg/* end confdefs.h.  */
65719ff100acSmrgint i;
65729ff100acSmrgint
6573a67f45c3Smrgmain (void)
65749ff100acSmrg{
65759ff100acSmrg
65769ff100acSmrg  ;
65779ff100acSmrg  return 0;
65789ff100acSmrg}
65799ff100acSmrg_ACEOF
6580a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6581a67f45c3Smrgthen :
65829ff100acSmrg  eval $cacheid=yes
6583a67f45c3Smrgelse $as_nop
65849ff100acSmrg  eval $cacheid=no
65859ff100acSmrgfi
6586a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
65879ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
65889ff100acSmrgfi
65899ff100acSmrg
65909ff100acSmrg
65919ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
65929ff100acSmrg
65939ff100acSmrg		eval supported=\$$cacheid
6594a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6595a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
65969ff100acSmrg		if test "$supported" = "yes" ; then
65979ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
65989ff100acSmrg			found="yes"
65999ff100acSmrg		fi
66009ff100acSmrg	fi
66019ff100acSmrg
66029ff100acSmrg
66039ff100acSmrg
66049ff100acSmrg
66059ff100acSmrg
66069ff100acSmrg
66079ff100acSmrg
66089ff100acSmrg
66099ff100acSmrg
66109ff100acSmrg
66119ff100acSmrg
66129ff100acSmrg
66139ff100acSmrg
66149ff100acSmrg
66159ff100acSmrg
66169ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
66179ff100acSmrg
66189ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
66199ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6621a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6622a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6623a67f45c3Smrgthen :
6624a67f45c3Smrg  printf %s "(cached) " >&6
6625a67f45c3Smrgelse $as_nop
66269ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66279ff100acSmrg/* end confdefs.h.  */
66289ff100acSmrgint i;
66299ff100acSmrg_ACEOF
6630a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6631a67f45c3Smrgthen :
66329ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6633a67f45c3Smrgelse $as_nop
66349ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
66359ff100acSmrgfi
6636a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66379ff100acSmrgfi
6638a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
66409ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
66419ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66429ff100acSmrgfi
66439ff100acSmrg
66449ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
66459ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66469ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66479ff100acSmrg	fi
66489ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6652a67f45c3Smrgthen :
6653a67f45c3Smrg  printf %s "(cached) " >&6
6654a67f45c3Smrgelse $as_nop
66559ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66569ff100acSmrg/* end confdefs.h.  */
66579ff100acSmrgint i;
66589ff100acSmrg_ACEOF
6659a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6660a67f45c3Smrgthen :
66619ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6662a67f45c3Smrgelse $as_nop
66639ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
66649ff100acSmrgfi
6665a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
66669ff100acSmrgfi
6667a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6668a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
66699ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
66709ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
66719ff100acSmrgfi
66729ff100acSmrg
66739ff100acSmrgfound="no"
66749ff100acSmrg
66759ff100acSmrg	if test $found = "no" ; then
66769ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
66779ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
66789ff100acSmrg		fi
66799ff100acSmrg
66809ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
66819ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
66829ff100acSmrg		fi
66839ff100acSmrg
66849ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
66859ff100acSmrg
6686a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6687a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
66889ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6689a67f45c3Smrg		if eval test \${$cacheid+y}
6690a67f45c3Smrgthen :
6691a67f45c3Smrg  printf %s "(cached) " >&6
6692a67f45c3Smrgelse $as_nop
66939ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
66949ff100acSmrg/* end confdefs.h.  */
66959ff100acSmrgint i;
66969ff100acSmrgint
6697a67f45c3Smrgmain (void)
66989ff100acSmrg{
66999ff100acSmrg
67009ff100acSmrg  ;
67019ff100acSmrg  return 0;
67029ff100acSmrg}
67039ff100acSmrg_ACEOF
6704a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6705a67f45c3Smrgthen :
67069ff100acSmrg  eval $cacheid=yes
6707a67f45c3Smrgelse $as_nop
67089ff100acSmrg  eval $cacheid=no
67099ff100acSmrgfi
6710a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
67119ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
67129ff100acSmrgfi
67139ff100acSmrg
67149ff100acSmrg
67159ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
67169ff100acSmrg
67179ff100acSmrg		eval supported=\$$cacheid
6718a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6719a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
67209ff100acSmrg		if test "$supported" = "yes" ; then
67219ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
67229ff100acSmrg			found="yes"
67239ff100acSmrg		fi
67249ff100acSmrg	fi
67259ff100acSmrg
67269ff100acSmrg
67279ff100acSmrg
67289ff100acSmrg
67299ff100acSmrg
67309ff100acSmrg
67319ff100acSmrg
67329ff100acSmrg
67339ff100acSmrg
67349ff100acSmrg
67359ff100acSmrg
67369ff100acSmrg
67379ff100acSmrg
67389ff100acSmrg
67399ff100acSmrg
67409ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
67419ff100acSmrg
67429ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
67439ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6744a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6745a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6746a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6747a67f45c3Smrgthen :
6748a67f45c3Smrg  printf %s "(cached) " >&6
6749a67f45c3Smrgelse $as_nop
67509ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67519ff100acSmrg/* end confdefs.h.  */
67529ff100acSmrgint i;
67539ff100acSmrg_ACEOF
6754a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6755a67f45c3Smrgthen :
67569ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6757a67f45c3Smrgelse $as_nop
67589ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
67599ff100acSmrgfi
6760a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67619ff100acSmrgfi
6762a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6763a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
67649ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
67659ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67669ff100acSmrgfi
67679ff100acSmrg
67689ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
67699ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
67709ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
67719ff100acSmrg	fi
67729ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6773a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6774a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6775a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6776a67f45c3Smrgthen :
6777a67f45c3Smrg  printf %s "(cached) " >&6
6778a67f45c3Smrgelse $as_nop
67799ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67809ff100acSmrg/* end confdefs.h.  */
67819ff100acSmrgint i;
67829ff100acSmrg_ACEOF
6783a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6784a67f45c3Smrgthen :
67859ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6786a67f45c3Smrgelse $as_nop
67879ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
67889ff100acSmrgfi
6789a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
67909ff100acSmrgfi
6791a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
67939ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
67949ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
67959ff100acSmrgfi
67969ff100acSmrg
67979ff100acSmrgfound="no"
67989ff100acSmrg
67999ff100acSmrg	if test $found = "no" ; then
68009ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68019ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68029ff100acSmrg		fi
68039ff100acSmrg
68049ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
68059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
68069ff100acSmrg		fi
68079ff100acSmrg
68089ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
68099ff100acSmrg
6810a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6811a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
68129ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6813a67f45c3Smrg		if eval test \${$cacheid+y}
6814a67f45c3Smrgthen :
6815a67f45c3Smrg  printf %s "(cached) " >&6
6816a67f45c3Smrgelse $as_nop
68179ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68189ff100acSmrg/* end confdefs.h.  */
68199ff100acSmrgint i;
68209ff100acSmrgint
6821a67f45c3Smrgmain (void)
68229ff100acSmrg{
68239ff100acSmrg
68249ff100acSmrg  ;
68259ff100acSmrg  return 0;
68269ff100acSmrg}
68279ff100acSmrg_ACEOF
6828a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6829a67f45c3Smrgthen :
68309ff100acSmrg  eval $cacheid=yes
6831a67f45c3Smrgelse $as_nop
68329ff100acSmrg  eval $cacheid=no
68339ff100acSmrgfi
6834a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
68359ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
68369ff100acSmrgfi
68379ff100acSmrg
68389ff100acSmrg
68399ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
68409ff100acSmrg
68419ff100acSmrg		eval supported=\$$cacheid
6842a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6843a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
68449ff100acSmrg		if test "$supported" = "yes" ; then
68459ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
68469ff100acSmrg			found="yes"
68479ff100acSmrg		fi
68489ff100acSmrg	fi
68499ff100acSmrg
68509ff100acSmrg
68519ff100acSmrg
68529ff100acSmrg
68539ff100acSmrg
68549ff100acSmrg
68559ff100acSmrg
68569ff100acSmrg
68579ff100acSmrg
68589ff100acSmrg
68599ff100acSmrg
68609ff100acSmrg
68619ff100acSmrg
68629ff100acSmrg
68639ff100acSmrg
68649ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
68659ff100acSmrg
68669ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
68679ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6868a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6869a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6870a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6871a67f45c3Smrgthen :
6872a67f45c3Smrg  printf %s "(cached) " >&6
6873a67f45c3Smrgelse $as_nop
68749ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68759ff100acSmrg/* end confdefs.h.  */
68769ff100acSmrgint i;
68779ff100acSmrg_ACEOF
6878a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6879a67f45c3Smrgthen :
68809ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6881a67f45c3Smrgelse $as_nop
68829ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
68839ff100acSmrgfi
6884a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
68859ff100acSmrgfi
6886a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6887a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
68889ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
68899ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
68909ff100acSmrgfi
68919ff100acSmrg
68929ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
68939ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
68949ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
68959ff100acSmrg	fi
68969ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6897a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6898a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6899a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6900a67f45c3Smrgthen :
6901a67f45c3Smrg  printf %s "(cached) " >&6
6902a67f45c3Smrgelse $as_nop
69039ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69049ff100acSmrg/* end confdefs.h.  */
69059ff100acSmrgint i;
69069ff100acSmrg_ACEOF
6907a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
6908a67f45c3Smrgthen :
69099ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6910a67f45c3Smrgelse $as_nop
69119ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
69129ff100acSmrgfi
6913a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
69149ff100acSmrgfi
6915a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6916a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
69179ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
69189ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
69199ff100acSmrgfi
69209ff100acSmrg
69219ff100acSmrgfound="no"
69229ff100acSmrg
69239ff100acSmrg	if test $found = "no" ; then
69249ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
69259ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
69269ff100acSmrg		fi
69279ff100acSmrg
69289ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
69299ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
69309ff100acSmrg		fi
69319ff100acSmrg
69329ff100acSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
69339ff100acSmrg
6934a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6935a67f45c3Smrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
69369ff100acSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6937a67f45c3Smrg		if eval test \${$cacheid+y}
6938a67f45c3Smrgthen :
6939a67f45c3Smrg  printf %s "(cached) " >&6
6940a67f45c3Smrgelse $as_nop
69419ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69429ff100acSmrg/* end confdefs.h.  */
69439ff100acSmrgint i;
69449ff100acSmrgint
6945a67f45c3Smrgmain (void)
69469ff100acSmrg{
69479ff100acSmrg
69489ff100acSmrg  ;
69499ff100acSmrg  return 0;
69509ff100acSmrg}
69519ff100acSmrg_ACEOF
6952a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
6953a67f45c3Smrgthen :
69549ff100acSmrg  eval $cacheid=yes
6955a67f45c3Smrgelse $as_nop
69569ff100acSmrg  eval $cacheid=no
69579ff100acSmrgfi
6958a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
69599ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
69609ff100acSmrgfi
69619ff100acSmrg
69629ff100acSmrg
69639ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
69649ff100acSmrg
69659ff100acSmrg		eval supported=\$$cacheid
6966a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
69689ff100acSmrg		if test "$supported" = "yes" ; then
69699ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
69709ff100acSmrg			found="yes"
69719ff100acSmrg		fi
69729ff100acSmrg	fi
69739ff100acSmrg
69749ff100acSmrg
69759ff100acSmrg
69769ff100acSmrg
69779ff100acSmrg
69789ff100acSmrg
69799ff100acSmrg
69809ff100acSmrg
69819ff100acSmrg
69829ff100acSmrg
69839ff100acSmrg
69849ff100acSmrg
69859ff100acSmrg
69869ff100acSmrg
69879ff100acSmrg
69889ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
69899ff100acSmrg
69909ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
69919ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6995a67f45c3Smrgthen :
6996a67f45c3Smrg  printf %s "(cached) " >&6
6997a67f45c3Smrgelse $as_nop
69989ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69999ff100acSmrg/* end confdefs.h.  */
70009ff100acSmrgint i;
70019ff100acSmrg_ACEOF
7002a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7003a67f45c3Smrgthen :
70049ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7005a67f45c3Smrgelse $as_nop
70069ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
70079ff100acSmrgfi
7008a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
70099ff100acSmrgfi
7010a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7011a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
70129ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
70139ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70149ff100acSmrgfi
70159ff100acSmrg
70169ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
70179ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70189ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70199ff100acSmrg	fi
70209ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7021a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7022a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7023a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7024a67f45c3Smrgthen :
7025a67f45c3Smrg  printf %s "(cached) " >&6
7026a67f45c3Smrgelse $as_nop
70279ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70289ff100acSmrg/* end confdefs.h.  */
70299ff100acSmrgint i;
70309ff100acSmrg_ACEOF
7031a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7032a67f45c3Smrgthen :
70339ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7034a67f45c3Smrgelse $as_nop
70359ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
70369ff100acSmrgfi
7037a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
70389ff100acSmrgfi
7039a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7040a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
70419ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
70429ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
70439ff100acSmrgfi
70449ff100acSmrg
70459ff100acSmrgfound="no"
70469ff100acSmrg
70479ff100acSmrg	if test $found = "no" ; then
70489ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
70499ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
70509ff100acSmrg		fi
70519ff100acSmrg
70529ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
70539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
70549ff100acSmrg		fi
70559ff100acSmrg
70569ff100acSmrg		CFLAGS="$CFLAGS -Wlogical-op"
70579ff100acSmrg
7058a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7059a67f45c3Smrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
70609ff100acSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
7061a67f45c3Smrg		if eval test \${$cacheid+y}
7062a67f45c3Smrgthen :
7063a67f45c3Smrg  printf %s "(cached) " >&6
7064a67f45c3Smrgelse $as_nop
70659ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
70669ff100acSmrg/* end confdefs.h.  */
70679ff100acSmrgint i;
70689ff100acSmrgint
7069a67f45c3Smrgmain (void)
70709ff100acSmrg{
70719ff100acSmrg
70729ff100acSmrg  ;
70739ff100acSmrg  return 0;
70749ff100acSmrg}
70759ff100acSmrg_ACEOF
7076a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7077a67f45c3Smrgthen :
70789ff100acSmrg  eval $cacheid=yes
7079a67f45c3Smrgelse $as_nop
70809ff100acSmrg  eval $cacheid=no
70819ff100acSmrgfi
7082a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
70839ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
70849ff100acSmrgfi
70859ff100acSmrg
70869ff100acSmrg
70879ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
70889ff100acSmrg
70899ff100acSmrg		eval supported=\$$cacheid
7090a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7091a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
70929ff100acSmrg		if test "$supported" = "yes" ; then
70939ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
70949ff100acSmrg			found="yes"
70959ff100acSmrg		fi
70969ff100acSmrg	fi
70979ff100acSmrg
70989ff100acSmrg
70999ff100acSmrg
71009ff100acSmrg# These are currently disabled because they are noisy.  They will be enabled
71019ff100acSmrg# in the future once the codebase is sufficiently modernized to silence
71029ff100acSmrg# them.  For now, I don't want them to drown out the other warnings.
71039ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
71049ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
71059ff100acSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
71069ff100acSmrg
71079ff100acSmrg# Turn some warnings into errors, so we don't accidently get successful builds
71089ff100acSmrg# when there are problems that should be fixed.
71099ff100acSmrg
71109ff100acSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
71119ff100acSmrg
71129ff100acSmrg
71139ff100acSmrg
71149ff100acSmrg
71159ff100acSmrg
71169ff100acSmrg
71179ff100acSmrg
71189ff100acSmrg
71199ff100acSmrg
71209ff100acSmrg
71219ff100acSmrg
71229ff100acSmrg
71239ff100acSmrg
71249ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
71259ff100acSmrg
71269ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
71279ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7129a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7130a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7131a67f45c3Smrgthen :
7132a67f45c3Smrg  printf %s "(cached) " >&6
7133a67f45c3Smrgelse $as_nop
71349ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71359ff100acSmrg/* end confdefs.h.  */
71369ff100acSmrgint i;
71379ff100acSmrg_ACEOF
7138a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7139a67f45c3Smrgthen :
71409ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7141a67f45c3Smrgelse $as_nop
71429ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
71439ff100acSmrgfi
7144a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71459ff100acSmrgfi
7146a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7147a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
71489ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
71499ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71509ff100acSmrgfi
71519ff100acSmrg
71529ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
71539ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71549ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71559ff100acSmrg	fi
71569ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7157a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7158a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7159a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7160a67f45c3Smrgthen :
7161a67f45c3Smrg  printf %s "(cached) " >&6
7162a67f45c3Smrgelse $as_nop
71639ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
71649ff100acSmrg/* end confdefs.h.  */
71659ff100acSmrgint i;
71669ff100acSmrg_ACEOF
7167a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7168a67f45c3Smrgthen :
71699ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7170a67f45c3Smrgelse $as_nop
71719ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
71729ff100acSmrgfi
7173a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
71749ff100acSmrgfi
7175a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7176a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
71779ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
71789ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
71799ff100acSmrgfi
71809ff100acSmrg
71819ff100acSmrgfound="no"
71829ff100acSmrg
71839ff100acSmrg	if test $found = "no" ; then
71849ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
71859ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
71869ff100acSmrg		fi
71879ff100acSmrg
71889ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
71899ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
71909ff100acSmrg		fi
71919ff100acSmrg
71929ff100acSmrg		CFLAGS="$CFLAGS -Werror=implicit"
71939ff100acSmrg
7194a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7195a67f45c3Smrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
71969ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7197a67f45c3Smrg		if eval test \${$cacheid+y}
7198a67f45c3Smrgthen :
7199a67f45c3Smrg  printf %s "(cached) " >&6
7200a67f45c3Smrgelse $as_nop
72019ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72029ff100acSmrg/* end confdefs.h.  */
72039ff100acSmrgint i;
72049ff100acSmrgint
7205a67f45c3Smrgmain (void)
72069ff100acSmrg{
72079ff100acSmrg
72089ff100acSmrg  ;
72099ff100acSmrg  return 0;
72109ff100acSmrg}
72119ff100acSmrg_ACEOF
7212a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7213a67f45c3Smrgthen :
72149ff100acSmrg  eval $cacheid=yes
7215a67f45c3Smrgelse $as_nop
72169ff100acSmrg  eval $cacheid=no
72179ff100acSmrgfi
7218a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72199ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
72209ff100acSmrgfi
72219ff100acSmrg
72229ff100acSmrg
72239ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72249ff100acSmrg
72259ff100acSmrg		eval supported=\$$cacheid
7226a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
72289ff100acSmrg		if test "$supported" = "yes" ; then
72299ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
72309ff100acSmrg			found="yes"
72319ff100acSmrg		fi
72329ff100acSmrg	fi
72339ff100acSmrg
72349ff100acSmrg	if test $found = "no" ; then
72359ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
72369ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
72379ff100acSmrg		fi
72389ff100acSmrg
72399ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
72409ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
72419ff100acSmrg		fi
72429ff100acSmrg
72439ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72449ff100acSmrg
7245a67f45c3Smrg		{ 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
7246a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
72479ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7248a67f45c3Smrg		if eval test \${$cacheid+y}
7249a67f45c3Smrgthen :
7250a67f45c3Smrg  printf %s "(cached) " >&6
7251a67f45c3Smrgelse $as_nop
72529ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
72539ff100acSmrg/* end confdefs.h.  */
72549ff100acSmrgint i;
72559ff100acSmrgint
7256a67f45c3Smrgmain (void)
72579ff100acSmrg{
72589ff100acSmrg
72599ff100acSmrg  ;
72609ff100acSmrg  return 0;
72619ff100acSmrg}
72629ff100acSmrg_ACEOF
7263a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7264a67f45c3Smrgthen :
72659ff100acSmrg  eval $cacheid=yes
7266a67f45c3Smrgelse $as_nop
72679ff100acSmrg  eval $cacheid=no
72689ff100acSmrgfi
7269a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
72709ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
72719ff100acSmrgfi
72729ff100acSmrg
72739ff100acSmrg
72749ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
72759ff100acSmrg
72769ff100acSmrg		eval supported=\$$cacheid
7277a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7278a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
72799ff100acSmrg		if test "$supported" = "yes" ; then
72809ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
72819ff100acSmrg			found="yes"
72829ff100acSmrg		fi
72839ff100acSmrg	fi
72849ff100acSmrg
72859ff100acSmrg
72869ff100acSmrg
72879ff100acSmrg
72889ff100acSmrg
72899ff100acSmrg
72909ff100acSmrg
72919ff100acSmrg
72929ff100acSmrg
72939ff100acSmrg
72949ff100acSmrg
72959ff100acSmrg
72969ff100acSmrg
72979ff100acSmrg
72989ff100acSmrg
72999ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
73009ff100acSmrg
73019ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
73029ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7304a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7305a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7306a67f45c3Smrgthen :
7307a67f45c3Smrg  printf %s "(cached) " >&6
7308a67f45c3Smrgelse $as_nop
73099ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73109ff100acSmrg/* end confdefs.h.  */
73119ff100acSmrgint i;
73129ff100acSmrg_ACEOF
7313a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7314a67f45c3Smrgthen :
73159ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7316a67f45c3Smrgelse $as_nop
73179ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
73189ff100acSmrgfi
7319a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
73209ff100acSmrgfi
7321a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7322a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
73239ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
73249ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73259ff100acSmrgfi
73269ff100acSmrg
73279ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
73289ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73299ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73309ff100acSmrg	fi
73319ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7332a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7333a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7334a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7335a67f45c3Smrgthen :
7336a67f45c3Smrg  printf %s "(cached) " >&6
7337a67f45c3Smrgelse $as_nop
73389ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73399ff100acSmrg/* end confdefs.h.  */
73409ff100acSmrgint i;
73419ff100acSmrg_ACEOF
7342a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7343a67f45c3Smrgthen :
73449ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7345a67f45c3Smrgelse $as_nop
73469ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
73479ff100acSmrgfi
7348a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
73499ff100acSmrgfi
7350a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7351a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
73529ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
73539ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
73549ff100acSmrgfi
73559ff100acSmrg
73569ff100acSmrgfound="no"
73579ff100acSmrg
73589ff100acSmrg	if test $found = "no" ; then
73599ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
73609ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
73619ff100acSmrg		fi
73629ff100acSmrg
73639ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
73649ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
73659ff100acSmrg		fi
73669ff100acSmrg
73679ff100acSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
73689ff100acSmrg
7369a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7370a67f45c3Smrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
73719ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7372a67f45c3Smrg		if eval test \${$cacheid+y}
7373a67f45c3Smrgthen :
7374a67f45c3Smrg  printf %s "(cached) " >&6
7375a67f45c3Smrgelse $as_nop
73769ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
73779ff100acSmrg/* end confdefs.h.  */
73789ff100acSmrgint i;
73799ff100acSmrgint
7380a67f45c3Smrgmain (void)
73819ff100acSmrg{
73829ff100acSmrg
73839ff100acSmrg  ;
73849ff100acSmrg  return 0;
73859ff100acSmrg}
73869ff100acSmrg_ACEOF
7387a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7388a67f45c3Smrgthen :
73899ff100acSmrg  eval $cacheid=yes
7390a67f45c3Smrgelse $as_nop
73919ff100acSmrg  eval $cacheid=no
73929ff100acSmrgfi
7393a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
73949ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
73959ff100acSmrgfi
73969ff100acSmrg
73979ff100acSmrg
73989ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
73999ff100acSmrg
74009ff100acSmrg		eval supported=\$$cacheid
7401a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
74039ff100acSmrg		if test "$supported" = "yes" ; then
74049ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
74059ff100acSmrg			found="yes"
74069ff100acSmrg		fi
74079ff100acSmrg	fi
74089ff100acSmrg
74099ff100acSmrg
74109ff100acSmrg
74119ff100acSmrg
74129ff100acSmrg
74139ff100acSmrg
74149ff100acSmrg
74159ff100acSmrg
74169ff100acSmrg
74179ff100acSmrg
74189ff100acSmrg
74199ff100acSmrg
74209ff100acSmrg
74219ff100acSmrg
74229ff100acSmrg
74239ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
74249ff100acSmrg
74259ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
74269ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7430a67f45c3Smrgthen :
7431a67f45c3Smrg  printf %s "(cached) " >&6
7432a67f45c3Smrgelse $as_nop
74339ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74349ff100acSmrg/* end confdefs.h.  */
74359ff100acSmrgint i;
74369ff100acSmrg_ACEOF
7437a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7438a67f45c3Smrgthen :
74399ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7440a67f45c3Smrgelse $as_nop
74419ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
74429ff100acSmrgfi
7443a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
74449ff100acSmrgfi
7445a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7446a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
74479ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
74489ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74499ff100acSmrgfi
74509ff100acSmrg
74519ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
74529ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74539ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74549ff100acSmrg	fi
74559ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7456a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7457a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7458a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7459a67f45c3Smrgthen :
7460a67f45c3Smrg  printf %s "(cached) " >&6
7461a67f45c3Smrgelse $as_nop
74629ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
74639ff100acSmrg/* end confdefs.h.  */
74649ff100acSmrgint i;
74659ff100acSmrg_ACEOF
7466a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7467a67f45c3Smrgthen :
74689ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7469a67f45c3Smrgelse $as_nop
74709ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
74719ff100acSmrgfi
7472a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
74739ff100acSmrgfi
7474a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7475a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
74769ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
74779ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
74789ff100acSmrgfi
74799ff100acSmrg
74809ff100acSmrgfound="no"
74819ff100acSmrg
74829ff100acSmrg	if test $found = "no" ; then
74839ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
74849ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
74859ff100acSmrg		fi
74869ff100acSmrg
74879ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
74889ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
74899ff100acSmrg		fi
74909ff100acSmrg
74919ff100acSmrg		CFLAGS="$CFLAGS -Werror=init-self"
74929ff100acSmrg
7493a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7494a67f45c3Smrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
74959ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7496a67f45c3Smrg		if eval test \${$cacheid+y}
7497a67f45c3Smrgthen :
7498a67f45c3Smrg  printf %s "(cached) " >&6
7499a67f45c3Smrgelse $as_nop
75009ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75019ff100acSmrg/* end confdefs.h.  */
75029ff100acSmrgint i;
75039ff100acSmrgint
7504a67f45c3Smrgmain (void)
75059ff100acSmrg{
75069ff100acSmrg
75079ff100acSmrg  ;
75089ff100acSmrg  return 0;
75099ff100acSmrg}
75109ff100acSmrg_ACEOF
7511a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7512a67f45c3Smrgthen :
75139ff100acSmrg  eval $cacheid=yes
7514a67f45c3Smrgelse $as_nop
75159ff100acSmrg  eval $cacheid=no
75169ff100acSmrgfi
7517a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
75189ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
75199ff100acSmrgfi
75209ff100acSmrg
75219ff100acSmrg
75229ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
75239ff100acSmrg
75249ff100acSmrg		eval supported=\$$cacheid
7525a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7526a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
75279ff100acSmrg		if test "$supported" = "yes" ; then
75289ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
75299ff100acSmrg			found="yes"
75309ff100acSmrg		fi
75319ff100acSmrg	fi
75329ff100acSmrg
75339ff100acSmrg
75349ff100acSmrg
75359ff100acSmrg
75369ff100acSmrg
75379ff100acSmrg
75389ff100acSmrg
75399ff100acSmrg
75409ff100acSmrg
75419ff100acSmrg
75429ff100acSmrg
75439ff100acSmrg
75449ff100acSmrg
75459ff100acSmrg
75469ff100acSmrg
75479ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
75489ff100acSmrg
75499ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
75509ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7552a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7553a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7554a67f45c3Smrgthen :
7555a67f45c3Smrg  printf %s "(cached) " >&6
7556a67f45c3Smrgelse $as_nop
75579ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75589ff100acSmrg/* end confdefs.h.  */
75599ff100acSmrgint i;
75609ff100acSmrg_ACEOF
7561a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7562a67f45c3Smrgthen :
75639ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7564a67f45c3Smrgelse $as_nop
75659ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
75669ff100acSmrgfi
7567a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75689ff100acSmrgfi
7569a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7570a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
75719ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
75729ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
75739ff100acSmrgfi
75749ff100acSmrg
75759ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
75769ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
75779ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
75789ff100acSmrg	fi
75799ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7580a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7581a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7582a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7583a67f45c3Smrgthen :
7584a67f45c3Smrg  printf %s "(cached) " >&6
7585a67f45c3Smrgelse $as_nop
75869ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
75879ff100acSmrg/* end confdefs.h.  */
75889ff100acSmrgint i;
75899ff100acSmrg_ACEOF
7590a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7591a67f45c3Smrgthen :
75929ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7593a67f45c3Smrgelse $as_nop
75949ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
75959ff100acSmrgfi
7596a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
75979ff100acSmrgfi
7598a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7599a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
76009ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
76019ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
76029ff100acSmrgfi
76039ff100acSmrg
76049ff100acSmrgfound="no"
76059ff100acSmrg
76069ff100acSmrg	if test $found = "no" ; then
76079ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
76089ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
76099ff100acSmrg		fi
76109ff100acSmrg
76119ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
76129ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
76139ff100acSmrg		fi
76149ff100acSmrg
76159ff100acSmrg		CFLAGS="$CFLAGS -Werror=main"
76169ff100acSmrg
7617a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7618a67f45c3Smrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
76199ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7620a67f45c3Smrg		if eval test \${$cacheid+y}
7621a67f45c3Smrgthen :
7622a67f45c3Smrg  printf %s "(cached) " >&6
7623a67f45c3Smrgelse $as_nop
76249ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76259ff100acSmrg/* end confdefs.h.  */
76269ff100acSmrgint i;
76279ff100acSmrgint
7628a67f45c3Smrgmain (void)
76299ff100acSmrg{
76309ff100acSmrg
76319ff100acSmrg  ;
76329ff100acSmrg  return 0;
76339ff100acSmrg}
76349ff100acSmrg_ACEOF
7635a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7636a67f45c3Smrgthen :
76379ff100acSmrg  eval $cacheid=yes
7638a67f45c3Smrgelse $as_nop
76399ff100acSmrg  eval $cacheid=no
76409ff100acSmrgfi
7641a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
76429ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
76439ff100acSmrgfi
76449ff100acSmrg
76459ff100acSmrg
76469ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
76479ff100acSmrg
76489ff100acSmrg		eval supported=\$$cacheid
7649a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7650a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
76519ff100acSmrg		if test "$supported" = "yes" ; then
76529ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
76539ff100acSmrg			found="yes"
76549ff100acSmrg		fi
76559ff100acSmrg	fi
76569ff100acSmrg
76579ff100acSmrg
76589ff100acSmrg
76599ff100acSmrg
76609ff100acSmrg
76619ff100acSmrg
76629ff100acSmrg
76639ff100acSmrg
76649ff100acSmrg
76659ff100acSmrg
76669ff100acSmrg
76679ff100acSmrg
76689ff100acSmrg
76699ff100acSmrg
76709ff100acSmrg
76719ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
76729ff100acSmrg
76739ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
76749ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7676a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7677a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7678a67f45c3Smrgthen :
7679a67f45c3Smrg  printf %s "(cached) " >&6
7680a67f45c3Smrgelse $as_nop
76819ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
76829ff100acSmrg/* end confdefs.h.  */
76839ff100acSmrgint i;
76849ff100acSmrg_ACEOF
7685a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7686a67f45c3Smrgthen :
76879ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7688a67f45c3Smrgelse $as_nop
76899ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
76909ff100acSmrgfi
7691a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
76929ff100acSmrgfi
7693a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7694a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
76959ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
76969ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
76979ff100acSmrgfi
76989ff100acSmrg
76999ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
77009ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77019ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77029ff100acSmrg	fi
77039ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7704a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7705a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7706a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7707a67f45c3Smrgthen :
7708a67f45c3Smrg  printf %s "(cached) " >&6
7709a67f45c3Smrgelse $as_nop
77109ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77119ff100acSmrg/* end confdefs.h.  */
77129ff100acSmrgint i;
77139ff100acSmrg_ACEOF
7714a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7715a67f45c3Smrgthen :
77169ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7717a67f45c3Smrgelse $as_nop
77189ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
77199ff100acSmrgfi
7720a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
77219ff100acSmrgfi
7722a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7723a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
77249ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
77259ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
77269ff100acSmrgfi
77279ff100acSmrg
77289ff100acSmrgfound="no"
77299ff100acSmrg
77309ff100acSmrg	if test $found = "no" ; then
77319ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
77329ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
77339ff100acSmrg		fi
77349ff100acSmrg
77359ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
77369ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
77379ff100acSmrg		fi
77389ff100acSmrg
77399ff100acSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
77409ff100acSmrg
7741a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7742a67f45c3Smrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
77439ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7744a67f45c3Smrg		if eval test \${$cacheid+y}
7745a67f45c3Smrgthen :
7746a67f45c3Smrg  printf %s "(cached) " >&6
7747a67f45c3Smrgelse $as_nop
77489ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
77499ff100acSmrg/* end confdefs.h.  */
77509ff100acSmrgint i;
77519ff100acSmrgint
7752a67f45c3Smrgmain (void)
77539ff100acSmrg{
77549ff100acSmrg
77559ff100acSmrg  ;
77569ff100acSmrg  return 0;
77579ff100acSmrg}
77589ff100acSmrg_ACEOF
7759a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7760a67f45c3Smrgthen :
77619ff100acSmrg  eval $cacheid=yes
7762a67f45c3Smrgelse $as_nop
77639ff100acSmrg  eval $cacheid=no
77649ff100acSmrgfi
7765a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
77669ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
77679ff100acSmrgfi
77689ff100acSmrg
77699ff100acSmrg
77709ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
77719ff100acSmrg
77729ff100acSmrg		eval supported=\$$cacheid
7773a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7774a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
77759ff100acSmrg		if test "$supported" = "yes" ; then
77769ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
77779ff100acSmrg			found="yes"
77789ff100acSmrg		fi
77799ff100acSmrg	fi
77809ff100acSmrg
77819ff100acSmrg
77829ff100acSmrg
77839ff100acSmrg
77849ff100acSmrg
77859ff100acSmrg
77869ff100acSmrg
77879ff100acSmrg
77889ff100acSmrg
77899ff100acSmrg
77909ff100acSmrg
77919ff100acSmrg
77929ff100acSmrg
77939ff100acSmrg
77949ff100acSmrg
77959ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
77969ff100acSmrg
77979ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
77989ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7800a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7801a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7802a67f45c3Smrgthen :
7803a67f45c3Smrg  printf %s "(cached) " >&6
7804a67f45c3Smrgelse $as_nop
78059ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78069ff100acSmrg/* end confdefs.h.  */
78079ff100acSmrgint i;
78089ff100acSmrg_ACEOF
7809a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7810a67f45c3Smrgthen :
78119ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7812a67f45c3Smrgelse $as_nop
78139ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
78149ff100acSmrgfi
7815a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78169ff100acSmrgfi
7817a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7818a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
78199ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
78209ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78219ff100acSmrgfi
78229ff100acSmrg
78239ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
78249ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78259ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78269ff100acSmrg	fi
78279ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7828a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7829a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7830a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7831a67f45c3Smrgthen :
7832a67f45c3Smrg  printf %s "(cached) " >&6
7833a67f45c3Smrgelse $as_nop
78349ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78359ff100acSmrg/* end confdefs.h.  */
78369ff100acSmrgint i;
78379ff100acSmrg_ACEOF
7838a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7839a67f45c3Smrgthen :
78409ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7841a67f45c3Smrgelse $as_nop
78429ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
78439ff100acSmrgfi
7844a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
78459ff100acSmrgfi
7846a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7847a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
78489ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
78499ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
78509ff100acSmrgfi
78519ff100acSmrg
78529ff100acSmrgfound="no"
78539ff100acSmrg
78549ff100acSmrg	if test $found = "no" ; then
78559ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
78569ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
78579ff100acSmrg		fi
78589ff100acSmrg
78599ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
78609ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
78619ff100acSmrg		fi
78629ff100acSmrg
78639ff100acSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
78649ff100acSmrg
7865a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7866a67f45c3Smrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
78679ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7868a67f45c3Smrg		if eval test \${$cacheid+y}
7869a67f45c3Smrgthen :
7870a67f45c3Smrg  printf %s "(cached) " >&6
7871a67f45c3Smrgelse $as_nop
78729ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78739ff100acSmrg/* end confdefs.h.  */
78749ff100acSmrgint i;
78759ff100acSmrgint
7876a67f45c3Smrgmain (void)
78779ff100acSmrg{
78789ff100acSmrg
78799ff100acSmrg  ;
78809ff100acSmrg  return 0;
78819ff100acSmrg}
78829ff100acSmrg_ACEOF
7883a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
7884a67f45c3Smrgthen :
78859ff100acSmrg  eval $cacheid=yes
7886a67f45c3Smrgelse $as_nop
78879ff100acSmrg  eval $cacheid=no
78889ff100acSmrgfi
7889a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
78909ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
78919ff100acSmrgfi
78929ff100acSmrg
78939ff100acSmrg
78949ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
78959ff100acSmrg
78969ff100acSmrg		eval supported=\$$cacheid
7897a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
78999ff100acSmrg		if test "$supported" = "yes" ; then
79009ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
79019ff100acSmrg			found="yes"
79029ff100acSmrg		fi
79039ff100acSmrg	fi
79049ff100acSmrg
79059ff100acSmrg
79069ff100acSmrg
79079ff100acSmrg
79089ff100acSmrg
79099ff100acSmrg
79109ff100acSmrg
79119ff100acSmrg
79129ff100acSmrg
79139ff100acSmrg
79149ff100acSmrg
79159ff100acSmrg
79169ff100acSmrg
79179ff100acSmrg
79189ff100acSmrg
79199ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
79209ff100acSmrg
79219ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
79229ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7926a67f45c3Smrgthen :
7927a67f45c3Smrg  printf %s "(cached) " >&6
7928a67f45c3Smrgelse $as_nop
79299ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79309ff100acSmrg/* end confdefs.h.  */
79319ff100acSmrgint i;
79329ff100acSmrg_ACEOF
7933a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7934a67f45c3Smrgthen :
79359ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7936a67f45c3Smrgelse $as_nop
79379ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
79389ff100acSmrgfi
7939a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79409ff100acSmrgfi
7941a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7942a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
79439ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
79449ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79459ff100acSmrgfi
79469ff100acSmrg
79479ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
79489ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79499ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79509ff100acSmrg	fi
79519ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7952a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7953a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7954a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7955a67f45c3Smrgthen :
7956a67f45c3Smrg  printf %s "(cached) " >&6
7957a67f45c3Smrgelse $as_nop
79589ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79599ff100acSmrg/* end confdefs.h.  */
79609ff100acSmrgint i;
79619ff100acSmrg_ACEOF
7962a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
7963a67f45c3Smrgthen :
79649ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7965a67f45c3Smrgelse $as_nop
79669ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
79679ff100acSmrgfi
7968a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
79699ff100acSmrgfi
7970a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7971a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
79729ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
79739ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
79749ff100acSmrgfi
79759ff100acSmrg
79769ff100acSmrgfound="no"
79779ff100acSmrg
79789ff100acSmrg	if test $found = "no" ; then
79799ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
79809ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
79819ff100acSmrg		fi
79829ff100acSmrg
79839ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
79849ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
79859ff100acSmrg		fi
79869ff100acSmrg
79879ff100acSmrg		CFLAGS="$CFLAGS -Werror=return-type"
79889ff100acSmrg
7989a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7990a67f45c3Smrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
79919ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
7992a67f45c3Smrg		if eval test \${$cacheid+y}
7993a67f45c3Smrgthen :
7994a67f45c3Smrg  printf %s "(cached) " >&6
7995a67f45c3Smrgelse $as_nop
79969ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
79979ff100acSmrg/* end confdefs.h.  */
79989ff100acSmrgint i;
79999ff100acSmrgint
8000a67f45c3Smrgmain (void)
80019ff100acSmrg{
80029ff100acSmrg
80039ff100acSmrg  ;
80049ff100acSmrg  return 0;
80059ff100acSmrg}
80069ff100acSmrg_ACEOF
8007a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8008a67f45c3Smrgthen :
80099ff100acSmrg  eval $cacheid=yes
8010a67f45c3Smrgelse $as_nop
80119ff100acSmrg  eval $cacheid=no
80129ff100acSmrgfi
8013a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80149ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
80159ff100acSmrgfi
80169ff100acSmrg
80179ff100acSmrg
80189ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
80199ff100acSmrg
80209ff100acSmrg		eval supported=\$$cacheid
8021a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8022a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
80239ff100acSmrg		if test "$supported" = "yes" ; then
80249ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
80259ff100acSmrg			found="yes"
80269ff100acSmrg		fi
80279ff100acSmrg	fi
80289ff100acSmrg
80299ff100acSmrg	if test $found = "no" ; then
80309ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
80319ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
80329ff100acSmrg		fi
80339ff100acSmrg
80349ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
80359ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
80369ff100acSmrg		fi
80379ff100acSmrg
80389ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
80399ff100acSmrg
8040a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8041a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
80429ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8043a67f45c3Smrg		if eval test \${$cacheid+y}
8044a67f45c3Smrgthen :
8045a67f45c3Smrg  printf %s "(cached) " >&6
8046a67f45c3Smrgelse $as_nop
80479ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
80489ff100acSmrg/* end confdefs.h.  */
80499ff100acSmrgint i;
80509ff100acSmrgint
8051a67f45c3Smrgmain (void)
80529ff100acSmrg{
80539ff100acSmrg
80549ff100acSmrg  ;
80559ff100acSmrg  return 0;
80569ff100acSmrg}
80579ff100acSmrg_ACEOF
8058a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8059a67f45c3Smrgthen :
80609ff100acSmrg  eval $cacheid=yes
8061a67f45c3Smrgelse $as_nop
80629ff100acSmrg  eval $cacheid=no
80639ff100acSmrgfi
8064a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
80659ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
80669ff100acSmrgfi
80679ff100acSmrg
80689ff100acSmrg
80699ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
80709ff100acSmrg
80719ff100acSmrg		eval supported=\$$cacheid
8072a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8073a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
80749ff100acSmrg		if test "$supported" = "yes" ; then
80759ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
80769ff100acSmrg			found="yes"
80779ff100acSmrg		fi
80789ff100acSmrg	fi
80799ff100acSmrg
80809ff100acSmrg
80819ff100acSmrg
80829ff100acSmrg
80839ff100acSmrg
80849ff100acSmrg
80859ff100acSmrg
80869ff100acSmrg
80879ff100acSmrg
80889ff100acSmrg
80899ff100acSmrg
80909ff100acSmrg
80919ff100acSmrg
80929ff100acSmrg
80939ff100acSmrg
80949ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
80959ff100acSmrg
80969ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
80979ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8098a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8099a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8100a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8101a67f45c3Smrgthen :
8102a67f45c3Smrg  printf %s "(cached) " >&6
8103a67f45c3Smrgelse $as_nop
81049ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81059ff100acSmrg/* end confdefs.h.  */
81069ff100acSmrgint i;
81079ff100acSmrg_ACEOF
8108a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8109a67f45c3Smrgthen :
81109ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8111a67f45c3Smrgelse $as_nop
81129ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
81139ff100acSmrgfi
8114a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81159ff100acSmrgfi
8116a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8117a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
81189ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
81199ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81209ff100acSmrgfi
81219ff100acSmrg
81229ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
81239ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81249ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81259ff100acSmrg	fi
81269ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8128a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8129a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8130a67f45c3Smrgthen :
8131a67f45c3Smrg  printf %s "(cached) " >&6
8132a67f45c3Smrgelse $as_nop
81339ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81349ff100acSmrg/* end confdefs.h.  */
81359ff100acSmrgint i;
81369ff100acSmrg_ACEOF
8137a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8138a67f45c3Smrgthen :
81399ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8140a67f45c3Smrgelse $as_nop
81419ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
81429ff100acSmrgfi
8143a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
81449ff100acSmrgfi
8145a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8146a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
81479ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
81489ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
81499ff100acSmrgfi
81509ff100acSmrg
81519ff100acSmrgfound="no"
81529ff100acSmrg
81539ff100acSmrg	if test $found = "no" ; then
81549ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
81559ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
81569ff100acSmrg		fi
81579ff100acSmrg
81589ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
81599ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
81609ff100acSmrg		fi
81619ff100acSmrg
81629ff100acSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
81639ff100acSmrg
8164a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8165a67f45c3Smrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
81669ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8167a67f45c3Smrg		if eval test \${$cacheid+y}
8168a67f45c3Smrgthen :
8169a67f45c3Smrg  printf %s "(cached) " >&6
8170a67f45c3Smrgelse $as_nop
81719ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81729ff100acSmrg/* end confdefs.h.  */
81739ff100acSmrgint i;
81749ff100acSmrgint
8175a67f45c3Smrgmain (void)
81769ff100acSmrg{
81779ff100acSmrg
81789ff100acSmrg  ;
81799ff100acSmrg  return 0;
81809ff100acSmrg}
81819ff100acSmrg_ACEOF
8182a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8183a67f45c3Smrgthen :
81849ff100acSmrg  eval $cacheid=yes
8185a67f45c3Smrgelse $as_nop
81869ff100acSmrg  eval $cacheid=no
81879ff100acSmrgfi
8188a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
81899ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
81909ff100acSmrgfi
81919ff100acSmrg
81929ff100acSmrg
81939ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
81949ff100acSmrg
81959ff100acSmrg		eval supported=\$$cacheid
8196a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8197a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
81989ff100acSmrg		if test "$supported" = "yes" ; then
81999ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
82009ff100acSmrg			found="yes"
82019ff100acSmrg		fi
82029ff100acSmrg	fi
82039ff100acSmrg
82049ff100acSmrg
82059ff100acSmrg
82069ff100acSmrg
82079ff100acSmrg
82089ff100acSmrg
82099ff100acSmrg
82109ff100acSmrg
82119ff100acSmrg
82129ff100acSmrg
82139ff100acSmrg
82149ff100acSmrg
82159ff100acSmrg
82169ff100acSmrg
82179ff100acSmrg
82189ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
82199ff100acSmrg
82209ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
82219ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8223a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8224a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8225a67f45c3Smrgthen :
8226a67f45c3Smrg  printf %s "(cached) " >&6
8227a67f45c3Smrgelse $as_nop
82289ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82299ff100acSmrg/* end confdefs.h.  */
82309ff100acSmrgint i;
82319ff100acSmrg_ACEOF
8232a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8233a67f45c3Smrgthen :
82349ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8235a67f45c3Smrgelse $as_nop
82369ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
82379ff100acSmrgfi
8238a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
82399ff100acSmrgfi
8240a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8241a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
82429ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
82439ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
82449ff100acSmrgfi
82459ff100acSmrg
82469ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
82479ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82489ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82499ff100acSmrg	fi
82509ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8251a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8252a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8253a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8254a67f45c3Smrgthen :
8255a67f45c3Smrg  printf %s "(cached) " >&6
8256a67f45c3Smrgelse $as_nop
82579ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82589ff100acSmrg/* end confdefs.h.  */
82599ff100acSmrgint i;
82609ff100acSmrg_ACEOF
8261a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8262a67f45c3Smrgthen :
82639ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8264a67f45c3Smrgelse $as_nop
82659ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
82669ff100acSmrgfi
8267a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
82689ff100acSmrgfi
8269a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8270a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
82719ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
82729ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
82739ff100acSmrgfi
82749ff100acSmrg
82759ff100acSmrgfound="no"
82769ff100acSmrg
82779ff100acSmrg	if test $found = "no" ; then
82789ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
82799ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
82809ff100acSmrg		fi
82819ff100acSmrg
82829ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
82839ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
82849ff100acSmrg		fi
82859ff100acSmrg
82869ff100acSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
82879ff100acSmrg
8288a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8289a67f45c3Smrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
82909ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8291a67f45c3Smrg		if eval test \${$cacheid+y}
8292a67f45c3Smrgthen :
8293a67f45c3Smrg  printf %s "(cached) " >&6
8294a67f45c3Smrgelse $as_nop
82959ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
82969ff100acSmrg/* end confdefs.h.  */
82979ff100acSmrgint i;
82989ff100acSmrgint
8299a67f45c3Smrgmain (void)
83009ff100acSmrg{
83019ff100acSmrg
83029ff100acSmrg  ;
83039ff100acSmrg  return 0;
83049ff100acSmrg}
83059ff100acSmrg_ACEOF
8306a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8307a67f45c3Smrgthen :
83089ff100acSmrg  eval $cacheid=yes
8309a67f45c3Smrgelse $as_nop
83109ff100acSmrg  eval $cacheid=no
83119ff100acSmrgfi
8312a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
83139ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
83149ff100acSmrgfi
83159ff100acSmrg
83169ff100acSmrg
83179ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
83189ff100acSmrg
83199ff100acSmrg		eval supported=\$$cacheid
8320a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8321a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
83229ff100acSmrg		if test "$supported" = "yes" ; then
83239ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
83249ff100acSmrg			found="yes"
83259ff100acSmrg		fi
83269ff100acSmrg	fi
83279ff100acSmrg
83289ff100acSmrg
83299ff100acSmrg
83309ff100acSmrg
83319ff100acSmrg
83329ff100acSmrg
83339ff100acSmrg
83349ff100acSmrg
83359ff100acSmrg
83369ff100acSmrg
83379ff100acSmrg
83389ff100acSmrg
83399ff100acSmrg
83409ff100acSmrg
83419ff100acSmrg
83429ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
83439ff100acSmrg
83449ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
83459ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8347a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8348a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8349a67f45c3Smrgthen :
8350a67f45c3Smrg  printf %s "(cached) " >&6
8351a67f45c3Smrgelse $as_nop
83529ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83539ff100acSmrg/* end confdefs.h.  */
83549ff100acSmrgint i;
83559ff100acSmrg_ACEOF
8356a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8357a67f45c3Smrgthen :
83589ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8359a67f45c3Smrgelse $as_nop
83609ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
83619ff100acSmrgfi
8362a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83639ff100acSmrgfi
8364a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8365a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
83669ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
83679ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83689ff100acSmrgfi
83699ff100acSmrg
83709ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
83719ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
83729ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
83739ff100acSmrg	fi
83749ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8375a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8376a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8377a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8378a67f45c3Smrgthen :
8379a67f45c3Smrg  printf %s "(cached) " >&6
8380a67f45c3Smrgelse $as_nop
83819ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
83829ff100acSmrg/* end confdefs.h.  */
83839ff100acSmrgint i;
83849ff100acSmrg_ACEOF
8385a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8386a67f45c3Smrgthen :
83879ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8388a67f45c3Smrgelse $as_nop
83899ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
83909ff100acSmrgfi
8391a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
83929ff100acSmrgfi
8393a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8394a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
83959ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
83969ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
83979ff100acSmrgfi
83989ff100acSmrg
83999ff100acSmrgfound="no"
84009ff100acSmrg
84019ff100acSmrg	if test $found = "no" ; then
84029ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84039ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84049ff100acSmrg		fi
84059ff100acSmrg
84069ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
84079ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
84089ff100acSmrg		fi
84099ff100acSmrg
84109ff100acSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
84119ff100acSmrg
8412a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8413a67f45c3Smrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
84149ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8415a67f45c3Smrg		if eval test \${$cacheid+y}
8416a67f45c3Smrgthen :
8417a67f45c3Smrg  printf %s "(cached) " >&6
8418a67f45c3Smrgelse $as_nop
84199ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84209ff100acSmrg/* end confdefs.h.  */
84219ff100acSmrgint i;
84229ff100acSmrgint
8423a67f45c3Smrgmain (void)
84249ff100acSmrg{
84259ff100acSmrg
84269ff100acSmrg  ;
84279ff100acSmrg  return 0;
84289ff100acSmrg}
84299ff100acSmrg_ACEOF
8430a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8431a67f45c3Smrgthen :
84329ff100acSmrg  eval $cacheid=yes
8433a67f45c3Smrgelse $as_nop
84349ff100acSmrg  eval $cacheid=no
84359ff100acSmrgfi
8436a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
84379ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
84389ff100acSmrgfi
84399ff100acSmrg
84409ff100acSmrg
84419ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
84429ff100acSmrg
84439ff100acSmrg		eval supported=\$$cacheid
8444a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8445a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
84469ff100acSmrg		if test "$supported" = "yes" ; then
84479ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
84489ff100acSmrg			found="yes"
84499ff100acSmrg		fi
84509ff100acSmrg	fi
84519ff100acSmrg
84529ff100acSmrg
84539ff100acSmrg
84549ff100acSmrg
84559ff100acSmrg
84569ff100acSmrg
84579ff100acSmrg
84589ff100acSmrg
84599ff100acSmrg
84609ff100acSmrg
84619ff100acSmrg
84629ff100acSmrg
84639ff100acSmrg
84649ff100acSmrg
84659ff100acSmrg
84669ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
84679ff100acSmrg
84689ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
84699ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8470a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8471a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8472a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8473a67f45c3Smrgthen :
8474a67f45c3Smrg  printf %s "(cached) " >&6
8475a67f45c3Smrgelse $as_nop
84769ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
84779ff100acSmrg/* end confdefs.h.  */
84789ff100acSmrgint i;
84799ff100acSmrg_ACEOF
8480a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8481a67f45c3Smrgthen :
84829ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8483a67f45c3Smrgelse $as_nop
84849ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
84859ff100acSmrgfi
8486a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
84879ff100acSmrgfi
8488a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8489a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
84909ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
84919ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
84929ff100acSmrgfi
84939ff100acSmrg
84949ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
84959ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
84969ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
84979ff100acSmrg	fi
84989ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8500a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8501a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8502a67f45c3Smrgthen :
8503a67f45c3Smrg  printf %s "(cached) " >&6
8504a67f45c3Smrgelse $as_nop
85059ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85069ff100acSmrg/* end confdefs.h.  */
85079ff100acSmrgint i;
85089ff100acSmrg_ACEOF
8509a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8510a67f45c3Smrgthen :
85119ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8512a67f45c3Smrgelse $as_nop
85139ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
85149ff100acSmrgfi
8515a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
85169ff100acSmrgfi
8517a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8518a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
85199ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
85209ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
85219ff100acSmrgfi
85229ff100acSmrg
85239ff100acSmrgfound="no"
85249ff100acSmrg
85259ff100acSmrg	if test $found = "no" ; then
85269ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
85279ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
85289ff100acSmrg		fi
85299ff100acSmrg
85309ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
85319ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
85329ff100acSmrg		fi
85339ff100acSmrg
85349ff100acSmrg		CFLAGS="$CFLAGS -Werror=address"
85359ff100acSmrg
8536a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8537a67f45c3Smrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
85389ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8539a67f45c3Smrg		if eval test \${$cacheid+y}
8540a67f45c3Smrgthen :
8541a67f45c3Smrg  printf %s "(cached) " >&6
8542a67f45c3Smrgelse $as_nop
85439ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
85449ff100acSmrg/* end confdefs.h.  */
85459ff100acSmrgint i;
85469ff100acSmrgint
8547a67f45c3Smrgmain (void)
85489ff100acSmrg{
85499ff100acSmrg
85509ff100acSmrg  ;
85519ff100acSmrg  return 0;
85529ff100acSmrg}
85539ff100acSmrg_ACEOF
8554a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8555a67f45c3Smrgthen :
85569ff100acSmrg  eval $cacheid=yes
8557a67f45c3Smrgelse $as_nop
85589ff100acSmrg  eval $cacheid=no
85599ff100acSmrgfi
8560a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
85619ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
85629ff100acSmrgfi
85639ff100acSmrg
85649ff100acSmrg
85659ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
85669ff100acSmrg
85679ff100acSmrg		eval supported=\$$cacheid
8568a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8569a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
85709ff100acSmrg		if test "$supported" = "yes" ; then
85719ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
85729ff100acSmrg			found="yes"
85739ff100acSmrg		fi
85749ff100acSmrg	fi
85759ff100acSmrg
85769ff100acSmrg
85779ff100acSmrg
85789ff100acSmrg
85799ff100acSmrg
85809ff100acSmrg
85819ff100acSmrg
85829ff100acSmrg
85839ff100acSmrg
85849ff100acSmrg
85859ff100acSmrg
85869ff100acSmrg
85879ff100acSmrg
85889ff100acSmrg
85899ff100acSmrg
85909ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
85919ff100acSmrg
85929ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
85939ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8594a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8595a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8596a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8597a67f45c3Smrgthen :
8598a67f45c3Smrg  printf %s "(cached) " >&6
8599a67f45c3Smrgelse $as_nop
86009ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86019ff100acSmrg/* end confdefs.h.  */
86029ff100acSmrgint i;
86039ff100acSmrg_ACEOF
8604a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8605a67f45c3Smrgthen :
86069ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8607a67f45c3Smrgelse $as_nop
86089ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
86099ff100acSmrgfi
8610a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
86119ff100acSmrgfi
8612a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8613a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
86149ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
86159ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
86169ff100acSmrgfi
86179ff100acSmrg
86189ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
86199ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86209ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86219ff100acSmrg	fi
86229ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8624a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8625a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8626a67f45c3Smrgthen :
8627a67f45c3Smrg  printf %s "(cached) " >&6
8628a67f45c3Smrgelse $as_nop
86299ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86309ff100acSmrg/* end confdefs.h.  */
86319ff100acSmrgint i;
86329ff100acSmrg_ACEOF
8633a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8634a67f45c3Smrgthen :
86359ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8636a67f45c3Smrgelse $as_nop
86379ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
86389ff100acSmrgfi
8639a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
86409ff100acSmrgfi
8641a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8642a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
86439ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
86449ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
86459ff100acSmrgfi
86469ff100acSmrg
86479ff100acSmrgfound="no"
86489ff100acSmrg
86499ff100acSmrg	if test $found = "no" ; then
86509ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
86519ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
86529ff100acSmrg		fi
86539ff100acSmrg
86549ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
86559ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
86569ff100acSmrg		fi
86579ff100acSmrg
86589ff100acSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
86599ff100acSmrg
8660a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8661a67f45c3Smrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
86629ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8663a67f45c3Smrg		if eval test \${$cacheid+y}
8664a67f45c3Smrgthen :
8665a67f45c3Smrg  printf %s "(cached) " >&6
8666a67f45c3Smrgelse $as_nop
86679ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86689ff100acSmrg/* end confdefs.h.  */
86699ff100acSmrgint i;
86709ff100acSmrgint
8671a67f45c3Smrgmain (void)
86729ff100acSmrg{
86739ff100acSmrg
86749ff100acSmrg  ;
86759ff100acSmrg  return 0;
86769ff100acSmrg}
86779ff100acSmrg_ACEOF
8678a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8679a67f45c3Smrgthen :
86809ff100acSmrg  eval $cacheid=yes
8681a67f45c3Smrgelse $as_nop
86829ff100acSmrg  eval $cacheid=no
86839ff100acSmrgfi
8684a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
86859ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
86869ff100acSmrgfi
86879ff100acSmrg
86889ff100acSmrg
86899ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
86909ff100acSmrg
86919ff100acSmrg		eval supported=\$$cacheid
8692a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8693a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
86949ff100acSmrg		if test "$supported" = "yes" ; then
86959ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
86969ff100acSmrg			found="yes"
86979ff100acSmrg		fi
86989ff100acSmrg	fi
86999ff100acSmrg
87009ff100acSmrg	if test $found = "no" ; then
87019ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87029ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87039ff100acSmrg		fi
87049ff100acSmrg
87059ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
87069ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
87079ff100acSmrg		fi
87089ff100acSmrg
87099ff100acSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
87109ff100acSmrg
8711a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8712a67f45c3Smrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
87139ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8714a67f45c3Smrg		if eval test \${$cacheid+y}
8715a67f45c3Smrgthen :
8716a67f45c3Smrg  printf %s "(cached) " >&6
8717a67f45c3Smrgelse $as_nop
87189ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87199ff100acSmrg/* end confdefs.h.  */
87209ff100acSmrgint i;
87219ff100acSmrgint
8722a67f45c3Smrgmain (void)
87239ff100acSmrg{
87249ff100acSmrg
87259ff100acSmrg  ;
87269ff100acSmrg  return 0;
87279ff100acSmrg}
87289ff100acSmrg_ACEOF
8729a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8730a67f45c3Smrgthen :
87319ff100acSmrg  eval $cacheid=yes
8732a67f45c3Smrgelse $as_nop
87339ff100acSmrg  eval $cacheid=no
87349ff100acSmrgfi
8735a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
87369ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
87379ff100acSmrgfi
87389ff100acSmrg
87399ff100acSmrg
87409ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
87419ff100acSmrg
87429ff100acSmrg		eval supported=\$$cacheid
8743a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8744a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
87459ff100acSmrg		if test "$supported" = "yes" ; then
87469ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
87479ff100acSmrg			found="yes"
87489ff100acSmrg		fi
87499ff100acSmrg	fi
87509ff100acSmrg
87519ff100acSmrg
87529ff100acSmrg
87539ff100acSmrg
87549ff100acSmrg
87559ff100acSmrg
87569ff100acSmrg
87579ff100acSmrg
87589ff100acSmrg
87599ff100acSmrg
87609ff100acSmrg
87619ff100acSmrg
87629ff100acSmrg
87639ff100acSmrg
87649ff100acSmrg
87659ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
87669ff100acSmrg
87679ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
87689ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8770a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8771a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8772a67f45c3Smrgthen :
8773a67f45c3Smrg  printf %s "(cached) " >&6
8774a67f45c3Smrgelse $as_nop
87759ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87769ff100acSmrg/* end confdefs.h.  */
87779ff100acSmrgint i;
87789ff100acSmrg_ACEOF
8779a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8780a67f45c3Smrgthen :
87819ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8782a67f45c3Smrgelse $as_nop
87839ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
87849ff100acSmrgfi
8785a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
87869ff100acSmrgfi
8787a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8788a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
87899ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
87909ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
87919ff100acSmrgfi
87929ff100acSmrg
87939ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
87949ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
87959ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
87969ff100acSmrg	fi
87979ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8798a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8799a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8800a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8801a67f45c3Smrgthen :
8802a67f45c3Smrg  printf %s "(cached) " >&6
8803a67f45c3Smrgelse $as_nop
88049ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88059ff100acSmrg/* end confdefs.h.  */
88069ff100acSmrgint i;
88079ff100acSmrg_ACEOF
8808a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8809a67f45c3Smrgthen :
88109ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8811a67f45c3Smrgelse $as_nop
88129ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
88139ff100acSmrgfi
8814a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
88159ff100acSmrgfi
8816a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8817a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
88189ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
88199ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
88209ff100acSmrgfi
88219ff100acSmrg
88229ff100acSmrgfound="no"
88239ff100acSmrg
88249ff100acSmrg	if test $found = "no" ; then
88259ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
88269ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
88279ff100acSmrg		fi
88289ff100acSmrg
88299ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
88309ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
88319ff100acSmrg		fi
88329ff100acSmrg
88339ff100acSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
88349ff100acSmrg
8835a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8836a67f45c3Smrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
88379ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8838a67f45c3Smrg		if eval test \${$cacheid+y}
8839a67f45c3Smrgthen :
8840a67f45c3Smrg  printf %s "(cached) " >&6
8841a67f45c3Smrgelse $as_nop
88429ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
88439ff100acSmrg/* end confdefs.h.  */
88449ff100acSmrgint i;
88459ff100acSmrgint
8846a67f45c3Smrgmain (void)
88479ff100acSmrg{
88489ff100acSmrg
88499ff100acSmrg  ;
88509ff100acSmrg  return 0;
88519ff100acSmrg}
88529ff100acSmrg_ACEOF
8853a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8854a67f45c3Smrgthen :
88559ff100acSmrg  eval $cacheid=yes
8856a67f45c3Smrgelse $as_nop
88579ff100acSmrg  eval $cacheid=no
88589ff100acSmrgfi
8859a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
88609ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
88619ff100acSmrgfi
88629ff100acSmrg
88639ff100acSmrg
88649ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
88659ff100acSmrg
88669ff100acSmrg		eval supported=\$$cacheid
8867a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8868a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
88699ff100acSmrg		if test "$supported" = "yes" ; then
88709ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
88719ff100acSmrg			found="yes"
88729ff100acSmrg		fi
88739ff100acSmrg	fi
88749ff100acSmrg
88759ff100acSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
88769ff100acSmrgelse
8877a67f45c3Smrg{ 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
8878a67f45c3Smrgprintf "%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;}
88799ff100acSmrg
88809ff100acSmrg
88819ff100acSmrg
88829ff100acSmrg
88839ff100acSmrg
88849ff100acSmrg
88859ff100acSmrg
88869ff100acSmrg
88879ff100acSmrg
88889ff100acSmrg
88899ff100acSmrg
88909ff100acSmrg
88919ff100acSmrg
88929ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
88939ff100acSmrg
88949ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
88959ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8897a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8898a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8899a67f45c3Smrgthen :
8900a67f45c3Smrg  printf %s "(cached) " >&6
8901a67f45c3Smrgelse $as_nop
89029ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89039ff100acSmrg/* end confdefs.h.  */
89049ff100acSmrgint i;
89059ff100acSmrg_ACEOF
8906a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8907a67f45c3Smrgthen :
89089ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8909a67f45c3Smrgelse $as_nop
89109ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
89119ff100acSmrgfi
8912a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
89139ff100acSmrgfi
8914a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8915a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
89169ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
89179ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89189ff100acSmrgfi
89199ff100acSmrg
89209ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
89219ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89229ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89239ff100acSmrg	fi
89249ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8925a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8926a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8927a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8928a67f45c3Smrgthen :
8929a67f45c3Smrg  printf %s "(cached) " >&6
8930a67f45c3Smrgelse $as_nop
89319ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89329ff100acSmrg/* end confdefs.h.  */
89339ff100acSmrgint i;
89349ff100acSmrg_ACEOF
8935a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
8936a67f45c3Smrgthen :
89379ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8938a67f45c3Smrgelse $as_nop
89399ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
89409ff100acSmrgfi
8941a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
89429ff100acSmrgfi
8943a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8944a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
89459ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
89469ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
89479ff100acSmrgfi
89489ff100acSmrg
89499ff100acSmrgfound="no"
89509ff100acSmrg
89519ff100acSmrg	if test $found = "no" ; then
89529ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
89539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
89549ff100acSmrg		fi
89559ff100acSmrg
89569ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
89579ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
89589ff100acSmrg		fi
89599ff100acSmrg
89609ff100acSmrg		CFLAGS="$CFLAGS -Wimplicit"
89619ff100acSmrg
8962a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8963a67f45c3Smrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
89649ff100acSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
8965a67f45c3Smrg		if eval test \${$cacheid+y}
8966a67f45c3Smrgthen :
8967a67f45c3Smrg  printf %s "(cached) " >&6
8968a67f45c3Smrgelse $as_nop
89699ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
89709ff100acSmrg/* end confdefs.h.  */
89719ff100acSmrgint i;
89729ff100acSmrgint
8973a67f45c3Smrgmain (void)
89749ff100acSmrg{
89759ff100acSmrg
89769ff100acSmrg  ;
89779ff100acSmrg  return 0;
89789ff100acSmrg}
89799ff100acSmrg_ACEOF
8980a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
8981a67f45c3Smrgthen :
89829ff100acSmrg  eval $cacheid=yes
8983a67f45c3Smrgelse $as_nop
89849ff100acSmrg  eval $cacheid=no
89859ff100acSmrgfi
8986a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
89879ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
89889ff100acSmrgfi
89899ff100acSmrg
89909ff100acSmrg
89919ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
89929ff100acSmrg
89939ff100acSmrg		eval supported=\$$cacheid
8994a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8995a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
89969ff100acSmrg		if test "$supported" = "yes" ; then
89979ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
89989ff100acSmrg			found="yes"
89999ff100acSmrg		fi
90009ff100acSmrg	fi
90019ff100acSmrg
90029ff100acSmrg
90039ff100acSmrg
90049ff100acSmrg
90059ff100acSmrg
90069ff100acSmrg
90079ff100acSmrg
90089ff100acSmrg
90099ff100acSmrg
90109ff100acSmrg
90119ff100acSmrg
90129ff100acSmrg
90139ff100acSmrg
90149ff100acSmrg
90159ff100acSmrg
90169ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
90179ff100acSmrg
90189ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
90199ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9021a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9022a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9023a67f45c3Smrgthen :
9024a67f45c3Smrg  printf %s "(cached) " >&6
9025a67f45c3Smrgelse $as_nop
90269ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90279ff100acSmrg/* end confdefs.h.  */
90289ff100acSmrgint i;
90299ff100acSmrg_ACEOF
9030a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9031a67f45c3Smrgthen :
90329ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9033a67f45c3Smrgelse $as_nop
90349ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
90359ff100acSmrgfi
9036a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90379ff100acSmrgfi
9038a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9039a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
90409ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
90419ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90429ff100acSmrgfi
90439ff100acSmrg
90449ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
90459ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90469ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90479ff100acSmrg	fi
90489ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9049a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9050a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9051a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9052a67f45c3Smrgthen :
9053a67f45c3Smrg  printf %s "(cached) " >&6
9054a67f45c3Smrgelse $as_nop
90559ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90569ff100acSmrg/* end confdefs.h.  */
90579ff100acSmrgint i;
90589ff100acSmrg_ACEOF
9059a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9060a67f45c3Smrgthen :
90619ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9062a67f45c3Smrgelse $as_nop
90639ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
90649ff100acSmrgfi
9065a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
90669ff100acSmrgfi
9067a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9068a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
90699ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
90709ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
90719ff100acSmrgfi
90729ff100acSmrg
90739ff100acSmrgfound="no"
90749ff100acSmrg
90759ff100acSmrg	if test $found = "no" ; then
90769ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
90779ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
90789ff100acSmrg		fi
90799ff100acSmrg
90809ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
90819ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
90829ff100acSmrg		fi
90839ff100acSmrg
90849ff100acSmrg		CFLAGS="$CFLAGS -Wnonnull"
90859ff100acSmrg
9086a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9087a67f45c3Smrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
90889ff100acSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
9089a67f45c3Smrg		if eval test \${$cacheid+y}
9090a67f45c3Smrgthen :
9091a67f45c3Smrg  printf %s "(cached) " >&6
9092a67f45c3Smrgelse $as_nop
90939ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90949ff100acSmrg/* end confdefs.h.  */
90959ff100acSmrgint i;
90969ff100acSmrgint
9097a67f45c3Smrgmain (void)
90989ff100acSmrg{
90999ff100acSmrg
91009ff100acSmrg  ;
91019ff100acSmrg  return 0;
91029ff100acSmrg}
91039ff100acSmrg_ACEOF
9104a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9105a67f45c3Smrgthen :
91069ff100acSmrg  eval $cacheid=yes
9107a67f45c3Smrgelse $as_nop
91089ff100acSmrg  eval $cacheid=no
91099ff100acSmrgfi
9110a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
91119ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
91129ff100acSmrgfi
91139ff100acSmrg
91149ff100acSmrg
91159ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
91169ff100acSmrg
91179ff100acSmrg		eval supported=\$$cacheid
9118a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9119a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
91209ff100acSmrg		if test "$supported" = "yes" ; then
91219ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
91229ff100acSmrg			found="yes"
91239ff100acSmrg		fi
91249ff100acSmrg	fi
91259ff100acSmrg
91269ff100acSmrg
91279ff100acSmrg
91289ff100acSmrg
91299ff100acSmrg
91309ff100acSmrg
91319ff100acSmrg
91329ff100acSmrg
91339ff100acSmrg
91349ff100acSmrg
91359ff100acSmrg
91369ff100acSmrg
91379ff100acSmrg
91389ff100acSmrg
91399ff100acSmrg
91409ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
91419ff100acSmrg
91429ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
91439ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9144a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9145a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9146a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9147a67f45c3Smrgthen :
9148a67f45c3Smrg  printf %s "(cached) " >&6
9149a67f45c3Smrgelse $as_nop
91509ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91519ff100acSmrg/* end confdefs.h.  */
91529ff100acSmrgint i;
91539ff100acSmrg_ACEOF
9154a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9155a67f45c3Smrgthen :
91569ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9157a67f45c3Smrgelse $as_nop
91589ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
91599ff100acSmrgfi
9160a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91619ff100acSmrgfi
9162a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9163a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
91649ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
91659ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91669ff100acSmrgfi
91679ff100acSmrg
91689ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
91699ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
91709ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
91719ff100acSmrg	fi
91729ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9173a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9174a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9175a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9176a67f45c3Smrgthen :
9177a67f45c3Smrg  printf %s "(cached) " >&6
9178a67f45c3Smrgelse $as_nop
91799ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91809ff100acSmrg/* end confdefs.h.  */
91819ff100acSmrgint i;
91829ff100acSmrg_ACEOF
9183a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9184a67f45c3Smrgthen :
91859ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9186a67f45c3Smrgelse $as_nop
91879ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
91889ff100acSmrgfi
9189a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
91909ff100acSmrgfi
9191a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9192a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
91939ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
91949ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
91959ff100acSmrgfi
91969ff100acSmrg
91979ff100acSmrgfound="no"
91989ff100acSmrg
91999ff100acSmrg	if test $found = "no" ; then
92009ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92019ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92029ff100acSmrg		fi
92039ff100acSmrg
92049ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
92059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
92069ff100acSmrg		fi
92079ff100acSmrg
92089ff100acSmrg		CFLAGS="$CFLAGS -Winit-self"
92099ff100acSmrg
9210a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9211a67f45c3Smrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
92129ff100acSmrg		cacheid=xorg_cv_cc_flag__Winit_self
9213a67f45c3Smrg		if eval test \${$cacheid+y}
9214a67f45c3Smrgthen :
9215a67f45c3Smrg  printf %s "(cached) " >&6
9216a67f45c3Smrgelse $as_nop
92179ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92189ff100acSmrg/* end confdefs.h.  */
92199ff100acSmrgint i;
92209ff100acSmrgint
9221a67f45c3Smrgmain (void)
92229ff100acSmrg{
92239ff100acSmrg
92249ff100acSmrg  ;
92259ff100acSmrg  return 0;
92269ff100acSmrg}
92279ff100acSmrg_ACEOF
9228a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9229a67f45c3Smrgthen :
92309ff100acSmrg  eval $cacheid=yes
9231a67f45c3Smrgelse $as_nop
92329ff100acSmrg  eval $cacheid=no
92339ff100acSmrgfi
9234a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
92359ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
92369ff100acSmrgfi
92379ff100acSmrg
92389ff100acSmrg
92399ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
92409ff100acSmrg
92419ff100acSmrg		eval supported=\$$cacheid
9242a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9243a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
92449ff100acSmrg		if test "$supported" = "yes" ; then
92459ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
92469ff100acSmrg			found="yes"
92479ff100acSmrg		fi
92489ff100acSmrg	fi
92499ff100acSmrg
92509ff100acSmrg
92519ff100acSmrg
92529ff100acSmrg
92539ff100acSmrg
92549ff100acSmrg
92559ff100acSmrg
92569ff100acSmrg
92579ff100acSmrg
92589ff100acSmrg
92599ff100acSmrg
92609ff100acSmrg
92619ff100acSmrg
92629ff100acSmrg
92639ff100acSmrg
92649ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
92659ff100acSmrg
92669ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
92679ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9269a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9270a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9271a67f45c3Smrgthen :
9272a67f45c3Smrg  printf %s "(cached) " >&6
9273a67f45c3Smrgelse $as_nop
92749ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92759ff100acSmrg/* end confdefs.h.  */
92769ff100acSmrgint i;
92779ff100acSmrg_ACEOF
9278a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9279a67f45c3Smrgthen :
92809ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9281a67f45c3Smrgelse $as_nop
92829ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
92839ff100acSmrgfi
9284a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
92859ff100acSmrgfi
9286a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
92889ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
92899ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
92909ff100acSmrgfi
92919ff100acSmrg
92929ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
92939ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
92949ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
92959ff100acSmrg	fi
92969ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9300a67f45c3Smrgthen :
9301a67f45c3Smrg  printf %s "(cached) " >&6
9302a67f45c3Smrgelse $as_nop
93039ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93049ff100acSmrg/* end confdefs.h.  */
93059ff100acSmrgint i;
93069ff100acSmrg_ACEOF
9307a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9308a67f45c3Smrgthen :
93099ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9310a67f45c3Smrgelse $as_nop
93119ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
93129ff100acSmrgfi
9313a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
93149ff100acSmrgfi
9315a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9316a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
93179ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
93189ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
93199ff100acSmrgfi
93209ff100acSmrg
93219ff100acSmrgfound="no"
93229ff100acSmrg
93239ff100acSmrg	if test $found = "no" ; then
93249ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
93259ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
93269ff100acSmrg		fi
93279ff100acSmrg
93289ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
93299ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
93309ff100acSmrg		fi
93319ff100acSmrg
93329ff100acSmrg		CFLAGS="$CFLAGS -Wmain"
93339ff100acSmrg
9334a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9335a67f45c3Smrgprintf %s "checking if $CC supports -Wmain... " >&6; }
93369ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmain
9337a67f45c3Smrg		if eval test \${$cacheid+y}
9338a67f45c3Smrgthen :
9339a67f45c3Smrg  printf %s "(cached) " >&6
9340a67f45c3Smrgelse $as_nop
93419ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93429ff100acSmrg/* end confdefs.h.  */
93439ff100acSmrgint i;
93449ff100acSmrgint
9345a67f45c3Smrgmain (void)
93469ff100acSmrg{
93479ff100acSmrg
93489ff100acSmrg  ;
93499ff100acSmrg  return 0;
93509ff100acSmrg}
93519ff100acSmrg_ACEOF
9352a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9353a67f45c3Smrgthen :
93549ff100acSmrg  eval $cacheid=yes
9355a67f45c3Smrgelse $as_nop
93569ff100acSmrg  eval $cacheid=no
93579ff100acSmrgfi
9358a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
93599ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
93609ff100acSmrgfi
93619ff100acSmrg
93629ff100acSmrg
93639ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
93649ff100acSmrg
93659ff100acSmrg		eval supported=\$$cacheid
9366a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9367a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
93689ff100acSmrg		if test "$supported" = "yes" ; then
93699ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
93709ff100acSmrg			found="yes"
93719ff100acSmrg		fi
93729ff100acSmrg	fi
93739ff100acSmrg
93749ff100acSmrg
93759ff100acSmrg
93769ff100acSmrg
93779ff100acSmrg
93789ff100acSmrg
93799ff100acSmrg
93809ff100acSmrg
93819ff100acSmrg
93829ff100acSmrg
93839ff100acSmrg
93849ff100acSmrg
93859ff100acSmrg
93869ff100acSmrg
93879ff100acSmrg
93889ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
93899ff100acSmrg
93909ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
93919ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9393a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9394a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9395a67f45c3Smrgthen :
9396a67f45c3Smrg  printf %s "(cached) " >&6
9397a67f45c3Smrgelse $as_nop
93989ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93999ff100acSmrg/* end confdefs.h.  */
94009ff100acSmrgint i;
94019ff100acSmrg_ACEOF
9402a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9403a67f45c3Smrgthen :
94049ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9405a67f45c3Smrgelse $as_nop
94069ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
94079ff100acSmrgfi
9408a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
94099ff100acSmrgfi
9410a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9411a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
94129ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
94139ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94149ff100acSmrgfi
94159ff100acSmrg
94169ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
94179ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94189ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94199ff100acSmrg	fi
94209ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9421a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9422a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9423a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9424a67f45c3Smrgthen :
9425a67f45c3Smrg  printf %s "(cached) " >&6
9426a67f45c3Smrgelse $as_nop
94279ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94289ff100acSmrg/* end confdefs.h.  */
94299ff100acSmrgint i;
94309ff100acSmrg_ACEOF
9431a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9432a67f45c3Smrgthen :
94339ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9434a67f45c3Smrgelse $as_nop
94359ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
94369ff100acSmrgfi
9437a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
94389ff100acSmrgfi
9439a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9440a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
94419ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
94429ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
94439ff100acSmrgfi
94449ff100acSmrg
94459ff100acSmrgfound="no"
94469ff100acSmrg
94479ff100acSmrg	if test $found = "no" ; then
94489ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
94499ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
94509ff100acSmrg		fi
94519ff100acSmrg
94529ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
94539ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
94549ff100acSmrg		fi
94559ff100acSmrg
94569ff100acSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
94579ff100acSmrg
9458a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9459a67f45c3Smrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
94609ff100acSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9461a67f45c3Smrg		if eval test \${$cacheid+y}
9462a67f45c3Smrgthen :
9463a67f45c3Smrg  printf %s "(cached) " >&6
9464a67f45c3Smrgelse $as_nop
94659ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
94669ff100acSmrg/* end confdefs.h.  */
94679ff100acSmrgint i;
94689ff100acSmrgint
9469a67f45c3Smrgmain (void)
94709ff100acSmrg{
94719ff100acSmrg
94729ff100acSmrg  ;
94739ff100acSmrg  return 0;
94749ff100acSmrg}
94759ff100acSmrg_ACEOF
9476a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9477a67f45c3Smrgthen :
94789ff100acSmrg  eval $cacheid=yes
9479a67f45c3Smrgelse $as_nop
94809ff100acSmrg  eval $cacheid=no
94819ff100acSmrgfi
9482a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
94839ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
94849ff100acSmrgfi
94859ff100acSmrg
94869ff100acSmrg
94879ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
94889ff100acSmrg
94899ff100acSmrg		eval supported=\$$cacheid
9490a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9491a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
94929ff100acSmrg		if test "$supported" = "yes" ; then
94939ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
94949ff100acSmrg			found="yes"
94959ff100acSmrg		fi
94969ff100acSmrg	fi
94979ff100acSmrg
94989ff100acSmrg
94999ff100acSmrg
95009ff100acSmrg
95019ff100acSmrg
95029ff100acSmrg
95039ff100acSmrg
95049ff100acSmrg
95059ff100acSmrg
95069ff100acSmrg
95079ff100acSmrg
95089ff100acSmrg
95099ff100acSmrg
95109ff100acSmrg
95119ff100acSmrg
95129ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
95139ff100acSmrg
95149ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
95159ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9517a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9518a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9519a67f45c3Smrgthen :
9520a67f45c3Smrg  printf %s "(cached) " >&6
9521a67f45c3Smrgelse $as_nop
95229ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95239ff100acSmrg/* end confdefs.h.  */
95249ff100acSmrgint i;
95259ff100acSmrg_ACEOF
9526a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9527a67f45c3Smrgthen :
95289ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9529a67f45c3Smrgelse $as_nop
95309ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
95319ff100acSmrgfi
9532a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95339ff100acSmrgfi
9534a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9535a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
95369ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
95379ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95389ff100acSmrgfi
95399ff100acSmrg
95409ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
95419ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95429ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95439ff100acSmrg	fi
95449ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9545a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9546a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9547a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9548a67f45c3Smrgthen :
9549a67f45c3Smrg  printf %s "(cached) " >&6
9550a67f45c3Smrgelse $as_nop
95519ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95529ff100acSmrg/* end confdefs.h.  */
95539ff100acSmrgint i;
95549ff100acSmrg_ACEOF
9555a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9556a67f45c3Smrgthen :
95579ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9558a67f45c3Smrgelse $as_nop
95599ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
95609ff100acSmrgfi
9561a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
95629ff100acSmrgfi
9563a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9564a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
95659ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
95669ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
95679ff100acSmrgfi
95689ff100acSmrg
95699ff100acSmrgfound="no"
95709ff100acSmrg
95719ff100acSmrg	if test $found = "no" ; then
95729ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
95739ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
95749ff100acSmrg		fi
95759ff100acSmrg
95769ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
95779ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
95789ff100acSmrg		fi
95799ff100acSmrg
95809ff100acSmrg		CFLAGS="$CFLAGS -Wsequence-point"
95819ff100acSmrg
9582a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9583a67f45c3Smrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
95849ff100acSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9585a67f45c3Smrg		if eval test \${$cacheid+y}
9586a67f45c3Smrgthen :
9587a67f45c3Smrg  printf %s "(cached) " >&6
9588a67f45c3Smrgelse $as_nop
95899ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
95909ff100acSmrg/* end confdefs.h.  */
95919ff100acSmrgint i;
95929ff100acSmrgint
9593a67f45c3Smrgmain (void)
95949ff100acSmrg{
95959ff100acSmrg
95969ff100acSmrg  ;
95979ff100acSmrg  return 0;
95989ff100acSmrg}
95999ff100acSmrg_ACEOF
9600a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9601a67f45c3Smrgthen :
96029ff100acSmrg  eval $cacheid=yes
9603a67f45c3Smrgelse $as_nop
96049ff100acSmrg  eval $cacheid=no
96059ff100acSmrgfi
9606a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
96079ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
96089ff100acSmrgfi
96099ff100acSmrg
96109ff100acSmrg
96119ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
96129ff100acSmrg
96139ff100acSmrg		eval supported=\$$cacheid
9614a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9615a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
96169ff100acSmrg		if test "$supported" = "yes" ; then
96179ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
96189ff100acSmrg			found="yes"
96199ff100acSmrg		fi
96209ff100acSmrg	fi
96219ff100acSmrg
96229ff100acSmrg
96239ff100acSmrg
96249ff100acSmrg
96259ff100acSmrg
96269ff100acSmrg
96279ff100acSmrg
96289ff100acSmrg
96299ff100acSmrg
96309ff100acSmrg
96319ff100acSmrg
96329ff100acSmrg
96339ff100acSmrg
96349ff100acSmrg
96359ff100acSmrg
96369ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
96379ff100acSmrg
96389ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
96399ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9641a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9642a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9643a67f45c3Smrgthen :
9644a67f45c3Smrg  printf %s "(cached) " >&6
9645a67f45c3Smrgelse $as_nop
96469ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96479ff100acSmrg/* end confdefs.h.  */
96489ff100acSmrgint i;
96499ff100acSmrg_ACEOF
9650a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9651a67f45c3Smrgthen :
96529ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9653a67f45c3Smrgelse $as_nop
96549ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
96559ff100acSmrgfi
9656a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96579ff100acSmrgfi
9658a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9659a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
96609ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
96619ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96629ff100acSmrgfi
96639ff100acSmrg
96649ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
96659ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96669ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96679ff100acSmrg	fi
96689ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9669a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9670a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9671a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9672a67f45c3Smrgthen :
9673a67f45c3Smrg  printf %s "(cached) " >&6
9674a67f45c3Smrgelse $as_nop
96759ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
96769ff100acSmrg/* end confdefs.h.  */
96779ff100acSmrgint i;
96789ff100acSmrg_ACEOF
9679a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9680a67f45c3Smrgthen :
96819ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9682a67f45c3Smrgelse $as_nop
96839ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
96849ff100acSmrgfi
9685a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
96869ff100acSmrgfi
9687a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9688a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
96899ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
96909ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
96919ff100acSmrgfi
96929ff100acSmrg
96939ff100acSmrgfound="no"
96949ff100acSmrg
96959ff100acSmrg	if test $found = "no" ; then
96969ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
96979ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
96989ff100acSmrg		fi
96999ff100acSmrg
97009ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
97019ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
97029ff100acSmrg		fi
97039ff100acSmrg
97049ff100acSmrg		CFLAGS="$CFLAGS -Wreturn-type"
97059ff100acSmrg
9706a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9707a67f45c3Smrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
97089ff100acSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9709a67f45c3Smrg		if eval test \${$cacheid+y}
9710a67f45c3Smrgthen :
9711a67f45c3Smrg  printf %s "(cached) " >&6
9712a67f45c3Smrgelse $as_nop
97139ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97149ff100acSmrg/* end confdefs.h.  */
97159ff100acSmrgint i;
97169ff100acSmrgint
9717a67f45c3Smrgmain (void)
97189ff100acSmrg{
97199ff100acSmrg
97209ff100acSmrg  ;
97219ff100acSmrg  return 0;
97229ff100acSmrg}
97239ff100acSmrg_ACEOF
9724a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9725a67f45c3Smrgthen :
97269ff100acSmrg  eval $cacheid=yes
9727a67f45c3Smrgelse $as_nop
97289ff100acSmrg  eval $cacheid=no
97299ff100acSmrgfi
9730a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
97319ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
97329ff100acSmrgfi
97339ff100acSmrg
97349ff100acSmrg
97359ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
97369ff100acSmrg
97379ff100acSmrg		eval supported=\$$cacheid
9738a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9739a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
97409ff100acSmrg		if test "$supported" = "yes" ; then
97419ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
97429ff100acSmrg			found="yes"
97439ff100acSmrg		fi
97449ff100acSmrg	fi
97459ff100acSmrg
97469ff100acSmrg
97479ff100acSmrg
97489ff100acSmrg
97499ff100acSmrg
97509ff100acSmrg
97519ff100acSmrg
97529ff100acSmrg
97539ff100acSmrg
97549ff100acSmrg
97559ff100acSmrg
97569ff100acSmrg
97579ff100acSmrg
97589ff100acSmrg
97599ff100acSmrg
97609ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
97619ff100acSmrg
97629ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
97639ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9765a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9766a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9767a67f45c3Smrgthen :
9768a67f45c3Smrg  printf %s "(cached) " >&6
9769a67f45c3Smrgelse $as_nop
97709ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97719ff100acSmrg/* end confdefs.h.  */
97729ff100acSmrgint i;
97739ff100acSmrg_ACEOF
9774a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9775a67f45c3Smrgthen :
97769ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9777a67f45c3Smrgelse $as_nop
97789ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
97799ff100acSmrgfi
9780a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
97819ff100acSmrgfi
9782a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9783a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
97849ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
97859ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
97869ff100acSmrgfi
97879ff100acSmrg
97889ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
97899ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
97909ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
97919ff100acSmrg	fi
97929ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9793a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9794a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9795a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9796a67f45c3Smrgthen :
9797a67f45c3Smrg  printf %s "(cached) " >&6
9798a67f45c3Smrgelse $as_nop
97999ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98009ff100acSmrg/* end confdefs.h.  */
98019ff100acSmrgint i;
98029ff100acSmrg_ACEOF
9803a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9804a67f45c3Smrgthen :
98059ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9806a67f45c3Smrgelse $as_nop
98079ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
98089ff100acSmrgfi
9809a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
98109ff100acSmrgfi
9811a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9812a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
98139ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
98149ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
98159ff100acSmrgfi
98169ff100acSmrg
98179ff100acSmrgfound="no"
98189ff100acSmrg
98199ff100acSmrg	if test $found = "no" ; then
98209ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
98219ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
98229ff100acSmrg		fi
98239ff100acSmrg
98249ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
98259ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
98269ff100acSmrg		fi
98279ff100acSmrg
98289ff100acSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
98299ff100acSmrg
9830a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9831a67f45c3Smrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
98329ff100acSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9833a67f45c3Smrg		if eval test \${$cacheid+y}
9834a67f45c3Smrgthen :
9835a67f45c3Smrg  printf %s "(cached) " >&6
9836a67f45c3Smrgelse $as_nop
98379ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98389ff100acSmrg/* end confdefs.h.  */
98399ff100acSmrgint i;
98409ff100acSmrgint
9841a67f45c3Smrgmain (void)
98429ff100acSmrg{
98439ff100acSmrg
98449ff100acSmrg  ;
98459ff100acSmrg  return 0;
98469ff100acSmrg}
98479ff100acSmrg_ACEOF
9848a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9849a67f45c3Smrgthen :
98509ff100acSmrg  eval $cacheid=yes
9851a67f45c3Smrgelse $as_nop
98529ff100acSmrg  eval $cacheid=no
98539ff100acSmrgfi
9854a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
98559ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
98569ff100acSmrgfi
98579ff100acSmrg
98589ff100acSmrg
98599ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
98609ff100acSmrg
98619ff100acSmrg		eval supported=\$$cacheid
9862a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
98649ff100acSmrg		if test "$supported" = "yes" ; then
98659ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
98669ff100acSmrg			found="yes"
98679ff100acSmrg		fi
98689ff100acSmrg	fi
98699ff100acSmrg
98709ff100acSmrg
98719ff100acSmrg
98729ff100acSmrg
98739ff100acSmrg
98749ff100acSmrg
98759ff100acSmrg
98769ff100acSmrg
98779ff100acSmrg
98789ff100acSmrg
98799ff100acSmrg
98809ff100acSmrg
98819ff100acSmrg
98829ff100acSmrg
98839ff100acSmrg
98849ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
98859ff100acSmrg
98869ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
98879ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9891a67f45c3Smrgthen :
9892a67f45c3Smrg  printf %s "(cached) " >&6
9893a67f45c3Smrgelse $as_nop
98949ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
98959ff100acSmrg/* end confdefs.h.  */
98969ff100acSmrgint i;
98979ff100acSmrg_ACEOF
9898a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9899a67f45c3Smrgthen :
99009ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9901a67f45c3Smrgelse $as_nop
99029ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
99039ff100acSmrgfi
9904a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99059ff100acSmrgfi
9906a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9907a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
99089ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
99099ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99109ff100acSmrgfi
99119ff100acSmrg
99129ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
99139ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99149ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99159ff100acSmrg	fi
99169ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9917a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9918a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9919a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9920a67f45c3Smrgthen :
9921a67f45c3Smrg  printf %s "(cached) " >&6
9922a67f45c3Smrgelse $as_nop
99239ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99249ff100acSmrg/* end confdefs.h.  */
99259ff100acSmrgint i;
99269ff100acSmrg_ACEOF
9927a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
9928a67f45c3Smrgthen :
99299ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9930a67f45c3Smrgelse $as_nop
99319ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
99329ff100acSmrgfi
9933a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
99349ff100acSmrgfi
9935a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9936a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
99379ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
99389ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
99399ff100acSmrgfi
99409ff100acSmrg
99419ff100acSmrgfound="no"
99429ff100acSmrg
99439ff100acSmrg	if test $found = "no" ; then
99449ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
99459ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
99469ff100acSmrg		fi
99479ff100acSmrg
99489ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
99499ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
99509ff100acSmrg		fi
99519ff100acSmrg
99529ff100acSmrg		CFLAGS="$CFLAGS -Warray-bounds"
99539ff100acSmrg
9954a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9955a67f45c3Smrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
99569ff100acSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9957a67f45c3Smrg		if eval test \${$cacheid+y}
9958a67f45c3Smrgthen :
9959a67f45c3Smrg  printf %s "(cached) " >&6
9960a67f45c3Smrgelse $as_nop
99619ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
99629ff100acSmrg/* end confdefs.h.  */
99639ff100acSmrgint i;
99649ff100acSmrgint
9965a67f45c3Smrgmain (void)
99669ff100acSmrg{
99679ff100acSmrg
99689ff100acSmrg  ;
99699ff100acSmrg  return 0;
99709ff100acSmrg}
99719ff100acSmrg_ACEOF
9972a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
9973a67f45c3Smrgthen :
99749ff100acSmrg  eval $cacheid=yes
9975a67f45c3Smrgelse $as_nop
99769ff100acSmrg  eval $cacheid=no
99779ff100acSmrgfi
9978a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
99799ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
99809ff100acSmrgfi
99819ff100acSmrg
99829ff100acSmrg
99839ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
99849ff100acSmrg
99859ff100acSmrg		eval supported=\$$cacheid
9986a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9987a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
99889ff100acSmrg		if test "$supported" = "yes" ; then
99899ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
99909ff100acSmrg			found="yes"
99919ff100acSmrg		fi
99929ff100acSmrg	fi
99939ff100acSmrg
99949ff100acSmrg
99959ff100acSmrg
99969ff100acSmrg
99979ff100acSmrg
99989ff100acSmrg
99999ff100acSmrg
100009ff100acSmrg
100019ff100acSmrg
100029ff100acSmrg
100039ff100acSmrg
100049ff100acSmrg
100059ff100acSmrg
100069ff100acSmrg
100079ff100acSmrg
100089ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
100099ff100acSmrg
100109ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
100119ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10012a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10013a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10014a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10015a67f45c3Smrgthen :
10016a67f45c3Smrg  printf %s "(cached) " >&6
10017a67f45c3Smrgelse $as_nop
100189ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100199ff100acSmrg/* end confdefs.h.  */
100209ff100acSmrgint i;
100219ff100acSmrg_ACEOF
10022a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10023a67f45c3Smrgthen :
100249ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10025a67f45c3Smrgelse $as_nop
100269ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
100279ff100acSmrgfi
10028a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100299ff100acSmrgfi
10030a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
100329ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
100339ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100349ff100acSmrgfi
100359ff100acSmrg
100369ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
100379ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100389ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100399ff100acSmrg	fi
100409ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10044a67f45c3Smrgthen :
10045a67f45c3Smrg  printf %s "(cached) " >&6
10046a67f45c3Smrgelse $as_nop
100479ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100489ff100acSmrg/* end confdefs.h.  */
100499ff100acSmrgint i;
100509ff100acSmrg_ACEOF
10051a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10052a67f45c3Smrgthen :
100539ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10054a67f45c3Smrgelse $as_nop
100559ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
100569ff100acSmrgfi
10057a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
100589ff100acSmrgfi
10059a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10060a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
100619ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
100629ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
100639ff100acSmrgfi
100649ff100acSmrg
100659ff100acSmrgfound="no"
100669ff100acSmrg
100679ff100acSmrg	if test $found = "no" ; then
100689ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
100699ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
100709ff100acSmrg		fi
100719ff100acSmrg
100729ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
100739ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
100749ff100acSmrg		fi
100759ff100acSmrg
100769ff100acSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
100779ff100acSmrg
10078a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10079a67f45c3Smrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
100809ff100acSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10081a67f45c3Smrg		if eval test \${$cacheid+y}
10082a67f45c3Smrgthen :
10083a67f45c3Smrg  printf %s "(cached) " >&6
10084a67f45c3Smrgelse $as_nop
100859ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
100869ff100acSmrg/* end confdefs.h.  */
100879ff100acSmrgint i;
100889ff100acSmrgint
10089a67f45c3Smrgmain (void)
100909ff100acSmrg{
100919ff100acSmrg
100929ff100acSmrg  ;
100939ff100acSmrg  return 0;
100949ff100acSmrg}
100959ff100acSmrg_ACEOF
10096a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10097a67f45c3Smrgthen :
100989ff100acSmrg  eval $cacheid=yes
10099a67f45c3Smrgelse $as_nop
101009ff100acSmrg  eval $cacheid=no
101019ff100acSmrgfi
10102a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
101039ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
101049ff100acSmrgfi
101059ff100acSmrg
101069ff100acSmrg
101079ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
101089ff100acSmrg
101099ff100acSmrg		eval supported=\$$cacheid
10110a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10111a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
101129ff100acSmrg		if test "$supported" = "yes" ; then
101139ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
101149ff100acSmrg			found="yes"
101159ff100acSmrg		fi
101169ff100acSmrg	fi
101179ff100acSmrg
101189ff100acSmrg
101199ff100acSmrg
101209ff100acSmrg
101219ff100acSmrg
101229ff100acSmrg
101239ff100acSmrg
101249ff100acSmrg
101259ff100acSmrg
101269ff100acSmrg
101279ff100acSmrg
101289ff100acSmrg
101299ff100acSmrg
101309ff100acSmrg
101319ff100acSmrg
101329ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
101339ff100acSmrg
101349ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
101359ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10136a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10137a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10138a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10139a67f45c3Smrgthen :
10140a67f45c3Smrg  printf %s "(cached) " >&6
10141a67f45c3Smrgelse $as_nop
101429ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101439ff100acSmrg/* end confdefs.h.  */
101449ff100acSmrgint i;
101459ff100acSmrg_ACEOF
10146a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10147a67f45c3Smrgthen :
101489ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10149a67f45c3Smrgelse $as_nop
101509ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
101519ff100acSmrgfi
10152a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101539ff100acSmrgfi
10154a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10155a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
101569ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
101579ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101589ff100acSmrgfi
101599ff100acSmrg
101609ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
101619ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101629ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101639ff100acSmrg	fi
101649ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10165a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10166a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10167a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10168a67f45c3Smrgthen :
10169a67f45c3Smrg  printf %s "(cached) " >&6
10170a67f45c3Smrgelse $as_nop
101719ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
101729ff100acSmrg/* end confdefs.h.  */
101739ff100acSmrgint i;
101749ff100acSmrg_ACEOF
10175a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10176a67f45c3Smrgthen :
101779ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10178a67f45c3Smrgelse $as_nop
101799ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
101809ff100acSmrgfi
10181a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
101829ff100acSmrgfi
10183a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10184a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
101859ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
101869ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
101879ff100acSmrgfi
101889ff100acSmrg
101899ff100acSmrgfound="no"
101909ff100acSmrg
101919ff100acSmrg	if test $found = "no" ; then
101929ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
101939ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
101949ff100acSmrg		fi
101959ff100acSmrg
101969ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
101979ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
101989ff100acSmrg		fi
101999ff100acSmrg
102009ff100acSmrg		CFLAGS="$CFLAGS -Waddress"
102019ff100acSmrg
10202a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10203a67f45c3Smrgprintf %s "checking if $CC supports -Waddress... " >&6; }
102049ff100acSmrg		cacheid=xorg_cv_cc_flag__Waddress
10205a67f45c3Smrg		if eval test \${$cacheid+y}
10206a67f45c3Smrgthen :
10207a67f45c3Smrg  printf %s "(cached) " >&6
10208a67f45c3Smrgelse $as_nop
102099ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102109ff100acSmrg/* end confdefs.h.  */
102119ff100acSmrgint i;
102129ff100acSmrgint
10213a67f45c3Smrgmain (void)
102149ff100acSmrg{
102159ff100acSmrg
102169ff100acSmrg  ;
102179ff100acSmrg  return 0;
102189ff100acSmrg}
102199ff100acSmrg_ACEOF
10220a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10221a67f45c3Smrgthen :
102229ff100acSmrg  eval $cacheid=yes
10223a67f45c3Smrgelse $as_nop
102249ff100acSmrg  eval $cacheid=no
102259ff100acSmrgfi
10226a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
102279ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
102289ff100acSmrgfi
102299ff100acSmrg
102309ff100acSmrg
102319ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
102329ff100acSmrg
102339ff100acSmrg		eval supported=\$$cacheid
10234a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10235a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
102369ff100acSmrg		if test "$supported" = "yes" ; then
102379ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
102389ff100acSmrg			found="yes"
102399ff100acSmrg		fi
102409ff100acSmrg	fi
102419ff100acSmrg
102429ff100acSmrg
102439ff100acSmrg
102449ff100acSmrg
102459ff100acSmrg
102469ff100acSmrg
102479ff100acSmrg
102489ff100acSmrg
102499ff100acSmrg
102509ff100acSmrg
102519ff100acSmrg
102529ff100acSmrg
102539ff100acSmrg
102549ff100acSmrg
102559ff100acSmrg
102569ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
102579ff100acSmrg
102589ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
102599ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10261a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10262a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10263a67f45c3Smrgthen :
10264a67f45c3Smrg  printf %s "(cached) " >&6
10265a67f45c3Smrgelse $as_nop
102669ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102679ff100acSmrg/* end confdefs.h.  */
102689ff100acSmrgint i;
102699ff100acSmrg_ACEOF
10270a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10271a67f45c3Smrgthen :
102729ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10273a67f45c3Smrgelse $as_nop
102749ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
102759ff100acSmrgfi
10276a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
102779ff100acSmrgfi
10278a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10279a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
102809ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
102819ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
102829ff100acSmrgfi
102839ff100acSmrg
102849ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
102859ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
102869ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
102879ff100acSmrg	fi
102889ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10289a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10290a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10291a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10292a67f45c3Smrgthen :
10293a67f45c3Smrg  printf %s "(cached) " >&6
10294a67f45c3Smrgelse $as_nop
102959ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
102969ff100acSmrg/* end confdefs.h.  */
102979ff100acSmrgint i;
102989ff100acSmrg_ACEOF
10299a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10300a67f45c3Smrgthen :
103019ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10302a67f45c3Smrgelse $as_nop
103039ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
103049ff100acSmrgfi
10305a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
103069ff100acSmrgfi
10307a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10308a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
103099ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
103109ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
103119ff100acSmrgfi
103129ff100acSmrg
103139ff100acSmrgfound="no"
103149ff100acSmrg
103159ff100acSmrg	if test $found = "no" ; then
103169ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
103179ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
103189ff100acSmrg		fi
103199ff100acSmrg
103209ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
103219ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
103229ff100acSmrg		fi
103239ff100acSmrg
103249ff100acSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
103259ff100acSmrg
10326a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10327a67f45c3Smrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
103289ff100acSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10329a67f45c3Smrg		if eval test \${$cacheid+y}
10330a67f45c3Smrgthen :
10331a67f45c3Smrg  printf %s "(cached) " >&6
10332a67f45c3Smrgelse $as_nop
103339ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103349ff100acSmrg/* end confdefs.h.  */
103359ff100acSmrgint i;
103369ff100acSmrgint
10337a67f45c3Smrgmain (void)
103389ff100acSmrg{
103399ff100acSmrg
103409ff100acSmrg  ;
103419ff100acSmrg  return 0;
103429ff100acSmrg}
103439ff100acSmrg_ACEOF
10344a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10345a67f45c3Smrgthen :
103469ff100acSmrg  eval $cacheid=yes
10347a67f45c3Smrgelse $as_nop
103489ff100acSmrg  eval $cacheid=no
103499ff100acSmrgfi
10350a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
103519ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
103529ff100acSmrgfi
103539ff100acSmrg
103549ff100acSmrg
103559ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
103569ff100acSmrg
103579ff100acSmrg		eval supported=\$$cacheid
10358a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10359a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
103609ff100acSmrg		if test "$supported" = "yes" ; then
103619ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
103629ff100acSmrg			found="yes"
103639ff100acSmrg		fi
103649ff100acSmrg	fi
103659ff100acSmrg
103669ff100acSmrg
103679ff100acSmrg
103689ff100acSmrg
103699ff100acSmrg
103709ff100acSmrg
103719ff100acSmrg
103729ff100acSmrg
103739ff100acSmrg
103749ff100acSmrg
103759ff100acSmrg
103769ff100acSmrg
103779ff100acSmrg
103789ff100acSmrg
103799ff100acSmrg
103809ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
103819ff100acSmrg
103829ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
103839ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10384a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10385a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10386a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10387a67f45c3Smrgthen :
10388a67f45c3Smrg  printf %s "(cached) " >&6
10389a67f45c3Smrgelse $as_nop
103909ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
103919ff100acSmrg/* end confdefs.h.  */
103929ff100acSmrgint i;
103939ff100acSmrg_ACEOF
10394a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10395a67f45c3Smrgthen :
103969ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10397a67f45c3Smrgelse $as_nop
103989ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
103999ff100acSmrgfi
10400a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
104019ff100acSmrgfi
10402a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10403a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
104049ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
104059ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104069ff100acSmrgfi
104079ff100acSmrg
104089ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
104099ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104109ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104119ff100acSmrg	fi
104129ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10413a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10414a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10415a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10416a67f45c3Smrgthen :
10417a67f45c3Smrg  printf %s "(cached) " >&6
10418a67f45c3Smrgelse $as_nop
104199ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104209ff100acSmrg/* end confdefs.h.  */
104219ff100acSmrgint i;
104229ff100acSmrg_ACEOF
10423a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10424a67f45c3Smrgthen :
104259ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10426a67f45c3Smrgelse $as_nop
104279ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
104289ff100acSmrgfi
10429a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
104309ff100acSmrgfi
10431a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10432a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
104339ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
104349ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
104359ff100acSmrgfi
104369ff100acSmrg
104379ff100acSmrgfound="no"
104389ff100acSmrg
104399ff100acSmrg	if test $found = "no" ; then
104409ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
104419ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
104429ff100acSmrg		fi
104439ff100acSmrg
104449ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
104459ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
104469ff100acSmrg		fi
104479ff100acSmrg
104489ff100acSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
104499ff100acSmrg
10450a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10451a67f45c3Smrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
104529ff100acSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10453a67f45c3Smrg		if eval test \${$cacheid+y}
10454a67f45c3Smrgthen :
10455a67f45c3Smrg  printf %s "(cached) " >&6
10456a67f45c3Smrgelse $as_nop
104579ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
104589ff100acSmrg/* end confdefs.h.  */
104599ff100acSmrgint i;
104609ff100acSmrgint
10461a67f45c3Smrgmain (void)
104629ff100acSmrg{
104639ff100acSmrg
104649ff100acSmrg  ;
104659ff100acSmrg  return 0;
104669ff100acSmrg}
104679ff100acSmrg_ACEOF
10468a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10469a67f45c3Smrgthen :
104709ff100acSmrg  eval $cacheid=yes
10471a67f45c3Smrgelse $as_nop
104729ff100acSmrg  eval $cacheid=no
104739ff100acSmrgfi
10474a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
104759ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
104769ff100acSmrgfi
104779ff100acSmrg
104789ff100acSmrg
104799ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
104809ff100acSmrg
104819ff100acSmrg		eval supported=\$$cacheid
10482a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10483a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
104849ff100acSmrg		if test "$supported" = "yes" ; then
104859ff100acSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
104869ff100acSmrg			found="yes"
104879ff100acSmrg		fi
104889ff100acSmrg	fi
104899ff100acSmrg
104909ff100acSmrg
104919ff100acSmrgfi
104929ff100acSmrg
104939ff100acSmrg
104949ff100acSmrg
104959ff100acSmrg
104969ff100acSmrg
104979ff100acSmrg
104989ff100acSmrg
104999ff100acSmrg		CWARNFLAGS="$BASE_CFLAGS"
105009ff100acSmrg		if  test "x$GCC" = xyes ; then
105019ff100acSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
105029ff100acSmrg		fi
105039ff100acSmrg
105049ff100acSmrg
105059ff100acSmrg
105069ff100acSmrg
105079ff100acSmrg
105089ff100acSmrg
105099ff100acSmrg
105109ff100acSmrg
105119ff100acSmrg# Check whether --enable-strict-compilation was given.
10512a67f45c3Smrgif test ${enable_strict_compilation+y}
10513a67f45c3Smrgthen :
105149ff100acSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10515a67f45c3Smrgelse $as_nop
105169ff100acSmrg  STRICT_COMPILE=no
105179ff100acSmrgfi
105189ff100acSmrg
105199ff100acSmrg
105209ff100acSmrg
105219ff100acSmrg
105229ff100acSmrg
105239ff100acSmrg
105249ff100acSmrgSTRICT_CFLAGS=""
105259ff100acSmrg
105269ff100acSmrg
105279ff100acSmrg
105289ff100acSmrg
105299ff100acSmrg
105309ff100acSmrg
105319ff100acSmrg
105329ff100acSmrg
105339ff100acSmrg
105349ff100acSmrg
105359ff100acSmrg
105369ff100acSmrg
105379ff100acSmrg
105389ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
105399ff100acSmrg
105409ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
105419ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10543a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10544a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10545a67f45c3Smrgthen :
10546a67f45c3Smrg  printf %s "(cached) " >&6
10547a67f45c3Smrgelse $as_nop
105489ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105499ff100acSmrg/* end confdefs.h.  */
105509ff100acSmrgint i;
105519ff100acSmrg_ACEOF
10552a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10553a67f45c3Smrgthen :
105549ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10555a67f45c3Smrgelse $as_nop
105569ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
105579ff100acSmrgfi
10558a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105599ff100acSmrgfi
10560a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10561a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
105629ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
105639ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105649ff100acSmrgfi
105659ff100acSmrg
105669ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
105679ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105689ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
105699ff100acSmrg	fi
105709ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10571a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10572a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10573a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10574a67f45c3Smrgthen :
10575a67f45c3Smrg  printf %s "(cached) " >&6
10576a67f45c3Smrgelse $as_nop
105779ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
105789ff100acSmrg/* end confdefs.h.  */
105799ff100acSmrgint i;
105809ff100acSmrg_ACEOF
10581a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10582a67f45c3Smrgthen :
105839ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10584a67f45c3Smrgelse $as_nop
105859ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
105869ff100acSmrgfi
10587a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
105889ff100acSmrgfi
10589a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10590a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
105919ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
105929ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
105939ff100acSmrgfi
105949ff100acSmrg
105959ff100acSmrgfound="no"
105969ff100acSmrg
105979ff100acSmrg	if test $found = "no" ; then
105989ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
105999ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106009ff100acSmrg		fi
106019ff100acSmrg
106029ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
106039ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
106049ff100acSmrg		fi
106059ff100acSmrg
106069ff100acSmrg		CFLAGS="$CFLAGS -pedantic"
106079ff100acSmrg
10608a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10609a67f45c3Smrgprintf %s "checking if $CC supports -pedantic... " >&6; }
106109ff100acSmrg		cacheid=xorg_cv_cc_flag__pedantic
10611a67f45c3Smrg		if eval test \${$cacheid+y}
10612a67f45c3Smrgthen :
10613a67f45c3Smrg  printf %s "(cached) " >&6
10614a67f45c3Smrgelse $as_nop
106159ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106169ff100acSmrg/* end confdefs.h.  */
106179ff100acSmrgint i;
106189ff100acSmrgint
10619a67f45c3Smrgmain (void)
106209ff100acSmrg{
106219ff100acSmrg
106229ff100acSmrg  ;
106239ff100acSmrg  return 0;
106249ff100acSmrg}
106259ff100acSmrg_ACEOF
10626a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10627a67f45c3Smrgthen :
106289ff100acSmrg  eval $cacheid=yes
10629a67f45c3Smrgelse $as_nop
106309ff100acSmrg  eval $cacheid=no
106319ff100acSmrgfi
10632a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
106339ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
106349ff100acSmrgfi
106359ff100acSmrg
106369ff100acSmrg
106379ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
106389ff100acSmrg
106399ff100acSmrg		eval supported=\$$cacheid
10640a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10641a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
106429ff100acSmrg		if test "$supported" = "yes" ; then
106439ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
106449ff100acSmrg			found="yes"
106459ff100acSmrg		fi
106469ff100acSmrg	fi
106479ff100acSmrg
106489ff100acSmrg
106499ff100acSmrg
106509ff100acSmrg
106519ff100acSmrg
106529ff100acSmrg
106539ff100acSmrg
106549ff100acSmrg
106559ff100acSmrg
106569ff100acSmrg
106579ff100acSmrg
106589ff100acSmrg
106599ff100acSmrg
106609ff100acSmrg
106619ff100acSmrg
106629ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
106639ff100acSmrg
106649ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
106659ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10667a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10668a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10669a67f45c3Smrgthen :
10670a67f45c3Smrg  printf %s "(cached) " >&6
10671a67f45c3Smrgelse $as_nop
106729ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
106739ff100acSmrg/* end confdefs.h.  */
106749ff100acSmrgint i;
106759ff100acSmrg_ACEOF
10676a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10677a67f45c3Smrgthen :
106789ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10679a67f45c3Smrgelse $as_nop
106809ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
106819ff100acSmrgfi
10682a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
106839ff100acSmrgfi
10684a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10685a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
106869ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
106879ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
106889ff100acSmrgfi
106899ff100acSmrg
106909ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
106919ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
106929ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
106939ff100acSmrg	fi
106949ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10695a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10696a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10697a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10698a67f45c3Smrgthen :
10699a67f45c3Smrg  printf %s "(cached) " >&6
10700a67f45c3Smrgelse $as_nop
107019ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107029ff100acSmrg/* end confdefs.h.  */
107039ff100acSmrgint i;
107049ff100acSmrg_ACEOF
10705a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10706a67f45c3Smrgthen :
107079ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10708a67f45c3Smrgelse $as_nop
107099ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
107109ff100acSmrgfi
10711a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
107129ff100acSmrgfi
10713a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10714a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
107159ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
107169ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
107179ff100acSmrgfi
107189ff100acSmrg
107199ff100acSmrgfound="no"
107209ff100acSmrg
107219ff100acSmrg	if test $found = "no" ; then
107229ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107239ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107249ff100acSmrg		fi
107259ff100acSmrg
107269ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107279ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107289ff100acSmrg		fi
107299ff100acSmrg
107309ff100acSmrg		CFLAGS="$CFLAGS -Werror"
107319ff100acSmrg
10732a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10733a67f45c3Smrgprintf %s "checking if $CC supports -Werror... " >&6; }
107349ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror
10735a67f45c3Smrg		if eval test \${$cacheid+y}
10736a67f45c3Smrgthen :
10737a67f45c3Smrg  printf %s "(cached) " >&6
10738a67f45c3Smrgelse $as_nop
107399ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107409ff100acSmrg/* end confdefs.h.  */
107419ff100acSmrgint i;
107429ff100acSmrgint
10743a67f45c3Smrgmain (void)
107449ff100acSmrg{
107459ff100acSmrg
107469ff100acSmrg  ;
107479ff100acSmrg  return 0;
107489ff100acSmrg}
107499ff100acSmrg_ACEOF
10750a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10751a67f45c3Smrgthen :
107529ff100acSmrg  eval $cacheid=yes
10753a67f45c3Smrgelse $as_nop
107549ff100acSmrg  eval $cacheid=no
107559ff100acSmrgfi
10756a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
107579ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
107589ff100acSmrgfi
107599ff100acSmrg
107609ff100acSmrg
107619ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
107629ff100acSmrg
107639ff100acSmrg		eval supported=\$$cacheid
10764a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10765a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
107669ff100acSmrg		if test "$supported" = "yes" ; then
107679ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
107689ff100acSmrg			found="yes"
107699ff100acSmrg		fi
107709ff100acSmrg	fi
107719ff100acSmrg
107729ff100acSmrg	if test $found = "no" ; then
107739ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
107749ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
107759ff100acSmrg		fi
107769ff100acSmrg
107779ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
107789ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
107799ff100acSmrg		fi
107809ff100acSmrg
107819ff100acSmrg		CFLAGS="$CFLAGS -errwarn"
107829ff100acSmrg
10783a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10784a67f45c3Smrgprintf %s "checking if $CC supports -errwarn... " >&6; }
107859ff100acSmrg		cacheid=xorg_cv_cc_flag__errwarn
10786a67f45c3Smrg		if eval test \${$cacheid+y}
10787a67f45c3Smrgthen :
10788a67f45c3Smrg  printf %s "(cached) " >&6
10789a67f45c3Smrgelse $as_nop
107909ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
107919ff100acSmrg/* end confdefs.h.  */
107929ff100acSmrgint i;
107939ff100acSmrgint
10794a67f45c3Smrgmain (void)
107959ff100acSmrg{
107969ff100acSmrg
107979ff100acSmrg  ;
107989ff100acSmrg  return 0;
107999ff100acSmrg}
108009ff100acSmrg_ACEOF
10801a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10802a67f45c3Smrgthen :
108039ff100acSmrg  eval $cacheid=yes
10804a67f45c3Smrgelse $as_nop
108059ff100acSmrg  eval $cacheid=no
108069ff100acSmrgfi
10807a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
108089ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
108099ff100acSmrgfi
108109ff100acSmrg
108119ff100acSmrg
108129ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
108139ff100acSmrg
108149ff100acSmrg		eval supported=\$$cacheid
10815a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10816a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
108179ff100acSmrg		if test "$supported" = "yes" ; then
108189ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
108199ff100acSmrg			found="yes"
108209ff100acSmrg		fi
108219ff100acSmrg	fi
108229ff100acSmrg
108239ff100acSmrg
108249ff100acSmrg
108259ff100acSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
108269ff100acSmrg# activate it with -Werror, so we add it here explicitly.
108279ff100acSmrg
108289ff100acSmrg
108299ff100acSmrg
108309ff100acSmrg
108319ff100acSmrg
108329ff100acSmrg
108339ff100acSmrg
108349ff100acSmrg
108359ff100acSmrg
108369ff100acSmrg
108379ff100acSmrg
108389ff100acSmrg
108399ff100acSmrg
108409ff100acSmrgxorg_testset_save_CFLAGS="$CFLAGS"
108419ff100acSmrg
108429ff100acSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
108439ff100acSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10844a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10845a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10846a67f45c3Smrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10847a67f45c3Smrgthen :
10848a67f45c3Smrg  printf %s "(cached) " >&6
10849a67f45c3Smrgelse $as_nop
108509ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108519ff100acSmrg/* end confdefs.h.  */
108529ff100acSmrgint i;
108539ff100acSmrg_ACEOF
10854a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10855a67f45c3Smrgthen :
108569ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10857a67f45c3Smrgelse $as_nop
108589ff100acSmrg  xorg_cv_cc_flag_unknown_warning_option=no
108599ff100acSmrgfi
10860a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108619ff100acSmrgfi
10862a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10863a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
108649ff100acSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
108659ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
108669ff100acSmrgfi
108679ff100acSmrg
108689ff100acSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
108699ff100acSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
108709ff100acSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
108719ff100acSmrg	fi
108729ff100acSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10873a67f45c3Smrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10874a67f45c3Smrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10875a67f45c3Smrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10876a67f45c3Smrgthen :
10877a67f45c3Smrg  printf %s "(cached) " >&6
10878a67f45c3Smrgelse $as_nop
108799ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
108809ff100acSmrg/* end confdefs.h.  */
108819ff100acSmrgint i;
108829ff100acSmrg_ACEOF
10883a67f45c3Smrgif ac_fn_c_try_compile "$LINENO"
10884a67f45c3Smrgthen :
108859ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10886a67f45c3Smrgelse $as_nop
108879ff100acSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
108889ff100acSmrgfi
10889a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
108909ff100acSmrgfi
10891a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10892a67f45c3Smrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
108939ff100acSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
108949ff100acSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
108959ff100acSmrgfi
108969ff100acSmrg
108979ff100acSmrgfound="no"
108989ff100acSmrg
108999ff100acSmrg	if test $found = "no" ; then
109009ff100acSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
109019ff100acSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
109029ff100acSmrg		fi
109039ff100acSmrg
109049ff100acSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
109059ff100acSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
109069ff100acSmrg		fi
109079ff100acSmrg
109089ff100acSmrg		CFLAGS="$CFLAGS -Werror=attributes"
109099ff100acSmrg
10910a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10911a67f45c3Smrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
109129ff100acSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10913a67f45c3Smrg		if eval test \${$cacheid+y}
10914a67f45c3Smrgthen :
10915a67f45c3Smrg  printf %s "(cached) " >&6
10916a67f45c3Smrgelse $as_nop
109179ff100acSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
109189ff100acSmrg/* end confdefs.h.  */
109199ff100acSmrgint i;
109209ff100acSmrgint
10921a67f45c3Smrgmain (void)
109229ff100acSmrg{
109239ff100acSmrg
109249ff100acSmrg  ;
109259ff100acSmrg  return 0;
109269ff100acSmrg}
109279ff100acSmrg_ACEOF
10928a67f45c3Smrgif ac_fn_c_try_link "$LINENO"
10929a67f45c3Smrgthen :
109309ff100acSmrg  eval $cacheid=yes
10931a67f45c3Smrgelse $as_nop
109329ff100acSmrg  eval $cacheid=no
109339ff100acSmrgfi
10934a67f45c3Smrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
109359ff100acSmrg    conftest$ac_exeext conftest.$ac_ext
109369ff100acSmrgfi
109379ff100acSmrg
109389ff100acSmrg
109399ff100acSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
109409ff100acSmrg
109419ff100acSmrg		eval supported=\$$cacheid
10942a67f45c3Smrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10943a67f45c3Smrgprintf "%s\n" "$supported" >&6; }
109449ff100acSmrg		if test "$supported" = "yes" ; then
109459ff100acSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
109469ff100acSmrg			found="yes"
109479ff100acSmrg		fi
109489ff100acSmrg	fi
109499ff100acSmrg
109509ff100acSmrg
109519ff100acSmrg
109529ff100acSmrgif test "x$STRICT_COMPILE" = "xyes"; then
109539ff100acSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
109549ff100acSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
109559ff100acSmrgfi
109569ff100acSmrg
109579ff100acSmrg
109589ff100acSmrg
109599ff100acSmrg
109609ff100acSmrg
109619ff100acSmrg
109629ff100acSmrgcat >>confdefs.h <<_ACEOF
109639ff100acSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
109649ff100acSmrg_ACEOF
109659ff100acSmrg
109669ff100acSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
109679ff100acSmrg	if test "x$PVM" = "x"; then
109689ff100acSmrg		PVM="0"
109699ff100acSmrg	fi
109709ff100acSmrg
10971a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
109729ff100acSmrg
109739ff100acSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
109749ff100acSmrg	if test "x$PVP" = "x"; then
109759ff100acSmrg		PVP="0"
109769ff100acSmrg	fi
109779ff100acSmrg
10978a67f45c3Smrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
109799ff100acSmrg
109809ff100acSmrg
109819ff100acSmrg
10982a67f45c3SmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
109839ff100acSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10984a67f45c3Smrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10985a67f45c3Smrgtouch \$(top_srcdir)/ChangeLog; \
10986a67f45c3Smrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
109879ff100acSmrg
109889ff100acSmrg
109899ff100acSmrg
109909ff100acSmrg
109919ff100acSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
109929ff100acSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
109939ff100acSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10994a67f45c3Smrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10995a67f45c3Smrgtouch \$(top_srcdir)/INSTALL; \
10996a67f45c3Smrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10997a67f45c3Smrg
109989ff100acSmrg
109999ff100acSmrg
110009ff100acSmrg
110019ff100acSmrg
110029ff100acSmrg
11003a67f45c3Smrgcase $host_os in
11004a67f45c3Smrg    solaris*)
11005a67f45c3Smrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11006a67f45c3Smrg        # check for a man page file found in later versions that use
11007a67f45c3Smrg        # traditional section numbers instead
11008a67f45c3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11009a67f45c3Smrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11010a67f45c3Smrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11011a67f45c3Smrgthen :
11012a67f45c3Smrg  printf %s "(cached) " >&6
11013a67f45c3Smrgelse $as_nop
11014a67f45c3Smrg  test "$cross_compiling" = yes &&
11015a67f45c3Smrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11016a67f45c3Smrgif test -r "/usr/share/man/man7/attributes.7"; then
11017a67f45c3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
11018a67f45c3Smrgelse
11019a67f45c3Smrg  ac_cv_file__usr_share_man_man7_attributes_7=no
11020a67f45c3Smrgfi
11021a67f45c3Smrgfi
11022a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11023a67f45c3Smrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11024a67f45c3Smrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11025a67f45c3Smrgthen :
11026a67f45c3Smrg  SYSV_MAN_SECTIONS=false
11027a67f45c3Smrgelse $as_nop
11028a67f45c3Smrg  SYSV_MAN_SECTIONS=true
11029a67f45c3Smrgfi
11030a67f45c3Smrg
11031a67f45c3Smrg        ;;
11032a67f45c3Smrg    *) SYSV_MAN_SECTIONS=false ;;
11033a67f45c3Smrgesac
110349ff100acSmrg
110359ff100acSmrgif test x$APP_MAN_SUFFIX = x    ; then
110369ff100acSmrg    APP_MAN_SUFFIX=1
110379ff100acSmrgfi
110389ff100acSmrgif test x$APP_MAN_DIR = x    ; then
110399ff100acSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
110409ff100acSmrgfi
110419ff100acSmrg
110429ff100acSmrgif test x$LIB_MAN_SUFFIX = x    ; then
110439ff100acSmrg    LIB_MAN_SUFFIX=3
110449ff100acSmrgfi
110459ff100acSmrgif test x$LIB_MAN_DIR = x    ; then
110469ff100acSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
110479ff100acSmrgfi
110489ff100acSmrg
110499ff100acSmrgif test x$FILE_MAN_SUFFIX = x    ; then
11050a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11051a67f45c3Smrg	true)				FILE_MAN_SUFFIX=4  ;;
11052a67f45c3Smrg	*)				FILE_MAN_SUFFIX=5  ;;
110539ff100acSmrg    esac
110549ff100acSmrgfi
110559ff100acSmrgif test x$FILE_MAN_DIR = x    ; then
110569ff100acSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
110579ff100acSmrgfi
110589ff100acSmrg
110599ff100acSmrgif test x$MISC_MAN_SUFFIX = x    ; then
11060a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11061a67f45c3Smrg	true)				MISC_MAN_SUFFIX=5  ;;
11062a67f45c3Smrg	*)				MISC_MAN_SUFFIX=7  ;;
110639ff100acSmrg    esac
110649ff100acSmrgfi
110659ff100acSmrgif test x$MISC_MAN_DIR = x    ; then
110669ff100acSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
110679ff100acSmrgfi
110689ff100acSmrg
110699ff100acSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11070a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11071a67f45c3Smrg	true)				DRIVER_MAN_SUFFIX=7  ;;
11072a67f45c3Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
110739ff100acSmrg    esac
110749ff100acSmrgfi
110759ff100acSmrgif test x$DRIVER_MAN_DIR = x    ; then
110769ff100acSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
110779ff100acSmrgfi
110789ff100acSmrg
110799ff100acSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11080a67f45c3Smrg    case $SYSV_MAN_SECTIONS in
11081a67f45c3Smrg	true)				ADMIN_MAN_SUFFIX=1m ;;
11082a67f45c3Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
110839ff100acSmrg    esac
110849ff100acSmrgfi
110859ff100acSmrgif test x$ADMIN_MAN_DIR = x    ; then
110869ff100acSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
110879ff100acSmrgfi
110889ff100acSmrg
110899ff100acSmrg
110909ff100acSmrg
110919ff100acSmrg
110929ff100acSmrg
110939ff100acSmrg
110949ff100acSmrg
110959ff100acSmrg
110969ff100acSmrg
110979ff100acSmrg
110989ff100acSmrg
110999ff100acSmrg
111009ff100acSmrg
111019ff100acSmrg
111029ff100acSmrg
111039ff100acSmrgXORG_MAN_PAGE="X Version 11"
111049ff100acSmrg
111059ff100acSmrgMAN_SUBSTS="\
111069ff100acSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
111079ff100acSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
111089ff100acSmrg	-e 's|__xservername__|Xorg|g' \
111099ff100acSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
111109ff100acSmrg	-e 's|__projectroot__|\$(prefix)|g' \
111119ff100acSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
111129ff100acSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
111139ff100acSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
111149ff100acSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
111159ff100acSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
111169ff100acSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
111179ff100acSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
111189ff100acSmrg
111199ff100acSmrg
111209ff100acSmrg
111219ff100acSmrg# Check whether --enable-silent-rules was given.
11122a67f45c3Smrgif test ${enable_silent_rules+y}
11123a67f45c3Smrgthen :
111249ff100acSmrg  enableval=$enable_silent_rules;
111259ff100acSmrgfi
111269ff100acSmrg
111279ff100acSmrgcase $enable_silent_rules in # (((
111289ff100acSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
111299ff100acSmrg   no) AM_DEFAULT_VERBOSITY=1;;
111309ff100acSmrg    *) AM_DEFAULT_VERBOSITY=0;;
111319ff100acSmrgesac
111329ff100acSmrgam_make=${MAKE-make}
11133a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11134a67f45c3Smrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11135a67f45c3Smrgif test ${am_cv_make_support_nested_variables+y}
11136a67f45c3Smrgthen :
11137a67f45c3Smrg  printf %s "(cached) " >&6
11138a67f45c3Smrgelse $as_nop
11139a67f45c3Smrg  if printf "%s\n" 'TRUE=$(BAR$(V))
111409ff100acSmrgBAR0=false
111419ff100acSmrgBAR1=true
111429ff100acSmrgV=1
111439ff100acSmrgam__doit:
111449ff100acSmrg	@$(TRUE)
111459ff100acSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
111469ff100acSmrg  am_cv_make_support_nested_variables=yes
111479ff100acSmrgelse
111489ff100acSmrg  am_cv_make_support_nested_variables=no
111499ff100acSmrgfi
111509ff100acSmrgfi
11151a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11152a67f45c3Smrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
111539ff100acSmrgif test $am_cv_make_support_nested_variables = yes; then
111549ff100acSmrg    AM_V='$(V)'
111559ff100acSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
111569ff100acSmrgelse
111579ff100acSmrg  AM_V=$AM_DEFAULT_VERBOSITY
111589ff100acSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
111599ff100acSmrgfi
111609ff100acSmrgAM_BACKSLASH='\'
111619ff100acSmrg
111629ff100acSmrg
111639ff100acSmrg
111649ff100acSmrgfor ac_prog in 'bison -y' byacc
111659ff100acSmrgdo
111669ff100acSmrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
111679ff100acSmrgset dummy $ac_prog; ac_word=$2
11168a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
11170a67f45c3Smrgif test ${ac_cv_prog_YACC+y}
11171a67f45c3Smrgthen :
11172a67f45c3Smrg  printf %s "(cached) " >&6
11173a67f45c3Smrgelse $as_nop
111749ff100acSmrg  if test -n "$YACC"; then
111759ff100acSmrg  ac_cv_prog_YACC="$YACC" # Let the user override the test.
111769ff100acSmrgelse
111779ff100acSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111789ff100acSmrgfor as_dir in $PATH
111799ff100acSmrgdo
111809ff100acSmrg  IFS=$as_save_IFS
11181a67f45c3Smrg  case $as_dir in #(((
11182a67f45c3Smrg    '') as_dir=./ ;;
11183a67f45c3Smrg    */) ;;
11184a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11185a67f45c3Smrg  esac
111869ff100acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11187a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
111889ff100acSmrg    ac_cv_prog_YACC="$ac_prog"
11189a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
111909ff100acSmrg    break 2
111919ff100acSmrg  fi
111929ff100acSmrgdone
111939ff100acSmrg  done
111949ff100acSmrgIFS=$as_save_IFS
111959ff100acSmrg
111969ff100acSmrgfi
111979ff100acSmrgfi
111989ff100acSmrgYACC=$ac_cv_prog_YACC
111999ff100acSmrgif test -n "$YACC"; then
11200a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11201a67f45c3Smrgprintf "%s\n" "$YACC" >&6; }
112029ff100acSmrgelse
11203a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204a67f45c3Smrgprintf "%s\n" "no" >&6; }
112059ff100acSmrgfi
112069ff100acSmrg
112079ff100acSmrg
112089ff100acSmrg  test -n "$YACC" && break
112099ff100acSmrgdone
112109ff100acSmrgtest -n "$YACC" || YACC="yacc"
112119ff100acSmrg
112129ff100acSmrg# Extract the first word of "$YACC", so it can be a program name with args.
112139ff100acSmrgset dummy $YACC; ac_word=$2
11214a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215a67f45c3Smrgprintf %s "checking for $ac_word... " >&6; }
11216a67f45c3Smrgif test ${ac_cv_path_YACC_INST+y}
11217a67f45c3Smrgthen :
11218a67f45c3Smrg  printf %s "(cached) " >&6
11219a67f45c3Smrgelse $as_nop
112209ff100acSmrg  case $YACC_INST in
112219ff100acSmrg  [\\/]* | ?:[\\/]*)
112229ff100acSmrg  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
112239ff100acSmrg  ;;
112249ff100acSmrg  *)
112259ff100acSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112269ff100acSmrgfor as_dir in $PATH
112279ff100acSmrgdo
112289ff100acSmrg  IFS=$as_save_IFS
11229a67f45c3Smrg  case $as_dir in #(((
11230a67f45c3Smrg    '') as_dir=./ ;;
11231a67f45c3Smrg    */) ;;
11232a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11233a67f45c3Smrg  esac
112349ff100acSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
11235a67f45c3Smrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11236a67f45c3Smrg    ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11237a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
112389ff100acSmrg    break 2
112399ff100acSmrg  fi
112409ff100acSmrgdone
112419ff100acSmrg  done
112429ff100acSmrgIFS=$as_save_IFS
112439ff100acSmrg
112449ff100acSmrg  ;;
112459ff100acSmrgesac
112469ff100acSmrgfi
112479ff100acSmrgYACC_INST=$ac_cv_path_YACC_INST
112489ff100acSmrgif test -n "$YACC_INST"; then
11249a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11250a67f45c3Smrgprintf "%s\n" "$YACC_INST" >&6; }
112519ff100acSmrgelse
11252a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253a67f45c3Smrgprintf "%s\n" "no" >&6; }
112549ff100acSmrgfi
112559ff100acSmrg
112569ff100acSmrg
112579ff100acSmrgif test ! -f "cfgparse.c"; then
112589ff100acSmrg   if test -z "$YACC_INST"; then
112599ff100acSmrg      as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
112609ff100acSmrg   fi
112619ff100acSmrgfi
112629ff100acSmrg
11263a67f45c3Smrgac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11264a67f45c3Smrgif test "x$ac_cv_func_strcasecmp" = xyes
11265a67f45c3Smrgthen :
11266a67f45c3Smrg  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
112679ff100acSmrg
112689ff100acSmrgfi
112699ff100acSmrg
112709ff100acSmrg
112719ff100acSmrg# Checks for pkg-config packages
112729ff100acSmrg
112739ff100acSmrgpkg_failed=no
11274a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
11275a67f45c3Smrgprintf %s "checking for XKBEVD... " >&6; }
112769ff100acSmrg
112779ff100acSmrgif test -n "$XKBEVD_CFLAGS"; then
112789ff100acSmrg    pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
112799ff100acSmrg elif test -n "$PKG_CONFIG"; then
112809ff100acSmrg    if test -n "$PKG_CONFIG" && \
11281a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
112829ff100acSmrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
1128376910425Smrg  ac_status=$?
11284a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11285482df631Smrg  test $ac_status = 0; }; then
1128676910425Smrg  pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
11287a67f45c3Smrg		      test "x$?" != "x0" && pkg_failed=yes
1128876910425Smrgelse
1128976910425Smrg  pkg_failed=yes
1129076910425Smrgfi
11291db17cd6dSmrg else
11292db17cd6dSmrg    pkg_failed=untried
1129376910425Smrgfi
11294db17cd6dSmrgif test -n "$XKBEVD_LIBS"; then
11295db17cd6dSmrg    pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
11296db17cd6dSmrg elif test -n "$PKG_CONFIG"; then
11297db17cd6dSmrg    if test -n "$PKG_CONFIG" && \
11298a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
1129976910425Smrg  ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
1130076910425Smrg  ac_status=$?
11301a67f45c3Smrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11302482df631Smrg  test $ac_status = 0; }; then
1130376910425Smrg  pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
11304a67f45c3Smrg		      test "x$?" != "x0" && pkg_failed=yes
1130576910425Smrgelse
1130676910425Smrg  pkg_failed=yes
1130776910425Smrgfi
11308db17cd6dSmrg else
11309db17cd6dSmrg    pkg_failed=untried
1131076910425Smrgfi
1131176910425Smrg
1131276910425Smrg
1131376910425Smrg
1131476910425Smrgif test $pkg_failed = yes; then
11315a67f45c3Smrg   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316a67f45c3Smrgprintf "%s\n" "no" >&6; }
1131776910425Smrg
1131876910425Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1131976910425Smrg        _pkg_short_errors_supported=yes
1132076910425Smrgelse
1132176910425Smrg        _pkg_short_errors_supported=no
1132276910425Smrgfi
1132376910425Smrg        if test $_pkg_short_errors_supported = yes; then
11324a67f45c3Smrg	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11" 2>&1`
1132576910425Smrg        else
11326a67f45c3Smrg	        XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11" 2>&1`
1132776910425Smrg        fi
1132876910425Smrg	# Put the nasty error message in config.log where it belongs
1132976910425Smrg	echo "$XKBEVD_PKG_ERRORS" >&5
1133076910425Smrg
11331482df631Smrg	as_fn_error $? "Package requirements (xkbfile x11) were not met:
1133276910425Smrg
1133376910425Smrg$XKBEVD_PKG_ERRORS
1133476910425Smrg
1133576910425SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you
1133676910425Smrginstalled software in a non-standard prefix.
1133776910425Smrg
1133876910425SmrgAlternatively, you may set the environment variables XKBEVD_CFLAGS
1133976910425Smrgand XKBEVD_LIBS to avoid the need to call pkg-config.
11340a67f45c3SmrgSee the pkg-config man page for more details." "$LINENO" 5
1134176910425Smrgelif test $pkg_failed = untried; then
11342a67f45c3Smrg     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343a67f45c3Smrgprintf "%s\n" "no" >&6; }
11344a67f45c3Smrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11345a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11346482df631Smrgas_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
1134776910425Smrgis in your PATH or set the PKG_CONFIG environment variable to the full
1134876910425Smrgpath to pkg-config.
1134976910425Smrg
1135076910425SmrgAlternatively, you may set the environment variables XKBEVD_CFLAGS
1135176910425Smrgand XKBEVD_LIBS to avoid the need to call pkg-config.
1135276910425SmrgSee the pkg-config man page for more details.
1135376910425Smrg
11354db17cd6dSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.
11355482df631SmrgSee \`config.log' for more details" "$LINENO" 5; }
1135676910425Smrgelse
1135776910425Smrg	XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
1135876910425Smrg	XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
11359a67f45c3Smrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360a67f45c3Smrgprintf "%s\n" "yes" >&6; }
11361a67f45c3Smrg
1136276910425Smrgfi
1136376910425Smrg
113649ff100acSmrgac_config_files="$ac_config_files Makefile man/Makefile"
1136576910425Smrg
1136676910425Smrgcat >confcache <<\_ACEOF
1136776910425Smrg# This file is a shell script that caches the results of configure
1136876910425Smrg# tests run on this system so they can be shared between configure
1136976910425Smrg# scripts and configure runs, see configure's option --config-cache.
1137076910425Smrg# It is not useful on other systems.  If it contains results you don't
1137176910425Smrg# want to keep, you may remove or edit it.
1137276910425Smrg#
1137376910425Smrg# config.status only pays attention to the cache file if you give it
1137476910425Smrg# the --recheck option to rerun configure.
1137576910425Smrg#
1137676910425Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1137776910425Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1137876910425Smrg# following values.
1137976910425Smrg
1138076910425Smrg_ACEOF
1138176910425Smrg
1138276910425Smrg# The following way of writing the cache mishandles newlines in values,
1138376910425Smrg# but we know of no workaround that is simple, portable, and efficient.
11384db17cd6dSmrg# So, we kill variables containing newlines.
1138576910425Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1138676910425Smrg# and sets the high bit in the cache file unless we assign to the vars.
11387db17cd6dSmrg(
11388db17cd6dSmrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11389db17cd6dSmrg    eval ac_val=\$$ac_var
11390db17cd6dSmrg    case $ac_val in #(
11391db17cd6dSmrg    *${as_nl}*)
11392db17cd6dSmrg      case $ac_var in #(
11393a67f45c3Smrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11394a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11395db17cd6dSmrg      esac
11396db17cd6dSmrg      case $ac_var in #(
11397db17cd6dSmrg      _ | IFS | as_nl) ;; #(
11398db17cd6dSmrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11399482df631Smrg      *) { eval $ac_var=; unset $ac_var;} ;;
11400db17cd6dSmrg      esac ;;
11401db17cd6dSmrg    esac
11402db17cd6dSmrg  done
11403db17cd6dSmrg
1140476910425Smrg  (set) 2>&1 |
11405db17cd6dSmrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11406db17cd6dSmrg    *${as_nl}ac_space=\ *)
11407482df631Smrg      # `set' does not quote correctly, so add quotes: double-quote
11408482df631Smrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1140976910425Smrg      sed -n \
1141076910425Smrg	"s/'/'\\\\''/g;
1141176910425Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11412db17cd6dSmrg      ;; #(
1141376910425Smrg    *)
1141476910425Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
11415db17cd6dSmrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1141676910425Smrg      ;;
11417db17cd6dSmrg    esac |
11418db17cd6dSmrg    sort
11419db17cd6dSmrg) |
1142076910425Smrg  sed '
11421db17cd6dSmrg     /^ac_cv_env_/b end
1142276910425Smrg     t clear
11423db17cd6dSmrg     :clear
11424a67f45c3Smrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1142576910425Smrg     t end
11426db17cd6dSmrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11427db17cd6dSmrg     :end' >>confcache
11428db17cd6dSmrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11429db17cd6dSmrg  if test -w "$cache_file"; then
11430482df631Smrg    if test "x$cache_file" != "x/dev/null"; then
11431a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11432a67f45c3Smrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11433482df631Smrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
11434482df631Smrg	cat confcache >"$cache_file"
11435482df631Smrg      else
11436482df631Smrg        case $cache_file in #(
11437482df631Smrg        */* | ?:*)
11438482df631Smrg	  mv -f confcache "$cache_file"$$ &&
11439482df631Smrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11440482df631Smrg        *)
11441482df631Smrg	  mv -f confcache "$cache_file" ;;
11442482df631Smrg	esac
11443482df631Smrg      fi
11444482df631Smrg    fi
1144576910425Smrg  else
11446a67f45c3Smrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11447a67f45c3Smrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1144876910425Smrg  fi
1144976910425Smrgfi
1145076910425Smrgrm -f confcache
1145176910425Smrg
1145276910425Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1145376910425Smrg# Let make expand exec_prefix.
1145476910425Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1145576910425Smrg
1145676910425SmrgDEFS=-DHAVE_CONFIG_H
1145776910425Smrg
1145876910425Smrgac_libobjs=
1145976910425Smrgac_ltlibobjs=
11460482df631SmrgU=
1146176910425Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1146276910425Smrg  # 1. Remove the extension, and $U if already installed.
11463db17cd6dSmrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11464a67f45c3Smrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11465db17cd6dSmrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11466db17cd6dSmrg  #    will be set to the directory where LIBOBJS objects are built.
11467482df631Smrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11468482df631Smrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1146976910425Smrgdone
1147076910425SmrgLIBOBJS=$ac_libobjs
1147176910425Smrg
1147276910425SmrgLTLIBOBJS=$ac_ltlibobjs
1147376910425Smrg
1147476910425Smrg
11475a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11476a67f45c3Smrgprintf %s "checking that generated files are newer than configure... " >&6; }
114779ff100acSmrg   if test -n "$am_sleep_pid"; then
114789ff100acSmrg     # Hide warnings about reused PIDs.
114799ff100acSmrg     wait $am_sleep_pid 2>/dev/null
114809ff100acSmrg   fi
11481a67f45c3Smrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11482a67f45c3Smrgprintf "%s\n" "done" >&6; }
11483db17cd6dSmrg if test -n "$EXEEXT"; then
11484db17cd6dSmrg  am__EXEEXT_TRUE=
11485db17cd6dSmrg  am__EXEEXT_FALSE='#'
11486db17cd6dSmrgelse
11487db17cd6dSmrg  am__EXEEXT_TRUE='#'
11488db17cd6dSmrg  am__EXEEXT_FALSE=
11489db17cd6dSmrgfi
11490db17cd6dSmrg
1149176910425Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11492482df631Smrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
11493482df631SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1149476910425Smrgfi
1149576910425Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11496482df631Smrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11497482df631SmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1149876910425Smrgfi
1149976910425Smrg
11500482df631Smrg: "${CONFIG_STATUS=./config.status}"
11501db17cd6dSmrgac_write_fail=0
1150276910425Smrgac_clean_files_save=$ac_clean_files
1150376910425Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11504a67f45c3Smrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11505a67f45c3Smrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11506482df631Smrgas_write_fail=0
11507482df631Smrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1150876910425Smrg#! $SHELL
1150976910425Smrg# Generated by $as_me.
1151076910425Smrg# Run this file to recreate the current configuration.
1151176910425Smrg# Compiler output produced by configure, useful for debugging
1151276910425Smrg# configure, is in config.log if it exists.
1151376910425Smrg
1151476910425Smrgdebug=false
1151576910425Smrgac_cs_recheck=false
1151676910425Smrgac_cs_silent=false
1151776910425Smrg
11518482df631SmrgSHELL=\${CONFIG_SHELL-$SHELL}
11519482df631Smrgexport SHELL
11520482df631Smrg_ASEOF
11521482df631Smrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11522482df631Smrg## -------------------- ##
11523482df631Smrg## M4sh Initialization. ##
11524482df631Smrg## -------------------- ##
1152576910425Smrg
11526db17cd6dSmrg# Be more Bourne compatible
11527db17cd6dSmrgDUALCASE=1; export DUALCASE # for MKS sh
11528a67f45c3Smrgas_nop=:
11529a67f45c3Smrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11530a67f45c3Smrgthen :
1153176910425Smrg  emulate sh
1153276910425Smrg  NULLCMD=:
11533db17cd6dSmrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1153476910425Smrg  # is contrary to our usage.  Disable this feature.
1153576910425Smrg  alias -g '${1+"$@"}'='"$@"'
11536db17cd6dSmrg  setopt NO_GLOB_SUBST
11537a67f45c3Smrgelse $as_nop
11538482df631Smrg  case `(set -o) 2>/dev/null` in #(
11539482df631Smrg  *posix*) :
11540482df631Smrg    set -o posix ;; #(
11541482df631Smrg  *) :
11542482df631Smrg     ;;
11543db17cd6dSmrgesac
11544db17cd6dSmrgfi
11545db17cd6dSmrg
11546db17cd6dSmrg
11547a67f45c3Smrg
11548a67f45c3Smrg# Reset variables that may have inherited troublesome values from
11549a67f45c3Smrg# the environment.
11550a67f45c3Smrg
11551a67f45c3Smrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11552a67f45c3Smrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11553a67f45c3Smrg# side effect of setting IFS to empty, thus disabling word splitting.)
11554a67f45c3Smrg# Quoting is to prevent editors from complaining about space-tab.
11555db17cd6dSmrgas_nl='
11556db17cd6dSmrg'
11557db17cd6dSmrgexport as_nl
11558a67f45c3SmrgIFS=" ""	$as_nl"
11559a67f45c3Smrg
11560a67f45c3SmrgPS1='$ '
11561a67f45c3SmrgPS2='> '
11562a67f45c3SmrgPS4='+ '
11563a67f45c3Smrg
11564a67f45c3Smrg# Ensure predictable behavior from utilities with locale-dependent output.
11565a67f45c3SmrgLC_ALL=C
11566a67f45c3Smrgexport LC_ALL
11567a67f45c3SmrgLANGUAGE=C
11568a67f45c3Smrgexport LANGUAGE
11569a67f45c3Smrg
11570a67f45c3Smrg# We cannot yet rely on "unset" to work, but we need these variables
11571a67f45c3Smrg# to be unset--not just set to an empty or harmless value--now, to
11572a67f45c3Smrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11573a67f45c3Smrg# also avoids known problems related to "unset" and subshell syntax
11574a67f45c3Smrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11575a67f45c3Smrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11576a67f45c3Smrgdo eval test \${$as_var+y} \
11577a67f45c3Smrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11578a67f45c3Smrgdone
11579a67f45c3Smrg
11580a67f45c3Smrg# Ensure that fds 0, 1, and 2 are open.
11581a67f45c3Smrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11582a67f45c3Smrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11583a67f45c3Smrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
11584db17cd6dSmrg
11585db17cd6dSmrg# The user is always right.
11586a67f45c3Smrgif ${PATH_SEPARATOR+false} :; then
11587db17cd6dSmrg  PATH_SEPARATOR=:
11588db17cd6dSmrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11589db17cd6dSmrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11590db17cd6dSmrg      PATH_SEPARATOR=';'
11591db17cd6dSmrg  }
1159276910425Smrgfi
1159376910425Smrg
1159476910425Smrg
11595db17cd6dSmrg# Find who we are.  Look in the path if we contain no directory separator.
11596482df631Smrgas_myself=
11597482df631Smrgcase $0 in #((
11598db17cd6dSmrg  *[\\/]* ) as_myself=$0 ;;
11599db17cd6dSmrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600db17cd6dSmrgfor as_dir in $PATH
11601db17cd6dSmrgdo
11602db17cd6dSmrg  IFS=$as_save_IFS
11603a67f45c3Smrg  case $as_dir in #(((
11604a67f45c3Smrg    '') as_dir=./ ;;
11605a67f45c3Smrg    */) ;;
11606a67f45c3Smrg    *) as_dir=$as_dir/ ;;
11607a67f45c3Smrg  esac
11608a67f45c3Smrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11609482df631Smrg  done
11610db17cd6dSmrgIFS=$as_save_IFS
11611db17cd6dSmrg
11612db17cd6dSmrg     ;;
11613db17cd6dSmrgesac
11614db17cd6dSmrg# We did not find ourselves, most probably we were run as `sh COMMAND'
11615db17cd6dSmrg# in which case we are not to be found in the path.
11616db17cd6dSmrgif test "x$as_myself" = x; then
11617db17cd6dSmrg  as_myself=$0
11618db17cd6dSmrgfi
11619db17cd6dSmrgif test ! -f "$as_myself"; then
11620a67f45c3Smrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11621482df631Smrg  exit 1
11622db17cd6dSmrgfi
11623db17cd6dSmrg
11624482df631Smrg
11625482df631Smrg
11626482df631Smrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
11627482df631Smrg# ----------------------------------------
11628482df631Smrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11629482df631Smrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11630482df631Smrg# script with STATUS, using 1 if that was 0.
11631482df631Smrgas_fn_error ()
11632482df631Smrg{
11633482df631Smrg  as_status=$1; test $as_status -eq 0 && as_status=1
11634482df631Smrg  if test "$4"; then
11635482df631Smrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11636a67f45c3Smrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11637482df631Smrg  fi
11638a67f45c3Smrg  printf "%s\n" "$as_me: error: $2" >&2
11639482df631Smrg  as_fn_exit $as_status
11640482df631Smrg} # as_fn_error
11641482df631Smrg
11642482df631Smrg
11643a67f45c3Smrg
11644482df631Smrg# as_fn_set_status STATUS
11645482df631Smrg# -----------------------
11646482df631Smrg# Set $? to STATUS, without forking.
11647482df631Smrgas_fn_set_status ()
11648482df631Smrg{
11649482df631Smrg  return $1
11650482df631Smrg} # as_fn_set_status
11651482df631Smrg
11652482df631Smrg# as_fn_exit STATUS
11653482df631Smrg# -----------------
11654482df631Smrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11655482df631Smrgas_fn_exit ()
11656482df631Smrg{
11657482df631Smrg  set +e
11658482df631Smrg  as_fn_set_status $1
11659482df631Smrg  exit $1
11660482df631Smrg} # as_fn_exit
11661482df631Smrg
11662482df631Smrg# as_fn_unset VAR
11663482df631Smrg# ---------------
11664482df631Smrg# Portably unset VAR.
11665482df631Smrgas_fn_unset ()
11666482df631Smrg{
11667482df631Smrg  { eval $1=; unset $1;}
11668482df631Smrg}
11669482df631Smrgas_unset=as_fn_unset
11670a67f45c3Smrg
11671482df631Smrg# as_fn_append VAR VALUE
11672482df631Smrg# ----------------------
11673482df631Smrg# Append the text in VALUE to the end of the definition contained in VAR. Take
11674482df631Smrg# advantage of any shell optimizations that allow amortized linear growth over
11675482df631Smrg# repeated appends, instead of the typical quadratic growth present in naive
11676482df631Smrg# implementations.
11677a67f45c3Smrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11678a67f45c3Smrgthen :
11679482df631Smrg  eval 'as_fn_append ()
11680482df631Smrg  {
11681482df631Smrg    eval $1+=\$2
11682482df631Smrg  }'
11683a67f45c3Smrgelse $as_nop
11684482df631Smrg  as_fn_append ()
11685482df631Smrg  {
11686482df631Smrg    eval $1=\$$1\$2
11687482df631Smrg  }
11688482df631Smrgfi # as_fn_append
11689482df631Smrg
11690482df631Smrg# as_fn_arith ARG...
11691482df631Smrg# ------------------
11692482df631Smrg# Perform arithmetic evaluation on the ARGs, and store the result in the
11693482df631Smrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
11694482df631Smrg# must be portable across $(()) and expr.
11695a67f45c3Smrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11696a67f45c3Smrgthen :
11697482df631Smrg  eval 'as_fn_arith ()
11698482df631Smrg  {
11699482df631Smrg    as_val=$(( $* ))
11700482df631Smrg  }'
11701a67f45c3Smrgelse $as_nop
11702482df631Smrg  as_fn_arith ()
11703482df631Smrg  {
11704482df631Smrg    as_val=`expr "$@" || test $? -eq 1`
11705482df631Smrg  }
11706482df631Smrgfi # as_fn_arith
11707482df631Smrg
11708482df631Smrg
11709db17cd6dSmrgif expr a : '\(a\)' >/dev/null 2>&1 &&
11710db17cd6dSmrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1171176910425Smrg  as_expr=expr
1171276910425Smrgelse
1171376910425Smrg  as_expr=false
1171476910425Smrgfi
1171576910425Smrg
11716db17cd6dSmrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1171776910425Smrg  as_basename=basename
1171876910425Smrgelse
1171976910425Smrg  as_basename=false
1172076910425Smrgfi
1172176910425Smrg
11722482df631Smrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11723482df631Smrg  as_dirname=dirname
11724482df631Smrgelse
11725482df631Smrg  as_dirname=false
11726482df631Smrgfi
1172776910425Smrg
11728db17cd6dSmrgas_me=`$as_basename -- "$0" ||
1172976910425Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1173076910425Smrg	 X"$0" : 'X\(//\)$' \| \
11731db17cd6dSmrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11732a67f45c3Smrgprintf "%s\n" X/"$0" |
11733db17cd6dSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
11734db17cd6dSmrg	    s//\1/
11735db17cd6dSmrg	    q
11736db17cd6dSmrg	  }
11737db17cd6dSmrg	  /^X\/\(\/\/\)$/{
11738db17cd6dSmrg	    s//\1/
11739db17cd6dSmrg	    q
11740db17cd6dSmrg	  }
11741db17cd6dSmrg	  /^X\/\(\/\).*/{
11742db17cd6dSmrg	    s//\1/
11743db17cd6dSmrg	    q
11744db17cd6dSmrg	  }
11745db17cd6dSmrg	  s/.*/./; q'`
1174676910425Smrg
11747482df631Smrg# Avoid depending upon Character Ranges.
11748482df631Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
11749482df631Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11750482df631Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
11751482df631Smrgas_cr_digits='0123456789'
11752482df631Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1175376910425Smrg
11754a67f45c3Smrg
11755a67f45c3Smrg# Determine whether it's possible to make 'echo' print without a newline.
11756a67f45c3Smrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11757a67f45c3Smrg# for compatibility with existing Makefiles.
11758db17cd6dSmrgECHO_C= ECHO_N= ECHO_T=
11759482df631Smrgcase `echo -n x` in #(((((
11760db17cd6dSmrg-n*)
11761482df631Smrg  case `echo 'xy\c'` in
11762db17cd6dSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11763482df631Smrg  xy)  ECHO_C='\c';;
11764482df631Smrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11765482df631Smrg       ECHO_T='	';;
11766db17cd6dSmrg  esac;;
11767db17cd6dSmrg*)
11768db17cd6dSmrg  ECHO_N='-n';;
11769db17cd6dSmrgesac
1177076910425Smrg
11771a67f45c3Smrg# For backward compatibility with old third-party macros, we provide
11772a67f45c3Smrg# the shell variables $as_echo and $as_echo_n.  New code should use
11773a67f45c3Smrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11774a67f45c3Smrgas_echo='printf %s\n'
11775a67f45c3Smrgas_echo_n='printf %s'
11776a67f45c3Smrg
1177776910425Smrgrm -f conf$$ conf$$.exe conf$$.file
11778db17cd6dSmrgif test -d conf$$.dir; then
11779db17cd6dSmrg  rm -f conf$$.dir/conf$$.file
11780db17cd6dSmrgelse
11781db17cd6dSmrg  rm -f conf$$.dir
11782db17cd6dSmrg  mkdir conf$$.dir 2>/dev/null
11783db17cd6dSmrgfi
11784db17cd6dSmrgif (echo >conf$$.file) 2>/dev/null; then
11785db17cd6dSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1178676910425Smrg    as_ln_s='ln -s'
11787db17cd6dSmrg    # ... but there are two gotchas:
11788db17cd6dSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11789db17cd6dSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
117909ff100acSmrg    # In both cases, we have to default to `cp -pR'.
11791db17cd6dSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
117929ff100acSmrg      as_ln_s='cp -pR'
11793db17cd6dSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
11794db17cd6dSmrg    as_ln_s=ln
11795db17cd6dSmrg  else
117969ff100acSmrg    as_ln_s='cp -pR'
1179776910425Smrg  fi
1179876910425Smrgelse
117999ff100acSmrg  as_ln_s='cp -pR'
1180076910425Smrgfi
11801db17cd6dSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11802db17cd6dSmrgrmdir conf$$.dir 2>/dev/null
1180376910425Smrg
11804482df631Smrg
11805482df631Smrg# as_fn_mkdir_p
11806482df631Smrg# -------------
11807482df631Smrg# Create "$as_dir" as a directory, including parents if necessary.
11808482df631Smrgas_fn_mkdir_p ()
11809482df631Smrg{
11810482df631Smrg
11811482df631Smrg  case $as_dir in #(
11812482df631Smrg  -*) as_dir=./$as_dir;;
11813482df631Smrg  esac
11814482df631Smrg  test -d "$as_dir" || eval $as_mkdir_p || {
11815482df631Smrg    as_dirs=
11816482df631Smrg    while :; do
11817482df631Smrg      case $as_dir in #(
11818a67f45c3Smrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11819482df631Smrg      *) as_qdir=$as_dir;;
11820482df631Smrg      esac
11821482df631Smrg      as_dirs="'$as_qdir' $as_dirs"
11822482df631Smrg      as_dir=`$as_dirname -- "$as_dir" ||
11823482df631Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11824482df631Smrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
11825482df631Smrg	 X"$as_dir" : 'X\(//\)$' \| \
11826482df631Smrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11827a67f45c3Smrgprintf "%s\n" X"$as_dir" |
11828482df631Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11829482df631Smrg	    s//\1/
11830482df631Smrg	    q
11831482df631Smrg	  }
11832482df631Smrg	  /^X\(\/\/\)[^/].*/{
11833482df631Smrg	    s//\1/
11834482df631Smrg	    q
11835482df631Smrg	  }
11836482df631Smrg	  /^X\(\/\/\)$/{
11837482df631Smrg	    s//\1/
11838482df631Smrg	    q
11839482df631Smrg	  }
11840482df631Smrg	  /^X\(\/\).*/{
11841482df631Smrg	    s//\1/
11842482df631Smrg	    q
11843482df631Smrg	  }
11844482df631Smrg	  s/.*/./; q'`
11845482df631Smrg      test -d "$as_dir" && break
11846482df631Smrg    done
11847482df631Smrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
11848482df631Smrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11849482df631Smrg
11850482df631Smrg
11851482df631Smrg} # as_fn_mkdir_p
1185276910425Smrgif mkdir -p . 2>/dev/null; then
11853482df631Smrg  as_mkdir_p='mkdir -p "$as_dir"'
1185476910425Smrgelse
1185576910425Smrg  test -d ./-p && rmdir ./-p
1185676910425Smrg  as_mkdir_p=false
1185776910425Smrgfi
1185876910425Smrg
118599ff100acSmrg
118609ff100acSmrg# as_fn_executable_p FILE
118619ff100acSmrg# -----------------------
118629ff100acSmrg# Test if FILE is an executable regular file.
118639ff100acSmrgas_fn_executable_p ()
118649ff100acSmrg{
118659ff100acSmrg  test -f "$1" && test -x "$1"
118669ff100acSmrg} # as_fn_executable_p
118679ff100acSmrgas_test_x='test -x'
118689ff100acSmrgas_executable_p=as_fn_executable_p
1186976910425Smrg
1187076910425Smrg# Sed expression to map a string onto a valid CPP name.
1187176910425Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1187276910425Smrg
1187376910425Smrg# Sed expression to map a string onto a valid variable name.
1187476910425Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1187576910425Smrg
1187676910425Smrg
1187776910425Smrgexec 6>&1
11878482df631Smrg## ----------------------------------- ##
11879482df631Smrg## Main body of $CONFIG_STATUS script. ##
11880482df631Smrg## ----------------------------------- ##
11881482df631Smrg_ASEOF
11882482df631Smrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1188376910425Smrg
11884482df631Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885482df631Smrg# Save the log message, to keep $0 and so on meaningful, and to
1188676910425Smrg# report actual input values of CONFIG_FILES etc. instead of their
11887db17cd6dSmrg# values after options handling.
11888db17cd6dSmrgac_log="
11889a67f45c3SmrgThis file was extended by xkbevd $as_me 1.1.5, which was
11890a67f45c3Smrggenerated by GNU Autoconf 2.71.  Invocation command line was
1189176910425Smrg
1189276910425Smrg  CONFIG_FILES    = $CONFIG_FILES
1189376910425Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1189476910425Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1189576910425Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1189676910425Smrg  $ $0 $@
1189776910425Smrg
11898db17cd6dSmrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
11899db17cd6dSmrg"
11900db17cd6dSmrg
1190176910425Smrg_ACEOF
1190276910425Smrg
11903db17cd6dSmrgcase $ac_config_files in *"
11904db17cd6dSmrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
11905db17cd6dSmrgesac
1190676910425Smrg
11907db17cd6dSmrgcase $ac_config_headers in *"
11908db17cd6dSmrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11909db17cd6dSmrgesac
1191076910425Smrg
1191176910425Smrg
11912db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11913db17cd6dSmrg# Files that config.status was made for.
11914db17cd6dSmrgconfig_files="$ac_config_files"
11915db17cd6dSmrgconfig_headers="$ac_config_headers"
11916db17cd6dSmrgconfig_commands="$ac_config_commands"
1191776910425Smrg
11918db17cd6dSmrg_ACEOF
1191976910425Smrg
11920db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1192176910425Smrgac_cs_usage="\
11922482df631Smrg\`$as_me' instantiates files and other configuration actions
11923482df631Smrgfrom templates according to the current configuration.  Unless the files
11924482df631Smrgand actions are specified as TAGs, all are instantiated by default.
1192576910425Smrg
11926482df631SmrgUsage: $0 [OPTION]... [TAG]...
1192776910425Smrg
1192876910425Smrg  -h, --help       print this help, then exit
11929db17cd6dSmrg  -V, --version    print version number and configuration settings, then exit
11930482df631Smrg      --config     print configuration, then exit
11931db17cd6dSmrg  -q, --quiet, --silent
11932db17cd6dSmrg                   do not print progress messages
1193376910425Smrg  -d, --debug      don't remove temporary files
1193476910425Smrg      --recheck    update $as_me by reconfiguring in the same conditions
11935db17cd6dSmrg      --file=FILE[:TEMPLATE]
11936db17cd6dSmrg                   instantiate the configuration file FILE
11937db17cd6dSmrg      --header=FILE[:TEMPLATE]
11938db17cd6dSmrg                   instantiate the configuration header FILE
1193976910425Smrg
1194076910425SmrgConfiguration files:
1194176910425Smrg$config_files
1194276910425Smrg
1194376910425SmrgConfiguration headers:
1194476910425Smrg$config_headers
1194576910425Smrg
1194676910425SmrgConfiguration commands:
1194776910425Smrg$config_commands
1194876910425Smrg
11949a67f45c3SmrgReport bugs to <https://gitlab.freedesktop.org/xorg/app/xkbevd/-/issues>."
1195076910425Smrg
11951db17cd6dSmrg_ACEOF
11952a67f45c3Smrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11953a67f45c3Smrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11954db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955a67f45c3Smrgac_cs_config='$ac_cs_config_escaped'
1195676910425Smrgac_cs_version="\\
11957a67f45c3Smrgxkbevd config.status 1.1.5
11958a67f45c3Smrgconfigured by $0, generated by GNU Autoconf 2.71,
11959482df631Smrg  with options \\"\$ac_cs_config\\"
1196076910425Smrg
11961a67f45c3SmrgCopyright (C) 2021 Free Software Foundation, Inc.
1196276910425SmrgThis config.status script is free software; the Free Software Foundation
1196376910425Smrggives unlimited permission to copy, distribute and modify it."
11964db17cd6dSmrg
11965db17cd6dSmrgac_pwd='$ac_pwd'
11966db17cd6dSmrgsrcdir='$srcdir'
11967db17cd6dSmrgINSTALL='$INSTALL'
11968db17cd6dSmrgMKDIR_P='$MKDIR_P'
11969db17cd6dSmrgAWK='$AWK'
11970db17cd6dSmrgtest -n "\$AWK" || AWK=awk
1197176910425Smrg_ACEOF
1197276910425Smrg
11973db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11974db17cd6dSmrg# The default lists apply if the user does not specify any file.
1197576910425Smrgac_need_defaults=:
1197676910425Smrgwhile test $# != 0
1197776910425Smrgdo
1197876910425Smrg  case $1 in
11979482df631Smrg  --*=?*)
11980db17cd6dSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11981db17cd6dSmrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1198276910425Smrg    ac_shift=:
1198376910425Smrg    ;;
11984482df631Smrg  --*=)
11985482df631Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11986482df631Smrg    ac_optarg=
11987482df631Smrg    ac_shift=:
11988482df631Smrg    ;;
11989db17cd6dSmrg  *)
1199076910425Smrg    ac_option=$1
1199176910425Smrg    ac_optarg=$2
1199276910425Smrg    ac_shift=shift
1199376910425Smrg    ;;
1199476910425Smrg  esac
1199576910425Smrg
1199676910425Smrg  case $ac_option in
1199776910425Smrg  # Handling of the options.
1199876910425Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1199976910425Smrg    ac_cs_recheck=: ;;
12000db17cd6dSmrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12001a67f45c3Smrg    printf "%s\n" "$ac_cs_version"; exit ;;
12002482df631Smrg  --config | --confi | --conf | --con | --co | --c )
12003a67f45c3Smrg    printf "%s\n" "$ac_cs_config"; exit ;;
12004db17cd6dSmrg  --debug | --debu | --deb | --de | --d | -d )
1200576910425Smrg    debug=: ;;
1200676910425Smrg  --file | --fil | --fi | --f )
1200776910425Smrg    $ac_shift
12008db17cd6dSmrg    case $ac_optarg in
12009a67f45c3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12010482df631Smrg    '') as_fn_error $? "missing file argument" ;;
12011db17cd6dSmrg    esac
12012482df631Smrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1201376910425Smrg    ac_need_defaults=false;;
1201476910425Smrg  --header | --heade | --head | --hea )
1201576910425Smrg    $ac_shift
12016db17cd6dSmrg    case $ac_optarg in
12017a67f45c3Smrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12018db17cd6dSmrg    esac
12019482df631Smrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1202076910425Smrg    ac_need_defaults=false;;
12021db17cd6dSmrg  --he | --h)
12022db17cd6dSmrg    # Conflict between --help and --header
12023482df631Smrg    as_fn_error $? "ambiguous option: \`$1'
12024482df631SmrgTry \`$0 --help' for more information.";;
12025db17cd6dSmrg  --help | --hel | -h )
12026a67f45c3Smrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1202776910425Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202876910425Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1202976910425Smrg    ac_cs_silent=: ;;
1203076910425Smrg
1203176910425Smrg  # This is an error.
12032482df631Smrg  -*) as_fn_error $? "unrecognized option: \`$1'
12033482df631SmrgTry \`$0 --help' for more information." ;;
1203476910425Smrg
12035482df631Smrg  *) as_fn_append ac_config_targets " $1"
12036db17cd6dSmrg     ac_need_defaults=false ;;
1203776910425Smrg
1203876910425Smrg  esac
1203976910425Smrg  shift
1204076910425Smrgdone
1204176910425Smrg
1204276910425Smrgac_configure_extra_args=
1204376910425Smrg
1204476910425Smrgif $ac_cs_silent; then
1204576910425Smrg  exec 6>/dev/null
1204676910425Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1204776910425Smrgfi
1204876910425Smrg
1204976910425Smrg_ACEOF
12050db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1205176910425Smrgif \$ac_cs_recheck; then
120529ff100acSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12053db17cd6dSmrg  shift
12054a67f45c3Smrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12055db17cd6dSmrg  CONFIG_SHELL='$SHELL'
12056db17cd6dSmrg  export CONFIG_SHELL
12057db17cd6dSmrg  exec "\$@"
1205876910425Smrgfi
1205976910425Smrg
1206076910425Smrg_ACEOF
12061db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12062db17cd6dSmrgexec 5>>config.log
12063db17cd6dSmrg{
12064db17cd6dSmrg  echo
12065db17cd6dSmrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12066db17cd6dSmrg## Running $as_me. ##
12067db17cd6dSmrg_ASBOX
12068a67f45c3Smrg  printf "%s\n" "$ac_log"
12069db17cd6dSmrg} >&5
1207076910425Smrg
12071db17cd6dSmrg_ACEOF
12072db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1207376910425Smrg#
12074db17cd6dSmrg# INIT-COMMANDS
1207576910425Smrg#
12076a67f45c3SmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1207776910425Smrg
1207876910425Smrg_ACEOF
1207976910425Smrg
12080db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1208176910425Smrg
12082db17cd6dSmrg# Handling of arguments.
1208376910425Smrgfor ac_config_target in $ac_config_targets
1208476910425Smrgdo
12085db17cd6dSmrg  case $ac_config_target in
12086db17cd6dSmrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12087db17cd6dSmrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12088db17cd6dSmrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
120899ff100acSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12090db17cd6dSmrg
12091482df631Smrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1209276910425Smrg  esac
1209376910425Smrgdone
1209476910425Smrg
12095db17cd6dSmrg
1209676910425Smrg# If the user did not use the arguments to specify the items to instantiate,
1209776910425Smrg# then the envvar interface is used.  Set only those that are not.
1209876910425Smrg# We use the long form for the default assignment because of an extremely
1209976910425Smrg# bizarre bug on SunOS 4.1.3.
1210076910425Smrgif $ac_need_defaults; then
12101a67f45c3Smrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12102a67f45c3Smrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12103a67f45c3Smrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1210476910425Smrgfi
1210576910425Smrg
1210676910425Smrg# Have a temporary directory for convenience.  Make it in the build tree
12107db17cd6dSmrg# simply because there is no reason against having it here, and in addition,
1210876910425Smrg# creating and moving files from /tmp can sometimes cause problems.
12109db17cd6dSmrg# Hook for its removal unless debugging.
12110db17cd6dSmrg# Note that there is a small window in which the directory will not be cleaned:
12111db17cd6dSmrg# after its creation but before its name has been assigned to `$tmp'.
1211276910425Smrg$debug ||
1211376910425Smrg{
12114482df631Smrg  tmp= ac_tmp=
12115db17cd6dSmrg  trap 'exit_status=$?
12116482df631Smrg  : "${ac_tmp:=$tmp}"
12117482df631Smrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12118db17cd6dSmrg' 0
12119482df631Smrg  trap 'as_fn_exit 1' 1 2 13 15
1212076910425Smrg}
1212176910425Smrg# Create a (secure) tmp directory for tmp files.
1212276910425Smrg
1212376910425Smrg{
12124db17cd6dSmrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12125482df631Smrg  test -d "$tmp"
1212676910425Smrg}  ||
1212776910425Smrg{
12128db17cd6dSmrg  tmp=./conf$$-$RANDOM
12129db17cd6dSmrg  (umask 077 && mkdir "$tmp")
12130482df631Smrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12131482df631Smrgac_tmp=$tmp
1213276910425Smrg
12133db17cd6dSmrg# Set up the scripts for CONFIG_FILES section.
12134db17cd6dSmrg# No need to generate them if there are no CONFIG_FILES.
12135db17cd6dSmrg# This happens for instance with `./config.status config.h'.
12136db17cd6dSmrgif test -n "$CONFIG_FILES"; then
12137db17cd6dSmrg
12138db17cd6dSmrg
12139482df631Smrgac_cr=`echo X | tr X '\015'`
12140482df631Smrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
12141482df631Smrg# But we know of no other shell where ac_cr would be empty at this
12142482df631Smrg# point, so we can use a bashism as a fallback.
12143482df631Smrgif test "x$ac_cr" = x; then
12144482df631Smrg  eval ac_cr=\$\'\\r\'
12145482df631Smrgfi
12146db17cd6dSmrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12147db17cd6dSmrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12148db17cd6dSmrg  ac_cs_awk_cr='\\r'
12149db17cd6dSmrgelse
12150db17cd6dSmrg  ac_cs_awk_cr=$ac_cr
12151db17cd6dSmrgfi
12152db17cd6dSmrg
12153482df631Smrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1215476910425Smrg_ACEOF
1215576910425Smrg
1215676910425Smrg
12157db17cd6dSmrg{
12158db17cd6dSmrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
12159db17cd6dSmrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12160db17cd6dSmrg  echo "_ACEOF"
12161db17cd6dSmrg} >conf$$subs.sh ||
12162482df631Smrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12163482df631Smrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12164db17cd6dSmrgac_delim='%!_!# '
12165db17cd6dSmrgfor ac_last_try in false false false false false :; do
12166db17cd6dSmrg  . ./conf$$subs.sh ||
12167482df631Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1216876910425Smrg
12169db17cd6dSmrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12170db17cd6dSmrg  if test $ac_delim_n = $ac_delim_num; then
12171db17cd6dSmrg    break
12172db17cd6dSmrg  elif $ac_last_try; then
12173482df631Smrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12174db17cd6dSmrg  else
12175db17cd6dSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12176db17cd6dSmrg  fi
12177db17cd6dSmrgdone
12178db17cd6dSmrgrm -f conf$$subs.sh
1217976910425Smrg
12180db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181482df631Smrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1218276910425Smrg_ACEOF
12183db17cd6dSmrgsed -n '
12184db17cd6dSmrgh
12185db17cd6dSmrgs/^/S["/; s/!.*/"]=/
12186db17cd6dSmrgp
12187db17cd6dSmrgg
12188db17cd6dSmrgs/^[^!]*!//
12189db17cd6dSmrg:repl
12190db17cd6dSmrgt repl
12191db17cd6dSmrgs/'"$ac_delim"'$//
12192db17cd6dSmrgt delim
12193db17cd6dSmrg:nl
12194db17cd6dSmrgh
12195482df631Smrgs/\(.\{148\}\)..*/\1/
12196db17cd6dSmrgt more1
12197db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12198db17cd6dSmrgp
12199db17cd6dSmrgn
12200db17cd6dSmrgb repl
12201db17cd6dSmrg:more1
12202db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12203db17cd6dSmrgp
12204db17cd6dSmrgg
12205db17cd6dSmrgs/.\{148\}//
12206db17cd6dSmrgt nl
12207db17cd6dSmrg:delim
12208db17cd6dSmrgh
12209482df631Smrgs/\(.\{148\}\)..*/\1/
12210db17cd6dSmrgt more2
12211db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/
12212db17cd6dSmrgp
12213db17cd6dSmrgb
12214db17cd6dSmrg:more2
12215db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
12216db17cd6dSmrgp
12217db17cd6dSmrgg
12218db17cd6dSmrgs/.\{148\}//
12219db17cd6dSmrgt delim
12220db17cd6dSmrg' <conf$$subs.awk | sed '
12221db17cd6dSmrg/^[^""]/{
12222db17cd6dSmrg  N
12223db17cd6dSmrg  s/\n//
12224db17cd6dSmrg}
12225db17cd6dSmrg' >>$CONFIG_STATUS || ac_write_fail=1
12226db17cd6dSmrgrm -f conf$$subs.awk
12227db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12228db17cd6dSmrg_ACAWK
12229482df631Smrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12230db17cd6dSmrg  for (key in S) S_is_set[key] = 1
12231db17cd6dSmrg  FS = ""
1223276910425Smrg
12233db17cd6dSmrg}
12234db17cd6dSmrg{
12235db17cd6dSmrg  line = $ 0
12236db17cd6dSmrg  nfields = split(line, field, "@")
12237db17cd6dSmrg  substed = 0
12238db17cd6dSmrg  len = length(field[1])
12239db17cd6dSmrg  for (i = 2; i < nfields; i++) {
12240db17cd6dSmrg    key = field[i]
12241db17cd6dSmrg    keylen = length(key)
12242db17cd6dSmrg    if (S_is_set[key]) {
12243db17cd6dSmrg      value = S[key]
12244db17cd6dSmrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12245db17cd6dSmrg      len += length(value) + length(field[++i])
12246db17cd6dSmrg      substed = 1
12247db17cd6dSmrg    } else
12248db17cd6dSmrg      len += 1 + keylen
12249db17cd6dSmrg  }
12250db17cd6dSmrg
12251db17cd6dSmrg  print line
12252db17cd6dSmrg}
12253db17cd6dSmrg
12254db17cd6dSmrg_ACAWK
12255db17cd6dSmrg_ACEOF
12256db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257db17cd6dSmrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12258db17cd6dSmrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12259db17cd6dSmrgelse
12260db17cd6dSmrg  cat
12261482df631Smrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12262482df631Smrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12263db17cd6dSmrg_ACEOF
12264db17cd6dSmrg
12265482df631Smrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12266482df631Smrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12267db17cd6dSmrg# trailing colons and then remove the whole line if VPATH becomes empty
12268db17cd6dSmrg# (actually we leave an empty line to preserve line numbers).
12269db17cd6dSmrgif test "x$srcdir" = x.; then
12270482df631Smrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12271482df631Smrgh
12272482df631Smrgs///
12273482df631Smrgs/^/:/
12274482df631Smrgs/[	 ]*$/:/
12275482df631Smrgs/:\$(srcdir):/:/g
12276482df631Smrgs/:\${srcdir}:/:/g
12277482df631Smrgs/:@srcdir@:/:/g
12278482df631Smrgs/^:*//
12279db17cd6dSmrgs/:*$//
12280482df631Smrgx
12281482df631Smrgs/\(=[	 ]*\).*/\1/
12282482df631SmrgG
12283482df631Smrgs/\n//
12284db17cd6dSmrgs/^[^=]*=[	 ]*$//
12285db17cd6dSmrg}'
12286db17cd6dSmrgfi
12287db17cd6dSmrg
12288db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1228976910425Smrgfi # test -n "$CONFIG_FILES"
1229076910425Smrg
12291db17cd6dSmrg# Set up the scripts for CONFIG_HEADERS section.
12292db17cd6dSmrg# No need to generate them if there are no CONFIG_HEADERS.
12293db17cd6dSmrg# This happens for instance with `./config.status Makefile'.
12294db17cd6dSmrgif test -n "$CONFIG_HEADERS"; then
12295482df631Smrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12296db17cd6dSmrgBEGIN {
1229776910425Smrg_ACEOF
12298db17cd6dSmrg
12299db17cd6dSmrg# Transform confdefs.h into an awk script `defines.awk', embedded as
12300db17cd6dSmrg# here-document in config.status, that substitutes the proper values into
12301db17cd6dSmrg# config.h.in to produce config.h.
12302db17cd6dSmrg
12303db17cd6dSmrg# Create a delimiter string that does not exist in confdefs.h, to ease
12304db17cd6dSmrg# handling of long lines.
12305db17cd6dSmrgac_delim='%!_!# '
12306db17cd6dSmrgfor ac_last_try in false false :; do
12307482df631Smrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12308482df631Smrg  if test -z "$ac_tt"; then
12309db17cd6dSmrg    break
12310db17cd6dSmrg  elif $ac_last_try; then
12311482df631Smrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12312db17cd6dSmrg  else
12313db17cd6dSmrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12314db17cd6dSmrg  fi
12315db17cd6dSmrgdone
12316db17cd6dSmrg
12317db17cd6dSmrg# For the awk script, D is an array of macro values keyed by name,
12318db17cd6dSmrg# likewise P contains macro parameters if any.  Preserve backslash
12319db17cd6dSmrg# newline sequences.
12320db17cd6dSmrg
12321db17cd6dSmrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12322db17cd6dSmrgsed -n '
12323db17cd6dSmrgs/.\{148\}/&'"$ac_delim"'/g
12324db17cd6dSmrgt rset
12325db17cd6dSmrg:rset
12326db17cd6dSmrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12327db17cd6dSmrgt def
12328db17cd6dSmrgd
12329db17cd6dSmrg:def
12330db17cd6dSmrgs/\\$//
12331db17cd6dSmrgt bsnl
12332db17cd6dSmrgs/["\\]/\\&/g
12333db17cd6dSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12334db17cd6dSmrgD["\1"]=" \3"/p
12335db17cd6dSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12336db17cd6dSmrgd
12337db17cd6dSmrg:bsnl
12338db17cd6dSmrgs/["\\]/\\&/g
12339db17cd6dSmrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12340db17cd6dSmrgD["\1"]=" \3\\\\\\n"\\/p
12341db17cd6dSmrgt cont
12342db17cd6dSmrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12343db17cd6dSmrgt cont
12344db17cd6dSmrgd
12345db17cd6dSmrg:cont
12346db17cd6dSmrgn
12347db17cd6dSmrgs/.\{148\}/&'"$ac_delim"'/g
12348db17cd6dSmrgt clear
12349db17cd6dSmrg:clear
12350db17cd6dSmrgs/\\$//
12351db17cd6dSmrgt bsnlc
12352db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
12353db17cd6dSmrgd
12354db17cd6dSmrg:bsnlc
12355db17cd6dSmrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12356db17cd6dSmrgb cont
12357db17cd6dSmrg' <confdefs.h | sed '
12358db17cd6dSmrgs/'"$ac_delim"'/"\\\
12359db17cd6dSmrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
12360db17cd6dSmrg
12361db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12362db17cd6dSmrg  for (key in D) D_is_set[key] = 1
12363db17cd6dSmrg  FS = ""
12364db17cd6dSmrg}
12365db17cd6dSmrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12366db17cd6dSmrg  line = \$ 0
12367db17cd6dSmrg  split(line, arg, " ")
12368db17cd6dSmrg  if (arg[1] == "#") {
12369db17cd6dSmrg    defundef = arg[2]
12370db17cd6dSmrg    mac1 = arg[3]
12371db17cd6dSmrg  } else {
12372db17cd6dSmrg    defundef = substr(arg[1], 2)
12373db17cd6dSmrg    mac1 = arg[2]
12374db17cd6dSmrg  }
12375db17cd6dSmrg  split(mac1, mac2, "(") #)
12376db17cd6dSmrg  macro = mac2[1]
12377db17cd6dSmrg  prefix = substr(line, 1, index(line, defundef) - 1)
12378db17cd6dSmrg  if (D_is_set[macro]) {
12379db17cd6dSmrg    # Preserve the white space surrounding the "#".
12380db17cd6dSmrg    print prefix "define", macro P[macro] D[macro]
12381db17cd6dSmrg    next
12382db17cd6dSmrg  } else {
12383db17cd6dSmrg    # Replace #undef with comments.  This is necessary, for example,
12384db17cd6dSmrg    # in the case of _POSIX_SOURCE, which is predefined and required
12385db17cd6dSmrg    # on some systems where configure will not decide to define it.
12386db17cd6dSmrg    if (defundef == "undef") {
12387db17cd6dSmrg      print "/*", prefix defundef, macro, "*/"
12388db17cd6dSmrg      next
12389db17cd6dSmrg    }
12390db17cd6dSmrg  }
12391db17cd6dSmrg}
12392db17cd6dSmrg{ print }
12393db17cd6dSmrg_ACAWK
12394db17cd6dSmrg_ACEOF
12395db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12396482df631Smrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12397db17cd6dSmrgfi # test -n "$CONFIG_HEADERS"
12398db17cd6dSmrg
12399db17cd6dSmrg
12400db17cd6dSmrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12401db17cd6dSmrgshift
12402db17cd6dSmrgfor ac_tag
12403db17cd6dSmrgdo
12404db17cd6dSmrg  case $ac_tag in
12405db17cd6dSmrg  :[FHLC]) ac_mode=$ac_tag; continue;;
12406db17cd6dSmrg  esac
12407db17cd6dSmrg  case $ac_mode$ac_tag in
12408db17cd6dSmrg  :[FHL]*:*);;
12409482df631Smrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12410db17cd6dSmrg  :[FH]-) ac_tag=-:-;;
12411db17cd6dSmrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12412db17cd6dSmrg  esac
12413db17cd6dSmrg  ac_save_IFS=$IFS
12414db17cd6dSmrg  IFS=:
12415db17cd6dSmrg  set x $ac_tag
12416db17cd6dSmrg  IFS=$ac_save_IFS
12417db17cd6dSmrg  shift
12418db17cd6dSmrg  ac_file=$1
12419db17cd6dSmrg  shift
12420db17cd6dSmrg
12421db17cd6dSmrg  case $ac_mode in
12422db17cd6dSmrg  :L) ac_source=$1;;
12423db17cd6dSmrg  :[FH])
12424db17cd6dSmrg    ac_file_inputs=
12425db17cd6dSmrg    for ac_f
12426db17cd6dSmrg    do
12427db17cd6dSmrg      case $ac_f in
12428482df631Smrg      -) ac_f="$ac_tmp/stdin";;
12429db17cd6dSmrg      *) # Look for the file first in the build tree, then in the source tree
12430db17cd6dSmrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12431db17cd6dSmrg	 # because $ac_f cannot contain `:'.
12432db17cd6dSmrg	 test -f "$ac_f" ||
12433db17cd6dSmrg	   case $ac_f in
12434db17cd6dSmrg	   [\\/$]*) false;;
12435db17cd6dSmrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12436db17cd6dSmrg	   esac ||
12437482df631Smrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12438db17cd6dSmrg      esac
12439a67f45c3Smrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12440482df631Smrg      as_fn_append ac_file_inputs " '$ac_f'"
12441db17cd6dSmrg    done
12442db17cd6dSmrg
12443db17cd6dSmrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
12444db17cd6dSmrg    # use $as_me), people would be surprised to read:
12445db17cd6dSmrg    #    /* config.h.  Generated by config.status.  */
12446db17cd6dSmrg    configure_input='Generated from '`
12447a67f45c3Smrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12448db17cd6dSmrg	`' by configure.'
12449db17cd6dSmrg    if test x"$ac_file" != x-; then
12450db17cd6dSmrg      configure_input="$ac_file.  $configure_input"
12451a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12452a67f45c3Smrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
12453db17cd6dSmrg    fi
12454db17cd6dSmrg    # Neutralize special characters interpreted by sed in replacement strings.
12455db17cd6dSmrg    case $configure_input in #(
12456db17cd6dSmrg    *\&* | *\|* | *\\* )
12457a67f45c3Smrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12458db17cd6dSmrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12459db17cd6dSmrg    *) ac_sed_conf_input=$configure_input;;
12460db17cd6dSmrg    esac
12461db17cd6dSmrg
12462db17cd6dSmrg    case $ac_tag in
12463482df631Smrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12464482df631Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12465db17cd6dSmrg    esac
12466db17cd6dSmrg    ;;
1246776910425Smrg  esac
1246876910425Smrg
12469db17cd6dSmrg  ac_dir=`$as_dirname -- "$ac_file" ||
1247076910425Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247176910425Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1247276910425Smrg	 X"$ac_file" : 'X\(//\)$' \| \
12473db17cd6dSmrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12474a67f45c3Smrgprintf "%s\n" X"$ac_file" |
12475db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12476db17cd6dSmrg	    s//\1/
12477db17cd6dSmrg	    q
12478db17cd6dSmrg	  }
12479db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
12480db17cd6dSmrg	    s//\1/
12481db17cd6dSmrg	    q
12482db17cd6dSmrg	  }
12483db17cd6dSmrg	  /^X\(\/\/\)$/{
12484db17cd6dSmrg	    s//\1/
12485db17cd6dSmrg	    q
12486db17cd6dSmrg	  }
12487db17cd6dSmrg	  /^X\(\/\).*/{
12488db17cd6dSmrg	    s//\1/
12489db17cd6dSmrg	    q
12490db17cd6dSmrg	  }
12491db17cd6dSmrg	  s/.*/./; q'`
12492482df631Smrg  as_dir="$ac_dir"; as_fn_mkdir_p
1249376910425Smrg  ac_builddir=.
1249476910425Smrg
12495db17cd6dSmrgcase "$ac_dir" in
12496db17cd6dSmrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12497db17cd6dSmrg*)
12498a67f45c3Smrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12499db17cd6dSmrg  # A ".." for each directory in $ac_dir_suffix.
12500a67f45c3Smrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12501db17cd6dSmrg  case $ac_top_builddir_sub in
12502db17cd6dSmrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12503db17cd6dSmrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12504db17cd6dSmrg  esac ;;
12505db17cd6dSmrgesac
12506db17cd6dSmrgac_abs_top_builddir=$ac_pwd
12507db17cd6dSmrgac_abs_builddir=$ac_pwd$ac_dir_suffix
12508db17cd6dSmrg# for backward compatibility:
12509db17cd6dSmrgac_top_builddir=$ac_top_build_prefix
1251076910425Smrg
1251176910425Smrgcase $srcdir in
12512db17cd6dSmrg  .)  # We are building in place.
1251376910425Smrg    ac_srcdir=.
12514db17cd6dSmrg    ac_top_srcdir=$ac_top_builddir_sub
12515db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd ;;
12516db17cd6dSmrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1251776910425Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
12518db17cd6dSmrg    ac_top_srcdir=$srcdir
12519db17cd6dSmrg    ac_abs_top_srcdir=$srcdir ;;
12520db17cd6dSmrg  *) # Relative name.
12521db17cd6dSmrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12522db17cd6dSmrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
12523db17cd6dSmrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1252476910425Smrgesac
12525db17cd6dSmrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1252676910425Smrg
1252776910425Smrg
12528db17cd6dSmrg  case $ac_mode in
12529db17cd6dSmrg  :F)
12530db17cd6dSmrg  #
12531db17cd6dSmrg  # CONFIG_FILE
12532db17cd6dSmrg  #
1253376910425Smrg
1253476910425Smrg  case $INSTALL in
1253576910425Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12536db17cd6dSmrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1253776910425Smrg  esac
12538db17cd6dSmrg  ac_MKDIR_P=$MKDIR_P
12539db17cd6dSmrg  case $MKDIR_P in
12540db17cd6dSmrg  [\\/$]* | ?:[\\/]* ) ;;
12541db17cd6dSmrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12542db17cd6dSmrg  esac
12543db17cd6dSmrg_ACEOF
1254476910425Smrg
12545db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12546db17cd6dSmrg# If the template does not know about datarootdir, expand it.
12547db17cd6dSmrg# FIXME: This hack should be removed a few years after 2.60.
12548db17cd6dSmrgac_datarootdir_hack=; ac_datarootdir_seen=
12549db17cd6dSmrgac_sed_dataroot='
12550db17cd6dSmrg/datarootdir/ {
12551db17cd6dSmrg  p
12552db17cd6dSmrg  q
12553db17cd6dSmrg}
12554db17cd6dSmrg/@datadir@/p
12555db17cd6dSmrg/@docdir@/p
12556db17cd6dSmrg/@infodir@/p
12557db17cd6dSmrg/@localedir@/p
12558482df631Smrg/@mandir@/p'
12559db17cd6dSmrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12560db17cd6dSmrg*datarootdir*) ac_datarootdir_seen=yes;;
12561db17cd6dSmrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12562a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12563a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12564db17cd6dSmrg_ACEOF
12565db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12566db17cd6dSmrg  ac_datarootdir_hack='
12567db17cd6dSmrg  s&@datadir@&$datadir&g
12568db17cd6dSmrg  s&@docdir@&$docdir&g
12569db17cd6dSmrg  s&@infodir@&$infodir&g
12570db17cd6dSmrg  s&@localedir@&$localedir&g
12571db17cd6dSmrg  s&@mandir@&$mandir&g
12572482df631Smrg  s&\\\${datarootdir}&$datarootdir&g' ;;
12573db17cd6dSmrgesac
1257476910425Smrg_ACEOF
12575db17cd6dSmrg
12576db17cd6dSmrg# Neutralize VPATH when `$srcdir' = `.'.
12577db17cd6dSmrg# Shell code in configure.ac might set extrasub.
12578db17cd6dSmrg# FIXME: do we really want to maintain this feature?
12579db17cd6dSmrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12580db17cd6dSmrgac_sed_extra="$ac_vpsub
1258176910425Smrg$extrasub
1258276910425Smrg_ACEOF
12583db17cd6dSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1258476910425Smrg:t
1258576910425Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12586db17cd6dSmrgs|@configure_input@|$ac_sed_conf_input|;t t
12587db17cd6dSmrgs&@top_builddir@&$ac_top_builddir_sub&;t t
12588db17cd6dSmrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
12589db17cd6dSmrgs&@srcdir@&$ac_srcdir&;t t
12590db17cd6dSmrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
12591db17cd6dSmrgs&@top_srcdir@&$ac_top_srcdir&;t t
12592db17cd6dSmrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12593db17cd6dSmrgs&@builddir@&$ac_builddir&;t t
12594db17cd6dSmrgs&@abs_builddir@&$ac_abs_builddir&;t t
12595db17cd6dSmrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12596db17cd6dSmrgs&@INSTALL@&$ac_INSTALL&;t t
12597db17cd6dSmrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
12598db17cd6dSmrg$ac_datarootdir_hack
12599db17cd6dSmrg"
12600482df631Smrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12601482df631Smrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1260276910425Smrg
12603db17cd6dSmrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12604482df631Smrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12605482df631Smrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12606482df631Smrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12607a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12608482df631Smrgwhich seems to be undefined.  Please make sure it is defined" >&5
12609a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12610482df631Smrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1261176910425Smrg
12612482df631Smrg  rm -f "$ac_tmp/stdin"
1261376910425Smrg  case $ac_file in
12614482df631Smrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12615482df631Smrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12616db17cd6dSmrg  esac \
12617482df631Smrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12618db17cd6dSmrg ;;
12619db17cd6dSmrg  :H)
12620db17cd6dSmrg  #
12621db17cd6dSmrg  # CONFIG_HEADER
12622db17cd6dSmrg  #
1262376910425Smrg  if test x"$ac_file" != x-; then
12624db17cd6dSmrg    {
12625a67f45c3Smrg      printf "%s\n" "/* $configure_input  */" >&1 \
12626482df631Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12627482df631Smrg    } >"$ac_tmp/config.h" \
12628482df631Smrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12629482df631Smrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12630a67f45c3Smrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12631a67f45c3Smrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1263276910425Smrg    else
12633db17cd6dSmrg      rm -f "$ac_file"
12634482df631Smrg      mv "$ac_tmp/config.h" "$ac_file" \
12635482df631Smrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1263676910425Smrg    fi
1263776910425Smrg  else
12638a67f45c3Smrg    printf "%s\n" "/* $configure_input  */" >&1 \
12639482df631Smrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12640482df631Smrg      || as_fn_error $? "could not create -" "$LINENO" 5
1264176910425Smrg  fi
12642db17cd6dSmrg# Compute "$ac_file"'s index in $config_headers.
12643db17cd6dSmrg_am_arg="$ac_file"
1264476910425Smrg_am_stamp_count=1
1264576910425Smrgfor _am_header in $config_headers :; do
1264676910425Smrg  case $_am_header in
12647db17cd6dSmrg    $_am_arg | $_am_arg:* )
1264876910425Smrg      break ;;
1264976910425Smrg    * )
1265076910425Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1265176910425Smrg  esac
1265276910425Smrgdone
12653db17cd6dSmrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12654db17cd6dSmrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12655db17cd6dSmrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12656db17cd6dSmrg	 X"$_am_arg" : 'X\(//\)$' \| \
12657db17cd6dSmrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12658a67f45c3Smrgprintf "%s\n" X"$_am_arg" |
12659db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12660db17cd6dSmrg	    s//\1/
12661db17cd6dSmrg	    q
12662db17cd6dSmrg	  }
12663db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
12664db17cd6dSmrg	    s//\1/
12665db17cd6dSmrg	    q
12666db17cd6dSmrg	  }
12667db17cd6dSmrg	  /^X\(\/\/\)$/{
12668db17cd6dSmrg	    s//\1/
12669db17cd6dSmrg	    q
12670db17cd6dSmrg	  }
12671db17cd6dSmrg	  /^X\(\/\).*/{
12672db17cd6dSmrg	    s//\1/
12673db17cd6dSmrg	    q
12674db17cd6dSmrg	  }
12675db17cd6dSmrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
12676db17cd6dSmrg ;;
1267776910425Smrg
12678a67f45c3Smrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12679a67f45c3Smrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12680db17cd6dSmrg ;;
12681db17cd6dSmrg  esac
1268276910425Smrg
1268376910425Smrg
12684db17cd6dSmrg  case $ac_file$ac_mode in
12685db17cd6dSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
126869ff100acSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
12687db17cd6dSmrg  # are listed without --file.  Let's play safe and only enable the eval
12688db17cd6dSmrg  # if we detect the quoting.
12689a67f45c3Smrg  # TODO: see whether this extra hack can be removed once we start
12690a67f45c3Smrg  # requiring Autoconf 2.70 or later.
12691a67f45c3Smrg  case $CONFIG_FILES in #(
12692a67f45c3Smrg  *\'*) :
12693a67f45c3Smrg    eval set x "$CONFIG_FILES" ;; #(
12694a67f45c3Smrg  *) :
12695a67f45c3Smrg    set x $CONFIG_FILES ;; #(
12696a67f45c3Smrg  *) :
12697a67f45c3Smrg     ;;
12698a67f45c3Smrgesac
12699db17cd6dSmrg  shift
12700a67f45c3Smrg  # Used to flag and report bootstrapping failures.
12701a67f45c3Smrg  am_rc=0
12702a67f45c3Smrg  for am_mf
12703db17cd6dSmrg  do
12704db17cd6dSmrg    # Strip MF so we end up with the name of the file.
12705a67f45c3Smrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12706a67f45c3Smrg    # Check whether this is an Automake generated Makefile which includes
12707a67f45c3Smrg    # dependency-tracking related rules and includes.
12708a67f45c3Smrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12709db17cd6dSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
12710a67f45c3Smrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12711a67f45c3Smrg      || continue
12712a67f45c3Smrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12713a67f45c3Smrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12714a67f45c3Smrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12715a67f45c3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
12716a67f45c3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12717a67f45c3Smrgprintf "%s\n" X"$am_mf" |
12718db17cd6dSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12719db17cd6dSmrg	    s//\1/
12720db17cd6dSmrg	    q
12721db17cd6dSmrg	  }
12722db17cd6dSmrg	  /^X\(\/\/\)[^/].*/{
12723db17cd6dSmrg	    s//\1/
12724db17cd6dSmrg	    q
12725db17cd6dSmrg	  }
12726db17cd6dSmrg	  /^X\(\/\/\)$/{
12727db17cd6dSmrg	    s//\1/
12728db17cd6dSmrg	    q
12729db17cd6dSmrg	  }
12730db17cd6dSmrg	  /^X\(\/\).*/{
12731db17cd6dSmrg	    s//\1/
12732db17cd6dSmrg	    q
12733db17cd6dSmrg	  }
12734db17cd6dSmrg	  s/.*/./; q'`
12735a67f45c3Smrg    am_filepart=`$as_basename -- "$am_mf" ||
12736a67f45c3Smrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12737a67f45c3Smrg	 X"$am_mf" : 'X\(//\)$' \| \
12738a67f45c3Smrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12739a67f45c3Smrgprintf "%s\n" X/"$am_mf" |
12740a67f45c3Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
12741db17cd6dSmrg	    s//\1/
12742db17cd6dSmrg	    q
12743db17cd6dSmrg	  }
12744a67f45c3Smrg	  /^X\/\(\/\/\)$/{
12745db17cd6dSmrg	    s//\1/
12746db17cd6dSmrg	    q
12747db17cd6dSmrg	  }
12748a67f45c3Smrg	  /^X\/\(\/\).*/{
12749db17cd6dSmrg	    s//\1/
12750db17cd6dSmrg	    q
12751db17cd6dSmrg	  }
12752db17cd6dSmrg	  s/.*/./; q'`
12753a67f45c3Smrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12754a67f45c3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12755a67f45c3Smrg        | $MAKE -f - am--depfiles" >&5
12756a67f45c3Smrg   (cd "$am_dirpart" \
12757a67f45c3Smrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12758a67f45c3Smrg        | $MAKE -f - am--depfiles) >&5 2>&5
12759a67f45c3Smrg   ac_status=$?
12760a67f45c3Smrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761a67f45c3Smrg   (exit $ac_status); } || am_rc=$?
1276276910425Smrg  done
12763a67f45c3Smrg  if test $am_rc -ne 0; then
12764a67f45c3Smrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12765a67f45c3Smrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12766a67f45c3Smrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12767a67f45c3Smrg    for automatic dependency tracking.  If GNU make was not used, consider
12768a67f45c3Smrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12769a67f45c3Smrg    necessary).  You can also try re-running configure with the
12770a67f45c3Smrg    '--disable-dependency-tracking' option to at least be able to build
12771a67f45c3Smrg    the package (albeit without support for automatic dependency tracking).
12772a67f45c3SmrgSee \`config.log' for more details" "$LINENO" 5; }
12773a67f45c3Smrg  fi
12774a67f45c3Smrg  { am_dirpart=; unset am_dirpart;}
12775a67f45c3Smrg  { am_filepart=; unset am_filepart;}
12776a67f45c3Smrg  { am_mf=; unset am_mf;}
12777a67f45c3Smrg  { am_rc=; unset am_rc;}
12778a67f45c3Smrg  rm -f conftest-deps.mk
12779db17cd6dSmrg}
1278076910425Smrg ;;
12781db17cd6dSmrg
1278276910425Smrg  esac
12783db17cd6dSmrgdone # for ac_tag
1278476910425Smrg
1278576910425Smrg
12786482df631Smrgas_fn_exit 0
1278776910425Smrg_ACEOF
1278876910425Smrgac_clean_files=$ac_clean_files_save
1278976910425Smrg
12790db17cd6dSmrgtest $ac_write_fail = 0 ||
12791482df631Smrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12792db17cd6dSmrg
1279376910425Smrg
1279476910425Smrg# configure is writing to config.log, and then calls config.status.
1279576910425Smrg# config.status does its own redirection, appending to config.log.
1279676910425Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1279776910425Smrg# by configure, so config.status won't be able to write to it; its
1279876910425Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1279976910425Smrg# effectively closing config.log, so it can be properly (re)opened and
1280076910425Smrg# appended to by config.status.  When coming back to configure, we
1280176910425Smrg# need to make the FD available again.
1280276910425Smrgif test "$no_create" != yes; then
1280376910425Smrg  ac_cs_success=:
1280476910425Smrg  ac_config_status_args=
1280576910425Smrg  test "$silent" = yes &&
1280676910425Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1280776910425Smrg  exec 5>/dev/null
1280876910425Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1280976910425Smrg  exec 5>>config.log
1281076910425Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1281176910425Smrg  # would make configure fail if this is the last instruction.
12812482df631Smrg  $ac_cs_success || as_fn_exit 1
1281376910425Smrgfi
12814db17cd6dSmrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12815a67f45c3Smrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12816a67f45c3Smrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12817db17cd6dSmrgfi
1281876910425Smrg
12819a67f45c3Smrg
12820