166fe65f6Smrg#! /bin/sh
266fe65f6Smrg# Guess values for system-dependent variables and create Makefiles.
322281038Smrg# Generated by GNU Autoconf 2.71 for font-util 1.4.1.
466fe65f6Smrg#
5c12babebSmrg# Report bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
666fe65f6Smrg#
748af84faSmrg#
8bc77032bSmrg# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9bc77032bSmrg# Inc.
1048af84faSmrg#
1148af84faSmrg#
1266fe65f6Smrg# This configure script is free software; the Free Software Foundation
1366fe65f6Smrg# gives unlimited permission to copy, distribute and modify it.
1448af84faSmrg## -------------------- ##
1548af84faSmrg## M4sh Initialization. ##
1648af84faSmrg## -------------------- ##
1766fe65f6Smrg
1889d09728Smrg# Be more Bourne compatible
1989d09728SmrgDUALCASE=1; export DUALCASE # for MKS sh
20bc77032bSmrgas_nop=:
21bc77032bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22bc77032bSmrgthen :
2366fe65f6Smrg  emulate sh
2466fe65f6Smrg  NULLCMD=:
2589d09728Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2666fe65f6Smrg  # is contrary to our usage.  Disable this feature.
2766fe65f6Smrg  alias -g '${1+"$@"}'='"$@"'
2889d09728Smrg  setopt NO_GLOB_SUBST
29bc77032bSmrgelse $as_nop
3048af84faSmrg  case `(set -o) 2>/dev/null` in #(
3148af84faSmrg  *posix*) :
3248af84faSmrg    set -o posix ;; #(
3348af84faSmrg  *) :
3448af84faSmrg     ;;
3589d09728Smrgesac
3666fe65f6Smrgfi
3766fe65f6Smrg
3889d09728Smrg
39bc77032bSmrg
40bc77032bSmrg# Reset variables that may have inherited troublesome values from
41bc77032bSmrg# the environment.
42bc77032bSmrg
43bc77032bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
44bc77032bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
45bc77032bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
46bc77032bSmrg# Quoting is to prevent editors from complaining about space-tab.
4789d09728Smrgas_nl='
4889d09728Smrg'
4989d09728Smrgexport as_nl
50bc77032bSmrgIFS=" ""	$as_nl"
51bc77032bSmrg
52bc77032bSmrgPS1='$ '
53bc77032bSmrgPS2='> '
54bc77032bSmrgPS4='+ '
55bc77032bSmrg
56bc77032bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
57bc77032bSmrgLC_ALL=C
58bc77032bSmrgexport LC_ALL
59bc77032bSmrgLANGUAGE=C
60bc77032bSmrgexport LANGUAGE
61bc77032bSmrg
62bc77032bSmrg# We cannot yet rely on "unset" to work, but we need these variables
63bc77032bSmrg# to be unset--not just set to an empty or harmless value--now, to
64bc77032bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65bc77032bSmrg# also avoids known problems related to "unset" and subshell syntax
66bc77032bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67bc77032bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68bc77032bSmrgdo eval test \${$as_var+y} \
69bc77032bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70bc77032bSmrgdone
71bc77032bSmrg
72bc77032bSmrg# Ensure that fds 0, 1, and 2 are open.
73bc77032bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74bc77032bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75bc77032bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
7689d09728Smrg
7789d09728Smrg# The user is always right.
78bc77032bSmrgif ${PATH_SEPARATOR+false} :; then
7989d09728Smrg  PATH_SEPARATOR=:
8089d09728Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8189d09728Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8289d09728Smrg      PATH_SEPARATOR=';'
8389d09728Smrg  }
8466fe65f6Smrgfi
8566fe65f6Smrg
8666fe65f6Smrg
8789d09728Smrg# Find who we are.  Look in the path if we contain no directory separator.
8848af84faSmrgas_myself=
8948af84faSmrgcase $0 in #((
9089d09728Smrg  *[\\/]* ) as_myself=$0 ;;
9189d09728Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289d09728Smrgfor as_dir in $PATH
9389d09728Smrgdo
9489d09728Smrg  IFS=$as_save_IFS
95bc77032bSmrg  case $as_dir in #(((
96bc77032bSmrg    '') as_dir=./ ;;
97bc77032bSmrg    */) ;;
98bc77032bSmrg    *) as_dir=$as_dir/ ;;
99bc77032bSmrg  esac
100bc77032bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10148af84faSmrg  done
10289d09728SmrgIFS=$as_save_IFS
10389d09728Smrg
10489d09728Smrg     ;;
10589d09728Smrgesac
10689d09728Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
10789d09728Smrg# in which case we are not to be found in the path.
10889d09728Smrgif test "x$as_myself" = x; then
10989d09728Smrg  as_myself=$0
11089d09728Smrgfi
11189d09728Smrgif test ! -f "$as_myself"; then
112bc77032bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11348af84faSmrg  exit 1
11489d09728Smrgfi
11589d09728Smrg
11648af84faSmrg
117c6a6acfbSmrg# Use a proper internal environment variable to ensure we don't fall
118c6a6acfbSmrg  # into an infinite loop, continuously re-executing ourselves.
119c6a6acfbSmrg  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120c6a6acfbSmrg    _as_can_reexec=no; export _as_can_reexec;
121c6a6acfbSmrg    # We cannot yet assume a decent shell, so we have to provide a
122c6a6acfbSmrg# neutralization value for shells without unset; and this also
123c6a6acfbSmrg# works around shells that cannot unset nonexistent variables.
124c6a6acfbSmrg# Preserve -v and -x to the replacement shell.
125c6a6acfbSmrgBASH_ENV=/dev/null
126c6a6acfbSmrgENV=/dev/null
127c6a6acfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128c6a6acfbSmrgcase $- in # ((((
129c6a6acfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
130c6a6acfbSmrg  *v* ) as_opts=-v ;;
131c6a6acfbSmrg  *x* ) as_opts=-x ;;
132c6a6acfbSmrg  * ) as_opts= ;;
133c6a6acfbSmrgesac
134c6a6acfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135c6a6acfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
136c6a6acfbSmrg# out after a failed `exec'.
137bc77032bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138bc77032bSmrgexit 255
139c6a6acfbSmrg  fi
140c6a6acfbSmrg  # We don't want this to propagate to other subprocesses.
141c6a6acfbSmrg          { _as_can_reexec=; unset _as_can_reexec;}
14248af84faSmrgif test "x$CONFIG_SHELL" = x; then
143bc77032bSmrg  as_bourne_compatible="as_nop=:
144bc77032bSmrgif test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145bc77032bSmrgthen :
14648af84faSmrg  emulate sh
14748af84faSmrg  NULLCMD=:
14848af84faSmrg  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
14948af84faSmrg  # is contrary to our usage.  Disable this feature.
15048af84faSmrg  alias -g '\${1+\"\$@\"}'='\"\$@\"'
15148af84faSmrg  setopt NO_GLOB_SUBST
152bc77032bSmrgelse \$as_nop
15348af84faSmrg  case \`(set -o) 2>/dev/null\` in #(
15448af84faSmrg  *posix*) :
15548af84faSmrg    set -o posix ;; #(
15648af84faSmrg  *) :
15748af84faSmrg     ;;
15848af84faSmrgesac
15948af84faSmrgfi
16048af84faSmrg"
16148af84faSmrg  as_required="as_fn_return () { (exit \$1); }
16248af84faSmrgas_fn_success () { as_fn_return 0; }
16348af84faSmrgas_fn_failure () { as_fn_return 1; }
16448af84faSmrgas_fn_ret_success () { return 0; }
16548af84faSmrgas_fn_ret_failure () { return 1; }
16648af84faSmrg
16748af84faSmrgexitcode=0
16848af84faSmrgas_fn_success || { exitcode=1; echo as_fn_success failed.; }
16948af84faSmrgas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
17048af84faSmrgas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
17148af84faSmrgas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172bc77032bSmrgif ( set x; as_fn_ret_success y && test x = \"\$1\" )
173bc77032bSmrgthen :
17448af84faSmrg
175bc77032bSmrgelse \$as_nop
17648af84faSmrg  exitcode=1; echo positional parameters were not saved.
17748af84faSmrgfi
178c6a6acfbSmrgtest x\$exitcode = x0 || exit 1
179bc77032bSmrgblah=\$(echo \$(echo blah))
180bc77032bSmrgtest x\"\$blah\" = xblah || exit 1
181c6a6acfbSmrgtest -x / || exit 1"
18248af84faSmrg  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
18348af84faSmrg  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
18448af84faSmrg  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
18548af84faSmrg  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
18648af84faSmrgtest \$(( 1 + 1 )) = 2 || exit 1"
187bc77032bSmrg  if (eval "$as_required") 2>/dev/null
188bc77032bSmrgthen :
18948af84faSmrg  as_have_required=yes
190bc77032bSmrgelse $as_nop
19148af84faSmrg  as_have_required=no
19248af84faSmrgfi
193bc77032bSmrg  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194bc77032bSmrgthen :
19548af84faSmrg
196bc77032bSmrgelse $as_nop
19748af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19848af84faSmrgas_found=false
19948af84faSmrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20048af84faSmrgdo
20148af84faSmrg  IFS=$as_save_IFS
202bc77032bSmrg  case $as_dir in #(((
203bc77032bSmrg    '') as_dir=./ ;;
204bc77032bSmrg    */) ;;
205bc77032bSmrg    *) as_dir=$as_dir/ ;;
206bc77032bSmrg  esac
20748af84faSmrg  as_found=:
20848af84faSmrg  case $as_dir in #(
20948af84faSmrg	 /*)
21048af84faSmrg	   for as_base in sh bash ksh sh5; do
21148af84faSmrg	     # Try only shells that exist, to save several forks.
212bc77032bSmrg	     as_shell=$as_dir$as_base
21348af84faSmrg	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214bc77032bSmrg		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215bc77032bSmrgthen :
21648af84faSmrg  CONFIG_SHELL=$as_shell as_have_required=yes
217bc77032bSmrg		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218bc77032bSmrgthen :
21948af84faSmrg  break 2
22048af84faSmrgfi
22148af84faSmrgfi
22248af84faSmrg	   done;;
22348af84faSmrg       esac
22448af84faSmrg  as_found=false
22548af84faSmrgdone
22648af84faSmrgIFS=$as_save_IFS
227bc77032bSmrgif $as_found
228bc77032bSmrgthen :
229bc77032bSmrg
230bc77032bSmrgelse $as_nop
231bc77032bSmrg  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232bc77032bSmrg	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233bc77032bSmrgthen :
234bc77032bSmrg  CONFIG_SHELL=$SHELL as_have_required=yes
235bc77032bSmrgfi
236bc77032bSmrgfi
23748af84faSmrg
23848af84faSmrg
239bc77032bSmrg      if test "x$CONFIG_SHELL" != x
240bc77032bSmrgthen :
241c6a6acfbSmrg  export CONFIG_SHELL
242c6a6acfbSmrg             # We cannot yet assume a decent shell, so we have to provide a
243c6a6acfbSmrg# neutralization value for shells without unset; and this also
244c6a6acfbSmrg# works around shells that cannot unset nonexistent variables.
245c6a6acfbSmrg# Preserve -v and -x to the replacement shell.
246c6a6acfbSmrgBASH_ENV=/dev/null
247c6a6acfbSmrgENV=/dev/null
248c6a6acfbSmrg(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249c6a6acfbSmrgcase $- in # ((((
250c6a6acfbSmrg  *v*x* | *x*v* ) as_opts=-vx ;;
251c6a6acfbSmrg  *v* ) as_opts=-v ;;
252c6a6acfbSmrg  *x* ) as_opts=-x ;;
253c6a6acfbSmrg  * ) as_opts= ;;
254c6a6acfbSmrgesac
255c6a6acfbSmrgexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256c6a6acfbSmrg# Admittedly, this is quite paranoid, since all the known shells bail
257c6a6acfbSmrg# out after a failed `exec'.
258bc77032bSmrgprintf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259c6a6acfbSmrgexit 255
26048af84faSmrgfi
26148af84faSmrg
262bc77032bSmrg    if test x$as_have_required = xno
263bc77032bSmrgthen :
264bc77032bSmrg  printf "%s\n" "$0: This script requires a shell more modern than all"
265bc77032bSmrg  printf "%s\n" "$0: the shells that I found on your system."
266bc77032bSmrg  if test ${ZSH_VERSION+y} ; then
267bc77032bSmrg    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268bc77032bSmrg    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
26948af84faSmrg  else
270bc77032bSmrg    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271c12babebSmrg$0: https://gitlab.freedesktop.org/xorg/font/util/-/issues
27248af84faSmrg$0: about your system, including any error possibly output
27348af84faSmrg$0: before this message. Then install a modern shell, or
27448af84faSmrg$0: manually run the script under such a shell if you do
27548af84faSmrg$0: have one."
27648af84faSmrg  fi
27748af84faSmrg  exit 1
27848af84faSmrgfi
27948af84faSmrgfi
28048af84faSmrgfi
28148af84faSmrgSHELL=${CONFIG_SHELL-/bin/sh}
28248af84faSmrgexport SHELL
28348af84faSmrg# Unset more variables known to interfere with behavior of common tools.
28448af84faSmrgCLICOLOR_FORCE= GREP_OPTIONS=
28548af84faSmrgunset CLICOLOR_FORCE GREP_OPTIONS
28648af84faSmrg
28748af84faSmrg## --------------------- ##
28848af84faSmrg## M4sh Shell Functions. ##
28948af84faSmrg## --------------------- ##
29048af84faSmrg# as_fn_unset VAR
29148af84faSmrg# ---------------
29248af84faSmrg# Portably unset VAR.
29348af84faSmrgas_fn_unset ()
29448af84faSmrg{
29548af84faSmrg  { eval $1=; unset $1;}
29648af84faSmrg}
29748af84faSmrgas_unset=as_fn_unset
29848af84faSmrg
299bc77032bSmrg
30048af84faSmrg# as_fn_set_status STATUS
30148af84faSmrg# -----------------------
30248af84faSmrg# Set $? to STATUS, without forking.
30348af84faSmrgas_fn_set_status ()
30448af84faSmrg{
30548af84faSmrg  return $1
30648af84faSmrg} # as_fn_set_status
30748af84faSmrg
30848af84faSmrg# as_fn_exit STATUS
30948af84faSmrg# -----------------
31048af84faSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31148af84faSmrgas_fn_exit ()
31248af84faSmrg{
31348af84faSmrg  set +e
31448af84faSmrg  as_fn_set_status $1
31548af84faSmrg  exit $1
31648af84faSmrg} # as_fn_exit
317bc77032bSmrg# as_fn_nop
318bc77032bSmrg# ---------
319bc77032bSmrg# Do nothing but, unlike ":", preserve the value of $?.
320bc77032bSmrgas_fn_nop ()
321bc77032bSmrg{
322bc77032bSmrg  return $?
323bc77032bSmrg}
324bc77032bSmrgas_nop=as_fn_nop
32548af84faSmrg
32648af84faSmrg# as_fn_mkdir_p
32748af84faSmrg# -------------
32848af84faSmrg# Create "$as_dir" as a directory, including parents if necessary.
32948af84faSmrgas_fn_mkdir_p ()
33048af84faSmrg{
33148af84faSmrg
33248af84faSmrg  case $as_dir in #(
33348af84faSmrg  -*) as_dir=./$as_dir;;
33448af84faSmrg  esac
33548af84faSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
33648af84faSmrg    as_dirs=
33748af84faSmrg    while :; do
33848af84faSmrg      case $as_dir in #(
339bc77032bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34048af84faSmrg      *) as_qdir=$as_dir;;
34148af84faSmrg      esac
34248af84faSmrg      as_dirs="'$as_qdir' $as_dirs"
34348af84faSmrg      as_dir=`$as_dirname -- "$as_dir" ||
34448af84faSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34548af84faSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
34648af84faSmrg	 X"$as_dir" : 'X\(//\)$' \| \
34748af84faSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348bc77032bSmrgprintf "%s\n" X"$as_dir" |
34948af84faSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35048af84faSmrg	    s//\1/
35148af84faSmrg	    q
35248af84faSmrg	  }
35348af84faSmrg	  /^X\(\/\/\)[^/].*/{
35448af84faSmrg	    s//\1/
35548af84faSmrg	    q
35648af84faSmrg	  }
35748af84faSmrg	  /^X\(\/\/\)$/{
35848af84faSmrg	    s//\1/
35948af84faSmrg	    q
36048af84faSmrg	  }
36148af84faSmrg	  /^X\(\/\).*/{
36248af84faSmrg	    s//\1/
36348af84faSmrg	    q
36448af84faSmrg	  }
36548af84faSmrg	  s/.*/./; q'`
36648af84faSmrg      test -d "$as_dir" && break
36748af84faSmrg    done
36848af84faSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
36948af84faSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37048af84faSmrg
37148af84faSmrg
37248af84faSmrg} # as_fn_mkdir_p
373c6a6acfbSmrg
374c6a6acfbSmrg# as_fn_executable_p FILE
375c6a6acfbSmrg# -----------------------
376c6a6acfbSmrg# Test if FILE is an executable regular file.
377c6a6acfbSmrgas_fn_executable_p ()
378c6a6acfbSmrg{
379c6a6acfbSmrg  test -f "$1" && test -x "$1"
380c6a6acfbSmrg} # as_fn_executable_p
38148af84faSmrg# as_fn_append VAR VALUE
38248af84faSmrg# ----------------------
38348af84faSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
38448af84faSmrg# advantage of any shell optimizations that allow amortized linear growth over
38548af84faSmrg# repeated appends, instead of the typical quadratic growth present in naive
38648af84faSmrg# implementations.
387bc77032bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388bc77032bSmrgthen :
38948af84faSmrg  eval 'as_fn_append ()
39048af84faSmrg  {
39148af84faSmrg    eval $1+=\$2
39248af84faSmrg  }'
393bc77032bSmrgelse $as_nop
39448af84faSmrg  as_fn_append ()
39548af84faSmrg  {
39648af84faSmrg    eval $1=\$$1\$2
39748af84faSmrg  }
39848af84faSmrgfi # as_fn_append
39948af84faSmrg
40048af84faSmrg# as_fn_arith ARG...
40148af84faSmrg# ------------------
40248af84faSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
40348af84faSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
40448af84faSmrg# must be portable across $(()) and expr.
405bc77032bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406bc77032bSmrgthen :
40748af84faSmrg  eval 'as_fn_arith ()
40848af84faSmrg  {
40948af84faSmrg    as_val=$(( $* ))
41048af84faSmrg  }'
411bc77032bSmrgelse $as_nop
41248af84faSmrg  as_fn_arith ()
41348af84faSmrg  {
41448af84faSmrg    as_val=`expr "$@" || test $? -eq 1`
41548af84faSmrg  }
41648af84faSmrgfi # as_fn_arith
41748af84faSmrg
418bc77032bSmrg# as_fn_nop
419bc77032bSmrg# ---------
420bc77032bSmrg# Do nothing but, unlike ":", preserve the value of $?.
421bc77032bSmrgas_fn_nop ()
422bc77032bSmrg{
423bc77032bSmrg  return $?
424bc77032bSmrg}
425bc77032bSmrgas_nop=as_fn_nop
42648af84faSmrg
42748af84faSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
42848af84faSmrg# ----------------------------------------
42948af84faSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
43048af84faSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
43148af84faSmrg# script with STATUS, using 1 if that was 0.
43248af84faSmrgas_fn_error ()
43348af84faSmrg{
43448af84faSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
43548af84faSmrg  if test "$4"; then
43648af84faSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
43848af84faSmrg  fi
439bc77032bSmrg  printf "%s\n" "$as_me: error: $2" >&2
44048af84faSmrg  as_fn_exit $as_status
44148af84faSmrg} # as_fn_error
44248af84faSmrg
44389d09728Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
44489d09728Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
44566fe65f6Smrg  as_expr=expr
44666fe65f6Smrgelse
44766fe65f6Smrg  as_expr=false
44866fe65f6Smrgfi
44966fe65f6Smrg
45089d09728Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45166fe65f6Smrg  as_basename=basename
45266fe65f6Smrgelse
45366fe65f6Smrg  as_basename=false
45466fe65f6Smrgfi
45566fe65f6Smrg
45648af84faSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45748af84faSmrg  as_dirname=dirname
45848af84faSmrgelse
45948af84faSmrg  as_dirname=false
46048af84faSmrgfi
46166fe65f6Smrg
46289d09728Smrgas_me=`$as_basename -- "$0" ||
46366fe65f6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46466fe65f6Smrg	 X"$0" : 'X\(//\)$' \| \
46589d09728Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466bc77032bSmrgprintf "%s\n" X/"$0" |
46789d09728Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
46889d09728Smrg	    s//\1/
46989d09728Smrg	    q
47089d09728Smrg	  }
47189d09728Smrg	  /^X\/\(\/\/\)$/{
47289d09728Smrg	    s//\1/
47389d09728Smrg	    q
47489d09728Smrg	  }
47589d09728Smrg	  /^X\/\(\/\).*/{
47689d09728Smrg	    s//\1/
47789d09728Smrg	    q
47889d09728Smrg	  }
47989d09728Smrg	  s/.*/./; q'`
48066fe65f6Smrg
48148af84faSmrg# Avoid depending upon Character Ranges.
48248af84faSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
48348af84faSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48448af84faSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
48548af84faSmrgas_cr_digits='0123456789'
48648af84faSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
48766fe65f6Smrg
48866fe65f6Smrg
48948af84faSmrg  as_lineno_1=$LINENO as_lineno_1a=$LINENO
49048af84faSmrg  as_lineno_2=$LINENO as_lineno_2a=$LINENO
49148af84faSmrg  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
49248af84faSmrg  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
49348af84faSmrg  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
49448af84faSmrg  sed -n '
49548af84faSmrg    p
49648af84faSmrg    /[$]LINENO/=
49748af84faSmrg  ' <$as_myself |
49848af84faSmrg    sed '
49948af84faSmrg      s/[$]LINENO.*/&-/
50048af84faSmrg      t lineno
50148af84faSmrg      b
50248af84faSmrg      :lineno
50348af84faSmrg      N
50448af84faSmrg      :loop
50548af84faSmrg      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
50648af84faSmrg      t loop
50748af84faSmrg      s/-\n.*//
50848af84faSmrg    ' >$as_me.lineno &&
50948af84faSmrg  chmod +x "$as_me.lineno" ||
510bc77032bSmrg    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
51166fe65f6Smrg
512c6a6acfbSmrg  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513c6a6acfbSmrg  # already done that, so ensure we don't try to do so again and fall
514c6a6acfbSmrg  # in an infinite loop.  This has already happened in practice.
515c6a6acfbSmrg  _as_can_reexec=no; export _as_can_reexec
51648af84faSmrg  # Don't try to exec as it changes $[0], causing all sort of problems
51748af84faSmrg  # (the dirname of $[0] is not the place where we might find the
51848af84faSmrg  # original and so on.  Autoconf is especially sensitive to this).
51948af84faSmrg  . "./$as_me.lineno"
52048af84faSmrg  # Exit status is that of the last command.
52148af84faSmrg  exit
52266fe65f6Smrg}
52366fe65f6Smrg
524bc77032bSmrg
525bc77032bSmrg# Determine whether it's possible to make 'echo' print without a newline.
526bc77032bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527bc77032bSmrg# for compatibility with existing Makefiles.
52848af84faSmrgECHO_C= ECHO_N= ECHO_T=
52948af84faSmrgcase `echo -n x` in #(((((
53048af84faSmrg-n*)
53148af84faSmrg  case `echo 'xy\c'` in
53248af84faSmrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
53348af84faSmrg  xy)  ECHO_C='\c';;
53448af84faSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
53548af84faSmrg       ECHO_T='	';;
53648af84faSmrg  esac;;
53748af84faSmrg*)
53848af84faSmrg  ECHO_N='-n';;
53948af84faSmrgesac
540a9274bcdSmrg
541bc77032bSmrg# For backward compatibility with old third-party macros, we provide
542bc77032bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
543bc77032bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544bc77032bSmrgas_echo='printf %s\n'
545bc77032bSmrgas_echo_n='printf %s'
546bc77032bSmrg
547bc77032bSmrg
54848af84faSmrgrm -f conf$$ conf$$.exe conf$$.file
54948af84faSmrgif test -d conf$$.dir; then
55048af84faSmrg  rm -f conf$$.dir/conf$$.file
55148af84faSmrgelse
55248af84faSmrg  rm -f conf$$.dir
55348af84faSmrg  mkdir conf$$.dir 2>/dev/null
55466fe65f6Smrgfi
55548af84faSmrgif (echo >conf$$.file) 2>/dev/null; then
55648af84faSmrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
55748af84faSmrg    as_ln_s='ln -s'
55848af84faSmrg    # ... but there are two gotchas:
55948af84faSmrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56048af84faSmrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561c6a6acfbSmrg    # In both cases, we have to default to `cp -pR'.
56248af84faSmrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563c6a6acfbSmrg      as_ln_s='cp -pR'
56448af84faSmrg  elif ln conf$$.file conf$$ 2>/dev/null; then
56548af84faSmrg    as_ln_s=ln
56648af84faSmrg  else
567c6a6acfbSmrg    as_ln_s='cp -pR'
56848af84faSmrg  fi
56966fe65f6Smrgelse
570c6a6acfbSmrg  as_ln_s='cp -pR'
57166fe65f6Smrgfi
57248af84faSmrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57348af84faSmrgrmdir conf$$.dir 2>/dev/null
57466fe65f6Smrg
57548af84faSmrgif mkdir -p . 2>/dev/null; then
57648af84faSmrg  as_mkdir_p='mkdir -p "$as_dir"'
57748af84faSmrgelse
57848af84faSmrg  test -d ./-p && rmdir ./-p
57948af84faSmrg  as_mkdir_p=false
580a9274bcdSmrgfi
581a9274bcdSmrg
582c6a6acfbSmrgas_test_x='test -x'
583c6a6acfbSmrgas_executable_p=as_fn_executable_p
58466fe65f6Smrg
58548af84faSmrg# Sed expression to map a string onto a valid CPP name.
58648af84faSmrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
58766fe65f6Smrg
58848af84faSmrg# Sed expression to map a string onto a valid variable name.
58948af84faSmrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
59066fe65f6Smrg
59166fe65f6Smrg
59248af84faSmrgtest -n "$DJDIR" || exec 7<&0 </dev/null
59348af84faSmrgexec 6>&1
594a9274bcdSmrg
595a9274bcdSmrg# Name of the host.
59648af84faSmrg# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597a9274bcdSmrg# so uname gets run too.
59866fe65f6Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
59966fe65f6Smrg
60066fe65f6Smrg#
60166fe65f6Smrg# Initializations.
60266fe65f6Smrg#
60366fe65f6Smrgac_default_prefix=/usr/local
60489d09728Smrgac_clean_files=
60566fe65f6Smrgac_config_libobj_dir=.
60689d09728SmrgLIBOBJS=
60766fe65f6Smrgcross_compiling=no
60866fe65f6Smrgsubdirs=
60966fe65f6SmrgMFLAGS=
61066fe65f6SmrgMAKEFLAGS=
61166fe65f6Smrg
61266fe65f6Smrg# Identity of this package.
61366fe65f6SmrgPACKAGE_NAME='font-util'
61466fe65f6SmrgPACKAGE_TARNAME='font-util'
61522281038SmrgPACKAGE_VERSION='1.4.1'
61622281038SmrgPACKAGE_STRING='font-util 1.4.1'
617c12babebSmrgPACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/font/util/-/issues'
61848af84faSmrgPACKAGE_URL=''
61966fe65f6Smrg
620f931275dSmrgac_unique_file="Makefile.am"
62189d09728Smrg# Factoring default headers for most tests.
62289d09728Smrgac_includes_default="\
623bc77032bSmrg#include <stddef.h>
624bc77032bSmrg#ifdef HAVE_STDIO_H
625bc77032bSmrg# include <stdio.h>
62689d09728Smrg#endif
627bc77032bSmrg#ifdef HAVE_STDLIB_H
62889d09728Smrg# include <stdlib.h>
62989d09728Smrg#endif
63089d09728Smrg#ifdef HAVE_STRING_H
63189d09728Smrg# include <string.h>
63289d09728Smrg#endif
63389d09728Smrg#ifdef HAVE_INTTYPES_H
63489d09728Smrg# include <inttypes.h>
63589d09728Smrg#endif
63689d09728Smrg#ifdef HAVE_STDINT_H
63789d09728Smrg# include <stdint.h>
63889d09728Smrg#endif
639bc77032bSmrg#ifdef HAVE_STRINGS_H
640bc77032bSmrg# include <strings.h>
641bc77032bSmrg#endif
642bc77032bSmrg#ifdef HAVE_SYS_TYPES_H
643bc77032bSmrg# include <sys/types.h>
644bc77032bSmrg#endif
645bc77032bSmrg#ifdef HAVE_SYS_STAT_H
646bc77032bSmrg# include <sys/stat.h>
647bc77032bSmrg#endif
64889d09728Smrg#ifdef HAVE_UNISTD_H
64989d09728Smrg# include <unistd.h>
65089d09728Smrg#endif"
65189d09728Smrg
652bc77032bSmrgac_header_c_list=
653a9274bcdSmrgac_subst_vars='am__EXEEXT_FALSE
654a9274bcdSmrgam__EXEEXT_TRUE
655a9274bcdSmrgLTLIBOBJS
65689d09728SmrgLIBOBJS
657a9274bcdSmrgMAPDIR
658a9274bcdSmrgfontrootdir
65948af84faSmrgMAN_SUBSTS
66048af84faSmrgXORG_MAN_PAGE
66189d09728SmrgADMIN_MAN_DIR
66289d09728SmrgDRIVER_MAN_DIR
66389d09728SmrgMISC_MAN_DIR
66489d09728SmrgFILE_MAN_DIR
66589d09728SmrgLIB_MAN_DIR
66689d09728SmrgAPP_MAN_DIR
66789d09728SmrgADMIN_MAN_SUFFIX
66889d09728SmrgDRIVER_MAN_SUFFIX
66989d09728SmrgMISC_MAN_SUFFIX
67089d09728SmrgFILE_MAN_SUFFIX
67189d09728SmrgLIB_MAN_SUFFIX
67289d09728SmrgAPP_MAN_SUFFIX
67348af84faSmrgSED
67489d09728Smrghost_os
67589d09728Smrghost_vendor
67689d09728Smrghost_cpu
67789d09728Smrghost
67889d09728Smrgbuild_os
67989d09728Smrgbuild_vendor
68089d09728Smrgbuild_cpu
68189d09728Smrgbuild
68248af84faSmrgINSTALL_CMD
68338c51623SmrgPKG_CONFIG_LIBDIR
68438c51623SmrgPKG_CONFIG_PATH
68548af84faSmrgPKG_CONFIG
686a9274bcdSmrgCHANGELOG_CMD
687f931275dSmrgSTRICT_CFLAGS
68889d09728SmrgCWARNFLAGS
689f931275dSmrgBASE_CFLAGS
69089d09728Smrgam__fastdepCC_FALSE
69189d09728Smrgam__fastdepCC_TRUE
69289d09728SmrgCCDEPMODE
693c6a6acfbSmrgam__nodep
69489d09728SmrgAMDEPBACKSLASH
69589d09728SmrgAMDEP_FALSE
69689d09728SmrgAMDEP_TRUE
69789d09728Smrgam__include
69889d09728SmrgDEPDIR
69989d09728SmrgOBJEXT
70089d09728SmrgEXEEXT
70189d09728Smrgac_ct_CC
70289d09728SmrgCPPFLAGS
70389d09728SmrgLDFLAGS
70489d09728SmrgCFLAGS
70589d09728SmrgCC
706c6a6acfbSmrgAM_BACKSLASH
707c6a6acfbSmrgAM_DEFAULT_VERBOSITY
708c6a6acfbSmrgAM_DEFAULT_V
709c6a6acfbSmrgAM_V
710bc77032bSmrgCSCOPE
711bc77032bSmrgETAGS
712bc77032bSmrgCTAGS
71389d09728Smrgam__untar
71489d09728Smrgam__tar
71589d09728SmrgAMTAR
71689d09728Smrgam__leading_dot
71789d09728SmrgSET_MAKE
71889d09728SmrgAWK
71989d09728Smrgmkdir_p
72089d09728SmrgMKDIR_P
72189d09728SmrgINSTALL_STRIP_PROGRAM
72289d09728SmrgSTRIP
72389d09728Smrginstall_sh
72489d09728SmrgMAKEINFO
72589d09728SmrgAUTOHEADER
72689d09728SmrgAUTOMAKE
72789d09728SmrgAUTOCONF
72889d09728SmrgACLOCAL
72989d09728SmrgVERSION
73089d09728SmrgPACKAGE
73189d09728SmrgCYGPATH_W
73289d09728Smrgam__isrc
73389d09728SmrgINSTALL_DATA
73489d09728SmrgINSTALL_SCRIPT
73589d09728SmrgINSTALL_PROGRAM
73689d09728Smrgtarget_alias
73789d09728Smrghost_alias
73889d09728Smrgbuild_alias
73989d09728SmrgLIBS
74089d09728SmrgECHO_T
74189d09728SmrgECHO_N
74289d09728SmrgECHO_C
74389d09728SmrgDEFS
74489d09728Smrgmandir
74589d09728Smrglocaledir
74689d09728Smrglibdir
74789d09728Smrgpsdir
74889d09728Smrgpdfdir
74989d09728Smrgdvidir
75089d09728Smrghtmldir
75189d09728Smrginfodir
75289d09728Smrgdocdir
75389d09728Smrgoldincludedir
75489d09728Smrgincludedir
755bc77032bSmrgrunstatedir
75689d09728Smrglocalstatedir
75789d09728Smrgsharedstatedir
75889d09728Smrgsysconfdir
75989d09728Smrgdatadir
76089d09728Smrgdatarootdir
76189d09728Smrglibexecdir
76289d09728Smrgsbindir
76389d09728Smrgbindir
76489d09728Smrgprogram_transform_name
76589d09728Smrgprefix
76689d09728Smrgexec_prefix
76748af84faSmrgPACKAGE_URL
76889d09728SmrgPACKAGE_BUGREPORT
76989d09728SmrgPACKAGE_STRING
77089d09728SmrgPACKAGE_VERSION
77189d09728SmrgPACKAGE_TARNAME
77289d09728SmrgPACKAGE_NAME
77389d09728SmrgPATH_SEPARATOR
774bc77032bSmrgSHELL
775bc77032bSmrgam__quote'
77666fe65f6Smrgac_subst_files=''
77789d09728Smrgac_user_opts='
77889d09728Smrgenable_option_checking
779c6a6acfbSmrgenable_silent_rules
78089d09728Smrgenable_dependency_tracking
781f931275dSmrgenable_selective_werror
782a9274bcdSmrgenable_strict_compilation
783a9274bcdSmrgwith_fontrootdir
784a9274bcdSmrgwith_mapdir
78589d09728Smrg'
78689d09728Smrg      ac_precious_vars='build_alias
78789d09728Smrghost_alias
78889d09728Smrgtarget_alias
78989d09728SmrgCC
79089d09728SmrgCFLAGS
79189d09728SmrgLDFLAGS
79289d09728SmrgLIBS
79389d09728SmrgCPPFLAGS
79438c51623SmrgPKG_CONFIG
79538c51623SmrgPKG_CONFIG_PATH
79638c51623SmrgPKG_CONFIG_LIBDIR'
79789d09728Smrg
79866fe65f6Smrg
79966fe65f6Smrg# Initialize some variables set by options.
80066fe65f6Smrgac_init_help=
80166fe65f6Smrgac_init_version=false
80289d09728Smrgac_unrecognized_opts=
80389d09728Smrgac_unrecognized_sep=
80466fe65f6Smrg# The variables have the same names as the options, with
80566fe65f6Smrg# dashes changed to underlines.
80666fe65f6Smrgcache_file=/dev/null
80766fe65f6Smrgexec_prefix=NONE
80866fe65f6Smrgno_create=
80966fe65f6Smrgno_recursion=
81066fe65f6Smrgprefix=NONE
81166fe65f6Smrgprogram_prefix=NONE
81266fe65f6Smrgprogram_suffix=NONE
81366fe65f6Smrgprogram_transform_name=s,x,x,
81466fe65f6Smrgsilent=
81566fe65f6Smrgsite=
81666fe65f6Smrgsrcdir=
81766fe65f6Smrgverbose=
81866fe65f6Smrgx_includes=NONE
81966fe65f6Smrgx_libraries=NONE
82066fe65f6Smrg
82166fe65f6Smrg# Installation directory options.
82266fe65f6Smrg# These are left unexpanded so users can "make install exec_prefix=/foo"
82366fe65f6Smrg# and all the variables that are supposed to be based on exec_prefix
82466fe65f6Smrg# by default will actually change.
82566fe65f6Smrg# Use braces instead of parens because sh, perl, etc. also accept them.
82689d09728Smrg# (The list follows the same order as the GNU Coding Standards.)
82766fe65f6Smrgbindir='${exec_prefix}/bin'
82866fe65f6Smrgsbindir='${exec_prefix}/sbin'
82966fe65f6Smrglibexecdir='${exec_prefix}/libexec'
83089d09728Smrgdatarootdir='${prefix}/share'
83189d09728Smrgdatadir='${datarootdir}'
83266fe65f6Smrgsysconfdir='${prefix}/etc'
83366fe65f6Smrgsharedstatedir='${prefix}/com'
83466fe65f6Smrglocalstatedir='${prefix}/var'
835bc77032bSmrgrunstatedir='${localstatedir}/run'
83666fe65f6Smrgincludedir='${prefix}/include'
83766fe65f6Smrgoldincludedir='/usr/include'
83889d09728Smrgdocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
83989d09728Smrginfodir='${datarootdir}/info'
84089d09728Smrghtmldir='${docdir}'
84189d09728Smrgdvidir='${docdir}'
84289d09728Smrgpdfdir='${docdir}'
84389d09728Smrgpsdir='${docdir}'
84489d09728Smrglibdir='${exec_prefix}/lib'
84589d09728Smrglocaledir='${datarootdir}/locale'
84689d09728Smrgmandir='${datarootdir}/man'
84766fe65f6Smrg
84866fe65f6Smrgac_prev=
84989d09728Smrgac_dashdash=
85066fe65f6Smrgfor ac_option
85166fe65f6Smrgdo
85266fe65f6Smrg  # If the previous option needs an argument, assign it.
85366fe65f6Smrg  if test -n "$ac_prev"; then
85489d09728Smrg    eval $ac_prev=\$ac_option
85566fe65f6Smrg    ac_prev=
85666fe65f6Smrg    continue
85766fe65f6Smrg  fi
85866fe65f6Smrg
85989d09728Smrg  case $ac_option in
86048af84faSmrg  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
86148af84faSmrg  *=)   ac_optarg= ;;
86248af84faSmrg  *)    ac_optarg=yes ;;
86389d09728Smrg  esac
86466fe65f6Smrg
86589d09728Smrg  case $ac_dashdash$ac_option in
86689d09728Smrg  --)
86789d09728Smrg    ac_dashdash=yes ;;
86866fe65f6Smrg
86966fe65f6Smrg  -bindir | --bindir | --bindi | --bind | --bin | --bi)
87066fe65f6Smrg    ac_prev=bindir ;;
87166fe65f6Smrg  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87266fe65f6Smrg    bindir=$ac_optarg ;;
87366fe65f6Smrg
87466fe65f6Smrg  -build | --build | --buil | --bui | --bu)
87566fe65f6Smrg    ac_prev=build_alias ;;
87666fe65f6Smrg  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87766fe65f6Smrg    build_alias=$ac_optarg ;;
87866fe65f6Smrg
87966fe65f6Smrg  -cache-file | --cache-file | --cache-fil | --cache-fi \
88066fe65f6Smrg  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88166fe65f6Smrg    ac_prev=cache_file ;;
88266fe65f6Smrg  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
88366fe65f6Smrg  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
88466fe65f6Smrg    cache_file=$ac_optarg ;;
88566fe65f6Smrg
88666fe65f6Smrg  --config-cache | -C)
88766fe65f6Smrg    cache_file=config.cache ;;
88866fe65f6Smrg
88989d09728Smrg  -datadir | --datadir | --datadi | --datad)
89066fe65f6Smrg    ac_prev=datadir ;;
89189d09728Smrg  -datadir=* | --datadir=* | --datadi=* | --datad=*)
89266fe65f6Smrg    datadir=$ac_optarg ;;
89366fe65f6Smrg
89489d09728Smrg  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
89589d09728Smrg  | --dataroo | --dataro | --datar)
89689d09728Smrg    ac_prev=datarootdir ;;
89789d09728Smrg  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
89889d09728Smrg  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
89989d09728Smrg    datarootdir=$ac_optarg ;;
90089d09728Smrg
90166fe65f6Smrg  -disable-* | --disable-*)
90289d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
90366fe65f6Smrg    # Reject names that are not valid shell variable names.
90489d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905bc77032bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
90689d09728Smrg    ac_useropt_orig=$ac_useropt
907bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
90889d09728Smrg    case $ac_user_opts in
90989d09728Smrg      *"
91089d09728Smrg"enable_$ac_useropt"
91189d09728Smrg"*) ;;
91289d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
91389d09728Smrg	 ac_unrecognized_sep=', ';;
91489d09728Smrg    esac
91589d09728Smrg    eval enable_$ac_useropt=no ;;
91689d09728Smrg
91789d09728Smrg  -docdir | --docdir | --docdi | --doc | --do)
91889d09728Smrg    ac_prev=docdir ;;
91989d09728Smrg  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
92089d09728Smrg    docdir=$ac_optarg ;;
92189d09728Smrg
92289d09728Smrg  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
92389d09728Smrg    ac_prev=dvidir ;;
92489d09728Smrg  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
92589d09728Smrg    dvidir=$ac_optarg ;;
92666fe65f6Smrg
92766fe65f6Smrg  -enable-* | --enable-*)
92889d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
92966fe65f6Smrg    # Reject names that are not valid shell variable names.
93089d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931bc77032bSmrg      as_fn_error $? "invalid feature name: \`$ac_useropt'"
93289d09728Smrg    ac_useropt_orig=$ac_useropt
933bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
93489d09728Smrg    case $ac_user_opts in
93589d09728Smrg      *"
93689d09728Smrg"enable_$ac_useropt"
93789d09728Smrg"*) ;;
93889d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
93989d09728Smrg	 ac_unrecognized_sep=', ';;
94066fe65f6Smrg    esac
94189d09728Smrg    eval enable_$ac_useropt=\$ac_optarg ;;
94266fe65f6Smrg
94366fe65f6Smrg  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
94466fe65f6Smrg  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
94566fe65f6Smrg  | --exec | --exe | --ex)
94666fe65f6Smrg    ac_prev=exec_prefix ;;
94766fe65f6Smrg  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
94866fe65f6Smrg  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
94966fe65f6Smrg  | --exec=* | --exe=* | --ex=*)
95066fe65f6Smrg    exec_prefix=$ac_optarg ;;
95166fe65f6Smrg
95266fe65f6Smrg  -gas | --gas | --ga | --g)
95366fe65f6Smrg    # Obsolete; use --with-gas.
95466fe65f6Smrg    with_gas=yes ;;
95566fe65f6Smrg
95666fe65f6Smrg  -help | --help | --hel | --he | -h)
95766fe65f6Smrg    ac_init_help=long ;;
95866fe65f6Smrg  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
95966fe65f6Smrg    ac_init_help=recursive ;;
96066fe65f6Smrg  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
96166fe65f6Smrg    ac_init_help=short ;;
96266fe65f6Smrg
96366fe65f6Smrg  -host | --host | --hos | --ho)
96466fe65f6Smrg    ac_prev=host_alias ;;
96566fe65f6Smrg  -host=* | --host=* | --hos=* | --ho=*)
96666fe65f6Smrg    host_alias=$ac_optarg ;;
96766fe65f6Smrg
96889d09728Smrg  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
96989d09728Smrg    ac_prev=htmldir ;;
97089d09728Smrg  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
97189d09728Smrg  | --ht=*)
97289d09728Smrg    htmldir=$ac_optarg ;;
97389d09728Smrg
97466fe65f6Smrg  -includedir | --includedir | --includedi | --included | --include \
97566fe65f6Smrg  | --includ | --inclu | --incl | --inc)
97666fe65f6Smrg    ac_prev=includedir ;;
97766fe65f6Smrg  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
97866fe65f6Smrg  | --includ=* | --inclu=* | --incl=* | --inc=*)
97966fe65f6Smrg    includedir=$ac_optarg ;;
98066fe65f6Smrg
98166fe65f6Smrg  -infodir | --infodir | --infodi | --infod | --info | --inf)
98266fe65f6Smrg    ac_prev=infodir ;;
98366fe65f6Smrg  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
98466fe65f6Smrg    infodir=$ac_optarg ;;
98566fe65f6Smrg
98666fe65f6Smrg  -libdir | --libdir | --libdi | --libd)
98766fe65f6Smrg    ac_prev=libdir ;;
98866fe65f6Smrg  -libdir=* | --libdir=* | --libdi=* | --libd=*)
98966fe65f6Smrg    libdir=$ac_optarg ;;
99066fe65f6Smrg
99166fe65f6Smrg  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
99266fe65f6Smrg  | --libexe | --libex | --libe)
99366fe65f6Smrg    ac_prev=libexecdir ;;
99466fe65f6Smrg  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
99566fe65f6Smrg  | --libexe=* | --libex=* | --libe=*)
99666fe65f6Smrg    libexecdir=$ac_optarg ;;
99766fe65f6Smrg
99889d09728Smrg  -localedir | --localedir | --localedi | --localed | --locale)
99989d09728Smrg    ac_prev=localedir ;;
100089d09728Smrg  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
100189d09728Smrg    localedir=$ac_optarg ;;
100289d09728Smrg
100366fe65f6Smrg  -localstatedir | --localstatedir | --localstatedi | --localstated \
100489d09728Smrg  | --localstate | --localstat | --localsta | --localst | --locals)
100566fe65f6Smrg    ac_prev=localstatedir ;;
100666fe65f6Smrg  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
100789d09728Smrg  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
100866fe65f6Smrg    localstatedir=$ac_optarg ;;
100966fe65f6Smrg
101066fe65f6Smrg  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
101166fe65f6Smrg    ac_prev=mandir ;;
101266fe65f6Smrg  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
101366fe65f6Smrg    mandir=$ac_optarg ;;
101466fe65f6Smrg
101566fe65f6Smrg  -nfp | --nfp | --nf)
101666fe65f6Smrg    # Obsolete; use --without-fp.
101766fe65f6Smrg    with_fp=no ;;
101866fe65f6Smrg
101966fe65f6Smrg  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
102066fe65f6Smrg  | --no-cr | --no-c | -n)
102166fe65f6Smrg    no_create=yes ;;
102266fe65f6Smrg
102366fe65f6Smrg  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
102466fe65f6Smrg  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
102566fe65f6Smrg    no_recursion=yes ;;
102666fe65f6Smrg
102766fe65f6Smrg  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
102866fe65f6Smrg  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
102966fe65f6Smrg  | --oldin | --oldi | --old | --ol | --o)
103066fe65f6Smrg    ac_prev=oldincludedir ;;
103166fe65f6Smrg  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
103266fe65f6Smrg  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
103366fe65f6Smrg  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
103466fe65f6Smrg    oldincludedir=$ac_optarg ;;
103566fe65f6Smrg
103666fe65f6Smrg  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
103766fe65f6Smrg    ac_prev=prefix ;;
103866fe65f6Smrg  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
103966fe65f6Smrg    prefix=$ac_optarg ;;
104066fe65f6Smrg
104166fe65f6Smrg  -program-prefix | --program-prefix | --program-prefi | --program-pref \
104266fe65f6Smrg  | --program-pre | --program-pr | --program-p)
104366fe65f6Smrg    ac_prev=program_prefix ;;
104466fe65f6Smrg  -program-prefix=* | --program-prefix=* | --program-prefi=* \
104566fe65f6Smrg  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
104666fe65f6Smrg    program_prefix=$ac_optarg ;;
104766fe65f6Smrg
104866fe65f6Smrg  -program-suffix | --program-suffix | --program-suffi | --program-suff \
104966fe65f6Smrg  | --program-suf | --program-su | --program-s)
105066fe65f6Smrg    ac_prev=program_suffix ;;
105166fe65f6Smrg  -program-suffix=* | --program-suffix=* | --program-suffi=* \
105266fe65f6Smrg  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
105366fe65f6Smrg    program_suffix=$ac_optarg ;;
105466fe65f6Smrg
105566fe65f6Smrg  -program-transform-name | --program-transform-name \
105666fe65f6Smrg  | --program-transform-nam | --program-transform-na \
105766fe65f6Smrg  | --program-transform-n | --program-transform- \
105866fe65f6Smrg  | --program-transform | --program-transfor \
105966fe65f6Smrg  | --program-transfo | --program-transf \
106066fe65f6Smrg  | --program-trans | --program-tran \
106166fe65f6Smrg  | --progr-tra | --program-tr | --program-t)
106266fe65f6Smrg    ac_prev=program_transform_name ;;
106366fe65f6Smrg  -program-transform-name=* | --program-transform-name=* \
106466fe65f6Smrg  | --program-transform-nam=* | --program-transform-na=* \
106566fe65f6Smrg  | --program-transform-n=* | --program-transform-=* \
106666fe65f6Smrg  | --program-transform=* | --program-transfor=* \
106766fe65f6Smrg  | --program-transfo=* | --program-transf=* \
106866fe65f6Smrg  | --program-trans=* | --program-tran=* \
106966fe65f6Smrg  | --progr-tra=* | --program-tr=* | --program-t=*)
107066fe65f6Smrg    program_transform_name=$ac_optarg ;;
107166fe65f6Smrg
107289d09728Smrg  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
107389d09728Smrg    ac_prev=pdfdir ;;
107489d09728Smrg  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
107589d09728Smrg    pdfdir=$ac_optarg ;;
107689d09728Smrg
107789d09728Smrg  -psdir | --psdir | --psdi | --psd | --ps)
107889d09728Smrg    ac_prev=psdir ;;
107989d09728Smrg  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
108089d09728Smrg    psdir=$ac_optarg ;;
108189d09728Smrg
108266fe65f6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
108366fe65f6Smrg  | -silent | --silent | --silen | --sile | --sil)
108466fe65f6Smrg    silent=yes ;;
108566fe65f6Smrg
1086bc77032bSmrg  -runstatedir | --runstatedir | --runstatedi | --runstated \
1087bc77032bSmrg  | --runstate | --runstat | --runsta | --runst | --runs \
1088bc77032bSmrg  | --run | --ru | --r)
1089bc77032bSmrg    ac_prev=runstatedir ;;
1090bc77032bSmrg  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091bc77032bSmrg  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092bc77032bSmrg  | --run=* | --ru=* | --r=*)
1093bc77032bSmrg    runstatedir=$ac_optarg ;;
1094bc77032bSmrg
109566fe65f6Smrg  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
109666fe65f6Smrg    ac_prev=sbindir ;;
109766fe65f6Smrg  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
109866fe65f6Smrg  | --sbi=* | --sb=*)
109966fe65f6Smrg    sbindir=$ac_optarg ;;
110066fe65f6Smrg
110166fe65f6Smrg  -sharedstatedir | --sharedstatedir | --sharedstatedi \
110266fe65f6Smrg  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
110366fe65f6Smrg  | --sharedst | --shareds | --shared | --share | --shar \
110466fe65f6Smrg  | --sha | --sh)
110566fe65f6Smrg    ac_prev=sharedstatedir ;;
110666fe65f6Smrg  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
110766fe65f6Smrg  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
110866fe65f6Smrg  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
110966fe65f6Smrg  | --sha=* | --sh=*)
111066fe65f6Smrg    sharedstatedir=$ac_optarg ;;
111166fe65f6Smrg
111266fe65f6Smrg  -site | --site | --sit)
111366fe65f6Smrg    ac_prev=site ;;
111466fe65f6Smrg  -site=* | --site=* | --sit=*)
111566fe65f6Smrg    site=$ac_optarg ;;
111666fe65f6Smrg
111766fe65f6Smrg  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
111866fe65f6Smrg    ac_prev=srcdir ;;
111966fe65f6Smrg  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
112066fe65f6Smrg    srcdir=$ac_optarg ;;
112166fe65f6Smrg
112266fe65f6Smrg  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
112366fe65f6Smrg  | --syscon | --sysco | --sysc | --sys | --sy)
112466fe65f6Smrg    ac_prev=sysconfdir ;;
112566fe65f6Smrg  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
112666fe65f6Smrg  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
112766fe65f6Smrg    sysconfdir=$ac_optarg ;;
112866fe65f6Smrg
112966fe65f6Smrg  -target | --target | --targe | --targ | --tar | --ta | --t)
113066fe65f6Smrg    ac_prev=target_alias ;;
113166fe65f6Smrg  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
113266fe65f6Smrg    target_alias=$ac_optarg ;;
113366fe65f6Smrg
113466fe65f6Smrg  -v | -verbose | --verbose | --verbos | --verbo | --verb)
113566fe65f6Smrg    verbose=yes ;;
113666fe65f6Smrg
113766fe65f6Smrg  -version | --version | --versio | --versi | --vers | -V)
113866fe65f6Smrg    ac_init_version=: ;;
113966fe65f6Smrg
114066fe65f6Smrg  -with-* | --with-*)
114189d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
114266fe65f6Smrg    # Reject names that are not valid shell variable names.
114389d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144bc77032bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
114589d09728Smrg    ac_useropt_orig=$ac_useropt
1146bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
114789d09728Smrg    case $ac_user_opts in
114889d09728Smrg      *"
114989d09728Smrg"with_$ac_useropt"
115089d09728Smrg"*) ;;
115189d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
115289d09728Smrg	 ac_unrecognized_sep=', ';;
115366fe65f6Smrg    esac
115489d09728Smrg    eval with_$ac_useropt=\$ac_optarg ;;
115566fe65f6Smrg
115666fe65f6Smrg  -without-* | --without-*)
115789d09728Smrg    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
115866fe65f6Smrg    # Reject names that are not valid shell variable names.
115989d09728Smrg    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160bc77032bSmrg      as_fn_error $? "invalid package name: \`$ac_useropt'"
116189d09728Smrg    ac_useropt_orig=$ac_useropt
1162bc77032bSmrg    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
116389d09728Smrg    case $ac_user_opts in
116489d09728Smrg      *"
116589d09728Smrg"with_$ac_useropt"
116689d09728Smrg"*) ;;
116789d09728Smrg      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
116889d09728Smrg	 ac_unrecognized_sep=', ';;
116989d09728Smrg    esac
117089d09728Smrg    eval with_$ac_useropt=no ;;
117166fe65f6Smrg
117266fe65f6Smrg  --x)
117366fe65f6Smrg    # Obsolete; use --with-x.
117466fe65f6Smrg    with_x=yes ;;
117566fe65f6Smrg
117666fe65f6Smrg  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
117766fe65f6Smrg  | --x-incl | --x-inc | --x-in | --x-i)
117866fe65f6Smrg    ac_prev=x_includes ;;
117966fe65f6Smrg  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
118066fe65f6Smrg  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
118166fe65f6Smrg    x_includes=$ac_optarg ;;
118266fe65f6Smrg
118366fe65f6Smrg  -x-libraries | --x-libraries | --x-librarie | --x-librari \
118466fe65f6Smrg  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
118566fe65f6Smrg    ac_prev=x_libraries ;;
118666fe65f6Smrg  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
118766fe65f6Smrg  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
118866fe65f6Smrg    x_libraries=$ac_optarg ;;
118966fe65f6Smrg
119048af84faSmrg  -*) as_fn_error $? "unrecognized option: \`$ac_option'
119148af84faSmrgTry \`$0 --help' for more information"
119266fe65f6Smrg    ;;
119366fe65f6Smrg
119466fe65f6Smrg  *=*)
119566fe65f6Smrg    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
119666fe65f6Smrg    # Reject names that are not valid shell variable names.
119748af84faSmrg    case $ac_envvar in #(
119848af84faSmrg      '' | [0-9]* | *[!_$as_cr_alnum]* )
119948af84faSmrg      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
120048af84faSmrg    esac
120189d09728Smrg    eval $ac_envvar=\$ac_optarg
120266fe65f6Smrg    export $ac_envvar ;;
120366fe65f6Smrg
120466fe65f6Smrg  *)
120566fe65f6Smrg    # FIXME: should be removed in autoconf 3.0.
1206bc77032bSmrg    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
120766fe65f6Smrg    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208bc77032bSmrg      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
120948af84faSmrg    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
121066fe65f6Smrg    ;;
121166fe65f6Smrg
121266fe65f6Smrg  esac
121366fe65f6Smrgdone
121466fe65f6Smrg
121566fe65f6Smrgif test -n "$ac_prev"; then
121666fe65f6Smrg  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
121748af84faSmrg  as_fn_error $? "missing argument to $ac_option"
121866fe65f6Smrgfi
121966fe65f6Smrg
122089d09728Smrgif test -n "$ac_unrecognized_opts"; then
122189d09728Smrg  case $enable_option_checking in
122289d09728Smrg    no) ;;
122348af84faSmrg    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224bc77032bSmrg    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
122566fe65f6Smrg  esac
122689d09728Smrgfi
122766fe65f6Smrg
122889d09728Smrg# Check all directory arguments for consistency.
122989d09728Smrgfor ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
123089d09728Smrg		datadir sysconfdir sharedstatedir localstatedir includedir \
123189d09728Smrg		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232bc77032bSmrg		libdir localedir mandir runstatedir
123366fe65f6Smrgdo
123489d09728Smrg  eval ac_val=\$$ac_var
123589d09728Smrg  # Remove trailing slashes.
123666fe65f6Smrg  case $ac_val in
123789d09728Smrg    */ )
123889d09728Smrg      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
123989d09728Smrg      eval $ac_var=\$ac_val;;
124066fe65f6Smrg  esac
124189d09728Smrg  # Be sure to have absolute directory names.
124289d09728Smrg  case $ac_val in
124389d09728Smrg    [\\/$]* | ?:[\\/]* )  continue;;
124489d09728Smrg    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
124589d09728Smrg  esac
124648af84faSmrg  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
124766fe65f6Smrgdone
124866fe65f6Smrg
124966fe65f6Smrg# There might be people who depend on the old broken behavior: `$host'
125066fe65f6Smrg# used to hold the argument of --host etc.
125166fe65f6Smrg# FIXME: To remove some day.
125266fe65f6Smrgbuild=$build_alias
125366fe65f6Smrghost=$host_alias
125466fe65f6Smrgtarget=$target_alias
125566fe65f6Smrg
125666fe65f6Smrg# FIXME: To remove some day.
125766fe65f6Smrgif test "x$host_alias" != x; then
125866fe65f6Smrg  if test "x$build_alias" = x; then
125966fe65f6Smrg    cross_compiling=maybe
126066fe65f6Smrg  elif test "x$build_alias" != "x$host_alias"; then
126166fe65f6Smrg    cross_compiling=yes
126266fe65f6Smrg  fi
126366fe65f6Smrgfi
126466fe65f6Smrg
126566fe65f6Smrgac_tool_prefix=
126666fe65f6Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias-
126766fe65f6Smrg
126866fe65f6Smrgtest "$silent" = yes && exec 6>/dev/null
126966fe65f6Smrg
127066fe65f6Smrg
127189d09728Smrgac_pwd=`pwd` && test -n "$ac_pwd" &&
127289d09728Smrgac_ls_di=`ls -di .` &&
127389d09728Smrgac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
127448af84faSmrg  as_fn_error $? "working directory cannot be determined"
127589d09728Smrgtest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
127648af84faSmrg  as_fn_error $? "pwd does not report name of working directory"
127789d09728Smrg
127889d09728Smrg
127966fe65f6Smrg# Find the source files, if location was not specified.
128066fe65f6Smrgif test -z "$srcdir"; then
128166fe65f6Smrg  ac_srcdir_defaulted=yes
128289d09728Smrg  # Try the directory containing this script, then the parent directory.
128389d09728Smrg  ac_confdir=`$as_dirname -- "$as_myself" ||
128489d09728Smrg$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
128589d09728Smrg	 X"$as_myself" : 'X\(//\)[^/]' \| \
128689d09728Smrg	 X"$as_myself" : 'X\(//\)$' \| \
128789d09728Smrg	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288bc77032bSmrgprintf "%s\n" X"$as_myself" |
128989d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
129089d09728Smrg	    s//\1/
129189d09728Smrg	    q
129289d09728Smrg	  }
129389d09728Smrg	  /^X\(\/\/\)[^/].*/{
129489d09728Smrg	    s//\1/
129589d09728Smrg	    q
129689d09728Smrg	  }
129789d09728Smrg	  /^X\(\/\/\)$/{
129889d09728Smrg	    s//\1/
129989d09728Smrg	    q
130089d09728Smrg	  }
130189d09728Smrg	  /^X\(\/\).*/{
130289d09728Smrg	    s//\1/
130389d09728Smrg	    q
130489d09728Smrg	  }
130589d09728Smrg	  s/.*/./; q'`
130666fe65f6Smrg  srcdir=$ac_confdir
130789d09728Smrg  if test ! -r "$srcdir/$ac_unique_file"; then
130866fe65f6Smrg    srcdir=..
130966fe65f6Smrg  fi
131066fe65f6Smrgelse
131166fe65f6Smrg  ac_srcdir_defaulted=no
131266fe65f6Smrgfi
131389d09728Smrgif test ! -r "$srcdir/$ac_unique_file"; then
131489d09728Smrg  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
131548af84faSmrg  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
131689d09728Smrgfi
131789d09728Smrgac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
131889d09728Smrgac_abs_confdir=`(
131948af84faSmrg	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
132089d09728Smrg	pwd)`
132189d09728Smrg# When building in place, set srcdir=.
132289d09728Smrgif test "$ac_abs_confdir" = "$ac_pwd"; then
132389d09728Smrg  srcdir=.
132489d09728Smrgfi
132589d09728Smrg# Remove unnecessary trailing slashes from srcdir.
132689d09728Smrg# Double slashes in file names in object file debugging info
132789d09728Smrg# mess up M-x gdb in Emacs.
132889d09728Smrgcase $srcdir in
132989d09728Smrg*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
133089d09728Smrgesac
133189d09728Smrgfor ac_var in $ac_precious_vars; do
133289d09728Smrg  eval ac_env_${ac_var}_set=\${${ac_var}+set}
133389d09728Smrg  eval ac_env_${ac_var}_value=\$${ac_var}
133489d09728Smrg  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
133589d09728Smrg  eval ac_cv_env_${ac_var}_value=\$${ac_var}
133689d09728Smrgdone
133766fe65f6Smrg
133866fe65f6Smrg#
133966fe65f6Smrg# Report the --help message.
134066fe65f6Smrg#
134166fe65f6Smrgif test "$ac_init_help" = "long"; then
134266fe65f6Smrg  # Omit some internal or obsolete options to make the list less imposing.
134366fe65f6Smrg  # This message is too long to be a string in the A/UX 3.1 sh.
134466fe65f6Smrg  cat <<_ACEOF
134522281038Smrg\`configure' configures font-util 1.4.1 to adapt to many kinds of systems.
134666fe65f6Smrg
134766fe65f6SmrgUsage: $0 [OPTION]... [VAR=VALUE]...
134866fe65f6Smrg
134966fe65f6SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as
135066fe65f6SmrgVAR=VALUE.  See below for descriptions of some of the useful variables.
135166fe65f6Smrg
135266fe65f6SmrgDefaults for the options are specified in brackets.
135366fe65f6Smrg
135466fe65f6SmrgConfiguration:
135566fe65f6Smrg  -h, --help              display this help and exit
135666fe65f6Smrg      --help=short        display options specific to this package
135766fe65f6Smrg      --help=recursive    display the short help of all the included packages
135866fe65f6Smrg  -V, --version           display version information and exit
135948af84faSmrg  -q, --quiet, --silent   do not print \`checking ...' messages
136066fe65f6Smrg      --cache-file=FILE   cache test results in FILE [disabled]
136166fe65f6Smrg  -C, --config-cache      alias for \`--cache-file=config.cache'
136266fe65f6Smrg  -n, --no-create         do not create output files
136366fe65f6Smrg      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
136466fe65f6Smrg
136566fe65f6SmrgInstallation directories:
136666fe65f6Smrg  --prefix=PREFIX         install architecture-independent files in PREFIX
136789d09728Smrg                          [$ac_default_prefix]
136866fe65f6Smrg  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
136989d09728Smrg                          [PREFIX]
137066fe65f6Smrg
137166fe65f6SmrgBy default, \`make install' will install all the files in
137266fe65f6Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
137366fe65f6Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix',
137466fe65f6Smrgfor instance \`--prefix=\$HOME'.
137566fe65f6Smrg
137666fe65f6SmrgFor better control, use the options below.
137766fe65f6Smrg
137866fe65f6SmrgFine tuning of the installation directories:
137989d09728Smrg  --bindir=DIR            user executables [EPREFIX/bin]
138089d09728Smrg  --sbindir=DIR           system admin executables [EPREFIX/sbin]
138189d09728Smrg  --libexecdir=DIR        program executables [EPREFIX/libexec]
138289d09728Smrg  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
138389d09728Smrg  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
138489d09728Smrg  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1385bc77032bSmrg  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
138689d09728Smrg  --libdir=DIR            object code libraries [EPREFIX/lib]
138789d09728Smrg  --includedir=DIR        C header files [PREFIX/include]
138889d09728Smrg  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
138989d09728Smrg  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
139089d09728Smrg  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
139189d09728Smrg  --infodir=DIR           info documentation [DATAROOTDIR/info]
139289d09728Smrg  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
139389d09728Smrg  --mandir=DIR            man documentation [DATAROOTDIR/man]
139489d09728Smrg  --docdir=DIR            documentation root [DATAROOTDIR/doc/font-util]
139589d09728Smrg  --htmldir=DIR           html documentation [DOCDIR]
139689d09728Smrg  --dvidir=DIR            dvi documentation [DOCDIR]
139789d09728Smrg  --pdfdir=DIR            pdf documentation [DOCDIR]
139889d09728Smrg  --psdir=DIR             ps documentation [DOCDIR]
139966fe65f6Smrg_ACEOF
140066fe65f6Smrg
140166fe65f6Smrg  cat <<\_ACEOF
140266fe65f6Smrg
140366fe65f6SmrgProgram names:
140466fe65f6Smrg  --program-prefix=PREFIX            prepend PREFIX to installed program names
140566fe65f6Smrg  --program-suffix=SUFFIX            append SUFFIX to installed program names
140666fe65f6Smrg  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
140766fe65f6Smrg
140866fe65f6SmrgSystem types:
140966fe65f6Smrg  --build=BUILD     configure for building on BUILD [guessed]
141066fe65f6Smrg  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
141166fe65f6Smrg_ACEOF
141266fe65f6Smrgfi
141366fe65f6Smrg
141466fe65f6Smrgif test -n "$ac_init_help"; then
141566fe65f6Smrg  case $ac_init_help in
141622281038Smrg     short | recursive ) echo "Configuration of font-util 1.4.1:";;
141766fe65f6Smrg   esac
141866fe65f6Smrg  cat <<\_ACEOF
141966fe65f6Smrg
142066fe65f6SmrgOptional Features:
142189d09728Smrg  --disable-option-checking  ignore unrecognized --enable/--with options
142266fe65f6Smrg  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
142366fe65f6Smrg  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424c6a6acfbSmrg  --enable-silent-rules   less verbose build output (undo: "make V=1")
1425c6a6acfbSmrg  --disable-silent-rules  verbose build output (undo: "make V=0")
1426c6a6acfbSmrg  --enable-dependency-tracking
1427c6a6acfbSmrg                          do not reject slow dependency extractors
1428c6a6acfbSmrg  --disable-dependency-tracking
1429c6a6acfbSmrg                          speeds up one-time build
1430f931275dSmrg  --disable-selective-werror
1431f931275dSmrg                          Turn off selective compiler errors. (default:
1432f931275dSmrg                          enabled)
1433a9274bcdSmrg  --enable-strict-compilation
1434a9274bcdSmrg                          Enable all warnings from compiler and make them
1435a9274bcdSmrg                          errors (default: disabled)
143666fe65f6Smrg
143766fe65f6SmrgOptional Packages:
143866fe65f6Smrg  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
143966fe65f6Smrg  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1440a9274bcdSmrg  --with-fontrootdir=DIR  Path to parent of font subdirectories
1441a9274bcdSmrg                          [DATADIR/fonts/X11]
1442a9274bcdSmrg  --with-mapdir=DIR       Path to install font maps [FONTROOTDIR/util]
144366fe65f6Smrg
144466fe65f6SmrgSome influential environment variables:
144566fe65f6Smrg  CC          C compiler command
144666fe65f6Smrg  CFLAGS      C compiler flags
144766fe65f6Smrg  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
144866fe65f6Smrg              nonstandard directory <lib dir>
144989d09728Smrg  LIBS        libraries to pass to the linker, e.g. -l<library>
145048af84faSmrg  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
145189d09728Smrg              you have headers in a nonstandard directory <include dir>
145248af84faSmrg  PKG_CONFIG  path to pkg-config utility
145338c51623Smrg  PKG_CONFIG_PATH
145438c51623Smrg              directories to add to pkg-config's search path
145538c51623Smrg  PKG_CONFIG_LIBDIR
145638c51623Smrg              path overriding pkg-config's built-in search path
145766fe65f6Smrg
145866fe65f6SmrgUse these variables to override the choices made by `configure' or to help
145966fe65f6Smrgit to find libraries and programs with nonstandard names/locations.
146066fe65f6Smrg
1461c12babebSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>.
146266fe65f6Smrg_ACEOF
146389d09728Smrgac_status=$?
146466fe65f6Smrgfi
146566fe65f6Smrg
146666fe65f6Smrgif test "$ac_init_help" = "recursive"; then
146766fe65f6Smrg  # If there are subdirs, report their specific --help.
146866fe65f6Smrg  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
146989d09728Smrg    test -d "$ac_dir" ||
147089d09728Smrg      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
147189d09728Smrg      continue
147266fe65f6Smrg    ac_builddir=.
147366fe65f6Smrg
147489d09728Smrgcase "$ac_dir" in
147589d09728Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
147689d09728Smrg*)
1477bc77032bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
147889d09728Smrg  # A ".." for each directory in $ac_dir_suffix.
1479bc77032bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
148089d09728Smrg  case $ac_top_builddir_sub in
148189d09728Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
148289d09728Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
148389d09728Smrg  esac ;;
148489d09728Smrgesac
148589d09728Smrgac_abs_top_builddir=$ac_pwd
148689d09728Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
148789d09728Smrg# for backward compatibility:
148889d09728Smrgac_top_builddir=$ac_top_build_prefix
148966fe65f6Smrg
149066fe65f6Smrgcase $srcdir in
149189d09728Smrg  .)  # We are building in place.
149266fe65f6Smrg    ac_srcdir=.
149389d09728Smrg    ac_top_srcdir=$ac_top_builddir_sub
149489d09728Smrg    ac_abs_top_srcdir=$ac_pwd ;;
149589d09728Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
149666fe65f6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
149789d09728Smrg    ac_top_srcdir=$srcdir
149889d09728Smrg    ac_abs_top_srcdir=$srcdir ;;
149989d09728Smrg  *) # Relative name.
150089d09728Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
150189d09728Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
150289d09728Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
150366fe65f6Smrgesac
150489d09728Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
150589d09728Smrg
150689d09728Smrg    cd "$ac_dir" || { ac_status=$?; continue; }
1507bc77032bSmrg    # Check for configure.gnu first; this name is used for a wrapper for
1508bc77032bSmrg    # Metaconfig's "Configure" on case-insensitive file systems.
150989d09728Smrg    if test -f "$ac_srcdir/configure.gnu"; then
151089d09728Smrg      echo &&
151189d09728Smrg      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
151289d09728Smrg    elif test -f "$ac_srcdir/configure"; then
151389d09728Smrg      echo &&
151489d09728Smrg      $SHELL "$ac_srcdir/configure" --help=recursive
151566fe65f6Smrg    else
1516bc77032bSmrg      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
151789d09728Smrg    fi || ac_status=$?
151889d09728Smrg    cd "$ac_pwd" || { ac_status=$?; break; }
151966fe65f6Smrg  done
152066fe65f6Smrgfi
152166fe65f6Smrg
152289d09728Smrgtest -n "$ac_init_help" && exit $ac_status
152366fe65f6Smrgif $ac_init_version; then
152466fe65f6Smrg  cat <<\_ACEOF
152522281038Smrgfont-util configure 1.4.1
1526bc77032bSmrggenerated by GNU Autoconf 2.71
152766fe65f6Smrg
1528bc77032bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
152966fe65f6SmrgThis configure script is free software; the Free Software Foundation
153066fe65f6Smrggives unlimited permission to copy, distribute and modify it.
153166fe65f6Smrg_ACEOF
153289d09728Smrg  exit
153366fe65f6Smrgfi
153466fe65f6Smrg
153548af84faSmrg## ------------------------ ##
153648af84faSmrg## Autoconf initialization. ##
153748af84faSmrg## ------------------------ ##
153866fe65f6Smrg
153948af84faSmrg# ac_fn_c_try_compile LINENO
154048af84faSmrg# --------------------------
154148af84faSmrg# Try to compile conftest.$ac_ext, and return whether this succeeded.
154248af84faSmrgac_fn_c_try_compile ()
1543a9274bcdSmrg{
154448af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545bc77032bSmrg  rm -f conftest.$ac_objext conftest.beam
154648af84faSmrg  if { { ac_try="$ac_compile"
154748af84faSmrgcase "(($ac_try" in
154848af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
154948af84faSmrg  *) ac_try_echo=$ac_try;;
155048af84faSmrgesac
155148af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
155348af84faSmrg  (eval "$ac_compile") 2>conftest.err
155448af84faSmrg  ac_status=$?
155548af84faSmrg  if test -s conftest.err; then
155648af84faSmrg    grep -v '^ *+' conftest.err >conftest.er1
155748af84faSmrg    cat conftest.er1 >&5
155848af84faSmrg    mv -f conftest.er1 conftest.err
155948af84faSmrg  fi
1560bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
156148af84faSmrg  test $ac_status = 0; } && {
156248af84faSmrg	 test -z "$ac_c_werror_flag" ||
156348af84faSmrg	 test ! -s conftest.err
1564bc77032bSmrg       } && test -s conftest.$ac_objext
1565bc77032bSmrgthen :
156648af84faSmrg  ac_retval=0
1567bc77032bSmrgelse $as_nop
1568bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
156948af84faSmrgsed 's/^/| /' conftest.$ac_ext >&5
157089d09728Smrg
157148af84faSmrg	ac_retval=1
157248af84faSmrgfi
157348af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
157448af84faSmrg  as_fn_set_status $ac_retval
157589d09728Smrg
157648af84faSmrg} # ac_fn_c_try_compile
157789d09728Smrg
1578bc77032bSmrg# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1579bc77032bSmrg# ------------------------------------------------------------------
158048af84faSmrg# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1581bc77032bSmrg# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1582bc77032bSmrgac_fn_check_decl ()
158348af84faSmrg{
158448af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
158548af84faSmrg  as_decl_name=`echo $2|sed 's/ *(.*//'`
1586bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1587bc77032bSmrgprintf %s "checking whether $as_decl_name is declared... " >&6; }
1588bc77032bSmrgif eval test \${$3+y}
1589bc77032bSmrgthen :
1590bc77032bSmrg  printf %s "(cached) " >&6
1591bc77032bSmrgelse $as_nop
159248af84faSmrg  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1593bc77032bSmrg  eval ac_save_FLAGS=\$$6
1594bc77032bSmrg  as_fn_append $6 " $5"
159548af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
159648af84faSmrg/* end confdefs.h.  */
159748af84faSmrg$4
159848af84faSmrgint
1599bc77032bSmrgmain (void)
160048af84faSmrg{
160148af84faSmrg#ifndef $as_decl_name
160248af84faSmrg#ifdef __cplusplus
160348af84faSmrg  (void) $as_decl_use;
160448af84faSmrg#else
160548af84faSmrg  (void) $as_decl_name;
160648af84faSmrg#endif
160748af84faSmrg#endif
160848af84faSmrg
160948af84faSmrg  ;
161048af84faSmrg  return 0;
161148af84faSmrg}
161248af84faSmrg_ACEOF
1613bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
1614bc77032bSmrgthen :
161548af84faSmrg  eval "$3=yes"
1616bc77032bSmrgelse $as_nop
161748af84faSmrg  eval "$3=no"
161848af84faSmrgfi
1619bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1620bc77032bSmrg  eval $6=\$ac_save_FLAGS
162148af84faSmrg
162248af84faSmrgfi
1623bc77032bSmrgeval ac_res=\$$3
1624bc77032bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625bc77032bSmrgprintf "%s\n" "$ac_res" >&6; }
162648af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
162748af84faSmrg
1628bc77032bSmrg} # ac_fn_check_decl
162948af84faSmrg
163048af84faSmrg# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
163148af84faSmrg# -------------------------------------------------------
163248af84faSmrg# Tests whether HEADER exists and can be compiled using the include files in
163348af84faSmrg# INCLUDES, setting the cache variable VAR accordingly.
163448af84faSmrgac_fn_c_check_header_compile ()
163548af84faSmrg{
163648af84faSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638bc77032bSmrgprintf %s "checking for $2... " >&6; }
1639bc77032bSmrgif eval test \${$3+y}
1640bc77032bSmrgthen :
1641bc77032bSmrg  printf %s "(cached) " >&6
1642bc77032bSmrgelse $as_nop
164348af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
164448af84faSmrg/* end confdefs.h.  */
164548af84faSmrg$4
164648af84faSmrg#include <$2>
164748af84faSmrg_ACEOF
1648bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
1649bc77032bSmrgthen :
165048af84faSmrg  eval "$3=yes"
1651bc77032bSmrgelse $as_nop
165248af84faSmrg  eval "$3=no"
165348af84faSmrgfi
1654bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
165548af84faSmrgfi
165648af84faSmrgeval ac_res=\$$3
1657bc77032bSmrg	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658bc77032bSmrgprintf "%s\n" "$ac_res" >&6; }
165948af84faSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
166048af84faSmrg
166148af84faSmrg} # ac_fn_c_check_header_compile
1662f931275dSmrg
1663f931275dSmrg# ac_fn_c_try_link LINENO
1664f931275dSmrg# -----------------------
1665f931275dSmrg# Try to link conftest.$ac_ext, and return whether this succeeded.
1666f931275dSmrgac_fn_c_try_link ()
1667f931275dSmrg{
1668f931275dSmrg  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669bc77032bSmrg  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1670f931275dSmrg  if { { ac_try="$ac_link"
1671f931275dSmrgcase "(($ac_try" in
1672f931275dSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673f931275dSmrg  *) ac_try_echo=$ac_try;;
1674f931275dSmrgesac
1675f931275dSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
1677f931275dSmrg  (eval "$ac_link") 2>conftest.err
1678f931275dSmrg  ac_status=$?
1679f931275dSmrg  if test -s conftest.err; then
1680f931275dSmrg    grep -v '^ *+' conftest.err >conftest.er1
1681f931275dSmrg    cat conftest.er1 >&5
1682f931275dSmrg    mv -f conftest.er1 conftest.err
1683f931275dSmrg  fi
1684bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685f931275dSmrg  test $ac_status = 0; } && {
1686f931275dSmrg	 test -z "$ac_c_werror_flag" ||
1687f931275dSmrg	 test ! -s conftest.err
1688f931275dSmrg       } && test -s conftest$ac_exeext && {
1689f931275dSmrg	 test "$cross_compiling" = yes ||
1690c6a6acfbSmrg	 test -x conftest$ac_exeext
1691bc77032bSmrg       }
1692bc77032bSmrgthen :
1693f931275dSmrg  ac_retval=0
1694bc77032bSmrgelse $as_nop
1695bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
1696f931275dSmrgsed 's/^/| /' conftest.$ac_ext >&5
1697f931275dSmrg
1698f931275dSmrg	ac_retval=1
1699f931275dSmrgfi
1700f931275dSmrg  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701f931275dSmrg  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702f931275dSmrg  # interfere with the next link command; also delete a directory that is
1703f931275dSmrg  # left behind by Apple's compiler.  We do this before executing the actions.
1704f931275dSmrg  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705f931275dSmrg  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706f931275dSmrg  as_fn_set_status $ac_retval
1707f931275dSmrg
1708f931275dSmrg} # ac_fn_c_try_link
1709bc77032bSmrgac_configure_args_raw=
1710bc77032bSmrgfor ac_arg
1711bc77032bSmrgdo
1712bc77032bSmrg  case $ac_arg in
1713bc77032bSmrg  *\'*)
1714bc77032bSmrg    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715bc77032bSmrg  esac
1716bc77032bSmrg  as_fn_append ac_configure_args_raw " '$ac_arg'"
1717bc77032bSmrgdone
1718bc77032bSmrg
1719bc77032bSmrgcase $ac_configure_args_raw in
1720bc77032bSmrg  *$as_nl*)
1721bc77032bSmrg    ac_safe_unquote= ;;
1722bc77032bSmrg  *)
1723bc77032bSmrg    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1724bc77032bSmrg    ac_unsafe_a="$ac_unsafe_z#~"
1725bc77032bSmrg    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1726bc77032bSmrg    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1727bc77032bSmrgesac
1728bc77032bSmrg
172948af84faSmrgcat >config.log <<_ACEOF
173048af84faSmrgThis file contains any messages produced by compilers while
173148af84faSmrgrunning configure, to aid debugging if configure makes a mistake.
173248af84faSmrg
173322281038SmrgIt was created by font-util $as_me 1.4.1, which was
1734bc77032bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
173548af84faSmrg
1736bc77032bSmrg  $ $0$ac_configure_args_raw
173748af84faSmrg
173848af84faSmrg_ACEOF
173948af84faSmrgexec 5>>config.log
174048af84faSmrg{
174148af84faSmrgcat <<_ASUNAME
174248af84faSmrg## --------- ##
174348af84faSmrg## Platform. ##
174448af84faSmrg## --------- ##
174548af84faSmrg
174648af84faSmrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
174748af84faSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
174848af84faSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
174948af84faSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
175048af84faSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
175148af84faSmrg
175248af84faSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
175348af84faSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
175448af84faSmrg
175548af84faSmrg/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
175648af84faSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
175748af84faSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
175848af84faSmrg/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
175948af84faSmrg/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
176048af84faSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
176148af84faSmrg/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
176248af84faSmrg
176348af84faSmrg_ASUNAME
176448af84faSmrg
176548af84faSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
176648af84faSmrgfor as_dir in $PATH
176748af84faSmrgdo
176889d09728Smrg  IFS=$as_save_IFS
1769bc77032bSmrg  case $as_dir in #(((
1770bc77032bSmrg    '') as_dir=./ ;;
1771bc77032bSmrg    */) ;;
1772bc77032bSmrg    *) as_dir=$as_dir/ ;;
1773bc77032bSmrg  esac
1774bc77032bSmrg    printf "%s\n" "PATH: $as_dir"
177548af84faSmrg  done
177689d09728SmrgIFS=$as_save_IFS
177789d09728Smrg
177889d09728Smrg} >&5
177989d09728Smrg
178089d09728Smrgcat >&5 <<_ACEOF
178166fe65f6Smrg
178266fe65f6Smrg
178366fe65f6Smrg## ----------- ##
178466fe65f6Smrg## Core tests. ##
178566fe65f6Smrg## ----------- ##
178666fe65f6Smrg
178766fe65f6Smrg_ACEOF
178866fe65f6Smrg
178966fe65f6Smrg
179066fe65f6Smrg# Keep a trace of the command line.
179166fe65f6Smrg# Strip out --no-create and --no-recursion so they do not pile up.
179266fe65f6Smrg# Strip out --silent because we don't want to record it for future runs.
179366fe65f6Smrg# Also quote any args containing shell meta-characters.
179466fe65f6Smrg# Make two passes to allow for proper duplicate-argument suppression.
179566fe65f6Smrgac_configure_args=
179666fe65f6Smrgac_configure_args0=
179766fe65f6Smrgac_configure_args1=
179866fe65f6Smrgac_must_keep_next=false
179966fe65f6Smrgfor ac_pass in 1 2
180066fe65f6Smrgdo
180166fe65f6Smrg  for ac_arg
180266fe65f6Smrg  do
180366fe65f6Smrg    case $ac_arg in
180466fe65f6Smrg    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
180566fe65f6Smrg    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
180666fe65f6Smrg    | -silent | --silent | --silen | --sile | --sil)
180766fe65f6Smrg      continue ;;
180889d09728Smrg    *\'*)
1809bc77032bSmrg      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
181066fe65f6Smrg    esac
181166fe65f6Smrg    case $ac_pass in
181248af84faSmrg    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
181366fe65f6Smrg    2)
181448af84faSmrg      as_fn_append ac_configure_args1 " '$ac_arg'"
181566fe65f6Smrg      if test $ac_must_keep_next = true; then
181666fe65f6Smrg	ac_must_keep_next=false # Got value, back to normal.
181766fe65f6Smrg      else
181866fe65f6Smrg	case $ac_arg in
181966fe65f6Smrg	  *=* | --config-cache | -C | -disable-* | --disable-* \
182066fe65f6Smrg	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
182166fe65f6Smrg	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
182266fe65f6Smrg	  | -with-* | --with-* | -without-* | --without-* | --x)
182366fe65f6Smrg	    case "$ac_configure_args0 " in
182466fe65f6Smrg	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
182566fe65f6Smrg	    esac
182666fe65f6Smrg	    ;;
182766fe65f6Smrg	  -* ) ac_must_keep_next=true ;;
182866fe65f6Smrg	esac
182966fe65f6Smrg      fi
183048af84faSmrg      as_fn_append ac_configure_args " '$ac_arg'"
183166fe65f6Smrg      ;;
183266fe65f6Smrg    esac
183366fe65f6Smrg  done
183466fe65f6Smrgdone
183548af84faSmrg{ ac_configure_args0=; unset ac_configure_args0;}
183648af84faSmrg{ ac_configure_args1=; unset ac_configure_args1;}
183766fe65f6Smrg
183866fe65f6Smrg# When interrupted or exit'd, cleanup temporary files, and complete
183966fe65f6Smrg# config.log.  We remove comments because anyway the quotes in there
184066fe65f6Smrg# would cause problems or look ugly.
184189d09728Smrg# WARNING: Use '\'' to represent an apostrophe within the trap.
184289d09728Smrg# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
184366fe65f6Smrgtrap 'exit_status=$?
1844bc77032bSmrg  # Sanitize IFS.
1845bc77032bSmrg  IFS=" ""	$as_nl"
184666fe65f6Smrg  # Save into config.log some information that might help in debugging.
184766fe65f6Smrg  {
184866fe65f6Smrg    echo
184966fe65f6Smrg
1850bc77032bSmrg    printf "%s\n" "## ---------------- ##
185166fe65f6Smrg## Cache variables. ##
185248af84faSmrg## ---------------- ##"
185366fe65f6Smrg    echo
185466fe65f6Smrg    # The following way of writing the cache mishandles newlines in values,
185589d09728Smrg(
185689d09728Smrg  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
185789d09728Smrg    eval ac_val=\$$ac_var
185889d09728Smrg    case $ac_val in #(
185989d09728Smrg    *${as_nl}*)
186089d09728Smrg      case $ac_var in #(
1861bc77032bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1862bc77032bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
186389d09728Smrg      esac
186489d09728Smrg      case $ac_var in #(
186589d09728Smrg      _ | IFS | as_nl) ;; #(
186689d09728Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
186748af84faSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
186889d09728Smrg      esac ;;
186989d09728Smrg    esac
187089d09728Smrg  done
187166fe65f6Smrg  (set) 2>&1 |
187289d09728Smrg    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
187389d09728Smrg    *${as_nl}ac_space=\ *)
187466fe65f6Smrg      sed -n \
187589d09728Smrg	"s/'\''/'\''\\\\'\'''\''/g;
187689d09728Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
187789d09728Smrg      ;; #(
187866fe65f6Smrg    *)
187989d09728Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
188066fe65f6Smrg      ;;
188189d09728Smrg    esac |
188289d09728Smrg    sort
188389d09728Smrg)
188466fe65f6Smrg    echo
188566fe65f6Smrg
1886bc77032bSmrg    printf "%s\n" "## ----------------- ##
188766fe65f6Smrg## Output variables. ##
188848af84faSmrg## ----------------- ##"
188966fe65f6Smrg    echo
189066fe65f6Smrg    for ac_var in $ac_subst_vars
189166fe65f6Smrg    do
189289d09728Smrg      eval ac_val=\$$ac_var
189389d09728Smrg      case $ac_val in
1894bc77032bSmrg      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
189589d09728Smrg      esac
1896bc77032bSmrg      printf "%s\n" "$ac_var='\''$ac_val'\''"
189766fe65f6Smrg    done | sort
189866fe65f6Smrg    echo
189966fe65f6Smrg
190066fe65f6Smrg    if test -n "$ac_subst_files"; then
1901bc77032bSmrg      printf "%s\n" "## ------------------- ##
190289d09728Smrg## File substitutions. ##
190348af84faSmrg## ------------------- ##"
190466fe65f6Smrg      echo
190566fe65f6Smrg      for ac_var in $ac_subst_files
190666fe65f6Smrg      do
190789d09728Smrg	eval ac_val=\$$ac_var
190889d09728Smrg	case $ac_val in
1909bc77032bSmrg	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
191089d09728Smrg	esac
1911bc77032bSmrg	printf "%s\n" "$ac_var='\''$ac_val'\''"
191266fe65f6Smrg      done | sort
191366fe65f6Smrg      echo
191466fe65f6Smrg    fi
191566fe65f6Smrg
191666fe65f6Smrg    if test -s confdefs.h; then
1917bc77032bSmrg      printf "%s\n" "## ----------- ##
191866fe65f6Smrg## confdefs.h. ##
191948af84faSmrg## ----------- ##"
192066fe65f6Smrg      echo
192189d09728Smrg      cat confdefs.h
192266fe65f6Smrg      echo
192366fe65f6Smrg    fi
192466fe65f6Smrg    test "$ac_signal" != 0 &&
1925bc77032bSmrg      printf "%s\n" "$as_me: caught signal $ac_signal"
1926bc77032bSmrg    printf "%s\n" "$as_me: exit $exit_status"
192766fe65f6Smrg  } >&5
192889d09728Smrg  rm -f core *.core core.conftest.* &&
192989d09728Smrg    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
193066fe65f6Smrg    exit $exit_status
193189d09728Smrg' 0
193266fe65f6Smrgfor ac_signal in 1 2 13 15; do
193348af84faSmrg  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
193466fe65f6Smrgdone
193566fe65f6Smrgac_signal=0
193666fe65f6Smrg
193766fe65f6Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed.
193889d09728Smrgrm -f -r conftest* confdefs.h
193989d09728Smrg
1940bc77032bSmrgprintf "%s\n" "/* confdefs.h */" > confdefs.h
194148af84faSmrg
194266fe65f6Smrg# Predefined preprocessor variables.
194366fe65f6Smrg
1944bc77032bSmrgprintf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
194566fe65f6Smrg
1946bc77032bSmrgprintf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
194766fe65f6Smrg
1948bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
194966fe65f6Smrg
1950bc77032bSmrgprintf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
195166fe65f6Smrg
1952bc77032bSmrgprintf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
195389d09728Smrg
1954bc77032bSmrgprintf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
195548af84faSmrg
195666fe65f6Smrg
195766fe65f6Smrg# Let the site file select an alternate cache file if it wants to.
195889d09728Smrg# Prefer an explicitly selected file to automatically selected ones.
195989d09728Smrgif test -n "$CONFIG_SITE"; then
1960bc77032bSmrg  ac_site_files="$CONFIG_SITE"
196189d09728Smrgelif test "x$prefix" != xNONE; then
1962bc77032bSmrg  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
196389d09728Smrgelse
1964bc77032bSmrg  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
196566fe65f6Smrgfi
1966bc77032bSmrg
1967bc77032bSmrgfor ac_site_file in $ac_site_files
196889d09728Smrgdo
1969bc77032bSmrg  case $ac_site_file in #(
1970bc77032bSmrg  */*) :
1971bc77032bSmrg     ;; #(
1972bc77032bSmrg  *) :
1973bc77032bSmrg    ac_site_file=./$ac_site_file ;;
1974bc77032bSmrgesac
1975bc77032bSmrg  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1976bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977bc77032bSmrgprintf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
197866fe65f6Smrg    sed 's/^/| /' "$ac_site_file" >&5
197948af84faSmrg    . "$ac_site_file" \
1980bc77032bSmrg      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
198248af84faSmrgas_fn_error $? "failed to load site script $ac_site_file
198348af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
198466fe65f6Smrg  fi
198566fe65f6Smrgdone
198666fe65f6Smrg
198766fe65f6Smrgif test -r "$cache_file"; then
198848af84faSmrg  # Some versions of bash will fail to source /dev/null (special files
198948af84faSmrg  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
199048af84faSmrg  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992bc77032bSmrgprintf "%s\n" "$as_me: loading cache $cache_file" >&6;}
199366fe65f6Smrg    case $cache_file in
199489d09728Smrg      [\\/]* | ?:[\\/]* ) . "$cache_file";;
199589d09728Smrg      *)                      . "./$cache_file";;
199666fe65f6Smrg    esac
199766fe65f6Smrg  fi
199866fe65f6Smrgelse
1999bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000bc77032bSmrgprintf "%s\n" "$as_me: creating cache $cache_file" >&6;}
200166fe65f6Smrg  >$cache_file
200266fe65f6Smrgfi
200366fe65f6Smrg
2004bc77032bSmrg# Test code for whether the C compiler supports C89 (global declarations)
2005bc77032bSmrgac_c_conftest_c89_globals='
2006bc77032bSmrg/* Does the compiler advertise C89 conformance?
2007bc77032bSmrg   Do not test the value of __STDC__, because some compilers set it to 0
2008bc77032bSmrg   while being otherwise adequately conformant. */
2009bc77032bSmrg#if !defined __STDC__
2010bc77032bSmrg# error "Compiler does not advertise C89 conformance"
2011bc77032bSmrg#endif
201266fe65f6Smrg
2013bc77032bSmrg#include <stddef.h>
2014bc77032bSmrg#include <stdarg.h>
2015bc77032bSmrgstruct stat;
2016bc77032bSmrg/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2017bc77032bSmrgstruct buf { int x; };
2018bc77032bSmrgstruct buf * (*rcsopen) (struct buf *, struct stat *, int);
2019bc77032bSmrgstatic char *e (p, i)
2020bc77032bSmrg     char **p;
2021bc77032bSmrg     int i;
2022bc77032bSmrg{
2023bc77032bSmrg  return p[i];
2024bc77032bSmrg}
2025bc77032bSmrgstatic char *f (char * (*g) (char **, int), char **p, ...)
2026bc77032bSmrg{
2027bc77032bSmrg  char *s;
2028bc77032bSmrg  va_list v;
2029bc77032bSmrg  va_start (v,p);
2030bc77032bSmrg  s = g (p, va_arg (v,int));
2031bc77032bSmrg  va_end (v);
2032bc77032bSmrg  return s;
2033bc77032bSmrg}
2034f931275dSmrg
2035bc77032bSmrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2036bc77032bSmrg   function prototypes and stuff, but not \xHH hex character constants.
2037bc77032bSmrg   These do not provoke an error unfortunately, instead are silently treated
2038bc77032bSmrg   as an "x".  The following induces an error, until -std is added to get
2039bc77032bSmrg   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2040bc77032bSmrg   array size at least.  It is necessary to write \x00 == 0 to get something
2041bc77032bSmrg   that is true only with -std.  */
2042bc77032bSmrgint osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2043f931275dSmrg
2044bc77032bSmrg/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2045bc77032bSmrg   inside strings and character constants.  */
2046bc77032bSmrg#define FOO(x) '\''x'\''
2047bc77032bSmrgint xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2048f931275dSmrg
2049bc77032bSmrgint test (int i, double x);
2050bc77032bSmrgstruct s1 {int (*f) (int a);};
2051bc77032bSmrgstruct s2 {int (*f) (double a);};
2052bc77032bSmrgint pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2053bc77032bSmrg               int, int);'
205466fe65f6Smrg
2055bc77032bSmrg# Test code for whether the C compiler supports C89 (body of main).
2056bc77032bSmrgac_c_conftest_c89_main='
2057bc77032bSmrgok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2058bc77032bSmrg'
205989d09728Smrg
2060bc77032bSmrg# Test code for whether the C compiler supports C99 (global declarations)
2061bc77032bSmrgac_c_conftest_c99_globals='
2062bc77032bSmrg// Does the compiler advertise C99 conformance?
2063bc77032bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2064bc77032bSmrg# error "Compiler does not advertise C99 conformance"
2065bc77032bSmrg#endif
206689d09728Smrg
2067bc77032bSmrg#include <stdbool.h>
2068bc77032bSmrgextern int puts (const char *);
2069bc77032bSmrgextern int printf (const char *, ...);
2070bc77032bSmrgextern int dprintf (int, const char *, ...);
2071bc77032bSmrgextern void *malloc (size_t);
207266fe65f6Smrg
2073bc77032bSmrg// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2074bc77032bSmrg// dprintf is used instead of fprintf to avoid needing to declare
2075bc77032bSmrg// FILE and stderr.
2076bc77032bSmrg#define debug(...) dprintf (2, __VA_ARGS__)
2077bc77032bSmrg#define showlist(...) puts (#__VA_ARGS__)
2078bc77032bSmrg#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2079bc77032bSmrgstatic void
2080bc77032bSmrgtest_varargs_macros (void)
2081bc77032bSmrg{
2082bc77032bSmrg  int x = 1234;
2083bc77032bSmrg  int y = 5678;
2084bc77032bSmrg  debug ("Flag");
2085bc77032bSmrg  debug ("X = %d\n", x);
2086bc77032bSmrg  showlist (The first, second, and third items.);
2087bc77032bSmrg  report (x>y, "x is %d but y is %d", x, y);
2088bc77032bSmrg}
2089bc77032bSmrg
2090bc77032bSmrg// Check long long types.
2091bc77032bSmrg#define BIG64 18446744073709551615ull
2092bc77032bSmrg#define BIG32 4294967295ul
2093bc77032bSmrg#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2094bc77032bSmrg#if !BIG_OK
2095bc77032bSmrg  #error "your preprocessor is broken"
2096bc77032bSmrg#endif
2097bc77032bSmrg#if BIG_OK
2098bc77032bSmrg#else
2099bc77032bSmrg  #error "your preprocessor is broken"
2100bc77032bSmrg#endif
2101bc77032bSmrgstatic long long int bignum = -9223372036854775807LL;
2102bc77032bSmrgstatic unsigned long long int ubignum = BIG64;
2103bc77032bSmrg
2104bc77032bSmrgstruct incomplete_array
2105bc77032bSmrg{
2106bc77032bSmrg  int datasize;
2107bc77032bSmrg  double data[];
2108bc77032bSmrg};
2109bc77032bSmrg
2110bc77032bSmrgstruct named_init {
2111bc77032bSmrg  int number;
2112bc77032bSmrg  const wchar_t *name;
2113bc77032bSmrg  double average;
2114bc77032bSmrg};
2115bc77032bSmrg
2116bc77032bSmrgtypedef const char *ccp;
2117bc77032bSmrg
2118bc77032bSmrgstatic inline int
2119bc77032bSmrgtest_restrict (ccp restrict text)
2120bc77032bSmrg{
2121bc77032bSmrg  // See if C++-style comments work.
2122bc77032bSmrg  // Iterate through items via the restricted pointer.
2123bc77032bSmrg  // Also check for declarations in for loops.
2124bc77032bSmrg  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2125bc77032bSmrg    continue;
2126bc77032bSmrg  return 0;
2127bc77032bSmrg}
2128bc77032bSmrg
2129bc77032bSmrg// Check varargs and va_copy.
2130bc77032bSmrgstatic bool
2131bc77032bSmrgtest_varargs (const char *format, ...)
2132bc77032bSmrg{
2133bc77032bSmrg  va_list args;
2134bc77032bSmrg  va_start (args, format);
2135bc77032bSmrg  va_list args_copy;
2136bc77032bSmrg  va_copy (args_copy, args);
2137bc77032bSmrg
2138bc77032bSmrg  const char *str = "";
2139bc77032bSmrg  int number = 0;
2140bc77032bSmrg  float fnumber = 0;
2141bc77032bSmrg
2142bc77032bSmrg  while (*format)
2143bc77032bSmrg    {
2144bc77032bSmrg      switch (*format++)
2145bc77032bSmrg	{
2146bc77032bSmrg	case '\''s'\'': // string
2147bc77032bSmrg	  str = va_arg (args_copy, const char *);
2148bc77032bSmrg	  break;
2149bc77032bSmrg	case '\''d'\'': // int
2150bc77032bSmrg	  number = va_arg (args_copy, int);
2151bc77032bSmrg	  break;
2152bc77032bSmrg	case '\''f'\'': // float
2153bc77032bSmrg	  fnumber = va_arg (args_copy, double);
2154bc77032bSmrg	  break;
2155bc77032bSmrg	default:
2156bc77032bSmrg	  break;
2157bc77032bSmrg	}
2158bc77032bSmrg    }
2159bc77032bSmrg  va_end (args_copy);
2160bc77032bSmrg  va_end (args);
2161bc77032bSmrg
2162bc77032bSmrg  return *str && number && fnumber;
2163bc77032bSmrg}
2164bc77032bSmrg'
2165bc77032bSmrg
2166bc77032bSmrg# Test code for whether the C compiler supports C99 (body of main).
2167bc77032bSmrgac_c_conftest_c99_main='
2168bc77032bSmrg  // Check bool.
2169bc77032bSmrg  _Bool success = false;
2170bc77032bSmrg  success |= (argc != 0);
2171bc77032bSmrg
2172bc77032bSmrg  // Check restrict.
2173bc77032bSmrg  if (test_restrict ("String literal") == 0)
2174bc77032bSmrg    success = true;
2175bc77032bSmrg  char *restrict newvar = "Another string";
2176bc77032bSmrg
2177bc77032bSmrg  // Check varargs.
2178bc77032bSmrg  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2179bc77032bSmrg  test_varargs_macros ();
2180bc77032bSmrg
2181bc77032bSmrg  // Check flexible array members.
2182bc77032bSmrg  struct incomplete_array *ia =
2183bc77032bSmrg    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2184bc77032bSmrg  ia->datasize = 10;
2185bc77032bSmrg  for (int i = 0; i < ia->datasize; ++i)
2186bc77032bSmrg    ia->data[i] = i * 1.234;
2187bc77032bSmrg
2188bc77032bSmrg  // Check named initializers.
2189bc77032bSmrg  struct named_init ni = {
2190bc77032bSmrg    .number = 34,
2191bc77032bSmrg    .name = L"Test wide string",
2192bc77032bSmrg    .average = 543.34343,
2193bc77032bSmrg  };
2194bc77032bSmrg
2195bc77032bSmrg  ni.number = 58;
2196bc77032bSmrg
2197bc77032bSmrg  int dynamic_array[ni.number];
2198bc77032bSmrg  dynamic_array[0] = argv[0][0];
2199bc77032bSmrg  dynamic_array[ni.number - 1] = 543;
2200bc77032bSmrg
2201bc77032bSmrg  // work around unused variable warnings
2202bc77032bSmrg  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2203bc77032bSmrg	 || dynamic_array[ni.number - 1] != 543);
2204bc77032bSmrg'
2205bc77032bSmrg
2206bc77032bSmrg# Test code for whether the C compiler supports C11 (global declarations)
2207bc77032bSmrgac_c_conftest_c11_globals='
2208bc77032bSmrg// Does the compiler advertise C11 conformance?
2209bc77032bSmrg#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2210bc77032bSmrg# error "Compiler does not advertise C11 conformance"
2211bc77032bSmrg#endif
2212bc77032bSmrg
2213bc77032bSmrg// Check _Alignas.
2214bc77032bSmrgchar _Alignas (double) aligned_as_double;
2215bc77032bSmrgchar _Alignas (0) no_special_alignment;
2216bc77032bSmrgextern char aligned_as_int;
2217bc77032bSmrgchar _Alignas (0) _Alignas (int) aligned_as_int;
2218bc77032bSmrg
2219bc77032bSmrg// Check _Alignof.
2220bc77032bSmrgenum
2221bc77032bSmrg{
2222bc77032bSmrg  int_alignment = _Alignof (int),
2223bc77032bSmrg  int_array_alignment = _Alignof (int[100]),
2224bc77032bSmrg  char_alignment = _Alignof (char)
2225bc77032bSmrg};
2226bc77032bSmrg_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2227bc77032bSmrg
2228bc77032bSmrg// Check _Noreturn.
2229bc77032bSmrgint _Noreturn does_not_return (void) { for (;;) continue; }
2230bc77032bSmrg
2231bc77032bSmrg// Check _Static_assert.
2232bc77032bSmrgstruct test_static_assert
2233bc77032bSmrg{
2234bc77032bSmrg  int x;
2235bc77032bSmrg  _Static_assert (sizeof (int) <= sizeof (long int),
2236bc77032bSmrg                  "_Static_assert does not work in struct");
2237bc77032bSmrg  long int y;
2238bc77032bSmrg};
2239bc77032bSmrg
2240bc77032bSmrg// Check UTF-8 literals.
2241bc77032bSmrg#define u8 syntax error!
2242bc77032bSmrgchar const utf8_literal[] = u8"happens to be ASCII" "another string";
2243bc77032bSmrg
2244bc77032bSmrg// Check duplicate typedefs.
2245bc77032bSmrgtypedef long *long_ptr;
2246bc77032bSmrgtypedef long int *long_ptr;
2247bc77032bSmrgtypedef long_ptr long_ptr;
2248bc77032bSmrg
2249bc77032bSmrg// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2250bc77032bSmrgstruct anonymous
2251bc77032bSmrg{
2252bc77032bSmrg  union {
2253bc77032bSmrg    struct { int i; int j; };
2254bc77032bSmrg    struct { int k; long int l; } w;
2255bc77032bSmrg  };
2256bc77032bSmrg  int m;
2257bc77032bSmrg} v1;
2258bc77032bSmrg'
2259bc77032bSmrg
2260bc77032bSmrg# Test code for whether the C compiler supports C11 (body of main).
2261bc77032bSmrgac_c_conftest_c11_main='
2262bc77032bSmrg  _Static_assert ((offsetof (struct anonymous, i)
2263bc77032bSmrg		   == offsetof (struct anonymous, w.k)),
2264bc77032bSmrg		  "Anonymous union alignment botch");
2265bc77032bSmrg  v1.i = 2;
2266bc77032bSmrg  v1.w.k = 5;
2267bc77032bSmrg  ok |= v1.i != 5;
2268bc77032bSmrg'
2269bc77032bSmrg
2270bc77032bSmrg# Test code for whether the C compiler supports C11 (complete).
2271bc77032bSmrgac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2272bc77032bSmrg${ac_c_conftest_c99_globals}
2273bc77032bSmrg${ac_c_conftest_c11_globals}
2274bc77032bSmrg
2275bc77032bSmrgint
2276bc77032bSmrgmain (int argc, char **argv)
2277bc77032bSmrg{
2278bc77032bSmrg  int ok = 0;
2279bc77032bSmrg  ${ac_c_conftest_c89_main}
2280bc77032bSmrg  ${ac_c_conftest_c99_main}
2281bc77032bSmrg  ${ac_c_conftest_c11_main}
2282bc77032bSmrg  return ok;
2283bc77032bSmrg}
2284bc77032bSmrg"
2285bc77032bSmrg
2286bc77032bSmrg# Test code for whether the C compiler supports C99 (complete).
2287bc77032bSmrgac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2288bc77032bSmrg${ac_c_conftest_c99_globals}
2289bc77032bSmrg
2290bc77032bSmrgint
2291bc77032bSmrgmain (int argc, char **argv)
2292bc77032bSmrg{
2293bc77032bSmrg  int ok = 0;
2294bc77032bSmrg  ${ac_c_conftest_c89_main}
2295bc77032bSmrg  ${ac_c_conftest_c99_main}
2296bc77032bSmrg  return ok;
2297bc77032bSmrg}
2298bc77032bSmrg"
2299bc77032bSmrg
2300bc77032bSmrg# Test code for whether the C compiler supports C89 (complete).
2301bc77032bSmrgac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2302bc77032bSmrg
2303bc77032bSmrgint
2304bc77032bSmrgmain (int argc, char **argv)
2305bc77032bSmrg{
2306bc77032bSmrg  int ok = 0;
2307bc77032bSmrg  ${ac_c_conftest_c89_main}
2308bc77032bSmrg  return ok;
2309bc77032bSmrg}
2310bc77032bSmrg"
2311bc77032bSmrg
2312bc77032bSmrgas_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2313bc77032bSmrgas_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2314bc77032bSmrgas_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2315bc77032bSmrgas_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2316bc77032bSmrgas_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2317bc77032bSmrgas_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2318bc77032bSmrgas_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2319bc77032bSmrgas_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2320bc77032bSmrgas_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2321bc77032bSmrg
2322bc77032bSmrg# Auxiliary files required by this configure script.
2323bc77032bSmrgac_aux_files="config.guess config.sub compile missing install-sh"
2324bc77032bSmrg
2325bc77032bSmrg# Locations in which to look for auxiliary files.
2326bc77032bSmrgac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2327bc77032bSmrg
2328bc77032bSmrg# Search for a directory containing all of the required auxiliary files,
2329bc77032bSmrg# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2330bc77032bSmrg# If we don't find one directory that contains all the files we need,
2331bc77032bSmrg# we report the set of missing files from the *first* directory in
2332bc77032bSmrg# $ac_aux_dir_candidates and give up.
2333bc77032bSmrgac_missing_aux_files=""
2334bc77032bSmrgac_first_candidate=:
2335bc77032bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2336bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337bc77032bSmrgas_found=false
2338bc77032bSmrgfor as_dir in $ac_aux_dir_candidates
2339bc77032bSmrgdo
2340bc77032bSmrg  IFS=$as_save_IFS
2341bc77032bSmrg  case $as_dir in #(((
2342bc77032bSmrg    '') as_dir=./ ;;
2343bc77032bSmrg    */) ;;
2344bc77032bSmrg    *) as_dir=$as_dir/ ;;
2345bc77032bSmrg  esac
2346bc77032bSmrg  as_found=:
2347bc77032bSmrg
2348bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2349bc77032bSmrg  ac_aux_dir_found=yes
2350bc77032bSmrg  ac_install_sh=
2351bc77032bSmrg  for ac_aux in $ac_aux_files
2352bc77032bSmrg  do
2353bc77032bSmrg    # As a special case, if "install-sh" is required, that requirement
2354bc77032bSmrg    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2355bc77032bSmrg    # and $ac_install_sh is set appropriately for whichever one is found.
2356bc77032bSmrg    if test x"$ac_aux" = x"install-sh"
2357bc77032bSmrg    then
2358bc77032bSmrg      if test -f "${as_dir}install-sh"; then
2359bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2360bc77032bSmrg        ac_install_sh="${as_dir}install-sh -c"
2361bc77032bSmrg      elif test -f "${as_dir}install.sh"; then
2362bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2363bc77032bSmrg        ac_install_sh="${as_dir}install.sh -c"
2364bc77032bSmrg      elif test -f "${as_dir}shtool"; then
2365bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2366bc77032bSmrg        ac_install_sh="${as_dir}shtool install -c"
2367bc77032bSmrg      else
2368bc77032bSmrg        ac_aux_dir_found=no
2369bc77032bSmrg        if $ac_first_candidate; then
2370bc77032bSmrg          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2371bc77032bSmrg        else
2372bc77032bSmrg          break
2373bc77032bSmrg        fi
2374bc77032bSmrg      fi
2375bc77032bSmrg    else
2376bc77032bSmrg      if test -f "${as_dir}${ac_aux}"; then
2377bc77032bSmrg        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2378bc77032bSmrg      else
2379bc77032bSmrg        ac_aux_dir_found=no
2380bc77032bSmrg        if $ac_first_candidate; then
2381bc77032bSmrg          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2382bc77032bSmrg        else
2383bc77032bSmrg          break
2384bc77032bSmrg        fi
2385bc77032bSmrg      fi
2386bc77032bSmrg    fi
2387bc77032bSmrg  done
2388bc77032bSmrg  if test "$ac_aux_dir_found" = yes; then
2389bc77032bSmrg    ac_aux_dir="$as_dir"
2390bc77032bSmrg    break
2391bc77032bSmrg  fi
2392bc77032bSmrg  ac_first_candidate=false
2393bc77032bSmrg
2394bc77032bSmrg  as_found=false
2395bc77032bSmrgdone
2396bc77032bSmrgIFS=$as_save_IFS
2397bc77032bSmrgif $as_found
2398bc77032bSmrgthen :
2399bc77032bSmrg
2400bc77032bSmrgelse $as_nop
2401bc77032bSmrg  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2402bc77032bSmrgfi
2403bc77032bSmrg
2404bc77032bSmrg
2405bc77032bSmrg# These three variables are undocumented and unsupported,
2406bc77032bSmrg# and are intended to be withdrawn in a future Autoconf release.
2407bc77032bSmrg# They can cause serious problems if a builder's source tree is in a directory
2408bc77032bSmrg# whose full name contains unusual characters.
2409bc77032bSmrgif test -f "${ac_aux_dir}config.guess"; then
2410bc77032bSmrg  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2411bc77032bSmrgfi
2412bc77032bSmrgif test -f "${ac_aux_dir}config.sub"; then
2413bc77032bSmrg  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2414bc77032bSmrgfi
2415bc77032bSmrgif test -f "$ac_aux_dir/configure"; then
2416bc77032bSmrg  ac_configure="$SHELL ${ac_aux_dir}configure"
2417bc77032bSmrgfi
2418bc77032bSmrg
2419bc77032bSmrg# Check that the precious variables saved in the cache have kept the same
2420bc77032bSmrg# value.
2421bc77032bSmrgac_cache_corrupted=false
2422bc77032bSmrgfor ac_var in $ac_precious_vars; do
2423bc77032bSmrg  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424bc77032bSmrg  eval ac_new_set=\$ac_env_${ac_var}_set
2425bc77032bSmrg  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426bc77032bSmrg  eval ac_new_val=\$ac_env_${ac_var}_value
2427bc77032bSmrg  case $ac_old_set,$ac_new_set in
2428bc77032bSmrg    set,)
2429bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431bc77032bSmrg      ac_cache_corrupted=: ;;
2432bc77032bSmrg    ,set)
2433bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435bc77032bSmrg      ac_cache_corrupted=: ;;
2436bc77032bSmrg    ,);;
2437bc77032bSmrg    *)
2438bc77032bSmrg      if test "x$ac_old_val" != "x$ac_new_val"; then
2439bc77032bSmrg	# differences in whitespace do not lead to failure.
2440bc77032bSmrg	ac_old_val_w=`echo x $ac_old_val`
2441bc77032bSmrg	ac_new_val_w=`echo x $ac_new_val`
2442bc77032bSmrg	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443bc77032bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444bc77032bSmrgprintf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445bc77032bSmrg	  ac_cache_corrupted=:
2446bc77032bSmrg	else
2447bc77032bSmrg	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448bc77032bSmrgprintf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449bc77032bSmrg	  eval $ac_var=\$ac_old_val
2450bc77032bSmrg	fi
2451bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452bc77032bSmrgprintf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454bc77032bSmrgprintf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2455bc77032bSmrg      fi;;
2456bc77032bSmrg  esac
2457bc77032bSmrg  # Pass precious variables to config.status.
2458bc77032bSmrg  if test "$ac_new_set" = set; then
2459bc77032bSmrg    case $ac_new_val in
2460bc77032bSmrg    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461bc77032bSmrg    *) ac_arg=$ac_var=$ac_new_val ;;
2462bc77032bSmrg    esac
2463bc77032bSmrg    case " $ac_configure_args " in
2464bc77032bSmrg      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465bc77032bSmrg      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466bc77032bSmrg    esac
2467bc77032bSmrg  fi
2468bc77032bSmrgdone
2469bc77032bSmrgif $ac_cache_corrupted; then
2470bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2472bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473bc77032bSmrgprintf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2474bc77032bSmrg  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2475bc77032bSmrg	    and start over" "$LINENO" 5
2476bc77032bSmrgfi
2477bc77032bSmrg## -------------------- ##
2478bc77032bSmrg## Main body of script. ##
2479bc77032bSmrg## -------------------- ##
2480bc77032bSmrg
2481bc77032bSmrgac_ext=c
2482bc77032bSmrgac_cpp='$CPP $CPPFLAGS'
2483bc77032bSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484bc77032bSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485bc77032bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
2486bc77032bSmrg
2487bc77032bSmrg
2488bc77032bSmrg
2489bc77032bSmrgac_config_headers="$ac_config_headers config.h"
2490bc77032bSmrg
2491bc77032bSmrg
2492bc77032bSmrg# Initialize Automake
2493bc77032bSmrgam__api_version='1.16'
2494bc77032bSmrg
2495bc77032bSmrg
2496bc77032bSmrg
2497bc77032bSmrg  # Find a good install program.  We prefer a C program (faster),
2498bc77032bSmrg# so one script is as good as another.  But avoid the broken or
2499bc77032bSmrg# incompatible versions:
2500bc77032bSmrg# SysV /etc/install, /usr/sbin/install
2501bc77032bSmrg# SunOS /usr/etc/install
2502bc77032bSmrg# IRIX /sbin/install
2503bc77032bSmrg# AIX /bin/install
250466fe65f6Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs
250566fe65f6Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
250666fe65f6Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args
250766fe65f6Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
250866fe65f6Smrg# OS/2's system install, which has a completely different semantic
250966fe65f6Smrg# ./install, which can be erroneously created by make from ./install.sh.
251089d09728Smrg# Reject install programs that cannot install multiple files.
2511bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2512bc77032bSmrgprintf %s "checking for a BSD-compatible install... " >&6; }
251366fe65f6Smrgif test -z "$INSTALL"; then
2514bc77032bSmrgif test ${ac_cv_path_install+y}
2515bc77032bSmrgthen :
2516bc77032bSmrg  printf %s "(cached) " >&6
2517bc77032bSmrgelse $as_nop
251866fe65f6Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
251966fe65f6Smrgfor as_dir in $PATH
252066fe65f6Smrgdo
252166fe65f6Smrg  IFS=$as_save_IFS
2522bc77032bSmrg  case $as_dir in #(((
2523bc77032bSmrg    '') as_dir=./ ;;
2524bc77032bSmrg    */) ;;
2525bc77032bSmrg    *) as_dir=$as_dir/ ;;
2526bc77032bSmrg  esac
2527bc77032bSmrg    # Account for fact that we put trailing slashes in our PATH walk.
2528bc77032bSmrgcase $as_dir in #((
2529bc77032bSmrg  ./ | /[cC]/* | \
253066fe65f6Smrg  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
253148af84faSmrg  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
253266fe65f6Smrg  /usr/ucb/* ) ;;
253366fe65f6Smrg  *)
253466fe65f6Smrg    # OSF1 and SCO ODT 3.0 have their own names for install.
253566fe65f6Smrg    # Don't use installbsd from OSF since it installs stuff as root
253666fe65f6Smrg    # by default.
253766fe65f6Smrg    for ac_prog in ginstall scoinst install; do
253866fe65f6Smrg      for ac_exec_ext in '' $ac_executable_extensions; do
2539bc77032bSmrg	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
254066fe65f6Smrg	  if test $ac_prog = install &&
2541bc77032bSmrg	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
254266fe65f6Smrg	    # AIX install.  It has an incompatible calling convention.
254366fe65f6Smrg	    :
254466fe65f6Smrg	  elif test $ac_prog = install &&
2545bc77032bSmrg	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
254666fe65f6Smrg	    # program-specific install script used by HP pwplus--don't use.
254766fe65f6Smrg	    :
254866fe65f6Smrg	  else
254989d09728Smrg	    rm -rf conftest.one conftest.two conftest.dir
255089d09728Smrg	    echo one > conftest.one
255189d09728Smrg	    echo two > conftest.two
255289d09728Smrg	    mkdir conftest.dir
2553bc77032bSmrg	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
255489d09728Smrg	      test -s conftest.one && test -s conftest.two &&
255589d09728Smrg	      test -s conftest.dir/conftest.one &&
255689d09728Smrg	      test -s conftest.dir/conftest.two
255789d09728Smrg	    then
2558bc77032bSmrg	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
255989d09728Smrg	      break 3
256089d09728Smrg	    fi
256166fe65f6Smrg	  fi
256266fe65f6Smrg	fi
256366fe65f6Smrg      done
256466fe65f6Smrg    done
256566fe65f6Smrg    ;;
256666fe65f6Smrgesac
256766fe65f6Smrg
256848af84faSmrg  done
256989d09728SmrgIFS=$as_save_IFS
257089d09728Smrg
257189d09728Smrgrm -rf conftest.one conftest.two conftest.dir
257266fe65f6Smrg
257366fe65f6Smrgfi
2574bc77032bSmrg  if test ${ac_cv_path_install+y}; then
257566fe65f6Smrg    INSTALL=$ac_cv_path_install
257666fe65f6Smrg  else
257789d09728Smrg    # As a last resort, use the slow shell script.  Don't cache a
257889d09728Smrg    # value for INSTALL within a source directory, because that will
257966fe65f6Smrg    # break other packages using the cache if that directory is
258089d09728Smrg    # removed, or if the value is a relative name.
258166fe65f6Smrg    INSTALL=$ac_install_sh
258266fe65f6Smrg  fi
258366fe65f6Smrgfi
2584bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2585bc77032bSmrgprintf "%s\n" "$INSTALL" >&6; }
258666fe65f6Smrg
258766fe65f6Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
258866fe65f6Smrg# It thinks the first close brace ends the variable substitution.
258966fe65f6Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
259066fe65f6Smrg
259166fe65f6Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
259266fe65f6Smrg
259366fe65f6Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
259466fe65f6Smrg
2595bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2596bc77032bSmrgprintf %s "checking whether build environment is sane... " >&6; }
2597a9274bcdSmrg# Reject unsafe characters in $srcdir or the absolute working directory
2598a9274bcdSmrg# name.  Accept space and tab only in the latter.
2599a9274bcdSmrgam_lf='
2600a9274bcdSmrg'
2601a9274bcdSmrgcase `pwd` in
2602a9274bcdSmrg  *[\\\"\#\$\&\'\`$am_lf]*)
260348af84faSmrg    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2604a9274bcdSmrgesac
2605a9274bcdSmrgcase $srcdir in
2606a9274bcdSmrg  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2607c6a6acfbSmrg    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2608a9274bcdSmrgesac
2609a9274bcdSmrg
2610c6a6acfbSmrg# Do 'set' in a subshell so we don't clobber the current shell's
261166fe65f6Smrg# arguments.  Must try -L first in case configure is actually a
261266fe65f6Smrg# symlink; some systems play weird games with the mod time of symlinks
261366fe65f6Smrg# (eg FreeBSD returns the mod time of the symlink's containing
261466fe65f6Smrg# directory).
261566fe65f6Smrgif (
2616c6a6acfbSmrg   am_has_slept=no
2617c6a6acfbSmrg   for am_try in 1 2; do
2618c6a6acfbSmrg     echo "timestamp, slept: $am_has_slept" > conftest.file
2619c6a6acfbSmrg     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620c6a6acfbSmrg     if test "$*" = "X"; then
2621c6a6acfbSmrg	# -L didn't work.
2622c6a6acfbSmrg	set X `ls -t "$srcdir/configure" conftest.file`
2623c6a6acfbSmrg     fi
2624c6a6acfbSmrg     if test "$*" != "X $srcdir/configure conftest.file" \
2625c6a6acfbSmrg	&& test "$*" != "X conftest.file $srcdir/configure"; then
2626c6a6acfbSmrg
2627c6a6acfbSmrg	# If neither matched, then we have a broken ls.  This can happen
2628c6a6acfbSmrg	# if, for instance, CONFIG_SHELL is bash and it inherits a
2629c6a6acfbSmrg	# broken ls alias from the environment.  This has actually
2630c6a6acfbSmrg	# happened.  Such a system could not be considered "sane".
2631c6a6acfbSmrg	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2632c6a6acfbSmrg  alias in your environment" "$LINENO" 5
2633c6a6acfbSmrg     fi
2634c6a6acfbSmrg     if test "$2" = conftest.file || test $am_try -eq 2; then
2635c6a6acfbSmrg       break
2636c6a6acfbSmrg     fi
2637c6a6acfbSmrg     # Just in case.
2638c6a6acfbSmrg     sleep 1
2639c6a6acfbSmrg     am_has_slept=yes
2640c6a6acfbSmrg   done
264166fe65f6Smrg   test "$2" = conftest.file
264266fe65f6Smrg   )
264366fe65f6Smrgthen
264466fe65f6Smrg   # Ok.
264566fe65f6Smrg   :
264666fe65f6Smrgelse
264748af84faSmrg   as_fn_error $? "newly created file is older than distributed files!
264848af84faSmrgCheck your system clock" "$LINENO" 5
264966fe65f6Smrgfi
2650bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651bc77032bSmrgprintf "%s\n" "yes" >&6; }
2652c6a6acfbSmrg# If we didn't sleep, we still need to ensure time stamps of config.status and
2653c6a6acfbSmrg# generated files are strictly newer.
2654c6a6acfbSmrgam_sleep_pid=
2655c6a6acfbSmrgif grep 'slept: no' conftest.file >/dev/null 2>&1; then
2656c6a6acfbSmrg  ( sleep 1 ) &
2657c6a6acfbSmrg  am_sleep_pid=$!
2658c6a6acfbSmrgfi
2659c6a6acfbSmrg
2660c6a6acfbSmrgrm -f conftest.file
2661c6a6acfbSmrg
266266fe65f6Smrgtest "$program_prefix" != NONE &&
266389d09728Smrg  program_transform_name="s&^&$program_prefix&;$program_transform_name"
266466fe65f6Smrg# Use a double $ so make ignores it.
266566fe65f6Smrgtest "$program_suffix" != NONE &&
266689d09728Smrg  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
266789d09728Smrg# Double any \ or $.
266866fe65f6Smrg# By default was `s,x,x', remove it if useless.
266989d09728Smrgac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670bc77032bSmrgprogram_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2671bc77032bSmrg
267266fe65f6Smrg
2673c6a6acfbSmrg# Expand $ac_aux_dir to an absolute path.
2674c6a6acfbSmrgam_aux_dir=`cd "$ac_aux_dir" && pwd`
267566fe65f6Smrg
2676bc77032bSmrg
2677bc77032bSmrg  if test x"${MISSING+set}" != xset; then
2678bc77032bSmrg  MISSING="\${SHELL} '$am_aux_dir/missing'"
2679a9274bcdSmrgfi
268066fe65f6Smrg# Use eval to expand $SHELL
2681c6a6acfbSmrgif eval "$MISSING --is-lightweight"; then
2682c6a6acfbSmrg  am_missing_run="$MISSING "
268366fe65f6Smrgelse
268466fe65f6Smrg  am_missing_run=
2685bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2686bc77032bSmrgprintf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
268789d09728Smrgfi
268889d09728Smrg
2689c6a6acfbSmrgif test x"${install_sh+set}" != xset; then
2690a9274bcdSmrg  case $am_aux_dir in
2691a9274bcdSmrg  *\ * | *\	*)
2692a9274bcdSmrg    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2693a9274bcdSmrg  *)
2694a9274bcdSmrg    install_sh="\${SHELL} $am_aux_dir/install-sh"
2695a9274bcdSmrg  esac
2696a9274bcdSmrgfi
2697a9274bcdSmrg
2698c6a6acfbSmrg# Installed binaries are usually stripped using 'strip' when the user
2699c6a6acfbSmrg# run "make install-strip".  However 'strip' might not be the right
2700a9274bcdSmrg# tool to use in cross-compilation environments, therefore Automake
2701c6a6acfbSmrg# will honor the 'STRIP' environment variable to overrule this program.
2702a9274bcdSmrgif test "$cross_compiling" != no; then
2703a9274bcdSmrg  if test -n "$ac_tool_prefix"; then
2704a9274bcdSmrg  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2705a9274bcdSmrgset dummy ${ac_tool_prefix}strip; ac_word=$2
2706bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2708bc77032bSmrgif test ${ac_cv_prog_STRIP+y}
2709bc77032bSmrgthen :
2710bc77032bSmrg  printf %s "(cached) " >&6
2711bc77032bSmrgelse $as_nop
2712a9274bcdSmrg  if test -n "$STRIP"; then
2713a9274bcdSmrg  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2714a9274bcdSmrgelse
2715a9274bcdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716a9274bcdSmrgfor as_dir in $PATH
2717a9274bcdSmrgdo
2718a9274bcdSmrg  IFS=$as_save_IFS
2719bc77032bSmrg  case $as_dir in #(((
2720bc77032bSmrg    '') as_dir=./ ;;
2721bc77032bSmrg    */) ;;
2722bc77032bSmrg    *) as_dir=$as_dir/ ;;
2723bc77032bSmrg  esac
272448af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2725bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2726a9274bcdSmrg    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2728a9274bcdSmrg    break 2
2729a9274bcdSmrg  fi
2730a9274bcdSmrgdone
273148af84faSmrg  done
2732a9274bcdSmrgIFS=$as_save_IFS
2733a9274bcdSmrg
2734a9274bcdSmrgfi
2735a9274bcdSmrgfi
2736a9274bcdSmrgSTRIP=$ac_cv_prog_STRIP
2737a9274bcdSmrgif test -n "$STRIP"; then
2738bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2739bc77032bSmrgprintf "%s\n" "$STRIP" >&6; }
2740a9274bcdSmrgelse
2741bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742bc77032bSmrgprintf "%s\n" "no" >&6; }
2743a9274bcdSmrgfi
2744a9274bcdSmrg
2745a9274bcdSmrg
2746a9274bcdSmrgfi
2747a9274bcdSmrgif test -z "$ac_cv_prog_STRIP"; then
2748a9274bcdSmrg  ac_ct_STRIP=$STRIP
2749a9274bcdSmrg  # Extract the first word of "strip", so it can be a program name with args.
2750a9274bcdSmrgset dummy strip; ac_word=$2
2751bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2753bc77032bSmrgif test ${ac_cv_prog_ac_ct_STRIP+y}
2754bc77032bSmrgthen :
2755bc77032bSmrg  printf %s "(cached) " >&6
2756bc77032bSmrgelse $as_nop
2757a9274bcdSmrg  if test -n "$ac_ct_STRIP"; then
2758a9274bcdSmrg  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2759a9274bcdSmrgelse
2760a9274bcdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761a9274bcdSmrgfor as_dir in $PATH
2762a9274bcdSmrgdo
2763a9274bcdSmrg  IFS=$as_save_IFS
2764bc77032bSmrg  case $as_dir in #(((
2765bc77032bSmrg    '') as_dir=./ ;;
2766bc77032bSmrg    */) ;;
2767bc77032bSmrg    *) as_dir=$as_dir/ ;;
2768bc77032bSmrg  esac
276948af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2770bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2771a9274bcdSmrg    ac_cv_prog_ac_ct_STRIP="strip"
2772bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2773a9274bcdSmrg    break 2
2774a9274bcdSmrg  fi
2775a9274bcdSmrgdone
277648af84faSmrg  done
2777a9274bcdSmrgIFS=$as_save_IFS
2778a9274bcdSmrg
2779a9274bcdSmrgfi
2780a9274bcdSmrgfi
2781a9274bcdSmrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782a9274bcdSmrgif test -n "$ac_ct_STRIP"; then
2783bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2784bc77032bSmrgprintf "%s\n" "$ac_ct_STRIP" >&6; }
2785a9274bcdSmrgelse
2786bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787bc77032bSmrgprintf "%s\n" "no" >&6; }
2788a9274bcdSmrgfi
2789a9274bcdSmrg
2790a9274bcdSmrg  if test "x$ac_ct_STRIP" = x; then
2791a9274bcdSmrg    STRIP=":"
2792a9274bcdSmrg  else
2793a9274bcdSmrg    case $cross_compiling:$ac_tool_warned in
2794a9274bcdSmrgyes:)
2795bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2796bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797a9274bcdSmrgac_tool_warned=yes ;;
2798a9274bcdSmrgesac
2799a9274bcdSmrg    STRIP=$ac_ct_STRIP
2800a9274bcdSmrg  fi
2801a9274bcdSmrgelse
2802a9274bcdSmrg  STRIP="$ac_cv_prog_STRIP"
2803a9274bcdSmrgfi
2804a9274bcdSmrg
2805a9274bcdSmrgfi
2806a9274bcdSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807a9274bcdSmrg
2808bc77032bSmrg
2809bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2810bc77032bSmrgprintf %s "checking for a race-free mkdir -p... " >&6; }
281189d09728Smrgif test -z "$MKDIR_P"; then
2812bc77032bSmrg  if test ${ac_cv_path_mkdir+y}
2813bc77032bSmrgthen :
2814bc77032bSmrg  printf %s "(cached) " >&6
2815bc77032bSmrgelse $as_nop
281689d09728Smrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
281789d09728Smrgfor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
281889d09728Smrgdo
281989d09728Smrg  IFS=$as_save_IFS
2820bc77032bSmrg  case $as_dir in #(((
2821bc77032bSmrg    '') as_dir=./ ;;
2822bc77032bSmrg    */) ;;
2823bc77032bSmrg    *) as_dir=$as_dir/ ;;
2824bc77032bSmrg  esac
282548af84faSmrg    for ac_prog in mkdir gmkdir; do
282689d09728Smrg	 for ac_exec_ext in '' $ac_executable_extensions; do
2827bc77032bSmrg	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2828bc77032bSmrg	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829bc77032bSmrg	     'mkdir ('*'coreutils) '* | \
2830bc77032bSmrg	     'BusyBox '* | \
283189d09728Smrg	     'mkdir (fileutils) '4.1*)
2832bc77032bSmrg	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
283389d09728Smrg	       break 3;;
283489d09728Smrg	   esac
283589d09728Smrg	 done
283689d09728Smrg       done
283748af84faSmrg  done
283889d09728SmrgIFS=$as_save_IFS
283989d09728Smrg
284089d09728Smrgfi
284189d09728Smrg
284248af84faSmrg  test -d ./--version && rmdir ./--version
2843bc77032bSmrg  if test ${ac_cv_path_mkdir+y}; then
284489d09728Smrg    MKDIR_P="$ac_cv_path_mkdir -p"
284566fe65f6Smrg  else
284689d09728Smrg    # As a last resort, use the slow shell script.  Don't cache a
284789d09728Smrg    # value for MKDIR_P within a source directory, because that will
284889d09728Smrg    # break other packages using the cache if that directory is
284989d09728Smrg    # removed, or if the value is a relative name.
285089d09728Smrg    MKDIR_P="$ac_install_sh -d"
285166fe65f6Smrg  fi
285266fe65f6Smrgfi
2853bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2854bc77032bSmrgprintf "%s\n" "$MKDIR_P" >&6; }
285589d09728Smrg
285666fe65f6Smrgfor ac_prog in gawk mawk nawk awk
285766fe65f6Smrgdo
285866fe65f6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
285966fe65f6Smrgset dummy $ac_prog; ac_word=$2
2860bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
2862bc77032bSmrgif test ${ac_cv_prog_AWK+y}
2863bc77032bSmrgthen :
2864bc77032bSmrg  printf %s "(cached) " >&6
2865bc77032bSmrgelse $as_nop
286666fe65f6Smrg  if test -n "$AWK"; then
286766fe65f6Smrg  ac_cv_prog_AWK="$AWK" # Let the user override the test.
286866fe65f6Smrgelse
286966fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287066fe65f6Smrgfor as_dir in $PATH
287166fe65f6Smrgdo
287266fe65f6Smrg  IFS=$as_save_IFS
2873bc77032bSmrg  case $as_dir in #(((
2874bc77032bSmrg    '') as_dir=./ ;;
2875bc77032bSmrg    */) ;;
2876bc77032bSmrg    *) as_dir=$as_dir/ ;;
2877bc77032bSmrg  esac
287848af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
2879bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
288066fe65f6Smrg    ac_cv_prog_AWK="$ac_prog"
2881bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
288266fe65f6Smrg    break 2
288366fe65f6Smrg  fi
288466fe65f6Smrgdone
288548af84faSmrg  done
288689d09728SmrgIFS=$as_save_IFS
288766fe65f6Smrg
288866fe65f6Smrgfi
288966fe65f6Smrgfi
289066fe65f6SmrgAWK=$ac_cv_prog_AWK
289166fe65f6Smrgif test -n "$AWK"; then
2892bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2893bc77032bSmrgprintf "%s\n" "$AWK" >&6; }
289466fe65f6Smrgelse
2895bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896bc77032bSmrgprintf "%s\n" "no" >&6; }
289766fe65f6Smrgfi
289866fe65f6Smrg
289989d09728Smrg
290066fe65f6Smrg  test -n "$AWK" && break
290166fe65f6Smrgdone
290266fe65f6Smrg
2903bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904bc77032bSmrgprintf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
290589d09728Smrgset x ${MAKE-make}
2906bc77032bSmrgac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907bc77032bSmrgif eval test \${ac_cv_prog_make_${ac_make}_set+y}
2908bc77032bSmrgthen :
2909bc77032bSmrg  printf %s "(cached) " >&6
2910bc77032bSmrgelse $as_nop
291166fe65f6Smrg  cat >conftest.make <<\_ACEOF
291289d09728SmrgSHELL = /bin/sh
291366fe65f6Smrgall:
291489d09728Smrg	@echo '@@@%%%=$(MAKE)=@@@%%%'
291566fe65f6Smrg_ACEOF
291648af84faSmrg# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
291789d09728Smrgcase `${MAKE-make} -f conftest.make 2>/dev/null` in
291889d09728Smrg  *@@@%%%=?*=@@@%%%*)
291989d09728Smrg    eval ac_cv_prog_make_${ac_make}_set=yes;;
292089d09728Smrg  *)
292189d09728Smrg    eval ac_cv_prog_make_${ac_make}_set=no;;
292289d09728Smrgesac
292366fe65f6Smrgrm -f conftest.make
292466fe65f6Smrgfi
292589d09728Smrgif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2927bc77032bSmrgprintf "%s\n" "yes" >&6; }
292866fe65f6Smrg  SET_MAKE=
292966fe65f6Smrgelse
2930bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931bc77032bSmrgprintf "%s\n" "no" >&6; }
293266fe65f6Smrg  SET_MAKE="MAKE=${MAKE-make}"
293366fe65f6Smrgfi
293466fe65f6Smrg
293566fe65f6Smrgrm -rf .tst 2>/dev/null
293666fe65f6Smrgmkdir .tst 2>/dev/null
293766fe65f6Smrgif test -d .tst; then
293866fe65f6Smrg  am__leading_dot=.
293966fe65f6Smrgelse
294066fe65f6Smrg  am__leading_dot=_
294166fe65f6Smrgfi
294266fe65f6Smrgrmdir .tst 2>/dev/null
294366fe65f6Smrg
2944c6a6acfbSmrg# Check whether --enable-silent-rules was given.
2945bc77032bSmrgif test ${enable_silent_rules+y}
2946bc77032bSmrgthen :
2947c6a6acfbSmrg  enableval=$enable_silent_rules;
2948c6a6acfbSmrgfi
2949c6a6acfbSmrg
2950c6a6acfbSmrgcase $enable_silent_rules in # (((
2951c6a6acfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
2952c6a6acfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
2953c6a6acfbSmrg    *) AM_DEFAULT_VERBOSITY=1;;
2954c6a6acfbSmrgesac
2955c6a6acfbSmrgam_make=${MAKE-make}
2956bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2957bc77032bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
2958bc77032bSmrgif test ${am_cv_make_support_nested_variables+y}
2959bc77032bSmrgthen :
2960bc77032bSmrg  printf %s "(cached) " >&6
2961bc77032bSmrgelse $as_nop
2962bc77032bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
2963c6a6acfbSmrgBAR0=false
2964c6a6acfbSmrgBAR1=true
2965c6a6acfbSmrgV=1
2966c6a6acfbSmrgam__doit:
2967c6a6acfbSmrg	@$(TRUE)
2968c6a6acfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2969c6a6acfbSmrg  am_cv_make_support_nested_variables=yes
2970c6a6acfbSmrgelse
2971c6a6acfbSmrg  am_cv_make_support_nested_variables=no
2972c6a6acfbSmrgfi
2973c6a6acfbSmrgfi
2974bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2975bc77032bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2976c6a6acfbSmrgif test $am_cv_make_support_nested_variables = yes; then
2977c6a6acfbSmrg    AM_V='$(V)'
2978c6a6acfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2979c6a6acfbSmrgelse
2980c6a6acfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
2981c6a6acfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2982c6a6acfbSmrgfi
2983c6a6acfbSmrgAM_BACKSLASH='\'
2984c6a6acfbSmrg
298589d09728Smrgif test "`cd $srcdir && pwd`" != "`pwd`"; then
298689d09728Smrg  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
298789d09728Smrg  # is not polluted with repeated "-I."
298889d09728Smrg  am__isrc=' -I$(srcdir)'
298989d09728Smrg  # test to see if srcdir already configured
299089d09728Smrg  if test -f $srcdir/config.status; then
299148af84faSmrg    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
299289d09728Smrg  fi
299366fe65f6Smrgfi
299466fe65f6Smrg
299566fe65f6Smrg# test whether we have cygpath
299666fe65f6Smrgif test -z "$CYGPATH_W"; then
299766fe65f6Smrg  if (cygpath --version) >/dev/null 2>/dev/null; then
299866fe65f6Smrg    CYGPATH_W='cygpath -w'
299966fe65f6Smrg  else
300066fe65f6Smrg    CYGPATH_W=echo
300166fe65f6Smrg  fi
300266fe65f6Smrgfi
300366fe65f6Smrg
300466fe65f6Smrg
300566fe65f6Smrg# Define the identity of the package.
300666fe65f6Smrg PACKAGE='font-util'
300722281038Smrg VERSION='1.4.1'
300866fe65f6Smrg
300966fe65f6Smrg
3010bc77032bSmrgprintf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
301166fe65f6Smrg
301266fe65f6Smrg
3013bc77032bSmrgprintf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
301466fe65f6Smrg
301566fe65f6Smrg# Some tools Automake needs.
301666fe65f6Smrg
301766fe65f6SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
301866fe65f6Smrg
301966fe65f6Smrg
302066fe65f6SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
302166fe65f6Smrg
302266fe65f6Smrg
302366fe65f6SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
302466fe65f6Smrg
302566fe65f6Smrg
302666fe65f6SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
302766fe65f6Smrg
302866fe65f6Smrg
302966fe65f6SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
303066fe65f6Smrg
3031c6a6acfbSmrg# For better backward compatibility.  To be removed once Automake 1.9.x
3032c6a6acfbSmrg# dies out for good.  For more background, see:
3033bc77032bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3034bc77032bSmrg# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3035c6a6acfbSmrgmkdir_p='$(MKDIR_P)'
303666fe65f6Smrg
3037c6a6acfbSmrg# We need awk for the "check" target (and possibly the TAP driver).  The
3038c6a6acfbSmrg# system "awk" is bad on some platforms.
3039c6a6acfbSmrg# Always define AMTAR for backward compatibility.  Yes, it's still used
3040c6a6acfbSmrg# in the wild :-(  We should find a proper way to deprecate it ...
3041c6a6acfbSmrgAMTAR='$${TAR-tar}'
3042a9274bcdSmrg
3043a9274bcdSmrg
3044c6a6acfbSmrg# We'll loop over all known methods to create a tar archive until one works.
3045c6a6acfbSmrg_am_tools='gnutar  pax cpio none'
3046a9274bcdSmrg
3047c6a6acfbSmrgam__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3048a9274bcdSmrg
3049a9274bcdSmrg
3050a9274bcdSmrg
3051a9274bcdSmrg
305266fe65f6Smrg
3053bc77032bSmrg# Variables for tags utilities; see am/tags.am
3054bc77032bSmrgif test -z "$CTAGS"; then
3055bc77032bSmrg  CTAGS=ctags
3056bc77032bSmrgfi
3057bc77032bSmrg
3058bc77032bSmrgif test -z "$ETAGS"; then
3059bc77032bSmrg  ETAGS=etags
3060bc77032bSmrgfi
3061bc77032bSmrg
3062bc77032bSmrgif test -z "$CSCOPE"; then
3063bc77032bSmrg  CSCOPE=cscope
3064bc77032bSmrgfi
3065bc77032bSmrg
3066bc77032bSmrg
306766fe65f6Smrg
3068c6a6acfbSmrg# POSIX will say in a future version that running "rm -f" with no argument
3069c6a6acfbSmrg# is OK; and we want to be able to make that assumption in our Makefile
3070c6a6acfbSmrg# recipes.  So use an aggressive probe to check that the usage we want is
3071c6a6acfbSmrg# actually supported "in the wild" to an acceptable degree.
3072c6a6acfbSmrg# See automake bug#10828.
3073c6a6acfbSmrg# To make any issue more visible, cause the running configure to be aborted
3074c6a6acfbSmrg# by default if the 'rm' program in use doesn't match our expectations; the
3075c6a6acfbSmrg# user can still override this though.
3076c6a6acfbSmrgif rm -f && rm -fr && rm -rf; then : OK; else
3077c6a6acfbSmrg  cat >&2 <<'END'
3078c6a6acfbSmrgOops!
3079c6a6acfbSmrg
3080c6a6acfbSmrgYour 'rm' program seems unable to run without file operands specified
3081c6a6acfbSmrgon the command line, even when the '-f' option is present.  This is contrary
3082c6a6acfbSmrgto the behaviour of most rm programs out there, and not conforming with
3083c6a6acfbSmrgthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3084c6a6acfbSmrg
3085c6a6acfbSmrgPlease tell bug-automake@gnu.org about your system, including the value
3086c6a6acfbSmrgof your $PATH and any error possibly output before this message.  This
3087c6a6acfbSmrgcan help us improve future automake versions.
3088c6a6acfbSmrg
3089c6a6acfbSmrgEND
3090c6a6acfbSmrg  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3091c6a6acfbSmrg    echo 'Configuration will proceed anyway, since you have set the' >&2
3092c6a6acfbSmrg    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3093c6a6acfbSmrg    echo >&2
3094c6a6acfbSmrg  else
3095c6a6acfbSmrg    cat >&2 <<'END'
3096c6a6acfbSmrgAborting the configuration process, to ensure you take notice of the issue.
3097c6a6acfbSmrg
3098c6a6acfbSmrgYou can download and install GNU coreutils to get an 'rm' implementation
3099bc77032bSmrgthat behaves properly: <https://www.gnu.org/software/coreutils/>.
3100c6a6acfbSmrg
3101c6a6acfbSmrgIf you want to complete the configuration process using your problematic
3102c6a6acfbSmrg'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3103c6a6acfbSmrgto "yes", and re-run configure.
310466fe65f6Smrg
3105c6a6acfbSmrgEND
3106c6a6acfbSmrg    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3107c6a6acfbSmrg  fi
3108c6a6acfbSmrgfi
310966fe65f6Smrg
311066fe65f6Smrg
311148af84faSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3112a9274bcdSmrg
3113a9274bcdSmrg
3114a9274bcdSmrg
3115a9274bcdSmrg
3116a9274bcdSmrg
3117a9274bcdSmrg
3118a9274bcdSmrg
3119a9274bcdSmrg
312089d09728Smrg
312189d09728Smrg
312289d09728Smrg
3123bc77032bSmrg
3124bc77032bSmrg
3125bc77032bSmrg
3126bc77032bSmrg
3127bc77032bSmrg
3128bc77032bSmrg
3129bc77032bSmrg
3130bc77032bSmrg
3131bc77032bSmrg
313289d09728SmrgDEPDIR="${am__leading_dot}deps"
313389d09728Smrg
313489d09728Smrgac_config_commands="$ac_config_commands depfiles"
313589d09728Smrg
3136bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3137bc77032bSmrgprintf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3138bc77032bSmrgcat > confinc.mk << 'END'
313989d09728Smrgam__doit:
3140bc77032bSmrg	@echo this is the am__doit target >confinc.out
314189d09728Smrg.PHONY: am__doit
314289d09728SmrgEND
314389d09728Smrgam__include="#"
314489d09728Smrgam__quote=
3145bc77032bSmrg# BSD make does it like this.
3146bc77032bSmrgecho '.include "confinc.mk" # ignored' > confmf.BSD
3147bc77032bSmrg# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3148bc77032bSmrgecho 'include confinc.mk # ignored' > confmf.GNU
3149bc77032bSmrg_am_result=no
3150bc77032bSmrgfor s in GNU BSD; do
3151bc77032bSmrg  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3152bc77032bSmrg   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3153bc77032bSmrg   ac_status=$?
3154bc77032bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155bc77032bSmrg   (exit $ac_status); }
3156bc77032bSmrg  case $?:`cat confinc.out 2>/dev/null` in #(
3157bc77032bSmrg  '0:this is the am__doit target') :
3158bc77032bSmrg    case $s in #(
3159bc77032bSmrg  BSD) :
3160bc77032bSmrg    am__include='.include' am__quote='"' ;; #(
3161bc77032bSmrg  *) :
3162bc77032bSmrg    am__include='include' am__quote='' ;;
3163bc77032bSmrgesac ;; #(
3164bc77032bSmrg  *) :
3165a9274bcdSmrg     ;;
3166bc77032bSmrgesac
3167bc77032bSmrg  if test "$am__include" != "#"; then
3168bc77032bSmrg    _am_result="yes ($s style)"
3169bc77032bSmrg    break
3170bc77032bSmrg  fi
3171bc77032bSmrgdone
3172bc77032bSmrgrm -f confinc.* confmf.*
3173bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3174bc77032bSmrgprintf "%s\n" "${_am_result}" >&6; }
317589d09728Smrg
317689d09728Smrg# Check whether --enable-dependency-tracking was given.
3177bc77032bSmrgif test ${enable_dependency_tracking+y}
3178bc77032bSmrgthen :
317989d09728Smrg  enableval=$enable_dependency_tracking;
318089d09728Smrgfi
318189d09728Smrg
318289d09728Smrgif test "x$enable_dependency_tracking" != xno; then
318389d09728Smrg  am_depcomp="$ac_aux_dir/depcomp"
318489d09728Smrg  AMDEPBACKSLASH='\'
3185c6a6acfbSmrg  am__nodep='_no'
318689d09728Smrgfi
318789d09728Smrg if test "x$enable_dependency_tracking" != xno; then
318889d09728Smrg  AMDEP_TRUE=
318989d09728Smrg  AMDEP_FALSE='#'
319089d09728Smrgelse
319189d09728Smrg  AMDEP_TRUE='#'
319289d09728Smrg  AMDEP_FALSE=
319389d09728Smrgfi
319466fe65f6Smrg
319566fe65f6Smrg
319666fe65f6Smrgac_ext=c
319766fe65f6Smrgac_cpp='$CPP $CPPFLAGS'
319866fe65f6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
319966fe65f6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
320066fe65f6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
320166fe65f6Smrgif test -n "$ac_tool_prefix"; then
320266fe65f6Smrg  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
320366fe65f6Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2
3204bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3206bc77032bSmrgif test ${ac_cv_prog_CC+y}
3207bc77032bSmrgthen :
3208bc77032bSmrg  printf %s "(cached) " >&6
3209bc77032bSmrgelse $as_nop
321066fe65f6Smrg  if test -n "$CC"; then
321166fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
321266fe65f6Smrgelse
321366fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
321466fe65f6Smrgfor as_dir in $PATH
321566fe65f6Smrgdo
321666fe65f6Smrg  IFS=$as_save_IFS
3217bc77032bSmrg  case $as_dir in #(((
3218bc77032bSmrg    '') as_dir=./ ;;
3219bc77032bSmrg    */) ;;
3220bc77032bSmrg    *) as_dir=$as_dir/ ;;
3221bc77032bSmrg  esac
322248af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3223bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
322466fe65f6Smrg    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
322666fe65f6Smrg    break 2
322766fe65f6Smrg  fi
322866fe65f6Smrgdone
322948af84faSmrg  done
323089d09728SmrgIFS=$as_save_IFS
323166fe65f6Smrg
323266fe65f6Smrgfi
323366fe65f6Smrgfi
323466fe65f6SmrgCC=$ac_cv_prog_CC
323566fe65f6Smrgif test -n "$CC"; then
3236bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237bc77032bSmrgprintf "%s\n" "$CC" >&6; }
323866fe65f6Smrgelse
3239bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240bc77032bSmrgprintf "%s\n" "no" >&6; }
324166fe65f6Smrgfi
324266fe65f6Smrg
324389d09728Smrg
324466fe65f6Smrgfi
324566fe65f6Smrgif test -z "$ac_cv_prog_CC"; then
324666fe65f6Smrg  ac_ct_CC=$CC
324766fe65f6Smrg  # Extract the first word of "gcc", so it can be a program name with args.
324866fe65f6Smrgset dummy gcc; ac_word=$2
3249bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3251bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3252bc77032bSmrgthen :
3253bc77032bSmrg  printf %s "(cached) " >&6
3254bc77032bSmrgelse $as_nop
325566fe65f6Smrg  if test -n "$ac_ct_CC"; then
325666fe65f6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
325766fe65f6Smrgelse
325866fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
325966fe65f6Smrgfor as_dir in $PATH
326066fe65f6Smrgdo
326166fe65f6Smrg  IFS=$as_save_IFS
3262bc77032bSmrg  case $as_dir in #(((
3263bc77032bSmrg    '') as_dir=./ ;;
3264bc77032bSmrg    */) ;;
3265bc77032bSmrg    *) as_dir=$as_dir/ ;;
3266bc77032bSmrg  esac
326748af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3268bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
326966fe65f6Smrg    ac_cv_prog_ac_ct_CC="gcc"
3270bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
327166fe65f6Smrg    break 2
327266fe65f6Smrg  fi
327366fe65f6Smrgdone
327448af84faSmrg  done
327589d09728SmrgIFS=$as_save_IFS
327666fe65f6Smrg
327766fe65f6Smrgfi
327866fe65f6Smrgfi
327966fe65f6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
328066fe65f6Smrgif test -n "$ac_ct_CC"; then
3281bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
328366fe65f6Smrgelse
3284bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285bc77032bSmrgprintf "%s\n" "no" >&6; }
328666fe65f6Smrgfi
328766fe65f6Smrg
328889d09728Smrg  if test "x$ac_ct_CC" = x; then
328989d09728Smrg    CC=""
329089d09728Smrg  else
329189d09728Smrg    case $cross_compiling:$ac_tool_warned in
329289d09728Smrgyes:)
3293bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
329589d09728Smrgac_tool_warned=yes ;;
329689d09728Smrgesac
329789d09728Smrg    CC=$ac_ct_CC
329889d09728Smrg  fi
329966fe65f6Smrgelse
330066fe65f6Smrg  CC="$ac_cv_prog_CC"
330166fe65f6Smrgfi
330266fe65f6Smrg
330366fe65f6Smrgif test -z "$CC"; then
330489d09728Smrg          if test -n "$ac_tool_prefix"; then
330589d09728Smrg    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
330666fe65f6Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2
3307bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3309bc77032bSmrgif test ${ac_cv_prog_CC+y}
3310bc77032bSmrgthen :
3311bc77032bSmrg  printf %s "(cached) " >&6
3312bc77032bSmrgelse $as_nop
331366fe65f6Smrg  if test -n "$CC"; then
331466fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
331566fe65f6Smrgelse
331666fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331766fe65f6Smrgfor as_dir in $PATH
331866fe65f6Smrgdo
331966fe65f6Smrg  IFS=$as_save_IFS
3320bc77032bSmrg  case $as_dir in #(((
3321bc77032bSmrg    '') as_dir=./ ;;
3322bc77032bSmrg    */) ;;
3323bc77032bSmrg    *) as_dir=$as_dir/ ;;
3324bc77032bSmrg  esac
332548af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3326bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
332766fe65f6Smrg    ac_cv_prog_CC="${ac_tool_prefix}cc"
3328bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
332966fe65f6Smrg    break 2
333066fe65f6Smrg  fi
333166fe65f6Smrgdone
333248af84faSmrg  done
333389d09728SmrgIFS=$as_save_IFS
333466fe65f6Smrg
333566fe65f6Smrgfi
333666fe65f6Smrgfi
333766fe65f6SmrgCC=$ac_cv_prog_CC
333866fe65f6Smrgif test -n "$CC"; then
3339bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340bc77032bSmrgprintf "%s\n" "$CC" >&6; }
334166fe65f6Smrgelse
3342bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343bc77032bSmrgprintf "%s\n" "no" >&6; }
334466fe65f6Smrgfi
334566fe65f6Smrg
334689d09728Smrg
334789d09728Smrg  fi
334866fe65f6Smrgfi
334989d09728Smrgif test -z "$CC"; then
335066fe65f6Smrg  # Extract the first word of "cc", so it can be a program name with args.
335166fe65f6Smrgset dummy cc; ac_word=$2
3352bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3354bc77032bSmrgif test ${ac_cv_prog_CC+y}
3355bc77032bSmrgthen :
3356bc77032bSmrg  printf %s "(cached) " >&6
3357bc77032bSmrgelse $as_nop
335889d09728Smrg  if test -n "$CC"; then
335989d09728Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
336066fe65f6Smrgelse
336189d09728Smrg  ac_prog_rejected=no
336266fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
336366fe65f6Smrgfor as_dir in $PATH
336466fe65f6Smrgdo
336566fe65f6Smrg  IFS=$as_save_IFS
3366bc77032bSmrg  case $as_dir in #(((
3367bc77032bSmrg    '') as_dir=./ ;;
3368bc77032bSmrg    */) ;;
3369bc77032bSmrg    *) as_dir=$as_dir/ ;;
3370bc77032bSmrg  esac
337148af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3372bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3373bc77032bSmrg    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
337489d09728Smrg       ac_prog_rejected=yes
337589d09728Smrg       continue
337689d09728Smrg     fi
337789d09728Smrg    ac_cv_prog_CC="cc"
3378bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
337966fe65f6Smrg    break 2
338066fe65f6Smrg  fi
338166fe65f6Smrgdone
338248af84faSmrg  done
338389d09728SmrgIFS=$as_save_IFS
338466fe65f6Smrg
338566fe65f6Smrgif test $ac_prog_rejected = yes; then
338666fe65f6Smrg  # We found a bogon in the path, so make sure we never use it.
338766fe65f6Smrg  set dummy $ac_cv_prog_CC
338866fe65f6Smrg  shift
338966fe65f6Smrg  if test $# != 0; then
339066fe65f6Smrg    # We chose a different compiler from the bogus one.
339166fe65f6Smrg    # However, it has the same basename, so the bogon will be chosen
339266fe65f6Smrg    # first if we set CC to just the basename; use the full file name.
339366fe65f6Smrg    shift
3394bc77032bSmrg    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
339566fe65f6Smrg  fi
339666fe65f6Smrgfi
339766fe65f6Smrgfi
339866fe65f6Smrgfi
339966fe65f6SmrgCC=$ac_cv_prog_CC
340066fe65f6Smrgif test -n "$CC"; then
3401bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402bc77032bSmrgprintf "%s\n" "$CC" >&6; }
340366fe65f6Smrgelse
3404bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405bc77032bSmrgprintf "%s\n" "no" >&6; }
340666fe65f6Smrgfi
340766fe65f6Smrg
340889d09728Smrg
340966fe65f6Smrgfi
341066fe65f6Smrgif test -z "$CC"; then
341166fe65f6Smrg  if test -n "$ac_tool_prefix"; then
341289d09728Smrg  for ac_prog in cl.exe
341366fe65f6Smrg  do
341466fe65f6Smrg    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
341566fe65f6Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2
3416bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3418bc77032bSmrgif test ${ac_cv_prog_CC+y}
3419bc77032bSmrgthen :
3420bc77032bSmrg  printf %s "(cached) " >&6
3421bc77032bSmrgelse $as_nop
342266fe65f6Smrg  if test -n "$CC"; then
342366fe65f6Smrg  ac_cv_prog_CC="$CC" # Let the user override the test.
342466fe65f6Smrgelse
342566fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
342666fe65f6Smrgfor as_dir in $PATH
342766fe65f6Smrgdo
342866fe65f6Smrg  IFS=$as_save_IFS
3429bc77032bSmrg  case $as_dir in #(((
3430bc77032bSmrg    '') as_dir=./ ;;
3431bc77032bSmrg    */) ;;
3432bc77032bSmrg    *) as_dir=$as_dir/ ;;
3433bc77032bSmrg  esac
343448af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3435bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
343666fe65f6Smrg    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
343866fe65f6Smrg    break 2
343966fe65f6Smrg  fi
344066fe65f6Smrgdone
344148af84faSmrg  done
344289d09728SmrgIFS=$as_save_IFS
344366fe65f6Smrg
344466fe65f6Smrgfi
344566fe65f6Smrgfi
344666fe65f6SmrgCC=$ac_cv_prog_CC
344766fe65f6Smrgif test -n "$CC"; then
3448bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449bc77032bSmrgprintf "%s\n" "$CC" >&6; }
345066fe65f6Smrgelse
3451bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452bc77032bSmrgprintf "%s\n" "no" >&6; }
345366fe65f6Smrgfi
345466fe65f6Smrg
345589d09728Smrg
345666fe65f6Smrg    test -n "$CC" && break
345766fe65f6Smrg  done
345866fe65f6Smrgfi
345966fe65f6Smrgif test -z "$CC"; then
346066fe65f6Smrg  ac_ct_CC=$CC
346189d09728Smrg  for ac_prog in cl.exe
346266fe65f6Smrgdo
346366fe65f6Smrg  # Extract the first word of "$ac_prog", so it can be a program name with args.
346466fe65f6Smrgset dummy $ac_prog; ac_word=$2
3465bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3467bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3468bc77032bSmrgthen :
3469bc77032bSmrg  printf %s "(cached) " >&6
3470bc77032bSmrgelse $as_nop
347166fe65f6Smrg  if test -n "$ac_ct_CC"; then
347266fe65f6Smrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
347366fe65f6Smrgelse
347466fe65f6Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
347566fe65f6Smrgfor as_dir in $PATH
347666fe65f6Smrgdo
347766fe65f6Smrg  IFS=$as_save_IFS
3478bc77032bSmrg  case $as_dir in #(((
3479bc77032bSmrg    '') as_dir=./ ;;
3480bc77032bSmrg    */) ;;
3481bc77032bSmrg    *) as_dir=$as_dir/ ;;
3482bc77032bSmrg  esac
348348af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3484bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
348566fe65f6Smrg    ac_cv_prog_ac_ct_CC="$ac_prog"
3486bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
348766fe65f6Smrg    break 2
348866fe65f6Smrg  fi
348966fe65f6Smrgdone
349048af84faSmrg  done
349189d09728SmrgIFS=$as_save_IFS
349266fe65f6Smrg
349366fe65f6Smrgfi
349466fe65f6Smrgfi
349566fe65f6Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC
349666fe65f6Smrgif test -n "$ac_ct_CC"; then
3497bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3498bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
349966fe65f6Smrgelse
3500bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501bc77032bSmrgprintf "%s\n" "no" >&6; }
350266fe65f6Smrgfi
350366fe65f6Smrg
350489d09728Smrg
350566fe65f6Smrg  test -n "$ac_ct_CC" && break
350666fe65f6Smrgdone
350766fe65f6Smrg
350889d09728Smrg  if test "x$ac_ct_CC" = x; then
350989d09728Smrg    CC=""
351089d09728Smrg  else
351189d09728Smrg    case $cross_compiling:$ac_tool_warned in
351289d09728Smrgyes:)
3513bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3514bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3515bc77032bSmrgac_tool_warned=yes ;;
3516bc77032bSmrgesac
3517bc77032bSmrg    CC=$ac_ct_CC
3518bc77032bSmrg  fi
3519bc77032bSmrgfi
3520bc77032bSmrg
3521bc77032bSmrgfi
3522bc77032bSmrgif test -z "$CC"; then
3523bc77032bSmrg  if test -n "$ac_tool_prefix"; then
3524bc77032bSmrg  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3525bc77032bSmrgset dummy ${ac_tool_prefix}clang; ac_word=$2
3526bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3528bc77032bSmrgif test ${ac_cv_prog_CC+y}
3529bc77032bSmrgthen :
3530bc77032bSmrg  printf %s "(cached) " >&6
3531bc77032bSmrgelse $as_nop
3532bc77032bSmrg  if test -n "$CC"; then
3533bc77032bSmrg  ac_cv_prog_CC="$CC" # Let the user override the test.
3534bc77032bSmrgelse
3535bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536bc77032bSmrgfor as_dir in $PATH
3537bc77032bSmrgdo
3538bc77032bSmrg  IFS=$as_save_IFS
3539bc77032bSmrg  case $as_dir in #(((
3540bc77032bSmrg    '') as_dir=./ ;;
3541bc77032bSmrg    */) ;;
3542bc77032bSmrg    *) as_dir=$as_dir/ ;;
3543bc77032bSmrg  esac
3544bc77032bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3545bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546bc77032bSmrg    ac_cv_prog_CC="${ac_tool_prefix}clang"
3547bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548bc77032bSmrg    break 2
3549bc77032bSmrg  fi
3550bc77032bSmrgdone
3551bc77032bSmrg  done
3552bc77032bSmrgIFS=$as_save_IFS
3553bc77032bSmrg
3554bc77032bSmrgfi
3555bc77032bSmrgfi
3556bc77032bSmrgCC=$ac_cv_prog_CC
3557bc77032bSmrgif test -n "$CC"; then
3558bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559bc77032bSmrgprintf "%s\n" "$CC" >&6; }
3560bc77032bSmrgelse
3561bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562bc77032bSmrgprintf "%s\n" "no" >&6; }
3563bc77032bSmrgfi
3564bc77032bSmrg
3565bc77032bSmrg
3566bc77032bSmrgfi
3567bc77032bSmrgif test -z "$ac_cv_prog_CC"; then
3568bc77032bSmrg  ac_ct_CC=$CC
3569bc77032bSmrg  # Extract the first word of "clang", so it can be a program name with args.
3570bc77032bSmrgset dummy clang; ac_word=$2
3571bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
3573bc77032bSmrgif test ${ac_cv_prog_ac_ct_CC+y}
3574bc77032bSmrgthen :
3575bc77032bSmrg  printf %s "(cached) " >&6
3576bc77032bSmrgelse $as_nop
3577bc77032bSmrg  if test -n "$ac_ct_CC"; then
3578bc77032bSmrg  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3579bc77032bSmrgelse
3580bc77032bSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581bc77032bSmrgfor as_dir in $PATH
3582bc77032bSmrgdo
3583bc77032bSmrg  IFS=$as_save_IFS
3584bc77032bSmrg  case $as_dir in #(((
3585bc77032bSmrg    '') as_dir=./ ;;
3586bc77032bSmrg    */) ;;
3587bc77032bSmrg    *) as_dir=$as_dir/ ;;
3588bc77032bSmrg  esac
3589bc77032bSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
3590bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591bc77032bSmrg    ac_cv_prog_ac_ct_CC="clang"
3592bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593bc77032bSmrg    break 2
3594bc77032bSmrg  fi
3595bc77032bSmrgdone
3596bc77032bSmrg  done
3597bc77032bSmrgIFS=$as_save_IFS
3598bc77032bSmrg
3599bc77032bSmrgfi
3600bc77032bSmrgfi
3601bc77032bSmrgac_ct_CC=$ac_cv_prog_ac_ct_CC
3602bc77032bSmrgif test -n "$ac_ct_CC"; then
3603bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3604bc77032bSmrgprintf "%s\n" "$ac_ct_CC" >&6; }
3605bc77032bSmrgelse
3606bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607bc77032bSmrgprintf "%s\n" "no" >&6; }
3608bc77032bSmrgfi
3609bc77032bSmrg
3610bc77032bSmrg  if test "x$ac_ct_CC" = x; then
3611bc77032bSmrg    CC=""
3612bc77032bSmrg  else
3613bc77032bSmrg    case $cross_compiling:$ac_tool_warned in
3614bc77032bSmrgyes:)
3615bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
361789d09728Smrgac_tool_warned=yes ;;
361889d09728Smrgesac
361989d09728Smrg    CC=$ac_ct_CC
362089d09728Smrg  fi
3621bc77032bSmrgelse
3622bc77032bSmrg  CC="$ac_cv_prog_CC"
362366fe65f6Smrgfi
362466fe65f6Smrg
362566fe65f6Smrgfi
362666fe65f6Smrg
362766fe65f6Smrg
3628bc77032bSmrgtest -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
363048af84faSmrgas_fn_error $? "no acceptable C compiler found in \$PATH
363148af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
363266fe65f6Smrg
363366fe65f6Smrg# Provide some information about the compiler.
3634bc77032bSmrgprintf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
363589d09728Smrgset X $ac_compile
363689d09728Smrgac_compiler=$2
3637bc77032bSmrgfor ac_option in --version -v -V -qversion -version; do
363848af84faSmrg  { { ac_try="$ac_compiler $ac_option >&5"
3639a9274bcdSmrgcase "(($ac_try" in
3640a9274bcdSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641a9274bcdSmrg  *) ac_try_echo=$ac_try;;
3642a9274bcdSmrgesac
364348af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
364548af84faSmrg  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3646a9274bcdSmrg  ac_status=$?
364748af84faSmrg  if test -s conftest.err; then
364848af84faSmrg    sed '10a\
364948af84faSmrg... rest of stderr output deleted ...
365048af84faSmrg         10q' conftest.err >conftest.er1
365148af84faSmrg    cat conftest.er1 >&5
365248af84faSmrg  fi
365348af84faSmrg  rm -f conftest.er1 conftest.err
3654bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
365548af84faSmrg  test $ac_status = 0; }
365648af84faSmrgdone
365766fe65f6Smrg
365848af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
365966fe65f6Smrg/* end confdefs.h.  */
3660a9274bcdSmrg
366166fe65f6Smrgint
3662bc77032bSmrgmain (void)
366366fe65f6Smrg{
366466fe65f6Smrg
366566fe65f6Smrg  ;
366666fe65f6Smrg  return 0;
366766fe65f6Smrg}
366866fe65f6Smrg_ACEOF
366966fe65f6Smrgac_clean_files_save=$ac_clean_files
3670a9274bcdSmrgac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
367166fe65f6Smrg# Try to create an executable without -o first, disregard a.out.
367266fe65f6Smrg# It will help us diagnose broken compilers, and finding out an intuition
367366fe65f6Smrg# of exeext.
3674bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3675bc77032bSmrgprintf %s "checking whether the C compiler works... " >&6; }
3676bc77032bSmrgac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
367789d09728Smrg
367889d09728Smrg# The possible output files:
367989d09728Smrgac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
368089d09728Smrg
368189d09728Smrgac_rmfiles=
368289d09728Smrgfor ac_file in $ac_files
368389d09728Smrgdo
368489d09728Smrg  case $ac_file in
368589d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
368689d09728Smrg    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
368789d09728Smrg  esac
368889d09728Smrgdone
368989d09728Smrgrm -f $ac_rmfiles
369089d09728Smrg
369148af84faSmrgif { { ac_try="$ac_link_default"
369289d09728Smrgcase "(($ac_try" in
369389d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
369489d09728Smrg  *) ac_try_echo=$ac_try;;
369589d09728Smrgesac
369648af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
369889d09728Smrg  (eval "$ac_link_default") 2>&5
369966fe65f6Smrg  ac_status=$?
3700bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701bc77032bSmrg  test $ac_status = 0; }
3702bc77032bSmrgthen :
370389d09728Smrg  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
370489d09728Smrg# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
370589d09728Smrg# in a Makefile.  We should not override ac_cv_exeext if it was cached,
370689d09728Smrg# so that the user can short-circuit this test for compilers unknown to
370789d09728Smrg# Autoconf.
370889d09728Smrgfor ac_file in $ac_files ''
370966fe65f6Smrgdo
371066fe65f6Smrg  test -f "$ac_file" || continue
371166fe65f6Smrg  case $ac_file in
371289d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
371366fe65f6Smrg	;;
371466fe65f6Smrg    [ab].out )
371566fe65f6Smrg	# We found the default executable, but exeext='' is most
371666fe65f6Smrg	# certainly right.
371766fe65f6Smrg	break;;
371866fe65f6Smrg    *.* )
3719bc77032bSmrg	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
372089d09728Smrg	then :; else
372189d09728Smrg	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
372289d09728Smrg	fi
372389d09728Smrg	# We set ac_cv_exeext here because the later test for it is not
372489d09728Smrg	# safe: cross compilers may not add the suffix if given an `-o'
372589d09728Smrg	# argument, so we may need to know it at that point already.
372689d09728Smrg	# Even if this section looks crufty: it has the advantage of
372789d09728Smrg	# actually working.
372866fe65f6Smrg	break;;
372966fe65f6Smrg    * )
373066fe65f6Smrg	break;;
373166fe65f6Smrg  esac
373266fe65f6Smrgdone
373389d09728Smrgtest "$ac_cv_exeext" = no && ac_cv_exeext=
373489d09728Smrg
3735bc77032bSmrgelse $as_nop
373689d09728Smrg  ac_file=''
373789d09728Smrgfi
3738bc77032bSmrgif test -z "$ac_file"
3739bc77032bSmrgthen :
3740bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741bc77032bSmrgprintf "%s\n" "no" >&6; }
3742bc77032bSmrgprintf "%s\n" "$as_me: failed program was:" >&5
374366fe65f6Smrgsed 's/^/| /' conftest.$ac_ext >&5
374466fe65f6Smrg
3745bc77032bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
374748af84faSmrgas_fn_error 77 "C compiler cannot create executables
374848af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
3749bc77032bSmrgelse $as_nop
3750bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751bc77032bSmrgprintf "%s\n" "yes" >&6; }
3752bc77032bSmrgfi
3753bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754bc77032bSmrgprintf %s "checking for C compiler default output file name... " >&6; }
3755bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3756bc77032bSmrgprintf "%s\n" "$ac_file" >&6; }
375766fe65f6Smrgac_exeext=$ac_cv_exeext
375866fe65f6Smrg
3759a9274bcdSmrgrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
376066fe65f6Smrgac_clean_files=$ac_clean_files_save
3761bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3762bc77032bSmrgprintf %s "checking for suffix of executables... " >&6; }
376348af84faSmrgif { { ac_try="$ac_link"
376489d09728Smrgcase "(($ac_try" in
376589d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
376689d09728Smrg  *) ac_try_echo=$ac_try;;
376789d09728Smrgesac
376848af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
377089d09728Smrg  (eval "$ac_link") 2>&5
377166fe65f6Smrg  ac_status=$?
3772bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773bc77032bSmrg  test $ac_status = 0; }
3774bc77032bSmrgthen :
377566fe65f6Smrg  # If both `conftest.exe' and `conftest' are `present' (well, observable)
377666fe65f6Smrg# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
377766fe65f6Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with
377866fe65f6Smrg# `rm'.
377966fe65f6Smrgfor ac_file in conftest.exe conftest conftest.*; do
378066fe65f6Smrg  test -f "$ac_file" || continue
378166fe65f6Smrg  case $ac_file in
378289d09728Smrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
378366fe65f6Smrg    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
378466fe65f6Smrg	  break;;
378566fe65f6Smrg    * ) break;;
378666fe65f6Smrg  esac
378766fe65f6Smrgdone
3788bc77032bSmrgelse $as_nop
3789bc77032bSmrg  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3790bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
379148af84faSmrgas_fn_error $? "cannot compute suffix of executables: cannot compile and link
379248af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
379366fe65f6Smrgfi
379448af84faSmrgrm -f conftest conftest$ac_cv_exeext
3795bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3796bc77032bSmrgprintf "%s\n" "$ac_cv_exeext" >&6; }
379766fe65f6Smrg
379866fe65f6Smrgrm -f conftest.$ac_ext
379966fe65f6SmrgEXEEXT=$ac_cv_exeext
380066fe65f6Smrgac_exeext=$EXEEXT
380148af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
380266fe65f6Smrg/* end confdefs.h.  */
380348af84faSmrg#include <stdio.h>
380466fe65f6Smrgint
3805bc77032bSmrgmain (void)
380666fe65f6Smrg{
380748af84faSmrgFILE *f = fopen ("conftest.out", "w");
380848af84faSmrg return ferror (f) || fclose (f) != 0;
380966fe65f6Smrg
381066fe65f6Smrg  ;
381166fe65f6Smrg  return 0;
381266fe65f6Smrg}
381366fe65f6Smrg_ACEOF
381448af84faSmrgac_clean_files="$ac_clean_files conftest.out"
381548af84faSmrg# Check that the compiler produces executables we can run.  If not, either
381648af84faSmrg# the compiler is broken, or we cross compile.
3817bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3818bc77032bSmrgprintf %s "checking whether we are cross compiling... " >&6; }
381948af84faSmrgif test "$cross_compiling" != yes; then
382048af84faSmrg  { { ac_try="$ac_link"
382189d09728Smrgcase "(($ac_try" in
382289d09728Smrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
382389d09728Smrg  *) ac_try_echo=$ac_try;;
382489d09728Smrgesac
382548af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
382748af84faSmrg  (eval "$ac_link") 2>&5
382866fe65f6Smrg  ac_status=$?
3829bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
383048af84faSmrg  test $ac_status = 0; }
383148af84faSmrg  if { ac_try='./conftest$ac_cv_exeext'
383248af84faSmrg  { { case "(($ac_try" in
383348af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
383448af84faSmrg  *) ac_try_echo=$ac_try;;
383548af84faSmrgesac
383648af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
383848af84faSmrg  (eval "$ac_try") 2>&5
383948af84faSmrg  ac_status=$?
3840bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
384148af84faSmrg  test $ac_status = 0; }; }; then
384248af84faSmrg    cross_compiling=no
384348af84faSmrg  else
384448af84faSmrg    if test "$cross_compiling" = maybe; then
384548af84faSmrg	cross_compiling=yes
384648af84faSmrg    else
3847bc77032bSmrg	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3849bc77032bSmrgas_fn_error 77 "cannot run C compiled programs.
385048af84faSmrgIf you meant to cross compile, use \`--host'.
385148af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
385248af84faSmrg    fi
385348af84faSmrg  fi
385466fe65f6Smrgfi
3855bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3856bc77032bSmrgprintf "%s\n" "$cross_compiling" >&6; }
385748af84faSmrg
385848af84faSmrgrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
385948af84faSmrgac_clean_files=$ac_clean_files_save
3860bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3861bc77032bSmrgprintf %s "checking for suffix of object files... " >&6; }
3862bc77032bSmrgif test ${ac_cv_objext+y}
3863bc77032bSmrgthen :
3864bc77032bSmrg  printf %s "(cached) " >&6
3865bc77032bSmrgelse $as_nop
386648af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
386748af84faSmrg/* end confdefs.h.  */
386848af84faSmrg
386948af84faSmrgint
3870bc77032bSmrgmain (void)
387148af84faSmrg{
387248af84faSmrg
387348af84faSmrg  ;
387448af84faSmrg  return 0;
387548af84faSmrg}
387648af84faSmrg_ACEOF
387748af84faSmrgrm -f conftest.o conftest.obj
387848af84faSmrgif { { ac_try="$ac_compile"
387948af84faSmrgcase "(($ac_try" in
388048af84faSmrg  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
388148af84faSmrg  *) ac_try_echo=$ac_try;;
388248af84faSmrgesac
388348af84faSmrgeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884bc77032bSmrgprintf "%s\n" "$ac_try_echo"; } >&5
388548af84faSmrg  (eval "$ac_compile") 2>&5
388648af84faSmrg  ac_status=$?
3887bc77032bSmrg  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888bc77032bSmrg  test $ac_status = 0; }
3889bc77032bSmrgthen :
389048af84faSmrg  for ac_file in conftest.o conftest.obj conftest.*; do
389148af84faSmrg  test -f "$ac_file" || continue;
389248af84faSmrg  case $ac_file in
389348af84faSmrg    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
389448af84faSmrg    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
389548af84faSmrg       break;;
389648af84faSmrg  esac
389748af84faSmrgdone
3898bc77032bSmrgelse $as_nop
3899bc77032bSmrg  printf "%s\n" "$as_me: failed program was:" >&5
390048af84faSmrgsed 's/^/| /' conftest.$ac_ext >&5
3901a9274bcdSmrg
3902bc77032bSmrg{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
390448af84faSmrgas_fn_error $? "cannot compute suffix of object files: cannot compile
390548af84faSmrgSee \`config.log' for more details" "$LINENO" 5; }
390648af84faSmrgfi
390766fe65f6Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext
390866fe65f6Smrgfi
3909bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3910bc77032bSmrgprintf "%s\n" "$ac_cv_objext" >&6; }
391166fe65f6SmrgOBJEXT=$ac_cv_objext
391266fe65f6Smrgac_objext=$OBJEXT
3913bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3914bc77032bSmrgprintf %s "checking whether the compiler supports GNU C... " >&6; }
3915bc77032bSmrgif test ${ac_cv_c_compiler_gnu+y}
3916bc77032bSmrgthen :
3917bc77032bSmrg  printf %s "(cached) " >&6
3918bc77032bSmrgelse $as_nop
391948af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
392066fe65f6Smrg/* end confdefs.h.  */
392166fe65f6Smrg
392266fe65f6Smrgint
3923bc77032bSmrgmain (void)
392466fe65f6Smrg{
392566fe65f6Smrg#ifndef __GNUC__
392666fe65f6Smrg       choke me
392766fe65f6Smrg#endif
392866fe65f6Smrg
392966fe65f6Smrg  ;
393066fe65f6Smrg  return 0;
393166fe65f6Smrg}
393266fe65f6Smrg_ACEOF
3933bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3934bc77032bSmrgthen :
393566fe65f6Smrg  ac_compiler_gnu=yes
3936bc77032bSmrgelse $as_nop
393748af84faSmrg  ac_compiler_gnu=no
393866fe65f6Smrgfi
3939bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
394066fe65f6Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu
394166fe65f6Smrg
394266fe65f6Smrgfi
3943bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3944bc77032bSmrgprintf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3945bc77032bSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
3946bc77032bSmrg
394789d09728Smrgif test $ac_compiler_gnu = yes; then
394889d09728Smrg  GCC=yes
394989d09728Smrgelse
395089d09728Smrg  GCC=
395189d09728Smrgfi
3952bc77032bSmrgac_test_CFLAGS=${CFLAGS+y}
395366fe65f6Smrgac_save_CFLAGS=$CFLAGS
3954bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3955bc77032bSmrgprintf %s "checking whether $CC accepts -g... " >&6; }
3956bc77032bSmrgif test ${ac_cv_prog_cc_g+y}
3957bc77032bSmrgthen :
3958bc77032bSmrg  printf %s "(cached) " >&6
3959bc77032bSmrgelse $as_nop
396089d09728Smrg  ac_save_c_werror_flag=$ac_c_werror_flag
396189d09728Smrg   ac_c_werror_flag=yes
396289d09728Smrg   ac_cv_prog_cc_g=no
396389d09728Smrg   CFLAGS="-g"
396448af84faSmrg   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
396566fe65f6Smrg/* end confdefs.h.  */
396666fe65f6Smrg
396766fe65f6Smrgint
3968bc77032bSmrgmain (void)
396966fe65f6Smrg{
397066fe65f6Smrg
397166fe65f6Smrg  ;
397266fe65f6Smrg  return 0;
397366fe65f6Smrg}
397466fe65f6Smrg_ACEOF
3975bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3976bc77032bSmrgthen :
397766fe65f6Smrg  ac_cv_prog_cc_g=yes
3978bc77032bSmrgelse $as_nop
397948af84faSmrg  CFLAGS=""
398048af84faSmrg      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
398189d09728Smrg/* end confdefs.h.  */
398289d09728Smrg
398389d09728Smrgint
3984bc77032bSmrgmain (void)
398589d09728Smrg{
398689d09728Smrg
398789d09728Smrg  ;
398889d09728Smrg  return 0;
398989d09728Smrg}
399089d09728Smrg_ACEOF
3991bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
3992bc77032bSmrgthen :
3993a9274bcdSmrg
3994bc77032bSmrgelse $as_nop
399548af84faSmrg  ac_c_werror_flag=$ac_save_c_werror_flag
399689d09728Smrg	 CFLAGS="-g"
399748af84faSmrg	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
399889d09728Smrg/* end confdefs.h.  */
399989d09728Smrg
400089d09728Smrgint
4001bc77032bSmrgmain (void)
400289d09728Smrg{
400389d09728Smrg
400489d09728Smrg  ;
400589d09728Smrg  return 0;
400689d09728Smrg}
400789d09728Smrg_ACEOF
4008bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4009bc77032bSmrgthen :
401089d09728Smrg  ac_cv_prog_cc_g=yes
401166fe65f6Smrgfi
4012bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401366fe65f6Smrgfi
4014bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401589d09728Smrgfi
4016bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
401789d09728Smrg   ac_c_werror_flag=$ac_save_c_werror_flag
401889d09728Smrgfi
4019bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4020bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4021bc77032bSmrgif test $ac_test_CFLAGS; then
402266fe65f6Smrg  CFLAGS=$ac_save_CFLAGS
402366fe65f6Smrgelif test $ac_cv_prog_cc_g = yes; then
402466fe65f6Smrg  if test "$GCC" = yes; then
402566fe65f6Smrg    CFLAGS="-g -O2"
402666fe65f6Smrg  else
402766fe65f6Smrg    CFLAGS="-g"
402866fe65f6Smrg  fi
402966fe65f6Smrgelse
403066fe65f6Smrg  if test "$GCC" = yes; then
403166fe65f6Smrg    CFLAGS="-O2"
403266fe65f6Smrg  else
403366fe65f6Smrg    CFLAGS=
403466fe65f6Smrg  fi
403566fe65f6Smrgfi
4036bc77032bSmrgac_prog_cc_stdc=no
4037bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4038bc77032bSmrgthen :
4039bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4040bc77032bSmrgprintf %s "checking for $CC option to enable C11 features... " >&6; }
4041bc77032bSmrgif test ${ac_cv_prog_cc_c11+y}
4042bc77032bSmrgthen :
4043bc77032bSmrg  printf %s "(cached) " >&6
4044bc77032bSmrgelse $as_nop
4045bc77032bSmrg  ac_cv_prog_cc_c11=no
404666fe65f6Smrgac_save_CC=$CC
404748af84faSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
404866fe65f6Smrg/* end confdefs.h.  */
4049bc77032bSmrg$ac_c_conftest_c11_program
4050bc77032bSmrg_ACEOF
4051bc77032bSmrgfor ac_arg in '' -std=gnu11
4052bc77032bSmrgdo
4053bc77032bSmrg  CC="$ac_save_CC $ac_arg"
4054bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4055bc77032bSmrgthen :
4056bc77032bSmrg  ac_cv_prog_cc_c11=$ac_arg
4057bc77032bSmrgfi
4058bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4059bc77032bSmrg  test "x$ac_cv_prog_cc_c11" != "xno" && break
4060bc77032bSmrgdone
4061bc77032bSmrgrm -f conftest.$ac_ext
4062bc77032bSmrgCC=$ac_save_CC
4063bc77032bSmrgfi
406466fe65f6Smrg
4065bc77032bSmrgif test "x$ac_cv_prog_cc_c11" = xno
4066bc77032bSmrgthen :
4067bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4069bc77032bSmrgelse $as_nop
4070bc77032bSmrg  if test "x$ac_cv_prog_cc_c11" = x
4071bc77032bSmrgthen :
4072bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4074bc77032bSmrgelse $as_nop
4075bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4076bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4077bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c11"
4078bc77032bSmrgfi
4079bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4080bc77032bSmrg  ac_prog_cc_stdc=c11
4081bc77032bSmrgfi
4082bc77032bSmrgfi
4083bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4084bc77032bSmrgthen :
4085bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4086bc77032bSmrgprintf %s "checking for $CC option to enable C99 features... " >&6; }
4087bc77032bSmrgif test ${ac_cv_prog_cc_c99+y}
4088bc77032bSmrgthen :
4089bc77032bSmrg  printf %s "(cached) " >&6
4090bc77032bSmrgelse $as_nop
4091bc77032bSmrg  ac_cv_prog_cc_c99=no
4092bc77032bSmrgac_save_CC=$CC
4093bc77032bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094bc77032bSmrg/* end confdefs.h.  */
4095bc77032bSmrg$ac_c_conftest_c99_program
4096bc77032bSmrg_ACEOF
4097bc77032bSmrgfor ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4098bc77032bSmrgdo
4099bc77032bSmrg  CC="$ac_save_CC $ac_arg"
4100bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4101bc77032bSmrgthen :
4102bc77032bSmrg  ac_cv_prog_cc_c99=$ac_arg
4103bc77032bSmrgfi
4104bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
4105bc77032bSmrg  test "x$ac_cv_prog_cc_c99" != "xno" && break
4106bc77032bSmrgdone
4107bc77032bSmrgrm -f conftest.$ac_ext
4108bc77032bSmrgCC=$ac_save_CC
4109bc77032bSmrgfi
411089d09728Smrg
4111bc77032bSmrgif test "x$ac_cv_prog_cc_c99" = xno
4112bc77032bSmrgthen :
4113bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4115bc77032bSmrgelse $as_nop
4116bc77032bSmrg  if test "x$ac_cv_prog_cc_c99" = x
4117bc77032bSmrgthen :
4118bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4120bc77032bSmrgelse $as_nop
4121bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4122bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4123bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c99"
4124bc77032bSmrgfi
4125bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4126bc77032bSmrg  ac_prog_cc_stdc=c99
4127bc77032bSmrgfi
4128bc77032bSmrgfi
4129bc77032bSmrgif test x$ac_prog_cc_stdc = xno
4130bc77032bSmrgthen :
4131bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4132bc77032bSmrgprintf %s "checking for $CC option to enable C89 features... " >&6; }
4133bc77032bSmrgif test ${ac_cv_prog_cc_c89+y}
4134bc77032bSmrgthen :
4135bc77032bSmrg  printf %s "(cached) " >&6
4136bc77032bSmrgelse $as_nop
4137bc77032bSmrg  ac_cv_prog_cc_c89=no
4138bc77032bSmrgac_save_CC=$CC
4139bc77032bSmrgcat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140bc77032bSmrg/* end confdefs.h.  */
4141bc77032bSmrg$ac_c_conftest_c89_program
414266fe65f6Smrg_ACEOF
4143bc77032bSmrgfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
414466fe65f6Smrgdo
414566fe65f6Smrg  CC="$ac_save_CC $ac_arg"
4146bc77032bSmrg  if ac_fn_c_try_compile "$LINENO"
4147bc77032bSmrgthen :
414889d09728Smrg  ac_cv_prog_cc_c89=$ac_arg
414966fe65f6Smrgfi
4150bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam
415189d09728Smrg  test "x$ac_cv_prog_cc_c89" != "xno" && break
415266fe65f6Smrgdone
415389d09728Smrgrm -f conftest.$ac_ext
415466fe65f6SmrgCC=$ac_save_CC
415566fe65f6Smrgfi
415666fe65f6Smrg
4157bc77032bSmrgif test "x$ac_cv_prog_cc_c89" = xno
4158bc77032bSmrgthen :
4159bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160bc77032bSmrgprintf "%s\n" "unsupported" >&6; }
4161bc77032bSmrgelse $as_nop
4162bc77032bSmrg  if test "x$ac_cv_prog_cc_c89" = x
4163bc77032bSmrgthen :
4164bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165bc77032bSmrgprintf "%s\n" "none needed" >&6; }
4166bc77032bSmrgelse $as_nop
4167bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168bc77032bSmrgprintf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4169bc77032bSmrg     CC="$CC $ac_cv_prog_cc_c89"
4170bc77032bSmrgfi
4171bc77032bSmrg  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4172bc77032bSmrg  ac_prog_cc_stdc=c89
4173bc77032bSmrgfi
417448af84faSmrgfi
417566fe65f6Smrg
417666fe65f6Smrgac_ext=c
417766fe65f6Smrgac_cpp='$CPP $CPPFLAGS'
417866fe65f6Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
417966fe65f6Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
418066fe65f6Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu
418166fe65f6Smrg
4182bc77032bSmrg
4183bc77032bSmrg  ac_ext=c
4184c6a6acfbSmrgac_cpp='$CPP $CPPFLAGS'
4185c6a6acfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186c6a6acfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187c6a6acfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4188bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4189bc77032bSmrgprintf %s "checking whether $CC understands -c and -o together... " >&6; }
4190bc77032bSmrgif test ${am_cv_prog_cc_c_o+y}
4191bc77032bSmrgthen :
4192bc77032bSmrg  printf %s "(cached) " >&6
4193bc77032bSmrgelse $as_nop
4194c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195c6a6acfbSmrg/* end confdefs.h.  */
4196c6a6acfbSmrg
4197c6a6acfbSmrgint
4198bc77032bSmrgmain (void)
4199c6a6acfbSmrg{
4200c6a6acfbSmrg
4201c6a6acfbSmrg  ;
4202c6a6acfbSmrg  return 0;
4203c6a6acfbSmrg}
4204c6a6acfbSmrg_ACEOF
4205c6a6acfbSmrg  # Make sure it works both with $CC and with simple cc.
4206c6a6acfbSmrg  # Following AC_PROG_CC_C_O, we do the test twice because some
4207c6a6acfbSmrg  # compilers refuse to overwrite an existing .o file with -o,
4208c6a6acfbSmrg  # though they will create one.
4209c6a6acfbSmrg  am_cv_prog_cc_c_o=yes
4210c6a6acfbSmrg  for am_i in 1 2; do
4211c6a6acfbSmrg    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4212c6a6acfbSmrg   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4213c6a6acfbSmrg   ac_status=$?
4214c6a6acfbSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215c6a6acfbSmrg   (exit $ac_status); } \
4216c6a6acfbSmrg         && test -f conftest2.$ac_objext; then
4217c6a6acfbSmrg      : OK
4218c6a6acfbSmrg    else
4219c6a6acfbSmrg      am_cv_prog_cc_c_o=no
4220c6a6acfbSmrg      break
4221c6a6acfbSmrg    fi
4222c6a6acfbSmrg  done
4223c6a6acfbSmrg  rm -f core conftest*
4224c6a6acfbSmrg  unset am_i
4225c6a6acfbSmrgfi
4226bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4227bc77032bSmrgprintf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4228c6a6acfbSmrgif test "$am_cv_prog_cc_c_o" != yes; then
4229c6a6acfbSmrg   # Losing compiler, so override with the script.
4230c6a6acfbSmrg   # FIXME: It is wrong to rewrite CC.
4231c6a6acfbSmrg   # But if we don't then we get into trouble of one sort or another.
4232c6a6acfbSmrg   # A longer-term fix would be to have automake use am__CC in this case,
4233c6a6acfbSmrg   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4234c6a6acfbSmrg   CC="$am_aux_dir/compile $CC"
4235c6a6acfbSmrgfi
4236c6a6acfbSmrgac_ext=c
4237c6a6acfbSmrgac_cpp='$CPP $CPPFLAGS'
4238c6a6acfbSmrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239c6a6acfbSmrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240c6a6acfbSmrgac_compiler_gnu=$ac_cv_c_compiler_gnu
4241c6a6acfbSmrg
4242c6a6acfbSmrg
424366fe65f6Smrgdepcc="$CC"   am_compiler_list=
424466fe65f6Smrg
4245bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246bc77032bSmrgprintf %s "checking dependency style of $depcc... " >&6; }
4247bc77032bSmrgif test ${am_cv_CC_dependencies_compiler_type+y}
4248bc77032bSmrgthen :
4249bc77032bSmrg  printf %s "(cached) " >&6
4250bc77032bSmrgelse $as_nop
425166fe65f6Smrg  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
425266fe65f6Smrg  # We make a subdir and do the tests there.  Otherwise we can end up
425366fe65f6Smrg  # making bogus files that we don't know about and never remove.  For
425466fe65f6Smrg  # instance it was reported that on HP-UX the gcc test will end up
4255c6a6acfbSmrg  # making a dummy file named 'D' -- because '-MD' means "put the output
4256c6a6acfbSmrg  # in D".
4257c6a6acfbSmrg  rm -rf conftest.dir
425866fe65f6Smrg  mkdir conftest.dir
425966fe65f6Smrg  # Copy depcomp to subdir because otherwise we won't find it if we're
426066fe65f6Smrg  # using a relative directory.
426166fe65f6Smrg  cp "$am_depcomp" conftest.dir
426266fe65f6Smrg  cd conftest.dir
426366fe65f6Smrg  # We will build objects and dependencies in a subdirectory because
426466fe65f6Smrg  # it helps to detect inapplicable dependency modes.  For instance
426566fe65f6Smrg  # both Tru64's cc and ICC support -MD to output dependencies as a
426666fe65f6Smrg  # side effect of compilation, but ICC will put the dependencies in
426766fe65f6Smrg  # the current directory while Tru64 will put them in the object
426866fe65f6Smrg  # directory.
426966fe65f6Smrg  mkdir sub
427066fe65f6Smrg
427166fe65f6Smrg  am_cv_CC_dependencies_compiler_type=none
427266fe65f6Smrg  if test "$am_compiler_list" = ""; then
427366fe65f6Smrg     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
427466fe65f6Smrg  fi
4275a9274bcdSmrg  am__universal=false
4276a9274bcdSmrg  case " $depcc " in #(
4277a9274bcdSmrg     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4278a9274bcdSmrg     esac
4279a9274bcdSmrg
428066fe65f6Smrg  for depmode in $am_compiler_list; do
428166fe65f6Smrg    # Setup a source with many dependencies, because some compilers
428266fe65f6Smrg    # like to wrap large dependency lists on column 80 (with \), and
428366fe65f6Smrg    # we should not choose a depcomp mode which is confused by this.
428466fe65f6Smrg    #
428566fe65f6Smrg    # We need to recreate these files for each test, as the compiler may
428666fe65f6Smrg    # overwrite some of them when testing with obscure command lines.
428766fe65f6Smrg    # This happens at least with the AIX C compiler.
428866fe65f6Smrg    : > sub/conftest.c
428966fe65f6Smrg    for i in 1 2 3 4 5 6; do
429066fe65f6Smrg      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4291c6a6acfbSmrg      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4292c6a6acfbSmrg      # Solaris 10 /bin/sh.
4293c6a6acfbSmrg      echo '/* dummy */' > sub/conftst$i.h
429466fe65f6Smrg    done
429566fe65f6Smrg    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
429666fe65f6Smrg
4297c6a6acfbSmrg    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4298a9274bcdSmrg    # mode.  It turns out that the SunPro C++ compiler does not properly
4299c6a6acfbSmrg    # handle '-M -o', and we need to detect this.  Also, some Intel
4300c6a6acfbSmrg    # versions had trouble with output in subdirs.
4301a9274bcdSmrg    am__obj=sub/conftest.${OBJEXT-o}
4302a9274bcdSmrg    am__minus_obj="-o $am__obj"
430366fe65f6Smrg    case $depmode in
4304a9274bcdSmrg    gcc)
4305a9274bcdSmrg      # This depmode causes a compiler race in universal mode.
4306a9274bcdSmrg      test "$am__universal" = false || continue
4307a9274bcdSmrg      ;;
430866fe65f6Smrg    nosideeffect)
4309c6a6acfbSmrg      # After this tag, mechanisms are not by side-effect, so they'll
4310c6a6acfbSmrg      # only be used when explicitly requested.
431166fe65f6Smrg      if test "x$enable_dependency_tracking" = xyes; then
431266fe65f6Smrg	continue
431366fe65f6Smrg      else
431466fe65f6Smrg	break
431566fe65f6Smrg      fi
431666fe65f6Smrg      ;;
4317c6a6acfbSmrg    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4318c6a6acfbSmrg      # This compiler won't grok '-c -o', but also, the minuso test has
4319a9274bcdSmrg      # not run yet.  These depmodes are late enough in the game, and
4320a9274bcdSmrg      # so weak that their functioning should not be impacted.
4321a9274bcdSmrg      am__obj=conftest.${OBJEXT-o}
4322a9274bcdSmrg      am__minus_obj=
4323a9274bcdSmrg      ;;
432466fe65f6Smrg    none) break ;;
432566fe65f6Smrg    esac
432666fe65f6Smrg    if depmode=$depmode \
4327a9274bcdSmrg       source=sub/conftest.c object=$am__obj \
4328bc77032bSmrg       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4329bc77032bSmrg       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4330bc77032bSmrg         >/dev/null 2>conftest.err &&
4331bc77032bSmrg       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4332bc77032bSmrg       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333bc77032bSmrg       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4334bc77032bSmrg       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335bc77032bSmrg      # icc doesn't choke on unknown options, it will just issue warnings
4336bc77032bSmrg      # or remarks (even with -Werror).  So we grep stderr for any message
4337bc77032bSmrg      # that says an option was ignored or not supported.
4338bc77032bSmrg      # When given -MP, icc 7.0 and 7.1 complain thusly:
4339bc77032bSmrg      #   icc: Command line warning: ignoring option '-M'; no argument required
4340bc77032bSmrg      # The diagnosis changed in icc 8.0:
4341bc77032bSmrg      #   icc: Command line remark: option '-MP' not supported
4342bc77032bSmrg      if (grep 'ignoring option' conftest.err ||
4343bc77032bSmrg          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344bc77032bSmrg        am_cv_CC_dependencies_compiler_type=$depmode
4345bc77032bSmrg        break
4346bc77032bSmrg      fi
434789d09728Smrg    fi
434889d09728Smrg  done
434989d09728Smrg
4350bc77032bSmrg  cd ..
4351bc77032bSmrg  rm -rf conftest.dir
435289d09728Smrgelse
4353bc77032bSmrg  am_cv_CC_dependencies_compiler_type=none
435489d09728Smrgfi
435589d09728Smrg
435689d09728Smrgfi
4357bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4358bc77032bSmrgprintf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4359bc77032bSmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
436089d09728Smrg
4361bc77032bSmrg if
4362bc77032bSmrg  test "x$enable_dependency_tracking" != xno \
4363bc77032bSmrg  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4364bc77032bSmrg  am__fastdepCC_TRUE=
4365bc77032bSmrg  am__fastdepCC_FALSE='#'
436689d09728Smrgelse
4367bc77032bSmrg  am__fastdepCC_TRUE='#'
4368bc77032bSmrg  am__fastdepCC_FALSE=
436989d09728Smrgfi
437089d09728Smrg
437189d09728Smrg
437289d09728Smrg
437322281038Smrg
4374bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4375bc77032bSmrgprintf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4376bc77032bSmrgif test ${ac_cv_c_undeclared_builtin_options+y}
4377bc77032bSmrgthen :
4378bc77032bSmrg  printf %s "(cached) " >&6
4379bc77032bSmrgelse $as_nop
4380bc77032bSmrg  ac_save_CFLAGS=$CFLAGS
4381bc77032bSmrg   ac_cv_c_undeclared_builtin_options='cannot detect'
4382bc77032bSmrg   for ac_arg in '' -fno-builtin; do
4383bc77032bSmrg     CFLAGS="$ac_save_CFLAGS $ac_arg"
4384bc77032bSmrg     # This test program should *not* compile successfully.
4385bc77032bSmrg     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
438689d09728Smrg/* end confdefs.h.  */
438789d09728Smrg
438889d09728Smrgint
4389bc77032bSmrgmain (void)
439089d09728Smrg{
4391bc77032bSmrg(void) strchr;
439289d09728Smrg  ;
439389d09728Smrg  return 0;
439489d09728Smrg}
439589d09728Smrg_ACEOF
4396bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4397bc77032bSmrgthen :
4398a9274bcdSmrg
4399bc77032bSmrgelse $as_nop
4400bc77032bSmrg  # This test program should compile successfully.
4401bc77032bSmrg        # No library function is consistently available on
4402bc77032bSmrg        # freestanding implementations, so test against a dummy
4403bc77032bSmrg        # declaration.  Include always-available headers on the
4404bc77032bSmrg        # off chance that they somehow elicit warnings.
4405bc77032bSmrg        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406a9274bcdSmrg/* end confdefs.h.  */
4407bc77032bSmrg#include <float.h>
4408bc77032bSmrg#include <limits.h>
4409bc77032bSmrg#include <stdarg.h>
4410bc77032bSmrg#include <stddef.h>
4411bc77032bSmrgextern void ac_decl (int, char *);
4412a9274bcdSmrg
4413a9274bcdSmrgint
4414bc77032bSmrgmain (void)
4415a9274bcdSmrg{
4416bc77032bSmrg(void) ac_decl (0, (char *) 0);
4417bc77032bSmrg  (void) ac_decl;
4418bc77032bSmrg
4419bc77032bSmrg  ;
4420a9274bcdSmrg  return 0;
4421a9274bcdSmrg}
4422a9274bcdSmrg_ACEOF
4423bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4424bc77032bSmrgthen :
4425bc77032bSmrg  if test x"$ac_arg" = x
4426bc77032bSmrgthen :
4427bc77032bSmrg  ac_cv_c_undeclared_builtin_options='none needed'
4428bc77032bSmrgelse $as_nop
4429bc77032bSmrg  ac_cv_c_undeclared_builtin_options=$ac_arg
4430a9274bcdSmrgfi
4431bc77032bSmrg          break
4432a9274bcdSmrgfi
4433bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4434a9274bcdSmrgfi
4435bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4436bc77032bSmrg    done
4437bc77032bSmrg    CFLAGS=$ac_save_CFLAGS
4438bc77032bSmrg
4439bc77032bSmrgfi
4440bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4441bc77032bSmrgprintf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4442bc77032bSmrg  case $ac_cv_c_undeclared_builtin_options in #(
4443bc77032bSmrg  'cannot detect') :
4444bc77032bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4446bc77032bSmrgas_fn_error $? "cannot make $CC report undeclared builtins
4447bc77032bSmrgSee \`config.log' for more details" "$LINENO" 5; } ;; #(
4448bc77032bSmrg  'none needed') :
4449bc77032bSmrg    ac_c_undeclared_builtin_options='' ;; #(
4450bc77032bSmrg  *) :
4451bc77032bSmrg    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4452bc77032bSmrgesac
4453a9274bcdSmrg
4454bc77032bSmrgac_header= ac_cache=
4455bc77032bSmrgfor ac_item in $ac_header_c_list
4456bc77032bSmrgdo
4457bc77032bSmrg  if test $ac_cache; then
4458bc77032bSmrg    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4459bc77032bSmrg    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4460bc77032bSmrg      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4461bc77032bSmrg    fi
4462bc77032bSmrg    ac_header= ac_cache=
4463bc77032bSmrg  elif test $ac_header; then
4464bc77032bSmrg    ac_cache=$ac_item
4465bc77032bSmrg  else
4466bc77032bSmrg    ac_header=$ac_item
4467bc77032bSmrg  fi
4468bc77032bSmrgdone
4469a9274bcdSmrg
4470a9274bcdSmrg
4471a9274bcdSmrg
4472a9274bcdSmrg
4473a9274bcdSmrg
4474a9274bcdSmrg
4475a9274bcdSmrg
4476a9274bcdSmrg
4477bc77032bSmrgif test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4478bc77032bSmrgthen :
4479bc77032bSmrg
4480bc77032bSmrgprintf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4481bc77032bSmrg
4482bc77032bSmrgfi
4483bc77032bSmrg
4484bc77032bSmrg
4485c6a6acfbSmrg
4486c6a6acfbSmrg
4487bc77032bSmrgac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4488bc77032bSmrgif test "x$ac_cv_have_decl___clang__" = xyes
4489bc77032bSmrgthen :
4490f931275dSmrg  CLANGCC="yes"
4491bc77032bSmrgelse $as_nop
4492f931275dSmrg  CLANGCC="no"
4493f931275dSmrgfi
4494bc77032bSmrgac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4495bc77032bSmrgif test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4496bc77032bSmrgthen :
4497f931275dSmrg  INTELCC="yes"
4498bc77032bSmrgelse $as_nop
4499f931275dSmrg  INTELCC="no"
4500f931275dSmrgfi
4501bc77032bSmrgac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4502bc77032bSmrgif test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4503bc77032bSmrgthen :
4504f931275dSmrg  SUNCC="yes"
4505bc77032bSmrgelse $as_nop
4506f931275dSmrg  SUNCC="no"
4507f931275dSmrgfi
4508f931275dSmrg
4509f931275dSmrg
4510f931275dSmrg
4511f931275dSmrg
451238c51623Smrg
451338c51623Smrg
451438c51623Smrg
451538c51623Smrg
451648af84faSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
451748af84faSmrg	if test -n "$ac_tool_prefix"; then
451848af84faSmrg  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
451948af84faSmrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4520bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
4522bc77032bSmrgif test ${ac_cv_path_PKG_CONFIG+y}
4523bc77032bSmrgthen :
4524bc77032bSmrg  printf %s "(cached) " >&6
4525bc77032bSmrgelse $as_nop
452648af84faSmrg  case $PKG_CONFIG in
452748af84faSmrg  [\\/]* | ?:[\\/]*)
452848af84faSmrg  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
452948af84faSmrg  ;;
453048af84faSmrg  *)
453148af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
453248af84faSmrgfor as_dir in $PATH
4533a9274bcdSmrgdo
453448af84faSmrg  IFS=$as_save_IFS
4535bc77032bSmrg  case $as_dir in #(((
4536bc77032bSmrg    '') as_dir=./ ;;
4537bc77032bSmrg    */) ;;
4538bc77032bSmrg    *) as_dir=$as_dir/ ;;
4539bc77032bSmrg  esac
454048af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4541bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4542bc77032bSmrg    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4543bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
454448af84faSmrg    break 2
454548af84faSmrg  fi
454648af84faSmrgdone
454748af84faSmrg  done
454848af84faSmrgIFS=$as_save_IFS
454948af84faSmrg
455048af84faSmrg  ;;
4551a9274bcdSmrgesac
455248af84faSmrgfi
455348af84faSmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG
455448af84faSmrgif test -n "$PKG_CONFIG"; then
4555bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4556bc77032bSmrgprintf "%s\n" "$PKG_CONFIG" >&6; }
4557a9274bcdSmrgelse
4558bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559bc77032bSmrgprintf "%s\n" "no" >&6; }
4560a9274bcdSmrgfi
4561a9274bcdSmrg
4562a9274bcdSmrg
4563a9274bcdSmrgfi
456448af84faSmrgif test -z "$ac_cv_path_PKG_CONFIG"; then
456548af84faSmrg  ac_pt_PKG_CONFIG=$PKG_CONFIG
456648af84faSmrg  # Extract the first word of "pkg-config", so it can be a program name with args.
456748af84faSmrgset dummy pkg-config; ac_word=$2
4568bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569bc77032bSmrgprintf %s "checking for $ac_word... " >&6; }
4570bc77032bSmrgif test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4571bc77032bSmrgthen :
4572bc77032bSmrg  printf %s "(cached) " >&6
4573bc77032bSmrgelse $as_nop
457448af84faSmrg  case $ac_pt_PKG_CONFIG in
457548af84faSmrg  [\\/]* | ?:[\\/]*)
457648af84faSmrg  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
457748af84faSmrg  ;;
4578a9274bcdSmrg  *)
457948af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458048af84faSmrgfor as_dir in $PATH
458148af84faSmrgdo
458248af84faSmrg  IFS=$as_save_IFS
4583bc77032bSmrg  case $as_dir in #(((
4584bc77032bSmrg    '') as_dir=./ ;;
4585bc77032bSmrg    */) ;;
4586bc77032bSmrg    *) as_dir=$as_dir/ ;;
4587bc77032bSmrg  esac
458848af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4589bc77032bSmrg  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4590bc77032bSmrg    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4591bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
459248af84faSmrg    break 2
459348af84faSmrg  fi
459448af84faSmrgdone
459548af84faSmrg  done
459648af84faSmrgIFS=$as_save_IFS
459748af84faSmrg
459848af84faSmrg  ;;
4599a9274bcdSmrgesac
460048af84faSmrgfi
460148af84faSmrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
460248af84faSmrgif test -n "$ac_pt_PKG_CONFIG"; then
4603bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4604bc77032bSmrgprintf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
460548af84faSmrgelse
4606bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607bc77032bSmrgprintf "%s\n" "no" >&6; }
460848af84faSmrgfi
4609a9274bcdSmrg
461048af84faSmrg  if test "x$ac_pt_PKG_CONFIG" = x; then
461148af84faSmrg    PKG_CONFIG=""
461248af84faSmrg  else
461348af84faSmrg    case $cross_compiling:$ac_tool_warned in
461448af84faSmrgyes:)
4615bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616bc77032bSmrgprintf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
461748af84faSmrgac_tool_warned=yes ;;
461848af84faSmrgesac
461948af84faSmrg    PKG_CONFIG=$ac_pt_PKG_CONFIG
462048af84faSmrg  fi
462148af84faSmrgelse
462248af84faSmrg  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
462348af84faSmrgfi
4624a9274bcdSmrg
462548af84faSmrgfi
462648af84faSmrgif test -n "$PKG_CONFIG"; then
462748af84faSmrg	_pkg_min_version=0.9.0
4628bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4629bc77032bSmrgprintf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
463048af84faSmrg	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4631bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4632bc77032bSmrgprintf "%s\n" "yes" >&6; }
463348af84faSmrg	else
4634bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635bc77032bSmrgprintf "%s\n" "no" >&6; }
463648af84faSmrg		PKG_CONFIG=""
463748af84faSmrg	fi
463848af84faSmrgfi
4639a9274bcdSmrg
4640bc77032bSmrg
4641bc77032bSmrg  # Make sure we can run config.sub.
4642bc77032bSmrg$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4643bc77032bSmrg  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4644bc77032bSmrg
4645bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4646bc77032bSmrgprintf %s "checking build system type... " >&6; }
4647bc77032bSmrgif test ${ac_cv_build+y}
4648bc77032bSmrgthen :
4649bc77032bSmrg  printf %s "(cached) " >&6
4650bc77032bSmrgelse $as_nop
4651a9274bcdSmrg  ac_build_alias=$build_alias
4652a9274bcdSmrgtest "x$ac_build_alias" = x &&
4653bc77032bSmrg  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4654a9274bcdSmrgtest "x$ac_build_alias" = x &&
465548af84faSmrg  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4656bc77032bSmrgac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4657bc77032bSmrg  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4658a9274bcdSmrg
4659a9274bcdSmrgfi
4660bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4661bc77032bSmrgprintf "%s\n" "$ac_cv_build" >&6; }
4662a9274bcdSmrgcase $ac_cv_build in
4663a9274bcdSmrg*-*-*) ;;
466448af84faSmrg*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4665a9274bcdSmrgesac
4666a9274bcdSmrgbuild=$ac_cv_build
4667a9274bcdSmrgac_save_IFS=$IFS; IFS='-'
4668a9274bcdSmrgset x $ac_cv_build
4669a9274bcdSmrgshift
4670a9274bcdSmrgbuild_cpu=$1
4671a9274bcdSmrgbuild_vendor=$2
4672a9274bcdSmrgshift; shift
4673a9274bcdSmrg# Remember, the first character of IFS is used to create $*,
4674a9274bcdSmrg# except with old shells:
4675a9274bcdSmrgbuild_os=$*
4676a9274bcdSmrgIFS=$ac_save_IFS
4677a9274bcdSmrgcase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4678a9274bcdSmrg
4679a9274bcdSmrg
4680bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4681bc77032bSmrgprintf %s "checking host system type... " >&6; }
4682bc77032bSmrgif test ${ac_cv_host+y}
4683bc77032bSmrgthen :
4684bc77032bSmrg  printf %s "(cached) " >&6
4685bc77032bSmrgelse $as_nop
4686a9274bcdSmrg  if test "x$host_alias" = x; then
4687a9274bcdSmrg  ac_cv_host=$ac_cv_build
4688a9274bcdSmrgelse
4689bc77032bSmrg  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4690bc77032bSmrg    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4691a9274bcdSmrgfi
4692a9274bcdSmrg
4693a9274bcdSmrgfi
4694bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4695bc77032bSmrgprintf "%s\n" "$ac_cv_host" >&6; }
4696a9274bcdSmrgcase $ac_cv_host in
4697a9274bcdSmrg*-*-*) ;;
469848af84faSmrg*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4699a9274bcdSmrgesac
4700a9274bcdSmrghost=$ac_cv_host
4701a9274bcdSmrgac_save_IFS=$IFS; IFS='-'
4702a9274bcdSmrgset x $ac_cv_host
4703a9274bcdSmrgshift
4704a9274bcdSmrghost_cpu=$1
4705a9274bcdSmrghost_vendor=$2
4706a9274bcdSmrgshift; shift
4707a9274bcdSmrg# Remember, the first character of IFS is used to create $*,
4708a9274bcdSmrg# except with old shells:
4709a9274bcdSmrghost_os=$*
4710a9274bcdSmrgIFS=$ac_save_IFS
4711a9274bcdSmrgcase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4712a9274bcdSmrg
4713a9274bcdSmrg
4714bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4715bc77032bSmrgprintf %s "checking for a sed that does not truncate output... " >&6; }
4716bc77032bSmrgif test ${ac_cv_path_SED+y}
4717bc77032bSmrgthen :
4718bc77032bSmrg  printf %s "(cached) " >&6
4719bc77032bSmrgelse $as_nop
472048af84faSmrg            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
472148af84faSmrg     for ac_i in 1 2 3 4 5 6 7; do
472248af84faSmrg       ac_script="$ac_script$as_nl$ac_script"
472348af84faSmrg     done
472448af84faSmrg     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
472548af84faSmrg     { ac_script=; unset ac_script;}
472648af84faSmrg     if test -z "$SED"; then
472748af84faSmrg  ac_path_SED_found=false
472848af84faSmrg  # Loop through the user's path and test for each of PROGNAME-LIST
472948af84faSmrg  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
473048af84faSmrgfor as_dir in $PATH
473148af84faSmrgdo
473248af84faSmrg  IFS=$as_save_IFS
4733bc77032bSmrg  case $as_dir in #(((
4734bc77032bSmrg    '') as_dir=./ ;;
4735bc77032bSmrg    */) ;;
4736bc77032bSmrg    *) as_dir=$as_dir/ ;;
4737bc77032bSmrg  esac
4738bc77032bSmrg    for ac_prog in sed gsed
4739bc77032bSmrg   do
474048af84faSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
4741bc77032bSmrg      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4742c6a6acfbSmrg      as_fn_executable_p "$ac_path_SED" || continue
474348af84faSmrg# Check for GNU ac_path_SED and select it if it is found.
474448af84faSmrg  # Check for GNU $ac_path_SED
474548af84faSmrgcase `"$ac_path_SED" --version 2>&1` in
474648af84faSmrg*GNU*)
474748af84faSmrg  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
474848af84faSmrg*)
474948af84faSmrg  ac_count=0
4750bc77032bSmrg  printf %s 0123456789 >"conftest.in"
475148af84faSmrg  while :
475248af84faSmrg  do
475348af84faSmrg    cat "conftest.in" "conftest.in" >"conftest.tmp"
475448af84faSmrg    mv "conftest.tmp" "conftest.in"
475548af84faSmrg    cp "conftest.in" "conftest.nl"
4756bc77032bSmrg    printf "%s\n" '' >> "conftest.nl"
475748af84faSmrg    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
475848af84faSmrg    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
475948af84faSmrg    as_fn_arith $ac_count + 1 && ac_count=$as_val
476048af84faSmrg    if test $ac_count -gt ${ac_path_SED_max-0}; then
476148af84faSmrg      # Best one so far, save it but keep looking for a better one
476248af84faSmrg      ac_cv_path_SED="$ac_path_SED"
476348af84faSmrg      ac_path_SED_max=$ac_count
476448af84faSmrg    fi
476548af84faSmrg    # 10*(2^10) chars as input seems more than enough
476648af84faSmrg    test $ac_count -gt 10 && break
476748af84faSmrg  done
476848af84faSmrg  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769a9274bcdSmrgesac
4770a9274bcdSmrg
477148af84faSmrg      $ac_path_SED_found && break 3
477248af84faSmrg    done
477348af84faSmrg  done
477448af84faSmrg  done
477548af84faSmrgIFS=$as_save_IFS
477648af84faSmrg  if test -z "$ac_cv_path_SED"; then
477748af84faSmrg    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
477848af84faSmrg  fi
4779a9274bcdSmrgelse
478048af84faSmrg  ac_cv_path_SED=$SED
4781a9274bcdSmrgfi
4782a9274bcdSmrg
4783a9274bcdSmrgfi
4784bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4785bc77032bSmrgprintf "%s\n" "$ac_cv_path_SED" >&6; }
478648af84faSmrg SED="$ac_cv_path_SED"
478748af84faSmrg  rm -f conftest.sed
4788a9274bcdSmrg
4789a9274bcdSmrg
4790a9274bcdSmrg
4791a9274bcdSmrg
4792a9274bcdSmrg
4793f931275dSmrg
4794f931275dSmrg# Check whether --enable-selective-werror was given.
4795bc77032bSmrgif test ${enable_selective_werror+y}
4796bc77032bSmrgthen :
4797f931275dSmrg  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4798bc77032bSmrgelse $as_nop
4799f931275dSmrg  SELECTIVE_WERROR=yes
4800a9274bcdSmrgfi
4801a9274bcdSmrg
4802f931275dSmrg
4803c6a6acfbSmrg
4804c6a6acfbSmrg
4805c6a6acfbSmrg
4806f931275dSmrg# -v is too short to test reliably with XORG_TESTSET_CFLAG
4807f931275dSmrgif test "x$SUNCC" = "xyes"; then
4808f931275dSmrg    BASE_CFLAGS="-v"
4809f931275dSmrgelse
4810f931275dSmrg    BASE_CFLAGS=""
481148af84faSmrgfi
481248af84faSmrg
4813f931275dSmrg# This chunk of warnings were those that existed in the legacy CWARNFLAGS
481448af84faSmrg
481548af84faSmrg
481648af84faSmrg
4817a9274bcdSmrg
481889d09728Smrg
4819c6a6acfbSmrg
4820c6a6acfbSmrg
4821c6a6acfbSmrg
4822c6a6acfbSmrg
4823c6a6acfbSmrg
4824c6a6acfbSmrg
4825c6a6acfbSmrg
4826c6a6acfbSmrg
4827f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
482889d09728Smrg
4829c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4830f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4832bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4833bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4834bc77032bSmrgthen :
4835bc77032bSmrg  printf %s "(cached) " >&6
4836bc77032bSmrgelse $as_nop
4837f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838f931275dSmrg/* end confdefs.h.  */
4839f931275dSmrgint i;
4840f931275dSmrg_ACEOF
4841bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4842bc77032bSmrgthen :
4843f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4844bc77032bSmrgelse $as_nop
4845f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
4846f931275dSmrgfi
4847bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4848f931275dSmrgfi
4849bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4850bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4851c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4852f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
485389d09728Smrgfi
485489d09728Smrg
4855c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4856c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4857f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4858a9274bcdSmrg	fi
4859f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4860bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4861bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4862bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4863bc77032bSmrgthen :
4864bc77032bSmrg  printf %s "(cached) " >&6
4865bc77032bSmrgelse $as_nop
4866f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867f931275dSmrg/* end confdefs.h.  */
4868f931275dSmrgint i;
4869f931275dSmrg_ACEOF
4870bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4871bc77032bSmrgthen :
4872f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4873bc77032bSmrgelse $as_nop
4874f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4875f931275dSmrgfi
4876bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4877f931275dSmrgfi
4878bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4879bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4880c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4881f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
488289d09728Smrgfi
488389d09728Smrg
4884f931275dSmrgfound="no"
4885a9274bcdSmrg
4886f931275dSmrg	if test $found = "no" ; then
4887c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4888f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889f931275dSmrg		fi
489089d09728Smrg
4891c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4892f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4893f931275dSmrg		fi
4894a9274bcdSmrg
4895f931275dSmrg		CFLAGS="$CFLAGS -Wall"
489689d09728Smrg
4897bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4898bc77032bSmrgprintf %s "checking if $CC supports -Wall... " >&6; }
4899c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wall
4900bc77032bSmrg		if eval test \${$cacheid+y}
4901bc77032bSmrgthen :
4902bc77032bSmrg  printf %s "(cached) " >&6
4903bc77032bSmrgelse $as_nop
4904f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905f931275dSmrg/* end confdefs.h.  */
4906f931275dSmrgint i;
4907f931275dSmrgint
4908bc77032bSmrgmain (void)
4909f931275dSmrg{
4910a9274bcdSmrg
4911f931275dSmrg  ;
4912f931275dSmrg  return 0;
4913f931275dSmrg}
4914a9274bcdSmrg_ACEOF
4915bc77032bSmrgif ac_fn_c_try_link "$LINENO"
4916bc77032bSmrgthen :
4917c6a6acfbSmrg  eval $cacheid=yes
4918bc77032bSmrgelse $as_nop
4919c6a6acfbSmrg  eval $cacheid=no
4920f931275dSmrgfi
4921bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
4922f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
4923f931275dSmrgfi
4924a9274bcdSmrg
4925a9274bcdSmrg
4926f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
4927a9274bcdSmrg
4928c6a6acfbSmrg		eval supported=\$$cacheid
4929bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4930bc77032bSmrgprintf "%s\n" "$supported" >&6; }
4931f931275dSmrg		if test "$supported" = "yes" ; then
4932f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4933f931275dSmrg			found="yes"
4934f931275dSmrg		fi
4935f931275dSmrg	fi
493648af84faSmrg
493748af84faSmrg
493848af84faSmrg
4939a9274bcdSmrg
4940a9274bcdSmrg
4941a9274bcdSmrg
4942a9274bcdSmrg
4943c6a6acfbSmrg
4944c6a6acfbSmrg
4945c6a6acfbSmrg
4946c6a6acfbSmrg
4947c6a6acfbSmrg
4948c6a6acfbSmrg
4949c6a6acfbSmrg
4950c6a6acfbSmrg
4951f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
4952a9274bcdSmrg
4953c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4954f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4956bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4957bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
4958bc77032bSmrgthen :
4959bc77032bSmrg  printf %s "(cached) " >&6
4960bc77032bSmrgelse $as_nop
4961f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962f931275dSmrg/* end confdefs.h.  */
4963f931275dSmrgint i;
4964f931275dSmrg_ACEOF
4965bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4966bc77032bSmrgthen :
4967f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
4968bc77032bSmrgelse $as_nop
4969f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
497089d09728Smrgfi
4971bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
497289d09728Smrgfi
4973bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4974bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4975c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4976f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
497789d09728Smrgfi
497889d09728Smrg
4979c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4980c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4981f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4982f931275dSmrg	fi
4983f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4985bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4986bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4987bc77032bSmrgthen :
4988bc77032bSmrg  printf %s "(cached) " >&6
4989bc77032bSmrgelse $as_nop
4990f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991f931275dSmrg/* end confdefs.h.  */
4992f931275dSmrgint i;
4993f931275dSmrg_ACEOF
4994bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
4995bc77032bSmrgthen :
4996f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
4997bc77032bSmrgelse $as_nop
4998f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
4999a9274bcdSmrgfi
5000bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5001a9274bcdSmrgfi
5002bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5003bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5004c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5005f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
500689d09728Smrgfi
500789d09728Smrg
5008f931275dSmrgfound="no"
500989d09728Smrg
5010f931275dSmrg	if test $found = "no" ; then
5011c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5012f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013f931275dSmrg		fi
5014f931275dSmrg
5015c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5016f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5017f931275dSmrg		fi
5018f931275dSmrg
5019f931275dSmrg		CFLAGS="$CFLAGS -Wpointer-arith"
5020f931275dSmrg
5021bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5022bc77032bSmrgprintf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5023c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wpointer_arith
5024bc77032bSmrg		if eval test \${$cacheid+y}
5025bc77032bSmrgthen :
5026bc77032bSmrg  printf %s "(cached) " >&6
5027bc77032bSmrgelse $as_nop
5028f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029f931275dSmrg/* end confdefs.h.  */
5030f931275dSmrgint i;
5031f931275dSmrgint
5032bc77032bSmrgmain (void)
5033f931275dSmrg{
5034f931275dSmrg
5035f931275dSmrg  ;
5036f931275dSmrg  return 0;
5037f931275dSmrg}
5038f931275dSmrg_ACEOF
5039bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5040bc77032bSmrgthen :
5041c6a6acfbSmrg  eval $cacheid=yes
5042bc77032bSmrgelse $as_nop
5043c6a6acfbSmrg  eval $cacheid=no
5044a9274bcdSmrgfi
5045bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5046f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
504789d09728Smrgfi
504889d09728Smrg
504989d09728Smrg
5050f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
505189d09728Smrg
5052c6a6acfbSmrg		eval supported=\$$cacheid
5053bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5054bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5055f931275dSmrg		if test "$supported" = "yes" ; then
5056f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5057f931275dSmrg			found="yes"
5058f931275dSmrg		fi
5059f931275dSmrg	fi
506089d09728Smrg
506189d09728Smrg
506289d09728Smrg
5063a9274bcdSmrg
5064a9274bcdSmrg
5065a9274bcdSmrg
5066a9274bcdSmrg
5067c6a6acfbSmrg
5068c6a6acfbSmrg
5069c6a6acfbSmrg
5070c6a6acfbSmrg
5071c6a6acfbSmrg
5072c6a6acfbSmrg
5073c6a6acfbSmrg
5074c6a6acfbSmrg
5075f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5076a9274bcdSmrg
5077c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5078f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5080bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5081bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5082bc77032bSmrgthen :
5083bc77032bSmrg  printf %s "(cached) " >&6
5084bc77032bSmrgelse $as_nop
5085f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086f931275dSmrg/* end confdefs.h.  */
5087f931275dSmrgint i;
5088f931275dSmrg_ACEOF
5089bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5090bc77032bSmrgthen :
5091f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5092bc77032bSmrgelse $as_nop
5093f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5094f931275dSmrgfi
5095bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096f931275dSmrgfi
5097bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5098bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5099c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5100f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5101f931275dSmrgfi
5102a9274bcdSmrg
5103c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5104c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106f931275dSmrg	fi
5107f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5108bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5109bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5110bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5111bc77032bSmrgthen :
5112bc77032bSmrg  printf %s "(cached) " >&6
5113bc77032bSmrgelse $as_nop
5114f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115f931275dSmrg/* end confdefs.h.  */
5116f931275dSmrgint i;
5117f931275dSmrg_ACEOF
5118bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5119bc77032bSmrgthen :
5120f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5121bc77032bSmrgelse $as_nop
5122f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5123f931275dSmrgfi
5124bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5125f931275dSmrgfi
5126bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5130f931275dSmrgfi
5131a9274bcdSmrg
5132f931275dSmrgfound="no"
5133a9274bcdSmrg
5134f931275dSmrg	if test $found = "no" ; then
5135c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5136f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5137f931275dSmrg		fi
513889d09728Smrg
5139c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5140f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5141f931275dSmrg		fi
514248af84faSmrg
5143c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-declarations"
514448af84faSmrg
5145bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5146bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5147c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5148bc77032bSmrg		if eval test \${$cacheid+y}
5149bc77032bSmrgthen :
5150bc77032bSmrg  printf %s "(cached) " >&6
5151bc77032bSmrgelse $as_nop
5152f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153f931275dSmrg/* end confdefs.h.  */
5154f931275dSmrgint i;
5155f931275dSmrgint
5156bc77032bSmrgmain (void)
5157f931275dSmrg{
515848af84faSmrg
5159f931275dSmrg  ;
5160f931275dSmrg  return 0;
5161f931275dSmrg}
5162f931275dSmrg_ACEOF
5163bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5164bc77032bSmrgthen :
5165c6a6acfbSmrg  eval $cacheid=yes
5166bc77032bSmrgelse $as_nop
5167c6a6acfbSmrg  eval $cacheid=no
5168f931275dSmrgfi
5169bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5170f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
517148af84faSmrgfi
517248af84faSmrg
517348af84faSmrg
5174f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
517589d09728Smrg
5176c6a6acfbSmrg		eval supported=\$$cacheid
5177bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5179f931275dSmrg		if test "$supported" = "yes" ; then
5180c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5181f931275dSmrg			found="yes"
5182f931275dSmrg		fi
5183f931275dSmrg	fi
518489d09728Smrg
5185f931275dSmrg
5186f931275dSmrg
5187f931275dSmrg
5188f931275dSmrg
5189f931275dSmrg
5190f931275dSmrg
5191c6a6acfbSmrg
5192c6a6acfbSmrg
5193c6a6acfbSmrg
5194c6a6acfbSmrg
5195c6a6acfbSmrg
5196c6a6acfbSmrg
5197c6a6acfbSmrg
5198c6a6acfbSmrg
5199f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5200f931275dSmrg
5201c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5202f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5204bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5205bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5206bc77032bSmrgthen :
5207bc77032bSmrg  printf %s "(cached) " >&6
5208bc77032bSmrgelse $as_nop
5209f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210f931275dSmrg/* end confdefs.h.  */
5211f931275dSmrgint i;
5212f931275dSmrg_ACEOF
5213bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5214bc77032bSmrgthen :
5215f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5216bc77032bSmrgelse $as_nop
5217f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
521889d09728Smrgfi
5219bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
522089d09728Smrgfi
5221bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
522589d09728Smrgfi
522689d09728Smrg
5227c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230f931275dSmrg	fi
5231f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5235bc77032bSmrgthen :
5236bc77032bSmrg  printf %s "(cached) " >&6
5237bc77032bSmrgelse $as_nop
5238f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239f931275dSmrg/* end confdefs.h.  */
5240f931275dSmrgint i;
5241f931275dSmrg_ACEOF
5242bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5243bc77032bSmrgthen :
5244f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5245bc77032bSmrgelse $as_nop
5246f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
524789d09728Smrgfi
5248bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
524989d09728Smrgfi
5250bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5251bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5252c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5253f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
525489d09728Smrgfi
525589d09728Smrg
5256f931275dSmrgfound="no"
525789d09728Smrg
5258f931275dSmrg	if test $found = "no" ; then
5259c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5260f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5261f931275dSmrg		fi
5262f931275dSmrg
5263c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5264f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265f931275dSmrg		fi
5266f931275dSmrg
5267c6a6acfbSmrg		CFLAGS="$CFLAGS -Wformat=2"
5268f931275dSmrg
5269bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5270bc77032bSmrgprintf %s "checking if $CC supports -Wformat=2... " >&6; }
5271c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wformat_2
5272bc77032bSmrg		if eval test \${$cacheid+y}
5273bc77032bSmrgthen :
5274bc77032bSmrg  printf %s "(cached) " >&6
5275bc77032bSmrgelse $as_nop
5276f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277f931275dSmrg/* end confdefs.h.  */
5278f931275dSmrgint i;
5279f931275dSmrgint
5280bc77032bSmrgmain (void)
5281f931275dSmrg{
528289d09728Smrg
5283f931275dSmrg  ;
5284f931275dSmrg  return 0;
5285f931275dSmrg}
5286f931275dSmrg_ACEOF
5287bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5288bc77032bSmrgthen :
5289c6a6acfbSmrg  eval $cacheid=yes
5290bc77032bSmrgelse $as_nop
5291c6a6acfbSmrg  eval $cacheid=no
5292f931275dSmrgfi
5293bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5294f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
529589d09728Smrgfi
529689d09728Smrg
529789d09728Smrg
5298f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5299f931275dSmrg
5300c6a6acfbSmrg		eval supported=\$$cacheid
5301bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5303f931275dSmrg		if test "$supported" = "yes" ; then
5304c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5305c6a6acfbSmrg			found="yes"
5306c6a6acfbSmrg		fi
5307c6a6acfbSmrg	fi
5308c6a6acfbSmrg
5309c6a6acfbSmrg	if test $found = "no" ; then
5310c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5311c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312c6a6acfbSmrg		fi
5313c6a6acfbSmrg
5314c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5315c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316c6a6acfbSmrg		fi
5317c6a6acfbSmrg
5318c6a6acfbSmrg		CFLAGS="$CFLAGS -Wformat"
5319c6a6acfbSmrg
5320bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5321bc77032bSmrgprintf %s "checking if $CC supports -Wformat... " >&6; }
5322c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wformat
5323bc77032bSmrg		if eval test \${$cacheid+y}
5324bc77032bSmrgthen :
5325bc77032bSmrg  printf %s "(cached) " >&6
5326bc77032bSmrgelse $as_nop
5327c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328c6a6acfbSmrg/* end confdefs.h.  */
5329c6a6acfbSmrgint i;
5330c6a6acfbSmrgint
5331bc77032bSmrgmain (void)
5332c6a6acfbSmrg{
5333c6a6acfbSmrg
5334c6a6acfbSmrg  ;
5335c6a6acfbSmrg  return 0;
5336c6a6acfbSmrg}
5337c6a6acfbSmrg_ACEOF
5338bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5339bc77032bSmrgthen :
5340c6a6acfbSmrg  eval $cacheid=yes
5341bc77032bSmrgelse $as_nop
5342c6a6acfbSmrg  eval $cacheid=no
5343c6a6acfbSmrgfi
5344bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5345c6a6acfbSmrg    conftest$ac_exeext conftest.$ac_ext
5346c6a6acfbSmrgfi
5347c6a6acfbSmrg
5348c6a6acfbSmrg
5349c6a6acfbSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5350c6a6acfbSmrg
5351c6a6acfbSmrg		eval supported=\$$cacheid
5352bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5353bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5354c6a6acfbSmrg		if test "$supported" = "yes" ; then
5355c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5356f931275dSmrg			found="yes"
5357f931275dSmrg		fi
5358f931275dSmrg	fi
5359f931275dSmrg
5360f931275dSmrg
5361f931275dSmrg
5362f931275dSmrg
5363f931275dSmrg
5364f931275dSmrg
5365f931275dSmrg
5366c6a6acfbSmrg
5367c6a6acfbSmrg
5368c6a6acfbSmrg
5369c6a6acfbSmrg
5370c6a6acfbSmrg
5371c6a6acfbSmrg
5372c6a6acfbSmrg
5373c6a6acfbSmrg
5374c6a6acfbSmrg
5375c6a6acfbSmrg
5376f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5377f931275dSmrg
5378c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5379f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5381bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5382bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5383bc77032bSmrgthen :
5384bc77032bSmrg  printf %s "(cached) " >&6
5385bc77032bSmrgelse $as_nop
5386f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387f931275dSmrg/* end confdefs.h.  */
5388f931275dSmrgint i;
5389f931275dSmrg_ACEOF
5390bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5391bc77032bSmrgthen :
5392f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5393bc77032bSmrgelse $as_nop
5394f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
539589d09728Smrgfi
5396bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
539789d09728Smrgfi
5398bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
540289d09728Smrgfi
540389d09728Smrg
5404c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407f931275dSmrg	fi
5408f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5412bc77032bSmrgthen :
5413bc77032bSmrg  printf %s "(cached) " >&6
5414bc77032bSmrgelse $as_nop
5415f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416f931275dSmrg/* end confdefs.h.  */
5417f931275dSmrgint i;
5418f931275dSmrg_ACEOF
5419bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5420bc77032bSmrgthen :
5421f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5422bc77032bSmrgelse $as_nop
5423f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5424f931275dSmrgfi
5425bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5426f931275dSmrgfi
5427bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5428bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5429c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5430f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5431f931275dSmrgfi
5432f931275dSmrg
5433f931275dSmrgfound="no"
5434f931275dSmrg
5435f931275dSmrg	if test $found = "no" ; then
5436c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5437f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5438f931275dSmrg		fi
5439f931275dSmrg
5440c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5441f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5442f931275dSmrg		fi
5443f931275dSmrg
5444c6a6acfbSmrg		CFLAGS="$CFLAGS -Wstrict-prototypes"
5445f931275dSmrg
5446bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5447bc77032bSmrgprintf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5448c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5449bc77032bSmrg		if eval test \${$cacheid+y}
5450bc77032bSmrgthen :
5451bc77032bSmrg  printf %s "(cached) " >&6
5452bc77032bSmrgelse $as_nop
5453f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454f931275dSmrg/* end confdefs.h.  */
5455f931275dSmrgint i;
5456f931275dSmrgint
5457bc77032bSmrgmain (void)
5458f931275dSmrg{
5459f931275dSmrg
5460f931275dSmrg  ;
5461f931275dSmrg  return 0;
5462f931275dSmrg}
5463f931275dSmrg_ACEOF
5464bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5465bc77032bSmrgthen :
5466c6a6acfbSmrg  eval $cacheid=yes
5467bc77032bSmrgelse $as_nop
5468c6a6acfbSmrg  eval $cacheid=no
5469f931275dSmrgfi
5470bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5471f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5472f931275dSmrgfi
5473f931275dSmrg
5474f931275dSmrg
5475f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5476f931275dSmrg
5477c6a6acfbSmrg		eval supported=\$$cacheid
5478bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5479bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5480f931275dSmrg		if test "$supported" = "yes" ; then
5481c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5482f931275dSmrg			found="yes"
5483f931275dSmrg		fi
5484f931275dSmrg	fi
5485f931275dSmrg
5486f931275dSmrg
5487f931275dSmrg
5488f931275dSmrg
5489f931275dSmrg
5490f931275dSmrg
5491f931275dSmrg
5492c6a6acfbSmrg
5493c6a6acfbSmrg
5494c6a6acfbSmrg
5495c6a6acfbSmrg
5496c6a6acfbSmrg
5497c6a6acfbSmrg
5498c6a6acfbSmrg
5499c6a6acfbSmrg
5500f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5501f931275dSmrg
5502c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5503f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5505bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5506bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5507bc77032bSmrgthen :
5508bc77032bSmrg  printf %s "(cached) " >&6
5509bc77032bSmrgelse $as_nop
5510f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511f931275dSmrg/* end confdefs.h.  */
5512f931275dSmrgint i;
5513f931275dSmrg_ACEOF
5514bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5515bc77032bSmrgthen :
5516f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5517bc77032bSmrgelse $as_nop
5518f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5519f931275dSmrgfi
5520bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5521f931275dSmrgfi
5522bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5523bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5524c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5525f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5526f931275dSmrgfi
5527f931275dSmrg
5528c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5529c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5530f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5531f931275dSmrg	fi
5532f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5533bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5534bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5535bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5536bc77032bSmrgthen :
5537bc77032bSmrg  printf %s "(cached) " >&6
5538bc77032bSmrgelse $as_nop
5539f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540f931275dSmrg/* end confdefs.h.  */
5541f931275dSmrgint i;
5542f931275dSmrg_ACEOF
5543bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5544bc77032bSmrgthen :
5545f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5546bc77032bSmrgelse $as_nop
5547f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5548f931275dSmrgfi
5549bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5550f931275dSmrgfi
5551bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5555f931275dSmrgfi
5556f931275dSmrg
5557f931275dSmrgfound="no"
5558f931275dSmrg
5559f931275dSmrg	if test $found = "no" ; then
5560c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562f931275dSmrg		fi
5563f931275dSmrg
5564c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5565f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566f931275dSmrg		fi
5567f931275dSmrg
5568c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-prototypes"
5569f931275dSmrg
5570bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5571bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5572c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5573bc77032bSmrg		if eval test \${$cacheid+y}
5574bc77032bSmrgthen :
5575bc77032bSmrg  printf %s "(cached) " >&6
5576bc77032bSmrgelse $as_nop
5577f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578f931275dSmrg/* end confdefs.h.  */
5579f931275dSmrgint i;
5580f931275dSmrgint
5581bc77032bSmrgmain (void)
5582f931275dSmrg{
5583f931275dSmrg
5584f931275dSmrg  ;
5585f931275dSmrg  return 0;
5586f931275dSmrg}
5587f931275dSmrg_ACEOF
5588bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5589bc77032bSmrgthen :
5590c6a6acfbSmrg  eval $cacheid=yes
5591bc77032bSmrgelse $as_nop
5592c6a6acfbSmrg  eval $cacheid=no
5593f931275dSmrgfi
5594bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5595f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5596f931275dSmrgfi
5597f931275dSmrg
5598f931275dSmrg
5599f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5600f931275dSmrg
5601c6a6acfbSmrg		eval supported=\$$cacheid
5602bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5603bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5604f931275dSmrg		if test "$supported" = "yes" ; then
5605c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5606f931275dSmrg			found="yes"
5607f931275dSmrg		fi
5608f931275dSmrg	fi
5609f931275dSmrg
5610f931275dSmrg
5611f931275dSmrg
5612f931275dSmrg
5613f931275dSmrg
5614f931275dSmrg
5615f931275dSmrg
5616c6a6acfbSmrg
5617c6a6acfbSmrg
5618c6a6acfbSmrg
5619c6a6acfbSmrg
5620c6a6acfbSmrg
5621c6a6acfbSmrg
5622c6a6acfbSmrg
5623c6a6acfbSmrg
5624f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5625f931275dSmrg
5626c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5627f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5629bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5630bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5631bc77032bSmrgthen :
5632bc77032bSmrg  printf %s "(cached) " >&6
5633bc77032bSmrgelse $as_nop
5634f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635f931275dSmrg/* end confdefs.h.  */
5636f931275dSmrgint i;
5637f931275dSmrg_ACEOF
5638bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5639bc77032bSmrgthen :
5640f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5641bc77032bSmrgelse $as_nop
5642f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5643f931275dSmrgfi
5644bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5645f931275dSmrgfi
5646bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5647bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5648c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5649f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5650f931275dSmrgfi
5651f931275dSmrg
5652c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5653c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5654f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655f931275dSmrg	fi
5656f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5657bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5658bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5659bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5660bc77032bSmrgthen :
5661bc77032bSmrg  printf %s "(cached) " >&6
5662bc77032bSmrgelse $as_nop
5663f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664f931275dSmrg/* end confdefs.h.  */
5665f931275dSmrgint i;
5666f931275dSmrg_ACEOF
5667bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5668bc77032bSmrgthen :
5669f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5670bc77032bSmrgelse $as_nop
5671f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5672f931275dSmrgfi
5673bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5674f931275dSmrgfi
5675bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5676bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5677c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5678f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5679f931275dSmrgfi
5680f931275dSmrg
5681f931275dSmrgfound="no"
5682f931275dSmrg
5683f931275dSmrg	if test $found = "no" ; then
5684c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686f931275dSmrg		fi
5687f931275dSmrg
5688c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5689f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5690f931275dSmrg		fi
5691f931275dSmrg
5692c6a6acfbSmrg		CFLAGS="$CFLAGS -Wnested-externs"
5693f931275dSmrg
5694bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5695bc77032bSmrgprintf %s "checking if $CC supports -Wnested-externs... " >&6; }
5696c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wnested_externs
5697bc77032bSmrg		if eval test \${$cacheid+y}
5698bc77032bSmrgthen :
5699bc77032bSmrg  printf %s "(cached) " >&6
5700bc77032bSmrgelse $as_nop
5701f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702f931275dSmrg/* end confdefs.h.  */
5703f931275dSmrgint i;
5704f931275dSmrgint
5705bc77032bSmrgmain (void)
5706f931275dSmrg{
5707f931275dSmrg
5708f931275dSmrg  ;
5709f931275dSmrg  return 0;
5710f931275dSmrg}
5711f931275dSmrg_ACEOF
5712bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5713bc77032bSmrgthen :
5714c6a6acfbSmrg  eval $cacheid=yes
5715bc77032bSmrgelse $as_nop
5716c6a6acfbSmrg  eval $cacheid=no
5717f931275dSmrgfi
5718bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5719f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5720f931275dSmrgfi
5721f931275dSmrg
5722f931275dSmrg
5723f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5724f931275dSmrg
5725c6a6acfbSmrg		eval supported=\$$cacheid
5726bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5728f931275dSmrg		if test "$supported" = "yes" ; then
5729c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5730f931275dSmrg			found="yes"
5731f931275dSmrg		fi
5732f931275dSmrg	fi
5733f931275dSmrg
5734f931275dSmrg
5735f931275dSmrg
5736f931275dSmrg
5737f931275dSmrg
5738f931275dSmrg
5739f931275dSmrg
5740c6a6acfbSmrg
5741c6a6acfbSmrg
5742c6a6acfbSmrg
5743c6a6acfbSmrg
5744c6a6acfbSmrg
5745c6a6acfbSmrg
5746c6a6acfbSmrg
5747c6a6acfbSmrg
5748f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5749f931275dSmrg
5750c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755bc77032bSmrgthen :
5756bc77032bSmrg  printf %s "(cached) " >&6
5757bc77032bSmrgelse $as_nop
5758f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759f931275dSmrg/* end confdefs.h.  */
5760f931275dSmrgint i;
5761f931275dSmrg_ACEOF
5762bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5763bc77032bSmrgthen :
5764f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5765bc77032bSmrgelse $as_nop
5766f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5767f931275dSmrgfi
5768bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769f931275dSmrgfi
5770bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5774f931275dSmrgfi
5775f931275dSmrg
5776c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779f931275dSmrg	fi
5780f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5784bc77032bSmrgthen :
5785bc77032bSmrg  printf %s "(cached) " >&6
5786bc77032bSmrgelse $as_nop
5787f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788f931275dSmrg/* end confdefs.h.  */
5789f931275dSmrgint i;
5790f931275dSmrg_ACEOF
5791bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5792bc77032bSmrgthen :
5793f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5794bc77032bSmrgelse $as_nop
5795f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5796f931275dSmrgfi
5797bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5798f931275dSmrgfi
5799bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5800bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5801c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5802f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5803f931275dSmrgfi
5804f931275dSmrg
5805f931275dSmrgfound="no"
5806f931275dSmrg
5807f931275dSmrg	if test $found = "no" ; then
5808c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5809f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810f931275dSmrg		fi
5811f931275dSmrg
5812c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5813f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5814f931275dSmrg		fi
5815f931275dSmrg
5816c6a6acfbSmrg		CFLAGS="$CFLAGS -Wbad-function-cast"
5817f931275dSmrg
5818bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5819bc77032bSmrgprintf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5820c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5821bc77032bSmrg		if eval test \${$cacheid+y}
5822bc77032bSmrgthen :
5823bc77032bSmrg  printf %s "(cached) " >&6
5824bc77032bSmrgelse $as_nop
5825f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826f931275dSmrg/* end confdefs.h.  */
5827f931275dSmrgint i;
5828f931275dSmrgint
5829bc77032bSmrgmain (void)
5830f931275dSmrg{
5831f931275dSmrg
5832f931275dSmrg  ;
5833f931275dSmrg  return 0;
5834f931275dSmrg}
5835f931275dSmrg_ACEOF
5836bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5837bc77032bSmrgthen :
5838c6a6acfbSmrg  eval $cacheid=yes
5839bc77032bSmrgelse $as_nop
5840c6a6acfbSmrg  eval $cacheid=no
5841f931275dSmrgfi
5842bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5843f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5844f931275dSmrgfi
5845f931275dSmrg
5846f931275dSmrg
5847f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5848f931275dSmrg
5849c6a6acfbSmrg		eval supported=\$$cacheid
5850bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5852f931275dSmrg		if test "$supported" = "yes" ; then
5853c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5854f931275dSmrg			found="yes"
5855f931275dSmrg		fi
5856f931275dSmrg	fi
5857f931275dSmrg
5858f931275dSmrg
5859f931275dSmrg
5860f931275dSmrg
5861f931275dSmrg
5862f931275dSmrg
5863f931275dSmrg
5864f931275dSmrg
5865f931275dSmrg
5866f931275dSmrg
5867f931275dSmrg
5868f931275dSmrg
5869f931275dSmrg
5870f931275dSmrg
5871f931275dSmrg
5872f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
5873f931275dSmrg
5874c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
5879bc77032bSmrgthen :
5880bc77032bSmrg  printf %s "(cached) " >&6
5881bc77032bSmrgelse $as_nop
5882f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883f931275dSmrg/* end confdefs.h.  */
5884f931275dSmrgint i;
5885f931275dSmrg_ACEOF
5886bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5887bc77032bSmrgthen :
5888f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
5889bc77032bSmrgelse $as_nop
5890f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
5891f931275dSmrgfi
5892bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5893f931275dSmrgfi
5894bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5895bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5896c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5897f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5898f931275dSmrgfi
5899f931275dSmrg
5900c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5901c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5902f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903f931275dSmrg	fi
5904f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5905bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5906bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5907bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5908bc77032bSmrgthen :
5909bc77032bSmrg  printf %s "(cached) " >&6
5910bc77032bSmrgelse $as_nop
5911f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912f931275dSmrg/* end confdefs.h.  */
5913f931275dSmrgint i;
5914f931275dSmrg_ACEOF
5915bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
5916bc77032bSmrgthen :
5917f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
5918bc77032bSmrgelse $as_nop
5919f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
5920f931275dSmrgfi
5921bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5922f931275dSmrgfi
5923bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
5927f931275dSmrgfi
5928f931275dSmrg
5929f931275dSmrgfound="no"
5930f931275dSmrg
5931f931275dSmrg	if test $found = "no" ; then
5932c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934f931275dSmrg		fi
5935f931275dSmrg
5936c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938f931275dSmrg		fi
5939f931275dSmrg
5940f931275dSmrg		CFLAGS="$CFLAGS -Wold-style-definition"
5941f931275dSmrg
5942bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5943bc77032bSmrgprintf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5944c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wold_style_definition
5945bc77032bSmrg		if eval test \${$cacheid+y}
5946bc77032bSmrgthen :
5947bc77032bSmrg  printf %s "(cached) " >&6
5948bc77032bSmrgelse $as_nop
5949f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950f931275dSmrg/* end confdefs.h.  */
5951f931275dSmrgint i;
5952f931275dSmrgint
5953bc77032bSmrgmain (void)
5954f931275dSmrg{
5955f931275dSmrg
5956f931275dSmrg  ;
5957f931275dSmrg  return 0;
5958f931275dSmrg}
5959f931275dSmrg_ACEOF
5960bc77032bSmrgif ac_fn_c_try_link "$LINENO"
5961bc77032bSmrgthen :
5962c6a6acfbSmrg  eval $cacheid=yes
5963bc77032bSmrgelse $as_nop
5964c6a6acfbSmrg  eval $cacheid=no
5965f931275dSmrgfi
5966bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
5967f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
5968f931275dSmrgfi
5969f931275dSmrg
5970f931275dSmrg
5971f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
5972f931275dSmrg
5973c6a6acfbSmrg		eval supported=\$$cacheid
5974bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5975bc77032bSmrgprintf "%s\n" "$supported" >&6; }
5976f931275dSmrg		if test "$supported" = "yes" ; then
5977f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5978f931275dSmrg			found="yes"
5979f931275dSmrg		fi
5980f931275dSmrg	fi
5981f931275dSmrg
5982c6a6acfbSmrg	if test $found = "no" ; then
5983c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5984c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5985c6a6acfbSmrg		fi
5986c6a6acfbSmrg
5987c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5988c6a6acfbSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989c6a6acfbSmrg		fi
5990c6a6acfbSmrg
5991c6a6acfbSmrg		CFLAGS="$CFLAGS -fd"
5992c6a6acfbSmrg
5993bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5994bc77032bSmrgprintf %s "checking if $CC supports -fd... " >&6; }
5995c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__fd
5996bc77032bSmrg		if eval test \${$cacheid+y}
5997bc77032bSmrgthen :
5998bc77032bSmrg  printf %s "(cached) " >&6
5999bc77032bSmrgelse $as_nop
6000c6a6acfbSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001c6a6acfbSmrg/* end confdefs.h.  */
6002c6a6acfbSmrgint i;
6003c6a6acfbSmrgint
6004bc77032bSmrgmain (void)
6005c6a6acfbSmrg{
6006c6a6acfbSmrg
6007c6a6acfbSmrg  ;
6008c6a6acfbSmrg  return 0;
6009c6a6acfbSmrg}
6010c6a6acfbSmrg_ACEOF
6011bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6012bc77032bSmrgthen :
6013c6a6acfbSmrg  eval $cacheid=yes
6014bc77032bSmrgelse $as_nop
6015c6a6acfbSmrg  eval $cacheid=no
6016c6a6acfbSmrgfi
6017bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6018c6a6acfbSmrg    conftest$ac_exeext conftest.$ac_ext
6019c6a6acfbSmrgfi
6020c6a6acfbSmrg
6021c6a6acfbSmrg
6022c6a6acfbSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6023c6a6acfbSmrg
6024c6a6acfbSmrg		eval supported=\$$cacheid
6025bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6026bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6027c6a6acfbSmrg		if test "$supported" = "yes" ; then
6028c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -fd"
6029c6a6acfbSmrg			found="yes"
6030c6a6acfbSmrg		fi
6031c6a6acfbSmrg	fi
6032c6a6acfbSmrg
6033c6a6acfbSmrg
6034c6a6acfbSmrg
6035c6a6acfbSmrg
6036c6a6acfbSmrg
6037c6a6acfbSmrg
6038c6a6acfbSmrg
6039c6a6acfbSmrg
6040c6a6acfbSmrg
6041f931275dSmrg
6042f931275dSmrg
6043f931275dSmrg
6044f931275dSmrg
6045f931275dSmrg
6046f931275dSmrg
6047f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6048f931275dSmrg
6049c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6050f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6052bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6053bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6054bc77032bSmrgthen :
6055bc77032bSmrg  printf %s "(cached) " >&6
6056bc77032bSmrgelse $as_nop
6057f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058f931275dSmrg/* end confdefs.h.  */
6059f931275dSmrgint i;
6060f931275dSmrg_ACEOF
6061bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6062bc77032bSmrgthen :
6063f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6064bc77032bSmrgelse $as_nop
6065f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6066f931275dSmrgfi
6067bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6068f931275dSmrgfi
6069bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6070bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6071c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6072f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6073f931275dSmrgfi
6074f931275dSmrg
6075c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6076c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6077f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6078f931275dSmrg	fi
6079f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6080bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6081bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6082bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6083bc77032bSmrgthen :
6084bc77032bSmrg  printf %s "(cached) " >&6
6085bc77032bSmrgelse $as_nop
6086f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087f931275dSmrg/* end confdefs.h.  */
6088f931275dSmrgint i;
6089f931275dSmrg_ACEOF
6090bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6091bc77032bSmrgthen :
6092f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6093bc77032bSmrgelse $as_nop
6094f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6095f931275dSmrgfi
6096bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6097f931275dSmrgfi
6098bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6099bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6100c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6101f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6102f931275dSmrgfi
6103f931275dSmrg
6104f931275dSmrgfound="no"
6105f931275dSmrg
6106f931275dSmrg	if test $found = "no" ; then
6107c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109f931275dSmrg		fi
6110f931275dSmrg
6111c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6112f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6113f931275dSmrg		fi
6114f931275dSmrg
6115f931275dSmrg		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6116f931275dSmrg
6117bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6118bc77032bSmrgprintf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6119c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6120bc77032bSmrg		if eval test \${$cacheid+y}
6121bc77032bSmrgthen :
6122bc77032bSmrg  printf %s "(cached) " >&6
6123bc77032bSmrgelse $as_nop
6124f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125f931275dSmrg/* end confdefs.h.  */
6126f931275dSmrgint i;
6127f931275dSmrgint
6128bc77032bSmrgmain (void)
6129f931275dSmrg{
6130f931275dSmrg
6131f931275dSmrg  ;
6132f931275dSmrg  return 0;
6133f931275dSmrg}
6134f931275dSmrg_ACEOF
6135bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6136bc77032bSmrgthen :
6137c6a6acfbSmrg  eval $cacheid=yes
6138bc77032bSmrgelse $as_nop
6139c6a6acfbSmrg  eval $cacheid=no
6140f931275dSmrgfi
6141bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6142f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6143f931275dSmrgfi
6144f931275dSmrg
6145f931275dSmrg
6146f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6147f931275dSmrg
6148c6a6acfbSmrg		eval supported=\$$cacheid
6149bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6150bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6151f931275dSmrg		if test "$supported" = "yes" ; then
6152f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6153f931275dSmrg			found="yes"
6154f931275dSmrg		fi
6155f931275dSmrg	fi
6156f931275dSmrg
6157f931275dSmrg
6158f931275dSmrg
6159c6a6acfbSmrg
6160c6a6acfbSmrg
6161f931275dSmrg# This chunk adds additional warnings that could catch undesired effects.
6162f931275dSmrg
6163f931275dSmrg
6164f931275dSmrg
6165f931275dSmrg
6166f931275dSmrg
6167c6a6acfbSmrg
6168c6a6acfbSmrg
6169c6a6acfbSmrg
6170c6a6acfbSmrg
6171c6a6acfbSmrg
6172c6a6acfbSmrg
6173c6a6acfbSmrg
6174c6a6acfbSmrg
6175f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6176f931275dSmrg
6177c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6182bc77032bSmrgthen :
6183bc77032bSmrg  printf %s "(cached) " >&6
6184bc77032bSmrgelse $as_nop
6185f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186f931275dSmrg/* end confdefs.h.  */
6187f931275dSmrgint i;
6188f931275dSmrg_ACEOF
6189bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6190bc77032bSmrgthen :
6191f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6192bc77032bSmrgelse $as_nop
6193f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6194f931275dSmrgfi
6195bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6196f931275dSmrgfi
6197bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6198bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6199c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6200f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6201f931275dSmrgfi
6202f931275dSmrg
6203c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6204c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206f931275dSmrg	fi
6207f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6208bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6209bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6210bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6211bc77032bSmrgthen :
6212bc77032bSmrg  printf %s "(cached) " >&6
6213bc77032bSmrgelse $as_nop
6214f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215f931275dSmrg/* end confdefs.h.  */
6216f931275dSmrgint i;
6217f931275dSmrg_ACEOF
6218bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6219bc77032bSmrgthen :
6220f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6221bc77032bSmrgelse $as_nop
6222f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6223f931275dSmrgfi
6224bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6225f931275dSmrgfi
6226bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6227bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6228c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6229f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6230f931275dSmrgfi
6231f931275dSmrg
6232f931275dSmrgfound="no"
6233f931275dSmrg
6234f931275dSmrg	if test $found = "no" ; then
6235c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6236f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6237f931275dSmrg		fi
6238f931275dSmrg
6239c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6240f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6241f931275dSmrg		fi
6242f931275dSmrg
6243f931275dSmrg		CFLAGS="$CFLAGS -Wunused"
6244f931275dSmrg
6245bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6246bc77032bSmrgprintf %s "checking if $CC supports -Wunused... " >&6; }
6247c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wunused
6248bc77032bSmrg		if eval test \${$cacheid+y}
6249bc77032bSmrgthen :
6250bc77032bSmrg  printf %s "(cached) " >&6
6251bc77032bSmrgelse $as_nop
6252f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253f931275dSmrg/* end confdefs.h.  */
6254f931275dSmrgint i;
6255f931275dSmrgint
6256bc77032bSmrgmain (void)
6257f931275dSmrg{
6258f931275dSmrg
6259f931275dSmrg  ;
6260f931275dSmrg  return 0;
6261f931275dSmrg}
6262f931275dSmrg_ACEOF
6263bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6264bc77032bSmrgthen :
6265c6a6acfbSmrg  eval $cacheid=yes
6266bc77032bSmrgelse $as_nop
6267c6a6acfbSmrg  eval $cacheid=no
6268f931275dSmrgfi
6269bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6270f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6271f931275dSmrgfi
6272f931275dSmrg
6273f931275dSmrg
6274f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6275f931275dSmrg
6276c6a6acfbSmrg		eval supported=\$$cacheid
6277bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6278bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6279f931275dSmrg		if test "$supported" = "yes" ; then
6280f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6281f931275dSmrg			found="yes"
6282f931275dSmrg		fi
6283f931275dSmrg	fi
6284f931275dSmrg
6285f931275dSmrg
6286f931275dSmrg
6287f931275dSmrg
6288f931275dSmrg
6289f931275dSmrg
6290f931275dSmrg
6291c6a6acfbSmrg
6292c6a6acfbSmrg
6293c6a6acfbSmrg
6294c6a6acfbSmrg
6295c6a6acfbSmrg
6296c6a6acfbSmrg
6297c6a6acfbSmrg
6298c6a6acfbSmrg
6299f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6300f931275dSmrg
6301c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6302f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6304bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6305bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6306bc77032bSmrgthen :
6307bc77032bSmrg  printf %s "(cached) " >&6
6308bc77032bSmrgelse $as_nop
6309f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310f931275dSmrg/* end confdefs.h.  */
6311f931275dSmrgint i;
6312f931275dSmrg_ACEOF
6313bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6314bc77032bSmrgthen :
6315f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6316bc77032bSmrgelse $as_nop
6317f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6318f931275dSmrgfi
6319bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6320f931275dSmrgfi
6321bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6322bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6323c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6324f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6325f931275dSmrgfi
6326f931275dSmrg
6327c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6328c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330f931275dSmrg	fi
6331f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6333bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6334bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6335bc77032bSmrgthen :
6336bc77032bSmrg  printf %s "(cached) " >&6
6337bc77032bSmrgelse $as_nop
6338f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339f931275dSmrg/* end confdefs.h.  */
6340f931275dSmrgint i;
6341f931275dSmrg_ACEOF
6342bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6343bc77032bSmrgthen :
6344f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6345bc77032bSmrgelse $as_nop
6346f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6347f931275dSmrgfi
6348bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6349f931275dSmrgfi
6350bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6351bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6352c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6353f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6354f931275dSmrgfi
6355f931275dSmrg
6356f931275dSmrgfound="no"
6357f931275dSmrg
6358f931275dSmrg	if test $found = "no" ; then
6359c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6360f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6361f931275dSmrg		fi
6362f931275dSmrg
6363c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6364f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365f931275dSmrg		fi
6366f931275dSmrg
6367f931275dSmrg		CFLAGS="$CFLAGS -Wuninitialized"
6368f931275dSmrg
6369bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6370bc77032bSmrgprintf %s "checking if $CC supports -Wuninitialized... " >&6; }
6371c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wuninitialized
6372bc77032bSmrg		if eval test \${$cacheid+y}
6373bc77032bSmrgthen :
6374bc77032bSmrg  printf %s "(cached) " >&6
6375bc77032bSmrgelse $as_nop
6376f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377f931275dSmrg/* end confdefs.h.  */
6378f931275dSmrgint i;
6379f931275dSmrgint
6380bc77032bSmrgmain (void)
6381f931275dSmrg{
6382f931275dSmrg
6383f931275dSmrg  ;
6384f931275dSmrg  return 0;
6385f931275dSmrg}
6386f931275dSmrg_ACEOF
6387bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6388bc77032bSmrgthen :
6389c6a6acfbSmrg  eval $cacheid=yes
6390bc77032bSmrgelse $as_nop
6391c6a6acfbSmrg  eval $cacheid=no
6392f931275dSmrgfi
6393bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6394f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6395f931275dSmrgfi
6396f931275dSmrg
6397f931275dSmrg
6398f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6399f931275dSmrg
6400c6a6acfbSmrg		eval supported=\$$cacheid
6401bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6402bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6403f931275dSmrg		if test "$supported" = "yes" ; then
6404f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6405f931275dSmrg			found="yes"
6406f931275dSmrg		fi
6407f931275dSmrg	fi
6408f931275dSmrg
6409f931275dSmrg
6410f931275dSmrg
6411f931275dSmrg
6412f931275dSmrg
6413f931275dSmrg
6414f931275dSmrg
6415c6a6acfbSmrg
6416c6a6acfbSmrg
6417c6a6acfbSmrg
6418c6a6acfbSmrg
6419c6a6acfbSmrg
6420c6a6acfbSmrg
6421c6a6acfbSmrg
6422c6a6acfbSmrg
6423f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6424f931275dSmrg
6425c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6430bc77032bSmrgthen :
6431bc77032bSmrg  printf %s "(cached) " >&6
6432bc77032bSmrgelse $as_nop
6433f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434f931275dSmrg/* end confdefs.h.  */
6435f931275dSmrgint i;
6436f931275dSmrg_ACEOF
6437bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6438bc77032bSmrgthen :
6439f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6440bc77032bSmrgelse $as_nop
6441f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6442f931275dSmrgfi
6443bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6444f931275dSmrgfi
6445bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6446bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6447c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6448f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6449f931275dSmrgfi
6450f931275dSmrg
6451c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6452c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454f931275dSmrg	fi
6455f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6456bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6457bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6458bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6459bc77032bSmrgthen :
6460bc77032bSmrg  printf %s "(cached) " >&6
6461bc77032bSmrgelse $as_nop
6462f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463f931275dSmrg/* end confdefs.h.  */
6464f931275dSmrgint i;
6465f931275dSmrg_ACEOF
6466bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6467bc77032bSmrgthen :
6468f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6469bc77032bSmrgelse $as_nop
6470f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6471f931275dSmrgfi
6472bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6473f931275dSmrgfi
6474bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6478f931275dSmrgfi
6479f931275dSmrg
6480f931275dSmrgfound="no"
6481f931275dSmrg
6482f931275dSmrg	if test $found = "no" ; then
6483c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485f931275dSmrg		fi
6486f931275dSmrg
6487c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6488f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489f931275dSmrg		fi
6490f931275dSmrg
6491f931275dSmrg		CFLAGS="$CFLAGS -Wshadow"
6492f931275dSmrg
6493bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6494bc77032bSmrgprintf %s "checking if $CC supports -Wshadow... " >&6; }
6495c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wshadow
6496bc77032bSmrg		if eval test \${$cacheid+y}
6497bc77032bSmrgthen :
6498bc77032bSmrg  printf %s "(cached) " >&6
6499bc77032bSmrgelse $as_nop
6500f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501f931275dSmrg/* end confdefs.h.  */
6502f931275dSmrgint i;
6503f931275dSmrgint
6504bc77032bSmrgmain (void)
6505f931275dSmrg{
6506f931275dSmrg
6507f931275dSmrg  ;
6508f931275dSmrg  return 0;
6509f931275dSmrg}
6510f931275dSmrg_ACEOF
6511bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6512bc77032bSmrgthen :
6513c6a6acfbSmrg  eval $cacheid=yes
6514bc77032bSmrgelse $as_nop
6515c6a6acfbSmrg  eval $cacheid=no
6516f931275dSmrgfi
6517bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6518f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6519f931275dSmrgfi
6520f931275dSmrg
6521f931275dSmrg
6522f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6523f931275dSmrg
6524c6a6acfbSmrg		eval supported=\$$cacheid
6525bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6526bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6527f931275dSmrg		if test "$supported" = "yes" ; then
6528f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6529f931275dSmrg			found="yes"
6530f931275dSmrg		fi
6531f931275dSmrg	fi
6532f931275dSmrg
6533f931275dSmrg
6534f931275dSmrg
6535f931275dSmrg
6536f931275dSmrg
6537f931275dSmrg
6538f931275dSmrg
6539c6a6acfbSmrg
6540c6a6acfbSmrg
6541c6a6acfbSmrg
6542c6a6acfbSmrg
6543c6a6acfbSmrg
6544c6a6acfbSmrg
6545c6a6acfbSmrg
6546c6a6acfbSmrg
6547f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6548f931275dSmrg
6549c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6550f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6552bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6553bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6554bc77032bSmrgthen :
6555bc77032bSmrg  printf %s "(cached) " >&6
6556bc77032bSmrgelse $as_nop
6557f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558f931275dSmrg/* end confdefs.h.  */
6559f931275dSmrgint i;
6560f931275dSmrg_ACEOF
6561bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6562bc77032bSmrgthen :
6563f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6564bc77032bSmrgelse $as_nop
6565f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6566f931275dSmrgfi
6567bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6568f931275dSmrgfi
6569bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6570bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6571c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6572f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6573f931275dSmrgfi
6574f931275dSmrg
6575c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6576c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6577f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578f931275dSmrg	fi
6579f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6581bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6582bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6583bc77032bSmrgthen :
6584bc77032bSmrg  printf %s "(cached) " >&6
6585bc77032bSmrgelse $as_nop
6586f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587f931275dSmrg/* end confdefs.h.  */
6588f931275dSmrgint i;
6589f931275dSmrg_ACEOF
6590bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6591bc77032bSmrgthen :
6592f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6593bc77032bSmrgelse $as_nop
6594f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6595f931275dSmrgfi
6596bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6597f931275dSmrgfi
6598bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6599bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6600c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6601f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6602f931275dSmrgfi
6603f931275dSmrg
6604f931275dSmrgfound="no"
6605f931275dSmrg
6606f931275dSmrg	if test $found = "no" ; then
6607c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609f931275dSmrg		fi
6610f931275dSmrg
6611c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6612f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6613f931275dSmrg		fi
6614f931275dSmrg
6615c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-noreturn"
6616f931275dSmrg
6617bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6618bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6619c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6620bc77032bSmrg		if eval test \${$cacheid+y}
6621bc77032bSmrgthen :
6622bc77032bSmrg  printf %s "(cached) " >&6
6623bc77032bSmrgelse $as_nop
6624f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625f931275dSmrg/* end confdefs.h.  */
6626f931275dSmrgint i;
6627f931275dSmrgint
6628bc77032bSmrgmain (void)
6629f931275dSmrg{
6630f931275dSmrg
6631f931275dSmrg  ;
6632f931275dSmrg  return 0;
6633f931275dSmrg}
6634f931275dSmrg_ACEOF
6635bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6636bc77032bSmrgthen :
6637c6a6acfbSmrg  eval $cacheid=yes
6638bc77032bSmrgelse $as_nop
6639c6a6acfbSmrg  eval $cacheid=no
6640f931275dSmrgfi
6641bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6642f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6643f931275dSmrgfi
6644f931275dSmrg
6645f931275dSmrg
6646f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6647f931275dSmrg
6648c6a6acfbSmrg		eval supported=\$$cacheid
6649bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6651f931275dSmrg		if test "$supported" = "yes" ; then
6652c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6653f931275dSmrg			found="yes"
6654f931275dSmrg		fi
6655f931275dSmrg	fi
6656f931275dSmrg
6657f931275dSmrg
6658f931275dSmrg
6659f931275dSmrg
6660f931275dSmrg
6661f931275dSmrg
6662f931275dSmrg
6663c6a6acfbSmrg
6664c6a6acfbSmrg
6665c6a6acfbSmrg
6666c6a6acfbSmrg
6667c6a6acfbSmrg
6668c6a6acfbSmrg
6669c6a6acfbSmrg
6670c6a6acfbSmrg
6671f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6672f931275dSmrg
6673c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6678bc77032bSmrgthen :
6679bc77032bSmrg  printf %s "(cached) " >&6
6680bc77032bSmrgelse $as_nop
6681f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682f931275dSmrg/* end confdefs.h.  */
6683f931275dSmrgint i;
6684f931275dSmrg_ACEOF
6685bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6686bc77032bSmrgthen :
6687f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6688bc77032bSmrgelse $as_nop
6689f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6690f931275dSmrgfi
6691bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6692f931275dSmrgfi
6693bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6697f931275dSmrgfi
6698f931275dSmrg
6699c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702f931275dSmrg	fi
6703f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6707bc77032bSmrgthen :
6708bc77032bSmrg  printf %s "(cached) " >&6
6709bc77032bSmrgelse $as_nop
6710f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711f931275dSmrg/* end confdefs.h.  */
6712f931275dSmrgint i;
6713f931275dSmrg_ACEOF
6714bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6715bc77032bSmrgthen :
6716f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6717bc77032bSmrgelse $as_nop
6718f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6719f931275dSmrgfi
6720bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6721f931275dSmrgfi
6722bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6726f931275dSmrgfi
6727f931275dSmrg
6728f931275dSmrgfound="no"
6729f931275dSmrg
6730f931275dSmrg	if test $found = "no" ; then
6731c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6732f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733f931275dSmrg		fi
6734f931275dSmrg
6735c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6736f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737f931275dSmrg		fi
6738f931275dSmrg
6739c6a6acfbSmrg		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6740f931275dSmrg
6741bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6742bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6743c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6744bc77032bSmrg		if eval test \${$cacheid+y}
6745bc77032bSmrgthen :
6746bc77032bSmrg  printf %s "(cached) " >&6
6747bc77032bSmrgelse $as_nop
6748f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749f931275dSmrg/* end confdefs.h.  */
6750f931275dSmrgint i;
6751f931275dSmrgint
6752bc77032bSmrgmain (void)
6753f931275dSmrg{
6754f931275dSmrg
6755f931275dSmrg  ;
6756f931275dSmrg  return 0;
6757f931275dSmrg}
6758f931275dSmrg_ACEOF
6759bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6760bc77032bSmrgthen :
6761c6a6acfbSmrg  eval $cacheid=yes
6762bc77032bSmrgelse $as_nop
6763c6a6acfbSmrg  eval $cacheid=no
6764f931275dSmrgfi
6765bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6766f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6767f931275dSmrgfi
6768f931275dSmrg
6769f931275dSmrg
6770f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6771f931275dSmrg
6772c6a6acfbSmrg		eval supported=\$$cacheid
6773bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6774bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6775f931275dSmrg		if test "$supported" = "yes" ; then
6776c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6777f931275dSmrg			found="yes"
6778f931275dSmrg		fi
6779f931275dSmrg	fi
6780f931275dSmrg
6781f931275dSmrg
6782f931275dSmrg
6783f931275dSmrg
6784f931275dSmrg
6785f931275dSmrg
6786f931275dSmrg
6787c6a6acfbSmrg
6788c6a6acfbSmrg
6789c6a6acfbSmrg
6790c6a6acfbSmrg
6791c6a6acfbSmrg
6792c6a6acfbSmrg
6793c6a6acfbSmrg
6794c6a6acfbSmrg
6795f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6796f931275dSmrg
6797c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6798f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6800bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6801bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6802bc77032bSmrgthen :
6803bc77032bSmrg  printf %s "(cached) " >&6
6804bc77032bSmrgelse $as_nop
6805f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806f931275dSmrg/* end confdefs.h.  */
6807f931275dSmrgint i;
6808f931275dSmrg_ACEOF
6809bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6810bc77032bSmrgthen :
6811f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6812bc77032bSmrgelse $as_nop
6813f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6814f931275dSmrgfi
6815bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6816f931275dSmrgfi
6817bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6818bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6819c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6820f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6821f931275dSmrgfi
6822f931275dSmrg
6823c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6824c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6825f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6826f931275dSmrg	fi
6827f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6829bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6830bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6831bc77032bSmrgthen :
6832bc77032bSmrg  printf %s "(cached) " >&6
6833bc77032bSmrgelse $as_nop
6834f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835f931275dSmrg/* end confdefs.h.  */
6836f931275dSmrgint i;
6837f931275dSmrg_ACEOF
6838bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6839bc77032bSmrgthen :
6840f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6841bc77032bSmrgelse $as_nop
6842f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6843f931275dSmrgfi
6844bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6845f931275dSmrgfi
6846bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6850f931275dSmrgfi
6851f931275dSmrg
6852f931275dSmrgfound="no"
6853f931275dSmrg
6854f931275dSmrg	if test $found = "no" ; then
6855c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857f931275dSmrg		fi
6858f931275dSmrg
6859c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861f931275dSmrg		fi
6862f931275dSmrg
6863c6a6acfbSmrg		CFLAGS="$CFLAGS -Wredundant-decls"
6864f931275dSmrg
6865bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6866bc77032bSmrgprintf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6867c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wredundant_decls
6868bc77032bSmrg		if eval test \${$cacheid+y}
6869bc77032bSmrgthen :
6870bc77032bSmrg  printf %s "(cached) " >&6
6871bc77032bSmrgelse $as_nop
6872f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873f931275dSmrg/* end confdefs.h.  */
6874f931275dSmrgint i;
6875f931275dSmrgint
6876bc77032bSmrgmain (void)
6877f931275dSmrg{
6878f931275dSmrg
6879f931275dSmrg  ;
6880f931275dSmrg  return 0;
6881f931275dSmrg}
6882f931275dSmrg_ACEOF
6883bc77032bSmrgif ac_fn_c_try_link "$LINENO"
6884bc77032bSmrgthen :
6885c6a6acfbSmrg  eval $cacheid=yes
6886bc77032bSmrgelse $as_nop
6887c6a6acfbSmrg  eval $cacheid=no
6888f931275dSmrgfi
6889bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
6890f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
6891f931275dSmrgfi
6892f931275dSmrg
6893f931275dSmrg
6894f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
6895f931275dSmrg
6896c6a6acfbSmrg		eval supported=\$$cacheid
6897bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898bc77032bSmrgprintf "%s\n" "$supported" >&6; }
6899f931275dSmrg		if test "$supported" = "yes" ; then
6900c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6901f931275dSmrg			found="yes"
6902f931275dSmrg		fi
6903f931275dSmrg	fi
6904f931275dSmrg
6905f931275dSmrg
6906f931275dSmrg
6907f931275dSmrg
6908f931275dSmrg
6909f931275dSmrg
6910f931275dSmrg
6911c6a6acfbSmrg
6912c6a6acfbSmrg
6913c6a6acfbSmrg
6914c6a6acfbSmrg
6915c6a6acfbSmrg
6916c6a6acfbSmrg
6917c6a6acfbSmrg
6918c6a6acfbSmrg
6919f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
6920f931275dSmrg
6921c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6922f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6924bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6925bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
6926bc77032bSmrgthen :
6927bc77032bSmrg  printf %s "(cached) " >&6
6928bc77032bSmrgelse $as_nop
6929f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930f931275dSmrg/* end confdefs.h.  */
6931f931275dSmrgint i;
6932f931275dSmrg_ACEOF
6933bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6934bc77032bSmrgthen :
6935f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
6936bc77032bSmrgelse $as_nop
6937f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
6938f931275dSmrgfi
6939bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6940f931275dSmrgfi
6941bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6942bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6943c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6944f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6945f931275dSmrgfi
6946f931275dSmrg
6947c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6948c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6949f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6950f931275dSmrg	fi
6951f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6952bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6953bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6954bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6955bc77032bSmrgthen :
6956bc77032bSmrg  printf %s "(cached) " >&6
6957bc77032bSmrgelse $as_nop
6958f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959f931275dSmrg/* end confdefs.h.  */
6960f931275dSmrgint i;
6961f931275dSmrg_ACEOF
6962bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
6963bc77032bSmrgthen :
6964f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
6965bc77032bSmrgelse $as_nop
6966f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
6967f931275dSmrgfi
6968bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6969f931275dSmrgfi
6970bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6971bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6972c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6973f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
6974f931275dSmrgfi
6975f931275dSmrg
6976f931275dSmrgfound="no"
6977f931275dSmrg
6978f931275dSmrg	if test $found = "no" ; then
6979c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981f931275dSmrg		fi
6982f931275dSmrg
6983c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6984f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6985f931275dSmrg		fi
6986f931275dSmrg
6987c6a6acfbSmrg		CFLAGS="$CFLAGS -Wlogical-op"
6988f931275dSmrg
6989bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6990bc77032bSmrgprintf %s "checking if $CC supports -Wlogical-op... " >&6; }
6991c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wlogical_op
6992bc77032bSmrg		if eval test \${$cacheid+y}
6993bc77032bSmrgthen :
6994bc77032bSmrg  printf %s "(cached) " >&6
6995bc77032bSmrgelse $as_nop
6996f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997f931275dSmrg/* end confdefs.h.  */
6998f931275dSmrgint i;
6999f931275dSmrgint
7000bc77032bSmrgmain (void)
7001f931275dSmrg{
7002f931275dSmrg
7003f931275dSmrg  ;
7004f931275dSmrg  return 0;
7005f931275dSmrg}
7006f931275dSmrg_ACEOF
7007bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7008bc77032bSmrgthen :
7009c6a6acfbSmrg  eval $cacheid=yes
7010bc77032bSmrgelse $as_nop
7011c6a6acfbSmrg  eval $cacheid=no
7012f931275dSmrgfi
7013bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7014f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7015f931275dSmrgfi
7016f931275dSmrg
7017f931275dSmrg
7018f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7019f931275dSmrg
7020c6a6acfbSmrg		eval supported=\$$cacheid
7021bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7022bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7023f931275dSmrg		if test "$supported" = "yes" ; then
7024c6a6acfbSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7025f931275dSmrg			found="yes"
7026f931275dSmrg		fi
7027f931275dSmrg	fi
7028f931275dSmrg
7029f931275dSmrg
7030f931275dSmrg
7031f931275dSmrg# These are currently disabled because they are noisy.  They will be enabled
7032f931275dSmrg# in the future once the codebase is sufficiently modernized to silence
7033f931275dSmrg# them.  For now, I don't want them to drown out the other warnings.
7034c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7035c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7036c6a6acfbSmrg# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7037f931275dSmrg
703822281038Smrg# Turn some warnings into errors, so we don't accidently get successful builds
7039f931275dSmrg# when there are problems that should be fixed.
7040f931275dSmrg
7041f931275dSmrgif test "x$SELECTIVE_WERROR" = "xyes" ; then
7042f931275dSmrg
7043f931275dSmrg
7044f931275dSmrg
7045f931275dSmrg
7046f931275dSmrg
7047c6a6acfbSmrg
7048c6a6acfbSmrg
7049c6a6acfbSmrg
7050c6a6acfbSmrg
7051c6a6acfbSmrg
7052c6a6acfbSmrg
7053c6a6acfbSmrg
7054c6a6acfbSmrg
7055f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7056f931275dSmrg
7057c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7062bc77032bSmrgthen :
7063bc77032bSmrg  printf %s "(cached) " >&6
7064bc77032bSmrgelse $as_nop
7065f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066f931275dSmrg/* end confdefs.h.  */
7067f931275dSmrgint i;
7068f931275dSmrg_ACEOF
7069bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7070bc77032bSmrgthen :
7071f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7072bc77032bSmrgelse $as_nop
7073f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7074f931275dSmrgfi
7075bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7076f931275dSmrgfi
7077bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7081f931275dSmrgfi
7082f931275dSmrg
7083c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086f931275dSmrg	fi
7087f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7091bc77032bSmrgthen :
7092bc77032bSmrg  printf %s "(cached) " >&6
7093bc77032bSmrgelse $as_nop
7094f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095f931275dSmrg/* end confdefs.h.  */
7096f931275dSmrgint i;
7097f931275dSmrg_ACEOF
7098bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7099bc77032bSmrgthen :
7100f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7101bc77032bSmrgelse $as_nop
7102f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7103f931275dSmrgfi
7104bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105f931275dSmrgfi
7106bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7110f931275dSmrgfi
7111f931275dSmrg
7112f931275dSmrgfound="no"
7113f931275dSmrg
7114f931275dSmrg	if test $found = "no" ; then
7115c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117f931275dSmrg		fi
7118f931275dSmrg
7119c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121f931275dSmrg		fi
7122f931275dSmrg
7123f931275dSmrg		CFLAGS="$CFLAGS -Werror=implicit"
7124f931275dSmrg
7125bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7126bc77032bSmrgprintf %s "checking if $CC supports -Werror=implicit... " >&6; }
7127c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_implicit
7128bc77032bSmrg		if eval test \${$cacheid+y}
7129bc77032bSmrgthen :
7130bc77032bSmrg  printf %s "(cached) " >&6
7131bc77032bSmrgelse $as_nop
7132f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133f931275dSmrg/* end confdefs.h.  */
7134f931275dSmrgint i;
7135f931275dSmrgint
7136bc77032bSmrgmain (void)
7137f931275dSmrg{
7138f931275dSmrg
7139f931275dSmrg  ;
7140f931275dSmrg  return 0;
7141f931275dSmrg}
7142f931275dSmrg_ACEOF
7143bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7144bc77032bSmrgthen :
7145c6a6acfbSmrg  eval $cacheid=yes
7146bc77032bSmrgelse $as_nop
7147c6a6acfbSmrg  eval $cacheid=no
7148f931275dSmrgfi
7149bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7150f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7151f931275dSmrgfi
7152f931275dSmrg
7153f931275dSmrg
7154f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7155f931275dSmrg
7156c6a6acfbSmrg		eval supported=\$$cacheid
7157bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7159f931275dSmrg		if test "$supported" = "yes" ; then
7160f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7161f931275dSmrg			found="yes"
7162f931275dSmrg		fi
7163f931275dSmrg	fi
7164f931275dSmrg
7165f931275dSmrg	if test $found = "no" ; then
7166c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168f931275dSmrg		fi
7169f931275dSmrg
7170c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172f931275dSmrg		fi
7173f931275dSmrg
7174f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7175f931275dSmrg
7176bc77032bSmrg		{ 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
7177bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7178c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7179bc77032bSmrg		if eval test \${$cacheid+y}
7180bc77032bSmrgthen :
7181bc77032bSmrg  printf %s "(cached) " >&6
7182bc77032bSmrgelse $as_nop
7183f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184f931275dSmrg/* end confdefs.h.  */
7185f931275dSmrgint i;
7186f931275dSmrgint
7187bc77032bSmrgmain (void)
7188f931275dSmrg{
7189f931275dSmrg
7190f931275dSmrg  ;
7191f931275dSmrg  return 0;
7192f931275dSmrg}
7193f931275dSmrg_ACEOF
7194bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7195bc77032bSmrgthen :
7196c6a6acfbSmrg  eval $cacheid=yes
7197bc77032bSmrgelse $as_nop
7198c6a6acfbSmrg  eval $cacheid=no
7199f931275dSmrgfi
7200bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7201f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7202f931275dSmrgfi
7203f931275dSmrg
7204f931275dSmrg
7205f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7206f931275dSmrg
7207c6a6acfbSmrg		eval supported=\$$cacheid
7208bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7209bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7210f931275dSmrg		if test "$supported" = "yes" ; then
7211f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7212f931275dSmrg			found="yes"
7213f931275dSmrg		fi
7214f931275dSmrg	fi
7215f931275dSmrg
7216f931275dSmrg
7217f931275dSmrg
7218f931275dSmrg
7219f931275dSmrg
7220f931275dSmrg
7221f931275dSmrg
7222c6a6acfbSmrg
7223c6a6acfbSmrg
7224c6a6acfbSmrg
7225c6a6acfbSmrg
7226c6a6acfbSmrg
7227c6a6acfbSmrg
7228c6a6acfbSmrg
7229c6a6acfbSmrg
7230f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7231f931275dSmrg
7232c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7233f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7235bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7236bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7237bc77032bSmrgthen :
7238bc77032bSmrg  printf %s "(cached) " >&6
7239bc77032bSmrgelse $as_nop
7240f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241f931275dSmrg/* end confdefs.h.  */
7242f931275dSmrgint i;
7243f931275dSmrg_ACEOF
7244bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7245bc77032bSmrgthen :
7246f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7247bc77032bSmrgelse $as_nop
7248f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7249f931275dSmrgfi
7250bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7251f931275dSmrgfi
7252bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7253bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7254c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7255f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7256f931275dSmrgfi
7257f931275dSmrg
7258c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7259c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261f931275dSmrg	fi
7262f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7263bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7264bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7265bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7266bc77032bSmrgthen :
7267bc77032bSmrg  printf %s "(cached) " >&6
7268bc77032bSmrgelse $as_nop
7269f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270f931275dSmrg/* end confdefs.h.  */
7271f931275dSmrgint i;
7272f931275dSmrg_ACEOF
7273bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7274bc77032bSmrgthen :
7275f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7276bc77032bSmrgelse $as_nop
7277f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7278f931275dSmrgfi
7279bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7280f931275dSmrgfi
7281bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7282bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7283c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7284f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7285f931275dSmrgfi
7286f931275dSmrg
7287f931275dSmrgfound="no"
7288f931275dSmrg
7289f931275dSmrg	if test $found = "no" ; then
7290c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7291f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292f931275dSmrg		fi
7293f931275dSmrg
7294c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7295f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296f931275dSmrg		fi
7297f931275dSmrg
7298f931275dSmrg		CFLAGS="$CFLAGS -Werror=nonnull"
7299f931275dSmrg
7300bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7301bc77032bSmrgprintf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7302c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_nonnull
7303bc77032bSmrg		if eval test \${$cacheid+y}
7304bc77032bSmrgthen :
7305bc77032bSmrg  printf %s "(cached) " >&6
7306bc77032bSmrgelse $as_nop
7307f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308f931275dSmrg/* end confdefs.h.  */
7309f931275dSmrgint i;
7310f931275dSmrgint
7311bc77032bSmrgmain (void)
7312f931275dSmrg{
7313f931275dSmrg
7314f931275dSmrg  ;
7315f931275dSmrg  return 0;
7316f931275dSmrg}
7317f931275dSmrg_ACEOF
7318bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7319bc77032bSmrgthen :
7320c6a6acfbSmrg  eval $cacheid=yes
7321bc77032bSmrgelse $as_nop
7322c6a6acfbSmrg  eval $cacheid=no
7323f931275dSmrgfi
7324bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7325f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7326f931275dSmrgfi
7327f931275dSmrg
7328f931275dSmrg
7329f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7330f931275dSmrg
7331c6a6acfbSmrg		eval supported=\$$cacheid
7332bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7333bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7334f931275dSmrg		if test "$supported" = "yes" ; then
7335f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7336f931275dSmrg			found="yes"
7337f931275dSmrg		fi
7338f931275dSmrg	fi
7339f931275dSmrg
7340f931275dSmrg
7341f931275dSmrg
7342f931275dSmrg
7343f931275dSmrg
7344f931275dSmrg
7345f931275dSmrg
7346c6a6acfbSmrg
7347c6a6acfbSmrg
7348c6a6acfbSmrg
7349c6a6acfbSmrg
7350c6a6acfbSmrg
7351c6a6acfbSmrg
7352c6a6acfbSmrg
7353c6a6acfbSmrg
7354f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7355f931275dSmrg
7356c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7357f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7359bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7360bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7361bc77032bSmrgthen :
7362bc77032bSmrg  printf %s "(cached) " >&6
7363bc77032bSmrgelse $as_nop
7364f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365f931275dSmrg/* end confdefs.h.  */
7366f931275dSmrgint i;
7367f931275dSmrg_ACEOF
7368bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7369bc77032bSmrgthen :
7370f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7371bc77032bSmrgelse $as_nop
7372f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7373f931275dSmrgfi
7374bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375f931275dSmrgfi
7376bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7377bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7378c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7379f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7380f931275dSmrgfi
7381f931275dSmrg
7382c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7383c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7384f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7385f931275dSmrg	fi
7386f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7387bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7388bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7389bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7390bc77032bSmrgthen :
7391bc77032bSmrg  printf %s "(cached) " >&6
7392bc77032bSmrgelse $as_nop
7393f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394f931275dSmrg/* end confdefs.h.  */
7395f931275dSmrgint i;
7396f931275dSmrg_ACEOF
7397bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7398bc77032bSmrgthen :
7399f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7400bc77032bSmrgelse $as_nop
7401f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7402f931275dSmrgfi
7403bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7404f931275dSmrgfi
7405bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7406bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7407c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7408f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7409f931275dSmrgfi
7410f931275dSmrg
7411f931275dSmrgfound="no"
7412f931275dSmrg
7413f931275dSmrg	if test $found = "no" ; then
7414c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7415f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7416f931275dSmrg		fi
7417f931275dSmrg
7418c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7419f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7420f931275dSmrg		fi
7421f931275dSmrg
7422f931275dSmrg		CFLAGS="$CFLAGS -Werror=init-self"
7423f931275dSmrg
7424bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7425bc77032bSmrgprintf %s "checking if $CC supports -Werror=init-self... " >&6; }
7426c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_init_self
7427bc77032bSmrg		if eval test \${$cacheid+y}
7428bc77032bSmrgthen :
7429bc77032bSmrg  printf %s "(cached) " >&6
7430bc77032bSmrgelse $as_nop
7431f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432f931275dSmrg/* end confdefs.h.  */
7433f931275dSmrgint i;
7434f931275dSmrgint
7435bc77032bSmrgmain (void)
7436f931275dSmrg{
7437f931275dSmrg
7438f931275dSmrg  ;
7439f931275dSmrg  return 0;
7440f931275dSmrg}
7441f931275dSmrg_ACEOF
7442bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7443bc77032bSmrgthen :
7444c6a6acfbSmrg  eval $cacheid=yes
7445bc77032bSmrgelse $as_nop
7446c6a6acfbSmrg  eval $cacheid=no
7447f931275dSmrgfi
7448bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7449f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7450f931275dSmrgfi
7451f931275dSmrg
7452f931275dSmrg
7453f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7454f931275dSmrg
7455c6a6acfbSmrg		eval supported=\$$cacheid
7456bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7457bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7458f931275dSmrg		if test "$supported" = "yes" ; then
7459f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7460f931275dSmrg			found="yes"
7461f931275dSmrg		fi
7462f931275dSmrg	fi
7463f931275dSmrg
7464f931275dSmrg
7465f931275dSmrg
7466f931275dSmrg
7467f931275dSmrg
7468f931275dSmrg
7469f931275dSmrg
7470c6a6acfbSmrg
7471c6a6acfbSmrg
7472c6a6acfbSmrg
7473c6a6acfbSmrg
7474c6a6acfbSmrg
7475c6a6acfbSmrg
7476c6a6acfbSmrg
7477c6a6acfbSmrg
7478f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7479f931275dSmrg
7480c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7481f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7483bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7484bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7485bc77032bSmrgthen :
7486bc77032bSmrg  printf %s "(cached) " >&6
7487bc77032bSmrgelse $as_nop
7488f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489f931275dSmrg/* end confdefs.h.  */
7490f931275dSmrgint i;
7491f931275dSmrg_ACEOF
7492bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7493bc77032bSmrgthen :
7494f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7495bc77032bSmrgelse $as_nop
7496f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7497f931275dSmrgfi
7498bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7499f931275dSmrgfi
7500bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7501bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7502c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7503f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7504f931275dSmrgfi
7505f931275dSmrg
7506c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7507c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7508f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7509f931275dSmrg	fi
7510f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7512bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7513bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7514bc77032bSmrgthen :
7515bc77032bSmrg  printf %s "(cached) " >&6
7516bc77032bSmrgelse $as_nop
7517f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518f931275dSmrg/* end confdefs.h.  */
7519f931275dSmrgint i;
7520f931275dSmrg_ACEOF
7521bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7522bc77032bSmrgthen :
7523f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7524bc77032bSmrgelse $as_nop
7525f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7526f931275dSmrgfi
7527bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7528f931275dSmrgfi
7529bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7530bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7531c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7532f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7533f931275dSmrgfi
7534f931275dSmrg
7535f931275dSmrgfound="no"
7536f931275dSmrg
7537f931275dSmrg	if test $found = "no" ; then
7538c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7539f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7540f931275dSmrg		fi
7541f931275dSmrg
7542c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7543f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544f931275dSmrg		fi
7545f931275dSmrg
7546f931275dSmrg		CFLAGS="$CFLAGS -Werror=main"
7547f931275dSmrg
7548bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7549bc77032bSmrgprintf %s "checking if $CC supports -Werror=main... " >&6; }
7550c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_main
7551bc77032bSmrg		if eval test \${$cacheid+y}
7552bc77032bSmrgthen :
7553bc77032bSmrg  printf %s "(cached) " >&6
7554bc77032bSmrgelse $as_nop
7555f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556f931275dSmrg/* end confdefs.h.  */
7557f931275dSmrgint i;
7558f931275dSmrgint
7559bc77032bSmrgmain (void)
7560f931275dSmrg{
7561f931275dSmrg
7562f931275dSmrg  ;
7563f931275dSmrg  return 0;
7564f931275dSmrg}
7565f931275dSmrg_ACEOF
7566bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7567bc77032bSmrgthen :
7568c6a6acfbSmrg  eval $cacheid=yes
7569bc77032bSmrgelse $as_nop
7570c6a6acfbSmrg  eval $cacheid=no
7571f931275dSmrgfi
7572bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7573f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7574f931275dSmrgfi
7575f931275dSmrg
7576f931275dSmrg
7577f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7578f931275dSmrg
7579c6a6acfbSmrg		eval supported=\$$cacheid
7580bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7582f931275dSmrg		if test "$supported" = "yes" ; then
7583f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7584f931275dSmrg			found="yes"
7585f931275dSmrg		fi
7586f931275dSmrg	fi
7587f931275dSmrg
7588f931275dSmrg
7589f931275dSmrg
7590f931275dSmrg
7591f931275dSmrg
7592f931275dSmrg
7593f931275dSmrg
7594c6a6acfbSmrg
7595c6a6acfbSmrg
7596c6a6acfbSmrg
7597c6a6acfbSmrg
7598c6a6acfbSmrg
7599c6a6acfbSmrg
7600c6a6acfbSmrg
7601c6a6acfbSmrg
7602f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7603f931275dSmrg
7604c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7605f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7607bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7608bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7609bc77032bSmrgthen :
7610bc77032bSmrg  printf %s "(cached) " >&6
7611bc77032bSmrgelse $as_nop
7612f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613f931275dSmrg/* end confdefs.h.  */
7614f931275dSmrgint i;
7615f931275dSmrg_ACEOF
7616bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7617bc77032bSmrgthen :
7618f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7619bc77032bSmrgelse $as_nop
7620f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7621f931275dSmrgfi
7622bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7623f931275dSmrgfi
7624bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7628f931275dSmrgfi
7629f931275dSmrg
7630c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633f931275dSmrg	fi
7634f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7638bc77032bSmrgthen :
7639bc77032bSmrg  printf %s "(cached) " >&6
7640bc77032bSmrgelse $as_nop
7641f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642f931275dSmrg/* end confdefs.h.  */
7643f931275dSmrgint i;
7644f931275dSmrg_ACEOF
7645bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7646bc77032bSmrgthen :
7647f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7648bc77032bSmrgelse $as_nop
7649f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7650f931275dSmrgfi
7651bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7652f931275dSmrgfi
7653bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7654bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7655c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7656f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7657f931275dSmrgfi
7658f931275dSmrg
7659f931275dSmrgfound="no"
7660f931275dSmrg
7661f931275dSmrg	if test $found = "no" ; then
7662c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664f931275dSmrg		fi
7665f931275dSmrg
7666c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668f931275dSmrg		fi
7669f931275dSmrg
7670f931275dSmrg		CFLAGS="$CFLAGS -Werror=missing-braces"
7671f931275dSmrg
7672bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7673bc77032bSmrgprintf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7674c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7675bc77032bSmrg		if eval test \${$cacheid+y}
7676bc77032bSmrgthen :
7677bc77032bSmrg  printf %s "(cached) " >&6
7678bc77032bSmrgelse $as_nop
7679f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680f931275dSmrg/* end confdefs.h.  */
7681f931275dSmrgint i;
7682f931275dSmrgint
7683bc77032bSmrgmain (void)
7684f931275dSmrg{
7685f931275dSmrg
7686f931275dSmrg  ;
7687f931275dSmrg  return 0;
7688f931275dSmrg}
7689f931275dSmrg_ACEOF
7690bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7691bc77032bSmrgthen :
7692c6a6acfbSmrg  eval $cacheid=yes
7693bc77032bSmrgelse $as_nop
7694c6a6acfbSmrg  eval $cacheid=no
7695f931275dSmrgfi
7696bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7697f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7698f931275dSmrgfi
7699f931275dSmrg
7700f931275dSmrg
7701f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7702f931275dSmrg
7703c6a6acfbSmrg		eval supported=\$$cacheid
7704bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7705bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7706f931275dSmrg		if test "$supported" = "yes" ; then
7707f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7708f931275dSmrg			found="yes"
7709f931275dSmrg		fi
7710f931275dSmrg	fi
7711f931275dSmrg
7712f931275dSmrg
7713f931275dSmrg
7714f931275dSmrg
7715f931275dSmrg
7716f931275dSmrg
7717f931275dSmrg
7718c6a6acfbSmrg
7719c6a6acfbSmrg
7720c6a6acfbSmrg
7721c6a6acfbSmrg
7722c6a6acfbSmrg
7723c6a6acfbSmrg
7724c6a6acfbSmrg
7725c6a6acfbSmrg
7726f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7727f931275dSmrg
7728c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7729f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7731bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7732bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7733bc77032bSmrgthen :
7734bc77032bSmrg  printf %s "(cached) " >&6
7735bc77032bSmrgelse $as_nop
7736f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737f931275dSmrg/* end confdefs.h.  */
7738f931275dSmrgint i;
7739f931275dSmrg_ACEOF
7740bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7741bc77032bSmrgthen :
7742f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7743bc77032bSmrgelse $as_nop
7744f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7745f931275dSmrgfi
7746bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7747f931275dSmrgfi
7748bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7749bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7750c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7751f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7752f931275dSmrgfi
7753f931275dSmrg
7754c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7755c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7756f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7757f931275dSmrg	fi
7758f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7759bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7760bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7761bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7762bc77032bSmrgthen :
7763bc77032bSmrg  printf %s "(cached) " >&6
7764bc77032bSmrgelse $as_nop
7765f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766f931275dSmrg/* end confdefs.h.  */
7767f931275dSmrgint i;
7768f931275dSmrg_ACEOF
7769bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7770bc77032bSmrgthen :
7771f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7772bc77032bSmrgelse $as_nop
7773f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7774f931275dSmrgfi
7775bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7776f931275dSmrgfi
7777bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7781f931275dSmrgfi
7782f931275dSmrg
7783f931275dSmrgfound="no"
7784f931275dSmrg
7785f931275dSmrg	if test $found = "no" ; then
7786c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7787f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788f931275dSmrg		fi
7789f931275dSmrg
7790c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7791f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792f931275dSmrg		fi
7793f931275dSmrg
7794f931275dSmrg		CFLAGS="$CFLAGS -Werror=sequence-point"
7795f931275dSmrg
7796bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7797bc77032bSmrgprintf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7798c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7799bc77032bSmrg		if eval test \${$cacheid+y}
7800bc77032bSmrgthen :
7801bc77032bSmrg  printf %s "(cached) " >&6
7802bc77032bSmrgelse $as_nop
7803f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804f931275dSmrg/* end confdefs.h.  */
7805f931275dSmrgint i;
7806f931275dSmrgint
7807bc77032bSmrgmain (void)
7808f931275dSmrg{
7809f931275dSmrg
7810f931275dSmrg  ;
7811f931275dSmrg  return 0;
7812f931275dSmrg}
7813f931275dSmrg_ACEOF
7814bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7815bc77032bSmrgthen :
7816c6a6acfbSmrg  eval $cacheid=yes
7817bc77032bSmrgelse $as_nop
7818c6a6acfbSmrg  eval $cacheid=no
7819f931275dSmrgfi
7820bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7821f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7822f931275dSmrgfi
7823f931275dSmrg
7824f931275dSmrg
7825f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7826f931275dSmrg
7827c6a6acfbSmrg		eval supported=\$$cacheid
7828bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7829bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7830f931275dSmrg		if test "$supported" = "yes" ; then
7831f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7832f931275dSmrg			found="yes"
7833f931275dSmrg		fi
7834f931275dSmrg	fi
7835f931275dSmrg
7836f931275dSmrg
7837f931275dSmrg
7838f931275dSmrg
7839f931275dSmrg
7840f931275dSmrg
7841f931275dSmrg
7842c6a6acfbSmrg
7843c6a6acfbSmrg
7844c6a6acfbSmrg
7845c6a6acfbSmrg
7846c6a6acfbSmrg
7847c6a6acfbSmrg
7848c6a6acfbSmrg
7849c6a6acfbSmrg
7850f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
7851f931275dSmrg
7852c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7853f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7855bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7856bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
7857bc77032bSmrgthen :
7858bc77032bSmrg  printf %s "(cached) " >&6
7859bc77032bSmrgelse $as_nop
7860f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861f931275dSmrg/* end confdefs.h.  */
7862f931275dSmrgint i;
7863f931275dSmrg_ACEOF
7864bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7865bc77032bSmrgthen :
7866f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
7867bc77032bSmrgelse $as_nop
7868f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
7869f931275dSmrgfi
7870bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7871f931275dSmrgfi
7872bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7873bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7874c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7875f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7876f931275dSmrgfi
7877f931275dSmrg
7878c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7879c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7880f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7881f931275dSmrg	fi
7882f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7883bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7884bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7885bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7886bc77032bSmrgthen :
7887bc77032bSmrg  printf %s "(cached) " >&6
7888bc77032bSmrgelse $as_nop
7889f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890f931275dSmrg/* end confdefs.h.  */
7891f931275dSmrgint i;
7892f931275dSmrg_ACEOF
7893bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
7894bc77032bSmrgthen :
7895f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
7896bc77032bSmrgelse $as_nop
7897f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
7898f931275dSmrgfi
7899bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7900f931275dSmrgfi
7901bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7902bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7903c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7904f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
7905f931275dSmrgfi
7906f931275dSmrg
7907f931275dSmrgfound="no"
7908f931275dSmrg
7909f931275dSmrg	if test $found = "no" ; then
7910c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7911f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7912f931275dSmrg		fi
7913f931275dSmrg
7914c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7915f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7916f931275dSmrg		fi
7917f931275dSmrg
7918f931275dSmrg		CFLAGS="$CFLAGS -Werror=return-type"
7919f931275dSmrg
7920bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7921bc77032bSmrgprintf %s "checking if $CC supports -Werror=return-type... " >&6; }
7922c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_return_type
7923bc77032bSmrg		if eval test \${$cacheid+y}
7924bc77032bSmrgthen :
7925bc77032bSmrg  printf %s "(cached) " >&6
7926bc77032bSmrgelse $as_nop
7927f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928f931275dSmrg/* end confdefs.h.  */
7929f931275dSmrgint i;
7930f931275dSmrgint
7931bc77032bSmrgmain (void)
7932f931275dSmrg{
7933f931275dSmrg
7934f931275dSmrg  ;
7935f931275dSmrg  return 0;
7936f931275dSmrg}
7937f931275dSmrg_ACEOF
7938bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7939bc77032bSmrgthen :
7940c6a6acfbSmrg  eval $cacheid=yes
7941bc77032bSmrgelse $as_nop
7942c6a6acfbSmrg  eval $cacheid=no
7943f931275dSmrgfi
7944bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7945f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7946f931275dSmrgfi
7947f931275dSmrg
7948f931275dSmrg
7949f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
7950f931275dSmrg
7951c6a6acfbSmrg		eval supported=\$$cacheid
7952bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953bc77032bSmrgprintf "%s\n" "$supported" >&6; }
7954f931275dSmrg		if test "$supported" = "yes" ; then
7955f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7956f931275dSmrg			found="yes"
7957f931275dSmrg		fi
7958f931275dSmrg	fi
7959f931275dSmrg
7960f931275dSmrg	if test $found = "no" ; then
7961c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7962f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7963f931275dSmrg		fi
7964f931275dSmrg
7965c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7966f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7967f931275dSmrg		fi
7968f931275dSmrg
7969f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7970f931275dSmrg
7971bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7972bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7973c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7974bc77032bSmrg		if eval test \${$cacheid+y}
7975bc77032bSmrgthen :
7976bc77032bSmrg  printf %s "(cached) " >&6
7977bc77032bSmrgelse $as_nop
7978f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979f931275dSmrg/* end confdefs.h.  */
7980f931275dSmrgint i;
7981f931275dSmrgint
7982bc77032bSmrgmain (void)
7983f931275dSmrg{
7984f931275dSmrg
7985f931275dSmrg  ;
7986f931275dSmrg  return 0;
7987f931275dSmrg}
7988f931275dSmrg_ACEOF
7989bc77032bSmrgif ac_fn_c_try_link "$LINENO"
7990bc77032bSmrgthen :
7991c6a6acfbSmrg  eval $cacheid=yes
7992bc77032bSmrgelse $as_nop
7993c6a6acfbSmrg  eval $cacheid=no
7994f931275dSmrgfi
7995bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
7996f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
7997f931275dSmrgfi
7998f931275dSmrg
7999f931275dSmrg
8000f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8001f931275dSmrg
8002c6a6acfbSmrg		eval supported=\$$cacheid
8003bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8004bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8005f931275dSmrg		if test "$supported" = "yes" ; then
8006f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8007f931275dSmrg			found="yes"
8008f931275dSmrg		fi
8009f931275dSmrg	fi
8010f931275dSmrg
8011f931275dSmrg
8012f931275dSmrg
8013f931275dSmrg
8014f931275dSmrg
8015f931275dSmrg
8016f931275dSmrg
8017c6a6acfbSmrg
8018c6a6acfbSmrg
8019c6a6acfbSmrg
8020c6a6acfbSmrg
8021c6a6acfbSmrg
8022c6a6acfbSmrg
8023c6a6acfbSmrg
8024c6a6acfbSmrg
8025f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8026f931275dSmrg
8027c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8028f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8030bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8031bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8032bc77032bSmrgthen :
8033bc77032bSmrg  printf %s "(cached) " >&6
8034bc77032bSmrgelse $as_nop
8035f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036f931275dSmrg/* end confdefs.h.  */
8037f931275dSmrgint i;
8038f931275dSmrg_ACEOF
8039bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8040bc77032bSmrgthen :
8041f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8042bc77032bSmrgelse $as_nop
8043f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8044f931275dSmrgfi
8045bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8046f931275dSmrgfi
8047bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8048bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8049c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8050f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8051f931275dSmrgfi
8052f931275dSmrg
8053c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8054c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8055f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056f931275dSmrg	fi
8057f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8058bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8059bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8060bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8061bc77032bSmrgthen :
8062bc77032bSmrg  printf %s "(cached) " >&6
8063bc77032bSmrgelse $as_nop
8064f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065f931275dSmrg/* end confdefs.h.  */
8066f931275dSmrgint i;
8067f931275dSmrg_ACEOF
8068bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8069bc77032bSmrgthen :
8070f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8071bc77032bSmrgelse $as_nop
8072f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8073f931275dSmrgfi
8074bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8075f931275dSmrgfi
8076bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8080f931275dSmrgfi
8081f931275dSmrg
8082f931275dSmrgfound="no"
8083f931275dSmrg
8084f931275dSmrg	if test $found = "no" ; then
8085c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087f931275dSmrg		fi
8088f931275dSmrg
8089c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8090f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091f931275dSmrg		fi
8092f931275dSmrg
8093f931275dSmrg		CFLAGS="$CFLAGS -Werror=trigraphs"
8094f931275dSmrg
8095bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8096bc77032bSmrgprintf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8097c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8098bc77032bSmrg		if eval test \${$cacheid+y}
8099bc77032bSmrgthen :
8100bc77032bSmrg  printf %s "(cached) " >&6
8101bc77032bSmrgelse $as_nop
8102f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103f931275dSmrg/* end confdefs.h.  */
8104f931275dSmrgint i;
8105f931275dSmrgint
8106bc77032bSmrgmain (void)
8107f931275dSmrg{
8108f931275dSmrg
8109f931275dSmrg  ;
8110f931275dSmrg  return 0;
8111f931275dSmrg}
8112f931275dSmrg_ACEOF
8113bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8114bc77032bSmrgthen :
8115c6a6acfbSmrg  eval $cacheid=yes
8116bc77032bSmrgelse $as_nop
8117c6a6acfbSmrg  eval $cacheid=no
8118f931275dSmrgfi
8119bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8120f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8121f931275dSmrgfi
8122f931275dSmrg
8123f931275dSmrg
8124f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8125f931275dSmrg
8126c6a6acfbSmrg		eval supported=\$$cacheid
8127bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8128bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8129f931275dSmrg		if test "$supported" = "yes" ; then
8130f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8131f931275dSmrg			found="yes"
8132f931275dSmrg		fi
8133f931275dSmrg	fi
8134f931275dSmrg
8135f931275dSmrg
8136f931275dSmrg
8137f931275dSmrg
8138f931275dSmrg
8139f931275dSmrg
8140f931275dSmrg
8141c6a6acfbSmrg
8142c6a6acfbSmrg
8143c6a6acfbSmrg
8144c6a6acfbSmrg
8145c6a6acfbSmrg
8146c6a6acfbSmrg
8147c6a6acfbSmrg
8148c6a6acfbSmrg
8149f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8150f931275dSmrg
8151c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8152f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8154bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8155bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8156bc77032bSmrgthen :
8157bc77032bSmrg  printf %s "(cached) " >&6
8158bc77032bSmrgelse $as_nop
8159f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160f931275dSmrg/* end confdefs.h.  */
8161f931275dSmrgint i;
8162f931275dSmrg_ACEOF
8163bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8164bc77032bSmrgthen :
8165f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8166bc77032bSmrgelse $as_nop
8167f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8168f931275dSmrgfi
8169bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8170f931275dSmrgfi
8171bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8172bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8173c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8174f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8175f931275dSmrgfi
8176f931275dSmrg
8177c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8178c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8179f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8180f931275dSmrg	fi
8181f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8183bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8184bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8185bc77032bSmrgthen :
8186bc77032bSmrg  printf %s "(cached) " >&6
8187bc77032bSmrgelse $as_nop
8188f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189f931275dSmrg/* end confdefs.h.  */
8190f931275dSmrgint i;
8191f931275dSmrg_ACEOF
8192bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8193bc77032bSmrgthen :
8194f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8195bc77032bSmrgelse $as_nop
8196f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8197f931275dSmrgfi
8198bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8199f931275dSmrgfi
8200bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8201bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8202c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8203f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8204f931275dSmrgfi
8205f931275dSmrg
8206f931275dSmrgfound="no"
8207f931275dSmrg
8208f931275dSmrg	if test $found = "no" ; then
8209c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8210f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211f931275dSmrg		fi
8212f931275dSmrg
8213c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8214f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8215f931275dSmrg		fi
8216f931275dSmrg
8217f931275dSmrg		CFLAGS="$CFLAGS -Werror=array-bounds"
8218f931275dSmrg
8219bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8220bc77032bSmrgprintf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8221c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8222bc77032bSmrg		if eval test \${$cacheid+y}
8223bc77032bSmrgthen :
8224bc77032bSmrg  printf %s "(cached) " >&6
8225bc77032bSmrgelse $as_nop
8226f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227f931275dSmrg/* end confdefs.h.  */
8228f931275dSmrgint i;
8229f931275dSmrgint
8230bc77032bSmrgmain (void)
8231f931275dSmrg{
8232f931275dSmrg
8233f931275dSmrg  ;
8234f931275dSmrg  return 0;
8235f931275dSmrg}
8236f931275dSmrg_ACEOF
8237bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8238bc77032bSmrgthen :
8239c6a6acfbSmrg  eval $cacheid=yes
8240bc77032bSmrgelse $as_nop
8241c6a6acfbSmrg  eval $cacheid=no
8242f931275dSmrgfi
8243bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8244f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8245f931275dSmrgfi
8246f931275dSmrg
8247f931275dSmrg
8248f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8249f931275dSmrg
8250c6a6acfbSmrg		eval supported=\$$cacheid
8251bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8253f931275dSmrg		if test "$supported" = "yes" ; then
8254f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8255f931275dSmrg			found="yes"
8256f931275dSmrg		fi
8257f931275dSmrg	fi
8258f931275dSmrg
8259f931275dSmrg
8260f931275dSmrg
8261f931275dSmrg
8262f931275dSmrg
8263f931275dSmrg
8264f931275dSmrg
8265c6a6acfbSmrg
8266c6a6acfbSmrg
8267c6a6acfbSmrg
8268c6a6acfbSmrg
8269c6a6acfbSmrg
8270c6a6acfbSmrg
8271c6a6acfbSmrg
8272c6a6acfbSmrg
8273f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8274f931275dSmrg
8275c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8280bc77032bSmrgthen :
8281bc77032bSmrg  printf %s "(cached) " >&6
8282bc77032bSmrgelse $as_nop
8283f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284f931275dSmrg/* end confdefs.h.  */
8285f931275dSmrgint i;
8286f931275dSmrg_ACEOF
8287bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8288bc77032bSmrgthen :
8289f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8290bc77032bSmrgelse $as_nop
8291f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8292f931275dSmrgfi
8293bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8294f931275dSmrgfi
8295bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8296bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8297c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8298f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8299f931275dSmrgfi
8300f931275dSmrg
8301c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8302c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8303f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8304f931275dSmrg	fi
8305f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8306bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8307bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8308bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8309bc77032bSmrgthen :
8310bc77032bSmrg  printf %s "(cached) " >&6
8311bc77032bSmrgelse $as_nop
8312f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313f931275dSmrg/* end confdefs.h.  */
8314f931275dSmrgint i;
8315f931275dSmrg_ACEOF
8316bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8317bc77032bSmrgthen :
8318f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8319bc77032bSmrgelse $as_nop
8320f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8321f931275dSmrgfi
8322bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8323f931275dSmrgfi
8324bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8325bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8326c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8327f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8328f931275dSmrgfi
8329f931275dSmrg
8330f931275dSmrgfound="no"
8331f931275dSmrg
8332f931275dSmrg	if test $found = "no" ; then
8333c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8334f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8335f931275dSmrg		fi
8336f931275dSmrg
8337c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8338f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8339f931275dSmrg		fi
8340f931275dSmrg
8341f931275dSmrg		CFLAGS="$CFLAGS -Werror=write-strings"
8342f931275dSmrg
8343bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8344bc77032bSmrgprintf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8345c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_write_strings
8346bc77032bSmrg		if eval test \${$cacheid+y}
8347bc77032bSmrgthen :
8348bc77032bSmrg  printf %s "(cached) " >&6
8349bc77032bSmrgelse $as_nop
8350f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351f931275dSmrg/* end confdefs.h.  */
8352f931275dSmrgint i;
8353f931275dSmrgint
8354bc77032bSmrgmain (void)
8355f931275dSmrg{
8356f931275dSmrg
8357f931275dSmrg  ;
8358f931275dSmrg  return 0;
8359f931275dSmrg}
8360f931275dSmrg_ACEOF
8361bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8362bc77032bSmrgthen :
8363c6a6acfbSmrg  eval $cacheid=yes
8364bc77032bSmrgelse $as_nop
8365c6a6acfbSmrg  eval $cacheid=no
8366f931275dSmrgfi
8367bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8368f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8369f931275dSmrgfi
8370f931275dSmrg
8371f931275dSmrg
8372f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8373f931275dSmrg
8374c6a6acfbSmrg		eval supported=\$$cacheid
8375bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8376bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8377f931275dSmrg		if test "$supported" = "yes" ; then
8378f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8379f931275dSmrg			found="yes"
8380f931275dSmrg		fi
8381f931275dSmrg	fi
8382f931275dSmrg
8383f931275dSmrg
8384f931275dSmrg
8385f931275dSmrg
8386f931275dSmrg
8387f931275dSmrg
8388f931275dSmrg
8389c6a6acfbSmrg
8390c6a6acfbSmrg
8391c6a6acfbSmrg
8392c6a6acfbSmrg
8393c6a6acfbSmrg
8394c6a6acfbSmrg
8395c6a6acfbSmrg
8396c6a6acfbSmrg
8397f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8398f931275dSmrg
8399c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8400f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8402bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8403bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8404bc77032bSmrgthen :
8405bc77032bSmrg  printf %s "(cached) " >&6
8406bc77032bSmrgelse $as_nop
8407f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408f931275dSmrg/* end confdefs.h.  */
8409f931275dSmrgint i;
8410f931275dSmrg_ACEOF
8411bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8412bc77032bSmrgthen :
8413f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8414bc77032bSmrgelse $as_nop
8415f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8416f931275dSmrgfi
8417bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8418f931275dSmrgfi
8419bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8420bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8421c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8422f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8423f931275dSmrgfi
8424f931275dSmrg
8425c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8426c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8427f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8428f931275dSmrg	fi
8429f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8430bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8431bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8432bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8433bc77032bSmrgthen :
8434bc77032bSmrg  printf %s "(cached) " >&6
8435bc77032bSmrgelse $as_nop
8436f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437f931275dSmrg/* end confdefs.h.  */
8438f931275dSmrgint i;
8439f931275dSmrg_ACEOF
8440bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8441bc77032bSmrgthen :
8442f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8443bc77032bSmrgelse $as_nop
8444f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8445f931275dSmrgfi
8446bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8447f931275dSmrgfi
8448bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8452f931275dSmrgfi
8453f931275dSmrg
8454f931275dSmrgfound="no"
8455f931275dSmrg
8456f931275dSmrg	if test $found = "no" ; then
8457c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459f931275dSmrg		fi
8460f931275dSmrg
8461c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463f931275dSmrg		fi
8464f931275dSmrg
8465f931275dSmrg		CFLAGS="$CFLAGS -Werror=address"
8466f931275dSmrg
8467bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8468bc77032bSmrgprintf %s "checking if $CC supports -Werror=address... " >&6; }
8469c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_address
8470bc77032bSmrg		if eval test \${$cacheid+y}
8471bc77032bSmrgthen :
8472bc77032bSmrg  printf %s "(cached) " >&6
8473bc77032bSmrgelse $as_nop
8474f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475f931275dSmrg/* end confdefs.h.  */
8476f931275dSmrgint i;
8477f931275dSmrgint
8478bc77032bSmrgmain (void)
8479f931275dSmrg{
8480f931275dSmrg
8481f931275dSmrg  ;
8482f931275dSmrg  return 0;
8483f931275dSmrg}
8484f931275dSmrg_ACEOF
8485bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8486bc77032bSmrgthen :
8487c6a6acfbSmrg  eval $cacheid=yes
8488bc77032bSmrgelse $as_nop
8489c6a6acfbSmrg  eval $cacheid=no
8490f931275dSmrgfi
8491bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8492f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8493f931275dSmrgfi
8494f931275dSmrg
8495f931275dSmrg
8496f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8497f931275dSmrg
8498c6a6acfbSmrg		eval supported=\$$cacheid
8499bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8501f931275dSmrg		if test "$supported" = "yes" ; then
8502f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8503f931275dSmrg			found="yes"
8504f931275dSmrg		fi
8505f931275dSmrg	fi
8506f931275dSmrg
8507f931275dSmrg
8508f931275dSmrg
8509f931275dSmrg
8510f931275dSmrg
8511f931275dSmrg
8512f931275dSmrg
8513c6a6acfbSmrg
8514c6a6acfbSmrg
8515c6a6acfbSmrg
8516c6a6acfbSmrg
8517c6a6acfbSmrg
8518c6a6acfbSmrg
8519c6a6acfbSmrg
8520c6a6acfbSmrg
8521f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8522f931275dSmrg
8523c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8528bc77032bSmrgthen :
8529bc77032bSmrg  printf %s "(cached) " >&6
8530bc77032bSmrgelse $as_nop
8531f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532f931275dSmrg/* end confdefs.h.  */
8533f931275dSmrgint i;
8534f931275dSmrg_ACEOF
8535bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8536bc77032bSmrgthen :
8537f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8538bc77032bSmrgelse $as_nop
8539f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8540f931275dSmrgfi
8541bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8542f931275dSmrgfi
8543bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8544bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8545c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8546f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8547f931275dSmrgfi
8548f931275dSmrg
8549c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8550c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552f931275dSmrg	fi
8553f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8554bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8555bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8556bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8557bc77032bSmrgthen :
8558bc77032bSmrg  printf %s "(cached) " >&6
8559bc77032bSmrgelse $as_nop
8560f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561f931275dSmrg/* end confdefs.h.  */
8562f931275dSmrgint i;
8563f931275dSmrg_ACEOF
8564bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8565bc77032bSmrgthen :
8566f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8567bc77032bSmrgelse $as_nop
8568f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8569f931275dSmrgfi
8570bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8571f931275dSmrgfi
8572bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8576f931275dSmrgfi
8577f931275dSmrg
8578f931275dSmrgfound="no"
8579f931275dSmrg
8580f931275dSmrg	if test $found = "no" ; then
8581c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583f931275dSmrg		fi
8584f931275dSmrg
8585c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587f931275dSmrg		fi
8588f931275dSmrg
8589f931275dSmrg		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8590f931275dSmrg
8591bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8592bc77032bSmrgprintf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8593c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8594bc77032bSmrg		if eval test \${$cacheid+y}
8595bc77032bSmrgthen :
8596bc77032bSmrg  printf %s "(cached) " >&6
8597bc77032bSmrgelse $as_nop
8598f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599f931275dSmrg/* end confdefs.h.  */
8600f931275dSmrgint i;
8601f931275dSmrgint
8602bc77032bSmrgmain (void)
8603f931275dSmrg{
8604f931275dSmrg
8605f931275dSmrg  ;
8606f931275dSmrg  return 0;
8607f931275dSmrg}
8608f931275dSmrg_ACEOF
8609bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8610bc77032bSmrgthen :
8611c6a6acfbSmrg  eval $cacheid=yes
8612bc77032bSmrgelse $as_nop
8613c6a6acfbSmrg  eval $cacheid=no
8614f931275dSmrgfi
8615bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8616f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8617f931275dSmrgfi
8618f931275dSmrg
8619f931275dSmrg
8620f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8621f931275dSmrg
8622c6a6acfbSmrg		eval supported=\$$cacheid
8623bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8625f931275dSmrg		if test "$supported" = "yes" ; then
8626f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8627f931275dSmrg			found="yes"
8628f931275dSmrg		fi
8629f931275dSmrg	fi
8630f931275dSmrg
8631f931275dSmrg	if test $found = "no" ; then
8632c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8633f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8634f931275dSmrg		fi
8635f931275dSmrg
8636c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8637f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638f931275dSmrg		fi
8639f931275dSmrg
8640f931275dSmrg		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8641f931275dSmrg
8642bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8643bc77032bSmrgprintf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8644c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8645bc77032bSmrg		if eval test \${$cacheid+y}
8646bc77032bSmrgthen :
8647bc77032bSmrg  printf %s "(cached) " >&6
8648bc77032bSmrgelse $as_nop
8649f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650f931275dSmrg/* end confdefs.h.  */
8651f931275dSmrgint i;
8652f931275dSmrgint
8653bc77032bSmrgmain (void)
8654f931275dSmrg{
8655f931275dSmrg
8656f931275dSmrg  ;
8657f931275dSmrg  return 0;
8658f931275dSmrg}
8659f931275dSmrg_ACEOF
8660bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8661bc77032bSmrgthen :
8662c6a6acfbSmrg  eval $cacheid=yes
8663bc77032bSmrgelse $as_nop
8664c6a6acfbSmrg  eval $cacheid=no
8665f931275dSmrgfi
8666bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8667f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8668f931275dSmrgfi
8669f931275dSmrg
8670f931275dSmrg
8671f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8672f931275dSmrg
8673c6a6acfbSmrg		eval supported=\$$cacheid
8674bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8675bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8676f931275dSmrg		if test "$supported" = "yes" ; then
8677f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8678f931275dSmrg			found="yes"
8679f931275dSmrg		fi
8680f931275dSmrg	fi
8681f931275dSmrg
8682f931275dSmrg
8683f931275dSmrg
8684f931275dSmrg
8685f931275dSmrg
8686f931275dSmrg
8687f931275dSmrg
8688c6a6acfbSmrg
8689c6a6acfbSmrg
8690c6a6acfbSmrg
8691c6a6acfbSmrg
8692c6a6acfbSmrg
8693c6a6acfbSmrg
8694c6a6acfbSmrg
8695c6a6acfbSmrg
8696f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8697f931275dSmrg
8698c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8699f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8701bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8702bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8703bc77032bSmrgthen :
8704bc77032bSmrg  printf %s "(cached) " >&6
8705bc77032bSmrgelse $as_nop
8706f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707f931275dSmrg/* end confdefs.h.  */
8708f931275dSmrgint i;
8709f931275dSmrg_ACEOF
8710bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8711bc77032bSmrgthen :
8712f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8713bc77032bSmrgelse $as_nop
8714f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8715f931275dSmrgfi
8716bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8717f931275dSmrgfi
8718bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8719bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8720c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8721f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8722f931275dSmrgfi
8723f931275dSmrg
8724c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8725c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8726f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727f931275dSmrg	fi
8728f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8730bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8731bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8732bc77032bSmrgthen :
8733bc77032bSmrg  printf %s "(cached) " >&6
8734bc77032bSmrgelse $as_nop
8735f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736f931275dSmrg/* end confdefs.h.  */
8737f931275dSmrgint i;
8738f931275dSmrg_ACEOF
8739bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8740bc77032bSmrgthen :
8741f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8742bc77032bSmrgelse $as_nop
8743f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8744f931275dSmrgfi
8745bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8746f931275dSmrgfi
8747bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8748bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8749c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8750f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8751f931275dSmrgfi
8752f931275dSmrg
8753f931275dSmrgfound="no"
8754f931275dSmrg
8755f931275dSmrg	if test $found = "no" ; then
8756c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8757f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8758f931275dSmrg		fi
8759f931275dSmrg
8760c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8761f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762f931275dSmrg		fi
8763f931275dSmrg
8764f931275dSmrg		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8765f931275dSmrg
8766bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8767bc77032bSmrgprintf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8768c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8769bc77032bSmrg		if eval test \${$cacheid+y}
8770bc77032bSmrgthen :
8771bc77032bSmrg  printf %s "(cached) " >&6
8772bc77032bSmrgelse $as_nop
8773f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774f931275dSmrg/* end confdefs.h.  */
8775f931275dSmrgint i;
8776f931275dSmrgint
8777bc77032bSmrgmain (void)
8778f931275dSmrg{
8779f931275dSmrg
8780f931275dSmrg  ;
8781f931275dSmrg  return 0;
8782f931275dSmrg}
8783f931275dSmrg_ACEOF
8784bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8785bc77032bSmrgthen :
8786c6a6acfbSmrg  eval $cacheid=yes
8787bc77032bSmrgelse $as_nop
8788c6a6acfbSmrg  eval $cacheid=no
8789f931275dSmrgfi
8790bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8791f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8792f931275dSmrgfi
8793f931275dSmrg
8794f931275dSmrg
8795f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8796f931275dSmrg
8797c6a6acfbSmrg		eval supported=\$$cacheid
8798bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8799bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8800f931275dSmrg		if test "$supported" = "yes" ; then
8801f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8802f931275dSmrg			found="yes"
8803f931275dSmrg		fi
8804f931275dSmrg	fi
8805f931275dSmrg
8806f931275dSmrg # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8807f931275dSmrgelse
8808bc77032bSmrg{ 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
8809bc77032bSmrgprintf "%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;}
8810f931275dSmrg
8811f931275dSmrg
8812f931275dSmrg
8813f931275dSmrg
8814f931275dSmrg
8815c6a6acfbSmrg
8816c6a6acfbSmrg
8817c6a6acfbSmrg
8818c6a6acfbSmrg
8819c6a6acfbSmrg
8820c6a6acfbSmrg
8821c6a6acfbSmrg
8822c6a6acfbSmrg
8823f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8824f931275dSmrg
8825c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8826f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8828bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8829bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8830bc77032bSmrgthen :
8831bc77032bSmrg  printf %s "(cached) " >&6
8832bc77032bSmrgelse $as_nop
8833f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834f931275dSmrg/* end confdefs.h.  */
8835f931275dSmrgint i;
8836f931275dSmrg_ACEOF
8837bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8838bc77032bSmrgthen :
8839f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8840bc77032bSmrgelse $as_nop
8841f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8842f931275dSmrgfi
8843bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8844f931275dSmrgfi
8845bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8846bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8847c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8848f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8849f931275dSmrgfi
8850f931275dSmrg
8851c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8852c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8853f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8854f931275dSmrg	fi
8855f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8857bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8858bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8859bc77032bSmrgthen :
8860bc77032bSmrg  printf %s "(cached) " >&6
8861bc77032bSmrgelse $as_nop
8862f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863f931275dSmrg/* end confdefs.h.  */
8864f931275dSmrgint i;
8865f931275dSmrg_ACEOF
8866bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8867bc77032bSmrgthen :
8868f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8869bc77032bSmrgelse $as_nop
8870f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8871f931275dSmrgfi
8872bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8873f931275dSmrgfi
8874bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8875bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8876c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8877f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8878f931275dSmrgfi
8879f931275dSmrg
8880f931275dSmrgfound="no"
8881f931275dSmrg
8882f931275dSmrg	if test $found = "no" ; then
8883c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885f931275dSmrg		fi
8886f931275dSmrg
8887c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8888f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889f931275dSmrg		fi
8890f931275dSmrg
8891f931275dSmrg		CFLAGS="$CFLAGS -Wimplicit"
8892f931275dSmrg
8893bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8894bc77032bSmrgprintf %s "checking if $CC supports -Wimplicit... " >&6; }
8895c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wimplicit
8896bc77032bSmrg		if eval test \${$cacheid+y}
8897bc77032bSmrgthen :
8898bc77032bSmrg  printf %s "(cached) " >&6
8899bc77032bSmrgelse $as_nop
8900f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901f931275dSmrg/* end confdefs.h.  */
8902f931275dSmrgint i;
8903f931275dSmrgint
8904bc77032bSmrgmain (void)
8905f931275dSmrg{
8906f931275dSmrg
8907f931275dSmrg  ;
8908f931275dSmrg  return 0;
8909f931275dSmrg}
8910f931275dSmrg_ACEOF
8911bc77032bSmrgif ac_fn_c_try_link "$LINENO"
8912bc77032bSmrgthen :
8913c6a6acfbSmrg  eval $cacheid=yes
8914bc77032bSmrgelse $as_nop
8915c6a6acfbSmrg  eval $cacheid=no
8916f931275dSmrgfi
8917bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
8918f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
8919f931275dSmrgfi
8920f931275dSmrg
8921f931275dSmrg
8922f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
8923f931275dSmrg
8924c6a6acfbSmrg		eval supported=\$$cacheid
8925bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8926bc77032bSmrgprintf "%s\n" "$supported" >&6; }
8927f931275dSmrg		if test "$supported" = "yes" ; then
8928f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8929f931275dSmrg			found="yes"
8930f931275dSmrg		fi
8931f931275dSmrg	fi
8932f931275dSmrg
8933f931275dSmrg
8934f931275dSmrg
8935f931275dSmrg
8936f931275dSmrg
8937f931275dSmrg
8938f931275dSmrg
8939c6a6acfbSmrg
8940c6a6acfbSmrg
8941c6a6acfbSmrg
8942c6a6acfbSmrg
8943c6a6acfbSmrg
8944c6a6acfbSmrg
8945c6a6acfbSmrg
8946c6a6acfbSmrg
8947f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
8948f931275dSmrg
8949c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8950f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8952bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8953bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
8954bc77032bSmrgthen :
8955bc77032bSmrg  printf %s "(cached) " >&6
8956bc77032bSmrgelse $as_nop
8957f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958f931275dSmrg/* end confdefs.h.  */
8959f931275dSmrgint i;
8960f931275dSmrg_ACEOF
8961bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8962bc77032bSmrgthen :
8963f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
8964bc77032bSmrgelse $as_nop
8965f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
8966f931275dSmrgfi
8967bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8968f931275dSmrgfi
8969bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
8973f931275dSmrgfi
8974f931275dSmrg
8975c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978f931275dSmrg	fi
8979f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8983bc77032bSmrgthen :
8984bc77032bSmrg  printf %s "(cached) " >&6
8985bc77032bSmrgelse $as_nop
8986f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987f931275dSmrg/* end confdefs.h.  */
8988f931275dSmrgint i;
8989f931275dSmrg_ACEOF
8990bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
8991bc77032bSmrgthen :
8992f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
8993bc77032bSmrgelse $as_nop
8994f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
8995f931275dSmrgfi
8996bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8997f931275dSmrgfi
8998bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9002f931275dSmrgfi
9003f931275dSmrg
9004f931275dSmrgfound="no"
9005f931275dSmrg
9006f931275dSmrg	if test $found = "no" ; then
9007c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009f931275dSmrg		fi
9010f931275dSmrg
9011c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013f931275dSmrg		fi
9014f931275dSmrg
9015f931275dSmrg		CFLAGS="$CFLAGS -Wnonnull"
9016f931275dSmrg
9017bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9018bc77032bSmrgprintf %s "checking if $CC supports -Wnonnull... " >&6; }
9019c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wnonnull
9020bc77032bSmrg		if eval test \${$cacheid+y}
9021bc77032bSmrgthen :
9022bc77032bSmrg  printf %s "(cached) " >&6
9023bc77032bSmrgelse $as_nop
9024f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025f931275dSmrg/* end confdefs.h.  */
9026f931275dSmrgint i;
9027f931275dSmrgint
9028bc77032bSmrgmain (void)
9029f931275dSmrg{
9030f931275dSmrg
9031f931275dSmrg  ;
9032f931275dSmrg  return 0;
9033f931275dSmrg}
9034f931275dSmrg_ACEOF
9035bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9036bc77032bSmrgthen :
9037c6a6acfbSmrg  eval $cacheid=yes
9038bc77032bSmrgelse $as_nop
9039c6a6acfbSmrg  eval $cacheid=no
9040f931275dSmrgfi
9041bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9042f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9043f931275dSmrgfi
9044f931275dSmrg
9045f931275dSmrg
9046f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9047f931275dSmrg
9048c6a6acfbSmrg		eval supported=\$$cacheid
9049bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9050bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9051f931275dSmrg		if test "$supported" = "yes" ; then
9052f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9053f931275dSmrg			found="yes"
9054f931275dSmrg		fi
9055f931275dSmrg	fi
9056f931275dSmrg
9057f931275dSmrg
9058f931275dSmrg
9059f931275dSmrg
9060f931275dSmrg
9061f931275dSmrg
9062f931275dSmrg
9063c6a6acfbSmrg
9064c6a6acfbSmrg
9065c6a6acfbSmrg
9066c6a6acfbSmrg
9067c6a6acfbSmrg
9068c6a6acfbSmrg
9069c6a6acfbSmrg
9070c6a6acfbSmrg
9071f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9072f931275dSmrg
9073c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9074f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9076bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9077bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9078bc77032bSmrgthen :
9079bc77032bSmrg  printf %s "(cached) " >&6
9080bc77032bSmrgelse $as_nop
9081f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082f931275dSmrg/* end confdefs.h.  */
9083f931275dSmrgint i;
9084f931275dSmrg_ACEOF
9085bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9086bc77032bSmrgthen :
9087f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9088bc77032bSmrgelse $as_nop
9089f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9090f931275dSmrgfi
9091bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9092f931275dSmrgfi
9093bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9094bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9095c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9096f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9097f931275dSmrgfi
9098f931275dSmrg
9099c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9100c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9101f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102f931275dSmrg	fi
9103f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9104bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9105bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9106bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9107bc77032bSmrgthen :
9108bc77032bSmrg  printf %s "(cached) " >&6
9109bc77032bSmrgelse $as_nop
9110f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111f931275dSmrg/* end confdefs.h.  */
9112f931275dSmrgint i;
9113f931275dSmrg_ACEOF
9114bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9115bc77032bSmrgthen :
9116f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9117bc77032bSmrgelse $as_nop
9118f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9119f931275dSmrgfi
9120bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9121f931275dSmrgfi
9122bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9123bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9124c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9125f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9126f931275dSmrgfi
9127f931275dSmrg
9128f931275dSmrgfound="no"
9129f931275dSmrg
9130f931275dSmrg	if test $found = "no" ; then
9131c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9132f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9133f931275dSmrg		fi
9134f931275dSmrg
9135c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9136f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9137f931275dSmrg		fi
9138f931275dSmrg
9139f931275dSmrg		CFLAGS="$CFLAGS -Winit-self"
9140f931275dSmrg
9141bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9142bc77032bSmrgprintf %s "checking if $CC supports -Winit-self... " >&6; }
9143c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Winit_self
9144bc77032bSmrg		if eval test \${$cacheid+y}
9145bc77032bSmrgthen :
9146bc77032bSmrg  printf %s "(cached) " >&6
9147bc77032bSmrgelse $as_nop
9148f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149f931275dSmrg/* end confdefs.h.  */
9150f931275dSmrgint i;
9151f931275dSmrgint
9152bc77032bSmrgmain (void)
9153f931275dSmrg{
9154f931275dSmrg
9155f931275dSmrg  ;
9156f931275dSmrg  return 0;
9157f931275dSmrg}
9158f931275dSmrg_ACEOF
9159bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9160bc77032bSmrgthen :
9161c6a6acfbSmrg  eval $cacheid=yes
9162bc77032bSmrgelse $as_nop
9163c6a6acfbSmrg  eval $cacheid=no
9164f931275dSmrgfi
9165bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9166f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9167f931275dSmrgfi
9168f931275dSmrg
9169f931275dSmrg
9170f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9171f931275dSmrg
9172c6a6acfbSmrg		eval supported=\$$cacheid
9173bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9175f931275dSmrg		if test "$supported" = "yes" ; then
9176f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9177f931275dSmrg			found="yes"
9178f931275dSmrg		fi
9179f931275dSmrg	fi
9180f931275dSmrg
9181f931275dSmrg
9182f931275dSmrg
9183f931275dSmrg
9184f931275dSmrg
9185f931275dSmrg
9186f931275dSmrg
9187c6a6acfbSmrg
9188c6a6acfbSmrg
9189c6a6acfbSmrg
9190c6a6acfbSmrg
9191c6a6acfbSmrg
9192c6a6acfbSmrg
9193c6a6acfbSmrg
9194c6a6acfbSmrg
9195f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9196f931275dSmrg
9197c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9202bc77032bSmrgthen :
9203bc77032bSmrg  printf %s "(cached) " >&6
9204bc77032bSmrgelse $as_nop
9205f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206f931275dSmrg/* end confdefs.h.  */
9207f931275dSmrgint i;
9208f931275dSmrg_ACEOF
9209bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9210bc77032bSmrgthen :
9211f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9212bc77032bSmrgelse $as_nop
9213f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9214f931275dSmrgfi
9215bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9216f931275dSmrgfi
9217bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9221f931275dSmrgfi
9222f931275dSmrg
9223c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226f931275dSmrg	fi
9227f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9231bc77032bSmrgthen :
9232bc77032bSmrg  printf %s "(cached) " >&6
9233bc77032bSmrgelse $as_nop
9234f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235f931275dSmrg/* end confdefs.h.  */
9236f931275dSmrgint i;
9237f931275dSmrg_ACEOF
9238bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9239bc77032bSmrgthen :
9240f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9241bc77032bSmrgelse $as_nop
9242f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9243f931275dSmrgfi
9244bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9245f931275dSmrgfi
9246bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9247bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9248c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9249f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9250f931275dSmrgfi
9251f931275dSmrg
9252f931275dSmrgfound="no"
9253f931275dSmrg
9254f931275dSmrg	if test $found = "no" ; then
9255c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9256f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9257f931275dSmrg		fi
9258f931275dSmrg
9259c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9260f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261f931275dSmrg		fi
9262f931275dSmrg
9263f931275dSmrg		CFLAGS="$CFLAGS -Wmain"
9264f931275dSmrg
9265bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9266bc77032bSmrgprintf %s "checking if $CC supports -Wmain... " >&6; }
9267c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmain
9268bc77032bSmrg		if eval test \${$cacheid+y}
9269bc77032bSmrgthen :
9270bc77032bSmrg  printf %s "(cached) " >&6
9271bc77032bSmrgelse $as_nop
9272f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273f931275dSmrg/* end confdefs.h.  */
9274f931275dSmrgint i;
9275f931275dSmrgint
9276bc77032bSmrgmain (void)
9277f931275dSmrg{
9278f931275dSmrg
9279f931275dSmrg  ;
9280f931275dSmrg  return 0;
9281f931275dSmrg}
9282f931275dSmrg_ACEOF
9283bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9284bc77032bSmrgthen :
9285c6a6acfbSmrg  eval $cacheid=yes
9286bc77032bSmrgelse $as_nop
9287c6a6acfbSmrg  eval $cacheid=no
9288f931275dSmrgfi
9289bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9290f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9291f931275dSmrgfi
9292f931275dSmrg
9293f931275dSmrg
9294f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9295f931275dSmrg
9296c6a6acfbSmrg		eval supported=\$$cacheid
9297bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9298bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9299f931275dSmrg		if test "$supported" = "yes" ; then
9300f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9301f931275dSmrg			found="yes"
9302f931275dSmrg		fi
9303f931275dSmrg	fi
9304f931275dSmrg
9305f931275dSmrg
9306f931275dSmrg
9307f931275dSmrg
9308f931275dSmrg
9309f931275dSmrg
9310f931275dSmrg
9311c6a6acfbSmrg
9312c6a6acfbSmrg
9313c6a6acfbSmrg
9314c6a6acfbSmrg
9315c6a6acfbSmrg
9316c6a6acfbSmrg
9317c6a6acfbSmrg
9318c6a6acfbSmrg
9319f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9320f931275dSmrg
9321c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9322f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9324bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9325bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9326bc77032bSmrgthen :
9327bc77032bSmrg  printf %s "(cached) " >&6
9328bc77032bSmrgelse $as_nop
9329f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330f931275dSmrg/* end confdefs.h.  */
9331f931275dSmrgint i;
9332f931275dSmrg_ACEOF
9333bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9334bc77032bSmrgthen :
9335f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9336bc77032bSmrgelse $as_nop
9337f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9338f931275dSmrgfi
9339bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9340f931275dSmrgfi
9341bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9345f931275dSmrgfi
9346f931275dSmrg
9347c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350f931275dSmrg	fi
9351f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9355bc77032bSmrgthen :
9356bc77032bSmrg  printf %s "(cached) " >&6
9357bc77032bSmrgelse $as_nop
9358f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359f931275dSmrg/* end confdefs.h.  */
9360f931275dSmrgint i;
9361f931275dSmrg_ACEOF
9362bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9363bc77032bSmrgthen :
9364f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9365bc77032bSmrgelse $as_nop
9366f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9367f931275dSmrgfi
9368bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9369f931275dSmrgfi
9370bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9374f931275dSmrgfi
9375f931275dSmrg
9376f931275dSmrgfound="no"
9377f931275dSmrg
9378f931275dSmrg	if test $found = "no" ; then
9379c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381f931275dSmrg		fi
9382f931275dSmrg
9383c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385f931275dSmrg		fi
9386f931275dSmrg
9387f931275dSmrg		CFLAGS="$CFLAGS -Wmissing-braces"
9388f931275dSmrg
9389bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9390bc77032bSmrgprintf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9391c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wmissing_braces
9392bc77032bSmrg		if eval test \${$cacheid+y}
9393bc77032bSmrgthen :
9394bc77032bSmrg  printf %s "(cached) " >&6
9395bc77032bSmrgelse $as_nop
9396f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397f931275dSmrg/* end confdefs.h.  */
9398f931275dSmrgint i;
9399f931275dSmrgint
9400bc77032bSmrgmain (void)
9401f931275dSmrg{
9402f931275dSmrg
9403f931275dSmrg  ;
9404f931275dSmrg  return 0;
9405f931275dSmrg}
9406f931275dSmrg_ACEOF
9407bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9408bc77032bSmrgthen :
9409c6a6acfbSmrg  eval $cacheid=yes
9410bc77032bSmrgelse $as_nop
9411c6a6acfbSmrg  eval $cacheid=no
9412f931275dSmrgfi
9413bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9414f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9415f931275dSmrgfi
9416f931275dSmrg
9417f931275dSmrg
9418f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9419f931275dSmrg
9420c6a6acfbSmrg		eval supported=\$$cacheid
9421bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9422bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9423f931275dSmrg		if test "$supported" = "yes" ; then
9424f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9425f931275dSmrg			found="yes"
9426f931275dSmrg		fi
9427f931275dSmrg	fi
9428f931275dSmrg
9429f931275dSmrg
9430f931275dSmrg
9431f931275dSmrg
9432f931275dSmrg
9433f931275dSmrg
9434f931275dSmrg
9435c6a6acfbSmrg
9436c6a6acfbSmrg
9437c6a6acfbSmrg
9438c6a6acfbSmrg
9439c6a6acfbSmrg
9440c6a6acfbSmrg
9441c6a6acfbSmrg
9442c6a6acfbSmrg
9443f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9444f931275dSmrg
9445c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9446f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9448bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9449bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9450bc77032bSmrgthen :
9451bc77032bSmrg  printf %s "(cached) " >&6
9452bc77032bSmrgelse $as_nop
9453f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454f931275dSmrg/* end confdefs.h.  */
9455f931275dSmrgint i;
9456f931275dSmrg_ACEOF
9457bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9458bc77032bSmrgthen :
9459f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9460bc77032bSmrgelse $as_nop
9461f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9462f931275dSmrgfi
9463bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9464f931275dSmrgfi
9465bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9466bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9467c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9468f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9469f931275dSmrgfi
9470f931275dSmrg
9471c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9472c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9473f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9474f931275dSmrg	fi
9475f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9476bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9477bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9478bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9479bc77032bSmrgthen :
9480bc77032bSmrg  printf %s "(cached) " >&6
9481bc77032bSmrgelse $as_nop
9482f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483f931275dSmrg/* end confdefs.h.  */
9484f931275dSmrgint i;
9485f931275dSmrg_ACEOF
9486bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9487bc77032bSmrgthen :
9488f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9489bc77032bSmrgelse $as_nop
9490f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9491f931275dSmrgfi
9492bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9493f931275dSmrgfi
9494bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9495bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9496c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9497f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9498f931275dSmrgfi
9499f931275dSmrg
9500f931275dSmrgfound="no"
9501f931275dSmrg
9502f931275dSmrg	if test $found = "no" ; then
9503c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9504f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505f931275dSmrg		fi
9506f931275dSmrg
9507c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9508f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9509f931275dSmrg		fi
9510f931275dSmrg
9511f931275dSmrg		CFLAGS="$CFLAGS -Wsequence-point"
9512f931275dSmrg
9513bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9514bc77032bSmrgprintf %s "checking if $CC supports -Wsequence-point... " >&6; }
9515c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wsequence_point
9516bc77032bSmrg		if eval test \${$cacheid+y}
9517bc77032bSmrgthen :
9518bc77032bSmrg  printf %s "(cached) " >&6
9519bc77032bSmrgelse $as_nop
9520f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521f931275dSmrg/* end confdefs.h.  */
9522f931275dSmrgint i;
9523f931275dSmrgint
9524bc77032bSmrgmain (void)
9525f931275dSmrg{
9526f931275dSmrg
9527f931275dSmrg  ;
9528f931275dSmrg  return 0;
9529f931275dSmrg}
9530f931275dSmrg_ACEOF
9531bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9532bc77032bSmrgthen :
9533c6a6acfbSmrg  eval $cacheid=yes
9534bc77032bSmrgelse $as_nop
9535c6a6acfbSmrg  eval $cacheid=no
9536f931275dSmrgfi
9537bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9538f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9539f931275dSmrgfi
9540f931275dSmrg
9541f931275dSmrg
9542f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9543f931275dSmrg
9544c6a6acfbSmrg		eval supported=\$$cacheid
9545bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9546bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9547f931275dSmrg		if test "$supported" = "yes" ; then
9548f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9549f931275dSmrg			found="yes"
9550f931275dSmrg		fi
9551f931275dSmrg	fi
9552f931275dSmrg
9553f931275dSmrg
9554f931275dSmrg
9555f931275dSmrg
9556f931275dSmrg
9557f931275dSmrg
9558f931275dSmrg
9559c6a6acfbSmrg
9560c6a6acfbSmrg
9561c6a6acfbSmrg
9562c6a6acfbSmrg
9563c6a6acfbSmrg
9564c6a6acfbSmrg
9565c6a6acfbSmrg
9566c6a6acfbSmrg
9567f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9568f931275dSmrg
9569c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9570f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9572bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9573bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9574bc77032bSmrgthen :
9575bc77032bSmrg  printf %s "(cached) " >&6
9576bc77032bSmrgelse $as_nop
9577f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578f931275dSmrg/* end confdefs.h.  */
9579f931275dSmrgint i;
9580f931275dSmrg_ACEOF
9581bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9582bc77032bSmrgthen :
9583f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9584bc77032bSmrgelse $as_nop
9585f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9586f931275dSmrgfi
9587bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9588f931275dSmrgfi
9589bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9593f931275dSmrgfi
9594f931275dSmrg
9595c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598f931275dSmrg	fi
9599f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603bc77032bSmrgthen :
9604bc77032bSmrg  printf %s "(cached) " >&6
9605bc77032bSmrgelse $as_nop
9606f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607f931275dSmrg/* end confdefs.h.  */
9608f931275dSmrgint i;
9609f931275dSmrg_ACEOF
9610bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9611bc77032bSmrgthen :
9612f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9613bc77032bSmrgelse $as_nop
9614f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9615f931275dSmrgfi
9616bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9617f931275dSmrgfi
9618bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9619bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9620c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9621f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9622f931275dSmrgfi
9623f931275dSmrg
9624f931275dSmrgfound="no"
9625f931275dSmrg
9626f931275dSmrg	if test $found = "no" ; then
9627c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9628f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9629f931275dSmrg		fi
9630f931275dSmrg
9631c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9632f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9633f931275dSmrg		fi
9634f931275dSmrg
9635f931275dSmrg		CFLAGS="$CFLAGS -Wreturn-type"
9636f931275dSmrg
9637bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9638bc77032bSmrgprintf %s "checking if $CC supports -Wreturn-type... " >&6; }
9639c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wreturn_type
9640bc77032bSmrg		if eval test \${$cacheid+y}
9641bc77032bSmrgthen :
9642bc77032bSmrg  printf %s "(cached) " >&6
9643bc77032bSmrgelse $as_nop
9644f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645f931275dSmrg/* end confdefs.h.  */
9646f931275dSmrgint i;
9647f931275dSmrgint
9648bc77032bSmrgmain (void)
9649f931275dSmrg{
9650f931275dSmrg
9651f931275dSmrg  ;
9652f931275dSmrg  return 0;
9653f931275dSmrg}
9654f931275dSmrg_ACEOF
9655bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9656bc77032bSmrgthen :
9657c6a6acfbSmrg  eval $cacheid=yes
9658bc77032bSmrgelse $as_nop
9659c6a6acfbSmrg  eval $cacheid=no
9660f931275dSmrgfi
9661bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9662f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9663f931275dSmrgfi
9664f931275dSmrg
9665f931275dSmrg
9666f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9667f931275dSmrg
9668c6a6acfbSmrg		eval supported=\$$cacheid
9669bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9671f931275dSmrg		if test "$supported" = "yes" ; then
9672f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9673f931275dSmrg			found="yes"
9674f931275dSmrg		fi
9675f931275dSmrg	fi
9676f931275dSmrg
9677f931275dSmrg
9678f931275dSmrg
9679f931275dSmrg
9680f931275dSmrg
9681f931275dSmrg
9682f931275dSmrg
9683c6a6acfbSmrg
9684c6a6acfbSmrg
9685c6a6acfbSmrg
9686c6a6acfbSmrg
9687c6a6acfbSmrg
9688c6a6acfbSmrg
9689c6a6acfbSmrg
9690c6a6acfbSmrg
9691f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9692f931275dSmrg
9693c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9698bc77032bSmrgthen :
9699bc77032bSmrg  printf %s "(cached) " >&6
9700bc77032bSmrgelse $as_nop
9701f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702f931275dSmrg/* end confdefs.h.  */
9703f931275dSmrgint i;
9704f931275dSmrg_ACEOF
9705bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9706bc77032bSmrgthen :
9707f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9708bc77032bSmrgelse $as_nop
9709f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9710f931275dSmrgfi
9711bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9712f931275dSmrgfi
9713bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9714bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9715c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9716f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9717f931275dSmrgfi
9718f931275dSmrg
9719c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9720c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722f931275dSmrg	fi
9723f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9725bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9726bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9727bc77032bSmrgthen :
9728bc77032bSmrg  printf %s "(cached) " >&6
9729bc77032bSmrgelse $as_nop
9730f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731f931275dSmrg/* end confdefs.h.  */
9732f931275dSmrgint i;
9733f931275dSmrg_ACEOF
9734bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9735bc77032bSmrgthen :
9736f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9737bc77032bSmrgelse $as_nop
9738f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9739f931275dSmrgfi
9740bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9741f931275dSmrgfi
9742bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9743bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9744c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9745f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9746f931275dSmrgfi
9747f931275dSmrg
9748f931275dSmrgfound="no"
9749f931275dSmrg
9750f931275dSmrg	if test $found = "no" ; then
9751c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753f931275dSmrg		fi
9754f931275dSmrg
9755c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9756f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9757f931275dSmrg		fi
9758f931275dSmrg
9759f931275dSmrg		CFLAGS="$CFLAGS -Wtrigraphs"
9760f931275dSmrg
9761bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9762bc77032bSmrgprintf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9763c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wtrigraphs
9764bc77032bSmrg		if eval test \${$cacheid+y}
9765bc77032bSmrgthen :
9766bc77032bSmrg  printf %s "(cached) " >&6
9767bc77032bSmrgelse $as_nop
9768f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769f931275dSmrg/* end confdefs.h.  */
9770f931275dSmrgint i;
9771f931275dSmrgint
9772bc77032bSmrgmain (void)
9773f931275dSmrg{
9774f931275dSmrg
9775f931275dSmrg  ;
9776f931275dSmrg  return 0;
9777f931275dSmrg}
9778f931275dSmrg_ACEOF
9779bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9780bc77032bSmrgthen :
9781c6a6acfbSmrg  eval $cacheid=yes
9782bc77032bSmrgelse $as_nop
9783c6a6acfbSmrg  eval $cacheid=no
9784f931275dSmrgfi
9785bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9786f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9787f931275dSmrgfi
9788f931275dSmrg
9789f931275dSmrg
9790f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9791f931275dSmrg
9792c6a6acfbSmrg		eval supported=\$$cacheid
9793bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9794bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9795f931275dSmrg		if test "$supported" = "yes" ; then
9796f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9797f931275dSmrg			found="yes"
9798f931275dSmrg		fi
9799f931275dSmrg	fi
9800f931275dSmrg
9801f931275dSmrg
9802f931275dSmrg
9803f931275dSmrg
9804f931275dSmrg
9805f931275dSmrg
9806f931275dSmrg
9807c6a6acfbSmrg
9808c6a6acfbSmrg
9809c6a6acfbSmrg
9810c6a6acfbSmrg
9811c6a6acfbSmrg
9812c6a6acfbSmrg
9813c6a6acfbSmrg
9814c6a6acfbSmrg
9815f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9816f931275dSmrg
9817c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9818f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9820bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9821bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9822bc77032bSmrgthen :
9823bc77032bSmrg  printf %s "(cached) " >&6
9824bc77032bSmrgelse $as_nop
9825f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826f931275dSmrg/* end confdefs.h.  */
9827f931275dSmrgint i;
9828f931275dSmrg_ACEOF
9829bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9830bc77032bSmrgthen :
9831f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9832bc77032bSmrgelse $as_nop
9833f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9834f931275dSmrgfi
9835bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9836f931275dSmrgfi
9837bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9838bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9839c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9840f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9841f931275dSmrgfi
9842f931275dSmrg
9843c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9844c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9845f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846f931275dSmrg	fi
9847f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9848bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9849bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9850bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9851bc77032bSmrgthen :
9852bc77032bSmrg  printf %s "(cached) " >&6
9853bc77032bSmrgelse $as_nop
9854f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855f931275dSmrg/* end confdefs.h.  */
9856f931275dSmrgint i;
9857f931275dSmrg_ACEOF
9858bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9859bc77032bSmrgthen :
9860f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9861bc77032bSmrgelse $as_nop
9862f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9863f931275dSmrgfi
9864bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9865f931275dSmrgfi
9866bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9867bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9868c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9869f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9870f931275dSmrgfi
9871f931275dSmrg
9872f931275dSmrgfound="no"
9873f931275dSmrg
9874f931275dSmrg	if test $found = "no" ; then
9875c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9876f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877f931275dSmrg		fi
9878f931275dSmrg
9879c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9880f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9881f931275dSmrg		fi
9882f931275dSmrg
9883f931275dSmrg		CFLAGS="$CFLAGS -Warray-bounds"
9884f931275dSmrg
9885bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9886bc77032bSmrgprintf %s "checking if $CC supports -Warray-bounds... " >&6; }
9887c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Warray_bounds
9888bc77032bSmrg		if eval test \${$cacheid+y}
9889bc77032bSmrgthen :
9890bc77032bSmrg  printf %s "(cached) " >&6
9891bc77032bSmrgelse $as_nop
9892f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893f931275dSmrg/* end confdefs.h.  */
9894f931275dSmrgint i;
9895f931275dSmrgint
9896bc77032bSmrgmain (void)
9897f931275dSmrg{
9898f931275dSmrg
9899f931275dSmrg  ;
9900f931275dSmrg  return 0;
9901f931275dSmrg}
9902f931275dSmrg_ACEOF
9903bc77032bSmrgif ac_fn_c_try_link "$LINENO"
9904bc77032bSmrgthen :
9905c6a6acfbSmrg  eval $cacheid=yes
9906bc77032bSmrgelse $as_nop
9907c6a6acfbSmrg  eval $cacheid=no
9908f931275dSmrgfi
9909bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
9910f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
9911f931275dSmrgfi
9912f931275dSmrg
9913f931275dSmrg
9914f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
9915f931275dSmrg
9916c6a6acfbSmrg		eval supported=\$$cacheid
9917bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9918bc77032bSmrgprintf "%s\n" "$supported" >&6; }
9919f931275dSmrg		if test "$supported" = "yes" ; then
9920f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9921f931275dSmrg			found="yes"
9922f931275dSmrg		fi
9923f931275dSmrg	fi
9924f931275dSmrg
9925f931275dSmrg
9926f931275dSmrg
9927f931275dSmrg
9928f931275dSmrg
9929f931275dSmrg
9930f931275dSmrg
9931c6a6acfbSmrg
9932c6a6acfbSmrg
9933c6a6acfbSmrg
9934c6a6acfbSmrg
9935c6a6acfbSmrg
9936c6a6acfbSmrg
9937c6a6acfbSmrg
9938c6a6acfbSmrg
9939f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
9940f931275dSmrg
9941c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9942f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9944bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9945bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
9946bc77032bSmrgthen :
9947bc77032bSmrg  printf %s "(cached) " >&6
9948bc77032bSmrgelse $as_nop
9949f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950f931275dSmrg/* end confdefs.h.  */
9951f931275dSmrgint i;
9952f931275dSmrg_ACEOF
9953bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9954bc77032bSmrgthen :
9955f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
9956bc77032bSmrgelse $as_nop
9957f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
9958f931275dSmrgfi
9959bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9960f931275dSmrgfi
9961bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9965f931275dSmrgfi
9966f931275dSmrg
9967c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970f931275dSmrg	fi
9971f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975bc77032bSmrgthen :
9976bc77032bSmrg  printf %s "(cached) " >&6
9977bc77032bSmrgelse $as_nop
9978f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979f931275dSmrg/* end confdefs.h.  */
9980f931275dSmrgint i;
9981f931275dSmrg_ACEOF
9982bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
9983bc77032bSmrgthen :
9984f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
9985bc77032bSmrgelse $as_nop
9986f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
9987f931275dSmrgfi
9988bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9989f931275dSmrgfi
9990bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9991bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9992c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9993f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
9994f931275dSmrgfi
9995f931275dSmrg
9996f931275dSmrgfound="no"
9997f931275dSmrg
9998f931275dSmrg	if test $found = "no" ; then
9999c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10000f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10001f931275dSmrg		fi
10002f931275dSmrg
10003c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10004f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005f931275dSmrg		fi
10006f931275dSmrg
10007f931275dSmrg		CFLAGS="$CFLAGS -Wwrite-strings"
10008f931275dSmrg
10009bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10010bc77032bSmrgprintf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10011c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wwrite_strings
10012bc77032bSmrg		if eval test \${$cacheid+y}
10013bc77032bSmrgthen :
10014bc77032bSmrg  printf %s "(cached) " >&6
10015bc77032bSmrgelse $as_nop
10016f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017f931275dSmrg/* end confdefs.h.  */
10018f931275dSmrgint i;
10019f931275dSmrgint
10020bc77032bSmrgmain (void)
10021f931275dSmrg{
10022f931275dSmrg
10023f931275dSmrg  ;
10024f931275dSmrg  return 0;
10025f931275dSmrg}
10026f931275dSmrg_ACEOF
10027bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10028bc77032bSmrgthen :
10029c6a6acfbSmrg  eval $cacheid=yes
10030bc77032bSmrgelse $as_nop
10031c6a6acfbSmrg  eval $cacheid=no
10032f931275dSmrgfi
10033bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10034f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10035f931275dSmrgfi
10036f931275dSmrg
10037f931275dSmrg
10038f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10039f931275dSmrg
10040c6a6acfbSmrg		eval supported=\$$cacheid
10041bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10042bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10043f931275dSmrg		if test "$supported" = "yes" ; then
10044f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10045f931275dSmrg			found="yes"
10046f931275dSmrg		fi
10047f931275dSmrg	fi
10048f931275dSmrg
10049f931275dSmrg
10050f931275dSmrg
10051f931275dSmrg
10052f931275dSmrg
10053f931275dSmrg
10054f931275dSmrg
10055c6a6acfbSmrg
10056c6a6acfbSmrg
10057c6a6acfbSmrg
10058c6a6acfbSmrg
10059c6a6acfbSmrg
10060c6a6acfbSmrg
10061c6a6acfbSmrg
10062c6a6acfbSmrg
10063f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10064f931275dSmrg
10065c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10066f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10068bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10069bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10070bc77032bSmrgthen :
10071bc77032bSmrg  printf %s "(cached) " >&6
10072bc77032bSmrgelse $as_nop
10073f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074f931275dSmrg/* end confdefs.h.  */
10075f931275dSmrgint i;
10076f931275dSmrg_ACEOF
10077bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10078bc77032bSmrgthen :
10079f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10080bc77032bSmrgelse $as_nop
10081f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10082f931275dSmrgfi
10083bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10084f931275dSmrgfi
10085bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10086bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10087c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10088f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10089f931275dSmrgfi
1009089d09728Smrg
10091c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10092c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094f931275dSmrg	fi
10095f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10096bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10097bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10098bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10099bc77032bSmrgthen :
10100bc77032bSmrg  printf %s "(cached) " >&6
10101bc77032bSmrgelse $as_nop
10102f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103f931275dSmrg/* end confdefs.h.  */
10104f931275dSmrgint i;
10105f931275dSmrg_ACEOF
10106bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10107bc77032bSmrgthen :
10108f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10109bc77032bSmrgelse $as_nop
10110f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1011189d09728Smrgfi
10112bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1011389d09728Smrgfi
10114bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10115bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10116c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10117f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10118f931275dSmrgfi
10119f931275dSmrg
10120f931275dSmrgfound="no"
10121f931275dSmrg
10122f931275dSmrg	if test $found = "no" ; then
10123c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125f931275dSmrg		fi
10126f931275dSmrg
10127c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10128f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10129f931275dSmrg		fi
10130f931275dSmrg
10131f931275dSmrg		CFLAGS="$CFLAGS -Waddress"
10132f931275dSmrg
10133bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10134bc77032bSmrgprintf %s "checking if $CC supports -Waddress... " >&6; }
10135c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Waddress
10136bc77032bSmrg		if eval test \${$cacheid+y}
10137bc77032bSmrgthen :
10138bc77032bSmrg  printf %s "(cached) " >&6
10139bc77032bSmrgelse $as_nop
10140f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141f931275dSmrg/* end confdefs.h.  */
10142f931275dSmrgint i;
10143f931275dSmrgint
10144bc77032bSmrgmain (void)
10145f931275dSmrg{
10146f931275dSmrg
10147f931275dSmrg  ;
10148f931275dSmrg  return 0;
10149f931275dSmrg}
10150f931275dSmrg_ACEOF
10151bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10152bc77032bSmrgthen :
10153c6a6acfbSmrg  eval $cacheid=yes
10154bc77032bSmrgelse $as_nop
10155c6a6acfbSmrg  eval $cacheid=no
10156f931275dSmrgfi
10157bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10158f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
1015989d09728Smrgfi
1016089d09728Smrg
1016189d09728Smrg
10162f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10163f931275dSmrg
10164c6a6acfbSmrg		eval supported=\$$cacheid
10165bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10166bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10167f931275dSmrg		if test "$supported" = "yes" ; then
10168f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10169f931275dSmrg			found="yes"
10170f931275dSmrg		fi
10171f931275dSmrg	fi
10172f931275dSmrg
10173f931275dSmrg
10174f931275dSmrg
10175f931275dSmrg
10176f931275dSmrg
10177f931275dSmrg
10178f931275dSmrg
10179c6a6acfbSmrg
10180c6a6acfbSmrg
10181c6a6acfbSmrg
10182c6a6acfbSmrg
10183c6a6acfbSmrg
10184c6a6acfbSmrg
10185c6a6acfbSmrg
10186c6a6acfbSmrg
10187f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10188f931275dSmrg
10189c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10194bc77032bSmrgthen :
10195bc77032bSmrg  printf %s "(cached) " >&6
10196bc77032bSmrgelse $as_nop
10197f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198f931275dSmrg/* end confdefs.h.  */
10199f931275dSmrgint i;
10200f931275dSmrg_ACEOF
10201bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10202bc77032bSmrgthen :
10203f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10204bc77032bSmrgelse $as_nop
10205f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1020689d09728Smrgfi
10207bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10208f931275dSmrgfi
10209bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10210bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10211c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10212f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10213f931275dSmrgfi
10214f931275dSmrg
10215c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10216c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218f931275dSmrg	fi
10219f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10220bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10221bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10222bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10223bc77032bSmrgthen :
10224bc77032bSmrg  printf %s "(cached) " >&6
10225bc77032bSmrgelse $as_nop
10226f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227f931275dSmrg/* end confdefs.h.  */
10228f931275dSmrgint i;
10229f931275dSmrg_ACEOF
10230bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10231bc77032bSmrgthen :
10232f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10233bc77032bSmrgelse $as_nop
10234f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10235f931275dSmrgfi
10236bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10237f931275dSmrgfi
10238bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10239bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10240c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10241f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10242f931275dSmrgfi
10243f931275dSmrg
10244f931275dSmrgfound="no"
10245f931275dSmrg
10246f931275dSmrg	if test $found = "no" ; then
10247c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10248f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10249f931275dSmrg		fi
10250f931275dSmrg
10251c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10252f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10253f931275dSmrg		fi
10254f931275dSmrg
10255f931275dSmrg		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10256f931275dSmrg
10257bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10258bc77032bSmrgprintf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10259c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10260bc77032bSmrg		if eval test \${$cacheid+y}
10261bc77032bSmrgthen :
10262bc77032bSmrg  printf %s "(cached) " >&6
10263bc77032bSmrgelse $as_nop
10264f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265f931275dSmrg/* end confdefs.h.  */
10266f931275dSmrgint i;
10267f931275dSmrgint
10268bc77032bSmrgmain (void)
10269f931275dSmrg{
1027089d09728Smrg
10271f931275dSmrg  ;
10272f931275dSmrg  return 0;
10273f931275dSmrg}
10274f931275dSmrg_ACEOF
10275bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10276bc77032bSmrgthen :
10277c6a6acfbSmrg  eval $cacheid=yes
10278bc77032bSmrgelse $as_nop
10279c6a6acfbSmrg  eval $cacheid=no
1028089d09728Smrgfi
10281bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10282f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
1028389d09728Smrgfi
10284f931275dSmrg
10285f931275dSmrg
10286f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10287f931275dSmrg
10288c6a6acfbSmrg		eval supported=\$$cacheid
10289bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10290bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10291f931275dSmrg		if test "$supported" = "yes" ; then
10292f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10293f931275dSmrg			found="yes"
10294f931275dSmrg		fi
10295f931275dSmrg	fi
10296f931275dSmrg
10297f931275dSmrg
10298f931275dSmrg
10299f931275dSmrg
10300f931275dSmrg
10301f931275dSmrg
10302f931275dSmrg
10303c6a6acfbSmrg
10304c6a6acfbSmrg
10305c6a6acfbSmrg
10306c6a6acfbSmrg
10307c6a6acfbSmrg
10308c6a6acfbSmrg
10309c6a6acfbSmrg
10310c6a6acfbSmrg
10311f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10312f931275dSmrg
10313c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10314f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10316bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10317bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10318bc77032bSmrgthen :
10319bc77032bSmrg  printf %s "(cached) " >&6
10320bc77032bSmrgelse $as_nop
10321f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322f931275dSmrg/* end confdefs.h.  */
10323f931275dSmrgint i;
10324f931275dSmrg_ACEOF
10325bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10326bc77032bSmrgthen :
10327f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10328bc77032bSmrgelse $as_nop
10329f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10330f931275dSmrgfi
10331bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10332f931275dSmrgfi
10333bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10334bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10335c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10336f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1033789d09728Smrgfi
1033889d09728Smrg
10339c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10340c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10341f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10342f931275dSmrg	fi
10343f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10344bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10345bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10346bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10347bc77032bSmrgthen :
10348bc77032bSmrg  printf %s "(cached) " >&6
10349bc77032bSmrgelse $as_nop
10350f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351f931275dSmrg/* end confdefs.h.  */
10352f931275dSmrgint i;
10353f931275dSmrg_ACEOF
10354bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10355bc77032bSmrgthen :
10356f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10357bc77032bSmrgelse $as_nop
10358f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10359f931275dSmrgfi
10360bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10361f931275dSmrgfi
10362bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10363bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10364c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10365f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10366f931275dSmrgfi
10367f931275dSmrg
10368f931275dSmrgfound="no"
10369f931275dSmrg
10370f931275dSmrg	if test $found = "no" ; then
10371c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373f931275dSmrg		fi
10374f931275dSmrg
10375c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10376f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10377f931275dSmrg		fi
10378f931275dSmrg
10379f931275dSmrg		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10380f931275dSmrg
10381bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10382bc77032bSmrgprintf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10383c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10384bc77032bSmrg		if eval test \${$cacheid+y}
10385bc77032bSmrgthen :
10386bc77032bSmrg  printf %s "(cached) " >&6
10387bc77032bSmrgelse $as_nop
10388f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389f931275dSmrg/* end confdefs.h.  */
10390f931275dSmrgint i;
10391f931275dSmrgint
10392bc77032bSmrgmain (void)
10393f931275dSmrg{
10394f931275dSmrg
10395f931275dSmrg  ;
10396f931275dSmrg  return 0;
10397f931275dSmrg}
10398f931275dSmrg_ACEOF
10399bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10400bc77032bSmrgthen :
10401c6a6acfbSmrg  eval $cacheid=yes
10402bc77032bSmrgelse $as_nop
10403c6a6acfbSmrg  eval $cacheid=no
10404f931275dSmrgfi
10405bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10406f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10407f931275dSmrgfi
10408f931275dSmrg
10409f931275dSmrg
10410f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10411f931275dSmrg
10412c6a6acfbSmrg		eval supported=\$$cacheid
10413bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10414bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10415f931275dSmrg		if test "$supported" = "yes" ; then
10416f931275dSmrg			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10417f931275dSmrg			found="yes"
10418f931275dSmrg		fi
10419f931275dSmrg	fi
1042089d09728Smrg
1042189d09728Smrg
1042289d09728Smrgfi
1042389d09728Smrg
10424f931275dSmrg
10425f931275dSmrg
10426f931275dSmrg
10427f931275dSmrg
10428f931275dSmrg
10429c6a6acfbSmrg
10430c6a6acfbSmrg		CWARNFLAGS="$BASE_CFLAGS"
10431c6a6acfbSmrg		if  test "x$GCC" = xyes ; then
10432c6a6acfbSmrg		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10433c6a6acfbSmrg		fi
10434c6a6acfbSmrg
10435c6a6acfbSmrg
1043689d09728Smrg
1043789d09728Smrg
1043889d09728Smrg
1043989d09728Smrg
10440f931275dSmrg
10441f931275dSmrg
10442f931275dSmrg# Check whether --enable-strict-compilation was given.
10443bc77032bSmrgif test ${enable_strict_compilation+y}
10444bc77032bSmrgthen :
10445f931275dSmrg  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10446bc77032bSmrgelse $as_nop
10447f931275dSmrg  STRICT_COMPILE=no
10448f931275dSmrgfi
10449f931275dSmrg
10450f931275dSmrg
10451c6a6acfbSmrg
10452c6a6acfbSmrg
10453c6a6acfbSmrg
10454c6a6acfbSmrg
10455f931275dSmrgSTRICT_CFLAGS=""
10456f931275dSmrg
10457f931275dSmrg
10458f931275dSmrg
10459f931275dSmrg
10460f931275dSmrg
10461c6a6acfbSmrg
10462c6a6acfbSmrg
10463c6a6acfbSmrg
10464c6a6acfbSmrg
10465c6a6acfbSmrg
10466c6a6acfbSmrg
10467c6a6acfbSmrg
10468c6a6acfbSmrg
10469f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10470f931275dSmrg
10471c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10472f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10473bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10474bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10475bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10476bc77032bSmrgthen :
10477bc77032bSmrg  printf %s "(cached) " >&6
10478bc77032bSmrgelse $as_nop
10479f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480f931275dSmrg/* end confdefs.h.  */
10481f931275dSmrgint i;
10482f931275dSmrg_ACEOF
10483bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10484bc77032bSmrgthen :
10485f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10486bc77032bSmrgelse $as_nop
10487f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10488f931275dSmrgfi
10489bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10490f931275dSmrgfi
10491bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10492bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10493c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10494f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10495f931275dSmrgfi
10496f931275dSmrg
10497c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10498c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10499f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10500f931275dSmrg	fi
10501f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10502bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10503bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10504bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10505bc77032bSmrgthen :
10506bc77032bSmrg  printf %s "(cached) " >&6
10507bc77032bSmrgelse $as_nop
1050848af84faSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1050989d09728Smrg/* end confdefs.h.  */
10510f931275dSmrgint i;
1051189d09728Smrg_ACEOF
10512bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10513bc77032bSmrgthen :
10514f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10515bc77032bSmrgelse $as_nop
10516f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1051789d09728Smrgfi
10518bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1051989d09728Smrgfi
10520bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10521bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10522c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10523f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1052489d09728Smrgfi
10525f931275dSmrg
10526f931275dSmrgfound="no"
10527f931275dSmrg
10528f931275dSmrg	if test $found = "no" ; then
10529c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10530f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10531f931275dSmrg		fi
10532f931275dSmrg
10533c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10534f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10535f931275dSmrg		fi
10536f931275dSmrg
10537f931275dSmrg		CFLAGS="$CFLAGS -pedantic"
10538f931275dSmrg
10539bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10540bc77032bSmrgprintf %s "checking if $CC supports -pedantic... " >&6; }
10541c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__pedantic
10542bc77032bSmrg		if eval test \${$cacheid+y}
10543bc77032bSmrgthen :
10544bc77032bSmrg  printf %s "(cached) " >&6
10545bc77032bSmrgelse $as_nop
10546f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1054789d09728Smrg/* end confdefs.h.  */
10548f931275dSmrgint i;
1054989d09728Smrgint
10550bc77032bSmrgmain (void)
1055189d09728Smrg{
1055289d09728Smrg
1055389d09728Smrg  ;
1055489d09728Smrg  return 0;
1055589d09728Smrg}
1055689d09728Smrg_ACEOF
10557bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10558bc77032bSmrgthen :
10559c6a6acfbSmrg  eval $cacheid=yes
10560bc77032bSmrgelse $as_nop
10561c6a6acfbSmrg  eval $cacheid=no
10562f931275dSmrgfi
10563bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10564f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10565f931275dSmrgfi
10566f931275dSmrg
10567f931275dSmrg
10568f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10569f931275dSmrg
10570c6a6acfbSmrg		eval supported=\$$cacheid
10571bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10572bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10573f931275dSmrg		if test "$supported" = "yes" ; then
10574f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10575f931275dSmrg			found="yes"
10576f931275dSmrg		fi
10577f931275dSmrg	fi
10578f931275dSmrg
10579f931275dSmrg
10580f931275dSmrg
10581f931275dSmrg
10582f931275dSmrg
10583f931275dSmrg
10584f931275dSmrg
10585c6a6acfbSmrg
10586c6a6acfbSmrg
10587c6a6acfbSmrg
10588c6a6acfbSmrg
10589c6a6acfbSmrg
10590c6a6acfbSmrg
10591c6a6acfbSmrg
10592c6a6acfbSmrg
10593f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10594f931275dSmrg
10595c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10596f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10598bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10599bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10600bc77032bSmrgthen :
10601bc77032bSmrg  printf %s "(cached) " >&6
10602bc77032bSmrgelse $as_nop
10603f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604f931275dSmrg/* end confdefs.h.  */
10605f931275dSmrgint i;
10606f931275dSmrg_ACEOF
10607bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10608bc77032bSmrgthen :
10609f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10610bc77032bSmrgelse $as_nop
10611f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
10612f931275dSmrgfi
10613bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10614f931275dSmrgfi
10615bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10616bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10617c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10618f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10619f931275dSmrgfi
10620f931275dSmrg
10621c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10622c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10623f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10624f931275dSmrg	fi
10625f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10626bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10627bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10628bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10629bc77032bSmrgthen :
10630bc77032bSmrg  printf %s "(cached) " >&6
10631bc77032bSmrgelse $as_nop
10632f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1063389d09728Smrg/* end confdefs.h.  */
10634f931275dSmrgint i;
10635f931275dSmrg_ACEOF
10636bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10637bc77032bSmrgthen :
10638f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10639bc77032bSmrgelse $as_nop
10640f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
10641f931275dSmrgfi
10642bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10643f931275dSmrgfi
10644bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10645bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10646c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10647f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10648f931275dSmrgfi
10649f931275dSmrg
10650f931275dSmrgfound="no"
10651f931275dSmrg
10652f931275dSmrg	if test $found = "no" ; then
10653c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10654f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655f931275dSmrg		fi
1065689d09728Smrg
10657c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10658f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10659f931275dSmrg		fi
10660f931275dSmrg
10661f931275dSmrg		CFLAGS="$CFLAGS -Werror"
10662f931275dSmrg
10663bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10664bc77032bSmrgprintf %s "checking if $CC supports -Werror... " >&6; }
10665c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror
10666bc77032bSmrg		if eval test \${$cacheid+y}
10667bc77032bSmrgthen :
10668bc77032bSmrg  printf %s "(cached) " >&6
10669bc77032bSmrgelse $as_nop
10670f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671f931275dSmrg/* end confdefs.h.  */
10672f931275dSmrgint i;
1067389d09728Smrgint
10674bc77032bSmrgmain (void)
1067589d09728Smrg{
1067689d09728Smrg
1067789d09728Smrg  ;
1067889d09728Smrg  return 0;
1067989d09728Smrg}
1068089d09728Smrg_ACEOF
10681bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10682bc77032bSmrgthen :
10683c6a6acfbSmrg  eval $cacheid=yes
10684bc77032bSmrgelse $as_nop
10685c6a6acfbSmrg  eval $cacheid=no
10686f931275dSmrgfi
10687bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10688f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10689f931275dSmrgfi
10690f931275dSmrg
10691f931275dSmrg
10692f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10693a9274bcdSmrg
10694c6a6acfbSmrg		eval supported=\$$cacheid
10695bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10696bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10697f931275dSmrg		if test "$supported" = "yes" ; then
10698f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10699f931275dSmrg			found="yes"
10700f931275dSmrg		fi
10701f931275dSmrg	fi
10702f931275dSmrg
10703f931275dSmrg	if test $found = "no" ; then
10704c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10705f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10706f931275dSmrg		fi
10707f931275dSmrg
10708c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10709f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10710f931275dSmrg		fi
10711f931275dSmrg
10712f931275dSmrg		CFLAGS="$CFLAGS -errwarn"
10713f931275dSmrg
10714bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10715bc77032bSmrgprintf %s "checking if $CC supports -errwarn... " >&6; }
10716c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__errwarn
10717bc77032bSmrg		if eval test \${$cacheid+y}
10718bc77032bSmrgthen :
10719bc77032bSmrg  printf %s "(cached) " >&6
10720bc77032bSmrgelse $as_nop
10721f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1072289d09728Smrg/* end confdefs.h.  */
10723f931275dSmrgint i;
1072489d09728Smrgint
10725bc77032bSmrgmain (void)
1072689d09728Smrg{
1072789d09728Smrg
1072889d09728Smrg  ;
1072989d09728Smrg  return 0;
1073089d09728Smrg}
1073189d09728Smrg_ACEOF
10732bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10733bc77032bSmrgthen :
10734c6a6acfbSmrg  eval $cacheid=yes
10735bc77032bSmrgelse $as_nop
10736c6a6acfbSmrg  eval $cacheid=no
10737f931275dSmrgfi
10738bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10739f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10740f931275dSmrgfi
10741f931275dSmrg
10742f931275dSmrg
10743f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10744f931275dSmrg
10745c6a6acfbSmrg		eval supported=\$$cacheid
10746bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10747bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10748f931275dSmrg		if test "$supported" = "yes" ; then
10749f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10750f931275dSmrg			found="yes"
10751f931275dSmrg		fi
10752f931275dSmrg	fi
10753f931275dSmrg
10754f931275dSmrg
10755f931275dSmrg
10756f931275dSmrg# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10757f931275dSmrg# activate it with -Werror, so we add it here explicitly.
10758f931275dSmrg
10759f931275dSmrg
10760f931275dSmrg
10761f931275dSmrg
10762f931275dSmrg
10763c6a6acfbSmrg
10764c6a6acfbSmrg
10765c6a6acfbSmrg
10766c6a6acfbSmrg
10767c6a6acfbSmrg
10768c6a6acfbSmrg
10769c6a6acfbSmrg
10770c6a6acfbSmrg
10771f931275dSmrgxorg_testset_save_CFLAGS="$CFLAGS"
10772f931275dSmrg
10773c6a6acfbSmrgif test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10774f931275dSmrg	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10776bc77032bSmrgprintf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10777bc77032bSmrgif test ${xorg_cv_cc_flag_unknown_warning_option+y}
10778bc77032bSmrgthen :
10779bc77032bSmrg  printf %s "(cached) " >&6
10780bc77032bSmrgelse $as_nop
10781f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782f931275dSmrg/* end confdefs.h.  */
10783f931275dSmrgint i;
10784f931275dSmrg_ACEOF
10785bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10786bc77032bSmrgthen :
10787f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=yes
10788bc77032bSmrgelse $as_nop
10789f931275dSmrg  xorg_cv_cc_flag_unknown_warning_option=no
1079089d09728Smrgfi
10791bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1079289d09728Smrgfi
10793bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10794bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10795c6a6acfbSmrg	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10796f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
10797f931275dSmrgfi
10798f931275dSmrg
10799c6a6acfbSmrgif test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10800c6a6acfbSmrg	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801f931275dSmrg		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802f931275dSmrg	fi
10803f931275dSmrg	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10804bc77032bSmrg	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10805bc77032bSmrgprintf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10806bc77032bSmrgif test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10807bc77032bSmrgthen :
10808bc77032bSmrg  printf %s "(cached) " >&6
10809bc77032bSmrgelse $as_nop
10810f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811f931275dSmrg/* end confdefs.h.  */
10812f931275dSmrgint i;
10813f931275dSmrg_ACEOF
10814bc77032bSmrgif ac_fn_c_try_compile "$LINENO"
10815bc77032bSmrgthen :
10816f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=yes
10817bc77032bSmrgelse $as_nop
10818f931275dSmrg  xorg_cv_cc_flag_unused_command_line_argument=no
1081989d09728Smrgfi
10820bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1082189d09728Smrgfi
10822bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10823bc77032bSmrgprintf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10824c6a6acfbSmrg	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10825f931275dSmrg	CFLAGS="$xorg_testset_save_CFLAGS"
1082689d09728Smrgfi
10827f931275dSmrg
10828f931275dSmrgfound="no"
10829f931275dSmrg
10830f931275dSmrg	if test $found = "no" ; then
10831c6a6acfbSmrg		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10832f931275dSmrg			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10833f931275dSmrg		fi
10834f931275dSmrg
10835c6a6acfbSmrg		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10836f931275dSmrg			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837f931275dSmrg		fi
10838f931275dSmrg
10839f931275dSmrg		CFLAGS="$CFLAGS -Werror=attributes"
10840f931275dSmrg
10841bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10842bc77032bSmrgprintf %s "checking if $CC supports -Werror=attributes... " >&6; }
10843c6a6acfbSmrg		cacheid=xorg_cv_cc_flag__Werror_attributes
10844bc77032bSmrg		if eval test \${$cacheid+y}
10845bc77032bSmrgthen :
10846bc77032bSmrg  printf %s "(cached) " >&6
10847bc77032bSmrgelse $as_nop
10848f931275dSmrg  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1084989d09728Smrg/* end confdefs.h.  */
10850f931275dSmrgint i;
10851f931275dSmrgint
10852bc77032bSmrgmain (void)
1085389d09728Smrg{
10854f931275dSmrg
10855f931275dSmrg  ;
10856f931275dSmrg  return 0;
1085789d09728Smrg}
10858f931275dSmrg_ACEOF
10859bc77032bSmrgif ac_fn_c_try_link "$LINENO"
10860bc77032bSmrgthen :
10861c6a6acfbSmrg  eval $cacheid=yes
10862bc77032bSmrgelse $as_nop
10863c6a6acfbSmrg  eval $cacheid=no
10864f931275dSmrgfi
10865bc77032bSmrgrm -f core conftest.err conftest.$ac_objext conftest.beam \
10866f931275dSmrg    conftest$ac_exeext conftest.$ac_ext
10867f931275dSmrgfi
10868f931275dSmrg
10869f931275dSmrg
10870f931275dSmrg		CFLAGS="$xorg_testset_save_CFLAGS"
10871f931275dSmrg
10872c6a6acfbSmrg		eval supported=\$$cacheid
10873bc77032bSmrg		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10874bc77032bSmrgprintf "%s\n" "$supported" >&6; }
10875f931275dSmrg		if test "$supported" = "yes" ; then
10876f931275dSmrg			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10877f931275dSmrg			found="yes"
10878f931275dSmrg		fi
10879f931275dSmrg	fi
10880f931275dSmrg
10881f931275dSmrg
10882f931275dSmrg
10883f931275dSmrgif test "x$STRICT_COMPILE" = "xyes"; then
10884f931275dSmrg    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10885f931275dSmrg    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10886f931275dSmrgfi
10887f931275dSmrg
10888f931275dSmrg
10889f931275dSmrg
10890f931275dSmrg
10891f931275dSmrg
10892f931275dSmrg
10893f931275dSmrgcat >>confdefs.h <<_ACEOF
10894f931275dSmrg#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10895f931275dSmrg_ACEOF
10896f931275dSmrg
10897f931275dSmrg	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10898f931275dSmrg	if test "x$PVM" = "x"; then
10899f931275dSmrg		PVM="0"
10900f931275dSmrg	fi
10901f931275dSmrg
10902bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10903f931275dSmrg
10904f931275dSmrg	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10905f931275dSmrg	if test "x$PVP" = "x"; then
10906f931275dSmrg		PVP="0"
10907f931275dSmrg	fi
10908f931275dSmrg
10909bc77032bSmrgprintf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10910f931275dSmrg
10911f931275dSmrg
10912f931275dSmrg
10913bc77032bSmrgCHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10914f931275dSmrgmv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10915bc77032bSmrg|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10916bc77032bSmrgtouch \$(top_srcdir)/ChangeLog; \
10917bc77032bSmrgecho 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10918f931275dSmrg
10919f931275dSmrg
10920f931275dSmrg
10921f931275dSmrg
10922f931275dSmrgmacros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10923f931275dSmrgINSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10924f931275dSmrgmv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10925bc77032bSmrg|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10926bc77032bSmrgtouch \$(top_srcdir)/INSTALL; \
10927bc77032bSmrgecho 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10928bc77032bSmrg
10929f931275dSmrg
10930f931275dSmrg
10931f931275dSmrg
10932f931275dSmrg
10933f931275dSmrg
10934bc77032bSmrgcase $host_os in
10935bc77032bSmrg    solaris*)
10936bc77032bSmrg        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10937bc77032bSmrg        # check for a man page file found in later versions that use
10938bc77032bSmrg        # traditional section numbers instead
10939bc77032bSmrg        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10940bc77032bSmrgprintf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10941bc77032bSmrgif test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10942bc77032bSmrgthen :
10943bc77032bSmrg  printf %s "(cached) " >&6
10944bc77032bSmrgelse $as_nop
10945bc77032bSmrg  test "$cross_compiling" = yes &&
10946bc77032bSmrg  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10947bc77032bSmrgif test -r "/usr/share/man/man7/attributes.7"; then
10948bc77032bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=yes
10949bc77032bSmrgelse
10950bc77032bSmrg  ac_cv_file__usr_share_man_man7_attributes_7=no
10951bc77032bSmrgfi
10952bc77032bSmrgfi
10953bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10954bc77032bSmrgprintf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10955bc77032bSmrgif test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10956bc77032bSmrgthen :
10957bc77032bSmrg  SYSV_MAN_SECTIONS=false
10958bc77032bSmrgelse $as_nop
10959bc77032bSmrg  SYSV_MAN_SECTIONS=true
10960bc77032bSmrgfi
10961bc77032bSmrg
10962bc77032bSmrg        ;;
10963bc77032bSmrg    *) SYSV_MAN_SECTIONS=false ;;
10964bc77032bSmrgesac
1096589d09728Smrg
10966f931275dSmrgif test x$APP_MAN_SUFFIX = x    ; then
10967f931275dSmrg    APP_MAN_SUFFIX=1
10968f931275dSmrgfi
10969f931275dSmrgif test x$APP_MAN_DIR = x    ; then
10970f931275dSmrg    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10971f931275dSmrgfi
1097289d09728Smrg
10973f931275dSmrgif test x$LIB_MAN_SUFFIX = x    ; then
10974f931275dSmrg    LIB_MAN_SUFFIX=3
10975f931275dSmrgfi
10976f931275dSmrgif test x$LIB_MAN_DIR = x    ; then
10977f931275dSmrg    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10978f931275dSmrgfi
1097989d09728Smrg
10980f931275dSmrgif test x$FILE_MAN_SUFFIX = x    ; then
10981bc77032bSmrg    case $SYSV_MAN_SECTIONS in
10982bc77032bSmrg	true)				FILE_MAN_SUFFIX=4  ;;
1098338c51623Smrg	*)				FILE_MAN_SUFFIX=5  ;;
10984f931275dSmrg    esac
10985f931275dSmrgfi
10986f931275dSmrgif test x$FILE_MAN_DIR = x    ; then
10987f931275dSmrg    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
1098889d09728Smrgfi
1098989d09728Smrg
10990f931275dSmrgif test x$MISC_MAN_SUFFIX = x    ; then
10991bc77032bSmrg    case $SYSV_MAN_SECTIONS in
10992bc77032bSmrg	true)				MISC_MAN_SUFFIX=5  ;;
1099338c51623Smrg	*)				MISC_MAN_SUFFIX=7  ;;
10994f931275dSmrg    esac
10995f931275dSmrgfi
10996f931275dSmrgif test x$MISC_MAN_DIR = x    ; then
10997f931275dSmrg    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
1099889d09728Smrgfi
1099989d09728Smrg
11000f931275dSmrgif test x$DRIVER_MAN_SUFFIX = x    ; then
11001bc77032bSmrg    case $SYSV_MAN_SECTIONS in
11002bc77032bSmrg	true)				DRIVER_MAN_SUFFIX=7  ;;
1100338c51623Smrg	*)				DRIVER_MAN_SUFFIX=4  ;;
11004f931275dSmrg    esac
11005f931275dSmrgfi
11006f931275dSmrgif test x$DRIVER_MAN_DIR = x    ; then
11007f931275dSmrg    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
1100848af84faSmrgfi
1100989d09728Smrg
11010f931275dSmrgif test x$ADMIN_MAN_SUFFIX = x    ; then
11011bc77032bSmrg    case $SYSV_MAN_SECTIONS in
11012bc77032bSmrg	true)				ADMIN_MAN_SUFFIX=1m ;;
1101338c51623Smrg	*)				ADMIN_MAN_SUFFIX=8  ;;
11014f931275dSmrg    esac
11015f931275dSmrgfi
11016f931275dSmrgif test x$ADMIN_MAN_DIR = x    ; then
11017f931275dSmrg    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11018f931275dSmrgfi
1101989d09728Smrg
1102089d09728Smrg
1102189d09728Smrg
11022a9274bcdSmrg
1102366fe65f6Smrg
1102466fe65f6Smrg
1102548af84faSmrg
1102689d09728Smrg
11027f931275dSmrg
11028f931275dSmrg
11029f931275dSmrg
11030f931275dSmrg
11031f931275dSmrg
11032f931275dSmrg
11033f931275dSmrg
11034f931275dSmrgXORG_MAN_PAGE="X Version 11"
11035f931275dSmrg
11036f931275dSmrgMAN_SUBSTS="\
11037f931275dSmrg	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11038f931275dSmrg	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11039f931275dSmrg	-e 's|__xservername__|Xorg|g' \
11040f931275dSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
11041f931275dSmrg	-e 's|__projectroot__|\$(prefix)|g' \
11042f931275dSmrg	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11043f931275dSmrg	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11044f931275dSmrg	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11045f931275dSmrg	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11046f931275dSmrg	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11047f931275dSmrg	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11048f931275dSmrg	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11049f931275dSmrg
11050f931275dSmrg
11051f931275dSmrg
11052f931275dSmrg# Check whether --enable-silent-rules was given.
11053bc77032bSmrgif test ${enable_silent_rules+y}
11054bc77032bSmrgthen :
11055f931275dSmrg  enableval=$enable_silent_rules;
1105648af84faSmrgfi
1105789d09728Smrg
11058c6a6acfbSmrgcase $enable_silent_rules in # (((
11059c6a6acfbSmrg  yes) AM_DEFAULT_VERBOSITY=0;;
11060c6a6acfbSmrg   no) AM_DEFAULT_VERBOSITY=1;;
11061c6a6acfbSmrg    *) AM_DEFAULT_VERBOSITY=0;;
11062f931275dSmrgesac
11063c6a6acfbSmrgam_make=${MAKE-make}
11064bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11065bc77032bSmrgprintf %s "checking whether $am_make supports nested variables... " >&6; }
11066bc77032bSmrgif test ${am_cv_make_support_nested_variables+y}
11067bc77032bSmrgthen :
11068bc77032bSmrg  printf %s "(cached) " >&6
11069bc77032bSmrgelse $as_nop
11070bc77032bSmrg  if printf "%s\n" 'TRUE=$(BAR$(V))
11071c6a6acfbSmrgBAR0=false
11072c6a6acfbSmrgBAR1=true
11073c6a6acfbSmrgV=1
11074c6a6acfbSmrgam__doit:
11075c6a6acfbSmrg	@$(TRUE)
11076c6a6acfbSmrg.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11077c6a6acfbSmrg  am_cv_make_support_nested_variables=yes
11078c6a6acfbSmrgelse
11079c6a6acfbSmrg  am_cv_make_support_nested_variables=no
11080c6a6acfbSmrgfi
11081c6a6acfbSmrgfi
11082bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11083bc77032bSmrgprintf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11084c6a6acfbSmrgif test $am_cv_make_support_nested_variables = yes; then
11085c6a6acfbSmrg    AM_V='$(V)'
11086c6a6acfbSmrg  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11087c6a6acfbSmrgelse
11088c6a6acfbSmrg  AM_V=$AM_DEFAULT_VERBOSITY
11089c6a6acfbSmrg  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11090c6a6acfbSmrgfi
11091f931275dSmrgAM_BACKSLASH='\'
1109289d09728Smrg
1109389d09728Smrg
1109466fe65f6Smrg
11095bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
11096bc77032bSmrgprintf %s "checking for root directory for font files... " >&6; }
11097a9274bcdSmrgfontrootdir='${datadir}/fonts/X11'
1109889d09728Smrg
11099a9274bcdSmrg# Check whether --with-fontrootdir was given.
11100bc77032bSmrgif test ${with_fontrootdir+y}
11101bc77032bSmrgthen :
11102a9274bcdSmrg  withval=$with_fontrootdir; fontrootdir="${withval}"
11103a9274bcdSmrgfi
1110489d09728Smrg
1110589d09728Smrg
11106bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${fontrootdir}" >&5
11107bc77032bSmrgprintf "%s\n" "${fontrootdir}" >&6; }
1110889d09728Smrg
11109a9274bcdSmrgmapdir='${fontrootdir}/util'
1111089d09728Smrg
11111a9274bcdSmrg# Check whether --with-mapdir was given.
11112bc77032bSmrgif test ${with_mapdir+y}
11113bc77032bSmrgthen :
11114a9274bcdSmrg  withval=$with_mapdir; mapdir="${withval}"
11115a9274bcdSmrgfi
11116a9274bcdSmrg
11117a9274bcdSmrgMAPDIR="$mapdir"
1111889d09728Smrg
1111989d09728Smrg
1112048af84faSmrgac_config_files="$ac_config_files Makefile man/Makefile fontutil.m4 fontutil.pc"
1112148af84faSmrg
1112266fe65f6Smrg
1112366fe65f6Smrgcat >confcache <<\_ACEOF
1112466fe65f6Smrg# This file is a shell script that caches the results of configure
1112566fe65f6Smrg# tests run on this system so they can be shared between configure
1112666fe65f6Smrg# scripts and configure runs, see configure's option --config-cache.
1112766fe65f6Smrg# It is not useful on other systems.  If it contains results you don't
1112866fe65f6Smrg# want to keep, you may remove or edit it.
1112966fe65f6Smrg#
1113066fe65f6Smrg# config.status only pays attention to the cache file if you give it
1113166fe65f6Smrg# the --recheck option to rerun configure.
1113266fe65f6Smrg#
1113366fe65f6Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when
1113466fe65f6Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the
1113566fe65f6Smrg# following values.
1113666fe65f6Smrg
1113766fe65f6Smrg_ACEOF
1113866fe65f6Smrg
1113966fe65f6Smrg# The following way of writing the cache mishandles newlines in values,
1114066fe65f6Smrg# but we know of no workaround that is simple, portable, and efficient.
1114189d09728Smrg# So, we kill variables containing newlines.
1114266fe65f6Smrg# Ultrix sh set writes to stderr and can't be redirected directly,
1114366fe65f6Smrg# and sets the high bit in the cache file unless we assign to the vars.
1114489d09728Smrg(
1114589d09728Smrg  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1114689d09728Smrg    eval ac_val=\$$ac_var
1114789d09728Smrg    case $ac_val in #(
1114889d09728Smrg    *${as_nl}*)
1114989d09728Smrg      case $ac_var in #(
11150bc77032bSmrg      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11151bc77032bSmrgprintf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1115289d09728Smrg      esac
1115389d09728Smrg      case $ac_var in #(
1115489d09728Smrg      _ | IFS | as_nl) ;; #(
1115589d09728Smrg      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1115648af84faSmrg      *) { eval $ac_var=; unset $ac_var;} ;;
1115789d09728Smrg      esac ;;
1115889d09728Smrg    esac
1115989d09728Smrg  done
1116089d09728Smrg
1116166fe65f6Smrg  (set) 2>&1 |
1116289d09728Smrg    case $as_nl`(ac_space=' '; set) 2>&1` in #(
1116389d09728Smrg    *${as_nl}ac_space=\ *)
1116448af84faSmrg      # `set' does not quote correctly, so add quotes: double-quote
1116548af84faSmrg      # substitution turns \\\\ into \\, and sed turns \\ into \.
1116666fe65f6Smrg      sed -n \
1116766fe65f6Smrg	"s/'/'\\\\''/g;
1116866fe65f6Smrg	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1116989d09728Smrg      ;; #(
1117066fe65f6Smrg    *)
1117166fe65f6Smrg      # `set' quotes correctly as required by POSIX, so do not add quotes.
1117289d09728Smrg      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1117366fe65f6Smrg      ;;
1117489d09728Smrg    esac |
1117589d09728Smrg    sort
1117689d09728Smrg) |
1117766fe65f6Smrg  sed '
1117889d09728Smrg     /^ac_cv_env_/b end
1117966fe65f6Smrg     t clear
1118089d09728Smrg     :clear
11181bc77032bSmrg     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1118266fe65f6Smrg     t end
1118389d09728Smrg     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1118489d09728Smrg     :end' >>confcache
1118589d09728Smrgif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1118689d09728Smrg  if test -w "$cache_file"; then
1118748af84faSmrg    if test "x$cache_file" != "x/dev/null"; then
11188bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11189bc77032bSmrgprintf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1119048af84faSmrg      if test ! -f "$cache_file" || test -h "$cache_file"; then
1119148af84faSmrg	cat confcache >"$cache_file"
1119248af84faSmrg      else
1119348af84faSmrg        case $cache_file in #(
1119448af84faSmrg        */* | ?:*)
1119548af84faSmrg	  mv -f confcache "$cache_file"$$ &&
1119648af84faSmrg	  mv -f "$cache_file"$$ "$cache_file" ;; #(
1119748af84faSmrg        *)
1119848af84faSmrg	  mv -f confcache "$cache_file" ;;
1119948af84faSmrg	esac
1120048af84faSmrg      fi
1120148af84faSmrg    fi
1120266fe65f6Smrg  else
11203bc77032bSmrg    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11204bc77032bSmrgprintf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1120566fe65f6Smrg  fi
1120666fe65f6Smrgfi
1120766fe65f6Smrgrm -f confcache
1120866fe65f6Smrg
1120966fe65f6Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix
1121066fe65f6Smrg# Let make expand exec_prefix.
1121166fe65f6Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1121266fe65f6Smrg
1121366fe65f6SmrgDEFS=-DHAVE_CONFIG_H
1121466fe65f6Smrg
1121566fe65f6Smrgac_libobjs=
1121666fe65f6Smrgac_ltlibobjs=
1121748af84faSmrgU=
1121866fe65f6Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1121966fe65f6Smrg  # 1. Remove the extension, and $U if already installed.
1122089d09728Smrg  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11221bc77032bSmrg  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1122289d09728Smrg  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
1122389d09728Smrg  #    will be set to the directory where LIBOBJS objects are built.
1122448af84faSmrg  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
1122548af84faSmrg  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1122666fe65f6Smrgdone
1122766fe65f6SmrgLIBOBJS=$ac_libobjs
1122866fe65f6Smrg
1122966fe65f6SmrgLTLIBOBJS=$ac_ltlibobjs
1123066fe65f6Smrg
1123166fe65f6Smrg
11232bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11233bc77032bSmrgprintf %s "checking that generated files are newer than configure... " >&6; }
11234c6a6acfbSmrg   if test -n "$am_sleep_pid"; then
11235c6a6acfbSmrg     # Hide warnings about reused PIDs.
11236c6a6acfbSmrg     wait $am_sleep_pid 2>/dev/null
11237c6a6acfbSmrg   fi
11238bc77032bSmrg   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11239bc77032bSmrgprintf "%s\n" "done" >&6; }
11240a9274bcdSmrg if test -n "$EXEEXT"; then
11241a9274bcdSmrg  am__EXEEXT_TRUE=
11242a9274bcdSmrg  am__EXEEXT_FALSE='#'
11243a9274bcdSmrgelse
11244a9274bcdSmrg  am__EXEEXT_TRUE='#'
11245a9274bcdSmrg  am__EXEEXT_FALSE=
11246a9274bcdSmrgfi
11247a9274bcdSmrg
1124866fe65f6Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1124948af84faSmrg  as_fn_error $? "conditional \"AMDEP\" was never defined.
1125048af84faSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1125189d09728Smrgfi
1125289d09728Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1125348af84faSmrg  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1125448af84faSmrgUsually this means the macro was only invoked conditionally." "$LINENO" 5
1125566fe65f6Smrgfi
1125666fe65f6Smrg
1125748af84faSmrg: "${CONFIG_STATUS=./config.status}"
1125889d09728Smrgac_write_fail=0
1125966fe65f6Smrgac_clean_files_save=$ac_clean_files
1126066fe65f6Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS"
11261bc77032bSmrg{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11262bc77032bSmrgprintf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1126348af84faSmrgas_write_fail=0
1126448af84faSmrgcat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1126566fe65f6Smrg#! $SHELL
1126666fe65f6Smrg# Generated by $as_me.
1126766fe65f6Smrg# Run this file to recreate the current configuration.
1126866fe65f6Smrg# Compiler output produced by configure, useful for debugging
1126966fe65f6Smrg# configure, is in config.log if it exists.
1127066fe65f6Smrg
1127166fe65f6Smrgdebug=false
1127266fe65f6Smrgac_cs_recheck=false
1127366fe65f6Smrgac_cs_silent=false
11274a9274bcdSmrg
1127548af84faSmrgSHELL=\${CONFIG_SHELL-$SHELL}
1127648af84faSmrgexport SHELL
1127748af84faSmrg_ASEOF
1127848af84faSmrgcat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
1127948af84faSmrg## -------------------- ##
1128048af84faSmrg## M4sh Initialization. ##
1128148af84faSmrg## -------------------- ##
1128289d09728Smrg
1128389d09728Smrg# Be more Bourne compatible
1128489d09728SmrgDUALCASE=1; export DUALCASE # for MKS sh
11285bc77032bSmrgas_nop=:
11286bc77032bSmrgif test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11287bc77032bSmrgthen :
1128866fe65f6Smrg  emulate sh
1128966fe65f6Smrg  NULLCMD=:
1129089d09728Smrg  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1129166fe65f6Smrg  # is contrary to our usage.  Disable this feature.
1129266fe65f6Smrg  alias -g '${1+"$@"}'='"$@"'
1129389d09728Smrg  setopt NO_GLOB_SUBST
11294bc77032bSmrgelse $as_nop
1129548af84faSmrg  case `(set -o) 2>/dev/null` in #(
1129648af84faSmrg  *posix*) :
1129748af84faSmrg    set -o posix ;; #(
1129848af84faSmrg  *) :
1129948af84faSmrg     ;;
1130089d09728Smrgesac
1130166fe65f6Smrgfi
1130266fe65f6Smrg
1130389d09728Smrg
11304bc77032bSmrg
11305bc77032bSmrg# Reset variables that may have inherited troublesome values from
11306bc77032bSmrg# the environment.
11307bc77032bSmrg
11308bc77032bSmrg# IFS needs to be set, to space, tab, and newline, in precisely that order.
11309bc77032bSmrg# (If _AS_PATH_WALK were called with IFS unset, it would have the
11310bc77032bSmrg# side effect of setting IFS to empty, thus disabling word splitting.)
11311bc77032bSmrg# Quoting is to prevent editors from complaining about space-tab.
1131289d09728Smrgas_nl='
1131389d09728Smrg'
1131489d09728Smrgexport as_nl
11315bc77032bSmrgIFS=" ""	$as_nl"
11316bc77032bSmrg
11317bc77032bSmrgPS1='$ '
11318bc77032bSmrgPS2='> '
11319bc77032bSmrgPS4='+ '
11320bc77032bSmrg
11321bc77032bSmrg# Ensure predictable behavior from utilities with locale-dependent output.
11322bc77032bSmrgLC_ALL=C
11323bc77032bSmrgexport LC_ALL
11324bc77032bSmrgLANGUAGE=C
11325bc77032bSmrgexport LANGUAGE
11326bc77032bSmrg
11327bc77032bSmrg# We cannot yet rely on "unset" to work, but we need these variables
11328bc77032bSmrg# to be unset--not just set to an empty or harmless value--now, to
11329bc77032bSmrg# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
11330bc77032bSmrg# also avoids known problems related to "unset" and subshell syntax
11331bc77032bSmrg# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11332bc77032bSmrgfor as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11333bc77032bSmrgdo eval test \${$as_var+y} \
11334bc77032bSmrg  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11335bc77032bSmrgdone
11336bc77032bSmrg
11337bc77032bSmrg# Ensure that fds 0, 1, and 2 are open.
11338bc77032bSmrgif (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11339bc77032bSmrgif (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11340bc77032bSmrgif (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
1134189d09728Smrg
1134289d09728Smrg# The user is always right.
11343bc77032bSmrgif ${PATH_SEPARATOR+false} :; then
1134489d09728Smrg  PATH_SEPARATOR=:
1134589d09728Smrg  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
1134689d09728Smrg    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
1134789d09728Smrg      PATH_SEPARATOR=';'
1134889d09728Smrg  }
1134966fe65f6Smrgfi
1135066fe65f6Smrg
1135166fe65f6Smrg
1135289d09728Smrg# Find who we are.  Look in the path if we contain no directory separator.
1135348af84faSmrgas_myself=
1135448af84faSmrgcase $0 in #((
1135589d09728Smrg  *[\\/]* ) as_myself=$0 ;;
1135689d09728Smrg  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1135789d09728Smrgfor as_dir in $PATH
1135889d09728Smrgdo
1135989d09728Smrg  IFS=$as_save_IFS
11360bc77032bSmrg  case $as_dir in #(((
11361bc77032bSmrg    '') as_dir=./ ;;
11362bc77032bSmrg    */) ;;
11363bc77032bSmrg    *) as_dir=$as_dir/ ;;
11364bc77032bSmrg  esac
11365bc77032bSmrg    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1136648af84faSmrg  done
1136789d09728SmrgIFS=$as_save_IFS
1136889d09728Smrg
1136989d09728Smrg     ;;
1137089d09728Smrgesac
1137189d09728Smrg# We did not find ourselves, most probably we were run as `sh COMMAND'
1137289d09728Smrg# in which case we are not to be found in the path.
1137389d09728Smrgif test "x$as_myself" = x; then
1137489d09728Smrg  as_myself=$0
1137589d09728Smrgfi
1137689d09728Smrgif test ! -f "$as_myself"; then
11377bc77032bSmrg  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1137848af84faSmrg  exit 1
1137989d09728Smrgfi
1138089d09728Smrg
1138148af84faSmrg
1138248af84faSmrg
1138348af84faSmrg# as_fn_error STATUS ERROR [LINENO LOG_FD]
1138448af84faSmrg# ----------------------------------------
1138548af84faSmrg# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
1138648af84faSmrg# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1138748af84faSmrg# script with STATUS, using 1 if that was 0.
1138848af84faSmrgas_fn_error ()
1138948af84faSmrg{
1139048af84faSmrg  as_status=$1; test $as_status -eq 0 && as_status=1
1139148af84faSmrg  if test "$4"; then
1139248af84faSmrg    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11393bc77032bSmrg    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1139448af84faSmrg  fi
11395bc77032bSmrg  printf "%s\n" "$as_me: error: $2" >&2
1139648af84faSmrg  as_fn_exit $as_status
1139748af84faSmrg} # as_fn_error
1139848af84faSmrg
1139948af84faSmrg
11400bc77032bSmrg
1140148af84faSmrg# as_fn_set_status STATUS
1140248af84faSmrg# -----------------------
1140348af84faSmrg# Set $? to STATUS, without forking.
1140448af84faSmrgas_fn_set_status ()
1140548af84faSmrg{
1140648af84faSmrg  return $1
1140748af84faSmrg} # as_fn_set_status
1140848af84faSmrg
1140948af84faSmrg# as_fn_exit STATUS
1141048af84faSmrg# -----------------
1141148af84faSmrg# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
1141248af84faSmrgas_fn_exit ()
1141348af84faSmrg{
1141448af84faSmrg  set +e
1141548af84faSmrg  as_fn_set_status $1
1141648af84faSmrg  exit $1
1141748af84faSmrg} # as_fn_exit
1141848af84faSmrg
1141948af84faSmrg# as_fn_unset VAR
1142048af84faSmrg# ---------------
1142148af84faSmrg# Portably unset VAR.
1142248af84faSmrgas_fn_unset ()
1142348af84faSmrg{
1142448af84faSmrg  { eval $1=; unset $1;}
1142548af84faSmrg}
1142648af84faSmrgas_unset=as_fn_unset
11427bc77032bSmrg
1142848af84faSmrg# as_fn_append VAR VALUE
1142948af84faSmrg# ----------------------
1143048af84faSmrg# Append the text in VALUE to the end of the definition contained in VAR. Take
1143148af84faSmrg# advantage of any shell optimizations that allow amortized linear growth over
1143248af84faSmrg# repeated appends, instead of the typical quadratic growth present in naive
1143348af84faSmrg# implementations.
11434bc77032bSmrgif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11435bc77032bSmrgthen :
1143648af84faSmrg  eval 'as_fn_append ()
1143748af84faSmrg  {
1143848af84faSmrg    eval $1+=\$2
1143948af84faSmrg  }'
11440bc77032bSmrgelse $as_nop
1144148af84faSmrg  as_fn_append ()
1144248af84faSmrg  {
1144348af84faSmrg    eval $1=\$$1\$2
1144448af84faSmrg  }
1144548af84faSmrgfi # as_fn_append
1144648af84faSmrg
1144748af84faSmrg# as_fn_arith ARG...
1144848af84faSmrg# ------------------
1144948af84faSmrg# Perform arithmetic evaluation on the ARGs, and store the result in the
1145048af84faSmrg# global $as_val. Take advantage of shells that can avoid forks. The arguments
1145148af84faSmrg# must be portable across $(()) and expr.
11452bc77032bSmrgif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11453bc77032bSmrgthen :
1145448af84faSmrg  eval 'as_fn_arith ()
1145548af84faSmrg  {
1145648af84faSmrg    as_val=$(( $* ))
1145748af84faSmrg  }'
11458bc77032bSmrgelse $as_nop
1145948af84faSmrg  as_fn_arith ()
1146048af84faSmrg  {
1146148af84faSmrg    as_val=`expr "$@" || test $? -eq 1`
1146248af84faSmrg  }
1146348af84faSmrgfi # as_fn_arith
1146448af84faSmrg
1146548af84faSmrg
1146689d09728Smrgif expr a : '\(a\)' >/dev/null 2>&1 &&
1146789d09728Smrg   test "X`expr 00001 : '.*\(...\)'`" = X001; then
1146866fe65f6Smrg  as_expr=expr
1146966fe65f6Smrgelse
1147066fe65f6Smrg  as_expr=false
1147166fe65f6Smrgfi
1147266fe65f6Smrg
1147389d09728Smrgif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1147466fe65f6Smrg  as_basename=basename
1147566fe65f6Smrgelse
1147666fe65f6Smrg  as_basename=false
1147766fe65f6Smrgfi
1147866fe65f6Smrg
1147948af84faSmrgif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
1148048af84faSmrg  as_dirname=dirname
1148148af84faSmrgelse
1148248af84faSmrg  as_dirname=false
1148348af84faSmrgfi
1148466fe65f6Smrg
1148589d09728Smrgas_me=`$as_basename -- "$0" ||
1148666fe65f6Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1148766fe65f6Smrg	 X"$0" : 'X\(//\)$' \| \
1148889d09728Smrg	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11489bc77032bSmrgprintf "%s\n" X/"$0" |
1149089d09728Smrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1149189d09728Smrg	    s//\1/
1149289d09728Smrg	    q
1149389d09728Smrg	  }
1149489d09728Smrg	  /^X\/\(\/\/\)$/{
1149589d09728Smrg	    s//\1/
1149689d09728Smrg	    q
1149789d09728Smrg	  }
1149889d09728Smrg	  /^X\/\(\/\).*/{
1149989d09728Smrg	    s//\1/
1150089d09728Smrg	    q
1150189d09728Smrg	  }
1150289d09728Smrg	  s/.*/./; q'`
1150366fe65f6Smrg
1150448af84faSmrg# Avoid depending upon Character Ranges.
1150548af84faSmrgas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1150648af84faSmrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1150748af84faSmrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1150848af84faSmrgas_cr_digits='0123456789'
1150948af84faSmrgas_cr_alnum=$as_cr_Letters$as_cr_digits
1151066fe65f6Smrg
11511bc77032bSmrg
11512bc77032bSmrg# Determine whether it's possible to make 'echo' print without a newline.
11513bc77032bSmrg# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11514bc77032bSmrg# for compatibility with existing Makefiles.
1151589d09728SmrgECHO_C= ECHO_N= ECHO_T=
1151648af84faSmrgcase `echo -n x` in #(((((
1151789d09728Smrg-n*)
1151848af84faSmrg  case `echo 'xy\c'` in
1151989d09728Smrg  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
1152048af84faSmrg  xy)  ECHO_C='\c';;
1152148af84faSmrg  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
1152248af84faSmrg       ECHO_T='	';;
1152389d09728Smrg  esac;;
1152489d09728Smrg*)
1152589d09728Smrg  ECHO_N='-n';;
1152666fe65f6Smrgesac
1152766fe65f6Smrg
11528bc77032bSmrg# For backward compatibility with old third-party macros, we provide
11529bc77032bSmrg# the shell variables $as_echo and $as_echo_n.  New code should use
11530bc77032bSmrg# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11531bc77032bSmrgas_echo='printf %s\n'
11532bc77032bSmrgas_echo_n='printf %s'
11533bc77032bSmrg
1153489d09728Smrgrm -f conf$$ conf$$.exe conf$$.file
1153589d09728Smrgif test -d conf$$.dir; then
1153689d09728Smrg  rm -f conf$$.dir/conf$$.file
1153766fe65f6Smrgelse
1153889d09728Smrg  rm -f conf$$.dir
1153989d09728Smrg  mkdir conf$$.dir 2>/dev/null
1154066fe65f6Smrgfi
1154189d09728Smrgif (echo >conf$$.file) 2>/dev/null; then
1154289d09728Smrg  if ln -s conf$$.file conf$$ 2>/dev/null; then
1154366fe65f6Smrg    as_ln_s='ln -s'
1154489d09728Smrg    # ... but there are two gotchas:
1154589d09728Smrg    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1154689d09728Smrg    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11547c6a6acfbSmrg    # In both cases, we have to default to `cp -pR'.
1154889d09728Smrg    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11549c6a6acfbSmrg      as_ln_s='cp -pR'
1155089d09728Smrg  elif ln conf$$.file conf$$ 2>/dev/null; then
1155189d09728Smrg    as_ln_s=ln
1155289d09728Smrg  else
11553c6a6acfbSmrg    as_ln_s='cp -pR'
1155466fe65f6Smrg  fi
1155566fe65f6Smrgelse
11556c6a6acfbSmrg  as_ln_s='cp -pR'
1155766fe65f6Smrgfi
1155889d09728Smrgrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1155989d09728Smrgrmdir conf$$.dir 2>/dev/null
1156089d09728Smrg
1156148af84faSmrg
1156248af84faSmrg# as_fn_mkdir_p
1156348af84faSmrg# -------------
1156448af84faSmrg# Create "$as_dir" as a directory, including parents if necessary.
1156548af84faSmrgas_fn_mkdir_p ()
1156648af84faSmrg{
1156748af84faSmrg
1156848af84faSmrg  case $as_dir in #(
1156948af84faSmrg  -*) as_dir=./$as_dir;;
1157048af84faSmrg  esac
1157148af84faSmrg  test -d "$as_dir" || eval $as_mkdir_p || {
1157248af84faSmrg    as_dirs=
1157348af84faSmrg    while :; do
1157448af84faSmrg      case $as_dir in #(
11575bc77032bSmrg      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1157648af84faSmrg      *) as_qdir=$as_dir;;
1157748af84faSmrg      esac
1157848af84faSmrg      as_dirs="'$as_qdir' $as_dirs"
1157948af84faSmrg      as_dir=`$as_dirname -- "$as_dir" ||
1158048af84faSmrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158148af84faSmrg	 X"$as_dir" : 'X\(//\)[^/]' \| \
1158248af84faSmrg	 X"$as_dir" : 'X\(//\)$' \| \
1158348af84faSmrg	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11584bc77032bSmrgprintf "%s\n" X"$as_dir" |
1158548af84faSmrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1158648af84faSmrg	    s//\1/
1158748af84faSmrg	    q
1158848af84faSmrg	  }
1158948af84faSmrg	  /^X\(\/\/\)[^/].*/{
1159048af84faSmrg	    s//\1/
1159148af84faSmrg	    q
1159248af84faSmrg	  }
1159348af84faSmrg	  /^X\(\/\/\)$/{
1159448af84faSmrg	    s//\1/
1159548af84faSmrg	    q
1159648af84faSmrg	  }
1159748af84faSmrg	  /^X\(\/\).*/{
1159848af84faSmrg	    s//\1/
1159948af84faSmrg	    q
1160048af84faSmrg	  }
1160148af84faSmrg	  s/.*/./; q'`
1160248af84faSmrg      test -d "$as_dir" && break
1160348af84faSmrg    done
1160448af84faSmrg    test -z "$as_dirs" || eval "mkdir $as_dirs"
1160548af84faSmrg  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1160648af84faSmrg
1160748af84faSmrg
1160848af84faSmrg} # as_fn_mkdir_p
1160966fe65f6Smrgif mkdir -p . 2>/dev/null; then
1161048af84faSmrg  as_mkdir_p='mkdir -p "$as_dir"'
1161166fe65f6Smrgelse
1161266fe65f6Smrg  test -d ./-p && rmdir ./-p
1161366fe65f6Smrg  as_mkdir_p=false
1161466fe65f6Smrgfi
1161566fe65f6Smrg
11616c6a6acfbSmrg
11617c6a6acfbSmrg# as_fn_executable_p FILE
11618c6a6acfbSmrg# -----------------------
11619c6a6acfbSmrg# Test if FILE is an executable regular file.
11620c6a6acfbSmrgas_fn_executable_p ()
11621c6a6acfbSmrg{
11622c6a6acfbSmrg  test -f "$1" && test -x "$1"
11623c6a6acfbSmrg} # as_fn_executable_p
11624c6a6acfbSmrgas_test_x='test -x'
11625c6a6acfbSmrgas_executable_p=as_fn_executable_p
1162666fe65f6Smrg
1162766fe65f6Smrg# Sed expression to map a string onto a valid CPP name.
1162866fe65f6Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1162966fe65f6Smrg
1163066fe65f6Smrg# Sed expression to map a string onto a valid variable name.
1163166fe65f6Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1163266fe65f6Smrg
1163366fe65f6Smrg
1163466fe65f6Smrgexec 6>&1
1163548af84faSmrg## ----------------------------------- ##
1163648af84faSmrg## Main body of $CONFIG_STATUS script. ##
1163748af84faSmrg## ----------------------------------- ##
1163848af84faSmrg_ASEOF
1163948af84faSmrgtest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1164089d09728Smrg
1164148af84faSmrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1164248af84faSmrg# Save the log message, to keep $0 and so on meaningful, and to
1164366fe65f6Smrg# report actual input values of CONFIG_FILES etc. instead of their
1164489d09728Smrg# values after options handling.
1164589d09728Smrgac_log="
1164622281038SmrgThis file was extended by font-util $as_me 1.4.1, which was
11647bc77032bSmrggenerated by GNU Autoconf 2.71.  Invocation command line was
1164866fe65f6Smrg
1164966fe65f6Smrg  CONFIG_FILES    = $CONFIG_FILES
1165066fe65f6Smrg  CONFIG_HEADERS  = $CONFIG_HEADERS
1165166fe65f6Smrg  CONFIG_LINKS    = $CONFIG_LINKS
1165266fe65f6Smrg  CONFIG_COMMANDS = $CONFIG_COMMANDS
1165366fe65f6Smrg  $ $0 $@
1165466fe65f6Smrg
1165589d09728Smrgon `(hostname || uname -n) 2>/dev/null | sed 1q`
1165689d09728Smrg"
1165789d09728Smrg
1165866fe65f6Smrg_ACEOF
1165966fe65f6Smrg
1166089d09728Smrgcase $ac_config_files in *"
1166189d09728Smrg"*) set x $ac_config_files; shift; ac_config_files=$*;;
1166289d09728Smrgesac
1166366fe65f6Smrg
1166489d09728Smrgcase $ac_config_headers in *"
1166589d09728Smrg"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
1166689d09728Smrgesac
1166766fe65f6Smrg
1166866fe65f6Smrg
1166989d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1167089d09728Smrg# Files that config.status was made for.
1167189d09728Smrgconfig_files="$ac_config_files"
1167289d09728Smrgconfig_headers="$ac_config_headers"
1167389d09728Smrgconfig_commands="$ac_config_commands"
1167466fe65f6Smrg
1167589d09728Smrg_ACEOF
1167666fe65f6Smrg
1167789d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1167866fe65f6Smrgac_cs_usage="\
1167948af84faSmrg\`$as_me' instantiates files and other configuration actions
1168048af84faSmrgfrom templates according to the current configuration.  Unless the files
1168148af84faSmrgand actions are specified as TAGs, all are instantiated by default.
1168266fe65f6Smrg
1168348af84faSmrgUsage: $0 [OPTION]... [TAG]...
1168466fe65f6Smrg
1168566fe65f6Smrg  -h, --help       print this help, then exit
1168689d09728Smrg  -V, --version    print version number and configuration settings, then exit
1168748af84faSmrg      --config     print configuration, then exit
1168889d09728Smrg  -q, --quiet, --silent
1168989d09728Smrg                   do not print progress messages
1169066fe65f6Smrg  -d, --debug      don't remove temporary files
1169166fe65f6Smrg      --recheck    update $as_me by reconfiguring in the same conditions
1169289d09728Smrg      --file=FILE[:TEMPLATE]
1169389d09728Smrg                   instantiate the configuration file FILE
1169489d09728Smrg      --header=FILE[:TEMPLATE]
1169589d09728Smrg                   instantiate the configuration header FILE
1169666fe65f6Smrg
1169766fe65f6SmrgConfiguration files:
1169866fe65f6Smrg$config_files
1169966fe65f6Smrg
1170066fe65f6SmrgConfiguration headers:
1170166fe65f6Smrg$config_headers
1170266fe65f6Smrg
1170366fe65f6SmrgConfiguration commands:
1170466fe65f6Smrg$config_commands
1170566fe65f6Smrg
11706c12babebSmrgReport bugs to <https://gitlab.freedesktop.org/xorg/font/util/-/issues>."
1170766fe65f6Smrg
1170889d09728Smrg_ACEOF
11709bc77032bSmrgac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11710bc77032bSmrgac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1171189d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712bc77032bSmrgac_cs_config='$ac_cs_config_escaped'
1171366fe65f6Smrgac_cs_version="\\
1171422281038Smrgfont-util config.status 1.4.1
11715bc77032bSmrgconfigured by $0, generated by GNU Autoconf 2.71,
1171648af84faSmrg  with options \\"\$ac_cs_config\\"
1171766fe65f6Smrg
11718bc77032bSmrgCopyright (C) 2021 Free Software Foundation, Inc.
1171966fe65f6SmrgThis config.status script is free software; the Free Software Foundation
1172066fe65f6Smrggives unlimited permission to copy, distribute and modify it."
1172189d09728Smrg
1172289d09728Smrgac_pwd='$ac_pwd'
1172389d09728Smrgsrcdir='$srcdir'
1172489d09728SmrgINSTALL='$INSTALL'
1172589d09728SmrgMKDIR_P='$MKDIR_P'
1172689d09728SmrgAWK='$AWK'
1172789d09728Smrgtest -n "\$AWK" || AWK=awk
1172866fe65f6Smrg_ACEOF
1172966fe65f6Smrg
1173089d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1173189d09728Smrg# The default lists apply if the user does not specify any file.
1173266fe65f6Smrgac_need_defaults=:
1173366fe65f6Smrgwhile test $# != 0
1173466fe65f6Smrgdo
1173566fe65f6Smrg  case $1 in
1173648af84faSmrg  --*=?*)
1173789d09728Smrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1173889d09728Smrg    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1173966fe65f6Smrg    ac_shift=:
1174066fe65f6Smrg    ;;
1174148af84faSmrg  --*=)
1174248af84faSmrg    ac_option=`expr "X$1" : 'X\([^=]*\)='`
1174348af84faSmrg    ac_optarg=
1174448af84faSmrg    ac_shift=:
1174548af84faSmrg    ;;
1174689d09728Smrg  *)
1174766fe65f6Smrg    ac_option=$1
1174866fe65f6Smrg    ac_optarg=$2
1174966fe65f6Smrg    ac_shift=shift
1175066fe65f6Smrg    ;;
1175166fe65f6Smrg  esac
1175266fe65f6Smrg
1175366fe65f6Smrg  case $ac_option in
1175466fe65f6Smrg  # Handling of the options.
1175566fe65f6Smrg  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1175666fe65f6Smrg    ac_cs_recheck=: ;;
1175789d09728Smrg  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11758bc77032bSmrg    printf "%s\n" "$ac_cs_version"; exit ;;
1175948af84faSmrg  --config | --confi | --conf | --con | --co | --c )
11760bc77032bSmrg    printf "%s\n" "$ac_cs_config"; exit ;;
1176189d09728Smrg  --debug | --debu | --deb | --de | --d | -d )
1176266fe65f6Smrg    debug=: ;;
1176366fe65f6Smrg  --file | --fil | --fi | --f )
1176466fe65f6Smrg    $ac_shift
1176589d09728Smrg    case $ac_optarg in
11766bc77032bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176748af84faSmrg    '') as_fn_error $? "missing file argument" ;;
1176889d09728Smrg    esac
1176948af84faSmrg    as_fn_append CONFIG_FILES " '$ac_optarg'"
1177066fe65f6Smrg    ac_need_defaults=false;;
1177166fe65f6Smrg  --header | --heade | --head | --hea )
1177266fe65f6Smrg    $ac_shift
1177389d09728Smrg    case $ac_optarg in
11774bc77032bSmrg    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1177589d09728Smrg    esac
1177648af84faSmrg    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1177766fe65f6Smrg    ac_need_defaults=false;;
1177889d09728Smrg  --he | --h)
1177989d09728Smrg    # Conflict between --help and --header
1178048af84faSmrg    as_fn_error $? "ambiguous option: \`$1'
1178148af84faSmrgTry \`$0 --help' for more information.";;
1178289d09728Smrg  --help | --hel | -h )
11783bc77032bSmrg    printf "%s\n" "$ac_cs_usage"; exit ;;
1178466fe65f6Smrg  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178566fe65f6Smrg  | -silent | --silent | --silen | --sile | --sil | --si | --s)
1178666fe65f6Smrg    ac_cs_silent=: ;;
1178766fe65f6Smrg
1178866fe65f6Smrg  # This is an error.
1178948af84faSmrg  -*) as_fn_error $? "unrecognized option: \`$1'
1179048af84faSmrgTry \`$0 --help' for more information." ;;
1179166fe65f6Smrg
1179248af84faSmrg  *) as_fn_append ac_config_targets " $1"
1179389d09728Smrg     ac_need_defaults=false ;;
1179466fe65f6Smrg
1179566fe65f6Smrg  esac
1179666fe65f6Smrg  shift
1179766fe65f6Smrgdone
1179866fe65f6Smrg
1179966fe65f6Smrgac_configure_extra_args=
1180066fe65f6Smrg
1180166fe65f6Smrgif $ac_cs_silent; then
1180266fe65f6Smrg  exec 6>/dev/null
1180366fe65f6Smrg  ac_configure_extra_args="$ac_configure_extra_args --silent"
1180466fe65f6Smrgfi
1180566fe65f6Smrg
1180666fe65f6Smrg_ACEOF
1180789d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1180866fe65f6Smrgif \$ac_cs_recheck; then
11809c6a6acfbSmrg  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1181089d09728Smrg  shift
11811bc77032bSmrg  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1181289d09728Smrg  CONFIG_SHELL='$SHELL'
1181389d09728Smrg  export CONFIG_SHELL
1181489d09728Smrg  exec "\$@"
1181566fe65f6Smrgfi
1181666fe65f6Smrg
1181766fe65f6Smrg_ACEOF
1181889d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1181989d09728Smrgexec 5>>config.log
1182089d09728Smrg{
1182189d09728Smrg  echo
1182289d09728Smrg  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1182389d09728Smrg## Running $as_me. ##
1182489d09728Smrg_ASBOX
11825bc77032bSmrg  printf "%s\n" "$ac_log"
1182689d09728Smrg} >&5
1182766fe65f6Smrg
1182889d09728Smrg_ACEOF
1182989d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1183066fe65f6Smrg#
1183189d09728Smrg# INIT-COMMANDS
1183266fe65f6Smrg#
11833bc77032bSmrgAMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1183466fe65f6Smrg
1183566fe65f6Smrg_ACEOF
1183666fe65f6Smrg
1183789d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1183866fe65f6Smrg
1183989d09728Smrg# Handling of arguments.
1184066fe65f6Smrgfor ac_config_target in $ac_config_targets
1184166fe65f6Smrgdo
1184289d09728Smrg  case $ac_config_target in
1184389d09728Smrg    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1184489d09728Smrg    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1184589d09728Smrg    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1184648af84faSmrg    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11847a9274bcdSmrg    "fontutil.m4") CONFIG_FILES="$CONFIG_FILES fontutil.m4" ;;
1184889d09728Smrg    "fontutil.pc") CONFIG_FILES="$CONFIG_FILES fontutil.pc" ;;
1184989d09728Smrg
1185048af84faSmrg  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1185166fe65f6Smrg  esac
1185266fe65f6Smrgdone
1185366fe65f6Smrg
1185489d09728Smrg
1185566fe65f6Smrg# If the user did not use the arguments to specify the items to instantiate,
1185666fe65f6Smrg# then the envvar interface is used.  Set only those that are not.
1185766fe65f6Smrg# We use the long form for the default assignment because of an extremely
1185866fe65f6Smrg# bizarre bug on SunOS 4.1.3.
1185966fe65f6Smrgif $ac_need_defaults; then
11860bc77032bSmrg  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11861bc77032bSmrg  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11862bc77032bSmrg  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1186366fe65f6Smrgfi
1186466fe65f6Smrg
1186566fe65f6Smrg# Have a temporary directory for convenience.  Make it in the build tree
1186689d09728Smrg# simply because there is no reason against having it here, and in addition,
1186766fe65f6Smrg# creating and moving files from /tmp can sometimes cause problems.
1186889d09728Smrg# Hook for its removal unless debugging.
1186989d09728Smrg# Note that there is a small window in which the directory will not be cleaned:
1187089d09728Smrg# after its creation but before its name has been assigned to `$tmp'.
1187166fe65f6Smrg$debug ||
1187266fe65f6Smrg{
1187348af84faSmrg  tmp= ac_tmp=
1187489d09728Smrg  trap 'exit_status=$?
1187548af84faSmrg  : "${ac_tmp:=$tmp}"
1187648af84faSmrg  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1187789d09728Smrg' 0
1187848af84faSmrg  trap 'as_fn_exit 1' 1 2 13 15
1187966fe65f6Smrg}
1188066fe65f6Smrg# Create a (secure) tmp directory for tmp files.
1188166fe65f6Smrg
1188266fe65f6Smrg{
1188389d09728Smrg  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1188448af84faSmrg  test -d "$tmp"
1188566fe65f6Smrg}  ||
1188666fe65f6Smrg{
1188789d09728Smrg  tmp=./conf$$-$RANDOM
1188889d09728Smrg  (umask 077 && mkdir "$tmp")
1188948af84faSmrg} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1189048af84faSmrgac_tmp=$tmp
1189189d09728Smrg
1189289d09728Smrg# Set up the scripts for CONFIG_FILES section.
1189389d09728Smrg# No need to generate them if there are no CONFIG_FILES.
1189489d09728Smrg# This happens for instance with `./config.status config.h'.
1189589d09728Smrgif test -n "$CONFIG_FILES"; then
1189689d09728Smrg
1189789d09728Smrg
1189848af84faSmrgac_cr=`echo X | tr X '\015'`
1189948af84faSmrg# On cygwin, bash can eat \r inside `` if the user requested igncr.
1190048af84faSmrg# But we know of no other shell where ac_cr would be empty at this
1190148af84faSmrg# point, so we can use a bashism as a fallback.
1190248af84faSmrgif test "x$ac_cr" = x; then
1190348af84faSmrg  eval ac_cr=\$\'\\r\'
1190448af84faSmrgfi
1190589d09728Smrgac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
1190689d09728Smrgif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11907a9274bcdSmrg  ac_cs_awk_cr='\\r'
1190889d09728Smrgelse
1190989d09728Smrg  ac_cs_awk_cr=$ac_cr
1191089d09728Smrgfi
1191189d09728Smrg
1191248af84faSmrgecho 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1191389d09728Smrg_ACEOF
1191489d09728Smrg
1191589d09728Smrg
1191666fe65f6Smrg{
1191789d09728Smrg  echo "cat >conf$$subs.awk <<_ACEOF" &&
1191889d09728Smrg  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
1191989d09728Smrg  echo "_ACEOF"
1192089d09728Smrg} >conf$$subs.sh ||
1192148af84faSmrg  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1192248af84faSmrgac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1192389d09728Smrgac_delim='%!_!# '
1192489d09728Smrgfor ac_last_try in false false false false false :; do
1192589d09728Smrg  . ./conf$$subs.sh ||
1192648af84faSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1192789d09728Smrg
1192889d09728Smrg  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
1192989d09728Smrg  if test $ac_delim_n = $ac_delim_num; then
1193089d09728Smrg    break
1193189d09728Smrg  elif $ac_last_try; then
1193248af84faSmrg    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1193389d09728Smrg  else
1193489d09728Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1193589d09728Smrg  fi
1193689d09728Smrgdone
1193789d09728Smrgrm -f conf$$subs.sh
1193866fe65f6Smrg
1193989d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1194048af84faSmrgcat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1194166fe65f6Smrg_ACEOF
1194289d09728Smrgsed -n '
1194389d09728Smrgh
1194489d09728Smrgs/^/S["/; s/!.*/"]=/
1194589d09728Smrgp
1194689d09728Smrgg
1194789d09728Smrgs/^[^!]*!//
1194889d09728Smrg:repl
1194989d09728Smrgt repl
1195089d09728Smrgs/'"$ac_delim"'$//
1195189d09728Smrgt delim
1195289d09728Smrg:nl
1195389d09728Smrgh
1195448af84faSmrgs/\(.\{148\}\)..*/\1/
1195589d09728Smrgt more1
1195689d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
1195789d09728Smrgp
1195889d09728Smrgn
1195989d09728Smrgb repl
1196089d09728Smrg:more1
1196189d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1196289d09728Smrgp
1196389d09728Smrgg
1196489d09728Smrgs/.\{148\}//
1196589d09728Smrgt nl
1196689d09728Smrg:delim
1196789d09728Smrgh
1196848af84faSmrgs/\(.\{148\}\)..*/\1/
1196989d09728Smrgt more2
1197089d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/
1197189d09728Smrgp
1197289d09728Smrgb
1197389d09728Smrg:more2
1197489d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"\\/
1197589d09728Smrgp
1197689d09728Smrgg
1197789d09728Smrgs/.\{148\}//
1197889d09728Smrgt delim
1197989d09728Smrg' <conf$$subs.awk | sed '
1198089d09728Smrg/^[^""]/{
1198189d09728Smrg  N
1198289d09728Smrg  s/\n//
1198389d09728Smrg}
1198489d09728Smrg' >>$CONFIG_STATUS || ac_write_fail=1
1198589d09728Smrgrm -f conf$$subs.awk
1198689d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1198789d09728Smrg_ACAWK
1198848af84faSmrgcat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1198989d09728Smrg  for (key in S) S_is_set[key] = 1
1199089d09728Smrg  FS = ""
1199166fe65f6Smrg
1199289d09728Smrg}
1199389d09728Smrg{
1199489d09728Smrg  line = $ 0
1199589d09728Smrg  nfields = split(line, field, "@")
1199689d09728Smrg  substed = 0
1199789d09728Smrg  len = length(field[1])
1199889d09728Smrg  for (i = 2; i < nfields; i++) {
1199989d09728Smrg    key = field[i]
1200089d09728Smrg    keylen = length(key)
1200189d09728Smrg    if (S_is_set[key]) {
1200289d09728Smrg      value = S[key]
1200389d09728Smrg      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
1200489d09728Smrg      len += length(value) + length(field[++i])
1200589d09728Smrg      substed = 1
1200689d09728Smrg    } else
1200789d09728Smrg      len += 1 + keylen
1200889d09728Smrg  }
1200989d09728Smrg
1201089d09728Smrg  print line
1201189d09728Smrg}
1201266fe65f6Smrg
1201389d09728Smrg_ACAWK
1201489d09728Smrg_ACEOF
1201589d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1201689d09728Smrgif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
1201789d09728Smrg  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1201889d09728Smrgelse
1201989d09728Smrg  cat
1202048af84faSmrgfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1202148af84faSmrg  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1202289d09728Smrg_ACEOF
1202389d09728Smrg
1202448af84faSmrg# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
1202548af84faSmrg# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1202689d09728Smrg# trailing colons and then remove the whole line if VPATH becomes empty
1202789d09728Smrg# (actually we leave an empty line to preserve line numbers).
1202889d09728Smrgif test "x$srcdir" = x.; then
1202948af84faSmrg  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
1203048af84faSmrgh
1203148af84faSmrgs///
1203248af84faSmrgs/^/:/
1203348af84faSmrgs/[	 ]*$/:/
1203448af84faSmrgs/:\$(srcdir):/:/g
1203548af84faSmrgs/:\${srcdir}:/:/g
1203648af84faSmrgs/:@srcdir@:/:/g
1203748af84faSmrgs/^:*//
1203889d09728Smrgs/:*$//
1203948af84faSmrgx
1204048af84faSmrgs/\(=[	 ]*\).*/\1/
1204148af84faSmrgG
1204248af84faSmrgs/\n//
1204389d09728Smrgs/^[^=]*=[	 ]*$//
1204489d09728Smrg}'
1204589d09728Smrgfi
1204666fe65f6Smrg
1204789d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1204889d09728Smrgfi # test -n "$CONFIG_FILES"
1204966fe65f6Smrg
1205089d09728Smrg# Set up the scripts for CONFIG_HEADERS section.
1205189d09728Smrg# No need to generate them if there are no CONFIG_HEADERS.
1205289d09728Smrg# This happens for instance with `./config.status Makefile'.
1205389d09728Smrgif test -n "$CONFIG_HEADERS"; then
1205448af84faSmrgcat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1205589d09728SmrgBEGIN {
1205666fe65f6Smrg_ACEOF
1205766fe65f6Smrg
1205889d09728Smrg# Transform confdefs.h into an awk script `defines.awk', embedded as
1205989d09728Smrg# here-document in config.status, that substitutes the proper values into
1206089d09728Smrg# config.h.in to produce config.h.
1206189d09728Smrg
1206289d09728Smrg# Create a delimiter string that does not exist in confdefs.h, to ease
1206389d09728Smrg# handling of long lines.
1206489d09728Smrgac_delim='%!_!# '
1206589d09728Smrgfor ac_last_try in false false :; do
1206648af84faSmrg  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
1206748af84faSmrg  if test -z "$ac_tt"; then
1206889d09728Smrg    break
1206989d09728Smrg  elif $ac_last_try; then
1207048af84faSmrg    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1207189d09728Smrg  else
1207289d09728Smrg    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1207366fe65f6Smrg  fi
1207489d09728Smrgdone
1207566fe65f6Smrg
1207689d09728Smrg# For the awk script, D is an array of macro values keyed by name,
1207789d09728Smrg# likewise P contains macro parameters if any.  Preserve backslash
1207889d09728Smrg# newline sequences.
1207989d09728Smrg
1208089d09728Smrgac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
1208189d09728Smrgsed -n '
1208289d09728Smrgs/.\{148\}/&'"$ac_delim"'/g
1208389d09728Smrgt rset
1208489d09728Smrg:rset
1208589d09728Smrgs/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
1208689d09728Smrgt def
1208789d09728Smrgd
1208889d09728Smrg:def
1208989d09728Smrgs/\\$//
1209089d09728Smrgt bsnl
1209189d09728Smrgs/["\\]/\\&/g
1209289d09728Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1209389d09728SmrgD["\1"]=" \3"/p
1209489d09728Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
1209589d09728Smrgd
1209689d09728Smrg:bsnl
1209789d09728Smrgs/["\\]/\\&/g
1209889d09728Smrgs/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
1209989d09728SmrgD["\1"]=" \3\\\\\\n"\\/p
1210089d09728Smrgt cont
1210189d09728Smrgs/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
1210289d09728Smrgt cont
1210389d09728Smrgd
1210489d09728Smrg:cont
1210589d09728Smrgn
1210689d09728Smrgs/.\{148\}/&'"$ac_delim"'/g
1210789d09728Smrgt clear
1210889d09728Smrg:clear
1210989d09728Smrgs/\\$//
1211089d09728Smrgt bsnlc
1211189d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/"/p
1211289d09728Smrgd
1211389d09728Smrg:bsnlc
1211489d09728Smrgs/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
1211589d09728Smrgb cont
1211689d09728Smrg' <confdefs.h | sed '
1211789d09728Smrgs/'"$ac_delim"'/"\\\
1211889d09728Smrg"/g' >>$CONFIG_STATUS || ac_write_fail=1
1211989d09728Smrg
1212089d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1212189d09728Smrg  for (key in D) D_is_set[key] = 1
1212289d09728Smrg  FS = ""
1212389d09728Smrg}
1212489d09728Smrg/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
1212589d09728Smrg  line = \$ 0
1212689d09728Smrg  split(line, arg, " ")
1212789d09728Smrg  if (arg[1] == "#") {
1212889d09728Smrg    defundef = arg[2]
1212989d09728Smrg    mac1 = arg[3]
1213089d09728Smrg  } else {
1213189d09728Smrg    defundef = substr(arg[1], 2)
1213289d09728Smrg    mac1 = arg[2]
1213389d09728Smrg  }
1213489d09728Smrg  split(mac1, mac2, "(") #)
1213589d09728Smrg  macro = mac2[1]
1213689d09728Smrg  prefix = substr(line, 1, index(line, defundef) - 1)
1213789d09728Smrg  if (D_is_set[macro]) {
1213889d09728Smrg    # Preserve the white space surrounding the "#".
1213989d09728Smrg    print prefix "define", macro P[macro] D[macro]
1214089d09728Smrg    next
1214189d09728Smrg  } else {
1214289d09728Smrg    # Replace #undef with comments.  This is necessary, for example,
1214389d09728Smrg    # in the case of _POSIX_SOURCE, which is predefined and required
1214489d09728Smrg    # on some systems where configure will not decide to define it.
1214589d09728Smrg    if (defundef == "undef") {
1214689d09728Smrg      print "/*", prefix defundef, macro, "*/"
1214789d09728Smrg      next
1214889d09728Smrg    }
1214989d09728Smrg  }
1215089d09728Smrg}
1215189d09728Smrg{ print }
1215289d09728Smrg_ACAWK
1215366fe65f6Smrg_ACEOF
1215489d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1215548af84faSmrg  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1215689d09728Smrgfi # test -n "$CONFIG_HEADERS"
1215789d09728Smrg
1215889d09728Smrg
1215989d09728Smrgeval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
1216089d09728Smrgshift
1216189d09728Smrgfor ac_tag
1216289d09728Smrgdo
1216389d09728Smrg  case $ac_tag in
1216489d09728Smrg  :[FHLC]) ac_mode=$ac_tag; continue;;
1216589d09728Smrg  esac
1216689d09728Smrg  case $ac_mode$ac_tag in
1216789d09728Smrg  :[FHL]*:*);;
1216848af84faSmrg  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1216989d09728Smrg  :[FH]-) ac_tag=-:-;;
1217089d09728Smrg  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
1217189d09728Smrg  esac
1217289d09728Smrg  ac_save_IFS=$IFS
1217389d09728Smrg  IFS=:
1217489d09728Smrg  set x $ac_tag
1217589d09728Smrg  IFS=$ac_save_IFS
1217689d09728Smrg  shift
1217789d09728Smrg  ac_file=$1
1217889d09728Smrg  shift
1217989d09728Smrg
1218089d09728Smrg  case $ac_mode in
1218189d09728Smrg  :L) ac_source=$1;;
1218289d09728Smrg  :[FH])
1218389d09728Smrg    ac_file_inputs=
1218489d09728Smrg    for ac_f
1218589d09728Smrg    do
1218689d09728Smrg      case $ac_f in
1218748af84faSmrg      -) ac_f="$ac_tmp/stdin";;
1218889d09728Smrg      *) # Look for the file first in the build tree, then in the source tree
1218989d09728Smrg	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
1219089d09728Smrg	 # because $ac_f cannot contain `:'.
1219189d09728Smrg	 test -f "$ac_f" ||
1219289d09728Smrg	   case $ac_f in
1219389d09728Smrg	   [\\/$]*) false;;
1219489d09728Smrg	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
1219589d09728Smrg	   esac ||
1219648af84faSmrg	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1219789d09728Smrg      esac
12198bc77032bSmrg      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1219948af84faSmrg      as_fn_append ac_file_inputs " '$ac_f'"
1220089d09728Smrg    done
1220189d09728Smrg
1220289d09728Smrg    # Let's still pretend it is `configure' which instantiates (i.e., don't
1220389d09728Smrg    # use $as_me), people would be surprised to read:
1220489d09728Smrg    #    /* config.h.  Generated by config.status.  */
1220589d09728Smrg    configure_input='Generated from '`
12206bc77032bSmrg	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1220789d09728Smrg	`' by configure.'
1220889d09728Smrg    if test x"$ac_file" != x-; then
1220989d09728Smrg      configure_input="$ac_file.  $configure_input"
12210bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12211bc77032bSmrgprintf "%s\n" "$as_me: creating $ac_file" >&6;}
1221289d09728Smrg    fi
1221389d09728Smrg    # Neutralize special characters interpreted by sed in replacement strings.
1221489d09728Smrg    case $configure_input in #(
1221589d09728Smrg    *\&* | *\|* | *\\* )
12216bc77032bSmrg       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1221789d09728Smrg       sed 's/[\\\\&|]/\\\\&/g'`;; #(
1221889d09728Smrg    *) ac_sed_conf_input=$configure_input;;
1221989d09728Smrg    esac
1222089d09728Smrg
1222189d09728Smrg    case $ac_tag in
1222248af84faSmrg    *:-:* | *:-) cat >"$ac_tmp/stdin" \
1222348af84faSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1222489d09728Smrg    esac
1222589d09728Smrg    ;;
1222666fe65f6Smrg  esac
1222766fe65f6Smrg
1222889d09728Smrg  ac_dir=`$as_dirname -- "$ac_file" ||
1222966fe65f6Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223066fe65f6Smrg	 X"$ac_file" : 'X\(//\)[^/]' \| \
1223166fe65f6Smrg	 X"$ac_file" : 'X\(//\)$' \| \
1223289d09728Smrg	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12233bc77032bSmrgprintf "%s\n" X"$ac_file" |
1223489d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223589d09728Smrg	    s//\1/
1223689d09728Smrg	    q
1223789d09728Smrg	  }
1223889d09728Smrg	  /^X\(\/\/\)[^/].*/{
1223989d09728Smrg	    s//\1/
1224089d09728Smrg	    q
1224189d09728Smrg	  }
1224289d09728Smrg	  /^X\(\/\/\)$/{
1224389d09728Smrg	    s//\1/
1224489d09728Smrg	    q
1224589d09728Smrg	  }
1224689d09728Smrg	  /^X\(\/\).*/{
1224789d09728Smrg	    s//\1/
1224889d09728Smrg	    q
1224989d09728Smrg	  }
1225089d09728Smrg	  s/.*/./; q'`
1225148af84faSmrg  as_dir="$ac_dir"; as_fn_mkdir_p
1225266fe65f6Smrg  ac_builddir=.
1225366fe65f6Smrg
1225489d09728Smrgcase "$ac_dir" in
1225589d09728Smrg.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1225689d09728Smrg*)
12257bc77032bSmrg  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1225889d09728Smrg  # A ".." for each directory in $ac_dir_suffix.
12259bc77032bSmrg  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1226089d09728Smrg  case $ac_top_builddir_sub in
1226189d09728Smrg  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1226289d09728Smrg  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1226389d09728Smrg  esac ;;
1226489d09728Smrgesac
1226589d09728Smrgac_abs_top_builddir=$ac_pwd
1226689d09728Smrgac_abs_builddir=$ac_pwd$ac_dir_suffix
1226789d09728Smrg# for backward compatibility:
1226889d09728Smrgac_top_builddir=$ac_top_build_prefix
1226966fe65f6Smrg
1227066fe65f6Smrgcase $srcdir in
1227189d09728Smrg  .)  # We are building in place.
1227266fe65f6Smrg    ac_srcdir=.
1227389d09728Smrg    ac_top_srcdir=$ac_top_builddir_sub
1227489d09728Smrg    ac_abs_top_srcdir=$ac_pwd ;;
1227589d09728Smrg  [\\/]* | ?:[\\/]* )  # Absolute name.
1227666fe65f6Smrg    ac_srcdir=$srcdir$ac_dir_suffix;
1227789d09728Smrg    ac_top_srcdir=$srcdir
1227889d09728Smrg    ac_abs_top_srcdir=$srcdir ;;
1227989d09728Smrg  *) # Relative name.
1228089d09728Smrg    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1228189d09728Smrg    ac_top_srcdir=$ac_top_build_prefix$srcdir
1228289d09728Smrg    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1228366fe65f6Smrgesac
1228489d09728Smrgac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1228566fe65f6Smrg
1228666fe65f6Smrg
1228789d09728Smrg  case $ac_mode in
1228889d09728Smrg  :F)
1228989d09728Smrg  #
1229089d09728Smrg  # CONFIG_FILE
1229189d09728Smrg  #
1229266fe65f6Smrg
1229366fe65f6Smrg  case $INSTALL in
1229466fe65f6Smrg  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1229589d09728Smrg  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1229689d09728Smrg  esac
1229789d09728Smrg  ac_MKDIR_P=$MKDIR_P
1229889d09728Smrg  case $MKDIR_P in
1229989d09728Smrg  [\\/$]* | ?:[\\/]* ) ;;
1230089d09728Smrg  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
1230166fe65f6Smrg  esac
1230289d09728Smrg_ACEOF
1230366fe65f6Smrg
1230489d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1230589d09728Smrg# If the template does not know about datarootdir, expand it.
1230689d09728Smrg# FIXME: This hack should be removed a few years after 2.60.
1230789d09728Smrgac_datarootdir_hack=; ac_datarootdir_seen=
1230889d09728Smrgac_sed_dataroot='
1230989d09728Smrg/datarootdir/ {
1231089d09728Smrg  p
1231189d09728Smrg  q
1231289d09728Smrg}
1231389d09728Smrg/@datadir@/p
1231489d09728Smrg/@docdir@/p
1231589d09728Smrg/@infodir@/p
1231689d09728Smrg/@localedir@/p
1231748af84faSmrg/@mandir@/p'
1231889d09728Smrgcase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1231989d09728Smrg*datarootdir*) ac_datarootdir_seen=yes;;
1232089d09728Smrg*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12321bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12322bc77032bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1232389d09728Smrg_ACEOF
1232489d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1232589d09728Smrg  ac_datarootdir_hack='
1232689d09728Smrg  s&@datadir@&$datadir&g
1232789d09728Smrg  s&@docdir@&$docdir&g
1232889d09728Smrg  s&@infodir@&$infodir&g
1232989d09728Smrg  s&@localedir@&$localedir&g
1233089d09728Smrg  s&@mandir@&$mandir&g
1233148af84faSmrg  s&\\\${datarootdir}&$datarootdir&g' ;;
1233289d09728Smrgesac
1233366fe65f6Smrg_ACEOF
1233489d09728Smrg
1233589d09728Smrg# Neutralize VPATH when `$srcdir' = `.'.
1233689d09728Smrg# Shell code in configure.ac might set extrasub.
1233789d09728Smrg# FIXME: do we really want to maintain this feature?
1233889d09728Smrgcat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1233989d09728Smrgac_sed_extra="$ac_vpsub
1234066fe65f6Smrg$extrasub
1234166fe65f6Smrg_ACEOF
1234289d09728Smrgcat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1234366fe65f6Smrg:t
1234466fe65f6Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1234589d09728Smrgs|@configure_input@|$ac_sed_conf_input|;t t
1234689d09728Smrgs&@top_builddir@&$ac_top_builddir_sub&;t t
1234789d09728Smrgs&@top_build_prefix@&$ac_top_build_prefix&;t t
1234889d09728Smrgs&@srcdir@&$ac_srcdir&;t t
1234989d09728Smrgs&@abs_srcdir@&$ac_abs_srcdir&;t t
1235089d09728Smrgs&@top_srcdir@&$ac_top_srcdir&;t t
1235189d09728Smrgs&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
1235289d09728Smrgs&@builddir@&$ac_builddir&;t t
1235389d09728Smrgs&@abs_builddir@&$ac_abs_builddir&;t t
1235489d09728Smrgs&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1235589d09728Smrgs&@INSTALL@&$ac_INSTALL&;t t
1235689d09728Smrgs&@MKDIR_P@&$ac_MKDIR_P&;t t
1235789d09728Smrg$ac_datarootdir_hack
1235889d09728Smrg"
1235948af84faSmrgeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
1236048af84faSmrg  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1236189d09728Smrg
1236289d09728Smrgtest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1236348af84faSmrg  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
1236448af84faSmrg  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
1236548af84faSmrg      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12366bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1236748af84faSmrgwhich seems to be undefined.  Please make sure it is defined" >&5
12368bc77032bSmrgprintf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1236948af84faSmrgwhich seems to be undefined.  Please make sure it is defined" >&2;}
1237089d09728Smrg
1237148af84faSmrg  rm -f "$ac_tmp/stdin"
1237266fe65f6Smrg  case $ac_file in
1237348af84faSmrg  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
1237448af84faSmrg  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1237589d09728Smrg  esac \
1237648af84faSmrg  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1237789d09728Smrg ;;
1237889d09728Smrg  :H)
1237989d09728Smrg  #
1238089d09728Smrg  # CONFIG_HEADER
1238189d09728Smrg  #
1238266fe65f6Smrg  if test x"$ac_file" != x-; then
1238389d09728Smrg    {
12384bc77032bSmrg      printf "%s\n" "/* $configure_input  */" >&1 \
1238548af84faSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
1238648af84faSmrg    } >"$ac_tmp/config.h" \
1238748af84faSmrg      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1238848af84faSmrg    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12389bc77032bSmrg      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12390bc77032bSmrgprintf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1239166fe65f6Smrg    else
1239289d09728Smrg      rm -f "$ac_file"
1239348af84faSmrg      mv "$ac_tmp/config.h" "$ac_file" \
1239448af84faSmrg	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
1239566fe65f6Smrg    fi
1239666fe65f6Smrg  else
12397bc77032bSmrg    printf "%s\n" "/* $configure_input  */" >&1 \
1239848af84faSmrg      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1239948af84faSmrg      || as_fn_error $? "could not create -" "$LINENO" 5
1240066fe65f6Smrg  fi
1240189d09728Smrg# Compute "$ac_file"'s index in $config_headers.
1240289d09728Smrg_am_arg="$ac_file"
1240366fe65f6Smrg_am_stamp_count=1
1240466fe65f6Smrgfor _am_header in $config_headers :; do
1240566fe65f6Smrg  case $_am_header in
1240689d09728Smrg    $_am_arg | $_am_arg:* )
1240766fe65f6Smrg      break ;;
1240866fe65f6Smrg    * )
1240966fe65f6Smrg      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1241066fe65f6Smrg  esac
1241166fe65f6Smrgdone
1241289d09728Smrgecho "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
1241389d09728Smrg$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241489d09728Smrg	 X"$_am_arg" : 'X\(//\)[^/]' \| \
1241589d09728Smrg	 X"$_am_arg" : 'X\(//\)$' \| \
1241689d09728Smrg	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12417bc77032bSmrgprintf "%s\n" X"$_am_arg" |
1241889d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241989d09728Smrg	    s//\1/
1242089d09728Smrg	    q
1242189d09728Smrg	  }
1242289d09728Smrg	  /^X\(\/\/\)[^/].*/{
1242389d09728Smrg	    s//\1/
1242489d09728Smrg	    q
1242589d09728Smrg	  }
1242689d09728Smrg	  /^X\(\/\/\)$/{
1242789d09728Smrg	    s//\1/
1242889d09728Smrg	    q
1242989d09728Smrg	  }
1243089d09728Smrg	  /^X\(\/\).*/{
1243189d09728Smrg	    s//\1/
1243289d09728Smrg	    q
1243389d09728Smrg	  }
1243489d09728Smrg	  s/.*/./; q'`/stamp-h$_am_stamp_count
1243589d09728Smrg ;;
1243666fe65f6Smrg
12437bc77032bSmrg  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12438bc77032bSmrgprintf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1243989d09728Smrg ;;
1244089d09728Smrg  esac
1244166fe65f6Smrg
1244266fe65f6Smrg
1244389d09728Smrg  case $ac_file$ac_mode in
12444a9274bcdSmrg    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12445c6a6acfbSmrg  # Older Autoconf quotes --file arguments for eval, but not when files
12446a9274bcdSmrg  # are listed without --file.  Let's play safe and only enable the eval
12447a9274bcdSmrg  # if we detect the quoting.
12448bc77032bSmrg  # TODO: see whether this extra hack can be removed once we start
12449bc77032bSmrg  # requiring Autoconf 2.70 or later.
12450bc77032bSmrg  case $CONFIG_FILES in #(
12451bc77032bSmrg  *\'*) :
12452bc77032bSmrg    eval set x "$CONFIG_FILES" ;; #(
12453bc77032bSmrg  *) :
12454bc77032bSmrg    set x $CONFIG_FILES ;; #(
12455bc77032bSmrg  *) :
12456bc77032bSmrg     ;;
12457bc77032bSmrgesac
12458a9274bcdSmrg  shift
12459bc77032bSmrg  # Used to flag and report bootstrapping failures.
12460bc77032bSmrg  am_rc=0
12461bc77032bSmrg  for am_mf
12462a9274bcdSmrg  do
12463a9274bcdSmrg    # Strip MF so we end up with the name of the file.
12464bc77032bSmrg    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12465bc77032bSmrg    # Check whether this is an Automake generated Makefile which includes
12466bc77032bSmrg    # dependency-tracking related rules and includes.
12467bc77032bSmrg    # Grep'ing the whole file directly is not great: AIX grep has a line
12468a9274bcdSmrg    # limit of 2048, but all sed's we know have understand at least 4000.
12469bc77032bSmrg    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12470bc77032bSmrg      || continue
12471bc77032bSmrg    am_dirpart=`$as_dirname -- "$am_mf" ||
12472bc77032bSmrg$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12473bc77032bSmrg	 X"$am_mf" : 'X\(//\)[^/]' \| \
12474bc77032bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12475bc77032bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12476bc77032bSmrgprintf "%s\n" X"$am_mf" |
1247789d09728Smrg    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247889d09728Smrg	    s//\1/
1247989d09728Smrg	    q
1248089d09728Smrg	  }
1248189d09728Smrg	  /^X\(\/\/\)[^/].*/{
1248289d09728Smrg	    s//\1/
1248389d09728Smrg	    q
1248489d09728Smrg	  }
1248589d09728Smrg	  /^X\(\/\/\)$/{
1248689d09728Smrg	    s//\1/
1248789d09728Smrg	    q
1248889d09728Smrg	  }
1248989d09728Smrg	  /^X\(\/\).*/{
1249089d09728Smrg	    s//\1/
1249189d09728Smrg	    q
1249289d09728Smrg	  }
1249389d09728Smrg	  s/.*/./; q'`
12494bc77032bSmrg    am_filepart=`$as_basename -- "$am_mf" ||
12495bc77032bSmrg$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12496bc77032bSmrg	 X"$am_mf" : 'X\(//\)$' \| \
12497bc77032bSmrg	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12498bc77032bSmrgprintf "%s\n" X/"$am_mf" |
12499bc77032bSmrg    sed '/^.*\/\([^/][^/]*\)\/*$/{
1250089d09728Smrg	    s//\1/
1250189d09728Smrg	    q
1250289d09728Smrg	  }
12503bc77032bSmrg	  /^X\/\(\/\/\)$/{
1250489d09728Smrg	    s//\1/
1250589d09728Smrg	    q
1250689d09728Smrg	  }
12507bc77032bSmrg	  /^X\/\(\/\).*/{
1250889d09728Smrg	    s//\1/
1250989d09728Smrg	    q
1251089d09728Smrg	  }
1251189d09728Smrg	  s/.*/./; q'`
12512bc77032bSmrg    { echo "$as_me:$LINENO: cd "$am_dirpart" \
12513bc77032bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12514bc77032bSmrg        | $MAKE -f - am--depfiles" >&5
12515bc77032bSmrg   (cd "$am_dirpart" \
12516bc77032bSmrg      && sed -e '/# am--include-marker/d' "$am_filepart" \
12517bc77032bSmrg        | $MAKE -f - am--depfiles) >&5 2>&5
12518bc77032bSmrg   ac_status=$?
12519bc77032bSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520bc77032bSmrg   (exit $ac_status); } || am_rc=$?
1252166fe65f6Smrg  done
12522bc77032bSmrg  if test $am_rc -ne 0; then
12523bc77032bSmrg    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524bc77032bSmrgprintf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12525bc77032bSmrgas_fn_error $? "Something went wrong bootstrapping makefile fragments
12526bc77032bSmrg    for automatic dependency tracking.  If GNU make was not used, consider
12527bc77032bSmrg    re-running the configure script with MAKE=\"gmake\" (or whatever is
12528bc77032bSmrg    necessary).  You can also try re-running configure with the
12529bc77032bSmrg    '--disable-dependency-tracking' option to at least be able to build
12530bc77032bSmrg    the package (albeit without support for automatic dependency tracking).
12531bc77032bSmrgSee \`config.log' for more details" "$LINENO" 5; }
12532bc77032bSmrg  fi
12533bc77032bSmrg  { am_dirpart=; unset am_dirpart;}
12534bc77032bSmrg  { am_filepart=; unset am_filepart;}
12535bc77032bSmrg  { am_mf=; unset am_mf;}
12536bc77032bSmrg  { am_rc=; unset am_rc;}
12537bc77032bSmrg  rm -f conftest-deps.mk
12538a9274bcdSmrg}
1253966fe65f6Smrg ;;
1254089d09728Smrg
1254166fe65f6Smrg  esac
1254289d09728Smrgdone # for ac_tag
1254366fe65f6Smrg
1254466fe65f6Smrg
1254548af84faSmrgas_fn_exit 0
1254666fe65f6Smrg_ACEOF
1254766fe65f6Smrgac_clean_files=$ac_clean_files_save
1254866fe65f6Smrg
1254989d09728Smrgtest $ac_write_fail = 0 ||
1255048af84faSmrg  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1255189d09728Smrg
1255266fe65f6Smrg
1255366fe65f6Smrg# configure is writing to config.log, and then calls config.status.
1255466fe65f6Smrg# config.status does its own redirection, appending to config.log.
1255566fe65f6Smrg# Unfortunately, on DOS this fails, as config.log is still kept open
1255666fe65f6Smrg# by configure, so config.status won't be able to write to it; its
1255766fe65f6Smrg# output is simply discarded.  So we exec the FD to /dev/null,
1255866fe65f6Smrg# effectively closing config.log, so it can be properly (re)opened and
1255966fe65f6Smrg# appended to by config.status.  When coming back to configure, we
1256066fe65f6Smrg# need to make the FD available again.
1256166fe65f6Smrgif test "$no_create" != yes; then
1256266fe65f6Smrg  ac_cs_success=:
1256366fe65f6Smrg  ac_config_status_args=
1256466fe65f6Smrg  test "$silent" = yes &&
1256566fe65f6Smrg    ac_config_status_args="$ac_config_status_args --quiet"
1256666fe65f6Smrg  exec 5>/dev/null
1256766fe65f6Smrg  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1256866fe65f6Smrg  exec 5>>config.log
1256966fe65f6Smrg  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1257066fe65f6Smrg  # would make configure fail if this is the last instruction.
1257148af84faSmrg  $ac_cs_success || as_fn_exit 1
1257289d09728Smrgfi
1257389d09728Smrgif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12574bc77032bSmrg  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12575bc77032bSmrgprintf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1257666fe65f6Smrgfi
1257766fe65f6Smrg
12578bc77032bSmrg
12579