configure revision 0df20633
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xcalc 1.0.7.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/xcalc/issues
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xcalc'
583PACKAGE_TARNAME='xcalc'
584PACKAGE_VERSION='1.0.7'
585PACKAGE_STRING='xcalc 1.0.7'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcalc/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630appdefaultdir
631APPDEFS_LIBS
632APPDEFS_CFLAGS
633XCALC_LIBS
634XCALC_CFLAGS
635MAN_SUBSTS
636XORG_MAN_PAGE
637ADMIN_MAN_DIR
638DRIVER_MAN_DIR
639MISC_MAN_DIR
640FILE_MAN_DIR
641LIB_MAN_DIR
642APP_MAN_DIR
643ADMIN_MAN_SUFFIX
644DRIVER_MAN_SUFFIX
645MISC_MAN_SUFFIX
646FILE_MAN_SUFFIX
647LIB_MAN_SUFFIX
648APP_MAN_SUFFIX
649SED
650host_os
651host_vendor
652host_cpu
653host
654build_os
655build_vendor
656build_cpu
657build
658INSTALL_CMD
659PKG_CONFIG_LIBDIR
660PKG_CONFIG_PATH
661PKG_CONFIG
662CHANGELOG_CMD
663STRICT_CFLAGS
664CWARNFLAGS
665BASE_CFLAGS
666EGREP
667GREP
668CPP
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__quote
677am__include
678DEPDIR
679OBJEXT
680EXEEXT
681ac_ct_CC
682CPPFLAGS
683LDFLAGS
684CFLAGS
685CC
686AM_BACKSLASH
687AM_DEFAULT_VERBOSITY
688AM_DEFAULT_V
689AM_V
690am__untar
691am__tar
692AMTAR
693am__leading_dot
694SET_MAKE
695AWK
696mkdir_p
697MKDIR_P
698INSTALL_STRIP_PROGRAM
699STRIP
700install_sh
701MAKEINFO
702AUTOHEADER
703AUTOMAKE
704AUTOCONF
705ACLOCAL
706VERSION
707PACKAGE
708CYGPATH_W
709am__isrc
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
751ac_subst_files=''
752ac_user_opts='
753enable_option_checking
754enable_silent_rules
755enable_dependency_tracking
756enable_selective_werror
757enable_strict_compilation
758with_appdefaultdir
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP
769PKG_CONFIG
770PKG_CONFIG_PATH
771PKG_CONFIG_LIBDIR
772XCALC_CFLAGS
773XCALC_LIBS
774APPDEFS_CFLAGS
775APPDEFS_LIBS'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830  # If the previous option needs an argument, assign it.
831  if test -n "$ac_prev"; then
832    eval $ac_prev=\$ac_option
833    ac_prev=
834    continue
835  fi
836
837  case $ac_option in
838  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839  *=)   ac_optarg= ;;
840  *)    ac_optarg=yes ;;
841  esac
842
843  # Accept the important Cygnus configure options, so we can diagnose typos.
844
845  case $ac_dashdash$ac_option in
846  --)
847    ac_dashdash=yes ;;
848
849  -bindir | --bindir | --bindi | --bind | --bin | --bi)
850    ac_prev=bindir ;;
851  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852    bindir=$ac_optarg ;;
853
854  -build | --build | --buil | --bui | --bu)
855    ac_prev=build_alias ;;
856  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857    build_alias=$ac_optarg ;;
858
859  -cache-file | --cache-file | --cache-fil | --cache-fi \
860  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861    ac_prev=cache_file ;;
862  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864    cache_file=$ac_optarg ;;
865
866  --config-cache | -C)
867    cache_file=config.cache ;;
868
869  -datadir | --datadir | --datadi | --datad)
870    ac_prev=datadir ;;
871  -datadir=* | --datadir=* | --datadi=* | --datad=*)
872    datadir=$ac_optarg ;;
873
874  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875  | --dataroo | --dataro | --datar)
876    ac_prev=datarootdir ;;
877  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879    datarootdir=$ac_optarg ;;
880
881  -disable-* | --disable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=no ;;
896
897  -docdir | --docdir | --docdi | --doc | --do)
898    ac_prev=docdir ;;
899  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900    docdir=$ac_optarg ;;
901
902  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903    ac_prev=dvidir ;;
904  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905    dvidir=$ac_optarg ;;
906
907  -enable-* | --enable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=\$ac_optarg ;;
922
923  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925  | --exec | --exe | --ex)
926    ac_prev=exec_prefix ;;
927  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929  | --exec=* | --exe=* | --ex=*)
930    exec_prefix=$ac_optarg ;;
931
932  -gas | --gas | --ga | --g)
933    # Obsolete; use --with-gas.
934    with_gas=yes ;;
935
936  -help | --help | --hel | --he | -h)
937    ac_init_help=long ;;
938  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939    ac_init_help=recursive ;;
940  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941    ac_init_help=short ;;
942
943  -host | --host | --hos | --ho)
944    ac_prev=host_alias ;;
945  -host=* | --host=* | --hos=* | --ho=*)
946    host_alias=$ac_optarg ;;
947
948  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949    ac_prev=htmldir ;;
950  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951  | --ht=*)
952    htmldir=$ac_optarg ;;
953
954  -includedir | --includedir | --includedi | --included | --include \
955  | --includ | --inclu | --incl | --inc)
956    ac_prev=includedir ;;
957  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958  | --includ=* | --inclu=* | --incl=* | --inc=*)
959    includedir=$ac_optarg ;;
960
961  -infodir | --infodir | --infodi | --infod | --info | --inf)
962    ac_prev=infodir ;;
963  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964    infodir=$ac_optarg ;;
965
966  -libdir | --libdir | --libdi | --libd)
967    ac_prev=libdir ;;
968  -libdir=* | --libdir=* | --libdi=* | --libd=*)
969    libdir=$ac_optarg ;;
970
971  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972  | --libexe | --libex | --libe)
973    ac_prev=libexecdir ;;
974  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975  | --libexe=* | --libex=* | --libe=*)
976    libexecdir=$ac_optarg ;;
977
978  -localedir | --localedir | --localedi | --localed | --locale)
979    ac_prev=localedir ;;
980  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981    localedir=$ac_optarg ;;
982
983  -localstatedir | --localstatedir | --localstatedi | --localstated \
984  | --localstate | --localstat | --localsta | --localst | --locals)
985    ac_prev=localstatedir ;;
986  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988    localstatedir=$ac_optarg ;;
989
990  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991    ac_prev=mandir ;;
992  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993    mandir=$ac_optarg ;;
994
995  -nfp | --nfp | --nf)
996    # Obsolete; use --without-fp.
997    with_fp=no ;;
998
999  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000  | --no-cr | --no-c | -n)
1001    no_create=yes ;;
1002
1003  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005    no_recursion=yes ;;
1006
1007  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009  | --oldin | --oldi | --old | --ol | --o)
1010    ac_prev=oldincludedir ;;
1011  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014    oldincludedir=$ac_optarg ;;
1015
1016  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017    ac_prev=prefix ;;
1018  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019    prefix=$ac_optarg ;;
1020
1021  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022  | --program-pre | --program-pr | --program-p)
1023    ac_prev=program_prefix ;;
1024  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026    program_prefix=$ac_optarg ;;
1027
1028  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029  | --program-suf | --program-su | --program-s)
1030    ac_prev=program_suffix ;;
1031  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033    program_suffix=$ac_optarg ;;
1034
1035  -program-transform-name | --program-transform-name \
1036  | --program-transform-nam | --program-transform-na \
1037  | --program-transform-n | --program-transform- \
1038  | --program-transform | --program-transfor \
1039  | --program-transfo | --program-transf \
1040  | --program-trans | --program-tran \
1041  | --progr-tra | --program-tr | --program-t)
1042    ac_prev=program_transform_name ;;
1043  -program-transform-name=* | --program-transform-name=* \
1044  | --program-transform-nam=* | --program-transform-na=* \
1045  | --program-transform-n=* | --program-transform-=* \
1046  | --program-transform=* | --program-transfor=* \
1047  | --program-transfo=* | --program-transf=* \
1048  | --program-trans=* | --program-tran=* \
1049  | --progr-tra=* | --program-tr=* | --program-t=*)
1050    program_transform_name=$ac_optarg ;;
1051
1052  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053    ac_prev=pdfdir ;;
1054  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055    pdfdir=$ac_optarg ;;
1056
1057  -psdir | --psdir | --psdi | --psd | --ps)
1058    ac_prev=psdir ;;
1059  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060    psdir=$ac_optarg ;;
1061
1062  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063  | -silent | --silent | --silen | --sile | --sil)
1064    silent=yes ;;
1065
1066  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067    ac_prev=sbindir ;;
1068  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069  | --sbi=* | --sb=*)
1070    sbindir=$ac_optarg ;;
1071
1072  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074  | --sharedst | --shareds | --shared | --share | --shar \
1075  | --sha | --sh)
1076    ac_prev=sharedstatedir ;;
1077  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080  | --sha=* | --sh=*)
1081    sharedstatedir=$ac_optarg ;;
1082
1083  -site | --site | --sit)
1084    ac_prev=site ;;
1085  -site=* | --site=* | --sit=*)
1086    site=$ac_optarg ;;
1087
1088  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089    ac_prev=srcdir ;;
1090  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091    srcdir=$ac_optarg ;;
1092
1093  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094  | --syscon | --sysco | --sysc | --sys | --sy)
1095    ac_prev=sysconfdir ;;
1096  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098    sysconfdir=$ac_optarg ;;
1099
1100  -target | --target | --targe | --targ | --tar | --ta | --t)
1101    ac_prev=target_alias ;;
1102  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103    target_alias=$ac_optarg ;;
1104
1105  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106    verbose=yes ;;
1107
1108  -version | --version | --versio | --versi | --vers | -V)
1109    ac_init_version=: ;;
1110
1111  -with-* | --with-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid package name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"with_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval with_$ac_useropt=\$ac_optarg ;;
1126
1127  -without-* | --without-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=no ;;
1142
1143  --x)
1144    # Obsolete; use --with-x.
1145    with_x=yes ;;
1146
1147  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148  | --x-incl | --x-inc | --x-in | --x-i)
1149    ac_prev=x_includes ;;
1150  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152    x_includes=$ac_optarg ;;
1153
1154  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156    ac_prev=x_libraries ;;
1157  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159    x_libraries=$ac_optarg ;;
1160
1161  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
1163    ;;
1164
1165  *=*)
1166    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167    # Reject names that are not valid shell variable names.
1168    case $ac_envvar in #(
1169      '' | [0-9]* | *[!_$as_cr_alnum]* )
1170      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171    esac
1172    eval $ac_envvar=\$ac_optarg
1173    export $ac_envvar ;;
1174
1175  *)
1176    # FIXME: should be removed in autoconf 3.0.
1177    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181    ;;
1182
1183  esac
1184done
1185
1186if test -n "$ac_prev"; then
1187  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188  as_fn_error $? "missing argument to $ac_option"
1189fi
1190
1191if test -n "$ac_unrecognized_opts"; then
1192  case $enable_option_checking in
1193    no) ;;
1194    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196  esac
1197fi
1198
1199# Check all directory arguments for consistency.
1200for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201		datadir sysconfdir sharedstatedir localstatedir includedir \
1202		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203		libdir localedir mandir
1204do
1205  eval ac_val=\$$ac_var
1206  # Remove trailing slashes.
1207  case $ac_val in
1208    */ )
1209      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210      eval $ac_var=\$ac_val;;
1211  esac
1212  # Be sure to have absolute directory names.
1213  case $ac_val in
1214    [\\/$]* | ?:[\\/]* )  continue;;
1215    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216  esac
1217  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229  if test "x$build_alias" = x; then
1230    cross_compiling=maybe
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  as_fn_error $? "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$as_myself" : 'X\(//\)[^/]' \| \
1257	 X"$as_myself" : 'X\(//\)$' \| \
1258	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291	pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294  srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_env_${ac_var}_value=\$${ac_var}
1305  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313  # Omit some internal or obsolete options to make the list less imposing.
1314  # This message is too long to be a string in the A/UX 3.1 sh.
1315  cat <<_ACEOF
1316\`configure' configures xcalc 1.0.7 to adapt to many kinds of systems.
1317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326  -h, --help              display this help and exit
1327      --help=short        display options specific to this package
1328      --help=recursive    display the short help of all the included packages
1329  -V, --version           display version information and exit
1330  -q, --quiet, --silent   do not print \`checking ...' messages
1331      --cache-file=FILE   cache test results in FILE [disabled]
1332  -C, --config-cache      alias for \`--cache-file=config.cache'
1333  -n, --no-create         do not create output files
1334      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337  --prefix=PREFIX         install architecture-independent files in PREFIX
1338                          [$ac_default_prefix]
1339  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                          [PREFIX]
1341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
1350  --bindir=DIR            user executables [EPREFIX/bin]
1351  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352  --libexecdir=DIR        program executables [EPREFIX/libexec]
1353  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356  --libdir=DIR            object code libraries [EPREFIX/lib]
1357  --includedir=DIR        C header files [PREFIX/include]
1358  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361  --infodir=DIR           info documentation [DATAROOTDIR/info]
1362  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363  --mandir=DIR            man documentation [DATAROOTDIR/man]
1364  --docdir=DIR            documentation root [DATAROOTDIR/doc/xcalc]
1365  --htmldir=DIR           html documentation [DOCDIR]
1366  --dvidir=DIR            dvi documentation [DOCDIR]
1367  --pdfdir=DIR            pdf documentation [DOCDIR]
1368  --psdir=DIR             ps documentation [DOCDIR]
1369_ACEOF
1370
1371  cat <<\_ACEOF
1372
1373Program names:
1374  --program-prefix=PREFIX            prepend PREFIX to installed program names
1375  --program-suffix=SUFFIX            append SUFFIX to installed program names
1376  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385  case $ac_init_help in
1386     short | recursive ) echo "Configuration of xcalc 1.0.7:";;
1387   esac
1388  cat <<\_ACEOF
1389
1390Optional Features:
1391  --disable-option-checking  ignore unrecognized --enable/--with options
1392  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394  --enable-silent-rules   less verbose build output (undo: "make V=1")
1395  --disable-silent-rules  verbose build output (undo: "make V=0")
1396  --enable-dependency-tracking
1397                          do not reject slow dependency extractors
1398  --disable-dependency-tracking
1399                          speeds up one-time build
1400  --disable-selective-werror
1401                          Turn off selective compiler errors. (default:
1402                          enabled)
1403  --enable-strict-compilation
1404                          Enable all warnings from compiler and make them
1405                          errors (default: disabled)
1406
1407Optional Packages:
1408  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410  --with-appdefaultdir=<pathname>
1411                          specify directory for app-defaults files (default is
1412                          autodetected)
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  PKG_CONFIG_PATH
1425              directories to add to pkg-config's search path
1426  PKG_CONFIG_LIBDIR
1427              path overriding pkg-config's built-in search path
1428  XCALC_CFLAGS
1429              C compiler flags for XCALC, overriding pkg-config
1430  XCALC_LIBS  linker flags for XCALC, overriding pkg-config
1431  APPDEFS_CFLAGS
1432              C compiler flags for APPDEFS, overriding pkg-config
1433  APPDEFS_LIBS
1434              linker flags for APPDEFS, overriding pkg-config
1435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
1439Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/issues>.
1440_ACEOF
1441ac_status=$?
1442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445  # If there are subdirs, report their specific --help.
1446  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447    test -d "$ac_dir" ||
1448      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449      continue
1450    ac_builddir=.
1451
1452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
1455  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456  # A ".." for each directory in $ac_dir_suffix.
1457  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458  case $ac_top_builddir_sub in
1459  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461  esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
1467
1468case $srcdir in
1469  .)  # We are building in place.
1470    ac_srcdir=.
1471    ac_top_srcdir=$ac_top_builddir_sub
1472    ac_abs_top_srcdir=$ac_pwd ;;
1473  [\\/]* | ?:[\\/]* )  # Absolute name.
1474    ac_srcdir=$srcdir$ac_dir_suffix;
1475    ac_top_srcdir=$srcdir
1476    ac_abs_top_srcdir=$srcdir ;;
1477  *) # Relative name.
1478    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479    ac_top_srcdir=$ac_top_build_prefix$srcdir
1480    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481esac
1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484    cd "$ac_dir" || { ac_status=$?; continue; }
1485    # Check for guested configure.
1486    if test -f "$ac_srcdir/configure.gnu"; then
1487      echo &&
1488      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489    elif test -f "$ac_srcdir/configure"; then
1490      echo &&
1491      $SHELL "$ac_srcdir/configure" --help=recursive
1492    else
1493      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494    fi || ac_status=$?
1495    cd "$ac_pwd" || { ac_status=$?; break; }
1496  done
1497fi
1498
1499test -n "$ac_init_help" && exit $ac_status
1500if $ac_init_version; then
1501  cat <<\_ACEOF
1502xcalc configure 1.0.7
1503generated by GNU Autoconf 2.69
1504
1505Copyright (C) 2012 Free Software Foundation, Inc.
1506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508_ACEOF
1509  exit
1510fi
1511
1512## ------------------------ ##
1513## Autoconf initialization. ##
1514## ------------------------ ##
1515
1516# ac_fn_c_try_compile LINENO
1517# --------------------------
1518# Try to compile conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_compile ()
1520{
1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522  rm -f conftest.$ac_objext
1523  if { { ac_try="$ac_compile"
1524case "(($ac_try" in
1525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526  *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530  (eval "$ac_compile") 2>conftest.err
1531  ac_status=$?
1532  if test -s conftest.err; then
1533    grep -v '^ *+' conftest.err >conftest.er1
1534    cat conftest.er1 >&5
1535    mv -f conftest.er1 conftest.err
1536  fi
1537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538  test $ac_status = 0; } && {
1539	 test -z "$ac_c_werror_flag" ||
1540	 test ! -s conftest.err
1541       } && test -s conftest.$ac_objext; then :
1542  ac_retval=0
1543else
1544  $as_echo "$as_me: failed program was:" >&5
1545sed 's/^/| /' conftest.$ac_ext >&5
1546
1547	ac_retval=1
1548fi
1549  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550  as_fn_set_status $ac_retval
1551
1552} # ac_fn_c_try_compile
1553
1554# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1555# ---------------------------------------------
1556# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1557# accordingly.
1558ac_fn_c_check_decl ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  as_decl_name=`echo $2|sed 's/ *(.*//'`
1562  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1564$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1565if eval \${$3+:} false; then :
1566  $as_echo_n "(cached) " >&6
1567else
1568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569/* end confdefs.h.  */
1570$4
1571int
1572main ()
1573{
1574#ifndef $as_decl_name
1575#ifdef __cplusplus
1576  (void) $as_decl_use;
1577#else
1578  (void) $as_decl_name;
1579#endif
1580#endif
1581
1582  ;
1583  return 0;
1584}
1585_ACEOF
1586if ac_fn_c_try_compile "$LINENO"; then :
1587  eval "$3=yes"
1588else
1589  eval "$3=no"
1590fi
1591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1592fi
1593eval ac_res=\$$3
1594	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595$as_echo "$ac_res" >&6; }
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597
1598} # ac_fn_c_check_decl
1599
1600# ac_fn_c_try_cpp LINENO
1601# ----------------------
1602# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_cpp ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if { { ac_try="$ac_cpp conftest.$ac_ext"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614  ac_status=$?
1615  if test -s conftest.err; then
1616    grep -v '^ *+' conftest.err >conftest.er1
1617    cat conftest.er1 >&5
1618    mv -f conftest.er1 conftest.err
1619  fi
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } > conftest.i && {
1622	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623	 test ! -s conftest.err
1624       }; then :
1625  ac_retval=0
1626else
1627  $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630    ac_retval=1
1631fi
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633  as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_cpp
1636
1637# ac_fn_c_try_run LINENO
1638# ----------------------
1639# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1640# that executables *can* be run.
1641ac_fn_c_try_run ()
1642{
1643  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644  if { { ac_try="$ac_link"
1645case "(($ac_try" in
1646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647  *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651  (eval "$ac_link") 2>&5
1652  ac_status=$?
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1655  { { case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_try") 2>&5
1662  ac_status=$?
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; }; }; then :
1665  ac_retval=0
1666else
1667  $as_echo "$as_me: program exited with status $ac_status" >&5
1668       $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671       ac_retval=$ac_status
1672fi
1673  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_run
1678
1679# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680# -------------------------------------------------------
1681# Tests whether HEADER exists and can be compiled using the include files in
1682# INCLUDES, setting the cache variable VAR accordingly.
1683ac_fn_c_check_header_compile ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687$as_echo_n "checking for $2... " >&6; }
1688if eval \${$3+:} false; then :
1689  $as_echo_n "(cached) " >&6
1690else
1691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692/* end confdefs.h.  */
1693$4
1694#include <$2>
1695_ACEOF
1696if ac_fn_c_try_compile "$LINENO"; then :
1697  eval "$3=yes"
1698else
1699  eval "$3=no"
1700fi
1701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702fi
1703eval ac_res=\$$3
1704	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705$as_echo "$ac_res" >&6; }
1706  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708} # ac_fn_c_check_header_compile
1709
1710# ac_fn_c_try_link LINENO
1711# -----------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_link ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  rm -f conftest.$ac_objext conftest$ac_exeext
1717  if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_link") 2>conftest.err
1725  ac_status=$?
1726  if test -s conftest.err; then
1727    grep -v '^ *+' conftest.err >conftest.er1
1728    cat conftest.er1 >&5
1729    mv -f conftest.er1 conftest.err
1730  fi
1731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732  test $ac_status = 0; } && {
1733	 test -z "$ac_c_werror_flag" ||
1734	 test ! -s conftest.err
1735       } && test -s conftest$ac_exeext && {
1736	 test "$cross_compiling" = yes ||
1737	 test -x conftest$ac_exeext
1738       }; then :
1739  ac_retval=0
1740else
1741  $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744	ac_retval=1
1745fi
1746  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748  # interfere with the next link command; also delete a directory that is
1749  # left behind by Apple's compiler.  We do this before executing the actions.
1750  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752  as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_link
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765  $as_echo_n "(cached) " >&6
1766else
1767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h.  */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774    which can conflict with char $2 (); below.
1775    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776    <limits.h> exists even on freestanding compilers.  */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787   Use char because int might match the return type of a GCC
1788   builtin and then its argument prototype would still apply.  */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794    to always fail with ENOSYS.  Some functions are actually named
1795    something starting with __ and the normal name is an alias.  */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809  eval "$3=yes"
1810else
1811  eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814    conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_func
1822cat >config.log <<_ACEOF
1823This file contains any messages produced by compilers while
1824running configure, to aid debugging if configure makes a mistake.
1825
1826It was created by xcalc $as_me 1.0.7, which was
1827generated by GNU Autoconf 2.69.  Invocation command line was
1828
1829  $ $0 $@
1830
1831_ACEOF
1832exec 5>>config.log
1833{
1834cat <<_ASUNAME
1835## --------- ##
1836## Platform. ##
1837## --------- ##
1838
1839hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1840uname -m = `(uname -m) 2>/dev/null || echo unknown`
1841uname -r = `(uname -r) 2>/dev/null || echo unknown`
1842uname -s = `(uname -s) 2>/dev/null || echo unknown`
1843uname -v = `(uname -v) 2>/dev/null || echo unknown`
1844
1845/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1846/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1847
1848/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1849/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1850/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1851/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1852/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1853/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1854/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1855
1856_ASUNAME
1857
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861  IFS=$as_save_IFS
1862  test -z "$as_dir" && as_dir=.
1863    $as_echo "PATH: $as_dir"
1864  done
1865IFS=$as_save_IFS
1866
1867} >&5
1868
1869cat >&5 <<_ACEOF
1870
1871
1872## ----------- ##
1873## Core tests. ##
1874## ----------- ##
1875
1876_ACEOF
1877
1878
1879# Keep a trace of the command line.
1880# Strip out --no-create and --no-recursion so they do not pile up.
1881# Strip out --silent because we don't want to record it for future runs.
1882# Also quote any args containing shell meta-characters.
1883# Make two passes to allow for proper duplicate-argument suppression.
1884ac_configure_args=
1885ac_configure_args0=
1886ac_configure_args1=
1887ac_must_keep_next=false
1888for ac_pass in 1 2
1889do
1890  for ac_arg
1891  do
1892    case $ac_arg in
1893    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895    | -silent | --silent | --silen | --sile | --sil)
1896      continue ;;
1897    *\'*)
1898      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    esac
1900    case $ac_pass in
1901    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902    2)
1903      as_fn_append ac_configure_args1 " '$ac_arg'"
1904      if test $ac_must_keep_next = true; then
1905	ac_must_keep_next=false # Got value, back to normal.
1906      else
1907	case $ac_arg in
1908	  *=* | --config-cache | -C | -disable-* | --disable-* \
1909	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911	  | -with-* | --with-* | -without-* | --without-* | --x)
1912	    case "$ac_configure_args0 " in
1913	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914	    esac
1915	    ;;
1916	  -* ) ac_must_keep_next=true ;;
1917	esac
1918      fi
1919      as_fn_append ac_configure_args " '$ac_arg'"
1920      ;;
1921    esac
1922  done
1923done
1924{ ac_configure_args0=; unset ac_configure_args0;}
1925{ ac_configure_args1=; unset ac_configure_args1;}
1926
1927# When interrupted or exit'd, cleanup temporary files, and complete
1928# config.log.  We remove comments because anyway the quotes in there
1929# would cause problems or look ugly.
1930# WARNING: Use '\'' to represent an apostrophe within the trap.
1931# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932trap 'exit_status=$?
1933  # Save into config.log some information that might help in debugging.
1934  {
1935    echo
1936
1937    $as_echo "## ---------------- ##
1938## Cache variables. ##
1939## ---------------- ##"
1940    echo
1941    # The following way of writing the cache mishandles newlines in values,
1942(
1943  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944    eval ac_val=\$$ac_var
1945    case $ac_val in #(
1946    *${as_nl}*)
1947      case $ac_var in #(
1948      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950      esac
1951      case $ac_var in #(
1952      _ | IFS | as_nl) ;; #(
1953      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1954      *) { eval $ac_var=; unset $ac_var;} ;;
1955      esac ;;
1956    esac
1957  done
1958  (set) 2>&1 |
1959    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960    *${as_nl}ac_space=\ *)
1961      sed -n \
1962	"s/'\''/'\''\\\\'\'''\''/g;
1963	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964      ;; #(
1965    *)
1966      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967      ;;
1968    esac |
1969    sort
1970)
1971    echo
1972
1973    $as_echo "## ----------------- ##
1974## Output variables. ##
1975## ----------------- ##"
1976    echo
1977    for ac_var in $ac_subst_vars
1978    do
1979      eval ac_val=\$$ac_var
1980      case $ac_val in
1981      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982      esac
1983      $as_echo "$ac_var='\''$ac_val'\''"
1984    done | sort
1985    echo
1986
1987    if test -n "$ac_subst_files"; then
1988      $as_echo "## ------------------- ##
1989## File substitutions. ##
1990## ------------------- ##"
1991      echo
1992      for ac_var in $ac_subst_files
1993      do
1994	eval ac_val=\$$ac_var
1995	case $ac_val in
1996	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997	esac
1998	$as_echo "$ac_var='\''$ac_val'\''"
1999      done | sort
2000      echo
2001    fi
2002
2003    if test -s confdefs.h; then
2004      $as_echo "## ----------- ##
2005## confdefs.h. ##
2006## ----------- ##"
2007      echo
2008      cat confdefs.h
2009      echo
2010    fi
2011    test "$ac_signal" != 0 &&
2012      $as_echo "$as_me: caught signal $ac_signal"
2013    $as_echo "$as_me: exit $exit_status"
2014  } >&5
2015  rm -f core *.core core.conftest.* &&
2016    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017    exit $exit_status
2018' 0
2019for ac_signal in 1 2 13 15; do
2020  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021done
2022ac_signal=0
2023
2024# confdefs.h avoids OS command line length limits that DEFS can exceed.
2025rm -f -r conftest* confdefs.h
2026
2027$as_echo "/* confdefs.h */" > confdefs.h
2028
2029# Predefined preprocessor variables.
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_NAME "$PACKAGE_NAME"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_VERSION "$PACKAGE_VERSION"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_STRING "$PACKAGE_STRING"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_URL "$PACKAGE_URL"
2053_ACEOF
2054
2055
2056# Let the site file select an alternate cache file if it wants to.
2057# Prefer an explicitly selected file to automatically selected ones.
2058ac_site_file1=NONE
2059ac_site_file2=NONE
2060if test -n "$CONFIG_SITE"; then
2061  # We do not want a PATH search for config.site.
2062  case $CONFIG_SITE in #((
2063    -*)  ac_site_file1=./$CONFIG_SITE;;
2064    */*) ac_site_file1=$CONFIG_SITE;;
2065    *)   ac_site_file1=./$CONFIG_SITE;;
2066  esac
2067elif test "x$prefix" != xNONE; then
2068  ac_site_file1=$prefix/share/config.site
2069  ac_site_file2=$prefix/etc/config.site
2070else
2071  ac_site_file1=$ac_default_prefix/share/config.site
2072  ac_site_file2=$ac_default_prefix/etc/config.site
2073fi
2074for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075do
2076  test "x$ac_site_file" = xNONE && continue
2077  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2078    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080    sed 's/^/| /' "$ac_site_file" >&5
2081    . "$ac_site_file" \
2082      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084as_fn_error $? "failed to load site script $ac_site_file
2085See \`config.log' for more details" "$LINENO" 5; }
2086  fi
2087done
2088
2089if test -r "$cache_file"; then
2090  # Some versions of bash will fail to source /dev/null (special files
2091  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2092  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2093    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094$as_echo "$as_me: loading cache $cache_file" >&6;}
2095    case $cache_file in
2096      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097      *)                      . "./$cache_file";;
2098    esac
2099  fi
2100else
2101  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102$as_echo "$as_me: creating cache $cache_file" >&6;}
2103  >$cache_file
2104fi
2105
2106# Check that the precious variables saved in the cache have kept the same
2107# value.
2108ac_cache_corrupted=false
2109for ac_var in $ac_precious_vars; do
2110  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111  eval ac_new_set=\$ac_env_${ac_var}_set
2112  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113  eval ac_new_val=\$ac_env_${ac_var}_value
2114  case $ac_old_set,$ac_new_set in
2115    set,)
2116      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118      ac_cache_corrupted=: ;;
2119    ,set)
2120      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122      ac_cache_corrupted=: ;;
2123    ,);;
2124    *)
2125      if test "x$ac_old_val" != "x$ac_new_val"; then
2126	# differences in whitespace do not lead to failure.
2127	ac_old_val_w=`echo x $ac_old_val`
2128	ac_new_val_w=`echo x $ac_new_val`
2129	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132	  ac_cache_corrupted=:
2133	else
2134	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136	  eval $ac_var=\$ac_old_val
2137	fi
2138	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2139$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2140	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2141$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2142      fi;;
2143  esac
2144  # Pass precious variables to config.status.
2145  if test "$ac_new_set" = set; then
2146    case $ac_new_val in
2147    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148    *) ac_arg=$ac_var=$ac_new_val ;;
2149    esac
2150    case " $ac_configure_args " in
2151      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2152      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153    esac
2154  fi
2155done
2156if $ac_cache_corrupted; then
2157  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162fi
2163## -------------------- ##
2164## Main body of script. ##
2165## -------------------- ##
2166
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174
2175ac_config_headers="$ac_config_headers config.h"
2176
2177
2178# Initialize Automake
2179am__api_version='1.15'
2180
2181ac_aux_dir=
2182for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2183  if test -f "$ac_dir/install-sh"; then
2184    ac_aux_dir=$ac_dir
2185    ac_install_sh="$ac_aux_dir/install-sh -c"
2186    break
2187  elif test -f "$ac_dir/install.sh"; then
2188    ac_aux_dir=$ac_dir
2189    ac_install_sh="$ac_aux_dir/install.sh -c"
2190    break
2191  elif test -f "$ac_dir/shtool"; then
2192    ac_aux_dir=$ac_dir
2193    ac_install_sh="$ac_aux_dir/shtool install -c"
2194    break
2195  fi
2196done
2197if test -z "$ac_aux_dir"; then
2198  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2199fi
2200
2201# These three variables are undocumented and unsupported,
2202# and are intended to be withdrawn in a future Autoconf release.
2203# They can cause serious problems if a builder's source tree is in a directory
2204# whose full name contains unusual characters.
2205ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2206ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2207ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2208
2209
2210# Find a good install program.  We prefer a C program (faster),
2211# so one script is as good as another.  But avoid the broken or
2212# incompatible versions:
2213# SysV /etc/install, /usr/sbin/install
2214# SunOS /usr/etc/install
2215# IRIX /sbin/install
2216# AIX /bin/install
2217# AmigaOS /C/install, which installs bootblocks on floppy discs
2218# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2219# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2220# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2221# OS/2's system install, which has a completely different semantic
2222# ./install, which can be erroneously created by make from ./install.sh.
2223# Reject install programs that cannot install multiple files.
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2225$as_echo_n "checking for a BSD-compatible install... " >&6; }
2226if test -z "$INSTALL"; then
2227if ${ac_cv_path_install+:} false; then :
2228  $as_echo_n "(cached) " >&6
2229else
2230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233  IFS=$as_save_IFS
2234  test -z "$as_dir" && as_dir=.
2235    # Account for people who put trailing slashes in PATH elements.
2236case $as_dir/ in #((
2237  ./ | .// | /[cC]/* | \
2238  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2239  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2240  /usr/ucb/* ) ;;
2241  *)
2242    # OSF1 and SCO ODT 3.0 have their own names for install.
2243    # Don't use installbsd from OSF since it installs stuff as root
2244    # by default.
2245    for ac_prog in ginstall scoinst install; do
2246      for ac_exec_ext in '' $ac_executable_extensions; do
2247	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2248	  if test $ac_prog = install &&
2249	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2250	    # AIX install.  It has an incompatible calling convention.
2251	    :
2252	  elif test $ac_prog = install &&
2253	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2254	    # program-specific install script used by HP pwplus--don't use.
2255	    :
2256	  else
2257	    rm -rf conftest.one conftest.two conftest.dir
2258	    echo one > conftest.one
2259	    echo two > conftest.two
2260	    mkdir conftest.dir
2261	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2262	      test -s conftest.one && test -s conftest.two &&
2263	      test -s conftest.dir/conftest.one &&
2264	      test -s conftest.dir/conftest.two
2265	    then
2266	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2267	      break 3
2268	    fi
2269	  fi
2270	fi
2271      done
2272    done
2273    ;;
2274esac
2275
2276  done
2277IFS=$as_save_IFS
2278
2279rm -rf conftest.one conftest.two conftest.dir
2280
2281fi
2282  if test "${ac_cv_path_install+set}" = set; then
2283    INSTALL=$ac_cv_path_install
2284  else
2285    # As a last resort, use the slow shell script.  Don't cache a
2286    # value for INSTALL within a source directory, because that will
2287    # break other packages using the cache if that directory is
2288    # removed, or if the value is a relative name.
2289    INSTALL=$ac_install_sh
2290  fi
2291fi
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2293$as_echo "$INSTALL" >&6; }
2294
2295# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2296# It thinks the first close brace ends the variable substitution.
2297test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2298
2299test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2300
2301test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2302
2303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2304$as_echo_n "checking whether build environment is sane... " >&6; }
2305# Reject unsafe characters in $srcdir or the absolute working directory
2306# name.  Accept space and tab only in the latter.
2307am_lf='
2308'
2309case `pwd` in
2310  *[\\\"\#\$\&\'\`$am_lf]*)
2311    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2312esac
2313case $srcdir in
2314  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2315    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2316esac
2317
2318# Do 'set' in a subshell so we don't clobber the current shell's
2319# arguments.  Must try -L first in case configure is actually a
2320# symlink; some systems play weird games with the mod time of symlinks
2321# (eg FreeBSD returns the mod time of the symlink's containing
2322# directory).
2323if (
2324   am_has_slept=no
2325   for am_try in 1 2; do
2326     echo "timestamp, slept: $am_has_slept" > conftest.file
2327     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2328     if test "$*" = "X"; then
2329	# -L didn't work.
2330	set X `ls -t "$srcdir/configure" conftest.file`
2331     fi
2332     if test "$*" != "X $srcdir/configure conftest.file" \
2333	&& test "$*" != "X conftest.file $srcdir/configure"; then
2334
2335	# If neither matched, then we have a broken ls.  This can happen
2336	# if, for instance, CONFIG_SHELL is bash and it inherits a
2337	# broken ls alias from the environment.  This has actually
2338	# happened.  Such a system could not be considered "sane".
2339	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2340  alias in your environment" "$LINENO" 5
2341     fi
2342     if test "$2" = conftest.file || test $am_try -eq 2; then
2343       break
2344     fi
2345     # Just in case.
2346     sleep 1
2347     am_has_slept=yes
2348   done
2349   test "$2" = conftest.file
2350   )
2351then
2352   # Ok.
2353   :
2354else
2355   as_fn_error $? "newly created file is older than distributed files!
2356Check your system clock" "$LINENO" 5
2357fi
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359$as_echo "yes" >&6; }
2360# If we didn't sleep, we still need to ensure time stamps of config.status and
2361# generated files are strictly newer.
2362am_sleep_pid=
2363if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2364  ( sleep 1 ) &
2365  am_sleep_pid=$!
2366fi
2367
2368rm -f conftest.file
2369
2370test "$program_prefix" != NONE &&
2371  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2372# Use a double $ so make ignores it.
2373test "$program_suffix" != NONE &&
2374  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2375# Double any \ or $.
2376# By default was `s,x,x', remove it if useless.
2377ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2378program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2379
2380# Expand $ac_aux_dir to an absolute path.
2381am_aux_dir=`cd "$ac_aux_dir" && pwd`
2382
2383if test x"${MISSING+set}" != xset; then
2384  case $am_aux_dir in
2385  *\ * | *\	*)
2386    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2387  *)
2388    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2389  esac
2390fi
2391# Use eval to expand $SHELL
2392if eval "$MISSING --is-lightweight"; then
2393  am_missing_run="$MISSING "
2394else
2395  am_missing_run=
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2397$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2398fi
2399
2400if test x"${install_sh+set}" != xset; then
2401  case $am_aux_dir in
2402  *\ * | *\	*)
2403    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2404  *)
2405    install_sh="\${SHELL} $am_aux_dir/install-sh"
2406  esac
2407fi
2408
2409# Installed binaries are usually stripped using 'strip' when the user
2410# run "make install-strip".  However 'strip' might not be the right
2411# tool to use in cross-compilation environments, therefore Automake
2412# will honor the 'STRIP' environment variable to overrule this program.
2413if test "$cross_compiling" != no; then
2414  if test -n "$ac_tool_prefix"; then
2415  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}strip; ac_word=$2
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
2419if ${ac_cv_prog_STRIP+:} false; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  if test -n "$STRIP"; then
2423  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428  IFS=$as_save_IFS
2429  test -z "$as_dir" && as_dir=.
2430    for ac_exec_ext in '' $ac_executable_extensions; do
2431  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434    break 2
2435  fi
2436done
2437  done
2438IFS=$as_save_IFS
2439
2440fi
2441fi
2442STRIP=$ac_cv_prog_STRIP
2443if test -n "$STRIP"; then
2444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2445$as_echo "$STRIP" >&6; }
2446else
2447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448$as_echo "no" >&6; }
2449fi
2450
2451
2452fi
2453if test -z "$ac_cv_prog_STRIP"; then
2454  ac_ct_STRIP=$STRIP
2455  # Extract the first word of "strip", so it can be a program name with args.
2456set dummy strip; ac_word=$2
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458$as_echo_n "checking for $ac_word... " >&6; }
2459if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2460  $as_echo_n "(cached) " >&6
2461else
2462  if test -n "$ac_ct_STRIP"; then
2463  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468  IFS=$as_save_IFS
2469  test -z "$as_dir" && as_dir=.
2470    for ac_exec_ext in '' $ac_executable_extensions; do
2471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472    ac_cv_prog_ac_ct_STRIP="strip"
2473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2474    break 2
2475  fi
2476done
2477  done
2478IFS=$as_save_IFS
2479
2480fi
2481fi
2482ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2483if test -n "$ac_ct_STRIP"; then
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2485$as_echo "$ac_ct_STRIP" >&6; }
2486else
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488$as_echo "no" >&6; }
2489fi
2490
2491  if test "x$ac_ct_STRIP" = x; then
2492    STRIP=":"
2493  else
2494    case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2498ac_tool_warned=yes ;;
2499esac
2500    STRIP=$ac_ct_STRIP
2501  fi
2502else
2503  STRIP="$ac_cv_prog_STRIP"
2504fi
2505
2506fi
2507INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2508
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2510$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2511if test -z "$MKDIR_P"; then
2512  if ${ac_cv_path_mkdir+:} false; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2517do
2518  IFS=$as_save_IFS
2519  test -z "$as_dir" && as_dir=.
2520    for ac_prog in mkdir gmkdir; do
2521	 for ac_exec_ext in '' $ac_executable_extensions; do
2522	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2523	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2524	     'mkdir (GNU coreutils) '* | \
2525	     'mkdir (coreutils) '* | \
2526	     'mkdir (fileutils) '4.1*)
2527	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2528	       break 3;;
2529	   esac
2530	 done
2531       done
2532  done
2533IFS=$as_save_IFS
2534
2535fi
2536
2537  test -d ./--version && rmdir ./--version
2538  if test "${ac_cv_path_mkdir+set}" = set; then
2539    MKDIR_P="$ac_cv_path_mkdir -p"
2540  else
2541    # As a last resort, use the slow shell script.  Don't cache a
2542    # value for MKDIR_P within a source directory, because that will
2543    # break other packages using the cache if that directory is
2544    # removed, or if the value is a relative name.
2545    MKDIR_P="$ac_install_sh -d"
2546  fi
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2549$as_echo "$MKDIR_P" >&6; }
2550
2551for ac_prog in gawk mawk nawk awk
2552do
2553  # Extract the first word of "$ac_prog", so it can be a program name with args.
2554set dummy $ac_prog; ac_word=$2
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556$as_echo_n "checking for $ac_word... " >&6; }
2557if ${ac_cv_prog_AWK+:} false; then :
2558  $as_echo_n "(cached) " >&6
2559else
2560  if test -n "$AWK"; then
2561  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562else
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566  IFS=$as_save_IFS
2567  test -z "$as_dir" && as_dir=.
2568    for ac_exec_ext in '' $ac_executable_extensions; do
2569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570    ac_cv_prog_AWK="$ac_prog"
2571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572    break 2
2573  fi
2574done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579fi
2580AWK=$ac_cv_prog_AWK
2581if test -n "$AWK"; then
2582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2583$as_echo "$AWK" >&6; }
2584else
2585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586$as_echo "no" >&6; }
2587fi
2588
2589
2590  test -n "$AWK" && break
2591done
2592
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2594$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2595set x ${MAKE-make}
2596ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2597if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  cat >conftest.make <<\_ACEOF
2601SHELL = /bin/sh
2602all:
2603	@echo '@@@%%%=$(MAKE)=@@@%%%'
2604_ACEOF
2605# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2606case `${MAKE-make} -f conftest.make 2>/dev/null` in
2607  *@@@%%%=?*=@@@%%%*)
2608    eval ac_cv_prog_make_${ac_make}_set=yes;;
2609  *)
2610    eval ac_cv_prog_make_${ac_make}_set=no;;
2611esac
2612rm -f conftest.make
2613fi
2614if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616$as_echo "yes" >&6; }
2617  SET_MAKE=
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621  SET_MAKE="MAKE=${MAKE-make}"
2622fi
2623
2624rm -rf .tst 2>/dev/null
2625mkdir .tst 2>/dev/null
2626if test -d .tst; then
2627  am__leading_dot=.
2628else
2629  am__leading_dot=_
2630fi
2631rmdir .tst 2>/dev/null
2632
2633# Check whether --enable-silent-rules was given.
2634if test "${enable_silent_rules+set}" = set; then :
2635  enableval=$enable_silent_rules;
2636fi
2637
2638case $enable_silent_rules in # (((
2639  yes) AM_DEFAULT_VERBOSITY=0;;
2640   no) AM_DEFAULT_VERBOSITY=1;;
2641    *) AM_DEFAULT_VERBOSITY=1;;
2642esac
2643am_make=${MAKE-make}
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2645$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2646if ${am_cv_make_support_nested_variables+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if $as_echo 'TRUE=$(BAR$(V))
2650BAR0=false
2651BAR1=true
2652V=1
2653am__doit:
2654	@$(TRUE)
2655.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2656  am_cv_make_support_nested_variables=yes
2657else
2658  am_cv_make_support_nested_variables=no
2659fi
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2662$as_echo "$am_cv_make_support_nested_variables" >&6; }
2663if test $am_cv_make_support_nested_variables = yes; then
2664    AM_V='$(V)'
2665  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2666else
2667  AM_V=$AM_DEFAULT_VERBOSITY
2668  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2669fi
2670AM_BACKSLASH='\'
2671
2672if test "`cd $srcdir && pwd`" != "`pwd`"; then
2673  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2674  # is not polluted with repeated "-I."
2675  am__isrc=' -I$(srcdir)'
2676  # test to see if srcdir already configured
2677  if test -f $srcdir/config.status; then
2678    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2679  fi
2680fi
2681
2682# test whether we have cygpath
2683if test -z "$CYGPATH_W"; then
2684  if (cygpath --version) >/dev/null 2>/dev/null; then
2685    CYGPATH_W='cygpath -w'
2686  else
2687    CYGPATH_W=echo
2688  fi
2689fi
2690
2691
2692# Define the identity of the package.
2693 PACKAGE='xcalc'
2694 VERSION='1.0.7'
2695
2696
2697cat >>confdefs.h <<_ACEOF
2698#define PACKAGE "$PACKAGE"
2699_ACEOF
2700
2701
2702cat >>confdefs.h <<_ACEOF
2703#define VERSION "$VERSION"
2704_ACEOF
2705
2706# Some tools Automake needs.
2707
2708ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2709
2710
2711AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2712
2713
2714AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2715
2716
2717AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2718
2719
2720MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2721
2722# For better backward compatibility.  To be removed once Automake 1.9.x
2723# dies out for good.  For more background, see:
2724# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2725# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2726mkdir_p='$(MKDIR_P)'
2727
2728# We need awk for the "check" target (and possibly the TAP driver).  The
2729# system "awk" is bad on some platforms.
2730# Always define AMTAR for backward compatibility.  Yes, it's still used
2731# in the wild :-(  We should find a proper way to deprecate it ...
2732AMTAR='$${TAR-tar}'
2733
2734
2735# We'll loop over all known methods to create a tar archive until one works.
2736_am_tools='gnutar  pax cpio none'
2737
2738am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2739
2740
2741
2742
2743
2744
2745# POSIX will say in a future version that running "rm -f" with no argument
2746# is OK; and we want to be able to make that assumption in our Makefile
2747# recipes.  So use an aggressive probe to check that the usage we want is
2748# actually supported "in the wild" to an acceptable degree.
2749# See automake bug#10828.
2750# To make any issue more visible, cause the running configure to be aborted
2751# by default if the 'rm' program in use doesn't match our expectations; the
2752# user can still override this though.
2753if rm -f && rm -fr && rm -rf; then : OK; else
2754  cat >&2 <<'END'
2755Oops!
2756
2757Your 'rm' program seems unable to run without file operands specified
2758on the command line, even when the '-f' option is present.  This is contrary
2759to the behaviour of most rm programs out there, and not conforming with
2760the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2761
2762Please tell bug-automake@gnu.org about your system, including the value
2763of your $PATH and any error possibly output before this message.  This
2764can help us improve future automake versions.
2765
2766END
2767  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2768    echo 'Configuration will proceed anyway, since you have set the' >&2
2769    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2770    echo >&2
2771  else
2772    cat >&2 <<'END'
2773Aborting the configuration process, to ensure you take notice of the issue.
2774
2775You can download and install GNU coreutils to get an 'rm' implementation
2776that behaves properly: <http://www.gnu.org/software/coreutils/>.
2777
2778If you want to complete the configuration process using your problematic
2779'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2780to "yes", and re-run configure.
2781
2782END
2783    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2784  fi
2785fi
2786
2787
2788# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800DEPDIR="${am__leading_dot}deps"
2801
2802ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805am_make=${MAKE-make}
2806cat > confinc << 'END'
2807am__doit:
2808	@echo this is the am__doit target
2809.PHONY: am__doit
2810END
2811# If we don't find an include directive, just comment out the code.
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813$as_echo_n "checking for style of include used by $am_make... " >&6; }
2814am__include="#"
2815am__quote=
2816_am_result=none
2817# First try GNU make style include.
2818echo "include confinc" > confmf
2819# Ignore all kinds of additional output from 'make'.
2820case `$am_make -s -f confmf 2> /dev/null` in #(
2821*the\ am__doit\ target*)
2822  am__include=include
2823  am__quote=
2824  _am_result=GNU
2825  ;;
2826esac
2827# Now try BSD make style include.
2828if test "$am__include" = "#"; then
2829   echo '.include "confinc"' > confmf
2830   case `$am_make -s -f confmf 2> /dev/null` in #(
2831   *the\ am__doit\ target*)
2832     am__include=.include
2833     am__quote="\""
2834     _am_result=BSD
2835     ;;
2836   esac
2837fi
2838
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841$as_echo "$_am_result" >&6; }
2842rm -f confinc confmf
2843
2844# Check whether --enable-dependency-tracking was given.
2845if test "${enable_dependency_tracking+set}" = set; then :
2846  enableval=$enable_dependency_tracking;
2847fi
2848
2849if test "x$enable_dependency_tracking" != xno; then
2850  am_depcomp="$ac_aux_dir/depcomp"
2851  AMDEPBACKSLASH='\'
2852  am__nodep='_no'
2853fi
2854 if test "x$enable_dependency_tracking" != xno; then
2855  AMDEP_TRUE=
2856  AMDEP_FALSE='#'
2857else
2858  AMDEP_TRUE='#'
2859  AMDEP_FALSE=
2860fi
2861
2862
2863ac_ext=c
2864ac_cpp='$CPP $CPPFLAGS'
2865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868if test -n "$ac_tool_prefix"; then
2869  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872$as_echo_n "checking for $ac_word... " >&6; }
2873if ${ac_cv_prog_CC+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if test -n "$CC"; then
2877  ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882  IFS=$as_save_IFS
2883  test -z "$as_dir" && as_dir=.
2884    for ac_exec_ext in '' $ac_executable_extensions; do
2885  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899$as_echo "$CC" >&6; }
2900else
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902$as_echo "no" >&6; }
2903fi
2904
2905
2906fi
2907if test -z "$ac_cv_prog_CC"; then
2908  ac_ct_CC=$CC
2909  # Extract the first word of "gcc", so it can be a program name with args.
2910set dummy gcc; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$ac_ct_CC"; then
2917  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_ac_ct_CC="gcc"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937if test -n "$ac_ct_CC"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939$as_echo "$ac_ct_CC" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945  if test "x$ac_ct_CC" = x; then
2946    CC=""
2947  else
2948    case $cross_compiling:$ac_tool_warned in
2949yes:)
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952ac_tool_warned=yes ;;
2953esac
2954    CC=$ac_ct_CC
2955  fi
2956else
2957  CC="$ac_cv_prog_CC"
2958fi
2959
2960if test -z "$CC"; then
2961          if test -n "$ac_tool_prefix"; then
2962    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963set dummy ${ac_tool_prefix}cc; ac_word=$2
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965$as_echo_n "checking for $ac_word... " >&6; }
2966if ${ac_cv_prog_CC+:} false; then :
2967  $as_echo_n "(cached) " >&6
2968else
2969  if test -n "$CC"; then
2970  ac_cv_prog_CC="$CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977    for ac_exec_ext in '' $ac_executable_extensions; do
2978  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_CC="${ac_tool_prefix}cc"
2980    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984  done
2985IFS=$as_save_IFS
2986
2987fi
2988fi
2989CC=$ac_cv_prog_CC
2990if test -n "$CC"; then
2991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992$as_echo "$CC" >&6; }
2993else
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995$as_echo "no" >&6; }
2996fi
2997
2998
2999  fi
3000fi
3001if test -z "$CC"; then
3002  # Extract the first word of "cc", so it can be a program name with args.
3003set dummy cc; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012  ac_prog_rejected=no
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021       ac_prog_rejected=yes
3022       continue
3023     fi
3024    ac_cv_prog_CC="cc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032if test $ac_prog_rejected = yes; then
3033  # We found a bogon in the path, so make sure we never use it.
3034  set dummy $ac_cv_prog_CC
3035  shift
3036  if test $# != 0; then
3037    # We chose a different compiler from the bogus one.
3038    # However, it has the same basename, so the bogon will be chosen
3039    # first if we set CC to just the basename; use the full file name.
3040    shift
3041    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042  fi
3043fi
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$CC"; then
3058  if test -n "$ac_tool_prefix"; then
3059  for ac_prog in cl.exe
3060  do
3061    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064$as_echo_n "checking for $ac_word... " >&6; }
3065if ${ac_cv_prog_CC+:} false; then :
3066  $as_echo_n "(cached) " >&6
3067else
3068  if test -n "$CC"; then
3069  ac_cv_prog_CC="$CC" # Let the user override the test.
3070else
3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072for as_dir in $PATH
3073do
3074  IFS=$as_save_IFS
3075  test -z "$as_dir" && as_dir=.
3076    for ac_exec_ext in '' $ac_executable_extensions; do
3077  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080    break 2
3081  fi
3082done
3083  done
3084IFS=$as_save_IFS
3085
3086fi
3087fi
3088CC=$ac_cv_prog_CC
3089if test -n "$CC"; then
3090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091$as_echo "$CC" >&6; }
3092else
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094$as_echo "no" >&6; }
3095fi
3096
3097
3098    test -n "$CC" && break
3099  done
3100fi
3101if test -z "$CC"; then
3102  ac_ct_CC=$CC
3103  for ac_prog in cl.exe
3104do
3105  # Extract the first word of "$ac_prog", so it can be a program name with args.
3106set dummy $ac_prog; ac_word=$2
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108$as_echo_n "checking for $ac_word... " >&6; }
3109if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110  $as_echo_n "(cached) " >&6
3111else
3112  if test -n "$ac_ct_CC"; then
3113  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120    for ac_exec_ext in '' $ac_executable_extensions; do
3121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_ac_ct_CC="$ac_prog"
3123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127  done
3128IFS=$as_save_IFS
3129
3130fi
3131fi
3132ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133if test -n "$ac_ct_CC"; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135$as_echo "$ac_ct_CC" >&6; }
3136else
3137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
3139fi
3140
3141
3142  test -n "$ac_ct_CC" && break
3143done
3144
3145  if test "x$ac_ct_CC" = x; then
3146    CC=""
3147  else
3148    case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154    CC=$ac_ct_CC
3155  fi
3156fi
3157
3158fi
3159
3160
3161test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163as_fn_error $? "no acceptable C compiler found in \$PATH
3164See \`config.log' for more details" "$LINENO" 5; }
3165
3166# Provide some information about the compiler.
3167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168set X $ac_compile
3169ac_compiler=$2
3170for ac_option in --version -v -V -qversion; do
3171  { { ac_try="$ac_compiler $ac_option >&5"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179  ac_status=$?
3180  if test -s conftest.err; then
3181    sed '10a\
3182... rest of stderr output deleted ...
3183         10q' conftest.err >conftest.er1
3184    cat conftest.er1 >&5
3185  fi
3186  rm -f conftest.er1 conftest.err
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }
3189done
3190
3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h.  */
3193
3194int
3195main ()
3196{
3197
3198  ;
3199  return 0;
3200}
3201_ACEOF
3202ac_clean_files_save=$ac_clean_files
3203ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204# Try to create an executable without -o first, disregard a.out.
3205# It will help us diagnose broken compilers, and finding out an intuition
3206# of exeext.
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208$as_echo_n "checking whether the C compiler works... " >&6; }
3209ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211# The possible output files:
3212ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214ac_rmfiles=
3215for ac_file in $ac_files
3216do
3217  case $ac_file in
3218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220  esac
3221done
3222rm -f $ac_rmfiles
3223
3224if { { ac_try="$ac_link_default"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link_default") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3238# so that the user can short-circuit this test for compilers unknown to
3239# Autoconf.
3240for ac_file in $ac_files ''
3241do
3242  test -f "$ac_file" || continue
3243  case $ac_file in
3244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245	;;
3246    [ab].out )
3247	# We found the default executable, but exeext='' is most
3248	# certainly right.
3249	break;;
3250    *.* )
3251	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252	then :; else
3253	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254	fi
3255	# We set ac_cv_exeext here because the later test for it is not
3256	# safe: cross compilers may not add the suffix if given an `-o'
3257	# argument, so we may need to know it at that point already.
3258	# Even if this section looks crufty: it has the advantage of
3259	# actually working.
3260	break;;
3261    * )
3262	break;;
3263  esac
3264done
3265test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267else
3268  ac_file=''
3269fi
3270if test -z "$ac_file"; then :
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273$as_echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278as_fn_error 77 "C compiler cannot create executables
3279See \`config.log' for more details" "$LINENO" 5; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282$as_echo "yes" >&6; }
3283fi
3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285$as_echo_n "checking for C compiler default output file name... " >&6; }
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287$as_echo "$ac_file" >&6; }
3288ac_exeext=$ac_cv_exeext
3289
3290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291ac_clean_files=$ac_clean_files_save
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293$as_echo_n "checking for suffix of executables... " >&6; }
3294if { { ac_try="$ac_link"
3295case "(($ac_try" in
3296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297  *) ac_try_echo=$ac_try;;
3298esac
3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300$as_echo "$ac_try_echo"; } >&5
3301  (eval "$ac_link") 2>&5
3302  ac_status=$?
3303  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304  test $ac_status = 0; }; then :
3305  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3307# work properly (i.e., refer to `conftest.exe'), while it won't with
3308# `rm'.
3309for ac_file in conftest.exe conftest conftest.*; do
3310  test -f "$ac_file" || continue
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	  break;;
3315    * ) break;;
3316  esac
3317done
3318else
3319  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322See \`config.log' for more details" "$LINENO" 5; }
3323fi
3324rm -f conftest conftest$ac_cv_exeext
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326$as_echo "$ac_cv_exeext" >&6; }
3327
3328rm -f conftest.$ac_ext
3329EXEEXT=$ac_cv_exeext
3330ac_exeext=$EXEEXT
3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333#include <stdio.h>
3334int
3335main ()
3336{
3337FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344ac_clean_files="$ac_clean_files conftest.out"
3345# Check that the compiler produces executables we can run.  If not, either
3346# the compiler is broken, or we cross compile.
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348$as_echo_n "checking whether we are cross compiling... " >&6; }
3349if test "$cross_compiling" != yes; then
3350  { { ac_try="$ac_link"
3351case "(($ac_try" in
3352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353  *) ac_try_echo=$ac_try;;
3354esac
3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356$as_echo "$ac_try_echo"; } >&5
3357  (eval "$ac_link") 2>&5
3358  ac_status=$?
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361  if { ac_try='./conftest$ac_cv_exeext'
3362  { { case "(($ac_try" in
3363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364  *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
3368  (eval "$ac_try") 2>&5
3369  ac_status=$?
3370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371  test $ac_status = 0; }; }; then
3372    cross_compiling=no
3373  else
3374    if test "$cross_compiling" = maybe; then
3375	cross_compiling=yes
3376    else
3377	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error $? "cannot run C compiled programs.
3380If you meant to cross compile, use \`--host'.
3381See \`config.log' for more details" "$LINENO" 5; }
3382    fi
3383  fi
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386$as_echo "$cross_compiling" >&6; }
3387
3388rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389ac_clean_files=$ac_clean_files_save
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391$as_echo_n "checking for suffix of object files... " >&6; }
3392if ${ac_cv_objext+:} false; then :
3393  $as_echo_n "(cached) " >&6
3394else
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397
3398int
3399main ()
3400{
3401
3402  ;
3403  return 0;
3404}
3405_ACEOF
3406rm -f conftest.o conftest.obj
3407if { { ac_try="$ac_compile"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_compile") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  for ac_file in conftest.o conftest.obj conftest.*; do
3419  test -f "$ac_file" || continue;
3420  case $ac_file in
3421    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423       break;;
3424  esac
3425done
3426else
3427  $as_echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot compute suffix of object files: cannot compile
3433See \`config.log' for more details" "$LINENO" 5; }
3434fi
3435rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438$as_echo "$ac_cv_objext" >&6; }
3439OBJEXT=$ac_cv_objext
3440ac_objext=$OBJEXT
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443if ${ac_cv_c_compiler_gnu+:} false; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448
3449int
3450main ()
3451{
3452#ifndef __GNUC__
3453       choke me
3454#endif
3455
3456  ;
3457  return 0;
3458}
3459_ACEOF
3460if ac_fn_c_try_compile "$LINENO"; then :
3461  ac_compiler_gnu=yes
3462else
3463  ac_compiler_gnu=no
3464fi
3465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471if test $ac_compiler_gnu = yes; then
3472  GCC=yes
3473else
3474  GCC=
3475fi
3476ac_test_CFLAGS=${CFLAGS+set}
3477ac_save_CFLAGS=$CFLAGS
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479$as_echo_n "checking whether $CC accepts -g... " >&6; }
3480if ${ac_cv_prog_cc_g+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  ac_save_c_werror_flag=$ac_c_werror_flag
3484   ac_c_werror_flag=yes
3485   ac_cv_prog_cc_g=no
3486   CFLAGS="-g"
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_compile "$LINENO"; then :
3499  ac_cv_prog_cc_g=yes
3500else
3501  CFLAGS=""
3502      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503/* end confdefs.h.  */
3504
3505int
3506main ()
3507{
3508
3509  ;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_compile "$LINENO"; then :
3514
3515else
3516  ac_c_werror_flag=$ac_save_c_werror_flag
3517	 CFLAGS="-g"
3518	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519/* end confdefs.h.  */
3520
3521int
3522main ()
3523{
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529if ac_fn_c_try_compile "$LINENO"; then :
3530  ac_cv_prog_cc_g=yes
3531fi
3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533fi
3534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535fi
3536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537   ac_c_werror_flag=$ac_save_c_werror_flag
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540$as_echo "$ac_cv_prog_cc_g" >&6; }
3541if test "$ac_test_CFLAGS" = set; then
3542  CFLAGS=$ac_save_CFLAGS
3543elif test $ac_cv_prog_cc_g = yes; then
3544  if test "$GCC" = yes; then
3545    CFLAGS="-g -O2"
3546  else
3547    CFLAGS="-g"
3548  fi
3549else
3550  if test "$GCC" = yes; then
3551    CFLAGS="-O2"
3552  else
3553    CFLAGS=
3554  fi
3555fi
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558if ${ac_cv_prog_cc_c89+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  ac_cv_prog_cc_c89=no
3562ac_save_CC=$CC
3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564/* end confdefs.h.  */
3565#include <stdarg.h>
3566#include <stdio.h>
3567struct stat;
3568/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3569struct buf { int x; };
3570FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571static char *e (p, i)
3572     char **p;
3573     int i;
3574{
3575  return p[i];
3576}
3577static char *f (char * (*g) (char **, int), char **p, ...)
3578{
3579  char *s;
3580  va_list v;
3581  va_start (v,p);
3582  s = g (p, va_arg (v,int));
3583  va_end (v);
3584  return s;
3585}
3586
3587/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3588   function prototypes and stuff, but not '\xHH' hex character constants.
3589   These don't provoke an error unfortunately, instead are silently treated
3590   as 'x'.  The following induces an error, until -std is added to get
3591   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3592   array size at least.  It's necessary to write '\x00'==0 to get something
3593   that's true only with -std.  */
3594int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597   inside strings and character constants.  */
3598#define FOO(x) 'x'
3599int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601int test (int i, double x);
3602struct s1 {int (*f) (int a);};
3603struct s2 {int (*f) (double a);};
3604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605int argc;
3606char **argv;
3607int
3608main ()
3609{
3610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617do
3618  CC="$ac_save_CC $ac_arg"
3619  if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_cv_prog_cc_c89=$ac_arg
3621fi
3622rm -f core conftest.err conftest.$ac_objext
3623  test "x$ac_cv_prog_cc_c89" != "xno" && break
3624done
3625rm -f conftest.$ac_ext
3626CC=$ac_save_CC
3627
3628fi
3629# AC_CACHE_VAL
3630case "x$ac_cv_prog_cc_c89" in
3631  x)
3632    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633$as_echo "none needed" >&6; } ;;
3634  xno)
3635    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636$as_echo "unsupported" >&6; } ;;
3637  *)
3638    CC="$CC $ac_cv_prog_cc_c89"
3639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641esac
3642if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644fi
3645
3646ac_ext=c
3647ac_cpp='$CPP $CPPFLAGS'
3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659if ${am_cv_prog_cc_c_o+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673  # Make sure it works both with $CC and with simple cc.
3674  # Following AC_PROG_CC_C_O, we do the test twice because some
3675  # compilers refuse to overwrite an existing .o file with -o,
3676  # though they will create one.
3677  am_cv_prog_cc_c_o=yes
3678  for am_i in 1 2; do
3679    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3681   ac_status=$?
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } \
3684         && test -f conftest2.$ac_objext; then
3685      : OK
3686    else
3687      am_cv_prog_cc_c_o=no
3688      break
3689    fi
3690  done
3691  rm -f core conftest*
3692  unset am_i
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695$as_echo "$am_cv_prog_cc_c_o" >&6; }
3696if test "$am_cv_prog_cc_c_o" != yes; then
3697   # Losing compiler, so override with the script.
3698   # FIXME: It is wrong to rewrite CC.
3699   # But if we don't then we get into trouble of one sort or another.
3700   # A longer-term fix would be to have automake use am__CC in this case,
3701   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702   CC="$am_aux_dir/compile $CC"
3703fi
3704ac_ext=c
3705ac_cpp='$CPP $CPPFLAGS'
3706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711depcc="$CC"   am_compiler_list=
3712
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3714$as_echo_n "checking dependency style of $depcc... " >&6; }
3715if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3716  $as_echo_n "(cached) " >&6
3717else
3718  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3719  # We make a subdir and do the tests there.  Otherwise we can end up
3720  # making bogus files that we don't know about and never remove.  For
3721  # instance it was reported that on HP-UX the gcc test will end up
3722  # making a dummy file named 'D' -- because '-MD' means "put the output
3723  # in D".
3724  rm -rf conftest.dir
3725  mkdir conftest.dir
3726  # Copy depcomp to subdir because otherwise we won't find it if we're
3727  # using a relative directory.
3728  cp "$am_depcomp" conftest.dir
3729  cd conftest.dir
3730  # We will build objects and dependencies in a subdirectory because
3731  # it helps to detect inapplicable dependency modes.  For instance
3732  # both Tru64's cc and ICC support -MD to output dependencies as a
3733  # side effect of compilation, but ICC will put the dependencies in
3734  # the current directory while Tru64 will put them in the object
3735  # directory.
3736  mkdir sub
3737
3738  am_cv_CC_dependencies_compiler_type=none
3739  if test "$am_compiler_list" = ""; then
3740     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3741  fi
3742  am__universal=false
3743  case " $depcc " in #(
3744     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3745     esac
3746
3747  for depmode in $am_compiler_list; do
3748    # Setup a source with many dependencies, because some compilers
3749    # like to wrap large dependency lists on column 80 (with \), and
3750    # we should not choose a depcomp mode which is confused by this.
3751    #
3752    # We need to recreate these files for each test, as the compiler may
3753    # overwrite some of them when testing with obscure command lines.
3754    # This happens at least with the AIX C compiler.
3755    : > sub/conftest.c
3756    for i in 1 2 3 4 5 6; do
3757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3758      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3759      # Solaris 10 /bin/sh.
3760      echo '/* dummy */' > sub/conftst$i.h
3761    done
3762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763
3764    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3765    # mode.  It turns out that the SunPro C++ compiler does not properly
3766    # handle '-M -o', and we need to detect this.  Also, some Intel
3767    # versions had trouble with output in subdirs.
3768    am__obj=sub/conftest.${OBJEXT-o}
3769    am__minus_obj="-o $am__obj"
3770    case $depmode in
3771    gcc)
3772      # This depmode causes a compiler race in universal mode.
3773      test "$am__universal" = false || continue
3774      ;;
3775    nosideeffect)
3776      # After this tag, mechanisms are not by side-effect, so they'll
3777      # only be used when explicitly requested.
3778      if test "x$enable_dependency_tracking" = xyes; then
3779	continue
3780      else
3781	break
3782      fi
3783      ;;
3784    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3785      # This compiler won't grok '-c -o', but also, the minuso test has
3786      # not run yet.  These depmodes are late enough in the game, and
3787      # so weak that their functioning should not be impacted.
3788      am__obj=conftest.${OBJEXT-o}
3789      am__minus_obj=
3790      ;;
3791    none) break ;;
3792    esac
3793    if depmode=$depmode \
3794       source=sub/conftest.c object=$am__obj \
3795       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3796       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3797         >/dev/null 2>conftest.err &&
3798       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3800       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3802      # icc doesn't choke on unknown options, it will just issue warnings
3803      # or remarks (even with -Werror).  So we grep stderr for any message
3804      # that says an option was ignored or not supported.
3805      # When given -MP, icc 7.0 and 7.1 complain thusly:
3806      #   icc: Command line warning: ignoring option '-M'; no argument required
3807      # The diagnosis changed in icc 8.0:
3808      #   icc: Command line remark: option '-MP' not supported
3809      if (grep 'ignoring option' conftest.err ||
3810          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3811        am_cv_CC_dependencies_compiler_type=$depmode
3812        break
3813      fi
3814    fi
3815  done
3816
3817  cd ..
3818  rm -rf conftest.dir
3819else
3820  am_cv_CC_dependencies_compiler_type=none
3821fi
3822
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3825$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827
3828 if
3829  test "x$enable_dependency_tracking" != xno \
3830  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3831  am__fastdepCC_TRUE=
3832  am__fastdepCC_FALSE='#'
3833else
3834  am__fastdepCC_TRUE='#'
3835  am__fastdepCC_FALSE=
3836fi
3837
3838
3839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3840$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3841if ${ac_cv_prog_cc_c99+:} false; then :
3842  $as_echo_n "(cached) " >&6
3843else
3844  ac_cv_prog_cc_c99=no
3845ac_save_CC=$CC
3846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h.  */
3848#include <stdarg.h>
3849#include <stdbool.h>
3850#include <stdlib.h>
3851#include <wchar.h>
3852#include <stdio.h>
3853
3854// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3855#define debug(...) fprintf (stderr, __VA_ARGS__)
3856#define showlist(...) puts (#__VA_ARGS__)
3857#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3858static void
3859test_varargs_macros (void)
3860{
3861  int x = 1234;
3862  int y = 5678;
3863  debug ("Flag");
3864  debug ("X = %d\n", x);
3865  showlist (The first, second, and third items.);
3866  report (x>y, "x is %d but y is %d", x, y);
3867}
3868
3869// Check long long types.
3870#define BIG64 18446744073709551615ull
3871#define BIG32 4294967295ul
3872#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3873#if !BIG_OK
3874  your preprocessor is broken;
3875#endif
3876#if BIG_OK
3877#else
3878  your preprocessor is broken;
3879#endif
3880static long long int bignum = -9223372036854775807LL;
3881static unsigned long long int ubignum = BIG64;
3882
3883struct incomplete_array
3884{
3885  int datasize;
3886  double data[];
3887};
3888
3889struct named_init {
3890  int number;
3891  const wchar_t *name;
3892  double average;
3893};
3894
3895typedef const char *ccp;
3896
3897static inline int
3898test_restrict (ccp restrict text)
3899{
3900  // See if C++-style comments work.
3901  // Iterate through items via the restricted pointer.
3902  // Also check for declarations in for loops.
3903  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3904    continue;
3905  return 0;
3906}
3907
3908// Check varargs and va_copy.
3909static void
3910test_varargs (const char *format, ...)
3911{
3912  va_list args;
3913  va_start (args, format);
3914  va_list args_copy;
3915  va_copy (args_copy, args);
3916
3917  const char *str;
3918  int number;
3919  float fnumber;
3920
3921  while (*format)
3922    {
3923      switch (*format++)
3924	{
3925	case 's': // string
3926	  str = va_arg (args_copy, const char *);
3927	  break;
3928	case 'd': // int
3929	  number = va_arg (args_copy, int);
3930	  break;
3931	case 'f': // float
3932	  fnumber = va_arg (args_copy, double);
3933	  break;
3934	default:
3935	  break;
3936	}
3937    }
3938  va_end (args_copy);
3939  va_end (args);
3940}
3941
3942int
3943main ()
3944{
3945
3946  // Check bool.
3947  _Bool success = false;
3948
3949  // Check restrict.
3950  if (test_restrict ("String literal") == 0)
3951    success = true;
3952  char *restrict newvar = "Another string";
3953
3954  // Check varargs.
3955  test_varargs ("s, d' f .", "string", 65, 34.234);
3956  test_varargs_macros ();
3957
3958  // Check flexible array members.
3959  struct incomplete_array *ia =
3960    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3961  ia->datasize = 10;
3962  for (int i = 0; i < ia->datasize; ++i)
3963    ia->data[i] = i * 1.234;
3964
3965  // Check named initializers.
3966  struct named_init ni = {
3967    .number = 34,
3968    .name = L"Test wide string",
3969    .average = 543.34343,
3970  };
3971
3972  ni.number = 58;
3973
3974  int dynamic_array[ni.number];
3975  dynamic_array[ni.number - 1] = 543;
3976
3977  // work around unused variable warnings
3978  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3979	  || dynamic_array[ni.number - 1] != 543);
3980
3981  ;
3982  return 0;
3983}
3984_ACEOF
3985for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3986do
3987  CC="$ac_save_CC $ac_arg"
3988  if ac_fn_c_try_compile "$LINENO"; then :
3989  ac_cv_prog_cc_c99=$ac_arg
3990fi
3991rm -f core conftest.err conftest.$ac_objext
3992  test "x$ac_cv_prog_cc_c99" != "xno" && break
3993done
3994rm -f conftest.$ac_ext
3995CC=$ac_save_CC
3996
3997fi
3998# AC_CACHE_VAL
3999case "x$ac_cv_prog_cc_c99" in
4000  x)
4001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002$as_echo "none needed" >&6; } ;;
4003  xno)
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005$as_echo "unsupported" >&6; } ;;
4006  *)
4007    CC="$CC $ac_cv_prog_cc_c99"
4008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4009$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4010esac
4011if test "x$ac_cv_prog_cc_c99" != xno; then :
4012
4013fi
4014
4015
4016
4017ac_ext=c
4018ac_cpp='$CPP $CPPFLAGS'
4019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023$as_echo_n "checking how to run the C preprocessor... " >&6; }
4024# On Suns, sometimes $CPP names a directory.
4025if test -n "$CPP" && test -d "$CPP"; then
4026  CPP=
4027fi
4028if test -z "$CPP"; then
4029  if ${ac_cv_prog_CPP+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032      # Double quotes because CPP needs to be expanded
4033    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4034    do
4035      ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#ifdef __STDC__
4047# include <limits.h>
4048#else
4049# include <assert.h>
4050#endif
4051		     Syntax error
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055else
4056  # Broken: fails on valid input.
4057continue
4058fi
4059rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061  # OK, works on sane cases.  Now check whether nonexistent headers
4062  # can be detected and how.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <ac_nonexistent.h>
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068  # Broken: success on invalid input.
4069continue
4070else
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.i conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then :
4081  break
4082fi
4083
4084    done
4085    ac_cv_prog_CPP=$CPP
4086
4087fi
4088  CPP=$ac_cv_prog_CPP
4089else
4090  ac_cv_prog_CPP=$CPP
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093$as_echo "$CPP" >&6; }
4094ac_preproc_ok=false
4095for ac_c_preproc_warn_flag in '' yes
4096do
4097  # Use a header file that comes with gcc, so configuring glibc
4098  # with a fresh cross-compiler works.
4099  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100  # <limits.h> exists even on freestanding compilers.
4101  # On the NeXT, cc -E runs the code through the compiler's parser,
4102  # not just through cpp. "Syntax error" is here to catch this case.
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105#ifdef __STDC__
4106# include <limits.h>
4107#else
4108# include <assert.h>
4109#endif
4110		     Syntax error
4111_ACEOF
4112if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114else
4115  # Broken: fails on valid input.
4116continue
4117fi
4118rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120  # OK, works on sane cases.  Now check whether nonexistent headers
4121  # can be detected and how.
4122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h.  */
4124#include <ac_nonexistent.h>
4125_ACEOF
4126if ac_fn_c_try_cpp "$LINENO"; then :
4127  # Broken: success on invalid input.
4128continue
4129else
4130  # Passes both tests.
4131ac_preproc_ok=:
4132break
4133fi
4134rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136done
4137# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138rm -f conftest.i conftest.err conftest.$ac_ext
4139if $ac_preproc_ok; then :
4140
4141else
4142  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4145See \`config.log' for more details" "$LINENO" 5; }
4146fi
4147
4148ac_ext=c
4149ac_cpp='$CPP $CPPFLAGS'
4150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157if ${ac_cv_path_GREP+:} false; then :
4158  $as_echo_n "(cached) " >&6
4159else
4160  if test -z "$GREP"; then
4161  ac_path_GREP_found=false
4162  # Loop through the user's path and test for each of PROGNAME-LIST
4163  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165do
4166  IFS=$as_save_IFS
4167  test -z "$as_dir" && as_dir=.
4168    for ac_prog in grep ggrep; do
4169    for ac_exec_ext in '' $ac_executable_extensions; do
4170      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4171      as_fn_executable_p "$ac_path_GREP" || continue
4172# Check for GNU ac_path_GREP and select it if it is found.
4173  # Check for GNU $ac_path_GREP
4174case `"$ac_path_GREP" --version 2>&1` in
4175*GNU*)
4176  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177*)
4178  ac_count=0
4179  $as_echo_n 0123456789 >"conftest.in"
4180  while :
4181  do
4182    cat "conftest.in" "conftest.in" >"conftest.tmp"
4183    mv "conftest.tmp" "conftest.in"
4184    cp "conftest.in" "conftest.nl"
4185    $as_echo 'GREP' >> "conftest.nl"
4186    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188    as_fn_arith $ac_count + 1 && ac_count=$as_val
4189    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190      # Best one so far, save it but keep looking for a better one
4191      ac_cv_path_GREP="$ac_path_GREP"
4192      ac_path_GREP_max=$ac_count
4193    fi
4194    # 10*(2^10) chars as input seems more than enough
4195    test $ac_count -gt 10 && break
4196  done
4197  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198esac
4199
4200      $ac_path_GREP_found && break 3
4201    done
4202  done
4203  done
4204IFS=$as_save_IFS
4205  if test -z "$ac_cv_path_GREP"; then
4206    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207  fi
4208else
4209  ac_cv_path_GREP=$GREP
4210fi
4211
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214$as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP="$ac_cv_path_GREP"
4216
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219$as_echo_n "checking for egrep... " >&6; }
4220if ${ac_cv_path_EGREP+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4224   then ac_cv_path_EGREP="$GREP -E"
4225   else
4226     if test -z "$EGREP"; then
4227  ac_path_EGREP_found=false
4228  # Loop through the user's path and test for each of PROGNAME-LIST
4229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231do
4232  IFS=$as_save_IFS
4233  test -z "$as_dir" && as_dir=.
4234    for ac_prog in egrep; do
4235    for ac_exec_ext in '' $ac_executable_extensions; do
4236      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237      as_fn_executable_p "$ac_path_EGREP" || continue
4238# Check for GNU ac_path_EGREP and select it if it is found.
4239  # Check for GNU $ac_path_EGREP
4240case `"$ac_path_EGREP" --version 2>&1` in
4241*GNU*)
4242  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4243*)
4244  ac_count=0
4245  $as_echo_n 0123456789 >"conftest.in"
4246  while :
4247  do
4248    cat "conftest.in" "conftest.in" >"conftest.tmp"
4249    mv "conftest.tmp" "conftest.in"
4250    cp "conftest.in" "conftest.nl"
4251    $as_echo 'EGREP' >> "conftest.nl"
4252    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254    as_fn_arith $ac_count + 1 && ac_count=$as_val
4255    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256      # Best one so far, save it but keep looking for a better one
4257      ac_cv_path_EGREP="$ac_path_EGREP"
4258      ac_path_EGREP_max=$ac_count
4259    fi
4260    # 10*(2^10) chars as input seems more than enough
4261    test $ac_count -gt 10 && break
4262  done
4263  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4264esac
4265
4266      $ac_path_EGREP_found && break 3
4267    done
4268  done
4269  done
4270IFS=$as_save_IFS
4271  if test -z "$ac_cv_path_EGREP"; then
4272    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273  fi
4274else
4275  ac_cv_path_EGREP=$EGREP
4276fi
4277
4278   fi
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281$as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP="$ac_cv_path_EGREP"
4283
4284
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4286$as_echo_n "checking for ANSI C header files... " >&6; }
4287if ${ac_cv_header_stdc+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h.  */
4292#include <stdlib.h>
4293#include <stdarg.h>
4294#include <string.h>
4295#include <float.h>
4296
4297int
4298main ()
4299{
4300
4301  ;
4302  return 0;
4303}
4304_ACEOF
4305if ac_fn_c_try_compile "$LINENO"; then :
4306  ac_cv_header_stdc=yes
4307else
4308  ac_cv_header_stdc=no
4309fi
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <string.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320  $EGREP "memchr" >/dev/null 2>&1; then :
4321
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f conftest*
4326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332/* end confdefs.h.  */
4333#include <stdlib.h>
4334
4335_ACEOF
4336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337  $EGREP "free" >/dev/null 2>&1; then :
4338
4339else
4340  ac_cv_header_stdc=no
4341fi
4342rm -f conftest*
4343
4344fi
4345
4346if test $ac_cv_header_stdc = yes; then
4347  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348  if test "$cross_compiling" = yes; then :
4349  :
4350else
4351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352/* end confdefs.h.  */
4353#include <ctype.h>
4354#include <stdlib.h>
4355#if ((' ' & 0x0FF) == 0x020)
4356# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358#else
4359# define ISLOWER(c) \
4360		   (('a' <= (c) && (c) <= 'i') \
4361		     || ('j' <= (c) && (c) <= 'r') \
4362		     || ('s' <= (c) && (c) <= 'z'))
4363# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364#endif
4365
4366#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367int
4368main ()
4369{
4370  int i;
4371  for (i = 0; i < 256; i++)
4372    if (XOR (islower (i), ISLOWER (i))
4373	|| toupper (i) != TOUPPER (i))
4374      return 2;
4375  return 0;
4376}
4377_ACEOF
4378if ac_fn_c_try_run "$LINENO"; then :
4379
4380else
4381  ac_cv_header_stdc=no
4382fi
4383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4384  conftest.$ac_objext conftest.beam conftest.$ac_ext
4385fi
4386
4387fi
4388fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4390$as_echo "$ac_cv_header_stdc" >&6; }
4391if test $ac_cv_header_stdc = yes; then
4392
4393$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4394
4395fi
4396
4397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4399		  inttypes.h stdint.h unistd.h
4400do :
4401  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4403"
4404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4405  cat >>confdefs.h <<_ACEOF
4406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407_ACEOF
4408
4409fi
4410
4411done
4412
4413
4414
4415
4416
4417
4418ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4419if test "x$ac_cv_have_decl___clang__" = xyes; then :
4420  CLANGCC="yes"
4421else
4422  CLANGCC="no"
4423fi
4424
4425ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4426if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4427  INTELCC="yes"
4428else
4429  INTELCC="no"
4430fi
4431
4432ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4433if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4434  SUNCC="yes"
4435else
4436  SUNCC="no"
4437fi
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4448	if test -n "$ac_tool_prefix"; then
4449  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4450set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
4453if ${ac_cv_path_PKG_CONFIG+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  case $PKG_CONFIG in
4457  [\\/]* | ?:[\\/]*)
4458  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4459  ;;
4460  *)
4461  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464  IFS=$as_save_IFS
4465  test -z "$as_dir" && as_dir=.
4466    for ac_exec_ext in '' $ac_executable_extensions; do
4467  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470    break 2
4471  fi
4472done
4473  done
4474IFS=$as_save_IFS
4475
4476  ;;
4477esac
4478fi
4479PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4480if test -n "$PKG_CONFIG"; then
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4482$as_echo "$PKG_CONFIG" >&6; }
4483else
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_path_PKG_CONFIG"; then
4491  ac_pt_PKG_CONFIG=$PKG_CONFIG
4492  # Extract the first word of "pkg-config", so it can be a program name with args.
4493set dummy pkg-config; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  case $ac_pt_PKG_CONFIG in
4500  [\\/]* | ?:[\\/]*)
4501  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4502  ;;
4503  *)
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519  ;;
4520esac
4521fi
4522ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4523if test -n "$ac_pt_PKG_CONFIG"; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4525$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4526else
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531  if test "x$ac_pt_PKG_CONFIG" = x; then
4532    PKG_CONFIG=""
4533  else
4534    case $cross_compiling:$ac_tool_warned in
4535yes:)
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538ac_tool_warned=yes ;;
4539esac
4540    PKG_CONFIG=$ac_pt_PKG_CONFIG
4541  fi
4542else
4543  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4544fi
4545
4546fi
4547if test -n "$PKG_CONFIG"; then
4548	_pkg_min_version=0.9.0
4549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4550$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4551	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4552		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553$as_echo "yes" >&6; }
4554	else
4555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556$as_echo "no" >&6; }
4557		PKG_CONFIG=""
4558	fi
4559fi
4560# Make sure we can run config.sub.
4561$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4562  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565$as_echo_n "checking build system type... " >&6; }
4566if ${ac_cv_build+:} false; then :
4567  $as_echo_n "(cached) " >&6
4568else
4569  ac_build_alias=$build_alias
4570test "x$ac_build_alias" = x &&
4571  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4572test "x$ac_build_alias" = x &&
4573  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4574ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4576
4577fi
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579$as_echo "$ac_cv_build" >&6; }
4580case $ac_cv_build in
4581*-*-*) ;;
4582*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4583esac
4584build=$ac_cv_build
4585ac_save_IFS=$IFS; IFS='-'
4586set x $ac_cv_build
4587shift
4588build_cpu=$1
4589build_vendor=$2
4590shift; shift
4591# Remember, the first character of IFS is used to create $*,
4592# except with old shells:
4593build_os=$*
4594IFS=$ac_save_IFS
4595case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4596
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599$as_echo_n "checking host system type... " >&6; }
4600if ${ac_cv_host+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  if test "x$host_alias" = x; then
4604  ac_cv_host=$ac_cv_build
4605else
4606  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4608fi
4609
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612$as_echo "$ac_cv_host" >&6; }
4613case $ac_cv_host in
4614*-*-*) ;;
4615*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4616esac
4617host=$ac_cv_host
4618ac_save_IFS=$IFS; IFS='-'
4619set x $ac_cv_host
4620shift
4621host_cpu=$1
4622host_vendor=$2
4623shift; shift
4624# Remember, the first character of IFS is used to create $*,
4625# except with old shells:
4626host_os=$*
4627IFS=$ac_save_IFS
4628case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4629
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633if ${ac_cv_path_SED+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637     for ac_i in 1 2 3 4 5 6 7; do
4638       ac_script="$ac_script$as_nl$ac_script"
4639     done
4640     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641     { ac_script=; unset ac_script;}
4642     if test -z "$SED"; then
4643  ac_path_SED_found=false
4644  # Loop through the user's path and test for each of PROGNAME-LIST
4645  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650    for ac_prog in sed gsed; do
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653      as_fn_executable_p "$ac_path_SED" || continue
4654# Check for GNU ac_path_SED and select it if it is found.
4655  # Check for GNU $ac_path_SED
4656case `"$ac_path_SED" --version 2>&1` in
4657*GNU*)
4658  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659*)
4660  ac_count=0
4661  $as_echo_n 0123456789 >"conftest.in"
4662  while :
4663  do
4664    cat "conftest.in" "conftest.in" >"conftest.tmp"
4665    mv "conftest.tmp" "conftest.in"
4666    cp "conftest.in" "conftest.nl"
4667    $as_echo '' >> "conftest.nl"
4668    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670    as_fn_arith $ac_count + 1 && ac_count=$as_val
4671    if test $ac_count -gt ${ac_path_SED_max-0}; then
4672      # Best one so far, save it but keep looking for a better one
4673      ac_cv_path_SED="$ac_path_SED"
4674      ac_path_SED_max=$ac_count
4675    fi
4676    # 10*(2^10) chars as input seems more than enough
4677    test $ac_count -gt 10 && break
4678  done
4679  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680esac
4681
4682      $ac_path_SED_found && break 3
4683    done
4684  done
4685  done
4686IFS=$as_save_IFS
4687  if test -z "$ac_cv_path_SED"; then
4688    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689  fi
4690else
4691  ac_cv_path_SED=$SED
4692fi
4693
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696$as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698  rm -f conftest.sed
4699
4700
4701
4702
4703
4704
4705# Check whether --enable-selective-werror was given.
4706if test "${enable_selective_werror+set}" = set; then :
4707  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4708else
4709  SELECTIVE_WERROR=yes
4710fi
4711
4712
4713
4714
4715
4716# -v is too short to test reliably with XORG_TESTSET_CFLAG
4717if test "x$SUNCC" = "xyes"; then
4718    BASE_CFLAGS="-v"
4719else
4720    BASE_CFLAGS=""
4721fi
4722
4723# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747/* end confdefs.h.  */
4748int i;
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  xorg_cv_cc_flag_unknown_warning_option=yes
4752else
4753  xorg_cv_cc_flag_unknown_warning_option=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760	CFLAGS="$xorg_testset_save_CFLAGS"
4761fi
4762
4763if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766	fi
4767	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771  $as_echo_n "(cached) " >&6
4772else
4773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774/* end confdefs.h.  */
4775int i;
4776_ACEOF
4777if ac_fn_c_try_compile "$LINENO"; then :
4778  xorg_cv_cc_flag_unused_command_line_argument=yes
4779else
4780  xorg_cv_cc_flag_unused_command_line_argument=no
4781fi
4782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787	CFLAGS="$xorg_testset_save_CFLAGS"
4788fi
4789
4790found="no"
4791
4792	if test $found = "no" ; then
4793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795		fi
4796
4797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799		fi
4800
4801		CFLAGS="$CFLAGS -Wall"
4802
4803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4804$as_echo_n "checking if $CC supports -Wall... " >&6; }
4805		cacheid=xorg_cv_cc_flag__Wall
4806		if eval \${$cacheid+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811int i;
4812int
4813main ()
4814{
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820if ac_fn_c_try_link "$LINENO"; then :
4821  eval $cacheid=yes
4822else
4823  eval $cacheid=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext \
4826    conftest$ac_exeext conftest.$ac_ext
4827fi
4828
4829
4830		CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832		eval supported=\$$cacheid
4833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834$as_echo "$supported" >&6; }
4835		if test "$supported" = "yes" ; then
4836			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4837			found="yes"
4838		fi
4839	fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862  $as_echo_n "(cached) " >&6
4863else
4864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865/* end confdefs.h.  */
4866int i;
4867_ACEOF
4868if ac_fn_c_try_compile "$LINENO"; then :
4869  xorg_cv_cc_flag_unknown_warning_option=yes
4870else
4871  xorg_cv_cc_flag_unknown_warning_option=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878	CFLAGS="$xorg_testset_save_CFLAGS"
4879fi
4880
4881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884	fi
4885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893int i;
4894_ACEOF
4895if ac_fn_c_try_compile "$LINENO"; then :
4896  xorg_cv_cc_flag_unused_command_line_argument=yes
4897else
4898  xorg_cv_cc_flag_unused_command_line_argument=no
4899fi
4900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905	CFLAGS="$xorg_testset_save_CFLAGS"
4906fi
4907
4908found="no"
4909
4910	if test $found = "no" ; then
4911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913		fi
4914
4915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917		fi
4918
4919		CFLAGS="$CFLAGS -Wpointer-arith"
4920
4921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4922$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4923		cacheid=xorg_cv_cc_flag__Wpointer_arith
4924		if eval \${$cacheid+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h.  */
4929int i;
4930int
4931main ()
4932{
4933
4934  ;
4935  return 0;
4936}
4937_ACEOF
4938if ac_fn_c_try_link "$LINENO"; then :
4939  eval $cacheid=yes
4940else
4941  eval $cacheid=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext \
4944    conftest$ac_exeext conftest.$ac_ext
4945fi
4946
4947
4948		CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950		eval supported=\$$cacheid
4951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952$as_echo "$supported" >&6; }
4953		if test "$supported" = "yes" ; then
4954			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4955			found="yes"
4956		fi
4957	fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973xorg_testset_save_CFLAGS="$CFLAGS"
4974
4975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4980  $as_echo_n "(cached) " >&6
4981else
4982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984int i;
4985_ACEOF
4986if ac_fn_c_try_compile "$LINENO"; then :
4987  xorg_cv_cc_flag_unknown_warning_option=yes
4988else
4989  xorg_cv_cc_flag_unknown_warning_option=no
4990fi
4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4996	CFLAGS="$xorg_testset_save_CFLAGS"
4997fi
4998
4999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002	fi
5003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011int i;
5012_ACEOF
5013if ac_fn_c_try_compile "$LINENO"; then :
5014  xorg_cv_cc_flag_unused_command_line_argument=yes
5015else
5016  xorg_cv_cc_flag_unused_command_line_argument=no
5017fi
5018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5023	CFLAGS="$xorg_testset_save_CFLAGS"
5024fi
5025
5026found="no"
5027
5028	if test $found = "no" ; then
5029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031		fi
5032
5033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035		fi
5036
5037		CFLAGS="$CFLAGS -Wmissing-declarations"
5038
5039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5040$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5041		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5042		if eval \${$cacheid+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048int
5049main ()
5050{
5051
5052  ;
5053  return 0;
5054}
5055_ACEOF
5056if ac_fn_c_try_link "$LINENO"; then :
5057  eval $cacheid=yes
5058else
5059  eval $cacheid=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext \
5062    conftest$ac_exeext conftest.$ac_ext
5063fi
5064
5065
5066		CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068		eval supported=\$$cacheid
5069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070$as_echo "$supported" >&6; }
5071		if test "$supported" = "yes" ; then
5072			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5073			found="yes"
5074		fi
5075	fi
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102int i;
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"; then :
5105  xorg_cv_cc_flag_unknown_warning_option=yes
5106else
5107  xorg_cv_cc_flag_unknown_warning_option=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114	CFLAGS="$xorg_testset_save_CFLAGS"
5115fi
5116
5117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120	fi
5121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5125  $as_echo_n "(cached) " >&6
5126else
5127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129int i;
5130_ACEOF
5131if ac_fn_c_try_compile "$LINENO"; then :
5132  xorg_cv_cc_flag_unused_command_line_argument=yes
5133else
5134  xorg_cv_cc_flag_unused_command_line_argument=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137fi
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141	CFLAGS="$xorg_testset_save_CFLAGS"
5142fi
5143
5144found="no"
5145
5146	if test $found = "no" ; then
5147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149		fi
5150
5151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153		fi
5154
5155		CFLAGS="$CFLAGS -Wformat=2"
5156
5157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5158$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5159		cacheid=xorg_cv_cc_flag__Wformat_2
5160		if eval \${$cacheid+:} false; then :
5161  $as_echo_n "(cached) " >&6
5162else
5163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164/* end confdefs.h.  */
5165int i;
5166int
5167main ()
5168{
5169
5170  ;
5171  return 0;
5172}
5173_ACEOF
5174if ac_fn_c_try_link "$LINENO"; then :
5175  eval $cacheid=yes
5176else
5177  eval $cacheid=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext \
5180    conftest$ac_exeext conftest.$ac_ext
5181fi
5182
5183
5184		CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186		eval supported=\$$cacheid
5187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188$as_echo "$supported" >&6; }
5189		if test "$supported" = "yes" ; then
5190			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5191			found="yes"
5192		fi
5193	fi
5194
5195	if test $found = "no" ; then
5196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198		fi
5199
5200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202		fi
5203
5204		CFLAGS="$CFLAGS -Wformat"
5205
5206		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5207$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5208		cacheid=xorg_cv_cc_flag__Wformat
5209		if eval \${$cacheid+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213/* end confdefs.h.  */
5214int i;
5215int
5216main ()
5217{
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223if ac_fn_c_try_link "$LINENO"; then :
5224  eval $cacheid=yes
5225else
5226  eval $cacheid=no
5227fi
5228rm -f core conftest.err conftest.$ac_objext \
5229    conftest$ac_exeext conftest.$ac_ext
5230fi
5231
5232
5233		CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235		eval supported=\$$cacheid
5236		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237$as_echo "$supported" >&6; }
5238		if test "$supported" = "yes" ; then
5239			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5240			found="yes"
5241		fi
5242	fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267  $as_echo_n "(cached) " >&6
5268else
5269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271int i;
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
5274  xorg_cv_cc_flag_unknown_warning_option=yes
5275else
5276  xorg_cv_cc_flag_unknown_warning_option=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283	CFLAGS="$xorg_testset_save_CFLAGS"
5284fi
5285
5286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289	fi
5290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294  $as_echo_n "(cached) " >&6
5295else
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298int i;
5299_ACEOF
5300if ac_fn_c_try_compile "$LINENO"; then :
5301  xorg_cv_cc_flag_unused_command_line_argument=yes
5302else
5303  xorg_cv_cc_flag_unused_command_line_argument=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306fi
5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310	CFLAGS="$xorg_testset_save_CFLAGS"
5311fi
5312
5313found="no"
5314
5315	if test $found = "no" ; then
5316		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318		fi
5319
5320		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322		fi
5323
5324		CFLAGS="$CFLAGS -Wstrict-prototypes"
5325
5326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5327$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5328		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5329		if eval \${$cacheid+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335int
5336main ()
5337{
5338
5339  ;
5340  return 0;
5341}
5342_ACEOF
5343if ac_fn_c_try_link "$LINENO"; then :
5344  eval $cacheid=yes
5345else
5346  eval $cacheid=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext \
5349    conftest$ac_exeext conftest.$ac_ext
5350fi
5351
5352
5353		CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355		eval supported=\$$cacheid
5356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357$as_echo "$supported" >&6; }
5358		if test "$supported" = "yes" ; then
5359			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5360			found="yes"
5361		fi
5362	fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385  $as_echo_n "(cached) " >&6
5386else
5387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h.  */
5389int i;
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392  xorg_cv_cc_flag_unknown_warning_option=yes
5393else
5394  xorg_cv_cc_flag_unknown_warning_option=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401	CFLAGS="$xorg_testset_save_CFLAGS"
5402fi
5403
5404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407	fi
5408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h.  */
5416int i;
5417_ACEOF
5418if ac_fn_c_try_compile "$LINENO"; then :
5419  xorg_cv_cc_flag_unused_command_line_argument=yes
5420else
5421  xorg_cv_cc_flag_unused_command_line_argument=no
5422fi
5423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424fi
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428	CFLAGS="$xorg_testset_save_CFLAGS"
5429fi
5430
5431found="no"
5432
5433	if test $found = "no" ; then
5434		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436		fi
5437
5438		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440		fi
5441
5442		CFLAGS="$CFLAGS -Wmissing-prototypes"
5443
5444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5445$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5446		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5447		if eval \${$cacheid+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452int i;
5453int
5454main ()
5455{
5456
5457  ;
5458  return 0;
5459}
5460_ACEOF
5461if ac_fn_c_try_link "$LINENO"; then :
5462  eval $cacheid=yes
5463else
5464  eval $cacheid=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467    conftest$ac_exeext conftest.$ac_ext
5468fi
5469
5470
5471		CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473		eval supported=\$$cacheid
5474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475$as_echo "$supported" >&6; }
5476		if test "$supported" = "yes" ; then
5477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5478			found="yes"
5479		fi
5480	fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503  $as_echo_n "(cached) " >&6
5504else
5505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506/* end confdefs.h.  */
5507int i;
5508_ACEOF
5509if ac_fn_c_try_compile "$LINENO"; then :
5510  xorg_cv_cc_flag_unknown_warning_option=yes
5511else
5512  xorg_cv_cc_flag_unknown_warning_option=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519	CFLAGS="$xorg_testset_save_CFLAGS"
5520fi
5521
5522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525	fi
5526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530  $as_echo_n "(cached) " >&6
5531else
5532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533/* end confdefs.h.  */
5534int i;
5535_ACEOF
5536if ac_fn_c_try_compile "$LINENO"; then :
5537  xorg_cv_cc_flag_unused_command_line_argument=yes
5538else
5539  xorg_cv_cc_flag_unused_command_line_argument=no
5540fi
5541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546	CFLAGS="$xorg_testset_save_CFLAGS"
5547fi
5548
5549found="no"
5550
5551	if test $found = "no" ; then
5552		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554		fi
5555
5556		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558		fi
5559
5560		CFLAGS="$CFLAGS -Wnested-externs"
5561
5562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5563$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5564		cacheid=xorg_cv_cc_flag__Wnested_externs
5565		if eval \${$cacheid+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571int
5572main ()
5573{
5574
5575  ;
5576  return 0;
5577}
5578_ACEOF
5579if ac_fn_c_try_link "$LINENO"; then :
5580  eval $cacheid=yes
5581else
5582  eval $cacheid=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext \
5585    conftest$ac_exeext conftest.$ac_ext
5586fi
5587
5588
5589		CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591		eval supported=\$$cacheid
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593$as_echo "$supported" >&6; }
5594		if test "$supported" = "yes" ; then
5595			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5596			found="yes"
5597		fi
5598	fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621  $as_echo_n "(cached) " >&6
5622else
5623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624/* end confdefs.h.  */
5625int i;
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else
5630  xorg_cv_cc_flag_unknown_warning_option=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633fi
5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637	CFLAGS="$xorg_testset_save_CFLAGS"
5638fi
5639
5640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643	fi
5644	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"; then :
5655  xorg_cv_cc_flag_unused_command_line_argument=yes
5656else
5657  xorg_cv_cc_flag_unused_command_line_argument=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664	CFLAGS="$xorg_testset_save_CFLAGS"
5665fi
5666
5667found="no"
5668
5669	if test $found = "no" ; then
5670		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672		fi
5673
5674		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676		fi
5677
5678		CFLAGS="$CFLAGS -Wbad-function-cast"
5679
5680		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5681$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5682		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5683		if eval \${$cacheid+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689int
5690main ()
5691{
5692
5693  ;
5694  return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_link "$LINENO"; then :
5698  eval $cacheid=yes
5699else
5700  eval $cacheid=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext \
5703    conftest$ac_exeext conftest.$ac_ext
5704fi
5705
5706
5707		CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709		eval supported=\$$cacheid
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711$as_echo "$supported" >&6; }
5712		if test "$supported" = "yes" ; then
5713			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5714			found="yes"
5715		fi
5716	fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5735	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5739  $as_echo_n "(cached) " >&6
5740else
5741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742/* end confdefs.h.  */
5743int i;
5744_ACEOF
5745if ac_fn_c_try_compile "$LINENO"; then :
5746  xorg_cv_cc_flag_unknown_warning_option=yes
5747else
5748  xorg_cv_cc_flag_unknown_warning_option=no
5749fi
5750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5753$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5754	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5755	CFLAGS="$xorg_testset_save_CFLAGS"
5756fi
5757
5758if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5759	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761	fi
5762	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5764$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5765if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5766  $as_echo_n "(cached) " >&6
5767else
5768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h.  */
5770int i;
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773  xorg_cv_cc_flag_unused_command_line_argument=yes
5774else
5775  xorg_cv_cc_flag_unused_command_line_argument=no
5776fi
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782	CFLAGS="$xorg_testset_save_CFLAGS"
5783fi
5784
5785found="no"
5786
5787	if test $found = "no" ; then
5788		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5789			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790		fi
5791
5792		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5793			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794		fi
5795
5796		CFLAGS="$CFLAGS -Wold-style-definition"
5797
5798		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5799$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5800		cacheid=xorg_cv_cc_flag__Wold_style_definition
5801		if eval \${$cacheid+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h.  */
5806int i;
5807int
5808main ()
5809{
5810
5811  ;
5812  return 0;
5813}
5814_ACEOF
5815if ac_fn_c_try_link "$LINENO"; then :
5816  eval $cacheid=yes
5817else
5818  eval $cacheid=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext \
5821    conftest$ac_exeext conftest.$ac_ext
5822fi
5823
5824
5825		CFLAGS="$xorg_testset_save_CFLAGS"
5826
5827		eval supported=\$$cacheid
5828		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5829$as_echo "$supported" >&6; }
5830		if test "$supported" = "yes" ; then
5831			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5832			found="yes"
5833		fi
5834	fi
5835
5836	if test $found = "no" ; then
5837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839		fi
5840
5841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843		fi
5844
5845		CFLAGS="$CFLAGS -fd"
5846
5847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5848$as_echo_n "checking if $CC supports -fd... " >&6; }
5849		cacheid=xorg_cv_cc_flag__fd
5850		if eval \${$cacheid+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856int
5857main ()
5858{
5859
5860  ;
5861  return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_link "$LINENO"; then :
5865  eval $cacheid=yes
5866else
5867  eval $cacheid=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext \
5870    conftest$ac_exeext conftest.$ac_ext
5871fi
5872
5873
5874		CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876		eval supported=\$$cacheid
5877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878$as_echo "$supported" >&6; }
5879		if test "$supported" = "yes" ; then
5880			BASE_CFLAGS="$BASE_CFLAGS -fd"
5881			found="yes"
5882		fi
5883	fi
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899xorg_testset_save_CFLAGS="$CFLAGS"
5900
5901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909/* end confdefs.h.  */
5910int i;
5911_ACEOF
5912if ac_fn_c_try_compile "$LINENO"; then :
5913  xorg_cv_cc_flag_unknown_warning_option=yes
5914else
5915  xorg_cv_cc_flag_unknown_warning_option=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5922	CFLAGS="$xorg_testset_save_CFLAGS"
5923fi
5924
5925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928	fi
5929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5933  $as_echo_n "(cached) " >&6
5934else
5935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936/* end confdefs.h.  */
5937int i;
5938_ACEOF
5939if ac_fn_c_try_compile "$LINENO"; then :
5940  xorg_cv_cc_flag_unused_command_line_argument=yes
5941else
5942  xorg_cv_cc_flag_unused_command_line_argument=no
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5949	CFLAGS="$xorg_testset_save_CFLAGS"
5950fi
5951
5952found="no"
5953
5954	if test $found = "no" ; then
5955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957		fi
5958
5959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5961		fi
5962
5963		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5964
5965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5966$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5967		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5968		if eval \${$cacheid+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974int
5975main ()
5976{
5977
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982if ac_fn_c_try_link "$LINENO"; then :
5983  eval $cacheid=yes
5984else
5985  eval $cacheid=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext \
5988    conftest$ac_exeext conftest.$ac_ext
5989fi
5990
5991
5992		CFLAGS="$xorg_testset_save_CFLAGS"
5993
5994		eval supported=\$$cacheid
5995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5996$as_echo "$supported" >&6; }
5997		if test "$supported" = "yes" ; then
5998			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5999			found="yes"
6000		fi
6001	fi
6002
6003
6004
6005
6006
6007# This chunk adds additional warnings that could catch undesired effects.
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021xorg_testset_save_CFLAGS="$CFLAGS"
6022
6023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032int i;
6033_ACEOF
6034if ac_fn_c_try_compile "$LINENO"; then :
6035  xorg_cv_cc_flag_unknown_warning_option=yes
6036else
6037  xorg_cv_cc_flag_unknown_warning_option=no
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6044	CFLAGS="$xorg_testset_save_CFLAGS"
6045fi
6046
6047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050	fi
6051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059int i;
6060_ACEOF
6061if ac_fn_c_try_compile "$LINENO"; then :
6062  xorg_cv_cc_flag_unused_command_line_argument=yes
6063else
6064  xorg_cv_cc_flag_unused_command_line_argument=no
6065fi
6066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067fi
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6071	CFLAGS="$xorg_testset_save_CFLAGS"
6072fi
6073
6074found="no"
6075
6076	if test $found = "no" ; then
6077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079		fi
6080
6081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083		fi
6084
6085		CFLAGS="$CFLAGS -Wunused"
6086
6087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6088$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6089		cacheid=xorg_cv_cc_flag__Wunused
6090		if eval \${$cacheid+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096int
6097main ()
6098{
6099
6100  ;
6101  return 0;
6102}
6103_ACEOF
6104if ac_fn_c_try_link "$LINENO"; then :
6105  eval $cacheid=yes
6106else
6107  eval $cacheid=no
6108fi
6109rm -f core conftest.err conftest.$ac_objext \
6110    conftest$ac_exeext conftest.$ac_ext
6111fi
6112
6113
6114		CFLAGS="$xorg_testset_save_CFLAGS"
6115
6116		eval supported=\$$cacheid
6117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6118$as_echo "$supported" >&6; }
6119		if test "$supported" = "yes" ; then
6120			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6121			found="yes"
6122		fi
6123	fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139xorg_testset_save_CFLAGS="$CFLAGS"
6140
6141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150int i;
6151_ACEOF
6152if ac_fn_c_try_compile "$LINENO"; then :
6153  xorg_cv_cc_flag_unknown_warning_option=yes
6154else
6155  xorg_cv_cc_flag_unknown_warning_option=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6162	CFLAGS="$xorg_testset_save_CFLAGS"
6163fi
6164
6165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168	fi
6169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176/* end confdefs.h.  */
6177int i;
6178_ACEOF
6179if ac_fn_c_try_compile "$LINENO"; then :
6180  xorg_cv_cc_flag_unused_command_line_argument=yes
6181else
6182  xorg_cv_cc_flag_unused_command_line_argument=no
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185fi
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6189	CFLAGS="$xorg_testset_save_CFLAGS"
6190fi
6191
6192found="no"
6193
6194	if test $found = "no" ; then
6195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197		fi
6198
6199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201		fi
6202
6203		CFLAGS="$CFLAGS -Wuninitialized"
6204
6205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6206$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6207		cacheid=xorg_cv_cc_flag__Wuninitialized
6208		if eval \${$cacheid+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213int i;
6214int
6215main ()
6216{
6217
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222if ac_fn_c_try_link "$LINENO"; then :
6223  eval $cacheid=yes
6224else
6225  eval $cacheid=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext \
6228    conftest$ac_exeext conftest.$ac_ext
6229fi
6230
6231
6232		CFLAGS="$xorg_testset_save_CFLAGS"
6233
6234		eval supported=\$$cacheid
6235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6236$as_echo "$supported" >&6; }
6237		if test "$supported" = "yes" ; then
6238			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6239			found="yes"
6240		fi
6241	fi
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257xorg_testset_save_CFLAGS="$CFLAGS"
6258
6259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6264  $as_echo_n "(cached) " >&6
6265else
6266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268int i;
6269_ACEOF
6270if ac_fn_c_try_compile "$LINENO"; then :
6271  xorg_cv_cc_flag_unknown_warning_option=yes
6272else
6273  xorg_cv_cc_flag_unknown_warning_option=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276fi
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6279	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6280	CFLAGS="$xorg_testset_save_CFLAGS"
6281fi
6282
6283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6284	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6285		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286	fi
6287	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6291  $as_echo_n "(cached) " >&6
6292else
6293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h.  */
6295int i;
6296_ACEOF
6297if ac_fn_c_try_compile "$LINENO"; then :
6298  xorg_cv_cc_flag_unused_command_line_argument=yes
6299else
6300  xorg_cv_cc_flag_unused_command_line_argument=no
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303fi
6304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6307	CFLAGS="$xorg_testset_save_CFLAGS"
6308fi
6309
6310found="no"
6311
6312	if test $found = "no" ; then
6313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315		fi
6316
6317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319		fi
6320
6321		CFLAGS="$CFLAGS -Wshadow"
6322
6323		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6324$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6325		cacheid=xorg_cv_cc_flag__Wshadow
6326		if eval \${$cacheid+:} false; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h.  */
6331int i;
6332int
6333main ()
6334{
6335
6336  ;
6337  return 0;
6338}
6339_ACEOF
6340if ac_fn_c_try_link "$LINENO"; then :
6341  eval $cacheid=yes
6342else
6343  eval $cacheid=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext \
6346    conftest$ac_exeext conftest.$ac_ext
6347fi
6348
6349
6350		CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352		eval supported=\$$cacheid
6353		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354$as_echo "$supported" >&6; }
6355		if test "$supported" = "yes" ; then
6356			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6357			found="yes"
6358		fi
6359	fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385/* end confdefs.h.  */
6386int i;
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389  xorg_cv_cc_flag_unknown_warning_option=yes
6390else
6391  xorg_cv_cc_flag_unknown_warning_option=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394fi
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6398	CFLAGS="$xorg_testset_save_CFLAGS"
6399fi
6400
6401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404	fi
6405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6409  $as_echo_n "(cached) " >&6
6410else
6411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412/* end confdefs.h.  */
6413int i;
6414_ACEOF
6415if ac_fn_c_try_compile "$LINENO"; then :
6416  xorg_cv_cc_flag_unused_command_line_argument=yes
6417else
6418  xorg_cv_cc_flag_unused_command_line_argument=no
6419fi
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421fi
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6425	CFLAGS="$xorg_testset_save_CFLAGS"
6426fi
6427
6428found="no"
6429
6430	if test $found = "no" ; then
6431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433		fi
6434
6435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437		fi
6438
6439		CFLAGS="$CFLAGS -Wmissing-noreturn"
6440
6441		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6442$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6443		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6444		if eval \${$cacheid+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449int i;
6450int
6451main ()
6452{
6453
6454  ;
6455  return 0;
6456}
6457_ACEOF
6458if ac_fn_c_try_link "$LINENO"; then :
6459  eval $cacheid=yes
6460else
6461  eval $cacheid=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext \
6464    conftest$ac_exeext conftest.$ac_ext
6465fi
6466
6467
6468		CFLAGS="$xorg_testset_save_CFLAGS"
6469
6470		eval supported=\$$cacheid
6471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6472$as_echo "$supported" >&6; }
6473		if test "$supported" = "yes" ; then
6474			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6475			found="yes"
6476		fi
6477	fi
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493xorg_testset_save_CFLAGS="$CFLAGS"
6494
6495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6500  $as_echo_n "(cached) " >&6
6501else
6502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503/* end confdefs.h.  */
6504int i;
6505_ACEOF
6506if ac_fn_c_try_compile "$LINENO"; then :
6507  xorg_cv_cc_flag_unknown_warning_option=yes
6508else
6509  xorg_cv_cc_flag_unknown_warning_option=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512fi
6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6516	CFLAGS="$xorg_testset_save_CFLAGS"
6517fi
6518
6519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	fi
6523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6527  $as_echo_n "(cached) " >&6
6528else
6529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530/* end confdefs.h.  */
6531int i;
6532_ACEOF
6533if ac_fn_c_try_compile "$LINENO"; then :
6534  xorg_cv_cc_flag_unused_command_line_argument=yes
6535else
6536  xorg_cv_cc_flag_unused_command_line_argument=no
6537fi
6538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6543	CFLAGS="$xorg_testset_save_CFLAGS"
6544fi
6545
6546found="no"
6547
6548	if test $found = "no" ; then
6549		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551		fi
6552
6553		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555		fi
6556
6557		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6558
6559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6560$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6561		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6562		if eval \${$cacheid+:} false; then :
6563  $as_echo_n "(cached) " >&6
6564else
6565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h.  */
6567int i;
6568int
6569main ()
6570{
6571
6572  ;
6573  return 0;
6574}
6575_ACEOF
6576if ac_fn_c_try_link "$LINENO"; then :
6577  eval $cacheid=yes
6578else
6579  eval $cacheid=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext \
6582    conftest$ac_exeext conftest.$ac_ext
6583fi
6584
6585
6586		CFLAGS="$xorg_testset_save_CFLAGS"
6587
6588		eval supported=\$$cacheid
6589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6590$as_echo "$supported" >&6; }
6591		if test "$supported" = "yes" ; then
6592			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6593			found="yes"
6594		fi
6595	fi
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611xorg_testset_save_CFLAGS="$CFLAGS"
6612
6613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622int i;
6623_ACEOF
6624if ac_fn_c_try_compile "$LINENO"; then :
6625  xorg_cv_cc_flag_unknown_warning_option=yes
6626else
6627  xorg_cv_cc_flag_unknown_warning_option=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630fi
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634	CFLAGS="$xorg_testset_save_CFLAGS"
6635fi
6636
6637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640	fi
6641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649int i;
6650_ACEOF
6651if ac_fn_c_try_compile "$LINENO"; then :
6652  xorg_cv_cc_flag_unused_command_line_argument=yes
6653else
6654  xorg_cv_cc_flag_unused_command_line_argument=no
6655fi
6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657fi
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6661	CFLAGS="$xorg_testset_save_CFLAGS"
6662fi
6663
6664found="no"
6665
6666	if test $found = "no" ; then
6667		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669		fi
6670
6671		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673		fi
6674
6675		CFLAGS="$CFLAGS -Wredundant-decls"
6676
6677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6678$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6679		cacheid=xorg_cv_cc_flag__Wredundant_decls
6680		if eval \${$cacheid+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"; then :
6695  eval $cacheid=yes
6696else
6697  eval $cacheid=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext \
6700    conftest$ac_exeext conftest.$ac_ext
6701fi
6702
6703
6704		CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706		eval supported=\$$cacheid
6707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708$as_echo "$supported" >&6; }
6709		if test "$supported" = "yes" ; then
6710			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6711			found="yes"
6712		fi
6713	fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736  $as_echo_n "(cached) " >&6
6737else
6738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739/* end confdefs.h.  */
6740int i;
6741_ACEOF
6742if ac_fn_c_try_compile "$LINENO"; then :
6743  xorg_cv_cc_flag_unknown_warning_option=yes
6744else
6745  xorg_cv_cc_flag_unknown_warning_option=no
6746fi
6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752	CFLAGS="$xorg_testset_save_CFLAGS"
6753fi
6754
6755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758	fi
6759	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h.  */
6767int i;
6768_ACEOF
6769if ac_fn_c_try_compile "$LINENO"; then :
6770  xorg_cv_cc_flag_unused_command_line_argument=yes
6771else
6772  xorg_cv_cc_flag_unused_command_line_argument=no
6773fi
6774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779	CFLAGS="$xorg_testset_save_CFLAGS"
6780fi
6781
6782found="no"
6783
6784	if test $found = "no" ; then
6785		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6786			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787		fi
6788
6789		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6790			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791		fi
6792
6793		CFLAGS="$CFLAGS -Wlogical-op"
6794
6795		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6796$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6797		cacheid=xorg_cv_cc_flag__Wlogical_op
6798		if eval \${$cacheid+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803int i;
6804int
6805main ()
6806{
6807
6808  ;
6809  return 0;
6810}
6811_ACEOF
6812if ac_fn_c_try_link "$LINENO"; then :
6813  eval $cacheid=yes
6814else
6815  eval $cacheid=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext \
6818    conftest$ac_exeext conftest.$ac_ext
6819fi
6820
6821
6822		CFLAGS="$xorg_testset_save_CFLAGS"
6823
6824		eval supported=\$$cacheid
6825		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826$as_echo "$supported" >&6; }
6827		if test "$supported" = "yes" ; then
6828			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6829			found="yes"
6830		fi
6831	fi
6832
6833
6834
6835# These are currently disabled because they are noisy.  They will be enabled
6836# in the future once the codebase is sufficiently modernized to silence
6837# them.  For now, I don't want them to drown out the other warnings.
6838# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6839# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6840# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6841
6842# Turn some warnings into errors, so we don't accidently get successful builds
6843# when there are problems that should be fixed.
6844
6845if test "x$SELECTIVE_WERROR" = "xyes" ; then
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859xorg_testset_save_CFLAGS="$CFLAGS"
6860
6861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871_ACEOF
6872if ac_fn_c_try_compile "$LINENO"; then :
6873  xorg_cv_cc_flag_unknown_warning_option=yes
6874else
6875  xorg_cv_cc_flag_unknown_warning_option=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878fi
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882	CFLAGS="$xorg_testset_save_CFLAGS"
6883fi
6884
6885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	fi
6889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6893  $as_echo_n "(cached) " >&6
6894else
6895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h.  */
6897int i;
6898_ACEOF
6899if ac_fn_c_try_compile "$LINENO"; then :
6900  xorg_cv_cc_flag_unused_command_line_argument=yes
6901else
6902  xorg_cv_cc_flag_unused_command_line_argument=no
6903fi
6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905fi
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909	CFLAGS="$xorg_testset_save_CFLAGS"
6910fi
6911
6912found="no"
6913
6914	if test $found = "no" ; then
6915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917		fi
6918
6919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921		fi
6922
6923		CFLAGS="$CFLAGS -Werror=implicit"
6924
6925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6926$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6927		cacheid=xorg_cv_cc_flag__Werror_implicit
6928		if eval \${$cacheid+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h.  */
6933int i;
6934int
6935main ()
6936{
6937
6938  ;
6939  return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_link "$LINENO"; then :
6943  eval $cacheid=yes
6944else
6945  eval $cacheid=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext \
6948    conftest$ac_exeext conftest.$ac_ext
6949fi
6950
6951
6952		CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954		eval supported=\$$cacheid
6955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956$as_echo "$supported" >&6; }
6957		if test "$supported" = "yes" ; then
6958			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6959			found="yes"
6960		fi
6961	fi
6962
6963	if test $found = "no" ; then
6964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966		fi
6967
6968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970		fi
6971
6972		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6973
6974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6975$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6976		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6977		if eval \${$cacheid+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982int i;
6983int
6984main ()
6985{
6986
6987  ;
6988  return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_link "$LINENO"; then :
6992  eval $cacheid=yes
6993else
6994  eval $cacheid=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext \
6997    conftest$ac_exeext conftest.$ac_ext
6998fi
6999
7000
7001		CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003		eval supported=\$$cacheid
7004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005$as_echo "$supported" >&6; }
7006		if test "$supported" = "yes" ; then
7007			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7008			found="yes"
7009		fi
7010	fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026xorg_testset_save_CFLAGS="$CFLAGS"
7027
7028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h.  */
7037int i;
7038_ACEOF
7039if ac_fn_c_try_compile "$LINENO"; then :
7040  xorg_cv_cc_flag_unknown_warning_option=yes
7041else
7042  xorg_cv_cc_flag_unknown_warning_option=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045fi
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7049	CFLAGS="$xorg_testset_save_CFLAGS"
7050fi
7051
7052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055	fi
7056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7060  $as_echo_n "(cached) " >&6
7061else
7062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h.  */
7064int i;
7065_ACEOF
7066if ac_fn_c_try_compile "$LINENO"; then :
7067  xorg_cv_cc_flag_unused_command_line_argument=yes
7068else
7069  xorg_cv_cc_flag_unused_command_line_argument=no
7070fi
7071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072fi
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7076	CFLAGS="$xorg_testset_save_CFLAGS"
7077fi
7078
7079found="no"
7080
7081	if test $found = "no" ; then
7082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084		fi
7085
7086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088		fi
7089
7090		CFLAGS="$CFLAGS -Werror=nonnull"
7091
7092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7093$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7094		cacheid=xorg_cv_cc_flag__Werror_nonnull
7095		if eval \${$cacheid+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100int i;
7101int
7102main ()
7103{
7104
7105  ;
7106  return 0;
7107}
7108_ACEOF
7109if ac_fn_c_try_link "$LINENO"; then :
7110  eval $cacheid=yes
7111else
7112  eval $cacheid=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext \
7115    conftest$ac_exeext conftest.$ac_ext
7116fi
7117
7118
7119		CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121		eval supported=\$$cacheid
7122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123$as_echo "$supported" >&6; }
7124		if test "$supported" = "yes" ; then
7125			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7126			found="yes"
7127		fi
7128	fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7151  $as_echo_n "(cached) " >&6
7152else
7153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154/* end confdefs.h.  */
7155int i;
7156_ACEOF
7157if ac_fn_c_try_compile "$LINENO"; then :
7158  xorg_cv_cc_flag_unknown_warning_option=yes
7159else
7160  xorg_cv_cc_flag_unknown_warning_option=no
7161fi
7162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7167	CFLAGS="$xorg_testset_save_CFLAGS"
7168fi
7169
7170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173	fi
7174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7178  $as_echo_n "(cached) " >&6
7179else
7180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183_ACEOF
7184if ac_fn_c_try_compile "$LINENO"; then :
7185  xorg_cv_cc_flag_unused_command_line_argument=yes
7186else
7187  xorg_cv_cc_flag_unused_command_line_argument=no
7188fi
7189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7194	CFLAGS="$xorg_testset_save_CFLAGS"
7195fi
7196
7197found="no"
7198
7199	if test $found = "no" ; then
7200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202		fi
7203
7204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206		fi
7207
7208		CFLAGS="$CFLAGS -Werror=init-self"
7209
7210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7211$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7212		cacheid=xorg_cv_cc_flag__Werror_init_self
7213		if eval \${$cacheid+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h.  */
7218int i;
7219int
7220main ()
7221{
7222
7223  ;
7224  return 0;
7225}
7226_ACEOF
7227if ac_fn_c_try_link "$LINENO"; then :
7228  eval $cacheid=yes
7229else
7230  eval $cacheid=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext \
7233    conftest$ac_exeext conftest.$ac_ext
7234fi
7235
7236
7237		CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239		eval supported=\$$cacheid
7240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241$as_echo "$supported" >&6; }
7242		if test "$supported" = "yes" ; then
7243			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7244			found="yes"
7245		fi
7246	fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262xorg_testset_save_CFLAGS="$CFLAGS"
7263
7264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7269  $as_echo_n "(cached) " >&6
7270else
7271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h.  */
7273int i;
7274_ACEOF
7275if ac_fn_c_try_compile "$LINENO"; then :
7276  xorg_cv_cc_flag_unknown_warning_option=yes
7277else
7278  xorg_cv_cc_flag_unknown_warning_option=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281fi
7282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7285	CFLAGS="$xorg_testset_save_CFLAGS"
7286fi
7287
7288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291	fi
7292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h.  */
7300int i;
7301_ACEOF
7302if ac_fn_c_try_compile "$LINENO"; then :
7303  xorg_cv_cc_flag_unused_command_line_argument=yes
7304else
7305  xorg_cv_cc_flag_unused_command_line_argument=no
7306fi
7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308fi
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7312	CFLAGS="$xorg_testset_save_CFLAGS"
7313fi
7314
7315found="no"
7316
7317	if test $found = "no" ; then
7318		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7320		fi
7321
7322		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324		fi
7325
7326		CFLAGS="$CFLAGS -Werror=main"
7327
7328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7329$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7330		cacheid=xorg_cv_cc_flag__Werror_main
7331		if eval \${$cacheid+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336int i;
7337int
7338main ()
7339{
7340
7341  ;
7342  return 0;
7343}
7344_ACEOF
7345if ac_fn_c_try_link "$LINENO"; then :
7346  eval $cacheid=yes
7347else
7348  eval $cacheid=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext \
7351    conftest$ac_exeext conftest.$ac_ext
7352fi
7353
7354
7355		CFLAGS="$xorg_testset_save_CFLAGS"
7356
7357		eval supported=\$$cacheid
7358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7359$as_echo "$supported" >&6; }
7360		if test "$supported" = "yes" ; then
7361			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7362			found="yes"
7363		fi
7364	fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380xorg_testset_save_CFLAGS="$CFLAGS"
7381
7382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390/* end confdefs.h.  */
7391int i;
7392_ACEOF
7393if ac_fn_c_try_compile "$LINENO"; then :
7394  xorg_cv_cc_flag_unknown_warning_option=yes
7395else
7396  xorg_cv_cc_flag_unknown_warning_option=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7403	CFLAGS="$xorg_testset_save_CFLAGS"
7404fi
7405
7406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409	fi
7410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7414  $as_echo_n "(cached) " >&6
7415else
7416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418int i;
7419_ACEOF
7420if ac_fn_c_try_compile "$LINENO"; then :
7421  xorg_cv_cc_flag_unused_command_line_argument=yes
7422else
7423  xorg_cv_cc_flag_unused_command_line_argument=no
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7430	CFLAGS="$xorg_testset_save_CFLAGS"
7431fi
7432
7433found="no"
7434
7435	if test $found = "no" ; then
7436		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438		fi
7439
7440		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442		fi
7443
7444		CFLAGS="$CFLAGS -Werror=missing-braces"
7445
7446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7447$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7448		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7449		if eval \${$cacheid+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455int
7456main ()
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_link "$LINENO"; then :
7464  eval $cacheid=yes
7465else
7466  eval $cacheid=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext \
7469    conftest$ac_exeext conftest.$ac_ext
7470fi
7471
7472
7473		CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475		eval supported=\$$cacheid
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477$as_echo "$supported" >&6; }
7478		if test "$supported" = "yes" ; then
7479			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7480			found="yes"
7481		fi
7482	fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505  $as_echo_n "(cached) " >&6
7506else
7507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508/* end confdefs.h.  */
7509int i;
7510_ACEOF
7511if ac_fn_c_try_compile "$LINENO"; then :
7512  xorg_cv_cc_flag_unknown_warning_option=yes
7513else
7514  xorg_cv_cc_flag_unknown_warning_option=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521	CFLAGS="$xorg_testset_save_CFLAGS"
7522fi
7523
7524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527	fi
7528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532  $as_echo_n "(cached) " >&6
7533else
7534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=sequence-point"
7563
7564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7565$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7566		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7567		if eval \${$cacheid+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573int
7574main ()
7575{
7576
7577  ;
7578  return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_link "$LINENO"; then :
7582  eval $cacheid=yes
7583else
7584  eval $cacheid=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext \
7587    conftest$ac_exeext conftest.$ac_ext
7588fi
7589
7590
7591		CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593		eval supported=\$$cacheid
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595$as_echo "$supported" >&6; }
7596		if test "$supported" = "yes" ; then
7597			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7598			found="yes"
7599		fi
7600	fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626/* end confdefs.h.  */
7627int i;
7628_ACEOF
7629if ac_fn_c_try_compile "$LINENO"; then :
7630  xorg_cv_cc_flag_unknown_warning_option=yes
7631else
7632  xorg_cv_cc_flag_unknown_warning_option=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639	CFLAGS="$xorg_testset_save_CFLAGS"
7640fi
7641
7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	fi
7646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7650  $as_echo_n "(cached) " >&6
7651else
7652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653/* end confdefs.h.  */
7654int i;
7655_ACEOF
7656if ac_fn_c_try_compile "$LINENO"; then :
7657  xorg_cv_cc_flag_unused_command_line_argument=yes
7658else
7659  xorg_cv_cc_flag_unused_command_line_argument=no
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666	CFLAGS="$xorg_testset_save_CFLAGS"
7667fi
7668
7669found="no"
7670
7671	if test $found = "no" ; then
7672		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674		fi
7675
7676		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678		fi
7679
7680		CFLAGS="$CFLAGS -Werror=return-type"
7681
7682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7683$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7684		cacheid=xorg_cv_cc_flag__Werror_return_type
7685		if eval \${$cacheid+:} false; then :
7686  $as_echo_n "(cached) " >&6
7687else
7688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689/* end confdefs.h.  */
7690int i;
7691int
7692main ()
7693{
7694
7695  ;
7696  return 0;
7697}
7698_ACEOF
7699if ac_fn_c_try_link "$LINENO"; then :
7700  eval $cacheid=yes
7701else
7702  eval $cacheid=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext \
7705    conftest$ac_exeext conftest.$ac_ext
7706fi
7707
7708
7709		CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711		eval supported=\$$cacheid
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713$as_echo "$supported" >&6; }
7714		if test "$supported" = "yes" ; then
7715			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7716			found="yes"
7717		fi
7718	fi
7719
7720	if test $found = "no" ; then
7721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723		fi
7724
7725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727		fi
7728
7729		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7730
7731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7732$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7733		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7734		if eval \${$cacheid+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740int
7741main ()
7742{
7743
7744  ;
7745  return 0;
7746}
7747_ACEOF
7748if ac_fn_c_try_link "$LINENO"; then :
7749  eval $cacheid=yes
7750else
7751  eval $cacheid=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext \
7754    conftest$ac_exeext conftest.$ac_ext
7755fi
7756
7757
7758		CFLAGS="$xorg_testset_save_CFLAGS"
7759
7760		eval supported=\$$cacheid
7761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7762$as_echo "$supported" >&6; }
7763		if test "$supported" = "yes" ; then
7764			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7765			found="yes"
7766		fi
7767	fi
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783xorg_testset_save_CFLAGS="$CFLAGS"
7784
7785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794int i;
7795_ACEOF
7796if ac_fn_c_try_compile "$LINENO"; then :
7797  xorg_cv_cc_flag_unknown_warning_option=yes
7798else
7799  xorg_cv_cc_flag_unknown_warning_option=no
7800fi
7801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802fi
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7806	CFLAGS="$xorg_testset_save_CFLAGS"
7807fi
7808
7809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812	fi
7813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7817  $as_echo_n "(cached) " >&6
7818else
7819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822_ACEOF
7823if ac_fn_c_try_compile "$LINENO"; then :
7824  xorg_cv_cc_flag_unused_command_line_argument=yes
7825else
7826  xorg_cv_cc_flag_unused_command_line_argument=no
7827fi
7828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7833	CFLAGS="$xorg_testset_save_CFLAGS"
7834fi
7835
7836found="no"
7837
7838	if test $found = "no" ; then
7839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841		fi
7842
7843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845		fi
7846
7847		CFLAGS="$CFLAGS -Werror=trigraphs"
7848
7849		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7850$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7851		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7852		if eval \${$cacheid+:} false; then :
7853  $as_echo_n "(cached) " >&6
7854else
7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857int i;
7858int
7859main ()
7860{
7861
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866if ac_fn_c_try_link "$LINENO"; then :
7867  eval $cacheid=yes
7868else
7869  eval $cacheid=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext \
7872    conftest$ac_exeext conftest.$ac_ext
7873fi
7874
7875
7876		CFLAGS="$xorg_testset_save_CFLAGS"
7877
7878		eval supported=\$$cacheid
7879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7880$as_echo "$supported" >&6; }
7881		if test "$supported" = "yes" ; then
7882			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7883			found="yes"
7884		fi
7885	fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901xorg_testset_save_CFLAGS="$CFLAGS"
7902
7903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7908  $as_echo_n "(cached) " >&6
7909else
7910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h.  */
7912int i;
7913_ACEOF
7914if ac_fn_c_try_compile "$LINENO"; then :
7915  xorg_cv_cc_flag_unknown_warning_option=yes
7916else
7917  xorg_cv_cc_flag_unknown_warning_option=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920fi
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7924	CFLAGS="$xorg_testset_save_CFLAGS"
7925fi
7926
7927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930	fi
7931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938/* end confdefs.h.  */
7939int i;
7940_ACEOF
7941if ac_fn_c_try_compile "$LINENO"; then :
7942  xorg_cv_cc_flag_unused_command_line_argument=yes
7943else
7944  xorg_cv_cc_flag_unused_command_line_argument=no
7945fi
7946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7951	CFLAGS="$xorg_testset_save_CFLAGS"
7952fi
7953
7954found="no"
7955
7956	if test $found = "no" ; then
7957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959		fi
7960
7961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963		fi
7964
7965		CFLAGS="$CFLAGS -Werror=array-bounds"
7966
7967		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7968$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7969		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7970		if eval \${$cacheid+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975int i;
7976int
7977main ()
7978{
7979
7980  ;
7981  return 0;
7982}
7983_ACEOF
7984if ac_fn_c_try_link "$LINENO"; then :
7985  eval $cacheid=yes
7986else
7987  eval $cacheid=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext \
7990    conftest$ac_exeext conftest.$ac_ext
7991fi
7992
7993
7994		CFLAGS="$xorg_testset_save_CFLAGS"
7995
7996		eval supported=\$$cacheid
7997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7998$as_echo "$supported" >&6; }
7999		if test "$supported" = "yes" ; then
8000			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8001			found="yes"
8002		fi
8003	fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019xorg_testset_save_CFLAGS="$CFLAGS"
8020
8021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8026  $as_echo_n "(cached) " >&6
8027else
8028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030int i;
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"; then :
8033  xorg_cv_cc_flag_unknown_warning_option=yes
8034else
8035  xorg_cv_cc_flag_unknown_warning_option=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038fi
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042	CFLAGS="$xorg_testset_save_CFLAGS"
8043fi
8044
8045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048	fi
8049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8053  $as_echo_n "(cached) " >&6
8054else
8055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056/* end confdefs.h.  */
8057int i;
8058_ACEOF
8059if ac_fn_c_try_compile "$LINENO"; then :
8060  xorg_cv_cc_flag_unused_command_line_argument=yes
8061else
8062  xorg_cv_cc_flag_unused_command_line_argument=no
8063fi
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065fi
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8069	CFLAGS="$xorg_testset_save_CFLAGS"
8070fi
8071
8072found="no"
8073
8074	if test $found = "no" ; then
8075		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077		fi
8078
8079		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081		fi
8082
8083		CFLAGS="$CFLAGS -Werror=write-strings"
8084
8085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8086$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8087		cacheid=xorg_cv_cc_flag__Werror_write_strings
8088		if eval \${$cacheid+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094int
8095main ()
8096{
8097
8098  ;
8099  return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103  eval $cacheid=yes
8104else
8105  eval $cacheid=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext \
8108    conftest$ac_exeext conftest.$ac_ext
8109fi
8110
8111
8112		CFLAGS="$xorg_testset_save_CFLAGS"
8113
8114		eval supported=\$$cacheid
8115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8116$as_echo "$supported" >&6; }
8117		if test "$supported" = "yes" ; then
8118			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8119			found="yes"
8120		fi
8121	fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137xorg_testset_save_CFLAGS="$CFLAGS"
8138
8139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8144  $as_echo_n "(cached) " >&6
8145else
8146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148int i;
8149_ACEOF
8150if ac_fn_c_try_compile "$LINENO"; then :
8151  xorg_cv_cc_flag_unknown_warning_option=yes
8152else
8153  xorg_cv_cc_flag_unknown_warning_option=no
8154fi
8155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156fi
8157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160	CFLAGS="$xorg_testset_save_CFLAGS"
8161fi
8162
8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166	fi
8167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8171  $as_echo_n "(cached) " >&6
8172else
8173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174/* end confdefs.h.  */
8175int i;
8176_ACEOF
8177if ac_fn_c_try_compile "$LINENO"; then :
8178  xorg_cv_cc_flag_unused_command_line_argument=yes
8179else
8180  xorg_cv_cc_flag_unused_command_line_argument=no
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187	CFLAGS="$xorg_testset_save_CFLAGS"
8188fi
8189
8190found="no"
8191
8192	if test $found = "no" ; then
8193		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195		fi
8196
8197		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199		fi
8200
8201		CFLAGS="$CFLAGS -Werror=address"
8202
8203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8204$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8205		cacheid=xorg_cv_cc_flag__Werror_address
8206		if eval \${$cacheid+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212int
8213main ()
8214{
8215
8216  ;
8217  return 0;
8218}
8219_ACEOF
8220if ac_fn_c_try_link "$LINENO"; then :
8221  eval $cacheid=yes
8222else
8223  eval $cacheid=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext \
8226    conftest$ac_exeext conftest.$ac_ext
8227fi
8228
8229
8230		CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232		eval supported=\$$cacheid
8233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234$as_echo "$supported" >&6; }
8235		if test "$supported" = "yes" ; then
8236			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8237			found="yes"
8238		fi
8239	fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255xorg_testset_save_CFLAGS="$CFLAGS"
8256
8257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266int i;
8267_ACEOF
8268if ac_fn_c_try_compile "$LINENO"; then :
8269  xorg_cv_cc_flag_unknown_warning_option=yes
8270else
8271  xorg_cv_cc_flag_unknown_warning_option=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274fi
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8278	CFLAGS="$xorg_testset_save_CFLAGS"
8279fi
8280
8281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284	fi
8285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8289  $as_echo_n "(cached) " >&6
8290else
8291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h.  */
8293int i;
8294_ACEOF
8295if ac_fn_c_try_compile "$LINENO"; then :
8296  xorg_cv_cc_flag_unused_command_line_argument=yes
8297else
8298  xorg_cv_cc_flag_unused_command_line_argument=no
8299fi
8300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8305	CFLAGS="$xorg_testset_save_CFLAGS"
8306fi
8307
8308found="no"
8309
8310	if test $found = "no" ; then
8311		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313		fi
8314
8315		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317		fi
8318
8319		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8320
8321		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8322$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8323		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8324		if eval \${$cacheid+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h.  */
8329int i;
8330int
8331main ()
8332{
8333
8334  ;
8335  return 0;
8336}
8337_ACEOF
8338if ac_fn_c_try_link "$LINENO"; then :
8339  eval $cacheid=yes
8340else
8341  eval $cacheid=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext \
8344    conftest$ac_exeext conftest.$ac_ext
8345fi
8346
8347
8348		CFLAGS="$xorg_testset_save_CFLAGS"
8349
8350		eval supported=\$$cacheid
8351		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8352$as_echo "$supported" >&6; }
8353		if test "$supported" = "yes" ; then
8354			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8355			found="yes"
8356		fi
8357	fi
8358
8359	if test $found = "no" ; then
8360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362		fi
8363
8364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366		fi
8367
8368		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8369
8370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8371$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8372		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8373		if eval \${$cacheid+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379int
8380main ()
8381{
8382
8383  ;
8384  return 0;
8385}
8386_ACEOF
8387if ac_fn_c_try_link "$LINENO"; then :
8388  eval $cacheid=yes
8389else
8390  eval $cacheid=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext \
8393    conftest$ac_exeext conftest.$ac_ext
8394fi
8395
8396
8397		CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399		eval supported=\$$cacheid
8400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401$as_echo "$supported" >&6; }
8402		if test "$supported" = "yes" ; then
8403			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8404			found="yes"
8405		fi
8406	fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422xorg_testset_save_CFLAGS="$CFLAGS"
8423
8424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432/* end confdefs.h.  */
8433int i;
8434_ACEOF
8435if ac_fn_c_try_compile "$LINENO"; then :
8436  xorg_cv_cc_flag_unknown_warning_option=yes
8437else
8438  xorg_cv_cc_flag_unknown_warning_option=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441fi
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8445	CFLAGS="$xorg_testset_save_CFLAGS"
8446fi
8447
8448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451	fi
8452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8456  $as_echo_n "(cached) " >&6
8457else
8458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459/* end confdefs.h.  */
8460int i;
8461_ACEOF
8462if ac_fn_c_try_compile "$LINENO"; then :
8463  xorg_cv_cc_flag_unused_command_line_argument=yes
8464else
8465  xorg_cv_cc_flag_unused_command_line_argument=no
8466fi
8467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468fi
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8472	CFLAGS="$xorg_testset_save_CFLAGS"
8473fi
8474
8475found="no"
8476
8477	if test $found = "no" ; then
8478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480		fi
8481
8482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484		fi
8485
8486		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8487
8488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8489$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8490		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8491		if eval \${$cacheid+:} false; then :
8492  $as_echo_n "(cached) " >&6
8493else
8494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495/* end confdefs.h.  */
8496int i;
8497int
8498main ()
8499{
8500
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505if ac_fn_c_try_link "$LINENO"; then :
8506  eval $cacheid=yes
8507else
8508  eval $cacheid=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext \
8511    conftest$ac_exeext conftest.$ac_ext
8512fi
8513
8514
8515		CFLAGS="$xorg_testset_save_CFLAGS"
8516
8517		eval supported=\$$cacheid
8518		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8519$as_echo "$supported" >&6; }
8520		if test "$supported" = "yes" ; then
8521			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8522			found="yes"
8523		fi
8524	fi
8525
8526 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8527else
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
8529$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543xorg_testset_save_CFLAGS="$CFLAGS"
8544
8545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8550  $as_echo_n "(cached) " >&6
8551else
8552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h.  */
8554int i;
8555_ACEOF
8556if ac_fn_c_try_compile "$LINENO"; then :
8557  xorg_cv_cc_flag_unknown_warning_option=yes
8558else
8559  xorg_cv_cc_flag_unknown_warning_option=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562fi
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8566	CFLAGS="$xorg_testset_save_CFLAGS"
8567fi
8568
8569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572	fi
8573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8577  $as_echo_n "(cached) " >&6
8578else
8579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h.  */
8581int i;
8582_ACEOF
8583if ac_fn_c_try_compile "$LINENO"; then :
8584  xorg_cv_cc_flag_unused_command_line_argument=yes
8585else
8586  xorg_cv_cc_flag_unused_command_line_argument=no
8587fi
8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589fi
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8593	CFLAGS="$xorg_testset_save_CFLAGS"
8594fi
8595
8596found="no"
8597
8598	if test $found = "no" ; then
8599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601		fi
8602
8603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605		fi
8606
8607		CFLAGS="$CFLAGS -Wimplicit"
8608
8609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8610$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8611		cacheid=xorg_cv_cc_flag__Wimplicit
8612		if eval \${$cacheid+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618int
8619main ()
8620{
8621
8622  ;
8623  return 0;
8624}
8625_ACEOF
8626if ac_fn_c_try_link "$LINENO"; then :
8627  eval $cacheid=yes
8628else
8629  eval $cacheid=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext \
8632    conftest$ac_exeext conftest.$ac_ext
8633fi
8634
8635
8636		CFLAGS="$xorg_testset_save_CFLAGS"
8637
8638		eval supported=\$$cacheid
8639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8640$as_echo "$supported" >&6; }
8641		if test "$supported" = "yes" ; then
8642			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8643			found="yes"
8644		fi
8645	fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661xorg_testset_save_CFLAGS="$CFLAGS"
8662
8663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8668  $as_echo_n "(cached) " >&6
8669else
8670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671/* end confdefs.h.  */
8672int i;
8673_ACEOF
8674if ac_fn_c_try_compile "$LINENO"; then :
8675  xorg_cv_cc_flag_unknown_warning_option=yes
8676else
8677  xorg_cv_cc_flag_unknown_warning_option=no
8678fi
8679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680fi
8681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8684	CFLAGS="$xorg_testset_save_CFLAGS"
8685fi
8686
8687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690	fi
8691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698/* end confdefs.h.  */
8699int i;
8700_ACEOF
8701if ac_fn_c_try_compile "$LINENO"; then :
8702  xorg_cv_cc_flag_unused_command_line_argument=yes
8703else
8704  xorg_cv_cc_flag_unused_command_line_argument=no
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707fi
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711	CFLAGS="$xorg_testset_save_CFLAGS"
8712fi
8713
8714found="no"
8715
8716	if test $found = "no" ; then
8717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719		fi
8720
8721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723		fi
8724
8725		CFLAGS="$CFLAGS -Wnonnull"
8726
8727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8728$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8729		cacheid=xorg_cv_cc_flag__Wnonnull
8730		if eval \${$cacheid+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h.  */
8735int i;
8736int
8737main ()
8738{
8739
8740  ;
8741  return 0;
8742}
8743_ACEOF
8744if ac_fn_c_try_link "$LINENO"; then :
8745  eval $cacheid=yes
8746else
8747  eval $cacheid=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext \
8750    conftest$ac_exeext conftest.$ac_ext
8751fi
8752
8753
8754		CFLAGS="$xorg_testset_save_CFLAGS"
8755
8756		eval supported=\$$cacheid
8757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8758$as_echo "$supported" >&6; }
8759		if test "$supported" = "yes" ; then
8760			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8761			found="yes"
8762		fi
8763	fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779xorg_testset_save_CFLAGS="$CFLAGS"
8780
8781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8786  $as_echo_n "(cached) " >&6
8787else
8788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789/* end confdefs.h.  */
8790int i;
8791_ACEOF
8792if ac_fn_c_try_compile "$LINENO"; then :
8793  xorg_cv_cc_flag_unknown_warning_option=yes
8794else
8795  xorg_cv_cc_flag_unknown_warning_option=no
8796fi
8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802	CFLAGS="$xorg_testset_save_CFLAGS"
8803fi
8804
8805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808	fi
8809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8813  $as_echo_n "(cached) " >&6
8814else
8815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816/* end confdefs.h.  */
8817int i;
8818_ACEOF
8819if ac_fn_c_try_compile "$LINENO"; then :
8820  xorg_cv_cc_flag_unused_command_line_argument=yes
8821else
8822  xorg_cv_cc_flag_unused_command_line_argument=no
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825fi
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8829	CFLAGS="$xorg_testset_save_CFLAGS"
8830fi
8831
8832found="no"
8833
8834	if test $found = "no" ; then
8835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837		fi
8838
8839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841		fi
8842
8843		CFLAGS="$CFLAGS -Winit-self"
8844
8845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8846$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8847		cacheid=xorg_cv_cc_flag__Winit_self
8848		if eval \${$cacheid+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854int
8855main ()
8856{
8857
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862if ac_fn_c_try_link "$LINENO"; then :
8863  eval $cacheid=yes
8864else
8865  eval $cacheid=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext \
8868    conftest$ac_exeext conftest.$ac_ext
8869fi
8870
8871
8872		CFLAGS="$xorg_testset_save_CFLAGS"
8873
8874		eval supported=\$$cacheid
8875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8876$as_echo "$supported" >&6; }
8877		if test "$supported" = "yes" ; then
8878			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8879			found="yes"
8880		fi
8881	fi
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897xorg_testset_save_CFLAGS="$CFLAGS"
8898
8899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8904  $as_echo_n "(cached) " >&6
8905else
8906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h.  */
8908int i;
8909_ACEOF
8910if ac_fn_c_try_compile "$LINENO"; then :
8911  xorg_cv_cc_flag_unknown_warning_option=yes
8912else
8913  xorg_cv_cc_flag_unknown_warning_option=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8920	CFLAGS="$xorg_testset_save_CFLAGS"
8921fi
8922
8923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926	fi
8927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934/* end confdefs.h.  */
8935int i;
8936_ACEOF
8937if ac_fn_c_try_compile "$LINENO"; then :
8938  xorg_cv_cc_flag_unused_command_line_argument=yes
8939else
8940  xorg_cv_cc_flag_unused_command_line_argument=no
8941fi
8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8946	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8947	CFLAGS="$xorg_testset_save_CFLAGS"
8948fi
8949
8950found="no"
8951
8952	if test $found = "no" ; then
8953		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8954			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8955		fi
8956
8957		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8958			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959		fi
8960
8961		CFLAGS="$CFLAGS -Wmain"
8962
8963		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8964$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8965		cacheid=xorg_cv_cc_flag__Wmain
8966		if eval \${$cacheid+:} false; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971int i;
8972int
8973main ()
8974{
8975
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980if ac_fn_c_try_link "$LINENO"; then :
8981  eval $cacheid=yes
8982else
8983  eval $cacheid=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext \
8986    conftest$ac_exeext conftest.$ac_ext
8987fi
8988
8989
8990		CFLAGS="$xorg_testset_save_CFLAGS"
8991
8992		eval supported=\$$cacheid
8993		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8994$as_echo "$supported" >&6; }
8995		if test "$supported" = "yes" ; then
8996			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8997			found="yes"
8998		fi
8999	fi
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015xorg_testset_save_CFLAGS="$CFLAGS"
9016
9017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9018	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h.  */
9026int i;
9027_ACEOF
9028if ac_fn_c_try_compile "$LINENO"; then :
9029  xorg_cv_cc_flag_unknown_warning_option=yes
9030else
9031  xorg_cv_cc_flag_unknown_warning_option=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034fi
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9037	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9038	CFLAGS="$xorg_testset_save_CFLAGS"
9039fi
9040
9041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9042	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044	fi
9045	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9049  $as_echo_n "(cached) " >&6
9050else
9051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052/* end confdefs.h.  */
9053int i;
9054_ACEOF
9055if ac_fn_c_try_compile "$LINENO"; then :
9056  xorg_cv_cc_flag_unused_command_line_argument=yes
9057else
9058  xorg_cv_cc_flag_unused_command_line_argument=no
9059fi
9060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061fi
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9065	CFLAGS="$xorg_testset_save_CFLAGS"
9066fi
9067
9068found="no"
9069
9070	if test $found = "no" ; then
9071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9073		fi
9074
9075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077		fi
9078
9079		CFLAGS="$CFLAGS -Wmissing-braces"
9080
9081		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9082$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9083		cacheid=xorg_cv_cc_flag__Wmissing_braces
9084		if eval \${$cacheid+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int i;
9090int
9091main ()
9092{
9093
9094  ;
9095  return 0;
9096}
9097_ACEOF
9098if ac_fn_c_try_link "$LINENO"; then :
9099  eval $cacheid=yes
9100else
9101  eval $cacheid=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext \
9104    conftest$ac_exeext conftest.$ac_ext
9105fi
9106
9107
9108		CFLAGS="$xorg_testset_save_CFLAGS"
9109
9110		eval supported=\$$cacheid
9111		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9112$as_echo "$supported" >&6; }
9113		if test "$supported" = "yes" ; then
9114			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9115			found="yes"
9116		fi
9117	fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133xorg_testset_save_CFLAGS="$CFLAGS"
9134
9135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9140  $as_echo_n "(cached) " >&6
9141else
9142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h.  */
9144int i;
9145_ACEOF
9146if ac_fn_c_try_compile "$LINENO"; then :
9147  xorg_cv_cc_flag_unknown_warning_option=yes
9148else
9149  xorg_cv_cc_flag_unknown_warning_option=no
9150fi
9151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152fi
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9155	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9156	CFLAGS="$xorg_testset_save_CFLAGS"
9157fi
9158
9159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9160	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162	fi
9163	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9167  $as_echo_n "(cached) " >&6
9168else
9169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170/* end confdefs.h.  */
9171int i;
9172_ACEOF
9173if ac_fn_c_try_compile "$LINENO"; then :
9174  xorg_cv_cc_flag_unused_command_line_argument=yes
9175else
9176  xorg_cv_cc_flag_unused_command_line_argument=no
9177fi
9178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179fi
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9182	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9183	CFLAGS="$xorg_testset_save_CFLAGS"
9184fi
9185
9186found="no"
9187
9188	if test $found = "no" ; then
9189		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9190			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191		fi
9192
9193		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9194			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195		fi
9196
9197		CFLAGS="$CFLAGS -Wsequence-point"
9198
9199		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9200$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9201		cacheid=xorg_cv_cc_flag__Wsequence_point
9202		if eval \${$cacheid+:} false; then :
9203  $as_echo_n "(cached) " >&6
9204else
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208int
9209main ()
9210{
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"; then :
9217  eval $cacheid=yes
9218else
9219  eval $cacheid=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext \
9222    conftest$ac_exeext conftest.$ac_ext
9223fi
9224
9225
9226		CFLAGS="$xorg_testset_save_CFLAGS"
9227
9228		eval supported=\$$cacheid
9229		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9230$as_echo "$supported" >&6; }
9231		if test "$supported" = "yes" ; then
9232			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9233			found="yes"
9234		fi
9235	fi
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251xorg_testset_save_CFLAGS="$CFLAGS"
9252
9253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261/* end confdefs.h.  */
9262int i;
9263_ACEOF
9264if ac_fn_c_try_compile "$LINENO"; then :
9265  xorg_cv_cc_flag_unknown_warning_option=yes
9266else
9267  xorg_cv_cc_flag_unknown_warning_option=no
9268fi
9269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270fi
9271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9273	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9274	CFLAGS="$xorg_testset_save_CFLAGS"
9275fi
9276
9277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9278	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9279		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280	fi
9281	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9285  $as_echo_n "(cached) " >&6
9286else
9287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288/* end confdefs.h.  */
9289int i;
9290_ACEOF
9291if ac_fn_c_try_compile "$LINENO"; then :
9292  xorg_cv_cc_flag_unused_command_line_argument=yes
9293else
9294  xorg_cv_cc_flag_unused_command_line_argument=no
9295fi
9296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297fi
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9300	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9301	CFLAGS="$xorg_testset_save_CFLAGS"
9302fi
9303
9304found="no"
9305
9306	if test $found = "no" ; then
9307		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9308			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309		fi
9310
9311		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9312			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313		fi
9314
9315		CFLAGS="$CFLAGS -Wreturn-type"
9316
9317		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9318$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9319		cacheid=xorg_cv_cc_flag__Wreturn_type
9320		if eval \${$cacheid+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325int i;
9326int
9327main ()
9328{
9329
9330  ;
9331  return 0;
9332}
9333_ACEOF
9334if ac_fn_c_try_link "$LINENO"; then :
9335  eval $cacheid=yes
9336else
9337  eval $cacheid=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext \
9340    conftest$ac_exeext conftest.$ac_ext
9341fi
9342
9343
9344		CFLAGS="$xorg_testset_save_CFLAGS"
9345
9346		eval supported=\$$cacheid
9347		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9348$as_echo "$supported" >&6; }
9349		if test "$supported" = "yes" ; then
9350			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9351			found="yes"
9352		fi
9353	fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369xorg_testset_save_CFLAGS="$CFLAGS"
9370
9371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9372	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9376  $as_echo_n "(cached) " >&6
9377else
9378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379/* end confdefs.h.  */
9380int i;
9381_ACEOF
9382if ac_fn_c_try_compile "$LINENO"; then :
9383  xorg_cv_cc_flag_unknown_warning_option=yes
9384else
9385  xorg_cv_cc_flag_unknown_warning_option=no
9386fi
9387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388fi
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9391	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9392	CFLAGS="$xorg_testset_save_CFLAGS"
9393fi
9394
9395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9396	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9397		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	fi
9399	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9403  $as_echo_n "(cached) " >&6
9404else
9405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406/* end confdefs.h.  */
9407int i;
9408_ACEOF
9409if ac_fn_c_try_compile "$LINENO"; then :
9410  xorg_cv_cc_flag_unused_command_line_argument=yes
9411else
9412  xorg_cv_cc_flag_unused_command_line_argument=no
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415fi
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9418	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9419	CFLAGS="$xorg_testset_save_CFLAGS"
9420fi
9421
9422found="no"
9423
9424	if test $found = "no" ; then
9425		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9426			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9427		fi
9428
9429		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9430			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431		fi
9432
9433		CFLAGS="$CFLAGS -Wtrigraphs"
9434
9435		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9436$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9437		cacheid=xorg_cv_cc_flag__Wtrigraphs
9438		if eval \${$cacheid+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443int i;
9444int
9445main ()
9446{
9447
9448  ;
9449  return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_link "$LINENO"; then :
9453  eval $cacheid=yes
9454else
9455  eval $cacheid=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext \
9458    conftest$ac_exeext conftest.$ac_ext
9459fi
9460
9461
9462		CFLAGS="$xorg_testset_save_CFLAGS"
9463
9464		eval supported=\$$cacheid
9465		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9466$as_echo "$supported" >&6; }
9467		if test "$supported" = "yes" ; then
9468			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9469			found="yes"
9470		fi
9471	fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487xorg_testset_save_CFLAGS="$CFLAGS"
9488
9489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9490	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9494  $as_echo_n "(cached) " >&6
9495else
9496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h.  */
9498int i;
9499_ACEOF
9500if ac_fn_c_try_compile "$LINENO"; then :
9501  xorg_cv_cc_flag_unknown_warning_option=yes
9502else
9503  xorg_cv_cc_flag_unknown_warning_option=no
9504fi
9505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506fi
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510	CFLAGS="$xorg_testset_save_CFLAGS"
9511fi
9512
9513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516	fi
9517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9521  $as_echo_n "(cached) " >&6
9522else
9523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525int i;
9526_ACEOF
9527if ac_fn_c_try_compile "$LINENO"; then :
9528  xorg_cv_cc_flag_unused_command_line_argument=yes
9529else
9530  xorg_cv_cc_flag_unused_command_line_argument=no
9531fi
9532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533fi
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9536	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9537	CFLAGS="$xorg_testset_save_CFLAGS"
9538fi
9539
9540found="no"
9541
9542	if test $found = "no" ; then
9543		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9544			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9545		fi
9546
9547		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9548			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549		fi
9550
9551		CFLAGS="$CFLAGS -Warray-bounds"
9552
9553		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9554$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9555		cacheid=xorg_cv_cc_flag__Warray_bounds
9556		if eval \${$cacheid+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561int i;
9562int
9563main ()
9564{
9565
9566  ;
9567  return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571  eval $cacheid=yes
9572else
9573  eval $cacheid=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext \
9576    conftest$ac_exeext conftest.$ac_ext
9577fi
9578
9579
9580		CFLAGS="$xorg_testset_save_CFLAGS"
9581
9582		eval supported=\$$cacheid
9583		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9584$as_echo "$supported" >&6; }
9585		if test "$supported" = "yes" ; then
9586			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9587			found="yes"
9588		fi
9589	fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605xorg_testset_save_CFLAGS="$CFLAGS"
9606
9607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9612  $as_echo_n "(cached) " >&6
9613else
9614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615/* end confdefs.h.  */
9616int i;
9617_ACEOF
9618if ac_fn_c_try_compile "$LINENO"; then :
9619  xorg_cv_cc_flag_unknown_warning_option=yes
9620else
9621  xorg_cv_cc_flag_unknown_warning_option=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624fi
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9628	CFLAGS="$xorg_testset_save_CFLAGS"
9629fi
9630
9631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634	fi
9635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9639  $as_echo_n "(cached) " >&6
9640else
9641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642/* end confdefs.h.  */
9643int i;
9644_ACEOF
9645if ac_fn_c_try_compile "$LINENO"; then :
9646  xorg_cv_cc_flag_unused_command_line_argument=yes
9647else
9648  xorg_cv_cc_flag_unused_command_line_argument=no
9649fi
9650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651fi
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9654	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9655	CFLAGS="$xorg_testset_save_CFLAGS"
9656fi
9657
9658found="no"
9659
9660	if test $found = "no" ; then
9661		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9662			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663		fi
9664
9665		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9666			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667		fi
9668
9669		CFLAGS="$CFLAGS -Wwrite-strings"
9670
9671		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9672$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9673		cacheid=xorg_cv_cc_flag__Wwrite_strings
9674		if eval \${$cacheid+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680int
9681main ()
9682{
9683
9684  ;
9685  return 0;
9686}
9687_ACEOF
9688if ac_fn_c_try_link "$LINENO"; then :
9689  eval $cacheid=yes
9690else
9691  eval $cacheid=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext \
9694    conftest$ac_exeext conftest.$ac_ext
9695fi
9696
9697
9698		CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700		eval supported=\$$cacheid
9701		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702$as_echo "$supported" >&6; }
9703		if test "$supported" = "yes" ; then
9704			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9705			found="yes"
9706		fi
9707	fi
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723xorg_testset_save_CFLAGS="$CFLAGS"
9724
9725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733/* end confdefs.h.  */
9734int i;
9735_ACEOF
9736if ac_fn_c_try_compile "$LINENO"; then :
9737  xorg_cv_cc_flag_unknown_warning_option=yes
9738else
9739  xorg_cv_cc_flag_unknown_warning_option=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742fi
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9746	CFLAGS="$xorg_testset_save_CFLAGS"
9747fi
9748
9749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752	fi
9753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9757  $as_echo_n "(cached) " >&6
9758else
9759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760/* end confdefs.h.  */
9761int i;
9762_ACEOF
9763if ac_fn_c_try_compile "$LINENO"; then :
9764  xorg_cv_cc_flag_unused_command_line_argument=yes
9765else
9766  xorg_cv_cc_flag_unused_command_line_argument=no
9767fi
9768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769fi
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9773	CFLAGS="$xorg_testset_save_CFLAGS"
9774fi
9775
9776found="no"
9777
9778	if test $found = "no" ; then
9779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9781		fi
9782
9783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785		fi
9786
9787		CFLAGS="$CFLAGS -Waddress"
9788
9789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9790$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9791		cacheid=xorg_cv_cc_flag__Waddress
9792		if eval \${$cacheid+:} false; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797int i;
9798int
9799main ()
9800{
9801
9802  ;
9803  return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_link "$LINENO"; then :
9807  eval $cacheid=yes
9808else
9809  eval $cacheid=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext \
9812    conftest$ac_exeext conftest.$ac_ext
9813fi
9814
9815
9816		CFLAGS="$xorg_testset_save_CFLAGS"
9817
9818		eval supported=\$$cacheid
9819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9820$as_echo "$supported" >&6; }
9821		if test "$supported" = "yes" ; then
9822			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9823			found="yes"
9824		fi
9825	fi
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841xorg_testset_save_CFLAGS="$CFLAGS"
9842
9843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9848  $as_echo_n "(cached) " >&6
9849else
9850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852int i;
9853_ACEOF
9854if ac_fn_c_try_compile "$LINENO"; then :
9855  xorg_cv_cc_flag_unknown_warning_option=yes
9856else
9857  xorg_cv_cc_flag_unknown_warning_option=no
9858fi
9859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860fi
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9864	CFLAGS="$xorg_testset_save_CFLAGS"
9865fi
9866
9867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870	fi
9871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9875  $as_echo_n "(cached) " >&6
9876else
9877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h.  */
9879int i;
9880_ACEOF
9881if ac_fn_c_try_compile "$LINENO"; then :
9882  xorg_cv_cc_flag_unused_command_line_argument=yes
9883else
9884  xorg_cv_cc_flag_unused_command_line_argument=no
9885fi
9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887fi
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9891	CFLAGS="$xorg_testset_save_CFLAGS"
9892fi
9893
9894found="no"
9895
9896	if test $found = "no" ; then
9897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899		fi
9900
9901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903		fi
9904
9905		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9906
9907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9908$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9909		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9910		if eval \${$cacheid+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int i;
9916int
9917main ()
9918{
9919
9920  ;
9921  return 0;
9922}
9923_ACEOF
9924if ac_fn_c_try_link "$LINENO"; then :
9925  eval $cacheid=yes
9926else
9927  eval $cacheid=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext \
9930    conftest$ac_exeext conftest.$ac_ext
9931fi
9932
9933
9934		CFLAGS="$xorg_testset_save_CFLAGS"
9935
9936		eval supported=\$$cacheid
9937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9938$as_echo "$supported" >&6; }
9939		if test "$supported" = "yes" ; then
9940			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9941			found="yes"
9942		fi
9943	fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959xorg_testset_save_CFLAGS="$CFLAGS"
9960
9961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"; then :
9973  xorg_cv_cc_flag_unknown_warning_option=yes
9974else
9975  xorg_cv_cc_flag_unknown_warning_option=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982	CFLAGS="$xorg_testset_save_CFLAGS"
9983fi
9984
9985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988	fi
9989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h.  */
9997int i;
9998_ACEOF
9999if ac_fn_c_try_compile "$LINENO"; then :
10000  xorg_cv_cc_flag_unused_command_line_argument=yes
10001else
10002  xorg_cv_cc_flag_unused_command_line_argument=no
10003fi
10004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005fi
10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009	CFLAGS="$xorg_testset_save_CFLAGS"
10010fi
10011
10012found="no"
10013
10014	if test $found = "no" ; then
10015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017		fi
10018
10019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021		fi
10022
10023		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10024
10025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10026$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10027		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10028		if eval \${$cacheid+:} false; then :
10029  $as_echo_n "(cached) " >&6
10030else
10031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032/* end confdefs.h.  */
10033int i;
10034int
10035main ()
10036{
10037
10038  ;
10039  return 0;
10040}
10041_ACEOF
10042if ac_fn_c_try_link "$LINENO"; then :
10043  eval $cacheid=yes
10044else
10045  eval $cacheid=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext \
10048    conftest$ac_exeext conftest.$ac_ext
10049fi
10050
10051
10052		CFLAGS="$xorg_testset_save_CFLAGS"
10053
10054		eval supported=\$$cacheid
10055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10056$as_echo "$supported" >&6; }
10057		if test "$supported" = "yes" ; then
10058			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10059			found="yes"
10060		fi
10061	fi
10062
10063
10064fi
10065
10066
10067
10068
10069
10070
10071
10072		CWARNFLAGS="$BASE_CFLAGS"
10073		if  test "x$GCC" = xyes ; then
10074		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10075		fi
10076
10077
10078
10079
10080
10081
10082
10083
10084# Check whether --enable-strict-compilation was given.
10085if test "${enable_strict_compilation+set}" = set; then :
10086  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10087else
10088  STRICT_COMPILE=no
10089fi
10090
10091
10092
10093
10094
10095
10096STRICT_CFLAGS=""
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110xorg_testset_save_CFLAGS="$CFLAGS"
10111
10112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10113	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10115$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10116if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10117  $as_echo_n "(cached) " >&6
10118else
10119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120/* end confdefs.h.  */
10121int i;
10122_ACEOF
10123if ac_fn_c_try_compile "$LINENO"; then :
10124  xorg_cv_cc_flag_unknown_warning_option=yes
10125else
10126  xorg_cv_cc_flag_unknown_warning_option=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129fi
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133	CFLAGS="$xorg_testset_save_CFLAGS"
10134fi
10135
10136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139	fi
10140	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10144  $as_echo_n "(cached) " >&6
10145else
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148int i;
10149_ACEOF
10150if ac_fn_c_try_compile "$LINENO"; then :
10151  xorg_cv_cc_flag_unused_command_line_argument=yes
10152else
10153  xorg_cv_cc_flag_unused_command_line_argument=no
10154fi
10155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156fi
10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163found="no"
10164
10165	if test $found = "no" ; then
10166		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168		fi
10169
10170		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172		fi
10173
10174		CFLAGS="$CFLAGS -pedantic"
10175
10176		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10177$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10178		cacheid=xorg_cv_cc_flag__pedantic
10179		if eval \${$cacheid+:} false; then :
10180  $as_echo_n "(cached) " >&6
10181else
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185int
10186main ()
10187{
10188
10189  ;
10190  return 0;
10191}
10192_ACEOF
10193if ac_fn_c_try_link "$LINENO"; then :
10194  eval $cacheid=yes
10195else
10196  eval $cacheid=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext \
10199    conftest$ac_exeext conftest.$ac_ext
10200fi
10201
10202
10203		CFLAGS="$xorg_testset_save_CFLAGS"
10204
10205		eval supported=\$$cacheid
10206		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10207$as_echo "$supported" >&6; }
10208		if test "$supported" = "yes" ; then
10209			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10210			found="yes"
10211		fi
10212	fi
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228xorg_testset_save_CFLAGS="$CFLAGS"
10229
10230if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10231	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10233$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10234if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240_ACEOF
10241if ac_fn_c_try_compile "$LINENO"; then :
10242  xorg_cv_cc_flag_unknown_warning_option=yes
10243else
10244  xorg_cv_cc_flag_unknown_warning_option=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247fi
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251	CFLAGS="$xorg_testset_save_CFLAGS"
10252fi
10253
10254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257	fi
10258	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10262  $as_echo_n "(cached) " >&6
10263else
10264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266int i;
10267_ACEOF
10268if ac_fn_c_try_compile "$LINENO"; then :
10269  xorg_cv_cc_flag_unused_command_line_argument=yes
10270else
10271  xorg_cv_cc_flag_unused_command_line_argument=no
10272fi
10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274fi
10275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10276$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10277	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10278	CFLAGS="$xorg_testset_save_CFLAGS"
10279fi
10280
10281found="no"
10282
10283	if test $found = "no" ; then
10284		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10285			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286		fi
10287
10288		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10289			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290		fi
10291
10292		CFLAGS="$CFLAGS -Werror"
10293
10294		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10295$as_echo_n "checking if $CC supports -Werror... " >&6; }
10296		cacheid=xorg_cv_cc_flag__Werror
10297		if eval \${$cacheid+:} false; then :
10298  $as_echo_n "(cached) " >&6
10299else
10300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302int i;
10303int
10304main ()
10305{
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_link "$LINENO"; then :
10312  eval $cacheid=yes
10313else
10314  eval $cacheid=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext \
10317    conftest$ac_exeext conftest.$ac_ext
10318fi
10319
10320
10321		CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323		eval supported=\$$cacheid
10324		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325$as_echo "$supported" >&6; }
10326		if test "$supported" = "yes" ; then
10327			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10328			found="yes"
10329		fi
10330	fi
10331
10332	if test $found = "no" ; then
10333		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335		fi
10336
10337		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339		fi
10340
10341		CFLAGS="$CFLAGS -errwarn"
10342
10343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10344$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10345		cacheid=xorg_cv_cc_flag__errwarn
10346		if eval \${$cacheid+:} false; then :
10347  $as_echo_n "(cached) " >&6
10348else
10349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350/* end confdefs.h.  */
10351int i;
10352int
10353main ()
10354{
10355
10356  ;
10357  return 0;
10358}
10359_ACEOF
10360if ac_fn_c_try_link "$LINENO"; then :
10361  eval $cacheid=yes
10362else
10363  eval $cacheid=no
10364fi
10365rm -f core conftest.err conftest.$ac_objext \
10366    conftest$ac_exeext conftest.$ac_ext
10367fi
10368
10369
10370		CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372		eval supported=\$$cacheid
10373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374$as_echo "$supported" >&6; }
10375		if test "$supported" = "yes" ; then
10376			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10377			found="yes"
10378		fi
10379	fi
10380
10381
10382
10383# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10384# activate it with -Werror, so we add it here explicitly.
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398xorg_testset_save_CFLAGS="$CFLAGS"
10399
10400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10405  $as_echo_n "(cached) " >&6
10406else
10407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409int i;
10410_ACEOF
10411if ac_fn_c_try_compile "$LINENO"; then :
10412  xorg_cv_cc_flag_unknown_warning_option=yes
10413else
10414  xorg_cv_cc_flag_unknown_warning_option=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10421	CFLAGS="$xorg_testset_save_CFLAGS"
10422fi
10423
10424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427	fi
10428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436int i;
10437_ACEOF
10438if ac_fn_c_try_compile "$LINENO"; then :
10439  xorg_cv_cc_flag_unused_command_line_argument=yes
10440else
10441  xorg_cv_cc_flag_unused_command_line_argument=no
10442fi
10443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444fi
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448	CFLAGS="$xorg_testset_save_CFLAGS"
10449fi
10450
10451found="no"
10452
10453	if test $found = "no" ; then
10454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456		fi
10457
10458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460		fi
10461
10462		CFLAGS="$CFLAGS -Werror=attributes"
10463
10464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10465$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10466		cacheid=xorg_cv_cc_flag__Werror_attributes
10467		if eval \${$cacheid+:} false; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h.  */
10472int i;
10473int
10474main ()
10475{
10476
10477  ;
10478  return 0;
10479}
10480_ACEOF
10481if ac_fn_c_try_link "$LINENO"; then :
10482  eval $cacheid=yes
10483else
10484  eval $cacheid=no
10485fi
10486rm -f core conftest.err conftest.$ac_objext \
10487    conftest$ac_exeext conftest.$ac_ext
10488fi
10489
10490
10491		CFLAGS="$xorg_testset_save_CFLAGS"
10492
10493		eval supported=\$$cacheid
10494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495$as_echo "$supported" >&6; }
10496		if test "$supported" = "yes" ; then
10497			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10498			found="yes"
10499		fi
10500	fi
10501
10502
10503
10504if test "x$STRICT_COMPILE" = "xyes"; then
10505    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10506    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10507fi
10508
10509
10510
10511
10512
10513
10514cat >>confdefs.h <<_ACEOF
10515#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10516_ACEOF
10517
10518	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10519	if test "x$PVM" = "x"; then
10520		PVM="0"
10521	fi
10522
10523cat >>confdefs.h <<_ACEOF
10524#define PACKAGE_VERSION_MINOR $PVM
10525_ACEOF
10526
10527	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10528	if test "x$PVP" = "x"; then
10529		PVP="0"
10530	fi
10531
10532cat >>confdefs.h <<_ACEOF
10533#define PACKAGE_VERSION_PATCHLEVEL $PVP
10534_ACEOF
10535
10536
10537
10538CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10539mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10540|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10541echo 'git directory not found: installing possibly empty changelog.' >&2)"
10542
10543
10544
10545
10546macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10547INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10548mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10549|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10550echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10551
10552
10553
10554
10555
10556
10557if test x$APP_MAN_SUFFIX = x    ; then
10558    APP_MAN_SUFFIX=1
10559fi
10560if test x$APP_MAN_DIR = x    ; then
10561    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10562fi
10563
10564if test x$LIB_MAN_SUFFIX = x    ; then
10565    LIB_MAN_SUFFIX=3
10566fi
10567if test x$LIB_MAN_DIR = x    ; then
10568    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10569fi
10570
10571if test x$FILE_MAN_SUFFIX = x    ; then
10572    case $host_os in
10573	# Solaris 2.0 - 11 use SysV man page sections
10574	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10575	*)				FILE_MAN_SUFFIX=5  ;;
10576    esac
10577fi
10578if test x$FILE_MAN_DIR = x    ; then
10579    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10580fi
10581
10582if test x$MISC_MAN_SUFFIX = x    ; then
10583    case $host_os in
10584	# Solaris 2.0 - 11 use SysV man page sections
10585	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10586	*)				MISC_MAN_SUFFIX=7  ;;
10587    esac
10588fi
10589if test x$MISC_MAN_DIR = x    ; then
10590    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10591fi
10592
10593if test x$DRIVER_MAN_SUFFIX = x    ; then
10594    case $host_os in
10595	# Solaris 2.0 - 11 use SysV man page sections
10596	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10597	*)				DRIVER_MAN_SUFFIX=4  ;;
10598    esac
10599fi
10600if test x$DRIVER_MAN_DIR = x    ; then
10601    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10602fi
10603
10604if test x$ADMIN_MAN_SUFFIX = x    ; then
10605    case $host_os in
10606	# Solaris 2.0 - 11 use SysV man page sections
10607	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10608	*)				ADMIN_MAN_SUFFIX=8  ;;
10609    esac
10610fi
10611if test x$ADMIN_MAN_DIR = x    ; then
10612    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10613fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629XORG_MAN_PAGE="X Version 11"
10630
10631MAN_SUBSTS="\
10632	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10633	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10634	-e 's|__xservername__|Xorg|g' \
10635	-e 's|__xconfigfile__|xorg.conf|g' \
10636	-e 's|__projectroot__|\$(prefix)|g' \
10637	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10638	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10639	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10640	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10641	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10642	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10643	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10644
10645
10646
10647# Check whether --enable-silent-rules was given.
10648if test "${enable_silent_rules+set}" = set; then :
10649  enableval=$enable_silent_rules;
10650fi
10651
10652case $enable_silent_rules in # (((
10653  yes) AM_DEFAULT_VERBOSITY=0;;
10654   no) AM_DEFAULT_VERBOSITY=1;;
10655    *) AM_DEFAULT_VERBOSITY=0;;
10656esac
10657am_make=${MAKE-make}
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10659$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10660if ${am_cv_make_support_nested_variables+:} false; then :
10661  $as_echo_n "(cached) " >&6
10662else
10663  if $as_echo 'TRUE=$(BAR$(V))
10664BAR0=false
10665BAR1=true
10666V=1
10667am__doit:
10668	@$(TRUE)
10669.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10670  am_cv_make_support_nested_variables=yes
10671else
10672  am_cv_make_support_nested_variables=no
10673fi
10674fi
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10676$as_echo "$am_cv_make_support_nested_variables" >&6; }
10677if test $am_cv_make_support_nested_variables = yes; then
10678    AM_V='$(V)'
10679  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10680else
10681  AM_V=$AM_DEFAULT_VERBOSITY
10682  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10683fi
10684AM_BACKSLASH='\'
10685
10686
10687
10688for ac_func in strlcpy
10689do :
10690  ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
10691if test "x$ac_cv_func_strlcpy" = xyes; then :
10692  cat >>confdefs.h <<_ACEOF
10693#define HAVE_STRLCPY 1
10694_ACEOF
10695
10696fi
10697done
10698
10699
10700# Checks for pkg-config packages
10701
10702pkg_failed=no
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5
10704$as_echo_n "checking for XCALC... " >&6; }
10705
10706if test -n "$XCALC_CFLAGS"; then
10707    pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS"
10708 elif test -n "$PKG_CONFIG"; then
10709    if test -n "$PKG_CONFIG" && \
10710    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
10711  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
10712  ac_status=$?
10713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10714  test $ac_status = 0; }; then
10715  pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
10716		      test "x$?" != "x0" && pkg_failed=yes
10717else
10718  pkg_failed=yes
10719fi
10720 else
10721    pkg_failed=untried
10722fi
10723if test -n "$XCALC_LIBS"; then
10724    pkg_cv_XCALC_LIBS="$XCALC_LIBS"
10725 elif test -n "$PKG_CONFIG"; then
10726    if test -n "$PKG_CONFIG" && \
10727    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5
10728  ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5
10729  ac_status=$?
10730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10731  test $ac_status = 0; }; then
10732  pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null`
10733		      test "x$?" != "x0" && pkg_failed=yes
10734else
10735  pkg_failed=yes
10736fi
10737 else
10738    pkg_failed=untried
10739fi
10740
10741
10742
10743if test $pkg_failed = yes; then
10744   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
10746
10747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10748        _pkg_short_errors_supported=yes
10749else
10750        _pkg_short_errors_supported=no
10751fi
10752        if test $_pkg_short_errors_supported = yes; then
10753	        XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
10754        else
10755	        XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1`
10756        fi
10757	# Put the nasty error message in config.log where it belongs
10758	echo "$XCALC_PKG_ERRORS" >&5
10759
10760	as_fn_error $? "Package requirements (xaw7 xt x11 xproto >= 7.0.17) were not met:
10761
10762$XCALC_PKG_ERRORS
10763
10764Consider adjusting the PKG_CONFIG_PATH environment variable if you
10765installed software in a non-standard prefix.
10766
10767Alternatively, you may set the environment variables XCALC_CFLAGS
10768and XCALC_LIBS to avoid the need to call pkg-config.
10769See the pkg-config man page for more details." "$LINENO" 5
10770elif test $pkg_failed = untried; then
10771     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772$as_echo "no" >&6; }
10773	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10775as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10776is in your PATH or set the PKG_CONFIG environment variable to the full
10777path to pkg-config.
10778
10779Alternatively, you may set the environment variables XCALC_CFLAGS
10780and XCALC_LIBS to avoid the need to call pkg-config.
10781See the pkg-config man page for more details.
10782
10783To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10784See \`config.log' for more details" "$LINENO" 5; }
10785else
10786	XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS
10787	XCALC_LIBS=$pkg_cv_XCALC_LIBS
10788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10789$as_echo "yes" >&6; }
10790
10791fi
10792
10793
10794pkg_failed=no
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10796$as_echo_n "checking for APPDEFS... " >&6; }
10797
10798if test -n "$APPDEFS_CFLAGS"; then
10799    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10800 elif test -n "$PKG_CONFIG"; then
10801    if test -n "$PKG_CONFIG" && \
10802    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10803  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10804  ac_status=$?
10805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806  test $ac_status = 0; }; then
10807  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10808		      test "x$?" != "x0" && pkg_failed=yes
10809else
10810  pkg_failed=yes
10811fi
10812 else
10813    pkg_failed=untried
10814fi
10815if test -n "$APPDEFS_LIBS"; then
10816    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10817 elif test -n "$PKG_CONFIG"; then
10818    if test -n "$PKG_CONFIG" && \
10819    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10820  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10821  ac_status=$?
10822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10823  test $ac_status = 0; }; then
10824  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10825		      test "x$?" != "x0" && pkg_failed=yes
10826else
10827  pkg_failed=yes
10828fi
10829 else
10830    pkg_failed=untried
10831fi
10832
10833
10834
10835if test $pkg_failed = yes; then
10836   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10837$as_echo "no" >&6; }
10838
10839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10840        _pkg_short_errors_supported=yes
10841else
10842        _pkg_short_errors_supported=no
10843fi
10844        if test $_pkg_short_errors_supported = yes; then
10845	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
10846        else
10847	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
10848        fi
10849	# Put the nasty error message in config.log where it belongs
10850	echo "$APPDEFS_PKG_ERRORS" >&5
10851
10852	as_fn_error $? "Package requirements (xt) were not met:
10853
10854$APPDEFS_PKG_ERRORS
10855
10856Consider adjusting the PKG_CONFIG_PATH environment variable if you
10857installed software in a non-standard prefix.
10858
10859Alternatively, you may set the environment variables APPDEFS_CFLAGS
10860and APPDEFS_LIBS to avoid the need to call pkg-config.
10861See the pkg-config man page for more details." "$LINENO" 5
10862elif test $pkg_failed = untried; then
10863     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
10865	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10867as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10868is in your PATH or set the PKG_CONFIG environment variable to the full
10869path to pkg-config.
10870
10871Alternatively, you may set the environment variables APPDEFS_CFLAGS
10872and APPDEFS_LIBS to avoid the need to call pkg-config.
10873See the pkg-config man page for more details.
10874
10875To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10876See \`config.log' for more details" "$LINENO" 5; }
10877else
10878	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10879	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10880        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10881$as_echo "yes" >&6; }
10882
10883fi
10884xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10885
10886# Check whether --with-appdefaultdir was given.
10887if test "${with_appdefaultdir+set}" = set; then :
10888  withval=$with_appdefaultdir; appdefaultdir="$withval"
10889else
10890  appdefaultdir="${xt_appdefaultdir}"
10891fi
10892
10893
10894
10895
10896ac_config_files="$ac_config_files Makefile man/Makefile"
10897
10898cat >confcache <<\_ACEOF
10899# This file is a shell script that caches the results of configure
10900# tests run on this system so they can be shared between configure
10901# scripts and configure runs, see configure's option --config-cache.
10902# It is not useful on other systems.  If it contains results you don't
10903# want to keep, you may remove or edit it.
10904#
10905# config.status only pays attention to the cache file if you give it
10906# the --recheck option to rerun configure.
10907#
10908# `ac_cv_env_foo' variables (set or unset) will be overridden when
10909# loading this file, other *unset* `ac_cv_foo' will be assigned the
10910# following values.
10911
10912_ACEOF
10913
10914# The following way of writing the cache mishandles newlines in values,
10915# but we know of no workaround that is simple, portable, and efficient.
10916# So, we kill variables containing newlines.
10917# Ultrix sh set writes to stderr and can't be redirected directly,
10918# and sets the high bit in the cache file unless we assign to the vars.
10919(
10920  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10921    eval ac_val=\$$ac_var
10922    case $ac_val in #(
10923    *${as_nl}*)
10924      case $ac_var in #(
10925      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10926$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10927      esac
10928      case $ac_var in #(
10929      _ | IFS | as_nl) ;; #(
10930      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10931      *) { eval $ac_var=; unset $ac_var;} ;;
10932      esac ;;
10933    esac
10934  done
10935
10936  (set) 2>&1 |
10937    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10938    *${as_nl}ac_space=\ *)
10939      # `set' does not quote correctly, so add quotes: double-quote
10940      # substitution turns \\\\ into \\, and sed turns \\ into \.
10941      sed -n \
10942	"s/'/'\\\\''/g;
10943	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10944      ;; #(
10945    *)
10946      # `set' quotes correctly as required by POSIX, so do not add quotes.
10947      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10948      ;;
10949    esac |
10950    sort
10951) |
10952  sed '
10953     /^ac_cv_env_/b end
10954     t clear
10955     :clear
10956     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10957     t end
10958     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10959     :end' >>confcache
10960if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10961  if test -w "$cache_file"; then
10962    if test "x$cache_file" != "x/dev/null"; then
10963      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10964$as_echo "$as_me: updating cache $cache_file" >&6;}
10965      if test ! -f "$cache_file" || test -h "$cache_file"; then
10966	cat confcache >"$cache_file"
10967      else
10968        case $cache_file in #(
10969        */* | ?:*)
10970	  mv -f confcache "$cache_file"$$ &&
10971	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10972        *)
10973	  mv -f confcache "$cache_file" ;;
10974	esac
10975      fi
10976    fi
10977  else
10978    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10979$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10980  fi
10981fi
10982rm -f confcache
10983
10984test "x$prefix" = xNONE && prefix=$ac_default_prefix
10985# Let make expand exec_prefix.
10986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10987
10988DEFS=-DHAVE_CONFIG_H
10989
10990ac_libobjs=
10991ac_ltlibobjs=
10992U=
10993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10994  # 1. Remove the extension, and $U if already installed.
10995  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10996  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10997  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10998  #    will be set to the directory where LIBOBJS objects are built.
10999  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11000  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11001done
11002LIBOBJS=$ac_libobjs
11003
11004LTLIBOBJS=$ac_ltlibobjs
11005
11006
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11008$as_echo_n "checking that generated files are newer than configure... " >&6; }
11009   if test -n "$am_sleep_pid"; then
11010     # Hide warnings about reused PIDs.
11011     wait $am_sleep_pid 2>/dev/null
11012   fi
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11014$as_echo "done" >&6; }
11015 if test -n "$EXEEXT"; then
11016  am__EXEEXT_TRUE=
11017  am__EXEEXT_FALSE='#'
11018else
11019  am__EXEEXT_TRUE='#'
11020  am__EXEEXT_FALSE=
11021fi
11022
11023if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11024  as_fn_error $? "conditional \"AMDEP\" was never defined.
11025Usually this means the macro was only invoked conditionally." "$LINENO" 5
11026fi
11027if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11028  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11029Usually this means the macro was only invoked conditionally." "$LINENO" 5
11030fi
11031
11032: "${CONFIG_STATUS=./config.status}"
11033ac_write_fail=0
11034ac_clean_files_save=$ac_clean_files
11035ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11036{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11037$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11038as_write_fail=0
11039cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11040#! $SHELL
11041# Generated by $as_me.
11042# Run this file to recreate the current configuration.
11043# Compiler output produced by configure, useful for debugging
11044# configure, is in config.log if it exists.
11045
11046debug=false
11047ac_cs_recheck=false
11048ac_cs_silent=false
11049
11050SHELL=\${CONFIG_SHELL-$SHELL}
11051export SHELL
11052_ASEOF
11053cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11054## -------------------- ##
11055## M4sh Initialization. ##
11056## -------------------- ##
11057
11058# Be more Bourne compatible
11059DUALCASE=1; export DUALCASE # for MKS sh
11060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11061  emulate sh
11062  NULLCMD=:
11063  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11064  # is contrary to our usage.  Disable this feature.
11065  alias -g '${1+"$@"}'='"$@"'
11066  setopt NO_GLOB_SUBST
11067else
11068  case `(set -o) 2>/dev/null` in #(
11069  *posix*) :
11070    set -o posix ;; #(
11071  *) :
11072     ;;
11073esac
11074fi
11075
11076
11077as_nl='
11078'
11079export as_nl
11080# Printing a long string crashes Solaris 7 /usr/bin/printf.
11081as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11082as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11083as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11084# Prefer a ksh shell builtin over an external printf program on Solaris,
11085# but without wasting forks for bash or zsh.
11086if test -z "$BASH_VERSION$ZSH_VERSION" \
11087    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11088  as_echo='print -r --'
11089  as_echo_n='print -rn --'
11090elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11091  as_echo='printf %s\n'
11092  as_echo_n='printf %s'
11093else
11094  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11095    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11096    as_echo_n='/usr/ucb/echo -n'
11097  else
11098    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11099    as_echo_n_body='eval
11100      arg=$1;
11101      case $arg in #(
11102      *"$as_nl"*)
11103	expr "X$arg" : "X\\(.*\\)$as_nl";
11104	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11105      esac;
11106      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11107    '
11108    export as_echo_n_body
11109    as_echo_n='sh -c $as_echo_n_body as_echo'
11110  fi
11111  export as_echo_body
11112  as_echo='sh -c $as_echo_body as_echo'
11113fi
11114
11115# The user is always right.
11116if test "${PATH_SEPARATOR+set}" != set; then
11117  PATH_SEPARATOR=:
11118  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11119    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11120      PATH_SEPARATOR=';'
11121  }
11122fi
11123
11124
11125# IFS
11126# We need space, tab and new line, in precisely that order.  Quoting is
11127# there to prevent editors from complaining about space-tab.
11128# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11129# splitting by setting IFS to empty value.)
11130IFS=" ""	$as_nl"
11131
11132# Find who we are.  Look in the path if we contain no directory separator.
11133as_myself=
11134case $0 in #((
11135  *[\\/]* ) as_myself=$0 ;;
11136  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137for as_dir in $PATH
11138do
11139  IFS=$as_save_IFS
11140  test -z "$as_dir" && as_dir=.
11141    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11142  done
11143IFS=$as_save_IFS
11144
11145     ;;
11146esac
11147# We did not find ourselves, most probably we were run as `sh COMMAND'
11148# in which case we are not to be found in the path.
11149if test "x$as_myself" = x; then
11150  as_myself=$0
11151fi
11152if test ! -f "$as_myself"; then
11153  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11154  exit 1
11155fi
11156
11157# Unset variables that we do not need and which cause bugs (e.g. in
11158# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11159# suppresses any "Segmentation fault" message there.  '((' could
11160# trigger a bug in pdksh 5.2.14.
11161for as_var in BASH_ENV ENV MAIL MAILPATH
11162do eval test x\${$as_var+set} = xset \
11163  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11164done
11165PS1='$ '
11166PS2='> '
11167PS4='+ '
11168
11169# NLS nuisances.
11170LC_ALL=C
11171export LC_ALL
11172LANGUAGE=C
11173export LANGUAGE
11174
11175# CDPATH.
11176(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11177
11178
11179# as_fn_error STATUS ERROR [LINENO LOG_FD]
11180# ----------------------------------------
11181# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11182# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11183# script with STATUS, using 1 if that was 0.
11184as_fn_error ()
11185{
11186  as_status=$1; test $as_status -eq 0 && as_status=1
11187  if test "$4"; then
11188    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11189    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11190  fi
11191  $as_echo "$as_me: error: $2" >&2
11192  as_fn_exit $as_status
11193} # as_fn_error
11194
11195
11196# as_fn_set_status STATUS
11197# -----------------------
11198# Set $? to STATUS, without forking.
11199as_fn_set_status ()
11200{
11201  return $1
11202} # as_fn_set_status
11203
11204# as_fn_exit STATUS
11205# -----------------
11206# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11207as_fn_exit ()
11208{
11209  set +e
11210  as_fn_set_status $1
11211  exit $1
11212} # as_fn_exit
11213
11214# as_fn_unset VAR
11215# ---------------
11216# Portably unset VAR.
11217as_fn_unset ()
11218{
11219  { eval $1=; unset $1;}
11220}
11221as_unset=as_fn_unset
11222# as_fn_append VAR VALUE
11223# ----------------------
11224# Append the text in VALUE to the end of the definition contained in VAR. Take
11225# advantage of any shell optimizations that allow amortized linear growth over
11226# repeated appends, instead of the typical quadratic growth present in naive
11227# implementations.
11228if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11229  eval 'as_fn_append ()
11230  {
11231    eval $1+=\$2
11232  }'
11233else
11234  as_fn_append ()
11235  {
11236    eval $1=\$$1\$2
11237  }
11238fi # as_fn_append
11239
11240# as_fn_arith ARG...
11241# ------------------
11242# Perform arithmetic evaluation on the ARGs, and store the result in the
11243# global $as_val. Take advantage of shells that can avoid forks. The arguments
11244# must be portable across $(()) and expr.
11245if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11246  eval 'as_fn_arith ()
11247  {
11248    as_val=$(( $* ))
11249  }'
11250else
11251  as_fn_arith ()
11252  {
11253    as_val=`expr "$@" || test $? -eq 1`
11254  }
11255fi # as_fn_arith
11256
11257
11258if expr a : '\(a\)' >/dev/null 2>&1 &&
11259   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11260  as_expr=expr
11261else
11262  as_expr=false
11263fi
11264
11265if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11266  as_basename=basename
11267else
11268  as_basename=false
11269fi
11270
11271if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11272  as_dirname=dirname
11273else
11274  as_dirname=false
11275fi
11276
11277as_me=`$as_basename -- "$0" ||
11278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11279	 X"$0" : 'X\(//\)$' \| \
11280	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11281$as_echo X/"$0" |
11282    sed '/^.*\/\([^/][^/]*\)\/*$/{
11283	    s//\1/
11284	    q
11285	  }
11286	  /^X\/\(\/\/\)$/{
11287	    s//\1/
11288	    q
11289	  }
11290	  /^X\/\(\/\).*/{
11291	    s//\1/
11292	    q
11293	  }
11294	  s/.*/./; q'`
11295
11296# Avoid depending upon Character Ranges.
11297as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11298as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11299as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11300as_cr_digits='0123456789'
11301as_cr_alnum=$as_cr_Letters$as_cr_digits
11302
11303ECHO_C= ECHO_N= ECHO_T=
11304case `echo -n x` in #(((((
11305-n*)
11306  case `echo 'xy\c'` in
11307  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11308  xy)  ECHO_C='\c';;
11309  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11310       ECHO_T='	';;
11311  esac;;
11312*)
11313  ECHO_N='-n';;
11314esac
11315
11316rm -f conf$$ conf$$.exe conf$$.file
11317if test -d conf$$.dir; then
11318  rm -f conf$$.dir/conf$$.file
11319else
11320  rm -f conf$$.dir
11321  mkdir conf$$.dir 2>/dev/null
11322fi
11323if (echo >conf$$.file) 2>/dev/null; then
11324  if ln -s conf$$.file conf$$ 2>/dev/null; then
11325    as_ln_s='ln -s'
11326    # ... but there are two gotchas:
11327    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11328    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11329    # In both cases, we have to default to `cp -pR'.
11330    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11331      as_ln_s='cp -pR'
11332  elif ln conf$$.file conf$$ 2>/dev/null; then
11333    as_ln_s=ln
11334  else
11335    as_ln_s='cp -pR'
11336  fi
11337else
11338  as_ln_s='cp -pR'
11339fi
11340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11341rmdir conf$$.dir 2>/dev/null
11342
11343
11344# as_fn_mkdir_p
11345# -------------
11346# Create "$as_dir" as a directory, including parents if necessary.
11347as_fn_mkdir_p ()
11348{
11349
11350  case $as_dir in #(
11351  -*) as_dir=./$as_dir;;
11352  esac
11353  test -d "$as_dir" || eval $as_mkdir_p || {
11354    as_dirs=
11355    while :; do
11356      case $as_dir in #(
11357      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11358      *) as_qdir=$as_dir;;
11359      esac
11360      as_dirs="'$as_qdir' $as_dirs"
11361      as_dir=`$as_dirname -- "$as_dir" ||
11362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11363	 X"$as_dir" : 'X\(//\)[^/]' \| \
11364	 X"$as_dir" : 'X\(//\)$' \| \
11365	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11366$as_echo X"$as_dir" |
11367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11368	    s//\1/
11369	    q
11370	  }
11371	  /^X\(\/\/\)[^/].*/{
11372	    s//\1/
11373	    q
11374	  }
11375	  /^X\(\/\/\)$/{
11376	    s//\1/
11377	    q
11378	  }
11379	  /^X\(\/\).*/{
11380	    s//\1/
11381	    q
11382	  }
11383	  s/.*/./; q'`
11384      test -d "$as_dir" && break
11385    done
11386    test -z "$as_dirs" || eval "mkdir $as_dirs"
11387  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11388
11389
11390} # as_fn_mkdir_p
11391if mkdir -p . 2>/dev/null; then
11392  as_mkdir_p='mkdir -p "$as_dir"'
11393else
11394  test -d ./-p && rmdir ./-p
11395  as_mkdir_p=false
11396fi
11397
11398
11399# as_fn_executable_p FILE
11400# -----------------------
11401# Test if FILE is an executable regular file.
11402as_fn_executable_p ()
11403{
11404  test -f "$1" && test -x "$1"
11405} # as_fn_executable_p
11406as_test_x='test -x'
11407as_executable_p=as_fn_executable_p
11408
11409# Sed expression to map a string onto a valid CPP name.
11410as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11411
11412# Sed expression to map a string onto a valid variable name.
11413as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11414
11415
11416exec 6>&1
11417## ----------------------------------- ##
11418## Main body of $CONFIG_STATUS script. ##
11419## ----------------------------------- ##
11420_ASEOF
11421test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11422
11423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11424# Save the log message, to keep $0 and so on meaningful, and to
11425# report actual input values of CONFIG_FILES etc. instead of their
11426# values after options handling.
11427ac_log="
11428This file was extended by xcalc $as_me 1.0.7, which was
11429generated by GNU Autoconf 2.69.  Invocation command line was
11430
11431  CONFIG_FILES    = $CONFIG_FILES
11432  CONFIG_HEADERS  = $CONFIG_HEADERS
11433  CONFIG_LINKS    = $CONFIG_LINKS
11434  CONFIG_COMMANDS = $CONFIG_COMMANDS
11435  $ $0 $@
11436
11437on `(hostname || uname -n) 2>/dev/null | sed 1q`
11438"
11439
11440_ACEOF
11441
11442case $ac_config_files in *"
11443"*) set x $ac_config_files; shift; ac_config_files=$*;;
11444esac
11445
11446case $ac_config_headers in *"
11447"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11448esac
11449
11450
11451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11452# Files that config.status was made for.
11453config_files="$ac_config_files"
11454config_headers="$ac_config_headers"
11455config_commands="$ac_config_commands"
11456
11457_ACEOF
11458
11459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11460ac_cs_usage="\
11461\`$as_me' instantiates files and other configuration actions
11462from templates according to the current configuration.  Unless the files
11463and actions are specified as TAGs, all are instantiated by default.
11464
11465Usage: $0 [OPTION]... [TAG]...
11466
11467  -h, --help       print this help, then exit
11468  -V, --version    print version number and configuration settings, then exit
11469      --config     print configuration, then exit
11470  -q, --quiet, --silent
11471                   do not print progress messages
11472  -d, --debug      don't remove temporary files
11473      --recheck    update $as_me by reconfiguring in the same conditions
11474      --file=FILE[:TEMPLATE]
11475                   instantiate the configuration file FILE
11476      --header=FILE[:TEMPLATE]
11477                   instantiate the configuration header FILE
11478
11479Configuration files:
11480$config_files
11481
11482Configuration headers:
11483$config_headers
11484
11485Configuration commands:
11486$config_commands
11487
11488Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/issues>."
11489
11490_ACEOF
11491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11492ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11493ac_cs_version="\\
11494xcalc config.status 1.0.7
11495configured by $0, generated by GNU Autoconf 2.69,
11496  with options \\"\$ac_cs_config\\"
11497
11498Copyright (C) 2012 Free Software Foundation, Inc.
11499This config.status script is free software; the Free Software Foundation
11500gives unlimited permission to copy, distribute and modify it."
11501
11502ac_pwd='$ac_pwd'
11503srcdir='$srcdir'
11504INSTALL='$INSTALL'
11505MKDIR_P='$MKDIR_P'
11506AWK='$AWK'
11507test -n "\$AWK" || AWK=awk
11508_ACEOF
11509
11510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11511# The default lists apply if the user does not specify any file.
11512ac_need_defaults=:
11513while test $# != 0
11514do
11515  case $1 in
11516  --*=?*)
11517    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11518    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11519    ac_shift=:
11520    ;;
11521  --*=)
11522    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11523    ac_optarg=
11524    ac_shift=:
11525    ;;
11526  *)
11527    ac_option=$1
11528    ac_optarg=$2
11529    ac_shift=shift
11530    ;;
11531  esac
11532
11533  case $ac_option in
11534  # Handling of the options.
11535  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11536    ac_cs_recheck=: ;;
11537  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11538    $as_echo "$ac_cs_version"; exit ;;
11539  --config | --confi | --conf | --con | --co | --c )
11540    $as_echo "$ac_cs_config"; exit ;;
11541  --debug | --debu | --deb | --de | --d | -d )
11542    debug=: ;;
11543  --file | --fil | --fi | --f )
11544    $ac_shift
11545    case $ac_optarg in
11546    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11547    '') as_fn_error $? "missing file argument" ;;
11548    esac
11549    as_fn_append CONFIG_FILES " '$ac_optarg'"
11550    ac_need_defaults=false;;
11551  --header | --heade | --head | --hea )
11552    $ac_shift
11553    case $ac_optarg in
11554    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11555    esac
11556    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11557    ac_need_defaults=false;;
11558  --he | --h)
11559    # Conflict between --help and --header
11560    as_fn_error $? "ambiguous option: \`$1'
11561Try \`$0 --help' for more information.";;
11562  --help | --hel | -h )
11563    $as_echo "$ac_cs_usage"; exit ;;
11564  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11565  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11566    ac_cs_silent=: ;;
11567
11568  # This is an error.
11569  -*) as_fn_error $? "unrecognized option: \`$1'
11570Try \`$0 --help' for more information." ;;
11571
11572  *) as_fn_append ac_config_targets " $1"
11573     ac_need_defaults=false ;;
11574
11575  esac
11576  shift
11577done
11578
11579ac_configure_extra_args=
11580
11581if $ac_cs_silent; then
11582  exec 6>/dev/null
11583  ac_configure_extra_args="$ac_configure_extra_args --silent"
11584fi
11585
11586_ACEOF
11587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11588if \$ac_cs_recheck; then
11589  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11590  shift
11591  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11592  CONFIG_SHELL='$SHELL'
11593  export CONFIG_SHELL
11594  exec "\$@"
11595fi
11596
11597_ACEOF
11598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11599exec 5>>config.log
11600{
11601  echo
11602  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11603## Running $as_me. ##
11604_ASBOX
11605  $as_echo "$ac_log"
11606} >&5
11607
11608_ACEOF
11609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11610#
11611# INIT-COMMANDS
11612#
11613AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11614
11615_ACEOF
11616
11617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618
11619# Handling of arguments.
11620for ac_config_target in $ac_config_targets
11621do
11622  case $ac_config_target in
11623    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11624    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11625    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11626    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11627
11628  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11629  esac
11630done
11631
11632
11633# If the user did not use the arguments to specify the items to instantiate,
11634# then the envvar interface is used.  Set only those that are not.
11635# We use the long form for the default assignment because of an extremely
11636# bizarre bug on SunOS 4.1.3.
11637if $ac_need_defaults; then
11638  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11639  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11640  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11641fi
11642
11643# Have a temporary directory for convenience.  Make it in the build tree
11644# simply because there is no reason against having it here, and in addition,
11645# creating and moving files from /tmp can sometimes cause problems.
11646# Hook for its removal unless debugging.
11647# Note that there is a small window in which the directory will not be cleaned:
11648# after its creation but before its name has been assigned to `$tmp'.
11649$debug ||
11650{
11651  tmp= ac_tmp=
11652  trap 'exit_status=$?
11653  : "${ac_tmp:=$tmp}"
11654  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11655' 0
11656  trap 'as_fn_exit 1' 1 2 13 15
11657}
11658# Create a (secure) tmp directory for tmp files.
11659
11660{
11661  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11662  test -d "$tmp"
11663}  ||
11664{
11665  tmp=./conf$$-$RANDOM
11666  (umask 077 && mkdir "$tmp")
11667} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11668ac_tmp=$tmp
11669
11670# Set up the scripts for CONFIG_FILES section.
11671# No need to generate them if there are no CONFIG_FILES.
11672# This happens for instance with `./config.status config.h'.
11673if test -n "$CONFIG_FILES"; then
11674
11675
11676ac_cr=`echo X | tr X '\015'`
11677# On cygwin, bash can eat \r inside `` if the user requested igncr.
11678# But we know of no other shell where ac_cr would be empty at this
11679# point, so we can use a bashism as a fallback.
11680if test "x$ac_cr" = x; then
11681  eval ac_cr=\$\'\\r\'
11682fi
11683ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11684if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11685  ac_cs_awk_cr='\\r'
11686else
11687  ac_cs_awk_cr=$ac_cr
11688fi
11689
11690echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11691_ACEOF
11692
11693
11694{
11695  echo "cat >conf$$subs.awk <<_ACEOF" &&
11696  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11697  echo "_ACEOF"
11698} >conf$$subs.sh ||
11699  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11700ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11701ac_delim='%!_!# '
11702for ac_last_try in false false false false false :; do
11703  . ./conf$$subs.sh ||
11704    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11705
11706  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11707  if test $ac_delim_n = $ac_delim_num; then
11708    break
11709  elif $ac_last_try; then
11710    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11711  else
11712    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11713  fi
11714done
11715rm -f conf$$subs.sh
11716
11717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11718cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11719_ACEOF
11720sed -n '
11721h
11722s/^/S["/; s/!.*/"]=/
11723p
11724g
11725s/^[^!]*!//
11726:repl
11727t repl
11728s/'"$ac_delim"'$//
11729t delim
11730:nl
11731h
11732s/\(.\{148\}\)..*/\1/
11733t more1
11734s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11735p
11736n
11737b repl
11738:more1
11739s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11740p
11741g
11742s/.\{148\}//
11743t nl
11744:delim
11745h
11746s/\(.\{148\}\)..*/\1/
11747t more2
11748s/["\\]/\\&/g; s/^/"/; s/$/"/
11749p
11750b
11751:more2
11752s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11753p
11754g
11755s/.\{148\}//
11756t delim
11757' <conf$$subs.awk | sed '
11758/^[^""]/{
11759  N
11760  s/\n//
11761}
11762' >>$CONFIG_STATUS || ac_write_fail=1
11763rm -f conf$$subs.awk
11764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11765_ACAWK
11766cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11767  for (key in S) S_is_set[key] = 1
11768  FS = ""
11769
11770}
11771{
11772  line = $ 0
11773  nfields = split(line, field, "@")
11774  substed = 0
11775  len = length(field[1])
11776  for (i = 2; i < nfields; i++) {
11777    key = field[i]
11778    keylen = length(key)
11779    if (S_is_set[key]) {
11780      value = S[key]
11781      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11782      len += length(value) + length(field[++i])
11783      substed = 1
11784    } else
11785      len += 1 + keylen
11786  }
11787
11788  print line
11789}
11790
11791_ACAWK
11792_ACEOF
11793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11794if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11795  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11796else
11797  cat
11798fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11799  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11800_ACEOF
11801
11802# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11803# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11804# trailing colons and then remove the whole line if VPATH becomes empty
11805# (actually we leave an empty line to preserve line numbers).
11806if test "x$srcdir" = x.; then
11807  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11808h
11809s///
11810s/^/:/
11811s/[	 ]*$/:/
11812s/:\$(srcdir):/:/g
11813s/:\${srcdir}:/:/g
11814s/:@srcdir@:/:/g
11815s/^:*//
11816s/:*$//
11817x
11818s/\(=[	 ]*\).*/\1/
11819G
11820s/\n//
11821s/^[^=]*=[	 ]*$//
11822}'
11823fi
11824
11825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11826fi # test -n "$CONFIG_FILES"
11827
11828# Set up the scripts for CONFIG_HEADERS section.
11829# No need to generate them if there are no CONFIG_HEADERS.
11830# This happens for instance with `./config.status Makefile'.
11831if test -n "$CONFIG_HEADERS"; then
11832cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11833BEGIN {
11834_ACEOF
11835
11836# Transform confdefs.h into an awk script `defines.awk', embedded as
11837# here-document in config.status, that substitutes the proper values into
11838# config.h.in to produce config.h.
11839
11840# Create a delimiter string that does not exist in confdefs.h, to ease
11841# handling of long lines.
11842ac_delim='%!_!# '
11843for ac_last_try in false false :; do
11844  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11845  if test -z "$ac_tt"; then
11846    break
11847  elif $ac_last_try; then
11848    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11849  else
11850    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11851  fi
11852done
11853
11854# For the awk script, D is an array of macro values keyed by name,
11855# likewise P contains macro parameters if any.  Preserve backslash
11856# newline sequences.
11857
11858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11859sed -n '
11860s/.\{148\}/&'"$ac_delim"'/g
11861t rset
11862:rset
11863s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11864t def
11865d
11866:def
11867s/\\$//
11868t bsnl
11869s/["\\]/\\&/g
11870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11871D["\1"]=" \3"/p
11872s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11873d
11874:bsnl
11875s/["\\]/\\&/g
11876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11877D["\1"]=" \3\\\\\\n"\\/p
11878t cont
11879s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11880t cont
11881d
11882:cont
11883n
11884s/.\{148\}/&'"$ac_delim"'/g
11885t clear
11886:clear
11887s/\\$//
11888t bsnlc
11889s/["\\]/\\&/g; s/^/"/; s/$/"/p
11890d
11891:bsnlc
11892s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11893b cont
11894' <confdefs.h | sed '
11895s/'"$ac_delim"'/"\\\
11896"/g' >>$CONFIG_STATUS || ac_write_fail=1
11897
11898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11899  for (key in D) D_is_set[key] = 1
11900  FS = ""
11901}
11902/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11903  line = \$ 0
11904  split(line, arg, " ")
11905  if (arg[1] == "#") {
11906    defundef = arg[2]
11907    mac1 = arg[3]
11908  } else {
11909    defundef = substr(arg[1], 2)
11910    mac1 = arg[2]
11911  }
11912  split(mac1, mac2, "(") #)
11913  macro = mac2[1]
11914  prefix = substr(line, 1, index(line, defundef) - 1)
11915  if (D_is_set[macro]) {
11916    # Preserve the white space surrounding the "#".
11917    print prefix "define", macro P[macro] D[macro]
11918    next
11919  } else {
11920    # Replace #undef with comments.  This is necessary, for example,
11921    # in the case of _POSIX_SOURCE, which is predefined and required
11922    # on some systems where configure will not decide to define it.
11923    if (defundef == "undef") {
11924      print "/*", prefix defundef, macro, "*/"
11925      next
11926    }
11927  }
11928}
11929{ print }
11930_ACAWK
11931_ACEOF
11932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11933  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11934fi # test -n "$CONFIG_HEADERS"
11935
11936
11937eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11938shift
11939for ac_tag
11940do
11941  case $ac_tag in
11942  :[FHLC]) ac_mode=$ac_tag; continue;;
11943  esac
11944  case $ac_mode$ac_tag in
11945  :[FHL]*:*);;
11946  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11947  :[FH]-) ac_tag=-:-;;
11948  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11949  esac
11950  ac_save_IFS=$IFS
11951  IFS=:
11952  set x $ac_tag
11953  IFS=$ac_save_IFS
11954  shift
11955  ac_file=$1
11956  shift
11957
11958  case $ac_mode in
11959  :L) ac_source=$1;;
11960  :[FH])
11961    ac_file_inputs=
11962    for ac_f
11963    do
11964      case $ac_f in
11965      -) ac_f="$ac_tmp/stdin";;
11966      *) # Look for the file first in the build tree, then in the source tree
11967	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11968	 # because $ac_f cannot contain `:'.
11969	 test -f "$ac_f" ||
11970	   case $ac_f in
11971	   [\\/$]*) false;;
11972	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11973	   esac ||
11974	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11975      esac
11976      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11977      as_fn_append ac_file_inputs " '$ac_f'"
11978    done
11979
11980    # Let's still pretend it is `configure' which instantiates (i.e., don't
11981    # use $as_me), people would be surprised to read:
11982    #    /* config.h.  Generated by config.status.  */
11983    configure_input='Generated from '`
11984	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11985	`' by configure.'
11986    if test x"$ac_file" != x-; then
11987      configure_input="$ac_file.  $configure_input"
11988      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11989$as_echo "$as_me: creating $ac_file" >&6;}
11990    fi
11991    # Neutralize special characters interpreted by sed in replacement strings.
11992    case $configure_input in #(
11993    *\&* | *\|* | *\\* )
11994       ac_sed_conf_input=`$as_echo "$configure_input" |
11995       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11996    *) ac_sed_conf_input=$configure_input;;
11997    esac
11998
11999    case $ac_tag in
12000    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12001      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12002    esac
12003    ;;
12004  esac
12005
12006  ac_dir=`$as_dirname -- "$ac_file" ||
12007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12008	 X"$ac_file" : 'X\(//\)[^/]' \| \
12009	 X"$ac_file" : 'X\(//\)$' \| \
12010	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12011$as_echo X"$ac_file" |
12012    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12013	    s//\1/
12014	    q
12015	  }
12016	  /^X\(\/\/\)[^/].*/{
12017	    s//\1/
12018	    q
12019	  }
12020	  /^X\(\/\/\)$/{
12021	    s//\1/
12022	    q
12023	  }
12024	  /^X\(\/\).*/{
12025	    s//\1/
12026	    q
12027	  }
12028	  s/.*/./; q'`
12029  as_dir="$ac_dir"; as_fn_mkdir_p
12030  ac_builddir=.
12031
12032case "$ac_dir" in
12033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12034*)
12035  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12036  # A ".." for each directory in $ac_dir_suffix.
12037  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12038  case $ac_top_builddir_sub in
12039  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12040  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12041  esac ;;
12042esac
12043ac_abs_top_builddir=$ac_pwd
12044ac_abs_builddir=$ac_pwd$ac_dir_suffix
12045# for backward compatibility:
12046ac_top_builddir=$ac_top_build_prefix
12047
12048case $srcdir in
12049  .)  # We are building in place.
12050    ac_srcdir=.
12051    ac_top_srcdir=$ac_top_builddir_sub
12052    ac_abs_top_srcdir=$ac_pwd ;;
12053  [\\/]* | ?:[\\/]* )  # Absolute name.
12054    ac_srcdir=$srcdir$ac_dir_suffix;
12055    ac_top_srcdir=$srcdir
12056    ac_abs_top_srcdir=$srcdir ;;
12057  *) # Relative name.
12058    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12059    ac_top_srcdir=$ac_top_build_prefix$srcdir
12060    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12061esac
12062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12063
12064
12065  case $ac_mode in
12066  :F)
12067  #
12068  # CONFIG_FILE
12069  #
12070
12071  case $INSTALL in
12072  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12073  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12074  esac
12075  ac_MKDIR_P=$MKDIR_P
12076  case $MKDIR_P in
12077  [\\/$]* | ?:[\\/]* ) ;;
12078  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12079  esac
12080_ACEOF
12081
12082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12083# If the template does not know about datarootdir, expand it.
12084# FIXME: This hack should be removed a few years after 2.60.
12085ac_datarootdir_hack=; ac_datarootdir_seen=
12086ac_sed_dataroot='
12087/datarootdir/ {
12088  p
12089  q
12090}
12091/@datadir@/p
12092/@docdir@/p
12093/@infodir@/p
12094/@localedir@/p
12095/@mandir@/p'
12096case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12097*datarootdir*) ac_datarootdir_seen=yes;;
12098*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12099  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12100$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12101_ACEOF
12102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12103  ac_datarootdir_hack='
12104  s&@datadir@&$datadir&g
12105  s&@docdir@&$docdir&g
12106  s&@infodir@&$infodir&g
12107  s&@localedir@&$localedir&g
12108  s&@mandir@&$mandir&g
12109  s&\\\${datarootdir}&$datarootdir&g' ;;
12110esac
12111_ACEOF
12112
12113# Neutralize VPATH when `$srcdir' = `.'.
12114# Shell code in configure.ac might set extrasub.
12115# FIXME: do we really want to maintain this feature?
12116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12117ac_sed_extra="$ac_vpsub
12118$extrasub
12119_ACEOF
12120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121:t
12122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12123s|@configure_input@|$ac_sed_conf_input|;t t
12124s&@top_builddir@&$ac_top_builddir_sub&;t t
12125s&@top_build_prefix@&$ac_top_build_prefix&;t t
12126s&@srcdir@&$ac_srcdir&;t t
12127s&@abs_srcdir@&$ac_abs_srcdir&;t t
12128s&@top_srcdir@&$ac_top_srcdir&;t t
12129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12130s&@builddir@&$ac_builddir&;t t
12131s&@abs_builddir@&$ac_abs_builddir&;t t
12132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12133s&@INSTALL@&$ac_INSTALL&;t t
12134s&@MKDIR_P@&$ac_MKDIR_P&;t t
12135$ac_datarootdir_hack
12136"
12137eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12138  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12139
12140test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12141  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12142  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12143      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12144  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12145which seems to be undefined.  Please make sure it is defined" >&5
12146$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12147which seems to be undefined.  Please make sure it is defined" >&2;}
12148
12149  rm -f "$ac_tmp/stdin"
12150  case $ac_file in
12151  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12152  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12153  esac \
12154  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12155 ;;
12156  :H)
12157  #
12158  # CONFIG_HEADER
12159  #
12160  if test x"$ac_file" != x-; then
12161    {
12162      $as_echo "/* $configure_input  */" \
12163      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12164    } >"$ac_tmp/config.h" \
12165      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12166    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12167      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12168$as_echo "$as_me: $ac_file is unchanged" >&6;}
12169    else
12170      rm -f "$ac_file"
12171      mv "$ac_tmp/config.h" "$ac_file" \
12172	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12173    fi
12174  else
12175    $as_echo "/* $configure_input  */" \
12176      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12177      || as_fn_error $? "could not create -" "$LINENO" 5
12178  fi
12179# Compute "$ac_file"'s index in $config_headers.
12180_am_arg="$ac_file"
12181_am_stamp_count=1
12182for _am_header in $config_headers :; do
12183  case $_am_header in
12184    $_am_arg | $_am_arg:* )
12185      break ;;
12186    * )
12187      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12188  esac
12189done
12190echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12191$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12192	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12193	 X"$_am_arg" : 'X\(//\)$' \| \
12194	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12195$as_echo X"$_am_arg" |
12196    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12197	    s//\1/
12198	    q
12199	  }
12200	  /^X\(\/\/\)[^/].*/{
12201	    s//\1/
12202	    q
12203	  }
12204	  /^X\(\/\/\)$/{
12205	    s//\1/
12206	    q
12207	  }
12208	  /^X\(\/\).*/{
12209	    s//\1/
12210	    q
12211	  }
12212	  s/.*/./; q'`/stamp-h$_am_stamp_count
12213 ;;
12214
12215  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12216$as_echo "$as_me: executing $ac_file commands" >&6;}
12217 ;;
12218  esac
12219
12220
12221  case $ac_file$ac_mode in
12222    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12223  # Older Autoconf quotes --file arguments for eval, but not when files
12224  # are listed without --file.  Let's play safe and only enable the eval
12225  # if we detect the quoting.
12226  case $CONFIG_FILES in
12227  *\'*) eval set x "$CONFIG_FILES" ;;
12228  *)   set x $CONFIG_FILES ;;
12229  esac
12230  shift
12231  for mf
12232  do
12233    # Strip MF so we end up with the name of the file.
12234    mf=`echo "$mf" | sed -e 's/:.*$//'`
12235    # Check whether this is an Automake generated Makefile or not.
12236    # We used to match only the files named 'Makefile.in', but
12237    # some people rename them; so instead we look at the file content.
12238    # Grep'ing the first line is not enough: some people post-process
12239    # each Makefile.in and add a new line on top of each file to say so.
12240    # Grep'ing the whole file is not good either: AIX grep has a line
12241    # limit of 2048, but all sed's we know have understand at least 4000.
12242    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12243      dirpart=`$as_dirname -- "$mf" ||
12244$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245	 X"$mf" : 'X\(//\)[^/]' \| \
12246	 X"$mf" : 'X\(//\)$' \| \
12247	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12248$as_echo X"$mf" |
12249    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12250	    s//\1/
12251	    q
12252	  }
12253	  /^X\(\/\/\)[^/].*/{
12254	    s//\1/
12255	    q
12256	  }
12257	  /^X\(\/\/\)$/{
12258	    s//\1/
12259	    q
12260	  }
12261	  /^X\(\/\).*/{
12262	    s//\1/
12263	    q
12264	  }
12265	  s/.*/./; q'`
12266    else
12267      continue
12268    fi
12269    # Extract the definition of DEPDIR, am__include, and am__quote
12270    # from the Makefile without running 'make'.
12271    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12272    test -z "$DEPDIR" && continue
12273    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12274    test -z "$am__include" && continue
12275    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12276    # Find all dependency output files, they are included files with
12277    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12278    # simplest approach to changing $(DEPDIR) to its actual value in the
12279    # expansion.
12280    for file in `sed -n "
12281      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12282	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12283      # Make sure the directory exists.
12284      test -f "$dirpart/$file" && continue
12285      fdir=`$as_dirname -- "$file" ||
12286$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12287	 X"$file" : 'X\(//\)[^/]' \| \
12288	 X"$file" : 'X\(//\)$' \| \
12289	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12290$as_echo X"$file" |
12291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12292	    s//\1/
12293	    q
12294	  }
12295	  /^X\(\/\/\)[^/].*/{
12296	    s//\1/
12297	    q
12298	  }
12299	  /^X\(\/\/\)$/{
12300	    s//\1/
12301	    q
12302	  }
12303	  /^X\(\/\).*/{
12304	    s//\1/
12305	    q
12306	  }
12307	  s/.*/./; q'`
12308      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12309      # echo "creating $dirpart/$file"
12310      echo '# dummy' > "$dirpart/$file"
12311    done
12312  done
12313}
12314 ;;
12315
12316  esac
12317done # for ac_tag
12318
12319
12320as_fn_exit 0
12321_ACEOF
12322ac_clean_files=$ac_clean_files_save
12323
12324test $ac_write_fail = 0 ||
12325  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12326
12327
12328# configure is writing to config.log, and then calls config.status.
12329# config.status does its own redirection, appending to config.log.
12330# Unfortunately, on DOS this fails, as config.log is still kept open
12331# by configure, so config.status won't be able to write to it; its
12332# output is simply discarded.  So we exec the FD to /dev/null,
12333# effectively closing config.log, so it can be properly (re)opened and
12334# appended to by config.status.  When coming back to configure, we
12335# need to make the FD available again.
12336if test "$no_create" != yes; then
12337  ac_cs_success=:
12338  ac_config_status_args=
12339  test "$silent" = yes &&
12340    ac_config_status_args="$ac_config_status_args --quiet"
12341  exec 5>/dev/null
12342  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12343  exec 5>>config.log
12344  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12345  # would make configure fail if this is the last instruction.
12346  $ac_cs_success || as_fn_exit 1
12347fi
12348if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12350$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12351fi
12352
12353