configure revision 9d794632
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for iceauth 1.0.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='iceauth'
563PACKAGE_TARNAME='iceauth'
564PACKAGE_VERSION='1.0.6'
565PACKAGE_STRING='iceauth 1.0.6'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609LINT_FALSE
610LINT_TRUE
611LINT_FLAGS
612LINT
613ICEAUTH_LIBS
614ICEAUTH_CFLAGS
615MAN_SUBSTS
616XORG_MAN_PAGE
617ADMIN_MAN_DIR
618DRIVER_MAN_DIR
619MISC_MAN_DIR
620FILE_MAN_DIR
621LIB_MAN_DIR
622APP_MAN_DIR
623ADMIN_MAN_SUFFIX
624DRIVER_MAN_SUFFIX
625MISC_MAN_SUFFIX
626FILE_MAN_SUFFIX
627LIB_MAN_SUFFIX
628APP_MAN_SUFFIX
629SED
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638INSTALL_CMD
639PKG_CONFIG
640CHANGELOG_CMD
641STRICT_CFLAGS
642CWARNFLAGS
643BASE_CFLAGS
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650am__nodep
651AMDEPBACKSLASH
652AMDEP_FALSE
653AMDEP_TRUE
654am__quote
655am__include
656DEPDIR
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664MAINT
665MAINTAINER_MODE_FALSE
666MAINTAINER_MODE_TRUE
667AM_BACKSLASH
668AM_DEFAULT_VERBOSITY
669AM_DEFAULT_V
670AM_V
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694target_alias
695host_alias
696build_alias
697LIBS
698ECHO_T
699ECHO_N
700ECHO_C
701DEFS
702mandir
703localedir
704libdir
705psdir
706pdfdir
707dvidir
708htmldir
709infodir
710docdir
711oldincludedir
712includedir
713localstatedir
714sharedstatedir
715sysconfdir
716datadir
717datarootdir
718libexecdir
719sbindir
720bindir
721program_transform_name
722prefix
723exec_prefix
724PACKAGE_URL
725PACKAGE_BUGREPORT
726PACKAGE_STRING
727PACKAGE_VERSION
728PACKAGE_TARNAME
729PACKAGE_NAME
730PATH_SEPARATOR
731SHELL'
732ac_subst_files=''
733ac_user_opts='
734enable_option_checking
735enable_silent_rules
736enable_maintainer_mode
737enable_dependency_tracking
738enable_selective_werror
739enable_strict_compilation
740with_lint
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP
751PKG_CONFIG
752ICEAUTH_CFLAGS
753ICEAUTH_LIBS
754LINT
755LINT_FLAGS'
756
757
758# Initialize some variables set by options.
759ac_init_help=
760ac_init_version=false
761ac_unrecognized_opts=
762ac_unrecognized_sep=
763# The variables have the same names as the options, with
764# dashes changed to underlines.
765cache_file=/dev/null
766exec_prefix=NONE
767no_create=
768no_recursion=
769prefix=NONE
770program_prefix=NONE
771program_suffix=NONE
772program_transform_name=s,x,x,
773silent=
774site=
775srcdir=
776verbose=
777x_includes=NONE
778x_libraries=NONE
779
780# Installation directory options.
781# These are left unexpanded so users can "make install exec_prefix=/foo"
782# and all the variables that are supposed to be based on exec_prefix
783# by default will actually change.
784# Use braces instead of parens because sh, perl, etc. also accept them.
785# (The list follows the same order as the GNU Coding Standards.)
786bindir='${exec_prefix}/bin'
787sbindir='${exec_prefix}/sbin'
788libexecdir='${exec_prefix}/libexec'
789datarootdir='${prefix}/share'
790datadir='${datarootdir}'
791sysconfdir='${prefix}/etc'
792sharedstatedir='${prefix}/com'
793localstatedir='${prefix}/var'
794includedir='${prefix}/include'
795oldincludedir='/usr/include'
796docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797infodir='${datarootdir}/info'
798htmldir='${docdir}'
799dvidir='${docdir}'
800pdfdir='${docdir}'
801psdir='${docdir}'
802libdir='${exec_prefix}/lib'
803localedir='${datarootdir}/locale'
804mandir='${datarootdir}/man'
805
806ac_prev=
807ac_dashdash=
808for ac_option
809do
810  # If the previous option needs an argument, assign it.
811  if test -n "$ac_prev"; then
812    eval $ac_prev=\$ac_option
813    ac_prev=
814    continue
815  fi
816
817  case $ac_option in
818  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819  *=)   ac_optarg= ;;
820  *)    ac_optarg=yes ;;
821  esac
822
823  # Accept the important Cygnus configure options, so we can diagnose typos.
824
825  case $ac_dashdash$ac_option in
826  --)
827    ac_dashdash=yes ;;
828
829  -bindir | --bindir | --bindi | --bind | --bin | --bi)
830    ac_prev=bindir ;;
831  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832    bindir=$ac_optarg ;;
833
834  -build | --build | --buil | --bui | --bu)
835    ac_prev=build_alias ;;
836  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837    build_alias=$ac_optarg ;;
838
839  -cache-file | --cache-file | --cache-fil | --cache-fi \
840  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841    ac_prev=cache_file ;;
842  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844    cache_file=$ac_optarg ;;
845
846  --config-cache | -C)
847    cache_file=config.cache ;;
848
849  -datadir | --datadir | --datadi | --datad)
850    ac_prev=datadir ;;
851  -datadir=* | --datadir=* | --datadi=* | --datad=*)
852    datadir=$ac_optarg ;;
853
854  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855  | --dataroo | --dataro | --datar)
856    ac_prev=datarootdir ;;
857  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859    datarootdir=$ac_optarg ;;
860
861  -disable-* | --disable-*)
862    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863    # Reject names that are not valid shell variable names.
864    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865      as_fn_error $? "invalid feature name: $ac_useropt"
866    ac_useropt_orig=$ac_useropt
867    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868    case $ac_user_opts in
869      *"
870"enable_$ac_useropt"
871"*) ;;
872      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873	 ac_unrecognized_sep=', ';;
874    esac
875    eval enable_$ac_useropt=no ;;
876
877  -docdir | --docdir | --docdi | --doc | --do)
878    ac_prev=docdir ;;
879  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880    docdir=$ac_optarg ;;
881
882  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883    ac_prev=dvidir ;;
884  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885    dvidir=$ac_optarg ;;
886
887  -enable-* | --enable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=\$ac_optarg ;;
902
903  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905  | --exec | --exe | --ex)
906    ac_prev=exec_prefix ;;
907  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909  | --exec=* | --exe=* | --ex=*)
910    exec_prefix=$ac_optarg ;;
911
912  -gas | --gas | --ga | --g)
913    # Obsolete; use --with-gas.
914    with_gas=yes ;;
915
916  -help | --help | --hel | --he | -h)
917    ac_init_help=long ;;
918  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919    ac_init_help=recursive ;;
920  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921    ac_init_help=short ;;
922
923  -host | --host | --hos | --ho)
924    ac_prev=host_alias ;;
925  -host=* | --host=* | --hos=* | --ho=*)
926    host_alias=$ac_optarg ;;
927
928  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929    ac_prev=htmldir ;;
930  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931  | --ht=*)
932    htmldir=$ac_optarg ;;
933
934  -includedir | --includedir | --includedi | --included | --include \
935  | --includ | --inclu | --incl | --inc)
936    ac_prev=includedir ;;
937  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938  | --includ=* | --inclu=* | --incl=* | --inc=*)
939    includedir=$ac_optarg ;;
940
941  -infodir | --infodir | --infodi | --infod | --info | --inf)
942    ac_prev=infodir ;;
943  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944    infodir=$ac_optarg ;;
945
946  -libdir | --libdir | --libdi | --libd)
947    ac_prev=libdir ;;
948  -libdir=* | --libdir=* | --libdi=* | --libd=*)
949    libdir=$ac_optarg ;;
950
951  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952  | --libexe | --libex | --libe)
953    ac_prev=libexecdir ;;
954  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955  | --libexe=* | --libex=* | --libe=*)
956    libexecdir=$ac_optarg ;;
957
958  -localedir | --localedir | --localedi | --localed | --locale)
959    ac_prev=localedir ;;
960  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961    localedir=$ac_optarg ;;
962
963  -localstatedir | --localstatedir | --localstatedi | --localstated \
964  | --localstate | --localstat | --localsta | --localst | --locals)
965    ac_prev=localstatedir ;;
966  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968    localstatedir=$ac_optarg ;;
969
970  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971    ac_prev=mandir ;;
972  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973    mandir=$ac_optarg ;;
974
975  -nfp | --nfp | --nf)
976    # Obsolete; use --without-fp.
977    with_fp=no ;;
978
979  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980  | --no-cr | --no-c | -n)
981    no_create=yes ;;
982
983  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985    no_recursion=yes ;;
986
987  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989  | --oldin | --oldi | --old | --ol | --o)
990    ac_prev=oldincludedir ;;
991  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994    oldincludedir=$ac_optarg ;;
995
996  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997    ac_prev=prefix ;;
998  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999    prefix=$ac_optarg ;;
1000
1001  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002  | --program-pre | --program-pr | --program-p)
1003    ac_prev=program_prefix ;;
1004  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006    program_prefix=$ac_optarg ;;
1007
1008  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009  | --program-suf | --program-su | --program-s)
1010    ac_prev=program_suffix ;;
1011  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013    program_suffix=$ac_optarg ;;
1014
1015  -program-transform-name | --program-transform-name \
1016  | --program-transform-nam | --program-transform-na \
1017  | --program-transform-n | --program-transform- \
1018  | --program-transform | --program-transfor \
1019  | --program-transfo | --program-transf \
1020  | --program-trans | --program-tran \
1021  | --progr-tra | --program-tr | --program-t)
1022    ac_prev=program_transform_name ;;
1023  -program-transform-name=* | --program-transform-name=* \
1024  | --program-transform-nam=* | --program-transform-na=* \
1025  | --program-transform-n=* | --program-transform-=* \
1026  | --program-transform=* | --program-transfor=* \
1027  | --program-transfo=* | --program-transf=* \
1028  | --program-trans=* | --program-tran=* \
1029  | --progr-tra=* | --program-tr=* | --program-t=*)
1030    program_transform_name=$ac_optarg ;;
1031
1032  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033    ac_prev=pdfdir ;;
1034  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035    pdfdir=$ac_optarg ;;
1036
1037  -psdir | --psdir | --psdi | --psd | --ps)
1038    ac_prev=psdir ;;
1039  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040    psdir=$ac_optarg ;;
1041
1042  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043  | -silent | --silent | --silen | --sile | --sil)
1044    silent=yes ;;
1045
1046  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047    ac_prev=sbindir ;;
1048  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049  | --sbi=* | --sb=*)
1050    sbindir=$ac_optarg ;;
1051
1052  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054  | --sharedst | --shareds | --shared | --share | --shar \
1055  | --sha | --sh)
1056    ac_prev=sharedstatedir ;;
1057  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060  | --sha=* | --sh=*)
1061    sharedstatedir=$ac_optarg ;;
1062
1063  -site | --site | --sit)
1064    ac_prev=site ;;
1065  -site=* | --site=* | --sit=*)
1066    site=$ac_optarg ;;
1067
1068  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069    ac_prev=srcdir ;;
1070  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071    srcdir=$ac_optarg ;;
1072
1073  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074  | --syscon | --sysco | --sysc | --sys | --sy)
1075    ac_prev=sysconfdir ;;
1076  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078    sysconfdir=$ac_optarg ;;
1079
1080  -target | --target | --targe | --targ | --tar | --ta | --t)
1081    ac_prev=target_alias ;;
1082  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083    target_alias=$ac_optarg ;;
1084
1085  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086    verbose=yes ;;
1087
1088  -version | --version | --versio | --versi | --vers | -V)
1089    ac_init_version=: ;;
1090
1091  -with-* | --with-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=\$ac_optarg ;;
1106
1107  -without-* | --without-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=no ;;
1122
1123  --x)
1124    # Obsolete; use --with-x.
1125    with_x=yes ;;
1126
1127  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128  | --x-incl | --x-inc | --x-in | --x-i)
1129    ac_prev=x_includes ;;
1130  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132    x_includes=$ac_optarg ;;
1133
1134  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136    ac_prev=x_libraries ;;
1137  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139    x_libraries=$ac_optarg ;;
1140
1141  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1142Try \`$0 --help' for more information"
1143    ;;
1144
1145  *=*)
1146    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147    # Reject names that are not valid shell variable names.
1148    case $ac_envvar in #(
1149      '' | [0-9]* | *[!_$as_cr_alnum]* )
1150      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151    esac
1152    eval $ac_envvar=\$ac_optarg
1153    export $ac_envvar ;;
1154
1155  *)
1156    # FIXME: should be removed in autoconf 3.0.
1157    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161    ;;
1162
1163  esac
1164done
1165
1166if test -n "$ac_prev"; then
1167  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168  as_fn_error $? "missing argument to $ac_option"
1169fi
1170
1171if test -n "$ac_unrecognized_opts"; then
1172  case $enable_option_checking in
1173    no) ;;
1174    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1175    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176  esac
1177fi
1178
1179# Check all directory arguments for consistency.
1180for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181		datadir sysconfdir sharedstatedir localstatedir includedir \
1182		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183		libdir localedir mandir
1184do
1185  eval ac_val=\$$ac_var
1186  # Remove trailing slashes.
1187  case $ac_val in
1188    */ )
1189      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190      eval $ac_var=\$ac_val;;
1191  esac
1192  # Be sure to have absolute directory names.
1193  case $ac_val in
1194    [\\/$]* | ?:[\\/]* )  continue;;
1195    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196  esac
1197  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1198done
1199
1200# There might be people who depend on the old broken behavior: `$host'
1201# used to hold the argument of --host etc.
1202# FIXME: To remove some day.
1203build=$build_alias
1204host=$host_alias
1205target=$target_alias
1206
1207# FIXME: To remove some day.
1208if test "x$host_alias" != x; then
1209  if test "x$build_alias" = x; then
1210    cross_compiling=maybe
1211    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1212    If a cross compiler is detected then cross compile mode will be used" >&2
1213  elif test "x$build_alias" != "x$host_alias"; then
1214    cross_compiling=yes
1215  fi
1216fi
1217
1218ac_tool_prefix=
1219test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220
1221test "$silent" = yes && exec 6>/dev/null
1222
1223
1224ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225ac_ls_di=`ls -di .` &&
1226ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227  as_fn_error $? "working directory cannot be determined"
1228test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229  as_fn_error $? "pwd does not report name of working directory"
1230
1231
1232# Find the source files, if location was not specified.
1233if test -z "$srcdir"; then
1234  ac_srcdir_defaulted=yes
1235  # Try the directory containing this script, then the parent directory.
1236  ac_confdir=`$as_dirname -- "$as_myself" ||
1237$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238	 X"$as_myself" : 'X\(//\)[^/]' \| \
1239	 X"$as_myself" : 'X\(//\)$' \| \
1240	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241$as_echo X"$as_myself" |
1242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243	    s//\1/
1244	    q
1245	  }
1246	  /^X\(\/\/\)[^/].*/{
1247	    s//\1/
1248	    q
1249	  }
1250	  /^X\(\/\/\)$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\).*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  s/.*/./; q'`
1259  srcdir=$ac_confdir
1260  if test ! -r "$srcdir/$ac_unique_file"; then
1261    srcdir=..
1262  fi
1263else
1264  ac_srcdir_defaulted=no
1265fi
1266if test ! -r "$srcdir/$ac_unique_file"; then
1267  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269fi
1270ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271ac_abs_confdir=`(
1272	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273	pwd)`
1274# When building in place, set srcdir=.
1275if test "$ac_abs_confdir" = "$ac_pwd"; then
1276  srcdir=.
1277fi
1278# Remove unnecessary trailing slashes from srcdir.
1279# Double slashes in file names in object file debugging info
1280# mess up M-x gdb in Emacs.
1281case $srcdir in
1282*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283esac
1284for ac_var in $ac_precious_vars; do
1285  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_env_${ac_var}_value=\$${ac_var}
1287  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289done
1290
1291#
1292# Report the --help message.
1293#
1294if test "$ac_init_help" = "long"; then
1295  # Omit some internal or obsolete options to make the list less imposing.
1296  # This message is too long to be a string in the A/UX 3.1 sh.
1297  cat <<_ACEOF
1298\`configure' configures iceauth 1.0.6 to adapt to many kinds of systems.
1299
1300Usage: $0 [OPTION]... [VAR=VALUE]...
1301
1302To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303VAR=VALUE.  See below for descriptions of some of the useful variables.
1304
1305Defaults for the options are specified in brackets.
1306
1307Configuration:
1308  -h, --help              display this help and exit
1309      --help=short        display options specific to this package
1310      --help=recursive    display the short help of all the included packages
1311  -V, --version           display version information and exit
1312  -q, --quiet, --silent   do not print \`checking ...' messages
1313      --cache-file=FILE   cache test results in FILE [disabled]
1314  -C, --config-cache      alias for \`--cache-file=config.cache'
1315  -n, --no-create         do not create output files
1316      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1317
1318Installation directories:
1319  --prefix=PREFIX         install architecture-independent files in PREFIX
1320                          [$ac_default_prefix]
1321  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1322                          [PREFIX]
1323
1324By default, \`make install' will install all the files in
1325\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1326an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327for instance \`--prefix=\$HOME'.
1328
1329For better control, use the options below.
1330
1331Fine tuning of the installation directories:
1332  --bindir=DIR            user executables [EPREFIX/bin]
1333  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1334  --libexecdir=DIR        program executables [EPREFIX/libexec]
1335  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1336  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1337  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1338  --libdir=DIR            object code libraries [EPREFIX/lib]
1339  --includedir=DIR        C header files [PREFIX/include]
1340  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1341  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1342  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1343  --infodir=DIR           info documentation [DATAROOTDIR/info]
1344  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1345  --mandir=DIR            man documentation [DATAROOTDIR/man]
1346  --docdir=DIR            documentation root [DATAROOTDIR/doc/iceauth]
1347  --htmldir=DIR           html documentation [DOCDIR]
1348  --dvidir=DIR            dvi documentation [DOCDIR]
1349  --pdfdir=DIR            pdf documentation [DOCDIR]
1350  --psdir=DIR             ps documentation [DOCDIR]
1351_ACEOF
1352
1353  cat <<\_ACEOF
1354
1355Program names:
1356  --program-prefix=PREFIX            prepend PREFIX to installed program names
1357  --program-suffix=SUFFIX            append SUFFIX to installed program names
1358  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1359
1360System types:
1361  --build=BUILD     configure for building on BUILD [guessed]
1362  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1363_ACEOF
1364fi
1365
1366if test -n "$ac_init_help"; then
1367  case $ac_init_help in
1368     short | recursive ) echo "Configuration of iceauth 1.0.6:";;
1369   esac
1370  cat <<\_ACEOF
1371
1372Optional Features:
1373  --disable-option-checking  ignore unrecognized --enable/--with options
1374  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376  --enable-silent-rules   less verbose build output (undo: "make V=1")
1377  --disable-silent-rules  verbose build output (undo: "make V=0")
1378  --enable-maintainer-mode
1379                          enable make rules and dependencies not useful (and
1380                          sometimes confusing) to the casual installer
1381  --enable-dependency-tracking
1382                          do not reject slow dependency extractors
1383  --disable-dependency-tracking
1384                          speeds up one-time build
1385  --disable-selective-werror
1386                          Turn off selective compiler errors. (default:
1387                          enabled)
1388  --enable-strict-compilation
1389                          Enable all warnings from compiler and make them
1390                          errors (default: disabled)
1391
1392Optional Packages:
1393  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1394  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1395  --with-lint             Use a lint-style source code checker (default:
1396                          disabled)
1397
1398Some influential environment variables:
1399  CC          C compiler command
1400  CFLAGS      C compiler flags
1401  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402              nonstandard directory <lib dir>
1403  LIBS        libraries to pass to the linker, e.g. -l<library>
1404  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405              you have headers in a nonstandard directory <include dir>
1406  CPP         C preprocessor
1407  PKG_CONFIG  path to pkg-config utility
1408  ICEAUTH_CFLAGS
1409              C compiler flags for ICEAUTH, overriding pkg-config
1410  ICEAUTH_LIBS
1411              linker flags for ICEAUTH, overriding pkg-config
1412  LINT        Path to a lint-style command
1413  LINT_FLAGS  Flags for the lint-style command
1414
1415Use these variables to override the choices made by `configure' or to help
1416it to find libraries and programs with nonstandard names/locations.
1417
1418Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419_ACEOF
1420ac_status=$?
1421fi
1422
1423if test "$ac_init_help" = "recursive"; then
1424  # If there are subdirs, report their specific --help.
1425  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426    test -d "$ac_dir" ||
1427      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428      continue
1429    ac_builddir=.
1430
1431case "$ac_dir" in
1432.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433*)
1434  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435  # A ".." for each directory in $ac_dir_suffix.
1436  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437  case $ac_top_builddir_sub in
1438  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440  esac ;;
1441esac
1442ac_abs_top_builddir=$ac_pwd
1443ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444# for backward compatibility:
1445ac_top_builddir=$ac_top_build_prefix
1446
1447case $srcdir in
1448  .)  # We are building in place.
1449    ac_srcdir=.
1450    ac_top_srcdir=$ac_top_builddir_sub
1451    ac_abs_top_srcdir=$ac_pwd ;;
1452  [\\/]* | ?:[\\/]* )  # Absolute name.
1453    ac_srcdir=$srcdir$ac_dir_suffix;
1454    ac_top_srcdir=$srcdir
1455    ac_abs_top_srcdir=$srcdir ;;
1456  *) # Relative name.
1457    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458    ac_top_srcdir=$ac_top_build_prefix$srcdir
1459    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460esac
1461ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463    cd "$ac_dir" || { ac_status=$?; continue; }
1464    # Check for guested configure.
1465    if test -f "$ac_srcdir/configure.gnu"; then
1466      echo &&
1467      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468    elif test -f "$ac_srcdir/configure"; then
1469      echo &&
1470      $SHELL "$ac_srcdir/configure" --help=recursive
1471    else
1472      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473    fi || ac_status=$?
1474    cd "$ac_pwd" || { ac_status=$?; break; }
1475  done
1476fi
1477
1478test -n "$ac_init_help" && exit $ac_status
1479if $ac_init_version; then
1480  cat <<\_ACEOF
1481iceauth configure 1.0.6
1482generated by GNU Autoconf 2.68
1483
1484Copyright (C) 2010 Free Software Foundation, Inc.
1485This configure script is free software; the Free Software Foundation
1486gives unlimited permission to copy, distribute and modify it.
1487_ACEOF
1488  exit
1489fi
1490
1491## ------------------------ ##
1492## Autoconf initialization. ##
1493## ------------------------ ##
1494
1495# ac_fn_c_try_compile LINENO
1496# --------------------------
1497# Try to compile conftest.$ac_ext, and return whether this succeeded.
1498ac_fn_c_try_compile ()
1499{
1500  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501  rm -f conftest.$ac_objext
1502  if { { ac_try="$ac_compile"
1503case "(($ac_try" in
1504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505  *) ac_try_echo=$ac_try;;
1506esac
1507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508$as_echo "$ac_try_echo"; } >&5
1509  (eval "$ac_compile") 2>conftest.err
1510  ac_status=$?
1511  if test -s conftest.err; then
1512    grep -v '^ *+' conftest.err >conftest.er1
1513    cat conftest.er1 >&5
1514    mv -f conftest.er1 conftest.err
1515  fi
1516  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517  test $ac_status = 0; } && {
1518	 test -z "$ac_c_werror_flag" ||
1519	 test ! -s conftest.err
1520       } && test -s conftest.$ac_objext; then :
1521  ac_retval=0
1522else
1523  $as_echo "$as_me: failed program was:" >&5
1524sed 's/^/| /' conftest.$ac_ext >&5
1525
1526	ac_retval=1
1527fi
1528  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529  as_fn_set_status $ac_retval
1530
1531} # ac_fn_c_try_compile
1532
1533# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1534# ---------------------------------------------
1535# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1536# accordingly.
1537ac_fn_c_check_decl ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  as_decl_name=`echo $2|sed 's/ *(.*//'`
1541  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1543$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1544if eval \${$3+:} false; then :
1545  $as_echo_n "(cached) " >&6
1546else
1547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1548/* end confdefs.h.  */
1549$4
1550int
1551main ()
1552{
1553#ifndef $as_decl_name
1554#ifdef __cplusplus
1555  (void) $as_decl_use;
1556#else
1557  (void) $as_decl_name;
1558#endif
1559#endif
1560
1561  ;
1562  return 0;
1563}
1564_ACEOF
1565if ac_fn_c_try_compile "$LINENO"; then :
1566  eval "$3=yes"
1567else
1568  eval "$3=no"
1569fi
1570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1571fi
1572eval ac_res=\$$3
1573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574$as_echo "$ac_res" >&6; }
1575  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576
1577} # ac_fn_c_check_decl
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } > conftest.i && {
1601	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609    ac_retval=1
1610fi
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_try_run LINENO
1617# ----------------------
1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1619# that executables *can* be run.
1620ac_fn_c_try_run ()
1621{
1622  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623  if { { ac_try="$ac_link"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629$as_echo "$ac_try_echo"; } >&5
1630  (eval "$ac_link") 2>&5
1631  ac_status=$?
1632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1634  { { case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_try") 2>&5
1641  ac_status=$?
1642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643  test $ac_status = 0; }; }; then :
1644  ac_retval=0
1645else
1646  $as_echo "$as_me: program exited with status $ac_status" >&5
1647       $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650       ac_retval=$ac_status
1651fi
1652  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1653  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654  as_fn_set_status $ac_retval
1655
1656} # ac_fn_c_try_run
1657
1658# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659# -------------------------------------------------------
1660# Tests whether HEADER exists and can be compiled using the include files in
1661# INCLUDES, setting the cache variable VAR accordingly.
1662ac_fn_c_check_header_compile ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if eval \${$3+:} false; then :
1668  $as_echo_n "(cached) " >&6
1669else
1670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h.  */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676  eval "$3=yes"
1677else
1678  eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_header_compile
1688
1689# ac_fn_c_try_link LINENO
1690# -----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_link ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  rm -f conftest.$ac_objext conftest$ac_exeext
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>conftest.err
1704  ac_status=$?
1705  if test -s conftest.err; then
1706    grep -v '^ *+' conftest.err >conftest.er1
1707    cat conftest.er1 >&5
1708    mv -f conftest.er1 conftest.err
1709  fi
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; } && {
1712	 test -z "$ac_c_werror_flag" ||
1713	 test ! -s conftest.err
1714       } && test -s conftest$ac_exeext && {
1715	 test "$cross_compiling" = yes ||
1716	 $as_test_x conftest$ac_exeext
1717       }; then :
1718  ac_retval=0
1719else
1720  $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723	ac_retval=1
1724fi
1725  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727  # interfere with the next link command; also delete a directory that is
1728  # left behind by Apple's compiler.  We do this before executing the actions.
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_link
1734cat >config.log <<_ACEOF
1735This file contains any messages produced by compilers while
1736running configure, to aid debugging if configure makes a mistake.
1737
1738It was created by iceauth $as_me 1.0.6, which was
1739generated by GNU Autoconf 2.68.  Invocation command line was
1740
1741  $ $0 $@
1742
1743_ACEOF
1744exec 5>>config.log
1745{
1746cat <<_ASUNAME
1747## --------- ##
1748## Platform. ##
1749## --------- ##
1750
1751hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756
1757/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1759
1760/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1761/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1762/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1764/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1765/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1766/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1767
1768_ASUNAME
1769
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773  IFS=$as_save_IFS
1774  test -z "$as_dir" && as_dir=.
1775    $as_echo "PATH: $as_dir"
1776  done
1777IFS=$as_save_IFS
1778
1779} >&5
1780
1781cat >&5 <<_ACEOF
1782
1783
1784## ----------- ##
1785## Core tests. ##
1786## ----------- ##
1787
1788_ACEOF
1789
1790
1791# Keep a trace of the command line.
1792# Strip out --no-create and --no-recursion so they do not pile up.
1793# Strip out --silent because we don't want to record it for future runs.
1794# Also quote any args containing shell meta-characters.
1795# Make two passes to allow for proper duplicate-argument suppression.
1796ac_configure_args=
1797ac_configure_args0=
1798ac_configure_args1=
1799ac_must_keep_next=false
1800for ac_pass in 1 2
1801do
1802  for ac_arg
1803  do
1804    case $ac_arg in
1805    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1806    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1807    | -silent | --silent | --silen | --sile | --sil)
1808      continue ;;
1809    *\'*)
1810      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811    esac
1812    case $ac_pass in
1813    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1814    2)
1815      as_fn_append ac_configure_args1 " '$ac_arg'"
1816      if test $ac_must_keep_next = true; then
1817	ac_must_keep_next=false # Got value, back to normal.
1818      else
1819	case $ac_arg in
1820	  *=* | --config-cache | -C | -disable-* | --disable-* \
1821	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1822	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1823	  | -with-* | --with-* | -without-* | --without-* | --x)
1824	    case "$ac_configure_args0 " in
1825	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826	    esac
1827	    ;;
1828	  -* ) ac_must_keep_next=true ;;
1829	esac
1830      fi
1831      as_fn_append ac_configure_args " '$ac_arg'"
1832      ;;
1833    esac
1834  done
1835done
1836{ ac_configure_args0=; unset ac_configure_args0;}
1837{ ac_configure_args1=; unset ac_configure_args1;}
1838
1839# When interrupted or exit'd, cleanup temporary files, and complete
1840# config.log.  We remove comments because anyway the quotes in there
1841# would cause problems or look ugly.
1842# WARNING: Use '\'' to represent an apostrophe within the trap.
1843# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1844trap 'exit_status=$?
1845  # Save into config.log some information that might help in debugging.
1846  {
1847    echo
1848
1849    $as_echo "## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##"
1852    echo
1853    # The following way of writing the cache mishandles newlines in values,
1854(
1855  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856    eval ac_val=\$$ac_var
1857    case $ac_val in #(
1858    *${as_nl}*)
1859      case $ac_var in #(
1860      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1862      esac
1863      case $ac_var in #(
1864      _ | IFS | as_nl) ;; #(
1865      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1866      *) { eval $ac_var=; unset $ac_var;} ;;
1867      esac ;;
1868    esac
1869  done
1870  (set) 2>&1 |
1871    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872    *${as_nl}ac_space=\ *)
1873      sed -n \
1874	"s/'\''/'\''\\\\'\'''\''/g;
1875	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876      ;; #(
1877    *)
1878      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1879      ;;
1880    esac |
1881    sort
1882)
1883    echo
1884
1885    $as_echo "## ----------------- ##
1886## Output variables. ##
1887## ----------------- ##"
1888    echo
1889    for ac_var in $ac_subst_vars
1890    do
1891      eval ac_val=\$$ac_var
1892      case $ac_val in
1893      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894      esac
1895      $as_echo "$ac_var='\''$ac_val'\''"
1896    done | sort
1897    echo
1898
1899    if test -n "$ac_subst_files"; then
1900      $as_echo "## ------------------- ##
1901## File substitutions. ##
1902## ------------------- ##"
1903      echo
1904      for ac_var in $ac_subst_files
1905      do
1906	eval ac_val=\$$ac_var
1907	case $ac_val in
1908	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909	esac
1910	$as_echo "$ac_var='\''$ac_val'\''"
1911      done | sort
1912      echo
1913    fi
1914
1915    if test -s confdefs.h; then
1916      $as_echo "## ----------- ##
1917## confdefs.h. ##
1918## ----------- ##"
1919      echo
1920      cat confdefs.h
1921      echo
1922    fi
1923    test "$ac_signal" != 0 &&
1924      $as_echo "$as_me: caught signal $ac_signal"
1925    $as_echo "$as_me: exit $exit_status"
1926  } >&5
1927  rm -f core *.core core.conftest.* &&
1928    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1929    exit $exit_status
1930' 0
1931for ac_signal in 1 2 13 15; do
1932  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1933done
1934ac_signal=0
1935
1936# confdefs.h avoids OS command line length limits that DEFS can exceed.
1937rm -f -r conftest* confdefs.h
1938
1939$as_echo "/* confdefs.h */" > confdefs.h
1940
1941# Predefined preprocessor variables.
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_NAME "$PACKAGE_NAME"
1945_ACEOF
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1949_ACEOF
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_VERSION "$PACKAGE_VERSION"
1953_ACEOF
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_STRING "$PACKAGE_STRING"
1957_ACEOF
1958
1959cat >>confdefs.h <<_ACEOF
1960#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1961_ACEOF
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_URL "$PACKAGE_URL"
1965_ACEOF
1966
1967
1968# Let the site file select an alternate cache file if it wants to.
1969# Prefer an explicitly selected file to automatically selected ones.
1970ac_site_file1=NONE
1971ac_site_file2=NONE
1972if test -n "$CONFIG_SITE"; then
1973  # We do not want a PATH search for config.site.
1974  case $CONFIG_SITE in #((
1975    -*)  ac_site_file1=./$CONFIG_SITE;;
1976    */*) ac_site_file1=$CONFIG_SITE;;
1977    *)   ac_site_file1=./$CONFIG_SITE;;
1978  esac
1979elif test "x$prefix" != xNONE; then
1980  ac_site_file1=$prefix/share/config.site
1981  ac_site_file2=$prefix/etc/config.site
1982else
1983  ac_site_file1=$ac_default_prefix/share/config.site
1984  ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988  test "x$ac_site_file" = xNONE && continue
1989  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992    sed 's/^/| /' "$ac_site_file" >&5
1993    . "$ac_site_file" \
1994      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1996as_fn_error $? "failed to load site script $ac_site_file
1997See \`config.log' for more details" "$LINENO" 5; }
1998  fi
1999done
2000
2001if test -r "$cache_file"; then
2002  # Some versions of bash will fail to source /dev/null (special files
2003  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2004  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2005    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2006$as_echo "$as_me: loading cache $cache_file" >&6;}
2007    case $cache_file in
2008      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2009      *)                      . "./$cache_file";;
2010    esac
2011  fi
2012else
2013  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2014$as_echo "$as_me: creating cache $cache_file" >&6;}
2015  >$cache_file
2016fi
2017
2018# Check that the precious variables saved in the cache have kept the same
2019# value.
2020ac_cache_corrupted=false
2021for ac_var in $ac_precious_vars; do
2022  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2023  eval ac_new_set=\$ac_env_${ac_var}_set
2024  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2025  eval ac_new_val=\$ac_env_${ac_var}_value
2026  case $ac_old_set,$ac_new_set in
2027    set,)
2028      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,set)
2032      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2033$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2034      ac_cache_corrupted=: ;;
2035    ,);;
2036    *)
2037      if test "x$ac_old_val" != "x$ac_new_val"; then
2038	# differences in whitespace do not lead to failure.
2039	ac_old_val_w=`echo x $ac_old_val`
2040	ac_new_val_w=`echo x $ac_new_val`
2041	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2042	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2043$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2044	  ac_cache_corrupted=:
2045	else
2046	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2047$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2048	  eval $ac_var=\$ac_old_val
2049	fi
2050	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2051$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2052	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2053$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2054      fi;;
2055  esac
2056  # Pass precious variables to config.status.
2057  if test "$ac_new_set" = set; then
2058    case $ac_new_val in
2059    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2060    *) ac_arg=$ac_var=$ac_new_val ;;
2061    esac
2062    case " $ac_configure_args " in
2063      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2064      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2065    esac
2066  fi
2067done
2068if $ac_cache_corrupted; then
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2071  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2072$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2073  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2074fi
2075## -------------------- ##
2076## Main body of script. ##
2077## -------------------- ##
2078
2079ac_ext=c
2080ac_cpp='$CPP $CPPFLAGS'
2081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086am__api_version='1.14'
2087
2088ac_aux_dir=
2089for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090  if test -f "$ac_dir/install-sh"; then
2091    ac_aux_dir=$ac_dir
2092    ac_install_sh="$ac_aux_dir/install-sh -c"
2093    break
2094  elif test -f "$ac_dir/install.sh"; then
2095    ac_aux_dir=$ac_dir
2096    ac_install_sh="$ac_aux_dir/install.sh -c"
2097    break
2098  elif test -f "$ac_dir/shtool"; then
2099    ac_aux_dir=$ac_dir
2100    ac_install_sh="$ac_aux_dir/shtool install -c"
2101    break
2102  fi
2103done
2104if test -z "$ac_aux_dir"; then
2105  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2106fi
2107
2108# These three variables are undocumented and unsupported,
2109# and are intended to be withdrawn in a future Autoconf release.
2110# They can cause serious problems if a builder's source tree is in a directory
2111# whose full name contains unusual characters.
2112ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2113ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2114ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2115
2116
2117# Find a good install program.  We prefer a C program (faster),
2118# so one script is as good as another.  But avoid the broken or
2119# incompatible versions:
2120# SysV /etc/install, /usr/sbin/install
2121# SunOS /usr/etc/install
2122# IRIX /sbin/install
2123# AIX /bin/install
2124# AmigaOS /C/install, which installs bootblocks on floppy discs
2125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2126# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2128# OS/2's system install, which has a completely different semantic
2129# ./install, which can be erroneously created by make from ./install.sh.
2130# Reject install programs that cannot install multiple files.
2131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2132$as_echo_n "checking for a BSD-compatible install... " >&6; }
2133if test -z "$INSTALL"; then
2134if ${ac_cv_path_install+:} false; then :
2135  $as_echo_n "(cached) " >&6
2136else
2137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142    # Account for people who put trailing slashes in PATH elements.
2143case $as_dir/ in #((
2144  ./ | .// | /[cC]/* | \
2145  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2146  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2147  /usr/ucb/* ) ;;
2148  *)
2149    # OSF1 and SCO ODT 3.0 have their own names for install.
2150    # Don't use installbsd from OSF since it installs stuff as root
2151    # by default.
2152    for ac_prog in ginstall scoinst install; do
2153      for ac_exec_ext in '' $ac_executable_extensions; do
2154	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2155	  if test $ac_prog = install &&
2156	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157	    # AIX install.  It has an incompatible calling convention.
2158	    :
2159	  elif test $ac_prog = install &&
2160	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161	    # program-specific install script used by HP pwplus--don't use.
2162	    :
2163	  else
2164	    rm -rf conftest.one conftest.two conftest.dir
2165	    echo one > conftest.one
2166	    echo two > conftest.two
2167	    mkdir conftest.dir
2168	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2169	      test -s conftest.one && test -s conftest.two &&
2170	      test -s conftest.dir/conftest.one &&
2171	      test -s conftest.dir/conftest.two
2172	    then
2173	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2174	      break 3
2175	    fi
2176	  fi
2177	fi
2178      done
2179    done
2180    ;;
2181esac
2182
2183  done
2184IFS=$as_save_IFS
2185
2186rm -rf conftest.one conftest.two conftest.dir
2187
2188fi
2189  if test "${ac_cv_path_install+set}" = set; then
2190    INSTALL=$ac_cv_path_install
2191  else
2192    # As a last resort, use the slow shell script.  Don't cache a
2193    # value for INSTALL within a source directory, because that will
2194    # break other packages using the cache if that directory is
2195    # removed, or if the value is a relative name.
2196    INSTALL=$ac_install_sh
2197  fi
2198fi
2199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2200$as_echo "$INSTALL" >&6; }
2201
2202# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2203# It thinks the first close brace ends the variable substitution.
2204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205
2206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207
2208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2211$as_echo_n "checking whether build environment is sane... " >&6; }
2212# Reject unsafe characters in $srcdir or the absolute working directory
2213# name.  Accept space and tab only in the latter.
2214am_lf='
2215'
2216case `pwd` in
2217  *[\\\"\#\$\&\'\`$am_lf]*)
2218    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2219esac
2220case $srcdir in
2221  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2222    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2223esac
2224
2225# Do 'set' in a subshell so we don't clobber the current shell's
2226# arguments.  Must try -L first in case configure is actually a
2227# symlink; some systems play weird games with the mod time of symlinks
2228# (eg FreeBSD returns the mod time of the symlink's containing
2229# directory).
2230if (
2231   am_has_slept=no
2232   for am_try in 1 2; do
2233     echo "timestamp, slept: $am_has_slept" > conftest.file
2234     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2235     if test "$*" = "X"; then
2236	# -L didn't work.
2237	set X `ls -t "$srcdir/configure" conftest.file`
2238     fi
2239     if test "$*" != "X $srcdir/configure conftest.file" \
2240	&& test "$*" != "X conftest.file $srcdir/configure"; then
2241
2242	# If neither matched, then we have a broken ls.  This can happen
2243	# if, for instance, CONFIG_SHELL is bash and it inherits a
2244	# broken ls alias from the environment.  This has actually
2245	# happened.  Such a system could not be considered "sane".
2246	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2247  alias in your environment" "$LINENO" 5
2248     fi
2249     if test "$2" = conftest.file || test $am_try -eq 2; then
2250       break
2251     fi
2252     # Just in case.
2253     sleep 1
2254     am_has_slept=yes
2255   done
2256   test "$2" = conftest.file
2257   )
2258then
2259   # Ok.
2260   :
2261else
2262   as_fn_error $? "newly created file is older than distributed files!
2263Check your system clock" "$LINENO" 5
2264fi
2265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2266$as_echo "yes" >&6; }
2267# If we didn't sleep, we still need to ensure time stamps of config.status and
2268# generated files are strictly newer.
2269am_sleep_pid=
2270if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2271  ( sleep 1 ) &
2272  am_sleep_pid=$!
2273fi
2274
2275rm -f conftest.file
2276
2277test "$program_prefix" != NONE &&
2278  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2279# Use a double $ so make ignores it.
2280test "$program_suffix" != NONE &&
2281  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2282# Double any \ or $.
2283# By default was `s,x,x', remove it if useless.
2284ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2285program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2286
2287# expand $ac_aux_dir to an absolute path
2288am_aux_dir=`cd $ac_aux_dir && pwd`
2289
2290if test x"${MISSING+set}" != xset; then
2291  case $am_aux_dir in
2292  *\ * | *\	*)
2293    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2294  *)
2295    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2296  esac
2297fi
2298# Use eval to expand $SHELL
2299if eval "$MISSING --is-lightweight"; then
2300  am_missing_run="$MISSING "
2301else
2302  am_missing_run=
2303  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2304$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2305fi
2306
2307if test x"${install_sh}" != xset; then
2308  case $am_aux_dir in
2309  *\ * | *\	*)
2310    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2311  *)
2312    install_sh="\${SHELL} $am_aux_dir/install-sh"
2313  esac
2314fi
2315
2316# Installed binaries are usually stripped using 'strip' when the user
2317# run "make install-strip".  However 'strip' might not be the right
2318# tool to use in cross-compilation environments, therefore Automake
2319# will honor the 'STRIP' environment variable to overrule this program.
2320if test "$cross_compiling" != no; then
2321  if test -n "$ac_tool_prefix"; then
2322  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323set dummy ${ac_tool_prefix}strip; ac_word=$2
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325$as_echo_n "checking for $ac_word... " >&6; }
2326if ${ac_cv_prog_STRIP+:} false; then :
2327  $as_echo_n "(cached) " >&6
2328else
2329  if test -n "$STRIP"; then
2330  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331else
2332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333for as_dir in $PATH
2334do
2335  IFS=$as_save_IFS
2336  test -z "$as_dir" && as_dir=.
2337    for ac_exec_ext in '' $ac_executable_extensions; do
2338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2341    break 2
2342  fi
2343done
2344  done
2345IFS=$as_save_IFS
2346
2347fi
2348fi
2349STRIP=$ac_cv_prog_STRIP
2350if test -n "$STRIP"; then
2351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2352$as_echo "$STRIP" >&6; }
2353else
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355$as_echo "no" >&6; }
2356fi
2357
2358
2359fi
2360if test -z "$ac_cv_prog_STRIP"; then
2361  ac_ct_STRIP=$STRIP
2362  # Extract the first word of "strip", so it can be a program name with args.
2363set dummy strip; ac_word=$2
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365$as_echo_n "checking for $ac_word... " >&6; }
2366if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2367  $as_echo_n "(cached) " >&6
2368else
2369  if test -n "$ac_ct_STRIP"; then
2370  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375  IFS=$as_save_IFS
2376  test -z "$as_dir" && as_dir=.
2377    for ac_exec_ext in '' $ac_executable_extensions; do
2378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379    ac_cv_prog_ac_ct_STRIP="strip"
2380    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2381    break 2
2382  fi
2383done
2384  done
2385IFS=$as_save_IFS
2386
2387fi
2388fi
2389ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390if test -n "$ac_ct_STRIP"; then
2391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2392$as_echo "$ac_ct_STRIP" >&6; }
2393else
2394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395$as_echo "no" >&6; }
2396fi
2397
2398  if test "x$ac_ct_STRIP" = x; then
2399    STRIP=":"
2400  else
2401    case $cross_compiling:$ac_tool_warned in
2402yes:)
2403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405ac_tool_warned=yes ;;
2406esac
2407    STRIP=$ac_ct_STRIP
2408  fi
2409else
2410  STRIP="$ac_cv_prog_STRIP"
2411fi
2412
2413fi
2414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2417$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2418if test -z "$MKDIR_P"; then
2419  if ${ac_cv_path_mkdir+:} false; then :
2420  $as_echo_n "(cached) " >&6
2421else
2422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424do
2425  IFS=$as_save_IFS
2426  test -z "$as_dir" && as_dir=.
2427    for ac_prog in mkdir gmkdir; do
2428	 for ac_exec_ext in '' $ac_executable_extensions; do
2429	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2430	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2431	     'mkdir (GNU coreutils) '* | \
2432	     'mkdir (coreutils) '* | \
2433	     'mkdir (fileutils) '4.1*)
2434	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2435	       break 3;;
2436	   esac
2437	 done
2438       done
2439  done
2440IFS=$as_save_IFS
2441
2442fi
2443
2444  test -d ./--version && rmdir ./--version
2445  if test "${ac_cv_path_mkdir+set}" = set; then
2446    MKDIR_P="$ac_cv_path_mkdir -p"
2447  else
2448    # As a last resort, use the slow shell script.  Don't cache a
2449    # value for MKDIR_P within a source directory, because that will
2450    # break other packages using the cache if that directory is
2451    # removed, or if the value is a relative name.
2452    MKDIR_P="$ac_install_sh -d"
2453  fi
2454fi
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2456$as_echo "$MKDIR_P" >&6; }
2457
2458for ac_prog in gawk mawk nawk awk
2459do
2460  # Extract the first word of "$ac_prog", so it can be a program name with args.
2461set dummy $ac_prog; ac_word=$2
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463$as_echo_n "checking for $ac_word... " >&6; }
2464if ${ac_cv_prog_AWK+:} false; then :
2465  $as_echo_n "(cached) " >&6
2466else
2467  if test -n "$AWK"; then
2468  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475    for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    ac_cv_prog_AWK="$ac_prog"
2478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482  done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487AWK=$ac_cv_prog_AWK
2488if test -n "$AWK"; then
2489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2490$as_echo "$AWK" >&6; }
2491else
2492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493$as_echo "no" >&6; }
2494fi
2495
2496
2497  test -n "$AWK" && break
2498done
2499
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2501$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2502set x ${MAKE-make}
2503ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2504if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2505  $as_echo_n "(cached) " >&6
2506else
2507  cat >conftest.make <<\_ACEOF
2508SHELL = /bin/sh
2509all:
2510	@echo '@@@%%%=$(MAKE)=@@@%%%'
2511_ACEOF
2512# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2513case `${MAKE-make} -f conftest.make 2>/dev/null` in
2514  *@@@%%%=?*=@@@%%%*)
2515    eval ac_cv_prog_make_${ac_make}_set=yes;;
2516  *)
2517    eval ac_cv_prog_make_${ac_make}_set=no;;
2518esac
2519rm -f conftest.make
2520fi
2521if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523$as_echo "yes" >&6; }
2524  SET_MAKE=
2525else
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528  SET_MAKE="MAKE=${MAKE-make}"
2529fi
2530
2531rm -rf .tst 2>/dev/null
2532mkdir .tst 2>/dev/null
2533if test -d .tst; then
2534  am__leading_dot=.
2535else
2536  am__leading_dot=_
2537fi
2538rmdir .tst 2>/dev/null
2539
2540# Check whether --enable-silent-rules was given.
2541if test "${enable_silent_rules+set}" = set; then :
2542  enableval=$enable_silent_rules;
2543fi
2544
2545case $enable_silent_rules in # (((
2546  yes) AM_DEFAULT_VERBOSITY=0;;
2547   no) AM_DEFAULT_VERBOSITY=1;;
2548    *) AM_DEFAULT_VERBOSITY=1;;
2549esac
2550am_make=${MAKE-make}
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2552$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2553if ${am_cv_make_support_nested_variables+:} false; then :
2554  $as_echo_n "(cached) " >&6
2555else
2556  if $as_echo 'TRUE=$(BAR$(V))
2557BAR0=false
2558BAR1=true
2559V=1
2560am__doit:
2561	@$(TRUE)
2562.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2563  am_cv_make_support_nested_variables=yes
2564else
2565  am_cv_make_support_nested_variables=no
2566fi
2567fi
2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2569$as_echo "$am_cv_make_support_nested_variables" >&6; }
2570if test $am_cv_make_support_nested_variables = yes; then
2571    AM_V='$(V)'
2572  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2573else
2574  AM_V=$AM_DEFAULT_VERBOSITY
2575  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2576fi
2577AM_BACKSLASH='\'
2578
2579if test "`cd $srcdir && pwd`" != "`pwd`"; then
2580  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2581  # is not polluted with repeated "-I."
2582  am__isrc=' -I$(srcdir)'
2583  # test to see if srcdir already configured
2584  if test -f $srcdir/config.status; then
2585    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2586  fi
2587fi
2588
2589# test whether we have cygpath
2590if test -z "$CYGPATH_W"; then
2591  if (cygpath --version) >/dev/null 2>/dev/null; then
2592    CYGPATH_W='cygpath -w'
2593  else
2594    CYGPATH_W=echo
2595  fi
2596fi
2597
2598
2599# Define the identity of the package.
2600 PACKAGE='iceauth'
2601 VERSION='1.0.6'
2602
2603
2604cat >>confdefs.h <<_ACEOF
2605#define PACKAGE "$PACKAGE"
2606_ACEOF
2607
2608
2609cat >>confdefs.h <<_ACEOF
2610#define VERSION "$VERSION"
2611_ACEOF
2612
2613# Some tools Automake needs.
2614
2615ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2616
2617
2618AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2619
2620
2621AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2622
2623
2624AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2625
2626
2627MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2628
2629# For better backward compatibility.  To be removed once Automake 1.9.x
2630# dies out for good.  For more background, see:
2631# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2632# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2633mkdir_p='$(MKDIR_P)'
2634
2635# We need awk for the "check" target.  The system "awk" is bad on
2636# some platforms.
2637# Always define AMTAR for backward compatibility.  Yes, it's still used
2638# in the wild :-(  We should find a proper way to deprecate it ...
2639AMTAR='$${TAR-tar}'
2640
2641
2642# We'll loop over all known methods to create a tar archive until one works.
2643_am_tools='gnutar  pax cpio none'
2644
2645am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2646
2647
2648
2649
2650
2651
2652# POSIX will say in a future version that running "rm -f" with no argument
2653# is OK; and we want to be able to make that assumption in our Makefile
2654# recipes.  So use an aggressive probe to check that the usage we want is
2655# actually supported "in the wild" to an acceptable degree.
2656# See automake bug#10828.
2657# To make any issue more visible, cause the running configure to be aborted
2658# by default if the 'rm' program in use doesn't match our expectations; the
2659# user can still override this though.
2660if rm -f && rm -fr && rm -rf; then : OK; else
2661  cat >&2 <<'END'
2662Oops!
2663
2664Your 'rm' program seems unable to run without file operands specified
2665on the command line, even when the '-f' option is present.  This is contrary
2666to the behaviour of most rm programs out there, and not conforming with
2667the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2668
2669Please tell bug-automake@gnu.org about your system, including the value
2670of your $PATH and any error possibly output before this message.  This
2671can help us improve future automake versions.
2672
2673END
2674  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2675    echo 'Configuration will proceed anyway, since you have set the' >&2
2676    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2677    echo >&2
2678  else
2679    cat >&2 <<'END'
2680Aborting the configuration process, to ensure you take notice of the issue.
2681
2682You can download and install GNU coreutils to get an 'rm' implementation
2683that behaves properly: <http://www.gnu.org/software/coreutils/>.
2684
2685If you want to complete the configuration process using your problematic
2686'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2687to "yes", and re-run configure.
2688
2689END
2690    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2691  fi
2692fi
2693
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2695$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2696    # Check whether --enable-maintainer-mode was given.
2697if test "${enable_maintainer_mode+set}" = set; then :
2698  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2699else
2700  USE_MAINTAINER_MODE=no
2701fi
2702
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2704$as_echo "$USE_MAINTAINER_MODE" >&6; }
2705   if test $USE_MAINTAINER_MODE = yes; then
2706  MAINTAINER_MODE_TRUE=
2707  MAINTAINER_MODE_FALSE='#'
2708else
2709  MAINTAINER_MODE_TRUE='#'
2710  MAINTAINER_MODE_FALSE=
2711fi
2712
2713  MAINT=$MAINTAINER_MODE_TRUE
2714
2715
2716
2717ac_config_headers="$ac_config_headers config.h"
2718
2719
2720# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732DEPDIR="${am__leading_dot}deps"
2733
2734ac_config_commands="$ac_config_commands depfiles"
2735
2736
2737am_make=${MAKE-make}
2738cat > confinc << 'END'
2739am__doit:
2740	@echo this is the am__doit target
2741.PHONY: am__doit
2742END
2743# If we don't find an include directive, just comment out the code.
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2745$as_echo_n "checking for style of include used by $am_make... " >&6; }
2746am__include="#"
2747am__quote=
2748_am_result=none
2749# First try GNU make style include.
2750echo "include confinc" > confmf
2751# Ignore all kinds of additional output from 'make'.
2752case `$am_make -s -f confmf 2> /dev/null` in #(
2753*the\ am__doit\ target*)
2754  am__include=include
2755  am__quote=
2756  _am_result=GNU
2757  ;;
2758esac
2759# Now try BSD make style include.
2760if test "$am__include" = "#"; then
2761   echo '.include "confinc"' > confmf
2762   case `$am_make -s -f confmf 2> /dev/null` in #(
2763   *the\ am__doit\ target*)
2764     am__include=.include
2765     am__quote="\""
2766     _am_result=BSD
2767     ;;
2768   esac
2769fi
2770
2771
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2773$as_echo "$_am_result" >&6; }
2774rm -f confinc confmf
2775
2776# Check whether --enable-dependency-tracking was given.
2777if test "${enable_dependency_tracking+set}" = set; then :
2778  enableval=$enable_dependency_tracking;
2779fi
2780
2781if test "x$enable_dependency_tracking" != xno; then
2782  am_depcomp="$ac_aux_dir/depcomp"
2783  AMDEPBACKSLASH='\'
2784  am__nodep='_no'
2785fi
2786 if test "x$enable_dependency_tracking" != xno; then
2787  AMDEP_TRUE=
2788  AMDEP_FALSE='#'
2789else
2790  AMDEP_TRUE='#'
2791  AMDEP_FALSE=
2792fi
2793
2794
2795ac_ext=c
2796ac_cpp='$CPP $CPPFLAGS'
2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800if test -n "$ac_tool_prefix"; then
2801  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804$as_echo_n "checking for $ac_word... " >&6; }
2805if ${ac_cv_prog_CC+:} false; then :
2806  $as_echo_n "(cached) " >&6
2807else
2808  if test -n "$CC"; then
2809  ac_cv_prog_CC="$CC" # Let the user override the test.
2810else
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814  IFS=$as_save_IFS
2815  test -z "$as_dir" && as_dir=.
2816    for ac_exec_ext in '' $ac_executable_extensions; do
2817  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820    break 2
2821  fi
2822done
2823  done
2824IFS=$as_save_IFS
2825
2826fi
2827fi
2828CC=$ac_cv_prog_CC
2829if test -n "$CC"; then
2830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831$as_echo "$CC" >&6; }
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835fi
2836
2837
2838fi
2839if test -z "$ac_cv_prog_CC"; then
2840  ac_ct_CC=$CC
2841  # Extract the first word of "gcc", so it can be a program name with args.
2842set dummy gcc; ac_word=$2
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844$as_echo_n "checking for $ac_word... " >&6; }
2845if ${ac_cv_prog_ac_ct_CC+:} false; then :
2846  $as_echo_n "(cached) " >&6
2847else
2848  if test -n "$ac_ct_CC"; then
2849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_exec_ext in '' $ac_executable_extensions; do
2857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858    ac_cv_prog_ac_ct_CC="gcc"
2859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860    break 2
2861  fi
2862done
2863  done
2864IFS=$as_save_IFS
2865
2866fi
2867fi
2868ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869if test -n "$ac_ct_CC"; then
2870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871$as_echo "$ac_ct_CC" >&6; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874$as_echo "no" >&6; }
2875fi
2876
2877  if test "x$ac_ct_CC" = x; then
2878    CC=""
2879  else
2880    case $cross_compiling:$ac_tool_warned in
2881yes:)
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884ac_tool_warned=yes ;;
2885esac
2886    CC=$ac_ct_CC
2887  fi
2888else
2889  CC="$ac_cv_prog_CC"
2890fi
2891
2892if test -z "$CC"; then
2893          if test -n "$ac_tool_prefix"; then
2894    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895set dummy ${ac_tool_prefix}cc; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
2898if ${ac_cv_prog_CC+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900else
2901  if test -n "$CC"; then
2902  ac_cv_prog_CC="$CC" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907  IFS=$as_save_IFS
2908  test -z "$as_dir" && as_dir=.
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911    ac_cv_prog_CC="${ac_tool_prefix}cc"
2912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921CC=$ac_cv_prog_CC
2922if test -n "$CC"; then
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924$as_echo "$CC" >&6; }
2925else
2926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930
2931  fi
2932fi
2933if test -z "$CC"; then
2934  # Extract the first word of "cc", so it can be a program name with args.
2935set dummy cc; ac_word=$2
2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937$as_echo_n "checking for $ac_word... " >&6; }
2938if ${ac_cv_prog_CC+:} false; then :
2939  $as_echo_n "(cached) " >&6
2940else
2941  if test -n "$CC"; then
2942  ac_cv_prog_CC="$CC" # Let the user override the test.
2943else
2944  ac_prog_rejected=no
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953       ac_prog_rejected=yes
2954       continue
2955     fi
2956    ac_cv_prog_CC="cc"
2957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958    break 2
2959  fi
2960done
2961  done
2962IFS=$as_save_IFS
2963
2964if test $ac_prog_rejected = yes; then
2965  # We found a bogon in the path, so make sure we never use it.
2966  set dummy $ac_cv_prog_CC
2967  shift
2968  if test $# != 0; then
2969    # We chose a different compiler from the bogus one.
2970    # However, it has the same basename, so the bogon will be chosen
2971    # first if we set CC to just the basename; use the full file name.
2972    shift
2973    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2974  fi
2975fi
2976fi
2977fi
2978CC=$ac_cv_prog_CC
2979if test -n "$CC"; then
2980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981$as_echo "$CC" >&6; }
2982else
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
2985fi
2986
2987
2988fi
2989if test -z "$CC"; then
2990  if test -n "$ac_tool_prefix"; then
2991  for ac_prog in cl.exe
2992  do
2993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996$as_echo_n "checking for $ac_word... " >&6; }
2997if ${ac_cv_prog_CC+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if test -n "$CC"; then
3001  ac_cv_prog_CC="$CC" # Let the user override the test.
3002else
3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004for as_dir in $PATH
3005do
3006  IFS=$as_save_IFS
3007  test -z "$as_dir" && as_dir=.
3008    for ac_exec_ext in '' $ac_executable_extensions; do
3009  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012    break 2
3013  fi
3014done
3015  done
3016IFS=$as_save_IFS
3017
3018fi
3019fi
3020CC=$ac_cv_prog_CC
3021if test -n "$CC"; then
3022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023$as_echo "$CC" >&6; }
3024else
3025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026$as_echo "no" >&6; }
3027fi
3028
3029
3030    test -n "$CC" && break
3031  done
3032fi
3033if test -z "$CC"; then
3034  ac_ct_CC=$CC
3035  for ac_prog in cl.exe
3036do
3037  # Extract the first word of "$ac_prog", so it can be a program name with args.
3038set dummy $ac_prog; ac_word=$2
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if ${ac_cv_prog_ac_ct_CC+:} false; then :
3042  $as_echo_n "(cached) " >&6
3043else
3044  if test -n "$ac_ct_CC"; then
3045  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050  IFS=$as_save_IFS
3051  test -z "$as_dir" && as_dir=.
3052    for ac_exec_ext in '' $ac_executable_extensions; do
3053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054    ac_cv_prog_ac_ct_CC="$ac_prog"
3055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056    break 2
3057  fi
3058done
3059  done
3060IFS=$as_save_IFS
3061
3062fi
3063fi
3064ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065if test -n "$ac_ct_CC"; then
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067$as_echo "$ac_ct_CC" >&6; }
3068else
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074  test -n "$ac_ct_CC" && break
3075done
3076
3077  if test "x$ac_ct_CC" = x; then
3078    CC=""
3079  else
3080    case $cross_compiling:$ac_tool_warned in
3081yes:)
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084ac_tool_warned=yes ;;
3085esac
3086    CC=$ac_ct_CC
3087  fi
3088fi
3089
3090fi
3091
3092
3093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095as_fn_error $? "no acceptable C compiler found in \$PATH
3096See \`config.log' for more details" "$LINENO" 5; }
3097
3098# Provide some information about the compiler.
3099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3100set X $ac_compile
3101ac_compiler=$2
3102for ac_option in --version -v -V -qversion; do
3103  { { ac_try="$ac_compiler $ac_option >&5"
3104case "(($ac_try" in
3105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106  *) ac_try_echo=$ac_try;;
3107esac
3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
3110  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3111  ac_status=$?
3112  if test -s conftest.err; then
3113    sed '10a\
3114... rest of stderr output deleted ...
3115         10q' conftest.err >conftest.er1
3116    cat conftest.er1 >&5
3117  fi
3118  rm -f conftest.er1 conftest.err
3119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120  test $ac_status = 0; }
3121done
3122
3123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124/* end confdefs.h.  */
3125
3126int
3127main ()
3128{
3129
3130  ;
3131  return 0;
3132}
3133_ACEOF
3134ac_clean_files_save=$ac_clean_files
3135ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136# Try to create an executable without -o first, disregard a.out.
3137# It will help us diagnose broken compilers, and finding out an intuition
3138# of exeext.
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140$as_echo_n "checking whether the C compiler works... " >&6; }
3141ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142
3143# The possible output files:
3144ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3145
3146ac_rmfiles=
3147for ac_file in $ac_files
3148do
3149  case $ac_file in
3150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3152  esac
3153done
3154rm -f $ac_rmfiles
3155
3156if { { ac_try="$ac_link_default"
3157case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162$as_echo "$ac_try_echo"; } >&5
3163  (eval "$ac_link_default") 2>&5
3164  ac_status=$?
3165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }; then :
3167  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3170# so that the user can short-circuit this test for compilers unknown to
3171# Autoconf.
3172for ac_file in $ac_files ''
3173do
3174  test -f "$ac_file" || continue
3175  case $ac_file in
3176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3177	;;
3178    [ab].out )
3179	# We found the default executable, but exeext='' is most
3180	# certainly right.
3181	break;;
3182    *.* )
3183	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3184	then :; else
3185	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186	fi
3187	# We set ac_cv_exeext here because the later test for it is not
3188	# safe: cross compilers may not add the suffix if given an `-o'
3189	# argument, so we may need to know it at that point already.
3190	# Even if this section looks crufty: it has the advantage of
3191	# actually working.
3192	break;;
3193    * )
3194	break;;
3195  esac
3196done
3197test "$ac_cv_exeext" = no && ac_cv_exeext=
3198
3199else
3200  ac_file=''
3201fi
3202if test -z "$ac_file"; then :
3203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204$as_echo "no" >&6; }
3205$as_echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210as_fn_error 77 "C compiler cannot create executables
3211See \`config.log' for more details" "$LINENO" 5; }
3212else
3213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215fi
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3217$as_echo_n "checking for C compiler default output file name... " >&6; }
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3219$as_echo "$ac_file" >&6; }
3220ac_exeext=$ac_cv_exeext
3221
3222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3223ac_clean_files=$ac_clean_files_save
3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3225$as_echo_n "checking for suffix of executables... " >&6; }
3226if { { ac_try="$ac_link"
3227case "(($ac_try" in
3228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229  *) ac_try_echo=$ac_try;;
3230esac
3231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232$as_echo "$ac_try_echo"; } >&5
3233  (eval "$ac_link") 2>&5
3234  ac_status=$?
3235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236  test $ac_status = 0; }; then :
3237  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3238# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3239# work properly (i.e., refer to `conftest.exe'), while it won't with
3240# `rm'.
3241for ac_file in conftest.exe conftest conftest.*; do
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    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246	  break;;
3247    * ) break;;
3248  esac
3249done
3250else
3251  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3254See \`config.log' for more details" "$LINENO" 5; }
3255fi
3256rm -f conftest conftest$ac_cv_exeext
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3258$as_echo "$ac_cv_exeext" >&6; }
3259
3260rm -f conftest.$ac_ext
3261EXEEXT=$ac_cv_exeext
3262ac_exeext=$EXEEXT
3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h.  */
3265#include <stdio.h>
3266int
3267main ()
3268{
3269FILE *f = fopen ("conftest.out", "w");
3270 return ferror (f) || fclose (f) != 0;
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276ac_clean_files="$ac_clean_files conftest.out"
3277# Check that the compiler produces executables we can run.  If not, either
3278# the compiler is broken, or we cross compile.
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3280$as_echo_n "checking whether we are cross compiling... " >&6; }
3281if test "$cross_compiling" != yes; then
3282  { { ac_try="$ac_link"
3283case "(($ac_try" in
3284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285  *) ac_try_echo=$ac_try;;
3286esac
3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288$as_echo "$ac_try_echo"; } >&5
3289  (eval "$ac_link") 2>&5
3290  ac_status=$?
3291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292  test $ac_status = 0; }
3293  if { ac_try='./conftest$ac_cv_exeext'
3294  { { case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299$as_echo "$ac_try_echo"; } >&5
3300  (eval "$ac_try") 2>&5
3301  ac_status=$?
3302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303  test $ac_status = 0; }; }; then
3304    cross_compiling=no
3305  else
3306    if test "$cross_compiling" = maybe; then
3307	cross_compiling=yes
3308    else
3309	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311as_fn_error $? "cannot run C compiled programs.
3312If you meant to cross compile, use \`--host'.
3313See \`config.log' for more details" "$LINENO" 5; }
3314    fi
3315  fi
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3318$as_echo "$cross_compiling" >&6; }
3319
3320rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3321ac_clean_files=$ac_clean_files_save
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3323$as_echo_n "checking for suffix of object files... " >&6; }
3324if ${ac_cv_objext+:} false; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328/* end confdefs.h.  */
3329
3330int
3331main ()
3332{
3333
3334  ;
3335  return 0;
3336}
3337_ACEOF
3338rm -f conftest.o conftest.obj
3339if { { ac_try="$ac_compile"
3340case "(($ac_try" in
3341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342  *) ac_try_echo=$ac_try;;
3343esac
3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345$as_echo "$ac_try_echo"; } >&5
3346  (eval "$ac_compile") 2>&5
3347  ac_status=$?
3348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349  test $ac_status = 0; }; then :
3350  for ac_file in conftest.o conftest.obj conftest.*; do
3351  test -f "$ac_file" || continue;
3352  case $ac_file in
3353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3354    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3355       break;;
3356  esac
3357done
3358else
3359  $as_echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error $? "cannot compute suffix of object files: cannot compile
3365See \`config.log' for more details" "$LINENO" 5; }
3366fi
3367rm -f conftest.$ac_cv_objext conftest.$ac_ext
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3370$as_echo "$ac_cv_objext" >&6; }
3371OBJEXT=$ac_cv_objext
3372ac_objext=$OBJEXT
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3374$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3375if ${ac_cv_c_compiler_gnu+:} false; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379/* end confdefs.h.  */
3380
3381int
3382main ()
3383{
3384#ifndef __GNUC__
3385       choke me
3386#endif
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392if ac_fn_c_try_compile "$LINENO"; then :
3393  ac_compiler_gnu=yes
3394else
3395  ac_compiler_gnu=no
3396fi
3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398ac_cv_c_compiler_gnu=$ac_compiler_gnu
3399
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3402$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3403if test $ac_compiler_gnu = yes; then
3404  GCC=yes
3405else
3406  GCC=
3407fi
3408ac_test_CFLAGS=${CFLAGS+set}
3409ac_save_CFLAGS=$CFLAGS
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3411$as_echo_n "checking whether $CC accepts -g... " >&6; }
3412if ${ac_cv_prog_cc_g+:} false; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  ac_save_c_werror_flag=$ac_c_werror_flag
3416   ac_c_werror_flag=yes
3417   ac_cv_prog_cc_g=no
3418   CFLAGS="-g"
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425
3426  ;
3427  return 0;
3428}
3429_ACEOF
3430if ac_fn_c_try_compile "$LINENO"; then :
3431  ac_cv_prog_cc_g=yes
3432else
3433  CFLAGS=""
3434      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436
3437int
3438main ()
3439{
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445if ac_fn_c_try_compile "$LINENO"; then :
3446
3447else
3448  ac_c_werror_flag=$ac_save_c_werror_flag
3449	 CFLAGS="-g"
3450	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452
3453int
3454main ()
3455{
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461if ac_fn_c_try_compile "$LINENO"; then :
3462  ac_cv_prog_cc_g=yes
3463fi
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467fi
3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469   ac_c_werror_flag=$ac_save_c_werror_flag
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472$as_echo "$ac_cv_prog_cc_g" >&6; }
3473if test "$ac_test_CFLAGS" = set; then
3474  CFLAGS=$ac_save_CFLAGS
3475elif test $ac_cv_prog_cc_g = yes; then
3476  if test "$GCC" = yes; then
3477    CFLAGS="-g -O2"
3478  else
3479    CFLAGS="-g"
3480  fi
3481else
3482  if test "$GCC" = yes; then
3483    CFLAGS="-O2"
3484  else
3485    CFLAGS=
3486  fi
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3489$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3490if ${ac_cv_prog_cc_c89+:} false; then :
3491  $as_echo_n "(cached) " >&6
3492else
3493  ac_cv_prog_cc_c89=no
3494ac_save_CC=$CC
3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497#include <stdarg.h>
3498#include <stdio.h>
3499#include <sys/types.h>
3500#include <sys/stat.h>
3501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3502struct buf { int x; };
3503FILE * (*rcsopen) (struct buf *, struct stat *, int);
3504static char *e (p, i)
3505     char **p;
3506     int i;
3507{
3508  return p[i];
3509}
3510static char *f (char * (*g) (char **, int), char **p, ...)
3511{
3512  char *s;
3513  va_list v;
3514  va_start (v,p);
3515  s = g (p, va_arg (v,int));
3516  va_end (v);
3517  return s;
3518}
3519
3520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3521   function prototypes and stuff, but not '\xHH' hex character constants.
3522   These don't provoke an error unfortunately, instead are silently treated
3523   as 'x'.  The following induces an error, until -std is added to get
3524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3525   array size at least.  It's necessary to write '\x00'==0 to get something
3526   that's true only with -std.  */
3527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3528
3529/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3530   inside strings and character constants.  */
3531#define FOO(x) 'x'
3532int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3533
3534int test (int i, double x);
3535struct s1 {int (*f) (int a);};
3536struct s2 {int (*f) (double a);};
3537int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3538int argc;
3539char **argv;
3540int
3541main ()
3542{
3543return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3549	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3550do
3551  CC="$ac_save_CC $ac_arg"
3552  if ac_fn_c_try_compile "$LINENO"; then :
3553  ac_cv_prog_cc_c89=$ac_arg
3554fi
3555rm -f core conftest.err conftest.$ac_objext
3556  test "x$ac_cv_prog_cc_c89" != "xno" && break
3557done
3558rm -f conftest.$ac_ext
3559CC=$ac_save_CC
3560
3561fi
3562# AC_CACHE_VAL
3563case "x$ac_cv_prog_cc_c89" in
3564  x)
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3566$as_echo "none needed" >&6; } ;;
3567  xno)
3568    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3569$as_echo "unsupported" >&6; } ;;
3570  *)
3571    CC="$CC $ac_cv_prog_cc_c89"
3572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3573$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3574esac
3575if test "x$ac_cv_prog_cc_c89" != xno; then :
3576
3577fi
3578
3579ac_ext=c
3580ac_cpp='$CPP $CPPFLAGS'
3581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584
3585ac_ext=c
3586ac_cpp='$CPP $CPPFLAGS'
3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3591$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3592if ${am_cv_prog_cc_c_o+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606  # Make sure it works both with $CC and with simple cc.
3607  # Following AC_PROG_CC_C_O, we do the test twice because some
3608  # compilers refuse to overwrite an existing .o file with -o,
3609  # though they will create one.
3610  am_cv_prog_cc_c_o=yes
3611  for am_i in 1 2; do
3612    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3613   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3614   ac_status=$?
3615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616   (exit $ac_status); } \
3617         && test -f conftest2.$ac_objext; then
3618      : OK
3619    else
3620      am_cv_prog_cc_c_o=no
3621      break
3622    fi
3623  done
3624  rm -f core conftest*
3625  unset am_i
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3628$as_echo "$am_cv_prog_cc_c_o" >&6; }
3629if test "$am_cv_prog_cc_c_o" != yes; then
3630   # Losing compiler, so override with the script.
3631   # FIXME: It is wrong to rewrite CC.
3632   # But if we don't then we get into trouble of one sort or another.
3633   # A longer-term fix would be to have automake use am__CC in this case,
3634   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3635   CC="$am_aux_dir/compile $CC"
3636fi
3637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642
3643
3644depcc="$CC"   am_compiler_list=
3645
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3647$as_echo_n "checking dependency style of $depcc... " >&6; }
3648if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3652  # We make a subdir and do the tests there.  Otherwise we can end up
3653  # making bogus files that we don't know about and never remove.  For
3654  # instance it was reported that on HP-UX the gcc test will end up
3655  # making a dummy file named 'D' -- because '-MD' means "put the output
3656  # in D".
3657  rm -rf conftest.dir
3658  mkdir conftest.dir
3659  # Copy depcomp to subdir because otherwise we won't find it if we're
3660  # using a relative directory.
3661  cp "$am_depcomp" conftest.dir
3662  cd conftest.dir
3663  # We will build objects and dependencies in a subdirectory because
3664  # it helps to detect inapplicable dependency modes.  For instance
3665  # both Tru64's cc and ICC support -MD to output dependencies as a
3666  # side effect of compilation, but ICC will put the dependencies in
3667  # the current directory while Tru64 will put them in the object
3668  # directory.
3669  mkdir sub
3670
3671  am_cv_CC_dependencies_compiler_type=none
3672  if test "$am_compiler_list" = ""; then
3673     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674  fi
3675  am__universal=false
3676  case " $depcc " in #(
3677     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3678     esac
3679
3680  for depmode in $am_compiler_list; do
3681    # Setup a source with many dependencies, because some compilers
3682    # like to wrap large dependency lists on column 80 (with \), and
3683    # we should not choose a depcomp mode which is confused by this.
3684    #
3685    # We need to recreate these files for each test, as the compiler may
3686    # overwrite some of them when testing with obscure command lines.
3687    # This happens at least with the AIX C compiler.
3688    : > sub/conftest.c
3689    for i in 1 2 3 4 5 6; do
3690      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3692      # Solaris 10 /bin/sh.
3693      echo '/* dummy */' > sub/conftst$i.h
3694    done
3695    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3696
3697    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3698    # mode.  It turns out that the SunPro C++ compiler does not properly
3699    # handle '-M -o', and we need to detect this.  Also, some Intel
3700    # versions had trouble with output in subdirs.
3701    am__obj=sub/conftest.${OBJEXT-o}
3702    am__minus_obj="-o $am__obj"
3703    case $depmode in
3704    gcc)
3705      # This depmode causes a compiler race in universal mode.
3706      test "$am__universal" = false || continue
3707      ;;
3708    nosideeffect)
3709      # After this tag, mechanisms are not by side-effect, so they'll
3710      # only be used when explicitly requested.
3711      if test "x$enable_dependency_tracking" = xyes; then
3712	continue
3713      else
3714	break
3715      fi
3716      ;;
3717    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3718      # This compiler won't grok '-c -o', but also, the minuso test has
3719      # not run yet.  These depmodes are late enough in the game, and
3720      # so weak that their functioning should not be impacted.
3721      am__obj=conftest.${OBJEXT-o}
3722      am__minus_obj=
3723      ;;
3724    none) break ;;
3725    esac
3726    if depmode=$depmode \
3727       source=sub/conftest.c object=$am__obj \
3728       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3729       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3730         >/dev/null 2>conftest.err &&
3731       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3733       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3735      # icc doesn't choke on unknown options, it will just issue warnings
3736      # or remarks (even with -Werror).  So we grep stderr for any message
3737      # that says an option was ignored or not supported.
3738      # When given -MP, icc 7.0 and 7.1 complain thusly:
3739      #   icc: Command line warning: ignoring option '-M'; no argument required
3740      # The diagnosis changed in icc 8.0:
3741      #   icc: Command line remark: option '-MP' not supported
3742      if (grep 'ignoring option' conftest.err ||
3743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3744        am_cv_CC_dependencies_compiler_type=$depmode
3745        break
3746      fi
3747    fi
3748  done
3749
3750  cd ..
3751  rm -rf conftest.dir
3752else
3753  am_cv_CC_dependencies_compiler_type=none
3754fi
3755
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3758$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3759CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3760
3761 if
3762  test "x$enable_dependency_tracking" != xno \
3763  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764  am__fastdepCC_TRUE=
3765  am__fastdepCC_FALSE='#'
3766else
3767  am__fastdepCC_TRUE='#'
3768  am__fastdepCC_FALSE=
3769fi
3770
3771
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3773$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3774if ${ac_cv_prog_cc_c99+:} false; then :
3775  $as_echo_n "(cached) " >&6
3776else
3777  ac_cv_prog_cc_c99=no
3778ac_save_CC=$CC
3779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h.  */
3781#include <stdarg.h>
3782#include <stdbool.h>
3783#include <stdlib.h>
3784#include <wchar.h>
3785#include <stdio.h>
3786
3787// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3788#define debug(...) fprintf (stderr, __VA_ARGS__)
3789#define showlist(...) puts (#__VA_ARGS__)
3790#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3791static void
3792test_varargs_macros (void)
3793{
3794  int x = 1234;
3795  int y = 5678;
3796  debug ("Flag");
3797  debug ("X = %d\n", x);
3798  showlist (The first, second, and third items.);
3799  report (x>y, "x is %d but y is %d", x, y);
3800}
3801
3802// Check long long types.
3803#define BIG64 18446744073709551615ull
3804#define BIG32 4294967295ul
3805#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3806#if !BIG_OK
3807  your preprocessor is broken;
3808#endif
3809#if BIG_OK
3810#else
3811  your preprocessor is broken;
3812#endif
3813static long long int bignum = -9223372036854775807LL;
3814static unsigned long long int ubignum = BIG64;
3815
3816struct incomplete_array
3817{
3818  int datasize;
3819  double data[];
3820};
3821
3822struct named_init {
3823  int number;
3824  const wchar_t *name;
3825  double average;
3826};
3827
3828typedef const char *ccp;
3829
3830static inline int
3831test_restrict (ccp restrict text)
3832{
3833  // See if C++-style comments work.
3834  // Iterate through items via the restricted pointer.
3835  // Also check for declarations in for loops.
3836  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3837    continue;
3838  return 0;
3839}
3840
3841// Check varargs and va_copy.
3842static void
3843test_varargs (const char *format, ...)
3844{
3845  va_list args;
3846  va_start (args, format);
3847  va_list args_copy;
3848  va_copy (args_copy, args);
3849
3850  const char *str;
3851  int number;
3852  float fnumber;
3853
3854  while (*format)
3855    {
3856      switch (*format++)
3857	{
3858	case 's': // string
3859	  str = va_arg (args_copy, const char *);
3860	  break;
3861	case 'd': // int
3862	  number = va_arg (args_copy, int);
3863	  break;
3864	case 'f': // float
3865	  fnumber = va_arg (args_copy, double);
3866	  break;
3867	default:
3868	  break;
3869	}
3870    }
3871  va_end (args_copy);
3872  va_end (args);
3873}
3874
3875int
3876main ()
3877{
3878
3879  // Check bool.
3880  _Bool success = false;
3881
3882  // Check restrict.
3883  if (test_restrict ("String literal") == 0)
3884    success = true;
3885  char *restrict newvar = "Another string";
3886
3887  // Check varargs.
3888  test_varargs ("s, d' f .", "string", 65, 34.234);
3889  test_varargs_macros ();
3890
3891  // Check flexible array members.
3892  struct incomplete_array *ia =
3893    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3894  ia->datasize = 10;
3895  for (int i = 0; i < ia->datasize; ++i)
3896    ia->data[i] = i * 1.234;
3897
3898  // Check named initializers.
3899  struct named_init ni = {
3900    .number = 34,
3901    .name = L"Test wide string",
3902    .average = 543.34343,
3903  };
3904
3905  ni.number = 58;
3906
3907  int dynamic_array[ni.number];
3908  dynamic_array[ni.number - 1] = 543;
3909
3910  // work around unused variable warnings
3911  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3912	  || dynamic_array[ni.number - 1] != 543);
3913
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3919do
3920  CC="$ac_save_CC $ac_arg"
3921  if ac_fn_c_try_compile "$LINENO"; then :
3922  ac_cv_prog_cc_c99=$ac_arg
3923fi
3924rm -f core conftest.err conftest.$ac_objext
3925  test "x$ac_cv_prog_cc_c99" != "xno" && break
3926done
3927rm -f conftest.$ac_ext
3928CC=$ac_save_CC
3929
3930fi
3931# AC_CACHE_VAL
3932case "x$ac_cv_prog_cc_c99" in
3933  x)
3934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3935$as_echo "none needed" >&6; } ;;
3936  xno)
3937    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3938$as_echo "unsupported" >&6; } ;;
3939  *)
3940    CC="$CC $ac_cv_prog_cc_c99"
3941    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3942$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3943esac
3944if test "x$ac_cv_prog_cc_c99" != xno; then :
3945
3946fi
3947
3948
3949
3950ac_ext=c
3951ac_cpp='$CPP $CPPFLAGS'
3952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3956$as_echo_n "checking how to run the C preprocessor... " >&6; }
3957# On Suns, sometimes $CPP names a directory.
3958if test -n "$CPP" && test -d "$CPP"; then
3959  CPP=
3960fi
3961if test -z "$CPP"; then
3962  if ${ac_cv_prog_CPP+:} false; then :
3963  $as_echo_n "(cached) " >&6
3964else
3965      # Double quotes because CPP needs to be expanded
3966    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967    do
3968      ac_preproc_ok=false
3969for ac_c_preproc_warn_flag in '' yes
3970do
3971  # Use a header file that comes with gcc, so configuring glibc
3972  # with a fresh cross-compiler works.
3973  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3974  # <limits.h> exists even on freestanding compilers.
3975  # On the NeXT, cc -E runs the code through the compiler's parser,
3976  # not just through cpp. "Syntax error" is here to catch this case.
3977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979#ifdef __STDC__
3980# include <limits.h>
3981#else
3982# include <assert.h>
3983#endif
3984		     Syntax error
3985_ACEOF
3986if ac_fn_c_try_cpp "$LINENO"; then :
3987
3988else
3989  # Broken: fails on valid input.
3990continue
3991fi
3992rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994  # OK, works on sane cases.  Now check whether nonexistent headers
3995  # can be detected and how.
3996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998#include <ac_nonexistent.h>
3999_ACEOF
4000if ac_fn_c_try_cpp "$LINENO"; then :
4001  # Broken: success on invalid input.
4002continue
4003else
4004  # Passes both tests.
4005ac_preproc_ok=:
4006break
4007fi
4008rm -f conftest.err conftest.i conftest.$ac_ext
4009
4010done
4011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012rm -f conftest.i conftest.err conftest.$ac_ext
4013if $ac_preproc_ok; then :
4014  break
4015fi
4016
4017    done
4018    ac_cv_prog_CPP=$CPP
4019
4020fi
4021  CPP=$ac_cv_prog_CPP
4022else
4023  ac_cv_prog_CPP=$CPP
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4026$as_echo "$CPP" >&6; }
4027ac_preproc_ok=false
4028for ac_c_preproc_warn_flag in '' yes
4029do
4030  # Use a header file that comes with gcc, so configuring glibc
4031  # with a fresh cross-compiler works.
4032  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033  # <limits.h> exists even on freestanding compilers.
4034  # On the NeXT, cc -E runs the code through the compiler's parser,
4035  # not just through cpp. "Syntax error" is here to catch this case.
4036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038#ifdef __STDC__
4039# include <limits.h>
4040#else
4041# include <assert.h>
4042#endif
4043		     Syntax error
4044_ACEOF
4045if ac_fn_c_try_cpp "$LINENO"; then :
4046
4047else
4048  # Broken: fails on valid input.
4049continue
4050fi
4051rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053  # OK, works on sane cases.  Now check whether nonexistent headers
4054  # can be detected and how.
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057#include <ac_nonexistent.h>
4058_ACEOF
4059if ac_fn_c_try_cpp "$LINENO"; then :
4060  # Broken: success on invalid input.
4061continue
4062else
4063  # Passes both tests.
4064ac_preproc_ok=:
4065break
4066fi
4067rm -f conftest.err conftest.i conftest.$ac_ext
4068
4069done
4070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4071rm -f conftest.i conftest.err conftest.$ac_ext
4072if $ac_preproc_ok; then :
4073
4074else
4075  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4078See \`config.log' for more details" "$LINENO" 5; }
4079fi
4080
4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4089$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4090if ${ac_cv_path_GREP+:} false; then :
4091  $as_echo_n "(cached) " >&6
4092else
4093  if test -z "$GREP"; then
4094  ac_path_GREP_found=false
4095  # Loop through the user's path and test for each of PROGNAME-LIST
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101    for ac_prog in grep ggrep; do
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4105# Check for GNU ac_path_GREP and select it if it is found.
4106  # Check for GNU $ac_path_GREP
4107case `"$ac_path_GREP" --version 2>&1` in
4108*GNU*)
4109  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4110*)
4111  ac_count=0
4112  $as_echo_n 0123456789 >"conftest.in"
4113  while :
4114  do
4115    cat "conftest.in" "conftest.in" >"conftest.tmp"
4116    mv "conftest.tmp" "conftest.in"
4117    cp "conftest.in" "conftest.nl"
4118    $as_echo 'GREP' >> "conftest.nl"
4119    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121    as_fn_arith $ac_count + 1 && ac_count=$as_val
4122    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123      # Best one so far, save it but keep looking for a better one
4124      ac_cv_path_GREP="$ac_path_GREP"
4125      ac_path_GREP_max=$ac_count
4126    fi
4127    # 10*(2^10) chars as input seems more than enough
4128    test $ac_count -gt 10 && break
4129  done
4130  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131esac
4132
4133      $ac_path_GREP_found && break 3
4134    done
4135  done
4136  done
4137IFS=$as_save_IFS
4138  if test -z "$ac_cv_path_GREP"; then
4139    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140  fi
4141else
4142  ac_cv_path_GREP=$GREP
4143fi
4144
4145fi
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4147$as_echo "$ac_cv_path_GREP" >&6; }
4148 GREP="$ac_cv_path_GREP"
4149
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4152$as_echo_n "checking for egrep... " >&6; }
4153if ${ac_cv_path_EGREP+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157   then ac_cv_path_EGREP="$GREP -E"
4158   else
4159     if test -z "$EGREP"; then
4160  ac_path_EGREP_found=false
4161  # Loop through the user's path and test for each of PROGNAME-LIST
4162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164do
4165  IFS=$as_save_IFS
4166  test -z "$as_dir" && as_dir=.
4167    for ac_prog in egrep; do
4168    for ac_exec_ext in '' $ac_executable_extensions; do
4169      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4170      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4171# Check for GNU ac_path_EGREP and select it if it is found.
4172  # Check for GNU $ac_path_EGREP
4173case `"$ac_path_EGREP" --version 2>&1` in
4174*GNU*)
4175  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4176*)
4177  ac_count=0
4178  $as_echo_n 0123456789 >"conftest.in"
4179  while :
4180  do
4181    cat "conftest.in" "conftest.in" >"conftest.tmp"
4182    mv "conftest.tmp" "conftest.in"
4183    cp "conftest.in" "conftest.nl"
4184    $as_echo 'EGREP' >> "conftest.nl"
4185    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187    as_fn_arith $ac_count + 1 && ac_count=$as_val
4188    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4189      # Best one so far, save it but keep looking for a better one
4190      ac_cv_path_EGREP="$ac_path_EGREP"
4191      ac_path_EGREP_max=$ac_count
4192    fi
4193    # 10*(2^10) chars as input seems more than enough
4194    test $ac_count -gt 10 && break
4195  done
4196  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197esac
4198
4199      $ac_path_EGREP_found && break 3
4200    done
4201  done
4202  done
4203IFS=$as_save_IFS
4204  if test -z "$ac_cv_path_EGREP"; then
4205    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206  fi
4207else
4208  ac_cv_path_EGREP=$EGREP
4209fi
4210
4211   fi
4212fi
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4214$as_echo "$ac_cv_path_EGREP" >&6; }
4215 EGREP="$ac_cv_path_EGREP"
4216
4217
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4219$as_echo_n "checking for ANSI C header files... " >&6; }
4220if ${ac_cv_header_stdc+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225#include <stdlib.h>
4226#include <stdarg.h>
4227#include <string.h>
4228#include <float.h>
4229
4230int
4231main ()
4232{
4233
4234  ;
4235  return 0;
4236}
4237_ACEOF
4238if ac_fn_c_try_compile "$LINENO"; then :
4239  ac_cv_header_stdc=yes
4240else
4241  ac_cv_header_stdc=no
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244
4245if test $ac_cv_header_stdc = yes; then
4246  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248/* end confdefs.h.  */
4249#include <string.h>
4250
4251_ACEOF
4252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4253  $EGREP "memchr" >/dev/null 2>&1; then :
4254
4255else
4256  ac_cv_header_stdc=no
4257fi
4258rm -f conftest*
4259
4260fi
4261
4262if test $ac_cv_header_stdc = yes; then
4263  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h.  */
4266#include <stdlib.h>
4267
4268_ACEOF
4269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270  $EGREP "free" >/dev/null 2>&1; then :
4271
4272else
4273  ac_cv_header_stdc=no
4274fi
4275rm -f conftest*
4276
4277fi
4278
4279if test $ac_cv_header_stdc = yes; then
4280  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4281  if test "$cross_compiling" = yes; then :
4282  :
4283else
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#include <ctype.h>
4287#include <stdlib.h>
4288#if ((' ' & 0x0FF) == 0x020)
4289# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4290# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4291#else
4292# define ISLOWER(c) \
4293		   (('a' <= (c) && (c) <= 'i') \
4294		     || ('j' <= (c) && (c) <= 'r') \
4295		     || ('s' <= (c) && (c) <= 'z'))
4296# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297#endif
4298
4299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4300int
4301main ()
4302{
4303  int i;
4304  for (i = 0; i < 256; i++)
4305    if (XOR (islower (i), ISLOWER (i))
4306	|| toupper (i) != TOUPPER (i))
4307      return 2;
4308  return 0;
4309}
4310_ACEOF
4311if ac_fn_c_try_run "$LINENO"; then :
4312
4313else
4314  ac_cv_header_stdc=no
4315fi
4316rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4317  conftest.$ac_objext conftest.beam conftest.$ac_ext
4318fi
4319
4320fi
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4323$as_echo "$ac_cv_header_stdc" >&6; }
4324if test $ac_cv_header_stdc = yes; then
4325
4326$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4327
4328fi
4329
4330# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332		  inttypes.h stdint.h unistd.h
4333do :
4334  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4336"
4337if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4338  cat >>confdefs.h <<_ACEOF
4339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340_ACEOF
4341
4342fi
4343
4344done
4345
4346
4347
4348
4349
4350
4351ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4352if test "x$ac_cv_have_decl___clang__" = xyes; then :
4353  CLANGCC="yes"
4354else
4355  CLANGCC="no"
4356fi
4357
4358ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4359if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4360  INTELCC="yes"
4361else
4362  INTELCC="no"
4363fi
4364
4365ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4366if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4367  SUNCC="yes"
4368else
4369  SUNCC="no"
4370fi
4371
4372
4373
4374
4375if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4376	if test -n "$ac_tool_prefix"; then
4377  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4378set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
4381if ${ac_cv_path_PKG_CONFIG+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  case $PKG_CONFIG in
4385  [\\/]* | ?:[\\/]*)
4386  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4387  ;;
4388  *)
4389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392  IFS=$as_save_IFS
4393  test -z "$as_dir" && as_dir=.
4394    for ac_exec_ext in '' $ac_executable_extensions; do
4395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398    break 2
4399  fi
4400done
4401  done
4402IFS=$as_save_IFS
4403
4404  ;;
4405esac
4406fi
4407PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4408if test -n "$PKG_CONFIG"; then
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4410$as_echo "$PKG_CONFIG" >&6; }
4411else
4412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
4414fi
4415
4416
4417fi
4418if test -z "$ac_cv_path_PKG_CONFIG"; then
4419  ac_pt_PKG_CONFIG=$PKG_CONFIG
4420  # Extract the first word of "pkg-config", so it can be a program name with args.
4421set dummy pkg-config; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  case $ac_pt_PKG_CONFIG in
4428  [\\/]* | ?:[\\/]*)
4429  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4430  ;;
4431  *)
4432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435  IFS=$as_save_IFS
4436  test -z "$as_dir" && as_dir=.
4437    for ac_exec_ext in '' $ac_executable_extensions; do
4438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4441    break 2
4442  fi
4443done
4444  done
4445IFS=$as_save_IFS
4446
4447  ;;
4448esac
4449fi
4450ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4451if test -n "$ac_pt_PKG_CONFIG"; then
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4453$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4454else
4455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
4457fi
4458
4459  if test "x$ac_pt_PKG_CONFIG" = x; then
4460    PKG_CONFIG=""
4461  else
4462    case $cross_compiling:$ac_tool_warned in
4463yes:)
4464{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4466ac_tool_warned=yes ;;
4467esac
4468    PKG_CONFIG=$ac_pt_PKG_CONFIG
4469  fi
4470else
4471  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4472fi
4473
4474fi
4475if test -n "$PKG_CONFIG"; then
4476	_pkg_min_version=0.9.0
4477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4478$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4479	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481$as_echo "yes" >&6; }
4482	else
4483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485		PKG_CONFIG=""
4486	fi
4487
4488fi
4489# Make sure we can run config.sub.
4490$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4491  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4492
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4494$as_echo_n "checking build system type... " >&6; }
4495if ${ac_cv_build+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498  ac_build_alias=$build_alias
4499test "x$ac_build_alias" = x &&
4500  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4501test "x$ac_build_alias" = x &&
4502  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4503ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4504  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4508$as_echo "$ac_cv_build" >&6; }
4509case $ac_cv_build in
4510*-*-*) ;;
4511*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4512esac
4513build=$ac_cv_build
4514ac_save_IFS=$IFS; IFS='-'
4515set x $ac_cv_build
4516shift
4517build_cpu=$1
4518build_vendor=$2
4519shift; shift
4520# Remember, the first character of IFS is used to create $*,
4521# except with old shells:
4522build_os=$*
4523IFS=$ac_save_IFS
4524case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4525
4526
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4528$as_echo_n "checking host system type... " >&6; }
4529if ${ac_cv_host+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  if test "x$host_alias" = x; then
4533  ac_cv_host=$ac_cv_build
4534else
4535  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4536    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4537fi
4538
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4541$as_echo "$ac_cv_host" >&6; }
4542case $ac_cv_host in
4543*-*-*) ;;
4544*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4545esac
4546host=$ac_cv_host
4547ac_save_IFS=$IFS; IFS='-'
4548set x $ac_cv_host
4549shift
4550host_cpu=$1
4551host_vendor=$2
4552shift; shift
4553# Remember, the first character of IFS is used to create $*,
4554# except with old shells:
4555host_os=$*
4556IFS=$ac_save_IFS
4557case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4561$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4562if ${ac_cv_path_SED+:} false; then :
4563  $as_echo_n "(cached) " >&6
4564else
4565            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4566     for ac_i in 1 2 3 4 5 6 7; do
4567       ac_script="$ac_script$as_nl$ac_script"
4568     done
4569     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4570     { ac_script=; unset ac_script;}
4571     if test -z "$SED"; then
4572  ac_path_SED_found=false
4573  # Loop through the user's path and test for each of PROGNAME-LIST
4574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577  IFS=$as_save_IFS
4578  test -z "$as_dir" && as_dir=.
4579    for ac_prog in sed gsed; do
4580    for ac_exec_ext in '' $ac_executable_extensions; do
4581      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4582      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4583# Check for GNU ac_path_SED and select it if it is found.
4584  # Check for GNU $ac_path_SED
4585case `"$ac_path_SED" --version 2>&1` in
4586*GNU*)
4587  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4588*)
4589  ac_count=0
4590  $as_echo_n 0123456789 >"conftest.in"
4591  while :
4592  do
4593    cat "conftest.in" "conftest.in" >"conftest.tmp"
4594    mv "conftest.tmp" "conftest.in"
4595    cp "conftest.in" "conftest.nl"
4596    $as_echo '' >> "conftest.nl"
4597    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4598    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4599    as_fn_arith $ac_count + 1 && ac_count=$as_val
4600    if test $ac_count -gt ${ac_path_SED_max-0}; then
4601      # Best one so far, save it but keep looking for a better one
4602      ac_cv_path_SED="$ac_path_SED"
4603      ac_path_SED_max=$ac_count
4604    fi
4605    # 10*(2^10) chars as input seems more than enough
4606    test $ac_count -gt 10 && break
4607  done
4608  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4609esac
4610
4611      $ac_path_SED_found && break 3
4612    done
4613  done
4614  done
4615IFS=$as_save_IFS
4616  if test -z "$ac_cv_path_SED"; then
4617    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4618  fi
4619else
4620  ac_cv_path_SED=$SED
4621fi
4622
4623fi
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4625$as_echo "$ac_cv_path_SED" >&6; }
4626 SED="$ac_cv_path_SED"
4627  rm -f conftest.sed
4628
4629
4630
4631
4632
4633
4634# Check whether --enable-selective-werror was given.
4635if test "${enable_selective_werror+set}" = set; then :
4636  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4637else
4638  SELECTIVE_WERROR=yes
4639fi
4640
4641
4642
4643
4644
4645# -v is too short to test reliably with XORG_TESTSET_CFLAG
4646if test "x$SUNCC" = "xyes"; then
4647    BASE_CFLAGS="-v"
4648else
4649    BASE_CFLAGS=""
4650fi
4651
4652# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666xorg_testset_save_CFLAGS="$CFLAGS"
4667
4668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676/* end confdefs.h.  */
4677int i;
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680  xorg_cv_cc_flag_unknown_warning_option=yes
4681else
4682  xorg_cv_cc_flag_unknown_warning_option=no
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4689	CFLAGS="$xorg_testset_save_CFLAGS"
4690fi
4691
4692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4695	fi
4696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h.  */
4704int i;
4705_ACEOF
4706if ac_fn_c_try_compile "$LINENO"; then :
4707  xorg_cv_cc_flag_unused_command_line_argument=yes
4708else
4709  xorg_cv_cc_flag_unused_command_line_argument=no
4710fi
4711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4716	CFLAGS="$xorg_testset_save_CFLAGS"
4717fi
4718
4719found="no"
4720
4721	if test $found = "no" ; then
4722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4724		fi
4725
4726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4728		fi
4729
4730		CFLAGS="$CFLAGS -Wall"
4731
4732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4733$as_echo_n "checking if $CC supports -Wall... " >&6; }
4734		cacheid=xorg_cv_cc_flag__Wall
4735		if eval \${$cacheid+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740int i;
4741int
4742main ()
4743{
4744
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_link "$LINENO"; then :
4750  eval $cacheid=yes
4751else
4752  eval $cacheid=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext \
4755    conftest$ac_exeext conftest.$ac_ext
4756fi
4757
4758
4759		CFLAGS="$xorg_testset_save_CFLAGS"
4760
4761		eval supported=\$$cacheid
4762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4763$as_echo "$supported" >&6; }
4764		if test "$supported" = "yes" ; then
4765			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4766			found="yes"
4767		fi
4768	fi
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784xorg_testset_save_CFLAGS="$CFLAGS"
4785
4786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4791  $as_echo_n "(cached) " >&6
4792else
4793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h.  */
4795int i;
4796_ACEOF
4797if ac_fn_c_try_compile "$LINENO"; then :
4798  xorg_cv_cc_flag_unknown_warning_option=yes
4799else
4800  xorg_cv_cc_flag_unknown_warning_option=no
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803fi
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4807	CFLAGS="$xorg_testset_save_CFLAGS"
4808fi
4809
4810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4813	fi
4814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4818  $as_echo_n "(cached) " >&6
4819else
4820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822int i;
4823_ACEOF
4824if ac_fn_c_try_compile "$LINENO"; then :
4825  xorg_cv_cc_flag_unused_command_line_argument=yes
4826else
4827  xorg_cv_cc_flag_unused_command_line_argument=no
4828fi
4829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4834	CFLAGS="$xorg_testset_save_CFLAGS"
4835fi
4836
4837found="no"
4838
4839	if test $found = "no" ; then
4840		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4842		fi
4843
4844		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4846		fi
4847
4848		CFLAGS="$CFLAGS -Wpointer-arith"
4849
4850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4851$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4852		cacheid=xorg_cv_cc_flag__Wpointer_arith
4853		if eval \${$cacheid+:} false; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h.  */
4858int i;
4859int
4860main ()
4861{
4862
4863  ;
4864  return 0;
4865}
4866_ACEOF
4867if ac_fn_c_try_link "$LINENO"; then :
4868  eval $cacheid=yes
4869else
4870  eval $cacheid=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext \
4873    conftest$ac_exeext conftest.$ac_ext
4874fi
4875
4876
4877		CFLAGS="$xorg_testset_save_CFLAGS"
4878
4879		eval supported=\$$cacheid
4880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4881$as_echo "$supported" >&6; }
4882		if test "$supported" = "yes" ; then
4883			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4884			found="yes"
4885		fi
4886	fi
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902xorg_testset_save_CFLAGS="$CFLAGS"
4903
4904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4909  $as_echo_n "(cached) " >&6
4910else
4911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913int i;
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"; then :
4916  xorg_cv_cc_flag_unknown_warning_option=yes
4917else
4918  xorg_cv_cc_flag_unknown_warning_option=no
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4925	CFLAGS="$xorg_testset_save_CFLAGS"
4926fi
4927
4928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931	fi
4932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939/* end confdefs.h.  */
4940int i;
4941_ACEOF
4942if ac_fn_c_try_compile "$LINENO"; then :
4943  xorg_cv_cc_flag_unused_command_line_argument=yes
4944else
4945  xorg_cv_cc_flag_unused_command_line_argument=no
4946fi
4947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4952	CFLAGS="$xorg_testset_save_CFLAGS"
4953fi
4954
4955found="no"
4956
4957	if test $found = "no" ; then
4958		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960		fi
4961
4962		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4964		fi
4965
4966		CFLAGS="$CFLAGS -Wmissing-declarations"
4967
4968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4969$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4970		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4971		if eval \${$cacheid+:} false; then :
4972  $as_echo_n "(cached) " >&6
4973else
4974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975/* end confdefs.h.  */
4976int i;
4977int
4978main ()
4979{
4980
4981  ;
4982  return 0;
4983}
4984_ACEOF
4985if ac_fn_c_try_link "$LINENO"; then :
4986  eval $cacheid=yes
4987else
4988  eval $cacheid=no
4989fi
4990rm -f core conftest.err conftest.$ac_objext \
4991    conftest$ac_exeext conftest.$ac_ext
4992fi
4993
4994
4995		CFLAGS="$xorg_testset_save_CFLAGS"
4996
4997		eval supported=\$$cacheid
4998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4999$as_echo "$supported" >&6; }
5000		if test "$supported" = "yes" ; then
5001			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5002			found="yes"
5003		fi
5004	fi
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020xorg_testset_save_CFLAGS="$CFLAGS"
5021
5022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5027  $as_echo_n "(cached) " >&6
5028else
5029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h.  */
5031int i;
5032_ACEOF
5033if ac_fn_c_try_compile "$LINENO"; then :
5034  xorg_cv_cc_flag_unknown_warning_option=yes
5035else
5036  xorg_cv_cc_flag_unknown_warning_option=no
5037fi
5038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5043	CFLAGS="$xorg_testset_save_CFLAGS"
5044fi
5045
5046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	fi
5050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057/* end confdefs.h.  */
5058int i;
5059_ACEOF
5060if ac_fn_c_try_compile "$LINENO"; then :
5061  xorg_cv_cc_flag_unused_command_line_argument=yes
5062else
5063  xorg_cv_cc_flag_unused_command_line_argument=no
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5070	CFLAGS="$xorg_testset_save_CFLAGS"
5071fi
5072
5073found="no"
5074
5075	if test $found = "no" ; then
5076		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5078		fi
5079
5080		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5082		fi
5083
5084		CFLAGS="$CFLAGS -Wformat=2"
5085
5086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5087$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5088		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5089		if eval \${$cacheid+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h.  */
5094int i;
5095int
5096main ()
5097{
5098
5099  ;
5100  return 0;
5101}
5102_ACEOF
5103if ac_fn_c_try_link "$LINENO"; then :
5104  eval $cacheid=yes
5105else
5106  eval $cacheid=no
5107fi
5108rm -f core conftest.err conftest.$ac_objext \
5109    conftest$ac_exeext conftest.$ac_ext
5110fi
5111
5112
5113		CFLAGS="$xorg_testset_save_CFLAGS"
5114
5115		eval supported=\$$cacheid
5116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5117$as_echo "$supported" >&6; }
5118		if test "$supported" = "yes" ; then
5119			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5120			found="yes"
5121		fi
5122	fi
5123
5124	if test $found = "no" ; then
5125		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5127		fi
5128
5129		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131		fi
5132
5133		CFLAGS="$CFLAGS -Wformat"
5134
5135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5136$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5137		cacheid=xorg_cv_cc_flag__Wformat
5138		if eval \${$cacheid+:} false; then :
5139  $as_echo_n "(cached) " >&6
5140else
5141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142/* end confdefs.h.  */
5143int i;
5144int
5145main ()
5146{
5147
5148  ;
5149  return 0;
5150}
5151_ACEOF
5152if ac_fn_c_try_link "$LINENO"; then :
5153  eval $cacheid=yes
5154else
5155  eval $cacheid=no
5156fi
5157rm -f core conftest.err conftest.$ac_objext \
5158    conftest$ac_exeext conftest.$ac_ext
5159fi
5160
5161
5162		CFLAGS="$xorg_testset_save_CFLAGS"
5163
5164		eval supported=\$$cacheid
5165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5166$as_echo "$supported" >&6; }
5167		if test "$supported" = "yes" ; then
5168			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5169			found="yes"
5170		fi
5171	fi
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189xorg_testset_save_CFLAGS="$CFLAGS"
5190
5191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5196  $as_echo_n "(cached) " >&6
5197else
5198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199/* end confdefs.h.  */
5200int i;
5201_ACEOF
5202if ac_fn_c_try_compile "$LINENO"; then :
5203  xorg_cv_cc_flag_unknown_warning_option=yes
5204else
5205  xorg_cv_cc_flag_unknown_warning_option=no
5206fi
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208fi
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5212	CFLAGS="$xorg_testset_save_CFLAGS"
5213fi
5214
5215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218	fi
5219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227int i;
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"; then :
5230  xorg_cv_cc_flag_unused_command_line_argument=yes
5231else
5232  xorg_cv_cc_flag_unused_command_line_argument=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235fi
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5239	CFLAGS="$xorg_testset_save_CFLAGS"
5240fi
5241
5242found="no"
5243
5244	if test $found = "no" ; then
5245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247		fi
5248
5249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251		fi
5252
5253		CFLAGS="$CFLAGS -Wstrict-prototypes"
5254
5255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5256$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5257		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5258		if eval \${$cacheid+:} false; then :
5259  $as_echo_n "(cached) " >&6
5260else
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264int
5265main ()
5266{
5267
5268  ;
5269  return 0;
5270}
5271_ACEOF
5272if ac_fn_c_try_link "$LINENO"; then :
5273  eval $cacheid=yes
5274else
5275  eval $cacheid=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext \
5278    conftest$ac_exeext conftest.$ac_ext
5279fi
5280
5281
5282		CFLAGS="$xorg_testset_save_CFLAGS"
5283
5284		eval supported=\$$cacheid
5285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5286$as_echo "$supported" >&6; }
5287		if test "$supported" = "yes" ; then
5288			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5289			found="yes"
5290		fi
5291	fi
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307xorg_testset_save_CFLAGS="$CFLAGS"
5308
5309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5314  $as_echo_n "(cached) " >&6
5315else
5316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h.  */
5318int i;
5319_ACEOF
5320if ac_fn_c_try_compile "$LINENO"; then :
5321  xorg_cv_cc_flag_unknown_warning_option=yes
5322else
5323  xorg_cv_cc_flag_unknown_warning_option=no
5324fi
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5330	CFLAGS="$xorg_testset_save_CFLAGS"
5331fi
5332
5333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336	fi
5337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345int i;
5346_ACEOF
5347if ac_fn_c_try_compile "$LINENO"; then :
5348  xorg_cv_cc_flag_unused_command_line_argument=yes
5349else
5350  xorg_cv_cc_flag_unused_command_line_argument=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353fi
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5357	CFLAGS="$xorg_testset_save_CFLAGS"
5358fi
5359
5360found="no"
5361
5362	if test $found = "no" ; then
5363		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365		fi
5366
5367		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5369		fi
5370
5371		CFLAGS="$CFLAGS -Wmissing-prototypes"
5372
5373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5374$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5375		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5376		if eval \${$cacheid+:} false; then :
5377  $as_echo_n "(cached) " >&6
5378else
5379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h.  */
5381int i;
5382int
5383main ()
5384{
5385
5386  ;
5387  return 0;
5388}
5389_ACEOF
5390if ac_fn_c_try_link "$LINENO"; then :
5391  eval $cacheid=yes
5392else
5393  eval $cacheid=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext \
5396    conftest$ac_exeext conftest.$ac_ext
5397fi
5398
5399
5400		CFLAGS="$xorg_testset_save_CFLAGS"
5401
5402		eval supported=\$$cacheid
5403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5404$as_echo "$supported" >&6; }
5405		if test "$supported" = "yes" ; then
5406			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5407			found="yes"
5408		fi
5409	fi
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425xorg_testset_save_CFLAGS="$CFLAGS"
5426
5427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h.  */
5436int i;
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439  xorg_cv_cc_flag_unknown_warning_option=yes
5440else
5441  xorg_cv_cc_flag_unknown_warning_option=no
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5448	CFLAGS="$xorg_testset_save_CFLAGS"
5449fi
5450
5451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	fi
5455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5459  $as_echo_n "(cached) " >&6
5460else
5461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h.  */
5463int i;
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"; then :
5466  xorg_cv_cc_flag_unused_command_line_argument=yes
5467else
5468  xorg_cv_cc_flag_unused_command_line_argument=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5475	CFLAGS="$xorg_testset_save_CFLAGS"
5476fi
5477
5478found="no"
5479
5480	if test $found = "no" ; then
5481		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483		fi
5484
5485		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5487		fi
5488
5489		CFLAGS="$CFLAGS -Wnested-externs"
5490
5491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5492$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5493		cacheid=xorg_cv_cc_flag__Wnested_externs
5494		if eval \${$cacheid+:} false; then :
5495  $as_echo_n "(cached) " >&6
5496else
5497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498/* end confdefs.h.  */
5499int i;
5500int
5501main ()
5502{
5503
5504  ;
5505  return 0;
5506}
5507_ACEOF
5508if ac_fn_c_try_link "$LINENO"; then :
5509  eval $cacheid=yes
5510else
5511  eval $cacheid=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext \
5514    conftest$ac_exeext conftest.$ac_ext
5515fi
5516
5517
5518		CFLAGS="$xorg_testset_save_CFLAGS"
5519
5520		eval supported=\$$cacheid
5521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5522$as_echo "$supported" >&6; }
5523		if test "$supported" = "yes" ; then
5524			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5525			found="yes"
5526		fi
5527	fi
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543xorg_testset_save_CFLAGS="$CFLAGS"
5544
5545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554int i;
5555_ACEOF
5556if ac_fn_c_try_compile "$LINENO"; then :
5557  xorg_cv_cc_flag_unknown_warning_option=yes
5558else
5559  xorg_cv_cc_flag_unknown_warning_option=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562fi
5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	fi
5573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581int i;
5582_ACEOF
5583if ac_fn_c_try_compile "$LINENO"; then :
5584  xorg_cv_cc_flag_unused_command_line_argument=yes
5585else
5586  xorg_cv_cc_flag_unused_command_line_argument=no
5587fi
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589fi
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5593	CFLAGS="$xorg_testset_save_CFLAGS"
5594fi
5595
5596found="no"
5597
5598	if test $found = "no" ; then
5599		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601		fi
5602
5603		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5605		fi
5606
5607		CFLAGS="$CFLAGS -Wbad-function-cast"
5608
5609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5610$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5611		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5612		if eval \${$cacheid+:} false; then :
5613  $as_echo_n "(cached) " >&6
5614else
5615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h.  */
5617int i;
5618int
5619main ()
5620{
5621
5622  ;
5623  return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_link "$LINENO"; then :
5627  eval $cacheid=yes
5628else
5629  eval $cacheid=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext \
5632    conftest$ac_exeext conftest.$ac_ext
5633fi
5634
5635
5636		CFLAGS="$xorg_testset_save_CFLAGS"
5637
5638		eval supported=\$$cacheid
5639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5640$as_echo "$supported" >&6; }
5641		if test "$supported" = "yes" ; then
5642			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5643			found="yes"
5644		fi
5645	fi
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661xorg_testset_save_CFLAGS="$CFLAGS"
5662
5663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h.  */
5672int i;
5673_ACEOF
5674if ac_fn_c_try_compile "$LINENO"; then :
5675  xorg_cv_cc_flag_unknown_warning_option=yes
5676else
5677  xorg_cv_cc_flag_unknown_warning_option=no
5678fi
5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5684	CFLAGS="$xorg_testset_save_CFLAGS"
5685fi
5686
5687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	fi
5691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5695  $as_echo_n "(cached) " >&6
5696else
5697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h.  */
5699int i;
5700_ACEOF
5701if ac_fn_c_try_compile "$LINENO"; then :
5702  xorg_cv_cc_flag_unused_command_line_argument=yes
5703else
5704  xorg_cv_cc_flag_unused_command_line_argument=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5711	CFLAGS="$xorg_testset_save_CFLAGS"
5712fi
5713
5714found="no"
5715
5716	if test $found = "no" ; then
5717		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719		fi
5720
5721		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5723		fi
5724
5725		CFLAGS="$CFLAGS -Wold-style-definition"
5726
5727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5728$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5729		cacheid=xorg_cv_cc_flag__Wold_style_definition
5730		if eval \${$cacheid+:} false; then :
5731  $as_echo_n "(cached) " >&6
5732else
5733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735int i;
5736int
5737main ()
5738{
5739
5740  ;
5741  return 0;
5742}
5743_ACEOF
5744if ac_fn_c_try_link "$LINENO"; then :
5745  eval $cacheid=yes
5746else
5747  eval $cacheid=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext \
5750    conftest$ac_exeext conftest.$ac_ext
5751fi
5752
5753
5754		CFLAGS="$xorg_testset_save_CFLAGS"
5755
5756		eval supported=\$$cacheid
5757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5758$as_echo "$supported" >&6; }
5759		if test "$supported" = "yes" ; then
5760			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5761			found="yes"
5762		fi
5763	fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779xorg_testset_save_CFLAGS="$CFLAGS"
5780
5781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790int i;
5791_ACEOF
5792if ac_fn_c_try_compile "$LINENO"; then :
5793  xorg_cv_cc_flag_unknown_warning_option=yes
5794else
5795  xorg_cv_cc_flag_unknown_warning_option=no
5796fi
5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798fi
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5802	CFLAGS="$xorg_testset_save_CFLAGS"
5803fi
5804
5805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808	fi
5809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5813  $as_echo_n "(cached) " >&6
5814else
5815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h.  */
5817int i;
5818_ACEOF
5819if ac_fn_c_try_compile "$LINENO"; then :
5820  xorg_cv_cc_flag_unused_command_line_argument=yes
5821else
5822  xorg_cv_cc_flag_unused_command_line_argument=no
5823fi
5824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5829	CFLAGS="$xorg_testset_save_CFLAGS"
5830fi
5831
5832found="no"
5833
5834	if test $found = "no" ; then
5835		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837		fi
5838
5839		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5841		fi
5842
5843		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5844
5845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5846$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5847		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5848		if eval \${$cacheid+:} false; then :
5849  $as_echo_n "(cached) " >&6
5850else
5851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852/* end confdefs.h.  */
5853int i;
5854int
5855main ()
5856{
5857
5858  ;
5859  return 0;
5860}
5861_ACEOF
5862if ac_fn_c_try_link "$LINENO"; then :
5863  eval $cacheid=yes
5864else
5865  eval $cacheid=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext \
5868    conftest$ac_exeext conftest.$ac_ext
5869fi
5870
5871
5872		CFLAGS="$xorg_testset_save_CFLAGS"
5873
5874		eval supported=\$$cacheid
5875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5876$as_echo "$supported" >&6; }
5877		if test "$supported" = "yes" ; then
5878			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5879			found="yes"
5880		fi
5881	fi
5882
5883
5884
5885
5886
5887# This chunk adds additional warnings that could catch undesired effects.
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901xorg_testset_save_CFLAGS="$CFLAGS"
5902
5903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5908  $as_echo_n "(cached) " >&6
5909else
5910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911/* end confdefs.h.  */
5912int i;
5913_ACEOF
5914if ac_fn_c_try_compile "$LINENO"; then :
5915  xorg_cv_cc_flag_unknown_warning_option=yes
5916else
5917  xorg_cv_cc_flag_unknown_warning_option=no
5918fi
5919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5924	CFLAGS="$xorg_testset_save_CFLAGS"
5925fi
5926
5927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5930	fi
5931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938/* end confdefs.h.  */
5939int i;
5940_ACEOF
5941if ac_fn_c_try_compile "$LINENO"; then :
5942  xorg_cv_cc_flag_unused_command_line_argument=yes
5943else
5944  xorg_cv_cc_flag_unused_command_line_argument=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5951	CFLAGS="$xorg_testset_save_CFLAGS"
5952fi
5953
5954found="no"
5955
5956	if test $found = "no" ; then
5957		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959		fi
5960
5961		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5963		fi
5964
5965		CFLAGS="$CFLAGS -Wunused"
5966
5967		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5968$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5969		cacheid=xorg_cv_cc_flag__Wunused
5970		if eval \${$cacheid+:} false; then :
5971  $as_echo_n "(cached) " >&6
5972else
5973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h.  */
5975int i;
5976int
5977main ()
5978{
5979
5980  ;
5981  return 0;
5982}
5983_ACEOF
5984if ac_fn_c_try_link "$LINENO"; then :
5985  eval $cacheid=yes
5986else
5987  eval $cacheid=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext \
5990    conftest$ac_exeext conftest.$ac_ext
5991fi
5992
5993
5994		CFLAGS="$xorg_testset_save_CFLAGS"
5995
5996		eval supported=\$$cacheid
5997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5998$as_echo "$supported" >&6; }
5999		if test "$supported" = "yes" ; then
6000			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6001			found="yes"
6002		fi
6003	fi
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019xorg_testset_save_CFLAGS="$CFLAGS"
6020
6021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030int i;
6031_ACEOF
6032if ac_fn_c_try_compile "$LINENO"; then :
6033  xorg_cv_cc_flag_unknown_warning_option=yes
6034else
6035  xorg_cv_cc_flag_unknown_warning_option=no
6036fi
6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6042	CFLAGS="$xorg_testset_save_CFLAGS"
6043fi
6044
6045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6048	fi
6049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h.  */
6057int i;
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060  xorg_cv_cc_flag_unused_command_line_argument=yes
6061else
6062  xorg_cv_cc_flag_unused_command_line_argument=no
6063fi
6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065fi
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6069	CFLAGS="$xorg_testset_save_CFLAGS"
6070fi
6071
6072found="no"
6073
6074	if test $found = "no" ; then
6075		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077		fi
6078
6079		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6081		fi
6082
6083		CFLAGS="$CFLAGS -Wuninitialized"
6084
6085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6086$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6087		cacheid=xorg_cv_cc_flag__Wuninitialized
6088		if eval \${$cacheid+:} false; then :
6089  $as_echo_n "(cached) " >&6
6090else
6091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h.  */
6093int i;
6094int
6095main ()
6096{
6097
6098  ;
6099  return 0;
6100}
6101_ACEOF
6102if ac_fn_c_try_link "$LINENO"; then :
6103  eval $cacheid=yes
6104else
6105  eval $cacheid=no
6106fi
6107rm -f core conftest.err conftest.$ac_objext \
6108    conftest$ac_exeext conftest.$ac_ext
6109fi
6110
6111
6112		CFLAGS="$xorg_testset_save_CFLAGS"
6113
6114		eval supported=\$$cacheid
6115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6116$as_echo "$supported" >&6; }
6117		if test "$supported" = "yes" ; then
6118			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6119			found="yes"
6120		fi
6121	fi
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137xorg_testset_save_CFLAGS="$CFLAGS"
6138
6139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6144  $as_echo_n "(cached) " >&6
6145else
6146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147/* end confdefs.h.  */
6148int i;
6149_ACEOF
6150if ac_fn_c_try_compile "$LINENO"; then :
6151  xorg_cv_cc_flag_unknown_warning_option=yes
6152else
6153  xorg_cv_cc_flag_unknown_warning_option=no
6154fi
6155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156fi
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6160	CFLAGS="$xorg_testset_save_CFLAGS"
6161fi
6162
6163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6166	fi
6167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6171  $as_echo_n "(cached) " >&6
6172else
6173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"; then :
6178  xorg_cv_cc_flag_unused_command_line_argument=yes
6179else
6180  xorg_cv_cc_flag_unused_command_line_argument=no
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6187	CFLAGS="$xorg_testset_save_CFLAGS"
6188fi
6189
6190found="no"
6191
6192	if test $found = "no" ; then
6193		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195		fi
6196
6197		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6199		fi
6200
6201		CFLAGS="$CFLAGS -Wshadow"
6202
6203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6204$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6205		cacheid=xorg_cv_cc_flag__Wshadow
6206		if eval \${$cacheid+:} false; then :
6207  $as_echo_n "(cached) " >&6
6208else
6209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212int
6213main ()
6214{
6215
6216  ;
6217  return 0;
6218}
6219_ACEOF
6220if ac_fn_c_try_link "$LINENO"; then :
6221  eval $cacheid=yes
6222else
6223  eval $cacheid=no
6224fi
6225rm -f core conftest.err conftest.$ac_objext \
6226    conftest$ac_exeext conftest.$ac_ext
6227fi
6228
6229
6230		CFLAGS="$xorg_testset_save_CFLAGS"
6231
6232		eval supported=\$$cacheid
6233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6234$as_echo "$supported" >&6; }
6235		if test "$supported" = "yes" ; then
6236			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6237			found="yes"
6238		fi
6239	fi
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255xorg_testset_save_CFLAGS="$CFLAGS"
6256
6257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6262  $as_echo_n "(cached) " >&6
6263else
6264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266int i;
6267_ACEOF
6268if ac_fn_c_try_compile "$LINENO"; then :
6269  xorg_cv_cc_flag_unknown_warning_option=yes
6270else
6271  xorg_cv_cc_flag_unknown_warning_option=no
6272fi
6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6278	CFLAGS="$xorg_testset_save_CFLAGS"
6279fi
6280
6281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6284	fi
6285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h.  */
6293int i;
6294_ACEOF
6295if ac_fn_c_try_compile "$LINENO"; then :
6296  xorg_cv_cc_flag_unused_command_line_argument=yes
6297else
6298  xorg_cv_cc_flag_unused_command_line_argument=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301fi
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6305	CFLAGS="$xorg_testset_save_CFLAGS"
6306fi
6307
6308found="no"
6309
6310	if test $found = "no" ; then
6311		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313		fi
6314
6315		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317		fi
6318
6319		CFLAGS="$CFLAGS -Wcast-qual"
6320
6321		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6322$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6323		cacheid=xorg_cv_cc_flag__Wcast_qual
6324		if eval \${$cacheid+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329int i;
6330int
6331main ()
6332{
6333
6334  ;
6335  return 0;
6336}
6337_ACEOF
6338if ac_fn_c_try_link "$LINENO"; then :
6339  eval $cacheid=yes
6340else
6341  eval $cacheid=no
6342fi
6343rm -f core conftest.err conftest.$ac_objext \
6344    conftest$ac_exeext conftest.$ac_ext
6345fi
6346
6347
6348		CFLAGS="$xorg_testset_save_CFLAGS"
6349
6350		eval supported=\$$cacheid
6351		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6352$as_echo "$supported" >&6; }
6353		if test "$supported" = "yes" ; then
6354			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6355			found="yes"
6356		fi
6357	fi
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373xorg_testset_save_CFLAGS="$CFLAGS"
6374
6375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6376	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6378$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6379if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384int i;
6385_ACEOF
6386if ac_fn_c_try_compile "$LINENO"; then :
6387  xorg_cv_cc_flag_unknown_warning_option=yes
6388else
6389  xorg_cv_cc_flag_unknown_warning_option=no
6390fi
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392fi
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6394$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6395	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6396	CFLAGS="$xorg_testset_save_CFLAGS"
6397fi
6398
6399if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6400	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6401		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6402	fi
6403	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6405$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6406if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6407  $as_echo_n "(cached) " >&6
6408else
6409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410/* end confdefs.h.  */
6411int i;
6412_ACEOF
6413if ac_fn_c_try_compile "$LINENO"; then :
6414  xorg_cv_cc_flag_unused_command_line_argument=yes
6415else
6416  xorg_cv_cc_flag_unused_command_line_argument=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419fi
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6421$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6422	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6423	CFLAGS="$xorg_testset_save_CFLAGS"
6424fi
6425
6426found="no"
6427
6428	if test $found = "no" ; then
6429		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6430			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431		fi
6432
6433		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6434			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6435		fi
6436
6437		CFLAGS="$CFLAGS -Wmissing-noreturn"
6438
6439		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6440$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6441		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6442		if eval \${$cacheid+:} false; then :
6443  $as_echo_n "(cached) " >&6
6444else
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448int
6449main ()
6450{
6451
6452  ;
6453  return 0;
6454}
6455_ACEOF
6456if ac_fn_c_try_link "$LINENO"; then :
6457  eval $cacheid=yes
6458else
6459  eval $cacheid=no
6460fi
6461rm -f core conftest.err conftest.$ac_objext \
6462    conftest$ac_exeext conftest.$ac_ext
6463fi
6464
6465
6466		CFLAGS="$xorg_testset_save_CFLAGS"
6467
6468		eval supported=\$$cacheid
6469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6470$as_echo "$supported" >&6; }
6471		if test "$supported" = "yes" ; then
6472			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6473			found="yes"
6474		fi
6475	fi
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491xorg_testset_save_CFLAGS="$CFLAGS"
6492
6493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6494	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6498  $as_echo_n "(cached) " >&6
6499else
6500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h.  */
6502int i;
6503_ACEOF
6504if ac_fn_c_try_compile "$LINENO"; then :
6505  xorg_cv_cc_flag_unknown_warning_option=yes
6506else
6507  xorg_cv_cc_flag_unknown_warning_option=no
6508fi
6509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510fi
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6513	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6514	CFLAGS="$xorg_testset_save_CFLAGS"
6515fi
6516
6517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6518	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6519		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520	fi
6521	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528/* end confdefs.h.  */
6529int i;
6530_ACEOF
6531if ac_fn_c_try_compile "$LINENO"; then :
6532  xorg_cv_cc_flag_unused_command_line_argument=yes
6533else
6534  xorg_cv_cc_flag_unused_command_line_argument=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6541	CFLAGS="$xorg_testset_save_CFLAGS"
6542fi
6543
6544found="no"
6545
6546	if test $found = "no" ; then
6547		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549		fi
6550
6551		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6553		fi
6554
6555		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6556
6557		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6558$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6559		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6560		if eval \${$cacheid+:} false; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564/* end confdefs.h.  */
6565int i;
6566int
6567main ()
6568{
6569
6570  ;
6571  return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_link "$LINENO"; then :
6575  eval $cacheid=yes
6576else
6577  eval $cacheid=no
6578fi
6579rm -f core conftest.err conftest.$ac_objext \
6580    conftest$ac_exeext conftest.$ac_ext
6581fi
6582
6583
6584		CFLAGS="$xorg_testset_save_CFLAGS"
6585
6586		eval supported=\$$cacheid
6587		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6588$as_echo "$supported" >&6; }
6589		if test "$supported" = "yes" ; then
6590			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6591			found="yes"
6592		fi
6593	fi
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609xorg_testset_save_CFLAGS="$CFLAGS"
6610
6611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6614$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6615if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h.  */
6620int i;
6621_ACEOF
6622if ac_fn_c_try_compile "$LINENO"; then :
6623  xorg_cv_cc_flag_unknown_warning_option=yes
6624else
6625  xorg_cv_cc_flag_unknown_warning_option=no
6626fi
6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628fi
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6630$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6631	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6632	CFLAGS="$xorg_testset_save_CFLAGS"
6633fi
6634
6635if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6636	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6637		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6638	fi
6639	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6640	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6641$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6642if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6643  $as_echo_n "(cached) " >&6
6644else
6645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647int i;
6648_ACEOF
6649if ac_fn_c_try_compile "$LINENO"; then :
6650  xorg_cv_cc_flag_unused_command_line_argument=yes
6651else
6652  xorg_cv_cc_flag_unused_command_line_argument=no
6653fi
6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655fi
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6657$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6659	CFLAGS="$xorg_testset_save_CFLAGS"
6660fi
6661
6662found="no"
6663
6664	if test $found = "no" ; then
6665		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667		fi
6668
6669		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6671		fi
6672
6673		CFLAGS="$CFLAGS -Wredundant-decls"
6674
6675		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6676$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6677		cacheid=xorg_cv_cc_flag__Wredundant_decls
6678		if eval \${$cacheid+:} false; then :
6679  $as_echo_n "(cached) " >&6
6680else
6681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682/* end confdefs.h.  */
6683int i;
6684int
6685main ()
6686{
6687
6688  ;
6689  return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_link "$LINENO"; then :
6693  eval $cacheid=yes
6694else
6695  eval $cacheid=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext \
6698    conftest$ac_exeext conftest.$ac_ext
6699fi
6700
6701
6702		CFLAGS="$xorg_testset_save_CFLAGS"
6703
6704		eval supported=\$$cacheid
6705		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6706$as_echo "$supported" >&6; }
6707		if test "$supported" = "yes" ; then
6708			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6709			found="yes"
6710		fi
6711	fi
6712
6713
6714
6715# These are currently disabled because they are noisy.  They will be enabled
6716# in the future once the codebase is sufficiently modernized to silence
6717# them.  For now, I don't want them to drown out the other warnings.
6718# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6719# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6720# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6721
6722# Turn some warnings into errors, so we don't accidently get successful builds
6723# when there are problems that should be fixed.
6724
6725if test "x$SELECTIVE_WERROR" = "xyes" ; then
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739xorg_testset_save_CFLAGS="$CFLAGS"
6740
6741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749/* end confdefs.h.  */
6750int i;
6751_ACEOF
6752if ac_fn_c_try_compile "$LINENO"; then :
6753  xorg_cv_cc_flag_unknown_warning_option=yes
6754else
6755  xorg_cv_cc_flag_unknown_warning_option=no
6756fi
6757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758fi
6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6762	CFLAGS="$xorg_testset_save_CFLAGS"
6763fi
6764
6765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768	fi
6769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778_ACEOF
6779if ac_fn_c_try_compile "$LINENO"; then :
6780  xorg_cv_cc_flag_unused_command_line_argument=yes
6781else
6782  xorg_cv_cc_flag_unused_command_line_argument=no
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785fi
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6789	CFLAGS="$xorg_testset_save_CFLAGS"
6790fi
6791
6792found="no"
6793
6794	if test $found = "no" ; then
6795		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6797		fi
6798
6799		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801		fi
6802
6803		CFLAGS="$CFLAGS -Werror=implicit"
6804
6805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6806$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6807		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6808		if eval \${$cacheid+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812/* end confdefs.h.  */
6813int i;
6814int
6815main ()
6816{
6817
6818  ;
6819  return 0;
6820}
6821_ACEOF
6822if ac_fn_c_try_link "$LINENO"; then :
6823  eval $cacheid=yes
6824else
6825  eval $cacheid=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext \
6828    conftest$ac_exeext conftest.$ac_ext
6829fi
6830
6831
6832		CFLAGS="$xorg_testset_save_CFLAGS"
6833
6834		eval supported=\$$cacheid
6835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6836$as_echo "$supported" >&6; }
6837		if test "$supported" = "yes" ; then
6838			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6839			found="yes"
6840		fi
6841	fi
6842
6843	if test $found = "no" ; then
6844		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846		fi
6847
6848		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6850		fi
6851
6852		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6853
6854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6855$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6856		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6857		if eval \${$cacheid+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862int i;
6863int
6864main ()
6865{
6866
6867  ;
6868  return 0;
6869}
6870_ACEOF
6871if ac_fn_c_try_link "$LINENO"; then :
6872  eval $cacheid=yes
6873else
6874  eval $cacheid=no
6875fi
6876rm -f core conftest.err conftest.$ac_objext \
6877    conftest$ac_exeext conftest.$ac_ext
6878fi
6879
6880
6881		CFLAGS="$xorg_testset_save_CFLAGS"
6882
6883		eval supported=\$$cacheid
6884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6885$as_echo "$supported" >&6; }
6886		if test "$supported" = "yes" ; then
6887			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6888			found="yes"
6889		fi
6890	fi
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906xorg_testset_save_CFLAGS="$CFLAGS"
6907
6908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6913  $as_echo_n "(cached) " >&6
6914else
6915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916/* end confdefs.h.  */
6917int i;
6918_ACEOF
6919if ac_fn_c_try_compile "$LINENO"; then :
6920  xorg_cv_cc_flag_unknown_warning_option=yes
6921else
6922  xorg_cv_cc_flag_unknown_warning_option=no
6923fi
6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925fi
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6929	CFLAGS="$xorg_testset_save_CFLAGS"
6930fi
6931
6932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935	fi
6936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h.  */
6944int i;
6945_ACEOF
6946if ac_fn_c_try_compile "$LINENO"; then :
6947  xorg_cv_cc_flag_unused_command_line_argument=yes
6948else
6949  xorg_cv_cc_flag_unused_command_line_argument=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952fi
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6956	CFLAGS="$xorg_testset_save_CFLAGS"
6957fi
6958
6959found="no"
6960
6961	if test $found = "no" ; then
6962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964		fi
6965
6966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968		fi
6969
6970		CFLAGS="$CFLAGS -Werror=nonnull"
6971
6972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6973$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6974		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6975		if eval \${$cacheid+:} false; then :
6976  $as_echo_n "(cached) " >&6
6977else
6978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980int i;
6981int
6982main ()
6983{
6984
6985  ;
6986  return 0;
6987}
6988_ACEOF
6989if ac_fn_c_try_link "$LINENO"; then :
6990  eval $cacheid=yes
6991else
6992  eval $cacheid=no
6993fi
6994rm -f core conftest.err conftest.$ac_objext \
6995    conftest$ac_exeext conftest.$ac_ext
6996fi
6997
6998
6999		CFLAGS="$xorg_testset_save_CFLAGS"
7000
7001		eval supported=\$$cacheid
7002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7003$as_echo "$supported" >&6; }
7004		if test "$supported" = "yes" ; then
7005			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7006			found="yes"
7007		fi
7008	fi
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024xorg_testset_save_CFLAGS="$CFLAGS"
7025
7026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035int i;
7036_ACEOF
7037if ac_fn_c_try_compile "$LINENO"; then :
7038  xorg_cv_cc_flag_unknown_warning_option=yes
7039else
7040  xorg_cv_cc_flag_unknown_warning_option=no
7041fi
7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7047	CFLAGS="$xorg_testset_save_CFLAGS"
7048fi
7049
7050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053	fi
7054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7058  $as_echo_n "(cached) " >&6
7059else
7060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061/* end confdefs.h.  */
7062int i;
7063_ACEOF
7064if ac_fn_c_try_compile "$LINENO"; then :
7065  xorg_cv_cc_flag_unused_command_line_argument=yes
7066else
7067  xorg_cv_cc_flag_unused_command_line_argument=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070fi
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7074	CFLAGS="$xorg_testset_save_CFLAGS"
7075fi
7076
7077found="no"
7078
7079	if test $found = "no" ; then
7080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082		fi
7083
7084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086		fi
7087
7088		CFLAGS="$CFLAGS -Werror=init-self"
7089
7090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7091$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7092		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7093		if eval \${$cacheid+:} false; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097/* end confdefs.h.  */
7098int i;
7099int
7100main ()
7101{
7102
7103  ;
7104  return 0;
7105}
7106_ACEOF
7107if ac_fn_c_try_link "$LINENO"; then :
7108  eval $cacheid=yes
7109else
7110  eval $cacheid=no
7111fi
7112rm -f core conftest.err conftest.$ac_objext \
7113    conftest$ac_exeext conftest.$ac_ext
7114fi
7115
7116
7117		CFLAGS="$xorg_testset_save_CFLAGS"
7118
7119		eval supported=\$$cacheid
7120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7121$as_echo "$supported" >&6; }
7122		if test "$supported" = "yes" ; then
7123			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7124			found="yes"
7125		fi
7126	fi
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142xorg_testset_save_CFLAGS="$CFLAGS"
7143
7144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7149  $as_echo_n "(cached) " >&6
7150else
7151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152/* end confdefs.h.  */
7153int i;
7154_ACEOF
7155if ac_fn_c_try_compile "$LINENO"; then :
7156  xorg_cv_cc_flag_unknown_warning_option=yes
7157else
7158  xorg_cv_cc_flag_unknown_warning_option=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161fi
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7165	CFLAGS="$xorg_testset_save_CFLAGS"
7166fi
7167
7168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171	fi
7172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7176  $as_echo_n "(cached) " >&6
7177else
7178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180int i;
7181_ACEOF
7182if ac_fn_c_try_compile "$LINENO"; then :
7183  xorg_cv_cc_flag_unused_command_line_argument=yes
7184else
7185  xorg_cv_cc_flag_unused_command_line_argument=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7192	CFLAGS="$xorg_testset_save_CFLAGS"
7193fi
7194
7195found="no"
7196
7197	if test $found = "no" ; then
7198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200		fi
7201
7202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204		fi
7205
7206		CFLAGS="$CFLAGS -Werror=main"
7207
7208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7209$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7210		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7211		if eval \${$cacheid+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216int i;
7217int
7218main ()
7219{
7220
7221  ;
7222  return 0;
7223}
7224_ACEOF
7225if ac_fn_c_try_link "$LINENO"; then :
7226  eval $cacheid=yes
7227else
7228  eval $cacheid=no
7229fi
7230rm -f core conftest.err conftest.$ac_objext \
7231    conftest$ac_exeext conftest.$ac_ext
7232fi
7233
7234
7235		CFLAGS="$xorg_testset_save_CFLAGS"
7236
7237		eval supported=\$$cacheid
7238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7239$as_echo "$supported" >&6; }
7240		if test "$supported" = "yes" ; then
7241			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7242			found="yes"
7243		fi
7244	fi
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260xorg_testset_save_CFLAGS="$CFLAGS"
7261
7262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7267  $as_echo_n "(cached) " >&6
7268else
7269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h.  */
7271int i;
7272_ACEOF
7273if ac_fn_c_try_compile "$LINENO"; then :
7274  xorg_cv_cc_flag_unknown_warning_option=yes
7275else
7276  xorg_cv_cc_flag_unknown_warning_option=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279fi
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7283	CFLAGS="$xorg_testset_save_CFLAGS"
7284fi
7285
7286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7289	fi
7290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7294  $as_echo_n "(cached) " >&6
7295else
7296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297/* end confdefs.h.  */
7298int i;
7299_ACEOF
7300if ac_fn_c_try_compile "$LINENO"; then :
7301  xorg_cv_cc_flag_unused_command_line_argument=yes
7302else
7303  xorg_cv_cc_flag_unused_command_line_argument=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306fi
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7310	CFLAGS="$xorg_testset_save_CFLAGS"
7311fi
7312
7313found="no"
7314
7315	if test $found = "no" ; then
7316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318		fi
7319
7320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7322		fi
7323
7324		CFLAGS="$CFLAGS -Werror=missing-braces"
7325
7326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7327$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7328		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7329		if eval \${$cacheid+:} false; then :
7330  $as_echo_n "(cached) " >&6
7331else
7332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335int
7336main ()
7337{
7338
7339  ;
7340  return 0;
7341}
7342_ACEOF
7343if ac_fn_c_try_link "$LINENO"; then :
7344  eval $cacheid=yes
7345else
7346  eval $cacheid=no
7347fi
7348rm -f core conftest.err conftest.$ac_objext \
7349    conftest$ac_exeext conftest.$ac_ext
7350fi
7351
7352
7353		CFLAGS="$xorg_testset_save_CFLAGS"
7354
7355		eval supported=\$$cacheid
7356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7357$as_echo "$supported" >&6; }
7358		if test "$supported" = "yes" ; then
7359			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7360			found="yes"
7361		fi
7362	fi
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378xorg_testset_save_CFLAGS="$CFLAGS"
7379
7380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h.  */
7389int i;
7390_ACEOF
7391if ac_fn_c_try_compile "$LINENO"; then :
7392  xorg_cv_cc_flag_unknown_warning_option=yes
7393else
7394  xorg_cv_cc_flag_unknown_warning_option=no
7395fi
7396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7401	CFLAGS="$xorg_testset_save_CFLAGS"
7402fi
7403
7404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7407	fi
7408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415/* end confdefs.h.  */
7416int i;
7417_ACEOF
7418if ac_fn_c_try_compile "$LINENO"; then :
7419  xorg_cv_cc_flag_unused_command_line_argument=yes
7420else
7421  xorg_cv_cc_flag_unused_command_line_argument=no
7422fi
7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424fi
7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7428	CFLAGS="$xorg_testset_save_CFLAGS"
7429fi
7430
7431found="no"
7432
7433	if test $found = "no" ; then
7434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436		fi
7437
7438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7440		fi
7441
7442		CFLAGS="$CFLAGS -Werror=sequence-point"
7443
7444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7445$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7446		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7447		if eval \${$cacheid+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452int i;
7453int
7454main ()
7455{
7456
7457  ;
7458  return 0;
7459}
7460_ACEOF
7461if ac_fn_c_try_link "$LINENO"; then :
7462  eval $cacheid=yes
7463else
7464  eval $cacheid=no
7465fi
7466rm -f core conftest.err conftest.$ac_objext \
7467    conftest$ac_exeext conftest.$ac_ext
7468fi
7469
7470
7471		CFLAGS="$xorg_testset_save_CFLAGS"
7472
7473		eval supported=\$$cacheid
7474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7475$as_echo "$supported" >&6; }
7476		if test "$supported" = "yes" ; then
7477			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7478			found="yes"
7479		fi
7480	fi
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496xorg_testset_save_CFLAGS="$CFLAGS"
7497
7498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508_ACEOF
7509if ac_fn_c_try_compile "$LINENO"; then :
7510  xorg_cv_cc_flag_unknown_warning_option=yes
7511else
7512  xorg_cv_cc_flag_unknown_warning_option=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515fi
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7519	CFLAGS="$xorg_testset_save_CFLAGS"
7520fi
7521
7522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	fi
7526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7530  $as_echo_n "(cached) " >&6
7531else
7532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533/* end confdefs.h.  */
7534int i;
7535_ACEOF
7536if ac_fn_c_try_compile "$LINENO"; then :
7537  xorg_cv_cc_flag_unused_command_line_argument=yes
7538else
7539  xorg_cv_cc_flag_unused_command_line_argument=no
7540fi
7541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542fi
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546	CFLAGS="$xorg_testset_save_CFLAGS"
7547fi
7548
7549found="no"
7550
7551	if test $found = "no" ; then
7552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554		fi
7555
7556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558		fi
7559
7560		CFLAGS="$CFLAGS -Werror=return-type"
7561
7562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7563$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7564		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7565		if eval \${$cacheid+:} false; then :
7566  $as_echo_n "(cached) " >&6
7567else
7568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569/* end confdefs.h.  */
7570int i;
7571int
7572main ()
7573{
7574
7575  ;
7576  return 0;
7577}
7578_ACEOF
7579if ac_fn_c_try_link "$LINENO"; then :
7580  eval $cacheid=yes
7581else
7582  eval $cacheid=no
7583fi
7584rm -f core conftest.err conftest.$ac_objext \
7585    conftest$ac_exeext conftest.$ac_ext
7586fi
7587
7588
7589		CFLAGS="$xorg_testset_save_CFLAGS"
7590
7591		eval supported=\$$cacheid
7592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7593$as_echo "$supported" >&6; }
7594		if test "$supported" = "yes" ; then
7595			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7596			found="yes"
7597		fi
7598	fi
7599
7600	if test $found = "no" ; then
7601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603		fi
7604
7605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7607		fi
7608
7609		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7610
7611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7612$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7613		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7614		if eval \${$cacheid+:} false; then :
7615  $as_echo_n "(cached) " >&6
7616else
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619int i;
7620int
7621main ()
7622{
7623
7624  ;
7625  return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_link "$LINENO"; then :
7629  eval $cacheid=yes
7630else
7631  eval $cacheid=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext \
7634    conftest$ac_exeext conftest.$ac_ext
7635fi
7636
7637
7638		CFLAGS="$xorg_testset_save_CFLAGS"
7639
7640		eval supported=\$$cacheid
7641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7642$as_echo "$supported" >&6; }
7643		if test "$supported" = "yes" ; then
7644			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7645			found="yes"
7646		fi
7647	fi
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663xorg_testset_save_CFLAGS="$CFLAGS"
7664
7665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674int i;
7675_ACEOF
7676if ac_fn_c_try_compile "$LINENO"; then :
7677  xorg_cv_cc_flag_unknown_warning_option=yes
7678else
7679  xorg_cv_cc_flag_unknown_warning_option=no
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7686	CFLAGS="$xorg_testset_save_CFLAGS"
7687fi
7688
7689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692	fi
7693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701int i;
7702_ACEOF
7703if ac_fn_c_try_compile "$LINENO"; then :
7704  xorg_cv_cc_flag_unused_command_line_argument=yes
7705else
7706  xorg_cv_cc_flag_unused_command_line_argument=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7713	CFLAGS="$xorg_testset_save_CFLAGS"
7714fi
7715
7716found="no"
7717
7718	if test $found = "no" ; then
7719		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721		fi
7722
7723		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725		fi
7726
7727		CFLAGS="$CFLAGS -Werror=trigraphs"
7728
7729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7730$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7731		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7732		if eval \${$cacheid+:} false; then :
7733  $as_echo_n "(cached) " >&6
7734else
7735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h.  */
7737int i;
7738int
7739main ()
7740{
7741
7742  ;
7743  return 0;
7744}
7745_ACEOF
7746if ac_fn_c_try_link "$LINENO"; then :
7747  eval $cacheid=yes
7748else
7749  eval $cacheid=no
7750fi
7751rm -f core conftest.err conftest.$ac_objext \
7752    conftest$ac_exeext conftest.$ac_ext
7753fi
7754
7755
7756		CFLAGS="$xorg_testset_save_CFLAGS"
7757
7758		eval supported=\$$cacheid
7759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7760$as_echo "$supported" >&6; }
7761		if test "$supported" = "yes" ; then
7762			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7763			found="yes"
7764		fi
7765	fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781xorg_testset_save_CFLAGS="$CFLAGS"
7782
7783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h.  */
7792int i;
7793_ACEOF
7794if ac_fn_c_try_compile "$LINENO"; then :
7795  xorg_cv_cc_flag_unknown_warning_option=yes
7796else
7797  xorg_cv_cc_flag_unknown_warning_option=no
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800fi
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7804	CFLAGS="$xorg_testset_save_CFLAGS"
7805fi
7806
7807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810	fi
7811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7815  $as_echo_n "(cached) " >&6
7816else
7817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h.  */
7819int i;
7820_ACEOF
7821if ac_fn_c_try_compile "$LINENO"; then :
7822  xorg_cv_cc_flag_unused_command_line_argument=yes
7823else
7824  xorg_cv_cc_flag_unused_command_line_argument=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827fi
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7831	CFLAGS="$xorg_testset_save_CFLAGS"
7832fi
7833
7834found="no"
7835
7836	if test $found = "no" ; then
7837		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839		fi
7840
7841		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7843		fi
7844
7845		CFLAGS="$CFLAGS -Werror=array-bounds"
7846
7847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7848$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7849		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7850		if eval \${$cacheid+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854/* end confdefs.h.  */
7855int i;
7856int
7857main ()
7858{
7859
7860  ;
7861  return 0;
7862}
7863_ACEOF
7864if ac_fn_c_try_link "$LINENO"; then :
7865  eval $cacheid=yes
7866else
7867  eval $cacheid=no
7868fi
7869rm -f core conftest.err conftest.$ac_objext \
7870    conftest$ac_exeext conftest.$ac_ext
7871fi
7872
7873
7874		CFLAGS="$xorg_testset_save_CFLAGS"
7875
7876		eval supported=\$$cacheid
7877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7878$as_echo "$supported" >&6; }
7879		if test "$supported" = "yes" ; then
7880			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7881			found="yes"
7882		fi
7883	fi
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899xorg_testset_save_CFLAGS="$CFLAGS"
7900
7901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913  xorg_cv_cc_flag_unknown_warning_option=yes
7914else
7915  xorg_cv_cc_flag_unknown_warning_option=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7922	CFLAGS="$xorg_testset_save_CFLAGS"
7923fi
7924
7925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7928	fi
7929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940  xorg_cv_cc_flag_unused_command_line_argument=yes
7941else
7942  xorg_cv_cc_flag_unused_command_line_argument=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7949	CFLAGS="$xorg_testset_save_CFLAGS"
7950fi
7951
7952found="no"
7953
7954	if test $found = "no" ; then
7955		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957		fi
7958
7959		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961		fi
7962
7963		CFLAGS="$CFLAGS -Werror=write-strings"
7964
7965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7966$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7967		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7968		if eval \${$cacheid+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974int
7975main ()
7976{
7977
7978  ;
7979  return 0;
7980}
7981_ACEOF
7982if ac_fn_c_try_link "$LINENO"; then :
7983  eval $cacheid=yes
7984else
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996$as_echo "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028int i;
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031  xorg_cv_cc_flag_unknown_warning_option=yes
8032else
8033  xorg_cv_cc_flag_unknown_warning_option=no
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8040	CFLAGS="$xorg_testset_save_CFLAGS"
8041fi
8042
8043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8046	fi
8047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056_ACEOF
8057if ac_fn_c_try_compile "$LINENO"; then :
8058  xorg_cv_cc_flag_unused_command_line_argument=yes
8059else
8060  xorg_cv_cc_flag_unused_command_line_argument=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8067	CFLAGS="$xorg_testset_save_CFLAGS"
8068fi
8069
8070found="no"
8071
8072	if test $found = "no" ; then
8073		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075		fi
8076
8077		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079		fi
8080
8081		CFLAGS="$CFLAGS -Werror=address"
8082
8083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8084$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8085		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8086		if eval \${$cacheid+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092int
8093main ()
8094{
8095
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"; then :
8101  eval $cacheid=yes
8102else
8103  eval $cacheid=no
8104fi
8105rm -f core conftest.err conftest.$ac_objext \
8106    conftest$ac_exeext conftest.$ac_ext
8107fi
8108
8109
8110		CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112		eval supported=\$$cacheid
8113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114$as_echo "$supported" >&6; }
8115		if test "$supported" = "yes" ; then
8116			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8117			found="yes"
8118		fi
8119	fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"; then :
8149  xorg_cv_cc_flag_unknown_warning_option=yes
8150else
8151  xorg_cv_cc_flag_unknown_warning_option=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	fi
8165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176  xorg_cv_cc_flag_unused_command_line_argument=yes
8177else
8178  xorg_cv_cc_flag_unused_command_line_argument=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188found="no"
8189
8190	if test $found = "no" ; then
8191		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193		fi
8194
8195		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197		fi
8198
8199		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8200
8201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8202$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8203		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8204		if eval \${$cacheid+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210int
8211main ()
8212{
8213
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"; then :
8219  eval $cacheid=yes
8220else
8221  eval $cacheid=no
8222fi
8223rm -f core conftest.err conftest.$ac_objext \
8224    conftest$ac_exeext conftest.$ac_ext
8225fi
8226
8227
8228		CFLAGS="$xorg_testset_save_CFLAGS"
8229
8230		eval supported=\$$cacheid
8231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8232$as_echo "$supported" >&6; }
8233		if test "$supported" = "yes" ; then
8234			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8235			found="yes"
8236		fi
8237	fi
8238
8239	if test $found = "no" ; then
8240		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8241			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242		fi
8243
8244		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8245			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8246		fi
8247
8248		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8249
8250		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8251$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8252		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8253		if eval \${$cacheid+:} false; then :
8254  $as_echo_n "(cached) " >&6
8255else
8256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257/* end confdefs.h.  */
8258int i;
8259int
8260main ()
8261{
8262
8263  ;
8264  return 0;
8265}
8266_ACEOF
8267if ac_fn_c_try_link "$LINENO"; then :
8268  eval $cacheid=yes
8269else
8270  eval $cacheid=no
8271fi
8272rm -f core conftest.err conftest.$ac_objext \
8273    conftest$ac_exeext conftest.$ac_ext
8274fi
8275
8276
8277		CFLAGS="$xorg_testset_save_CFLAGS"
8278
8279		eval supported=\$$cacheid
8280		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8281$as_echo "$supported" >&6; }
8282		if test "$supported" = "yes" ; then
8283			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8284			found="yes"
8285		fi
8286	fi
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302xorg_testset_save_CFLAGS="$CFLAGS"
8303
8304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8305	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8309  $as_echo_n "(cached) " >&6
8310else
8311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312/* end confdefs.h.  */
8313int i;
8314_ACEOF
8315if ac_fn_c_try_compile "$LINENO"; then :
8316  xorg_cv_cc_flag_unknown_warning_option=yes
8317else
8318  xorg_cv_cc_flag_unknown_warning_option=no
8319fi
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8324	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8325	CFLAGS="$xorg_testset_save_CFLAGS"
8326fi
8327
8328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8329	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331	fi
8332	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341_ACEOF
8342if ac_fn_c_try_compile "$LINENO"; then :
8343  xorg_cv_cc_flag_unused_command_line_argument=yes
8344else
8345  xorg_cv_cc_flag_unused_command_line_argument=no
8346fi
8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348fi
8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8351	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8352	CFLAGS="$xorg_testset_save_CFLAGS"
8353fi
8354
8355found="no"
8356
8357	if test $found = "no" ; then
8358		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8359			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8360		fi
8361
8362		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8363			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8364		fi
8365
8366		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8367
8368		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8369$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8370		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8371		if eval \${$cacheid+:} false; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375/* end confdefs.h.  */
8376int i;
8377int
8378main ()
8379{
8380
8381  ;
8382  return 0;
8383}
8384_ACEOF
8385if ac_fn_c_try_link "$LINENO"; then :
8386  eval $cacheid=yes
8387else
8388  eval $cacheid=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext \
8391    conftest$ac_exeext conftest.$ac_ext
8392fi
8393
8394
8395		CFLAGS="$xorg_testset_save_CFLAGS"
8396
8397		eval supported=\$$cacheid
8398		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8399$as_echo "$supported" >&6; }
8400		if test "$supported" = "yes" ; then
8401			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8402			found="yes"
8403		fi
8404	fi
8405
8406 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8407else
8408{ $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
8409$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;}
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423xorg_testset_save_CFLAGS="$CFLAGS"
8424
8425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8430  $as_echo_n "(cached) " >&6
8431else
8432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433/* end confdefs.h.  */
8434int i;
8435_ACEOF
8436if ac_fn_c_try_compile "$LINENO"; then :
8437  xorg_cv_cc_flag_unknown_warning_option=yes
8438else
8439  xorg_cv_cc_flag_unknown_warning_option=no
8440fi
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442fi
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8446	CFLAGS="$xorg_testset_save_CFLAGS"
8447fi
8448
8449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452	fi
8453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8457  $as_echo_n "(cached) " >&6
8458else
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461int i;
8462_ACEOF
8463if ac_fn_c_try_compile "$LINENO"; then :
8464  xorg_cv_cc_flag_unused_command_line_argument=yes
8465else
8466  xorg_cv_cc_flag_unused_command_line_argument=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469fi
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8473	CFLAGS="$xorg_testset_save_CFLAGS"
8474fi
8475
8476found="no"
8477
8478	if test $found = "no" ; then
8479		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481		fi
8482
8483		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8485		fi
8486
8487		CFLAGS="$CFLAGS -Wimplicit"
8488
8489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8490$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8491		cacheid=xorg_cv_cc_flag__Wimplicit
8492		if eval \${$cacheid+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496/* end confdefs.h.  */
8497int i;
8498int
8499main ()
8500{
8501
8502  ;
8503  return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_link "$LINENO"; then :
8507  eval $cacheid=yes
8508else
8509  eval $cacheid=no
8510fi
8511rm -f core conftest.err conftest.$ac_objext \
8512    conftest$ac_exeext conftest.$ac_ext
8513fi
8514
8515
8516		CFLAGS="$xorg_testset_save_CFLAGS"
8517
8518		eval supported=\$$cacheid
8519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520$as_echo "$supported" >&6; }
8521		if test "$supported" = "yes" ; then
8522			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8523			found="yes"
8524		fi
8525	fi
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541xorg_testset_save_CFLAGS="$CFLAGS"
8542
8543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8548  $as_echo_n "(cached) " >&6
8549else
8550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551/* end confdefs.h.  */
8552int i;
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"; then :
8555  xorg_cv_cc_flag_unknown_warning_option=yes
8556else
8557  xorg_cv_cc_flag_unknown_warning_option=no
8558fi
8559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560fi
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8564	CFLAGS="$xorg_testset_save_CFLAGS"
8565fi
8566
8567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8570	fi
8571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8575  $as_echo_n "(cached) " >&6
8576else
8577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578/* end confdefs.h.  */
8579int i;
8580_ACEOF
8581if ac_fn_c_try_compile "$LINENO"; then :
8582  xorg_cv_cc_flag_unused_command_line_argument=yes
8583else
8584  xorg_cv_cc_flag_unused_command_line_argument=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587fi
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8591	CFLAGS="$xorg_testset_save_CFLAGS"
8592fi
8593
8594found="no"
8595
8596	if test $found = "no" ; then
8597		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599		fi
8600
8601		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603		fi
8604
8605		CFLAGS="$CFLAGS -Wnonnull"
8606
8607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8608$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8609		cacheid=xorg_cv_cc_flag__Wnonnull
8610		if eval \${$cacheid+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616int
8617main ()
8618{
8619
8620  ;
8621  return 0;
8622}
8623_ACEOF
8624if ac_fn_c_try_link "$LINENO"; then :
8625  eval $cacheid=yes
8626else
8627  eval $cacheid=no
8628fi
8629rm -f core conftest.err conftest.$ac_objext \
8630    conftest$ac_exeext conftest.$ac_ext
8631fi
8632
8633
8634		CFLAGS="$xorg_testset_save_CFLAGS"
8635
8636		eval supported=\$$cacheid
8637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8638$as_echo "$supported" >&6; }
8639		if test "$supported" = "yes" ; then
8640			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8641			found="yes"
8642		fi
8643	fi
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659xorg_testset_save_CFLAGS="$CFLAGS"
8660
8661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8666  $as_echo_n "(cached) " >&6
8667else
8668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669/* end confdefs.h.  */
8670int i;
8671_ACEOF
8672if ac_fn_c_try_compile "$LINENO"; then :
8673  xorg_cv_cc_flag_unknown_warning_option=yes
8674else
8675  xorg_cv_cc_flag_unknown_warning_option=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8682	CFLAGS="$xorg_testset_save_CFLAGS"
8683fi
8684
8685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688	fi
8689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697int i;
8698_ACEOF
8699if ac_fn_c_try_compile "$LINENO"; then :
8700  xorg_cv_cc_flag_unused_command_line_argument=yes
8701else
8702  xorg_cv_cc_flag_unused_command_line_argument=no
8703fi
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705fi
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8709	CFLAGS="$xorg_testset_save_CFLAGS"
8710fi
8711
8712found="no"
8713
8714	if test $found = "no" ; then
8715		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717		fi
8718
8719		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721		fi
8722
8723		CFLAGS="$CFLAGS -Winit-self"
8724
8725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8726$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8727		cacheid=xorg_cv_cc_flag__Winit_self
8728		if eval \${$cacheid+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h.  */
8733int i;
8734int
8735main ()
8736{
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"; then :
8743  eval $cacheid=yes
8744else
8745  eval $cacheid=no
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748    conftest$ac_exeext conftest.$ac_ext
8749fi
8750
8751
8752		CFLAGS="$xorg_testset_save_CFLAGS"
8753
8754		eval supported=\$$cacheid
8755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8756$as_echo "$supported" >&6; }
8757		if test "$supported" = "yes" ; then
8758			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8759			found="yes"
8760		fi
8761	fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777xorg_testset_save_CFLAGS="$CFLAGS"
8778
8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787/* end confdefs.h.  */
8788int i;
8789_ACEOF
8790if ac_fn_c_try_compile "$LINENO"; then :
8791  xorg_cv_cc_flag_unknown_warning_option=yes
8792else
8793  xorg_cv_cc_flag_unknown_warning_option=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796fi
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8800	CFLAGS="$xorg_testset_save_CFLAGS"
8801fi
8802
8803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8806	fi
8807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8811  $as_echo_n "(cached) " >&6
8812else
8813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"; then :
8818  xorg_cv_cc_flag_unused_command_line_argument=yes
8819else
8820  xorg_cv_cc_flag_unused_command_line_argument=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823fi
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8827	CFLAGS="$xorg_testset_save_CFLAGS"
8828fi
8829
8830found="no"
8831
8832	if test $found = "no" ; then
8833		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835		fi
8836
8837		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8839		fi
8840
8841		CFLAGS="$CFLAGS -Wmain"
8842
8843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8844$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8845		cacheid=xorg_cv_cc_flag__Wmain
8846		if eval \${$cacheid+:} false; then :
8847  $as_echo_n "(cached) " >&6
8848else
8849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8850/* end confdefs.h.  */
8851int i;
8852int
8853main ()
8854{
8855
8856  ;
8857  return 0;
8858}
8859_ACEOF
8860if ac_fn_c_try_link "$LINENO"; then :
8861  eval $cacheid=yes
8862else
8863  eval $cacheid=no
8864fi
8865rm -f core conftest.err conftest.$ac_objext \
8866    conftest$ac_exeext conftest.$ac_ext
8867fi
8868
8869
8870		CFLAGS="$xorg_testset_save_CFLAGS"
8871
8872		eval supported=\$$cacheid
8873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8874$as_echo "$supported" >&6; }
8875		if test "$supported" = "yes" ; then
8876			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8877			found="yes"
8878		fi
8879	fi
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895xorg_testset_save_CFLAGS="$CFLAGS"
8896
8897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8902  $as_echo_n "(cached) " >&6
8903else
8904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905/* end confdefs.h.  */
8906int i;
8907_ACEOF
8908if ac_fn_c_try_compile "$LINENO"; then :
8909  xorg_cv_cc_flag_unknown_warning_option=yes
8910else
8911  xorg_cv_cc_flag_unknown_warning_option=no
8912fi
8913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8914fi
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8918	CFLAGS="$xorg_testset_save_CFLAGS"
8919fi
8920
8921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8924	fi
8925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932/* end confdefs.h.  */
8933int i;
8934_ACEOF
8935if ac_fn_c_try_compile "$LINENO"; then :
8936  xorg_cv_cc_flag_unused_command_line_argument=yes
8937else
8938  xorg_cv_cc_flag_unused_command_line_argument=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941fi
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8945	CFLAGS="$xorg_testset_save_CFLAGS"
8946fi
8947
8948found="no"
8949
8950	if test $found = "no" ; then
8951		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953		fi
8954
8955		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8957		fi
8958
8959		CFLAGS="$CFLAGS -Wmissing-braces"
8960
8961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8962$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8963		cacheid=xorg_cv_cc_flag__Wmissing_braces
8964		if eval \${$cacheid+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968/* end confdefs.h.  */
8969int i;
8970int
8971main ()
8972{
8973
8974  ;
8975  return 0;
8976}
8977_ACEOF
8978if ac_fn_c_try_link "$LINENO"; then :
8979  eval $cacheid=yes
8980else
8981  eval $cacheid=no
8982fi
8983rm -f core conftest.err conftest.$ac_objext \
8984    conftest$ac_exeext conftest.$ac_ext
8985fi
8986
8987
8988		CFLAGS="$xorg_testset_save_CFLAGS"
8989
8990		eval supported=\$$cacheid
8991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992$as_echo "$supported" >&6; }
8993		if test "$supported" = "yes" ; then
8994			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8995			found="yes"
8996		fi
8997	fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9020  $as_echo_n "(cached) " >&6
9021else
9022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023/* end confdefs.h.  */
9024int i;
9025_ACEOF
9026if ac_fn_c_try_compile "$LINENO"; then :
9027  xorg_cv_cc_flag_unknown_warning_option=yes
9028else
9029  xorg_cv_cc_flag_unknown_warning_option=no
9030fi
9031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9032fi
9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9036	CFLAGS="$xorg_testset_save_CFLAGS"
9037fi
9038
9039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9042	fi
9043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9047  $as_echo_n "(cached) " >&6
9048else
9049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050/* end confdefs.h.  */
9051int i;
9052_ACEOF
9053if ac_fn_c_try_compile "$LINENO"; then :
9054  xorg_cv_cc_flag_unused_command_line_argument=yes
9055else
9056  xorg_cv_cc_flag_unused_command_line_argument=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059fi
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9063	CFLAGS="$xorg_testset_save_CFLAGS"
9064fi
9065
9066found="no"
9067
9068	if test $found = "no" ; then
9069		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071		fi
9072
9073		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9075		fi
9076
9077		CFLAGS="$CFLAGS -Wsequence-point"
9078
9079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9080$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9081		cacheid=xorg_cv_cc_flag__Wsequence_point
9082		if eval \${$cacheid+:} false; then :
9083  $as_echo_n "(cached) " >&6
9084else
9085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088int
9089main ()
9090{
9091
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"; then :
9097  eval $cacheid=yes
9098else
9099  eval $cacheid=no
9100fi
9101rm -f core conftest.err conftest.$ac_objext \
9102    conftest$ac_exeext conftest.$ac_ext
9103fi
9104
9105
9106		CFLAGS="$xorg_testset_save_CFLAGS"
9107
9108		eval supported=\$$cacheid
9109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9110$as_echo "$supported" >&6; }
9111		if test "$supported" = "yes" ; then
9112			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9113			found="yes"
9114		fi
9115	fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131xorg_testset_save_CFLAGS="$CFLAGS"
9132
9133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141/* end confdefs.h.  */
9142int i;
9143_ACEOF
9144if ac_fn_c_try_compile "$LINENO"; then :
9145  xorg_cv_cc_flag_unknown_warning_option=yes
9146else
9147  xorg_cv_cc_flag_unknown_warning_option=no
9148fi
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9154	CFLAGS="$xorg_testset_save_CFLAGS"
9155fi
9156
9157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160	fi
9161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9165  $as_echo_n "(cached) " >&6
9166else
9167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169int i;
9170_ACEOF
9171if ac_fn_c_try_compile "$LINENO"; then :
9172  xorg_cv_cc_flag_unused_command_line_argument=yes
9173else
9174  xorg_cv_cc_flag_unused_command_line_argument=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9181	CFLAGS="$xorg_testset_save_CFLAGS"
9182fi
9183
9184found="no"
9185
9186	if test $found = "no" ; then
9187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189		fi
9190
9191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9193		fi
9194
9195		CFLAGS="$CFLAGS -Wreturn-type"
9196
9197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9198$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9199		cacheid=xorg_cv_cc_flag__Wreturn_type
9200		if eval \${$cacheid+:} false; then :
9201  $as_echo_n "(cached) " >&6
9202else
9203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206int
9207main ()
9208{
9209
9210  ;
9211  return 0;
9212}
9213_ACEOF
9214if ac_fn_c_try_link "$LINENO"; then :
9215  eval $cacheid=yes
9216else
9217  eval $cacheid=no
9218fi
9219rm -f core conftest.err conftest.$ac_objext \
9220    conftest$ac_exeext conftest.$ac_ext
9221fi
9222
9223
9224		CFLAGS="$xorg_testset_save_CFLAGS"
9225
9226		eval supported=\$$cacheid
9227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9228$as_echo "$supported" >&6; }
9229		if test "$supported" = "yes" ; then
9230			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9231			found="yes"
9232		fi
9233	fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249xorg_testset_save_CFLAGS="$CFLAGS"
9250
9251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9256  $as_echo_n "(cached) " >&6
9257else
9258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259/* end confdefs.h.  */
9260int i;
9261_ACEOF
9262if ac_fn_c_try_compile "$LINENO"; then :
9263  xorg_cv_cc_flag_unknown_warning_option=yes
9264else
9265  xorg_cv_cc_flag_unknown_warning_option=no
9266fi
9267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9272	CFLAGS="$xorg_testset_save_CFLAGS"
9273fi
9274
9275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9278	fi
9279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9283  $as_echo_n "(cached) " >&6
9284else
9285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286/* end confdefs.h.  */
9287int i;
9288_ACEOF
9289if ac_fn_c_try_compile "$LINENO"; then :
9290  xorg_cv_cc_flag_unused_command_line_argument=yes
9291else
9292  xorg_cv_cc_flag_unused_command_line_argument=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295fi
9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9299	CFLAGS="$xorg_testset_save_CFLAGS"
9300fi
9301
9302found="no"
9303
9304	if test $found = "no" ; then
9305		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307		fi
9308
9309		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9311		fi
9312
9313		CFLAGS="$CFLAGS -Wtrigraphs"
9314
9315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9316$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9317		cacheid=xorg_cv_cc_flag__Wtrigraphs
9318		if eval \${$cacheid+:} false; then :
9319  $as_echo_n "(cached) " >&6
9320else
9321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h.  */
9323int i;
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332if ac_fn_c_try_link "$LINENO"; then :
9333  eval $cacheid=yes
9334else
9335  eval $cacheid=no
9336fi
9337rm -f core conftest.err conftest.$ac_objext \
9338    conftest$ac_exeext conftest.$ac_ext
9339fi
9340
9341
9342		CFLAGS="$xorg_testset_save_CFLAGS"
9343
9344		eval supported=\$$cacheid
9345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9346$as_echo "$supported" >&6; }
9347		if test "$supported" = "yes" ; then
9348			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9349			found="yes"
9350		fi
9351	fi
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367xorg_testset_save_CFLAGS="$CFLAGS"
9368
9369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9374  $as_echo_n "(cached) " >&6
9375else
9376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377/* end confdefs.h.  */
9378int i;
9379_ACEOF
9380if ac_fn_c_try_compile "$LINENO"; then :
9381  xorg_cv_cc_flag_unknown_warning_option=yes
9382else
9383  xorg_cv_cc_flag_unknown_warning_option=no
9384fi
9385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386fi
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9390	CFLAGS="$xorg_testset_save_CFLAGS"
9391fi
9392
9393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9396	fi
9397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9401  $as_echo_n "(cached) " >&6
9402else
9403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h.  */
9405int i;
9406_ACEOF
9407if ac_fn_c_try_compile "$LINENO"; then :
9408  xorg_cv_cc_flag_unused_command_line_argument=yes
9409else
9410  xorg_cv_cc_flag_unused_command_line_argument=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9417	CFLAGS="$xorg_testset_save_CFLAGS"
9418fi
9419
9420found="no"
9421
9422	if test $found = "no" ; then
9423		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425		fi
9426
9427		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429		fi
9430
9431		CFLAGS="$CFLAGS -Warray-bounds"
9432
9433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9434$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9435		cacheid=xorg_cv_cc_flag__Warray_bounds
9436		if eval \${$cacheid+:} false; then :
9437  $as_echo_n "(cached) " >&6
9438else
9439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h.  */
9441int i;
9442int
9443main ()
9444{
9445
9446  ;
9447  return 0;
9448}
9449_ACEOF
9450if ac_fn_c_try_link "$LINENO"; then :
9451  eval $cacheid=yes
9452else
9453  eval $cacheid=no
9454fi
9455rm -f core conftest.err conftest.$ac_objext \
9456    conftest$ac_exeext conftest.$ac_ext
9457fi
9458
9459
9460		CFLAGS="$xorg_testset_save_CFLAGS"
9461
9462		eval supported=\$$cacheid
9463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9464$as_echo "$supported" >&6; }
9465		if test "$supported" = "yes" ; then
9466			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9467			found="yes"
9468		fi
9469	fi
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485xorg_testset_save_CFLAGS="$CFLAGS"
9486
9487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496int i;
9497_ACEOF
9498if ac_fn_c_try_compile "$LINENO"; then :
9499  xorg_cv_cc_flag_unknown_warning_option=yes
9500else
9501  xorg_cv_cc_flag_unknown_warning_option=no
9502fi
9503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504fi
9505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9514	fi
9515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h.  */
9523int i;
9524_ACEOF
9525if ac_fn_c_try_compile "$LINENO"; then :
9526  xorg_cv_cc_flag_unused_command_line_argument=yes
9527else
9528  xorg_cv_cc_flag_unused_command_line_argument=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531fi
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9535	CFLAGS="$xorg_testset_save_CFLAGS"
9536fi
9537
9538found="no"
9539
9540	if test $found = "no" ; then
9541		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543		fi
9544
9545		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9547		fi
9548
9549		CFLAGS="$CFLAGS -Wwrite-strings"
9550
9551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9552$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9553		cacheid=xorg_cv_cc_flag__Wwrite_strings
9554		if eval \${$cacheid+:} false; then :
9555  $as_echo_n "(cached) " >&6
9556else
9557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h.  */
9559int i;
9560int
9561main ()
9562{
9563
9564  ;
9565  return 0;
9566}
9567_ACEOF
9568if ac_fn_c_try_link "$LINENO"; then :
9569  eval $cacheid=yes
9570else
9571  eval $cacheid=no
9572fi
9573rm -f core conftest.err conftest.$ac_objext \
9574    conftest$ac_exeext conftest.$ac_ext
9575fi
9576
9577
9578		CFLAGS="$xorg_testset_save_CFLAGS"
9579
9580		eval supported=\$$cacheid
9581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9582$as_echo "$supported" >&6; }
9583		if test "$supported" = "yes" ; then
9584			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9585			found="yes"
9586		fi
9587	fi
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603xorg_testset_save_CFLAGS="$CFLAGS"
9604
9605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9610  $as_echo_n "(cached) " >&6
9611else
9612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h.  */
9614int i;
9615_ACEOF
9616if ac_fn_c_try_compile "$LINENO"; then :
9617  xorg_cv_cc_flag_unknown_warning_option=yes
9618else
9619  xorg_cv_cc_flag_unknown_warning_option=no
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9626	CFLAGS="$xorg_testset_save_CFLAGS"
9627fi
9628
9629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9632	fi
9633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9637  $as_echo_n "(cached) " >&6
9638else
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641int i;
9642_ACEOF
9643if ac_fn_c_try_compile "$LINENO"; then :
9644  xorg_cv_cc_flag_unused_command_line_argument=yes
9645else
9646  xorg_cv_cc_flag_unused_command_line_argument=no
9647fi
9648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649fi
9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9653	CFLAGS="$xorg_testset_save_CFLAGS"
9654fi
9655
9656found="no"
9657
9658	if test $found = "no" ; then
9659		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661		fi
9662
9663		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9665		fi
9666
9667		CFLAGS="$CFLAGS -Waddress"
9668
9669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9670$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9671		cacheid=xorg_cv_cc_flag__Waddress
9672		if eval \${$cacheid+:} false; then :
9673  $as_echo_n "(cached) " >&6
9674else
9675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676/* end confdefs.h.  */
9677int i;
9678int
9679main ()
9680{
9681
9682  ;
9683  return 0;
9684}
9685_ACEOF
9686if ac_fn_c_try_link "$LINENO"; then :
9687  eval $cacheid=yes
9688else
9689  eval $cacheid=no
9690fi
9691rm -f core conftest.err conftest.$ac_objext \
9692    conftest$ac_exeext conftest.$ac_ext
9693fi
9694
9695
9696		CFLAGS="$xorg_testset_save_CFLAGS"
9697
9698		eval supported=\$$cacheid
9699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9700$as_echo "$supported" >&6; }
9701		if test "$supported" = "yes" ; then
9702			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9703			found="yes"
9704		fi
9705	fi
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721xorg_testset_save_CFLAGS="$CFLAGS"
9722
9723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9728  $as_echo_n "(cached) " >&6
9729else
9730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732int i;
9733_ACEOF
9734if ac_fn_c_try_compile "$LINENO"; then :
9735  xorg_cv_cc_flag_unknown_warning_option=yes
9736else
9737  xorg_cv_cc_flag_unknown_warning_option=no
9738fi
9739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740fi
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9744	CFLAGS="$xorg_testset_save_CFLAGS"
9745fi
9746
9747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750	fi
9751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9755  $as_echo_n "(cached) " >&6
9756else
9757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h.  */
9759int i;
9760_ACEOF
9761if ac_fn_c_try_compile "$LINENO"; then :
9762  xorg_cv_cc_flag_unused_command_line_argument=yes
9763else
9764  xorg_cv_cc_flag_unused_command_line_argument=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9771	CFLAGS="$xorg_testset_save_CFLAGS"
9772fi
9773
9774found="no"
9775
9776	if test $found = "no" ; then
9777		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779		fi
9780
9781		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9783		fi
9784
9785		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9786
9787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9788$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9789		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9790		if eval \${$cacheid+:} false; then :
9791  $as_echo_n "(cached) " >&6
9792else
9793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794/* end confdefs.h.  */
9795int i;
9796int
9797main ()
9798{
9799
9800  ;
9801  return 0;
9802}
9803_ACEOF
9804if ac_fn_c_try_link "$LINENO"; then :
9805  eval $cacheid=yes
9806else
9807  eval $cacheid=no
9808fi
9809rm -f core conftest.err conftest.$ac_objext \
9810    conftest$ac_exeext conftest.$ac_ext
9811fi
9812
9813
9814		CFLAGS="$xorg_testset_save_CFLAGS"
9815
9816		eval supported=\$$cacheid
9817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9818$as_echo "$supported" >&6; }
9819		if test "$supported" = "yes" ; then
9820			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9821			found="yes"
9822		fi
9823	fi
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839xorg_testset_save_CFLAGS="$CFLAGS"
9840
9841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9846  $as_echo_n "(cached) " >&6
9847else
9848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850int i;
9851_ACEOF
9852if ac_fn_c_try_compile "$LINENO"; then :
9853  xorg_cv_cc_flag_unknown_warning_option=yes
9854else
9855  xorg_cv_cc_flag_unknown_warning_option=no
9856fi
9857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9858fi
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9862	CFLAGS="$xorg_testset_save_CFLAGS"
9863fi
9864
9865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9868	fi
9869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9873  $as_echo_n "(cached) " >&6
9874else
9875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h.  */
9877int i;
9878_ACEOF
9879if ac_fn_c_try_compile "$LINENO"; then :
9880  xorg_cv_cc_flag_unused_command_line_argument=yes
9881else
9882  xorg_cv_cc_flag_unused_command_line_argument=no
9883fi
9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885fi
9886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9889	CFLAGS="$xorg_testset_save_CFLAGS"
9890fi
9891
9892found="no"
9893
9894	if test $found = "no" ; then
9895		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897		fi
9898
9899		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9901		fi
9902
9903		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9904
9905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9906$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9907		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9908		if eval \${$cacheid+:} false; then :
9909  $as_echo_n "(cached) " >&6
9910else
9911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h.  */
9913int i;
9914int
9915main ()
9916{
9917
9918  ;
9919  return 0;
9920}
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"; then :
9923  eval $cacheid=yes
9924else
9925  eval $cacheid=no
9926fi
9927rm -f core conftest.err conftest.$ac_objext \
9928    conftest$ac_exeext conftest.$ac_ext
9929fi
9930
9931
9932		CFLAGS="$xorg_testset_save_CFLAGS"
9933
9934		eval supported=\$$cacheid
9935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9936$as_echo "$supported" >&6; }
9937		if test "$supported" = "yes" ; then
9938			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9939			found="yes"
9940		fi
9941	fi
9942
9943
9944fi
9945
9946
9947
9948
9949
9950
9951
9952		CWARNFLAGS="$BASE_CFLAGS"
9953		if  test "x$GCC" = xyes ; then
9954		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9955		fi
9956
9957
9958
9959
9960
9961
9962
9963
9964# Check whether --enable-strict-compilation was given.
9965if test "${enable_strict_compilation+set}" = set; then :
9966  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9967else
9968  STRICT_COMPILE=no
9969fi
9970
9971
9972
9973
9974
9975
9976STRICT_CFLAGS=""
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990xorg_testset_save_CFLAGS="$CFLAGS"
9991
9992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h.  */
10001int i;
10002_ACEOF
10003if ac_fn_c_try_compile "$LINENO"; then :
10004  xorg_cv_cc_flag_unknown_warning_option=yes
10005else
10006  xorg_cv_cc_flag_unknown_warning_option=no
10007fi
10008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10012	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10013	CFLAGS="$xorg_testset_save_CFLAGS"
10014fi
10015
10016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10017	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10018		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10019	fi
10020	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10024  $as_echo_n "(cached) " >&6
10025else
10026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027/* end confdefs.h.  */
10028int i;
10029_ACEOF
10030if ac_fn_c_try_compile "$LINENO"; then :
10031  xorg_cv_cc_flag_unused_command_line_argument=yes
10032else
10033  xorg_cv_cc_flag_unused_command_line_argument=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036fi
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10040	CFLAGS="$xorg_testset_save_CFLAGS"
10041fi
10042
10043found="no"
10044
10045	if test $found = "no" ; then
10046		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048		fi
10049
10050		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052		fi
10053
10054		CFLAGS="$CFLAGS -pedantic"
10055
10056		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10057$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10058		cacheid=xorg_cv_cc_flag__pedantic
10059		if eval \${$cacheid+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065int
10066main ()
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074  eval $cacheid=yes
10075else
10076  eval $cacheid=no
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079    conftest$ac_exeext conftest.$ac_ext
10080fi
10081
10082
10083		CFLAGS="$xorg_testset_save_CFLAGS"
10084
10085		eval supported=\$$cacheid
10086		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10087$as_echo "$supported" >&6; }
10088		if test "$supported" = "yes" ; then
10089			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10090			found="yes"
10091		fi
10092	fi
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108xorg_testset_save_CFLAGS="$CFLAGS"
10109
10110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10111	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10115  $as_echo_n "(cached) " >&6
10116else
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120_ACEOF
10121if ac_fn_c_try_compile "$LINENO"; then :
10122  xorg_cv_cc_flag_unknown_warning_option=yes
10123else
10124  xorg_cv_cc_flag_unknown_warning_option=no
10125fi
10126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127fi
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10130	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10131	CFLAGS="$xorg_testset_save_CFLAGS"
10132fi
10133
10134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10135	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	fi
10138	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10142  $as_echo_n "(cached) " >&6
10143else
10144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146int i;
10147_ACEOF
10148if ac_fn_c_try_compile "$LINENO"; then :
10149  xorg_cv_cc_flag_unused_command_line_argument=yes
10150else
10151  xorg_cv_cc_flag_unused_command_line_argument=no
10152fi
10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154fi
10155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10158	CFLAGS="$xorg_testset_save_CFLAGS"
10159fi
10160
10161found="no"
10162
10163	if test $found = "no" ; then
10164		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10166		fi
10167
10168		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10170		fi
10171
10172		CFLAGS="$CFLAGS -Werror"
10173
10174		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10175$as_echo_n "checking if $CC supports -Werror... " >&6; }
10176		cacheid=xorg_cv_cc_flag__Werror
10177		if eval \${$cacheid+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183int
10184main ()
10185{
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_link "$LINENO"; then :
10192  eval $cacheid=yes
10193else
10194  eval $cacheid=no
10195fi
10196rm -f core conftest.err conftest.$ac_objext \
10197    conftest$ac_exeext conftest.$ac_ext
10198fi
10199
10200
10201		CFLAGS="$xorg_testset_save_CFLAGS"
10202
10203		eval supported=\$$cacheid
10204		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10205$as_echo "$supported" >&6; }
10206		if test "$supported" = "yes" ; then
10207			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10208			found="yes"
10209		fi
10210	fi
10211
10212	if test $found = "no" ; then
10213		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10215		fi
10216
10217		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10219		fi
10220
10221		CFLAGS="$CFLAGS -errwarn"
10222
10223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10224$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10225		cacheid=xorg_cv_cc_flag__errwarn
10226		if eval \${$cacheid+:} false; then :
10227  $as_echo_n "(cached) " >&6
10228else
10229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230/* end confdefs.h.  */
10231int i;
10232int
10233main ()
10234{
10235
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240if ac_fn_c_try_link "$LINENO"; then :
10241  eval $cacheid=yes
10242else
10243  eval $cacheid=no
10244fi
10245rm -f core conftest.err conftest.$ac_objext \
10246    conftest$ac_exeext conftest.$ac_ext
10247fi
10248
10249
10250		CFLAGS="$xorg_testset_save_CFLAGS"
10251
10252		eval supported=\$$cacheid
10253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10254$as_echo "$supported" >&6; }
10255		if test "$supported" = "yes" ; then
10256			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10257			found="yes"
10258		fi
10259	fi
10260
10261
10262
10263# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10264# activate it with -Werror, so we add it here explicitly.
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278xorg_testset_save_CFLAGS="$CFLAGS"
10279
10280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10285  $as_echo_n "(cached) " >&6
10286else
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290_ACEOF
10291if ac_fn_c_try_compile "$LINENO"; then :
10292  xorg_cv_cc_flag_unknown_warning_option=yes
10293else
10294  xorg_cv_cc_flag_unknown_warning_option=no
10295fi
10296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297fi
10298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10301	CFLAGS="$xorg_testset_save_CFLAGS"
10302fi
10303
10304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10307	fi
10308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315/* end confdefs.h.  */
10316int i;
10317_ACEOF
10318if ac_fn_c_try_compile "$LINENO"; then :
10319  xorg_cv_cc_flag_unused_command_line_argument=yes
10320else
10321  xorg_cv_cc_flag_unused_command_line_argument=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324fi
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10328	CFLAGS="$xorg_testset_save_CFLAGS"
10329fi
10330
10331found="no"
10332
10333	if test $found = "no" ; then
10334		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336		fi
10337
10338		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10340		fi
10341
10342		CFLAGS="$CFLAGS -Werror=attributes"
10343
10344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10345$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10346		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10347		if eval \${$cacheid+:} false; then :
10348  $as_echo_n "(cached) " >&6
10349else
10350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353int
10354main ()
10355{
10356
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361if ac_fn_c_try_link "$LINENO"; then :
10362  eval $cacheid=yes
10363else
10364  eval $cacheid=no
10365fi
10366rm -f core conftest.err conftest.$ac_objext \
10367    conftest$ac_exeext conftest.$ac_ext
10368fi
10369
10370
10371		CFLAGS="$xorg_testset_save_CFLAGS"
10372
10373		eval supported=\$$cacheid
10374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375$as_echo "$supported" >&6; }
10376		if test "$supported" = "yes" ; then
10377			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10378			found="yes"
10379		fi
10380	fi
10381
10382
10383
10384if test "x$STRICT_COMPILE" = "xyes"; then
10385    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10386    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10387fi
10388
10389
10390
10391
10392
10393
10394cat >>confdefs.h <<_ACEOF
10395#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10396_ACEOF
10397
10398	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10399	if test "x$PVM" = "x"; then
10400		PVM="0"
10401	fi
10402
10403cat >>confdefs.h <<_ACEOF
10404#define PACKAGE_VERSION_MINOR $PVM
10405_ACEOF
10406
10407	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10408	if test "x$PVP" = "x"; then
10409		PVP="0"
10410	fi
10411
10412cat >>confdefs.h <<_ACEOF
10413#define PACKAGE_VERSION_PATCHLEVEL $PVP
10414_ACEOF
10415
10416
10417
10418CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10419mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10420|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10421echo 'git directory not found: installing possibly empty changelog.' >&2)"
10422
10423
10424
10425
10426macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10427INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10428mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10429|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10430echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10431
10432
10433
10434
10435
10436
10437if test x$APP_MAN_SUFFIX = x    ; then
10438    APP_MAN_SUFFIX=1
10439fi
10440if test x$APP_MAN_DIR = x    ; then
10441    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10442fi
10443
10444if test x$LIB_MAN_SUFFIX = x    ; then
10445    LIB_MAN_SUFFIX=3
10446fi
10447if test x$LIB_MAN_DIR = x    ; then
10448    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10449fi
10450
10451if test x$FILE_MAN_SUFFIX = x    ; then
10452    case $host_os in
10453	solaris*)	FILE_MAN_SUFFIX=4  ;;
10454	*)		FILE_MAN_SUFFIX=5  ;;
10455    esac
10456fi
10457if test x$FILE_MAN_DIR = x    ; then
10458    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10459fi
10460
10461if test x$MISC_MAN_SUFFIX = x    ; then
10462    case $host_os in
10463	solaris*)	MISC_MAN_SUFFIX=5  ;;
10464	*)		MISC_MAN_SUFFIX=7  ;;
10465    esac
10466fi
10467if test x$MISC_MAN_DIR = x    ; then
10468    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10469fi
10470
10471if test x$DRIVER_MAN_SUFFIX = x    ; then
10472    case $host_os in
10473	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10474	*)		DRIVER_MAN_SUFFIX=4  ;;
10475    esac
10476fi
10477if test x$DRIVER_MAN_DIR = x    ; then
10478    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10479fi
10480
10481if test x$ADMIN_MAN_SUFFIX = x    ; then
10482    case $host_os in
10483	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10484	*)		ADMIN_MAN_SUFFIX=8  ;;
10485    esac
10486fi
10487if test x$ADMIN_MAN_DIR = x    ; then
10488    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10489fi
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505XORG_MAN_PAGE="X Version 11"
10506
10507MAN_SUBSTS="\
10508	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10509	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10510	-e 's|__xservername__|Xorg|g' \
10511	-e 's|__xconfigfile__|xorg.conf|g' \
10512	-e 's|__projectroot__|\$(prefix)|g' \
10513	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10514	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10515	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10516	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10517	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10518	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10519	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10520
10521
10522
10523# Check whether --enable-silent-rules was given.
10524if test "${enable_silent_rules+set}" = set; then :
10525  enableval=$enable_silent_rules;
10526fi
10527
10528case $enable_silent_rules in # (((
10529  yes) AM_DEFAULT_VERBOSITY=0;;
10530   no) AM_DEFAULT_VERBOSITY=1;;
10531    *) AM_DEFAULT_VERBOSITY=0;;
10532esac
10533am_make=${MAKE-make}
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10535$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10536if ${am_cv_make_support_nested_variables+:} false; then :
10537  $as_echo_n "(cached) " >&6
10538else
10539  if $as_echo 'TRUE=$(BAR$(V))
10540BAR0=false
10541BAR1=true
10542V=1
10543am__doit:
10544	@$(TRUE)
10545.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10546  am_cv_make_support_nested_variables=yes
10547else
10548  am_cv_make_support_nested_variables=no
10549fi
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10552$as_echo "$am_cv_make_support_nested_variables" >&6; }
10553if test $am_cv_make_support_nested_variables = yes; then
10554    AM_V='$(V)'
10555  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10556else
10557  AM_V=$AM_DEFAULT_VERBOSITY
10558  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10559fi
10560AM_BACKSLASH='\'
10561
10562
10563
10564# Checks for pkg-config packages
10565
10566pkg_failed=no
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICEAUTH" >&5
10568$as_echo_n "checking for ICEAUTH... " >&6; }
10569
10570if test -n "$ICEAUTH_CFLAGS"; then
10571    pkg_cv_ICEAUTH_CFLAGS="$ICEAUTH_CFLAGS"
10572 elif test -n "$PKG_CONFIG"; then
10573    if test -n "$PKG_CONFIG" && \
10574    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
10575  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
10576  ac_status=$?
10577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10578  test $ac_status = 0; }; then
10579  pkg_cv_ICEAUTH_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 ice" 2>/dev/null`
10580else
10581  pkg_failed=yes
10582fi
10583 else
10584    pkg_failed=untried
10585fi
10586if test -n "$ICEAUTH_LIBS"; then
10587    pkg_cv_ICEAUTH_LIBS="$ICEAUTH_LIBS"
10588 elif test -n "$PKG_CONFIG"; then
10589    if test -n "$PKG_CONFIG" && \
10590    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 ice\""; } >&5
10591  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 ice") 2>&5
10592  ac_status=$?
10593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10594  test $ac_status = 0; }; then
10595  pkg_cv_ICEAUTH_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 ice" 2>/dev/null`
10596else
10597  pkg_failed=yes
10598fi
10599 else
10600    pkg_failed=untried
10601fi
10602
10603
10604
10605if test $pkg_failed = yes; then
10606
10607if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10608        _pkg_short_errors_supported=yes
10609else
10610        _pkg_short_errors_supported=no
10611fi
10612        if test $_pkg_short_errors_supported = yes; then
10613	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.22 ice" 2>&1`
10614        else
10615	        ICEAUTH_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.22 ice" 2>&1`
10616        fi
10617	# Put the nasty error message in config.log where it belongs
10618	echo "$ICEAUTH_PKG_ERRORS" >&5
10619
10620	as_fn_error $? "Package requirements (xproto >= 7.0.22 ice) were not met:
10621
10622$ICEAUTH_PKG_ERRORS
10623
10624Consider adjusting the PKG_CONFIG_PATH environment variable if you
10625installed software in a non-standard prefix.
10626
10627Alternatively, you may set the environment variables ICEAUTH_CFLAGS
10628and ICEAUTH_LIBS to avoid the need to call pkg-config.
10629See the pkg-config man page for more details.
10630" "$LINENO" 5
10631elif test $pkg_failed = untried; then
10632	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10634as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10635is in your PATH or set the PKG_CONFIG environment variable to the full
10636path to pkg-config.
10637
10638Alternatively, you may set the environment variables ICEAUTH_CFLAGS
10639and ICEAUTH_LIBS to avoid the need to call pkg-config.
10640See the pkg-config man page for more details.
10641
10642To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10643See \`config.log' for more details" "$LINENO" 5; }
10644else
10645	ICEAUTH_CFLAGS=$pkg_cv_ICEAUTH_CFLAGS
10646	ICEAUTH_LIBS=$pkg_cv_ICEAUTH_LIBS
10647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648$as_echo "yes" >&6; }
10649	:
10650fi
10651
10652
10653
10654
10655
10656
10657# Check whether --with-lint was given.
10658if test "${with_lint+set}" = set; then :
10659  withval=$with_lint; use_lint=$withval
10660else
10661  use_lint=no
10662fi
10663
10664
10665# Obtain platform specific info like program name and options
10666# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10667case $host_os in
10668  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10669	lint_name=splint
10670	lint_options="-badflag"
10671	;;
10672  *freebsd* | *netbsd*)
10673	lint_name=lint
10674	lint_options="-u -b"
10675	;;
10676  *solaris*)
10677	lint_name=lint
10678	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10679	;;
10680esac
10681
10682# Test for the presence of the program (either guessed by the code or spelled out by the user)
10683if test "x$use_lint" = x"yes" ; then
10684   # Extract the first word of "$lint_name", so it can be a program name with args.
10685set dummy $lint_name; ac_word=$2
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10687$as_echo_n "checking for $ac_word... " >&6; }
10688if ${ac_cv_path_LINT+:} false; then :
10689  $as_echo_n "(cached) " >&6
10690else
10691  case $LINT in
10692  [\\/]* | ?:[\\/]*)
10693  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10694  ;;
10695  *)
10696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699  IFS=$as_save_IFS
10700  test -z "$as_dir" && as_dir=.
10701    for ac_exec_ext in '' $ac_executable_extensions; do
10702  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10703    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10705    break 2
10706  fi
10707done
10708  done
10709IFS=$as_save_IFS
10710
10711  ;;
10712esac
10713fi
10714LINT=$ac_cv_path_LINT
10715if test -n "$LINT"; then
10716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10717$as_echo "$LINT" >&6; }
10718else
10719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10720$as_echo "no" >&6; }
10721fi
10722
10723
10724   if test "x$LINT" = "x"; then
10725        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10726   fi
10727elif test "x$use_lint" = x"no" ; then
10728   if test "x$LINT" != "x"; then
10729      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10730$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10731   fi
10732else
10733   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10734fi
10735
10736# User supplied flags override default flags
10737if test "x$LINT_FLAGS" != "x"; then
10738   lint_options=$LINT_FLAGS
10739fi
10740
10741LINT_FLAGS=$lint_options
10742
10743 if test "x$LINT" != x; then
10744  LINT_TRUE=
10745  LINT_FALSE='#'
10746else
10747  LINT_TRUE='#'
10748  LINT_FALSE=
10749fi
10750
10751
10752
10753
10754ac_config_files="$ac_config_files Makefile man/Makefile"
10755
10756cat >confcache <<\_ACEOF
10757# This file is a shell script that caches the results of configure
10758# tests run on this system so they can be shared between configure
10759# scripts and configure runs, see configure's option --config-cache.
10760# It is not useful on other systems.  If it contains results you don't
10761# want to keep, you may remove or edit it.
10762#
10763# config.status only pays attention to the cache file if you give it
10764# the --recheck option to rerun configure.
10765#
10766# `ac_cv_env_foo' variables (set or unset) will be overridden when
10767# loading this file, other *unset* `ac_cv_foo' will be assigned the
10768# following values.
10769
10770_ACEOF
10771
10772# The following way of writing the cache mishandles newlines in values,
10773# but we know of no workaround that is simple, portable, and efficient.
10774# So, we kill variables containing newlines.
10775# Ultrix sh set writes to stderr and can't be redirected directly,
10776# and sets the high bit in the cache file unless we assign to the vars.
10777(
10778  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10779    eval ac_val=\$$ac_var
10780    case $ac_val in #(
10781    *${as_nl}*)
10782      case $ac_var in #(
10783      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10785      esac
10786      case $ac_var in #(
10787      _ | IFS | as_nl) ;; #(
10788      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10789      *) { eval $ac_var=; unset $ac_var;} ;;
10790      esac ;;
10791    esac
10792  done
10793
10794  (set) 2>&1 |
10795    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10796    *${as_nl}ac_space=\ *)
10797      # `set' does not quote correctly, so add quotes: double-quote
10798      # substitution turns \\\\ into \\, and sed turns \\ into \.
10799      sed -n \
10800	"s/'/'\\\\''/g;
10801	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10802      ;; #(
10803    *)
10804      # `set' quotes correctly as required by POSIX, so do not add quotes.
10805      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10806      ;;
10807    esac |
10808    sort
10809) |
10810  sed '
10811     /^ac_cv_env_/b end
10812     t clear
10813     :clear
10814     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10815     t end
10816     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10817     :end' >>confcache
10818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10819  if test -w "$cache_file"; then
10820    if test "x$cache_file" != "x/dev/null"; then
10821      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10822$as_echo "$as_me: updating cache $cache_file" >&6;}
10823      if test ! -f "$cache_file" || test -h "$cache_file"; then
10824	cat confcache >"$cache_file"
10825      else
10826        case $cache_file in #(
10827        */* | ?:*)
10828	  mv -f confcache "$cache_file"$$ &&
10829	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10830        *)
10831	  mv -f confcache "$cache_file" ;;
10832	esac
10833      fi
10834    fi
10835  else
10836    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10838  fi
10839fi
10840rm -f confcache
10841
10842test "x$prefix" = xNONE && prefix=$ac_default_prefix
10843# Let make expand exec_prefix.
10844test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10845
10846DEFS=-DHAVE_CONFIG_H
10847
10848ac_libobjs=
10849ac_ltlibobjs=
10850U=
10851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10852  # 1. Remove the extension, and $U if already installed.
10853  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10854  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10855  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10856  #    will be set to the directory where LIBOBJS objects are built.
10857  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10858  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10859done
10860LIBOBJS=$ac_libobjs
10861
10862LTLIBOBJS=$ac_ltlibobjs
10863
10864
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10866$as_echo_n "checking that generated files are newer than configure... " >&6; }
10867   if test -n "$am_sleep_pid"; then
10868     # Hide warnings about reused PIDs.
10869     wait $am_sleep_pid 2>/dev/null
10870   fi
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10872$as_echo "done" >&6; }
10873 if test -n "$EXEEXT"; then
10874  am__EXEEXT_TRUE=
10875  am__EXEEXT_FALSE='#'
10876else
10877  am__EXEEXT_TRUE='#'
10878  am__EXEEXT_FALSE=
10879fi
10880
10881if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10882  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10883Usually this means the macro was only invoked conditionally." "$LINENO" 5
10884fi
10885if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10886  as_fn_error $? "conditional \"AMDEP\" was never defined.
10887Usually this means the macro was only invoked conditionally." "$LINENO" 5
10888fi
10889if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10890  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10891Usually this means the macro was only invoked conditionally." "$LINENO" 5
10892fi
10893if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10894  as_fn_error $? "conditional \"LINT\" was never defined.
10895Usually this means the macro was only invoked conditionally." "$LINENO" 5
10896fi
10897
10898: "${CONFIG_STATUS=./config.status}"
10899ac_write_fail=0
10900ac_clean_files_save=$ac_clean_files
10901ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10903$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10904as_write_fail=0
10905cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10906#! $SHELL
10907# Generated by $as_me.
10908# Run this file to recreate the current configuration.
10909# Compiler output produced by configure, useful for debugging
10910# configure, is in config.log if it exists.
10911
10912debug=false
10913ac_cs_recheck=false
10914ac_cs_silent=false
10915
10916SHELL=\${CONFIG_SHELL-$SHELL}
10917export SHELL
10918_ASEOF
10919cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10920## -------------------- ##
10921## M4sh Initialization. ##
10922## -------------------- ##
10923
10924# Be more Bourne compatible
10925DUALCASE=1; export DUALCASE # for MKS sh
10926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10927  emulate sh
10928  NULLCMD=:
10929  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10930  # is contrary to our usage.  Disable this feature.
10931  alias -g '${1+"$@"}'='"$@"'
10932  setopt NO_GLOB_SUBST
10933else
10934  case `(set -o) 2>/dev/null` in #(
10935  *posix*) :
10936    set -o posix ;; #(
10937  *) :
10938     ;;
10939esac
10940fi
10941
10942
10943as_nl='
10944'
10945export as_nl
10946# Printing a long string crashes Solaris 7 /usr/bin/printf.
10947as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10950# Prefer a ksh shell builtin over an external printf program on Solaris,
10951# but without wasting forks for bash or zsh.
10952if test -z "$BASH_VERSION$ZSH_VERSION" \
10953    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10954  as_echo='print -r --'
10955  as_echo_n='print -rn --'
10956elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10957  as_echo='printf %s\n'
10958  as_echo_n='printf %s'
10959else
10960  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10961    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10962    as_echo_n='/usr/ucb/echo -n'
10963  else
10964    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10965    as_echo_n_body='eval
10966      arg=$1;
10967      case $arg in #(
10968      *"$as_nl"*)
10969	expr "X$arg" : "X\\(.*\\)$as_nl";
10970	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10971      esac;
10972      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10973    '
10974    export as_echo_n_body
10975    as_echo_n='sh -c $as_echo_n_body as_echo'
10976  fi
10977  export as_echo_body
10978  as_echo='sh -c $as_echo_body as_echo'
10979fi
10980
10981# The user is always right.
10982if test "${PATH_SEPARATOR+set}" != set; then
10983  PATH_SEPARATOR=:
10984  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10985    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10986      PATH_SEPARATOR=';'
10987  }
10988fi
10989
10990
10991# IFS
10992# We need space, tab and new line, in precisely that order.  Quoting is
10993# there to prevent editors from complaining about space-tab.
10994# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10995# splitting by setting IFS to empty value.)
10996IFS=" ""	$as_nl"
10997
10998# Find who we are.  Look in the path if we contain no directory separator.
10999as_myself=
11000case $0 in #((
11001  *[\\/]* ) as_myself=$0 ;;
11002  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005  IFS=$as_save_IFS
11006  test -z "$as_dir" && as_dir=.
11007    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11008  done
11009IFS=$as_save_IFS
11010
11011     ;;
11012esac
11013# We did not find ourselves, most probably we were run as `sh COMMAND'
11014# in which case we are not to be found in the path.
11015if test "x$as_myself" = x; then
11016  as_myself=$0
11017fi
11018if test ! -f "$as_myself"; then
11019  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11020  exit 1
11021fi
11022
11023# Unset variables that we do not need and which cause bugs (e.g. in
11024# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11025# suppresses any "Segmentation fault" message there.  '((' could
11026# trigger a bug in pdksh 5.2.14.
11027for as_var in BASH_ENV ENV MAIL MAILPATH
11028do eval test x\${$as_var+set} = xset \
11029  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11030done
11031PS1='$ '
11032PS2='> '
11033PS4='+ '
11034
11035# NLS nuisances.
11036LC_ALL=C
11037export LC_ALL
11038LANGUAGE=C
11039export LANGUAGE
11040
11041# CDPATH.
11042(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11043
11044
11045# as_fn_error STATUS ERROR [LINENO LOG_FD]
11046# ----------------------------------------
11047# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11048# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11049# script with STATUS, using 1 if that was 0.
11050as_fn_error ()
11051{
11052  as_status=$1; test $as_status -eq 0 && as_status=1
11053  if test "$4"; then
11054    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11055    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11056  fi
11057  $as_echo "$as_me: error: $2" >&2
11058  as_fn_exit $as_status
11059} # as_fn_error
11060
11061
11062# as_fn_set_status STATUS
11063# -----------------------
11064# Set $? to STATUS, without forking.
11065as_fn_set_status ()
11066{
11067  return $1
11068} # as_fn_set_status
11069
11070# as_fn_exit STATUS
11071# -----------------
11072# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11073as_fn_exit ()
11074{
11075  set +e
11076  as_fn_set_status $1
11077  exit $1
11078} # as_fn_exit
11079
11080# as_fn_unset VAR
11081# ---------------
11082# Portably unset VAR.
11083as_fn_unset ()
11084{
11085  { eval $1=; unset $1;}
11086}
11087as_unset=as_fn_unset
11088# as_fn_append VAR VALUE
11089# ----------------------
11090# Append the text in VALUE to the end of the definition contained in VAR. Take
11091# advantage of any shell optimizations that allow amortized linear growth over
11092# repeated appends, instead of the typical quadratic growth present in naive
11093# implementations.
11094if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11095  eval 'as_fn_append ()
11096  {
11097    eval $1+=\$2
11098  }'
11099else
11100  as_fn_append ()
11101  {
11102    eval $1=\$$1\$2
11103  }
11104fi # as_fn_append
11105
11106# as_fn_arith ARG...
11107# ------------------
11108# Perform arithmetic evaluation on the ARGs, and store the result in the
11109# global $as_val. Take advantage of shells that can avoid forks. The arguments
11110# must be portable across $(()) and expr.
11111if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11112  eval 'as_fn_arith ()
11113  {
11114    as_val=$(( $* ))
11115  }'
11116else
11117  as_fn_arith ()
11118  {
11119    as_val=`expr "$@" || test $? -eq 1`
11120  }
11121fi # as_fn_arith
11122
11123
11124if expr a : '\(a\)' >/dev/null 2>&1 &&
11125   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11126  as_expr=expr
11127else
11128  as_expr=false
11129fi
11130
11131if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11132  as_basename=basename
11133else
11134  as_basename=false
11135fi
11136
11137if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11138  as_dirname=dirname
11139else
11140  as_dirname=false
11141fi
11142
11143as_me=`$as_basename -- "$0" ||
11144$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11145	 X"$0" : 'X\(//\)$' \| \
11146	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11147$as_echo X/"$0" |
11148    sed '/^.*\/\([^/][^/]*\)\/*$/{
11149	    s//\1/
11150	    q
11151	  }
11152	  /^X\/\(\/\/\)$/{
11153	    s//\1/
11154	    q
11155	  }
11156	  /^X\/\(\/\).*/{
11157	    s//\1/
11158	    q
11159	  }
11160	  s/.*/./; q'`
11161
11162# Avoid depending upon Character Ranges.
11163as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11164as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11165as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11166as_cr_digits='0123456789'
11167as_cr_alnum=$as_cr_Letters$as_cr_digits
11168
11169ECHO_C= ECHO_N= ECHO_T=
11170case `echo -n x` in #(((((
11171-n*)
11172  case `echo 'xy\c'` in
11173  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11174  xy)  ECHO_C='\c';;
11175  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11176       ECHO_T='	';;
11177  esac;;
11178*)
11179  ECHO_N='-n';;
11180esac
11181
11182rm -f conf$$ conf$$.exe conf$$.file
11183if test -d conf$$.dir; then
11184  rm -f conf$$.dir/conf$$.file
11185else
11186  rm -f conf$$.dir
11187  mkdir conf$$.dir 2>/dev/null
11188fi
11189if (echo >conf$$.file) 2>/dev/null; then
11190  if ln -s conf$$.file conf$$ 2>/dev/null; then
11191    as_ln_s='ln -s'
11192    # ... but there are two gotchas:
11193    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11194    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11195    # In both cases, we have to default to `cp -p'.
11196    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11197      as_ln_s='cp -p'
11198  elif ln conf$$.file conf$$ 2>/dev/null; then
11199    as_ln_s=ln
11200  else
11201    as_ln_s='cp -p'
11202  fi
11203else
11204  as_ln_s='cp -p'
11205fi
11206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11207rmdir conf$$.dir 2>/dev/null
11208
11209
11210# as_fn_mkdir_p
11211# -------------
11212# Create "$as_dir" as a directory, including parents if necessary.
11213as_fn_mkdir_p ()
11214{
11215
11216  case $as_dir in #(
11217  -*) as_dir=./$as_dir;;
11218  esac
11219  test -d "$as_dir" || eval $as_mkdir_p || {
11220    as_dirs=
11221    while :; do
11222      case $as_dir in #(
11223      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11224      *) as_qdir=$as_dir;;
11225      esac
11226      as_dirs="'$as_qdir' $as_dirs"
11227      as_dir=`$as_dirname -- "$as_dir" ||
11228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11229	 X"$as_dir" : 'X\(//\)[^/]' \| \
11230	 X"$as_dir" : 'X\(//\)$' \| \
11231	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11232$as_echo X"$as_dir" |
11233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11234	    s//\1/
11235	    q
11236	  }
11237	  /^X\(\/\/\)[^/].*/{
11238	    s//\1/
11239	    q
11240	  }
11241	  /^X\(\/\/\)$/{
11242	    s//\1/
11243	    q
11244	  }
11245	  /^X\(\/\).*/{
11246	    s//\1/
11247	    q
11248	  }
11249	  s/.*/./; q'`
11250      test -d "$as_dir" && break
11251    done
11252    test -z "$as_dirs" || eval "mkdir $as_dirs"
11253  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11254
11255
11256} # as_fn_mkdir_p
11257if mkdir -p . 2>/dev/null; then
11258  as_mkdir_p='mkdir -p "$as_dir"'
11259else
11260  test -d ./-p && rmdir ./-p
11261  as_mkdir_p=false
11262fi
11263
11264if test -x / >/dev/null 2>&1; then
11265  as_test_x='test -x'
11266else
11267  if ls -dL / >/dev/null 2>&1; then
11268    as_ls_L_option=L
11269  else
11270    as_ls_L_option=
11271  fi
11272  as_test_x='
11273    eval sh -c '\''
11274      if test -d "$1"; then
11275	test -d "$1/.";
11276      else
11277	case $1 in #(
11278	-*)set "./$1";;
11279	esac;
11280	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11281	???[sx]*):;;*)false;;esac;fi
11282    '\'' sh
11283  '
11284fi
11285as_executable_p=$as_test_x
11286
11287# Sed expression to map a string onto a valid CPP name.
11288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11289
11290# Sed expression to map a string onto a valid variable name.
11291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11292
11293
11294exec 6>&1
11295## ----------------------------------- ##
11296## Main body of $CONFIG_STATUS script. ##
11297## ----------------------------------- ##
11298_ASEOF
11299test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11300
11301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11302# Save the log message, to keep $0 and so on meaningful, and to
11303# report actual input values of CONFIG_FILES etc. instead of their
11304# values after options handling.
11305ac_log="
11306This file was extended by iceauth $as_me 1.0.6, which was
11307generated by GNU Autoconf 2.68.  Invocation command line was
11308
11309  CONFIG_FILES    = $CONFIG_FILES
11310  CONFIG_HEADERS  = $CONFIG_HEADERS
11311  CONFIG_LINKS    = $CONFIG_LINKS
11312  CONFIG_COMMANDS = $CONFIG_COMMANDS
11313  $ $0 $@
11314
11315on `(hostname || uname -n) 2>/dev/null | sed 1q`
11316"
11317
11318_ACEOF
11319
11320case $ac_config_files in *"
11321"*) set x $ac_config_files; shift; ac_config_files=$*;;
11322esac
11323
11324case $ac_config_headers in *"
11325"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11326esac
11327
11328
11329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11330# Files that config.status was made for.
11331config_files="$ac_config_files"
11332config_headers="$ac_config_headers"
11333config_commands="$ac_config_commands"
11334
11335_ACEOF
11336
11337cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11338ac_cs_usage="\
11339\`$as_me' instantiates files and other configuration actions
11340from templates according to the current configuration.  Unless the files
11341and actions are specified as TAGs, all are instantiated by default.
11342
11343Usage: $0 [OPTION]... [TAG]...
11344
11345  -h, --help       print this help, then exit
11346  -V, --version    print version number and configuration settings, then exit
11347      --config     print configuration, then exit
11348  -q, --quiet, --silent
11349                   do not print progress messages
11350  -d, --debug      don't remove temporary files
11351      --recheck    update $as_me by reconfiguring in the same conditions
11352      --file=FILE[:TEMPLATE]
11353                   instantiate the configuration file FILE
11354      --header=FILE[:TEMPLATE]
11355                   instantiate the configuration header FILE
11356
11357Configuration files:
11358$config_files
11359
11360Configuration headers:
11361$config_headers
11362
11363Configuration commands:
11364$config_commands
11365
11366Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11367
11368_ACEOF
11369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11370ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11371ac_cs_version="\\
11372iceauth config.status 1.0.6
11373configured by $0, generated by GNU Autoconf 2.68,
11374  with options \\"\$ac_cs_config\\"
11375
11376Copyright (C) 2010 Free Software Foundation, Inc.
11377This config.status script is free software; the Free Software Foundation
11378gives unlimited permission to copy, distribute and modify it."
11379
11380ac_pwd='$ac_pwd'
11381srcdir='$srcdir'
11382INSTALL='$INSTALL'
11383MKDIR_P='$MKDIR_P'
11384AWK='$AWK'
11385test -n "\$AWK" || AWK=awk
11386_ACEOF
11387
11388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11389# The default lists apply if the user does not specify any file.
11390ac_need_defaults=:
11391while test $# != 0
11392do
11393  case $1 in
11394  --*=?*)
11395    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11396    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11397    ac_shift=:
11398    ;;
11399  --*=)
11400    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11401    ac_optarg=
11402    ac_shift=:
11403    ;;
11404  *)
11405    ac_option=$1
11406    ac_optarg=$2
11407    ac_shift=shift
11408    ;;
11409  esac
11410
11411  case $ac_option in
11412  # Handling of the options.
11413  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11414    ac_cs_recheck=: ;;
11415  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11416    $as_echo "$ac_cs_version"; exit ;;
11417  --config | --confi | --conf | --con | --co | --c )
11418    $as_echo "$ac_cs_config"; exit ;;
11419  --debug | --debu | --deb | --de | --d | -d )
11420    debug=: ;;
11421  --file | --fil | --fi | --f )
11422    $ac_shift
11423    case $ac_optarg in
11424    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11425    '') as_fn_error $? "missing file argument" ;;
11426    esac
11427    as_fn_append CONFIG_FILES " '$ac_optarg'"
11428    ac_need_defaults=false;;
11429  --header | --heade | --head | --hea )
11430    $ac_shift
11431    case $ac_optarg in
11432    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11433    esac
11434    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11435    ac_need_defaults=false;;
11436  --he | --h)
11437    # Conflict between --help and --header
11438    as_fn_error $? "ambiguous option: \`$1'
11439Try \`$0 --help' for more information.";;
11440  --help | --hel | -h )
11441    $as_echo "$ac_cs_usage"; exit ;;
11442  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11443  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11444    ac_cs_silent=: ;;
11445
11446  # This is an error.
11447  -*) as_fn_error $? "unrecognized option: \`$1'
11448Try \`$0 --help' for more information." ;;
11449
11450  *) as_fn_append ac_config_targets " $1"
11451     ac_need_defaults=false ;;
11452
11453  esac
11454  shift
11455done
11456
11457ac_configure_extra_args=
11458
11459if $ac_cs_silent; then
11460  exec 6>/dev/null
11461  ac_configure_extra_args="$ac_configure_extra_args --silent"
11462fi
11463
11464_ACEOF
11465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11466if \$ac_cs_recheck; then
11467  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11468  shift
11469  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11470  CONFIG_SHELL='$SHELL'
11471  export CONFIG_SHELL
11472  exec "\$@"
11473fi
11474
11475_ACEOF
11476cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11477exec 5>>config.log
11478{
11479  echo
11480  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11481## Running $as_me. ##
11482_ASBOX
11483  $as_echo "$ac_log"
11484} >&5
11485
11486_ACEOF
11487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11488#
11489# INIT-COMMANDS
11490#
11491AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11492
11493_ACEOF
11494
11495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11496
11497# Handling of arguments.
11498for ac_config_target in $ac_config_targets
11499do
11500  case $ac_config_target in
11501    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11502    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11503    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11504    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11505
11506  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11507  esac
11508done
11509
11510
11511# If the user did not use the arguments to specify the items to instantiate,
11512# then the envvar interface is used.  Set only those that are not.
11513# We use the long form for the default assignment because of an extremely
11514# bizarre bug on SunOS 4.1.3.
11515if $ac_need_defaults; then
11516  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11517  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11518  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11519fi
11520
11521# Have a temporary directory for convenience.  Make it in the build tree
11522# simply because there is no reason against having it here, and in addition,
11523# creating and moving files from /tmp can sometimes cause problems.
11524# Hook for its removal unless debugging.
11525# Note that there is a small window in which the directory will not be cleaned:
11526# after its creation but before its name has been assigned to `$tmp'.
11527$debug ||
11528{
11529  tmp= ac_tmp=
11530  trap 'exit_status=$?
11531  : "${ac_tmp:=$tmp}"
11532  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11533' 0
11534  trap 'as_fn_exit 1' 1 2 13 15
11535}
11536# Create a (secure) tmp directory for tmp files.
11537
11538{
11539  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11540  test -d "$tmp"
11541}  ||
11542{
11543  tmp=./conf$$-$RANDOM
11544  (umask 077 && mkdir "$tmp")
11545} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11546ac_tmp=$tmp
11547
11548# Set up the scripts for CONFIG_FILES section.
11549# No need to generate them if there are no CONFIG_FILES.
11550# This happens for instance with `./config.status config.h'.
11551if test -n "$CONFIG_FILES"; then
11552
11553
11554ac_cr=`echo X | tr X '\015'`
11555# On cygwin, bash can eat \r inside `` if the user requested igncr.
11556# But we know of no other shell where ac_cr would be empty at this
11557# point, so we can use a bashism as a fallback.
11558if test "x$ac_cr" = x; then
11559  eval ac_cr=\$\'\\r\'
11560fi
11561ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11562if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11563  ac_cs_awk_cr='\\r'
11564else
11565  ac_cs_awk_cr=$ac_cr
11566fi
11567
11568echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11569_ACEOF
11570
11571
11572{
11573  echo "cat >conf$$subs.awk <<_ACEOF" &&
11574  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11575  echo "_ACEOF"
11576} >conf$$subs.sh ||
11577  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11578ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11579ac_delim='%!_!# '
11580for ac_last_try in false false false false false :; do
11581  . ./conf$$subs.sh ||
11582    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11583
11584  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11585  if test $ac_delim_n = $ac_delim_num; then
11586    break
11587  elif $ac_last_try; then
11588    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11589  else
11590    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11591  fi
11592done
11593rm -f conf$$subs.sh
11594
11595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11596cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11597_ACEOF
11598sed -n '
11599h
11600s/^/S["/; s/!.*/"]=/
11601p
11602g
11603s/^[^!]*!//
11604:repl
11605t repl
11606s/'"$ac_delim"'$//
11607t delim
11608:nl
11609h
11610s/\(.\{148\}\)..*/\1/
11611t more1
11612s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11613p
11614n
11615b repl
11616:more1
11617s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11618p
11619g
11620s/.\{148\}//
11621t nl
11622:delim
11623h
11624s/\(.\{148\}\)..*/\1/
11625t more2
11626s/["\\]/\\&/g; s/^/"/; s/$/"/
11627p
11628b
11629:more2
11630s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11631p
11632g
11633s/.\{148\}//
11634t delim
11635' <conf$$subs.awk | sed '
11636/^[^""]/{
11637  N
11638  s/\n//
11639}
11640' >>$CONFIG_STATUS || ac_write_fail=1
11641rm -f conf$$subs.awk
11642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11643_ACAWK
11644cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11645  for (key in S) S_is_set[key] = 1
11646  FS = ""
11647
11648}
11649{
11650  line = $ 0
11651  nfields = split(line, field, "@")
11652  substed = 0
11653  len = length(field[1])
11654  for (i = 2; i < nfields; i++) {
11655    key = field[i]
11656    keylen = length(key)
11657    if (S_is_set[key]) {
11658      value = S[key]
11659      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11660      len += length(value) + length(field[++i])
11661      substed = 1
11662    } else
11663      len += 1 + keylen
11664  }
11665
11666  print line
11667}
11668
11669_ACAWK
11670_ACEOF
11671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11672if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11673  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11674else
11675  cat
11676fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11677  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11678_ACEOF
11679
11680# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11681# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11682# trailing colons and then remove the whole line if VPATH becomes empty
11683# (actually we leave an empty line to preserve line numbers).
11684if test "x$srcdir" = x.; then
11685  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11686h
11687s///
11688s/^/:/
11689s/[	 ]*$/:/
11690s/:\$(srcdir):/:/g
11691s/:\${srcdir}:/:/g
11692s/:@srcdir@:/:/g
11693s/^:*//
11694s/:*$//
11695x
11696s/\(=[	 ]*\).*/\1/
11697G
11698s/\n//
11699s/^[^=]*=[	 ]*$//
11700}'
11701fi
11702
11703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11704fi # test -n "$CONFIG_FILES"
11705
11706# Set up the scripts for CONFIG_HEADERS section.
11707# No need to generate them if there are no CONFIG_HEADERS.
11708# This happens for instance with `./config.status Makefile'.
11709if test -n "$CONFIG_HEADERS"; then
11710cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11711BEGIN {
11712_ACEOF
11713
11714# Transform confdefs.h into an awk script `defines.awk', embedded as
11715# here-document in config.status, that substitutes the proper values into
11716# config.h.in to produce config.h.
11717
11718# Create a delimiter string that does not exist in confdefs.h, to ease
11719# handling of long lines.
11720ac_delim='%!_!# '
11721for ac_last_try in false false :; do
11722  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11723  if test -z "$ac_tt"; then
11724    break
11725  elif $ac_last_try; then
11726    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11727  else
11728    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11729  fi
11730done
11731
11732# For the awk script, D is an array of macro values keyed by name,
11733# likewise P contains macro parameters if any.  Preserve backslash
11734# newline sequences.
11735
11736ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11737sed -n '
11738s/.\{148\}/&'"$ac_delim"'/g
11739t rset
11740:rset
11741s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11742t def
11743d
11744:def
11745s/\\$//
11746t bsnl
11747s/["\\]/\\&/g
11748s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11749D["\1"]=" \3"/p
11750s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11751d
11752:bsnl
11753s/["\\]/\\&/g
11754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11755D["\1"]=" \3\\\\\\n"\\/p
11756t cont
11757s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11758t cont
11759d
11760:cont
11761n
11762s/.\{148\}/&'"$ac_delim"'/g
11763t clear
11764:clear
11765s/\\$//
11766t bsnlc
11767s/["\\]/\\&/g; s/^/"/; s/$/"/p
11768d
11769:bsnlc
11770s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11771b cont
11772' <confdefs.h | sed '
11773s/'"$ac_delim"'/"\\\
11774"/g' >>$CONFIG_STATUS || ac_write_fail=1
11775
11776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777  for (key in D) D_is_set[key] = 1
11778  FS = ""
11779}
11780/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11781  line = \$ 0
11782  split(line, arg, " ")
11783  if (arg[1] == "#") {
11784    defundef = arg[2]
11785    mac1 = arg[3]
11786  } else {
11787    defundef = substr(arg[1], 2)
11788    mac1 = arg[2]
11789  }
11790  split(mac1, mac2, "(") #)
11791  macro = mac2[1]
11792  prefix = substr(line, 1, index(line, defundef) - 1)
11793  if (D_is_set[macro]) {
11794    # Preserve the white space surrounding the "#".
11795    print prefix "define", macro P[macro] D[macro]
11796    next
11797  } else {
11798    # Replace #undef with comments.  This is necessary, for example,
11799    # in the case of _POSIX_SOURCE, which is predefined and required
11800    # on some systems where configure will not decide to define it.
11801    if (defundef == "undef") {
11802      print "/*", prefix defundef, macro, "*/"
11803      next
11804    }
11805  }
11806}
11807{ print }
11808_ACAWK
11809_ACEOF
11810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11812fi # test -n "$CONFIG_HEADERS"
11813
11814
11815eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11816shift
11817for ac_tag
11818do
11819  case $ac_tag in
11820  :[FHLC]) ac_mode=$ac_tag; continue;;
11821  esac
11822  case $ac_mode$ac_tag in
11823  :[FHL]*:*);;
11824  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11825  :[FH]-) ac_tag=-:-;;
11826  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11827  esac
11828  ac_save_IFS=$IFS
11829  IFS=:
11830  set x $ac_tag
11831  IFS=$ac_save_IFS
11832  shift
11833  ac_file=$1
11834  shift
11835
11836  case $ac_mode in
11837  :L) ac_source=$1;;
11838  :[FH])
11839    ac_file_inputs=
11840    for ac_f
11841    do
11842      case $ac_f in
11843      -) ac_f="$ac_tmp/stdin";;
11844      *) # Look for the file first in the build tree, then in the source tree
11845	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11846	 # because $ac_f cannot contain `:'.
11847	 test -f "$ac_f" ||
11848	   case $ac_f in
11849	   [\\/$]*) false;;
11850	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11851	   esac ||
11852	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11853      esac
11854      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11855      as_fn_append ac_file_inputs " '$ac_f'"
11856    done
11857
11858    # Let's still pretend it is `configure' which instantiates (i.e., don't
11859    # use $as_me), people would be surprised to read:
11860    #    /* config.h.  Generated by config.status.  */
11861    configure_input='Generated from '`
11862	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11863	`' by configure.'
11864    if test x"$ac_file" != x-; then
11865      configure_input="$ac_file.  $configure_input"
11866      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11867$as_echo "$as_me: creating $ac_file" >&6;}
11868    fi
11869    # Neutralize special characters interpreted by sed in replacement strings.
11870    case $configure_input in #(
11871    *\&* | *\|* | *\\* )
11872       ac_sed_conf_input=`$as_echo "$configure_input" |
11873       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11874    *) ac_sed_conf_input=$configure_input;;
11875    esac
11876
11877    case $ac_tag in
11878    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11879      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11880    esac
11881    ;;
11882  esac
11883
11884  ac_dir=`$as_dirname -- "$ac_file" ||
11885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11886	 X"$ac_file" : 'X\(//\)[^/]' \| \
11887	 X"$ac_file" : 'X\(//\)$' \| \
11888	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11889$as_echo X"$ac_file" |
11890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11891	    s//\1/
11892	    q
11893	  }
11894	  /^X\(\/\/\)[^/].*/{
11895	    s//\1/
11896	    q
11897	  }
11898	  /^X\(\/\/\)$/{
11899	    s//\1/
11900	    q
11901	  }
11902	  /^X\(\/\).*/{
11903	    s//\1/
11904	    q
11905	  }
11906	  s/.*/./; q'`
11907  as_dir="$ac_dir"; as_fn_mkdir_p
11908  ac_builddir=.
11909
11910case "$ac_dir" in
11911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11912*)
11913  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11914  # A ".." for each directory in $ac_dir_suffix.
11915  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11916  case $ac_top_builddir_sub in
11917  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11918  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11919  esac ;;
11920esac
11921ac_abs_top_builddir=$ac_pwd
11922ac_abs_builddir=$ac_pwd$ac_dir_suffix
11923# for backward compatibility:
11924ac_top_builddir=$ac_top_build_prefix
11925
11926case $srcdir in
11927  .)  # We are building in place.
11928    ac_srcdir=.
11929    ac_top_srcdir=$ac_top_builddir_sub
11930    ac_abs_top_srcdir=$ac_pwd ;;
11931  [\\/]* | ?:[\\/]* )  # Absolute name.
11932    ac_srcdir=$srcdir$ac_dir_suffix;
11933    ac_top_srcdir=$srcdir
11934    ac_abs_top_srcdir=$srcdir ;;
11935  *) # Relative name.
11936    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11937    ac_top_srcdir=$ac_top_build_prefix$srcdir
11938    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11939esac
11940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11941
11942
11943  case $ac_mode in
11944  :F)
11945  #
11946  # CONFIG_FILE
11947  #
11948
11949  case $INSTALL in
11950  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11951  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11952  esac
11953  ac_MKDIR_P=$MKDIR_P
11954  case $MKDIR_P in
11955  [\\/$]* | ?:[\\/]* ) ;;
11956  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11957  esac
11958_ACEOF
11959
11960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961# If the template does not know about datarootdir, expand it.
11962# FIXME: This hack should be removed a few years after 2.60.
11963ac_datarootdir_hack=; ac_datarootdir_seen=
11964ac_sed_dataroot='
11965/datarootdir/ {
11966  p
11967  q
11968}
11969/@datadir@/p
11970/@docdir@/p
11971/@infodir@/p
11972/@localedir@/p
11973/@mandir@/p'
11974case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11975*datarootdir*) ac_datarootdir_seen=yes;;
11976*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11978$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11979_ACEOF
11980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11981  ac_datarootdir_hack='
11982  s&@datadir@&$datadir&g
11983  s&@docdir@&$docdir&g
11984  s&@infodir@&$infodir&g
11985  s&@localedir@&$localedir&g
11986  s&@mandir@&$mandir&g
11987  s&\\\${datarootdir}&$datarootdir&g' ;;
11988esac
11989_ACEOF
11990
11991# Neutralize VPATH when `$srcdir' = `.'.
11992# Shell code in configure.ac might set extrasub.
11993# FIXME: do we really want to maintain this feature?
11994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11995ac_sed_extra="$ac_vpsub
11996$extrasub
11997_ACEOF
11998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11999:t
12000/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12001s|@configure_input@|$ac_sed_conf_input|;t t
12002s&@top_builddir@&$ac_top_builddir_sub&;t t
12003s&@top_build_prefix@&$ac_top_build_prefix&;t t
12004s&@srcdir@&$ac_srcdir&;t t
12005s&@abs_srcdir@&$ac_abs_srcdir&;t t
12006s&@top_srcdir@&$ac_top_srcdir&;t t
12007s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12008s&@builddir@&$ac_builddir&;t t
12009s&@abs_builddir@&$ac_abs_builddir&;t t
12010s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12011s&@INSTALL@&$ac_INSTALL&;t t
12012s&@MKDIR_P@&$ac_MKDIR_P&;t t
12013$ac_datarootdir_hack
12014"
12015eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12016  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12017
12018test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12019  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12020  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12021      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12023which seems to be undefined.  Please make sure it is defined" >&5
12024$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12025which seems to be undefined.  Please make sure it is defined" >&2;}
12026
12027  rm -f "$ac_tmp/stdin"
12028  case $ac_file in
12029  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12030  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12031  esac \
12032  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12033 ;;
12034  :H)
12035  #
12036  # CONFIG_HEADER
12037  #
12038  if test x"$ac_file" != x-; then
12039    {
12040      $as_echo "/* $configure_input  */" \
12041      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12042    } >"$ac_tmp/config.h" \
12043      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12044    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12045      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12046$as_echo "$as_me: $ac_file is unchanged" >&6;}
12047    else
12048      rm -f "$ac_file"
12049      mv "$ac_tmp/config.h" "$ac_file" \
12050	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12051    fi
12052  else
12053    $as_echo "/* $configure_input  */" \
12054      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12055      || as_fn_error $? "could not create -" "$LINENO" 5
12056  fi
12057# Compute "$ac_file"'s index in $config_headers.
12058_am_arg="$ac_file"
12059_am_stamp_count=1
12060for _am_header in $config_headers :; do
12061  case $_am_header in
12062    $_am_arg | $_am_arg:* )
12063      break ;;
12064    * )
12065      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12066  esac
12067done
12068echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12069$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12071	 X"$_am_arg" : 'X\(//\)$' \| \
12072	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12073$as_echo X"$_am_arg" |
12074    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12075	    s//\1/
12076	    q
12077	  }
12078	  /^X\(\/\/\)[^/].*/{
12079	    s//\1/
12080	    q
12081	  }
12082	  /^X\(\/\/\)$/{
12083	    s//\1/
12084	    q
12085	  }
12086	  /^X\(\/\).*/{
12087	    s//\1/
12088	    q
12089	  }
12090	  s/.*/./; q'`/stamp-h$_am_stamp_count
12091 ;;
12092
12093  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12094$as_echo "$as_me: executing $ac_file commands" >&6;}
12095 ;;
12096  esac
12097
12098
12099  case $ac_file$ac_mode in
12100    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12101  # Older Autoconf quotes --file arguments for eval, but not when files
12102  # are listed without --file.  Let's play safe and only enable the eval
12103  # if we detect the quoting.
12104  case $CONFIG_FILES in
12105  *\'*) eval set x "$CONFIG_FILES" ;;
12106  *)   set x $CONFIG_FILES ;;
12107  esac
12108  shift
12109  for mf
12110  do
12111    # Strip MF so we end up with the name of the file.
12112    mf=`echo "$mf" | sed -e 's/:.*$//'`
12113    # Check whether this is an Automake generated Makefile or not.
12114    # We used to match only the files named 'Makefile.in', but
12115    # some people rename them; so instead we look at the file content.
12116    # Grep'ing the first line is not enough: some people post-process
12117    # each Makefile.in and add a new line on top of each file to say so.
12118    # Grep'ing the whole file is not good either: AIX grep has a line
12119    # limit of 2048, but all sed's we know have understand at least 4000.
12120    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12121      dirpart=`$as_dirname -- "$mf" ||
12122$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12123	 X"$mf" : 'X\(//\)[^/]' \| \
12124	 X"$mf" : 'X\(//\)$' \| \
12125	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12126$as_echo X"$mf" |
12127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12128	    s//\1/
12129	    q
12130	  }
12131	  /^X\(\/\/\)[^/].*/{
12132	    s//\1/
12133	    q
12134	  }
12135	  /^X\(\/\/\)$/{
12136	    s//\1/
12137	    q
12138	  }
12139	  /^X\(\/\).*/{
12140	    s//\1/
12141	    q
12142	  }
12143	  s/.*/./; q'`
12144    else
12145      continue
12146    fi
12147    # Extract the definition of DEPDIR, am__include, and am__quote
12148    # from the Makefile without running 'make'.
12149    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12150    test -z "$DEPDIR" && continue
12151    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12152    test -z "$am__include" && continue
12153    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12154    # Find all dependency output files, they are included files with
12155    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12156    # simplest approach to changing $(DEPDIR) to its actual value in the
12157    # expansion.
12158    for file in `sed -n "
12159      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12160	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12161      # Make sure the directory exists.
12162      test -f "$dirpart/$file" && continue
12163      fdir=`$as_dirname -- "$file" ||
12164$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12165	 X"$file" : 'X\(//\)[^/]' \| \
12166	 X"$file" : 'X\(//\)$' \| \
12167	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12168$as_echo X"$file" |
12169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12170	    s//\1/
12171	    q
12172	  }
12173	  /^X\(\/\/\)[^/].*/{
12174	    s//\1/
12175	    q
12176	  }
12177	  /^X\(\/\/\)$/{
12178	    s//\1/
12179	    q
12180	  }
12181	  /^X\(\/\).*/{
12182	    s//\1/
12183	    q
12184	  }
12185	  s/.*/./; q'`
12186      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12187      # echo "creating $dirpart/$file"
12188      echo '# dummy' > "$dirpart/$file"
12189    done
12190  done
12191}
12192 ;;
12193
12194  esac
12195done # for ac_tag
12196
12197
12198as_fn_exit 0
12199_ACEOF
12200ac_clean_files=$ac_clean_files_save
12201
12202test $ac_write_fail = 0 ||
12203  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12204
12205
12206# configure is writing to config.log, and then calls config.status.
12207# config.status does its own redirection, appending to config.log.
12208# Unfortunately, on DOS this fails, as config.log is still kept open
12209# by configure, so config.status won't be able to write to it; its
12210# output is simply discarded.  So we exec the FD to /dev/null,
12211# effectively closing config.log, so it can be properly (re)opened and
12212# appended to by config.status.  When coming back to configure, we
12213# need to make the FD available again.
12214if test "$no_create" != yes; then
12215  ac_cs_success=:
12216  ac_config_status_args=
12217  test "$silent" = yes &&
12218    ac_config_status_args="$ac_config_status_args --quiet"
12219  exec 5>/dev/null
12220  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12221  exec 5>>config.log
12222  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12223  # would make configure fail if this is the last instruction.
12224  $ac_cs_success || as_fn_exit 1
12225fi
12226if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12228$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12229fi
12230
12231