configure revision 3538fbe3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xfd 1.1.1.
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='xfd'
563PACKAGE_TARNAME='xfd'
564PACKAGE_VERSION='1.1.1'
565PACKAGE_STRING='xfd 1.1.1'
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
609appdefaultdir
610APPDEFS_LIBS
611APPDEFS_CFLAGS
612XFD_LIBS
613XFD_CFLAGS
614USE_GETTEXT_FALSE
615USE_GETTEXT_TRUE
616LOCALEDIR
617AM_BACKSLASH
618AM_DEFAULT_VERBOSITY
619MAN_SUBSTS
620XORG_MAN_PAGE
621ADMIN_MAN_DIR
622DRIVER_MAN_DIR
623MISC_MAN_DIR
624FILE_MAN_DIR
625LIB_MAN_DIR
626APP_MAN_DIR
627ADMIN_MAN_SUFFIX
628DRIVER_MAN_SUFFIX
629MISC_MAN_SUFFIX
630FILE_MAN_SUFFIX
631LIB_MAN_SUFFIX
632APP_MAN_SUFFIX
633SED
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642INSTALL_CMD
643PKG_CONFIG
644CHANGELOG_CMD
645STRICT_CFLAGS
646CWARNFLAGS
647BASE_CFLAGS
648EGREP
649GREP
650CPP
651am__fastdepCC_FALSE
652am__fastdepCC_TRUE
653CCDEPMODE
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_maintainer_mode
735enable_dependency_tracking
736enable_selective_werror
737enable_strict_compilation
738enable_silent_rules
739with_localedir
740with_appdefaultdir
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP
751PKG_CONFIG
752XFD_CFLAGS
753XFD_LIBS
754APPDEFS_CFLAGS
755APPDEFS_LIBS'
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 xfd 1.1.1 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/xfd]
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 xfd 1.1.1:";;
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-maintainer-mode  enable make rules and dependencies not useful
1377			  (and sometimes confusing) to the casual installer
1378  --disable-dependency-tracking  speeds up one-time build
1379  --enable-dependency-tracking   do not reject slow dependency extractors
1380  --disable-selective-werror
1381                          Turn off selective compiler errors. (default:
1382                          enabled)
1383  --enable-strict-compilation
1384                          Enable all warnings from compiler and make them
1385                          errors (default: disabled)
1386  --enable-silent-rules          less verbose build output (undo: `make V=1')
1387  --disable-silent-rules         verbose build output (undo: `make V=0')
1388
1389Optional Packages:
1390  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392  --with-localedir=<path> Path to install message files in (default:
1393                          datadir/locale)
1394  --with-appdefaultdir=<pathname>
1395                          specify directory for app-defaults files (default is
1396                          autodetected)
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  XFD_CFLAGS  C compiler flags for XFD, overriding pkg-config
1409  XFD_LIBS    linker flags for XFD, overriding pkg-config
1410  APPDEFS_CFLAGS
1411              C compiler flags for APPDEFS, overriding pkg-config
1412  APPDEFS_LIBS
1413              linker flags for APPDEFS, overriding pkg-config
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
1481xfd configure 1.1.1
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 xfd $as_me 1.1.1, 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.11'
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# Just in case
2213sleep 1
2214echo timestamp > conftest.file
2215# Reject unsafe characters in $srcdir or the absolute working directory
2216# name.  Accept space and tab only in the latter.
2217am_lf='
2218'
2219case `pwd` in
2220  *[\\\"\#\$\&\'\`$am_lf]*)
2221    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2222esac
2223case $srcdir in
2224  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2225    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2226esac
2227
2228# Do `set' in a subshell so we don't clobber the current shell's
2229# arguments.  Must try -L first in case configure is actually a
2230# symlink; some systems play weird games with the mod time of symlinks
2231# (eg FreeBSD returns the mod time of the symlink's containing
2232# directory).
2233if (
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   rm -f conftest.file
2240   if test "$*" != "X $srcdir/configure conftest.file" \
2241      && test "$*" != "X conftest.file $srcdir/configure"; then
2242
2243      # If neither matched, then we have a broken ls.  This can happen
2244      # if, for instance, CONFIG_SHELL is bash and it inherits a
2245      # broken ls alias from the environment.  This has actually
2246      # happened.  Such a system could not be considered "sane".
2247      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2248alias in your environment" "$LINENO" 5
2249   fi
2250
2251   test "$2" = conftest.file
2252   )
2253then
2254   # Ok.
2255   :
2256else
2257   as_fn_error $? "newly created file is older than distributed files!
2258Check your system clock" "$LINENO" 5
2259fi
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2261$as_echo "yes" >&6; }
2262test "$program_prefix" != NONE &&
2263  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2264# Use a double $ so make ignores it.
2265test "$program_suffix" != NONE &&
2266  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2267# Double any \ or $.
2268# By default was `s,x,x', remove it if useless.
2269ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2270program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2271
2272# expand $ac_aux_dir to an absolute path
2273am_aux_dir=`cd $ac_aux_dir && pwd`
2274
2275if test x"${MISSING+set}" != xset; then
2276  case $am_aux_dir in
2277  *\ * | *\	*)
2278    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2279  *)
2280    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2281  esac
2282fi
2283# Use eval to expand $SHELL
2284if eval "$MISSING --run true"; then
2285  am_missing_run="$MISSING --run "
2286else
2287  am_missing_run=
2288  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2289$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2290fi
2291
2292if test x"${install_sh}" != xset; then
2293  case $am_aux_dir in
2294  *\ * | *\	*)
2295    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2296  *)
2297    install_sh="\${SHELL} $am_aux_dir/install-sh"
2298  esac
2299fi
2300
2301# Installed binaries are usually stripped using `strip' when the user
2302# run `make install-strip'.  However `strip' might not be the right
2303# tool to use in cross-compilation environments, therefore Automake
2304# will honor the `STRIP' environment variable to overrule this program.
2305if test "$cross_compiling" != no; then
2306  if test -n "$ac_tool_prefix"; then
2307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}strip; ac_word=$2
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if ${ac_cv_prog_STRIP+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  if test -n "$STRIP"; then
2315  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322    for ac_exec_ext in '' $ac_executable_extensions; do
2323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326    break 2
2327  fi
2328done
2329  done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334STRIP=$ac_cv_prog_STRIP
2335if test -n "$STRIP"; then
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2337$as_echo "$STRIP" >&6; }
2338else
2339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343
2344fi
2345if test -z "$ac_cv_prog_STRIP"; then
2346  ac_ct_STRIP=$STRIP
2347  # Extract the first word of "strip", so it can be a program name with args.
2348set dummy strip; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$ac_ct_STRIP"; then
2355  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362    for ac_exec_ext in '' $ac_executable_extensions; do
2363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364    ac_cv_prog_ac_ct_STRIP="strip"
2365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369  done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375if test -n "$ac_ct_STRIP"; then
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2377$as_echo "$ac_ct_STRIP" >&6; }
2378else
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383  if test "x$ac_ct_STRIP" = x; then
2384    STRIP=":"
2385  else
2386    case $cross_compiling:$ac_tool_warned in
2387yes:)
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392    STRIP=$ac_ct_STRIP
2393  fi
2394else
2395  STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2400
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2402$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2403if test -z "$MKDIR_P"; then
2404  if ${ac_cv_path_mkdir+:} false; then :
2405  $as_echo_n "(cached) " >&6
2406else
2407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2409do
2410  IFS=$as_save_IFS
2411  test -z "$as_dir" && as_dir=.
2412    for ac_prog in mkdir gmkdir; do
2413	 for ac_exec_ext in '' $ac_executable_extensions; do
2414	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2415	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2416	     'mkdir (GNU coreutils) '* | \
2417	     'mkdir (coreutils) '* | \
2418	     'mkdir (fileutils) '4.1*)
2419	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2420	       break 3;;
2421	   esac
2422	 done
2423       done
2424  done
2425IFS=$as_save_IFS
2426
2427fi
2428
2429  test -d ./--version && rmdir ./--version
2430  if test "${ac_cv_path_mkdir+set}" = set; then
2431    MKDIR_P="$ac_cv_path_mkdir -p"
2432  else
2433    # As a last resort, use the slow shell script.  Don't cache a
2434    # value for MKDIR_P within a source directory, because that will
2435    # break other packages using the cache if that directory is
2436    # removed, or if the value is a relative name.
2437    MKDIR_P="$ac_install_sh -d"
2438  fi
2439fi
2440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2441$as_echo "$MKDIR_P" >&6; }
2442
2443mkdir_p="$MKDIR_P"
2444case $mkdir_p in
2445  [\\/$]* | ?:[\\/]*) ;;
2446  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2447esac
2448
2449for ac_prog in gawk mawk nawk awk
2450do
2451  # Extract the first word of "$ac_prog", so it can be a program name with args.
2452set dummy $ac_prog; ac_word=$2
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454$as_echo_n "checking for $ac_word... " >&6; }
2455if ${ac_cv_prog_AWK+:} false; then :
2456  $as_echo_n "(cached) " >&6
2457else
2458  if test -n "$AWK"; then
2459  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464  IFS=$as_save_IFS
2465  test -z "$as_dir" && as_dir=.
2466    for ac_exec_ext in '' $ac_executable_extensions; do
2467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468    ac_cv_prog_AWK="$ac_prog"
2469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470    break 2
2471  fi
2472done
2473  done
2474IFS=$as_save_IFS
2475
2476fi
2477fi
2478AWK=$ac_cv_prog_AWK
2479if test -n "$AWK"; then
2480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2481$as_echo "$AWK" >&6; }
2482else
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484$as_echo "no" >&6; }
2485fi
2486
2487
2488  test -n "$AWK" && break
2489done
2490
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2492$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2493set x ${MAKE-make}
2494ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2495if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2496  $as_echo_n "(cached) " >&6
2497else
2498  cat >conftest.make <<\_ACEOF
2499SHELL = /bin/sh
2500all:
2501	@echo '@@@%%%=$(MAKE)=@@@%%%'
2502_ACEOF
2503# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2504case `${MAKE-make} -f conftest.make 2>/dev/null` in
2505  *@@@%%%=?*=@@@%%%*)
2506    eval ac_cv_prog_make_${ac_make}_set=yes;;
2507  *)
2508    eval ac_cv_prog_make_${ac_make}_set=no;;
2509esac
2510rm -f conftest.make
2511fi
2512if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514$as_echo "yes" >&6; }
2515  SET_MAKE=
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
2519  SET_MAKE="MAKE=${MAKE-make}"
2520fi
2521
2522rm -rf .tst 2>/dev/null
2523mkdir .tst 2>/dev/null
2524if test -d .tst; then
2525  am__leading_dot=.
2526else
2527  am__leading_dot=_
2528fi
2529rmdir .tst 2>/dev/null
2530
2531if test "`cd $srcdir && pwd`" != "`pwd`"; then
2532  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2533  # is not polluted with repeated "-I."
2534  am__isrc=' -I$(srcdir)'
2535  # test to see if srcdir already configured
2536  if test -f $srcdir/config.status; then
2537    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2538  fi
2539fi
2540
2541# test whether we have cygpath
2542if test -z "$CYGPATH_W"; then
2543  if (cygpath --version) >/dev/null 2>/dev/null; then
2544    CYGPATH_W='cygpath -w'
2545  else
2546    CYGPATH_W=echo
2547  fi
2548fi
2549
2550
2551# Define the identity of the package.
2552 PACKAGE='xfd'
2553 VERSION='1.1.1'
2554
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE "$PACKAGE"
2558_ACEOF
2559
2560
2561cat >>confdefs.h <<_ACEOF
2562#define VERSION "$VERSION"
2563_ACEOF
2564
2565# Some tools Automake needs.
2566
2567ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2568
2569
2570AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2571
2572
2573AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2574
2575
2576AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2577
2578
2579MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2580
2581# We need awk for the "check" target.  The system "awk" is bad on
2582# some platforms.
2583# Always define AMTAR for backward compatibility.
2584
2585AMTAR=${AMTAR-"${am_missing_run}tar"}
2586
2587am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2588
2589
2590
2591
2592
2593
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2595$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2596    # Check whether --enable-maintainer-mode was given.
2597if test "${enable_maintainer_mode+set}" = set; then :
2598  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2599else
2600  USE_MAINTAINER_MODE=no
2601fi
2602
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2604$as_echo "$USE_MAINTAINER_MODE" >&6; }
2605   if test $USE_MAINTAINER_MODE = yes; then
2606  MAINTAINER_MODE_TRUE=
2607  MAINTAINER_MODE_FALSE='#'
2608else
2609  MAINTAINER_MODE_TRUE='#'
2610  MAINTAINER_MODE_FALSE=
2611fi
2612
2613  MAINT=$MAINTAINER_MODE_TRUE
2614
2615
2616
2617# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629DEPDIR="${am__leading_dot}deps"
2630
2631ac_config_commands="$ac_config_commands depfiles"
2632
2633
2634am_make=${MAKE-make}
2635cat > confinc << 'END'
2636am__doit:
2637	@echo this is the am__doit target
2638.PHONY: am__doit
2639END
2640# If we don't find an include directive, just comment out the code.
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2642$as_echo_n "checking for style of include used by $am_make... " >&6; }
2643am__include="#"
2644am__quote=
2645_am_result=none
2646# First try GNU make style include.
2647echo "include confinc" > confmf
2648# Ignore all kinds of additional output from `make'.
2649case `$am_make -s -f confmf 2> /dev/null` in #(
2650*the\ am__doit\ target*)
2651  am__include=include
2652  am__quote=
2653  _am_result=GNU
2654  ;;
2655esac
2656# Now try BSD make style include.
2657if test "$am__include" = "#"; then
2658   echo '.include "confinc"' > confmf
2659   case `$am_make -s -f confmf 2> /dev/null` in #(
2660   *the\ am__doit\ target*)
2661     am__include=.include
2662     am__quote="\""
2663     _am_result=BSD
2664     ;;
2665   esac
2666fi
2667
2668
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2670$as_echo "$_am_result" >&6; }
2671rm -f confinc confmf
2672
2673# Check whether --enable-dependency-tracking was given.
2674if test "${enable_dependency_tracking+set}" = set; then :
2675  enableval=$enable_dependency_tracking;
2676fi
2677
2678if test "x$enable_dependency_tracking" != xno; then
2679  am_depcomp="$ac_aux_dir/depcomp"
2680  AMDEPBACKSLASH='\'
2681fi
2682 if test "x$enable_dependency_tracking" != xno; then
2683  AMDEP_TRUE=
2684  AMDEP_FALSE='#'
2685else
2686  AMDEP_TRUE='#'
2687  AMDEP_FALSE=
2688fi
2689
2690
2691ac_ext=c
2692ac_cpp='$CPP $CPPFLAGS'
2693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696if test -n "$ac_tool_prefix"; then
2697  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2698set dummy ${ac_tool_prefix}gcc; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_CC+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test -n "$CC"; then
2705  ac_cv_prog_CC="$CC" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    for ac_exec_ext in '' $ac_executable_extensions; do
2713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2727$as_echo "$CC" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734fi
2735if test -z "$ac_cv_prog_CC"; then
2736  ac_ct_CC=$CC
2737  # Extract the first word of "gcc", so it can be a program name with args.
2738set dummy gcc; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if ${ac_cv_prog_ac_ct_CC+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test -n "$ac_ct_CC"; then
2745  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752    for ac_exec_ext in '' $ac_executable_extensions; do
2753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754    ac_cv_prog_ac_ct_CC="gcc"
2755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759  done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765if test -n "$ac_ct_CC"; then
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2767$as_echo "$ac_ct_CC" >&6; }
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773  if test "x$ac_ct_CC" = x; then
2774    CC=""
2775  else
2776    case $cross_compiling:$ac_tool_warned in
2777yes:)
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2780ac_tool_warned=yes ;;
2781esac
2782    CC=$ac_ct_CC
2783  fi
2784else
2785  CC="$ac_cv_prog_CC"
2786fi
2787
2788if test -z "$CC"; then
2789          if test -n "$ac_tool_prefix"; then
2790    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2791set dummy ${ac_tool_prefix}cc; ac_word=$2
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if ${ac_cv_prog_CC+:} false; then :
2795  $as_echo_n "(cached) " >&6
2796else
2797  if test -n "$CC"; then
2798  ac_cv_prog_CC="$CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803  IFS=$as_save_IFS
2804  test -z "$as_dir" && as_dir=.
2805    for ac_exec_ext in '' $ac_executable_extensions; do
2806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807    ac_cv_prog_CC="${ac_tool_prefix}cc"
2808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809    break 2
2810  fi
2811done
2812  done
2813IFS=$as_save_IFS
2814
2815fi
2816fi
2817CC=$ac_cv_prog_CC
2818if test -n "$CC"; then
2819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820$as_echo "$CC" >&6; }
2821else
2822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
2824fi
2825
2826
2827  fi
2828fi
2829if test -z "$CC"; then
2830  # Extract the first word of "cc", so it can be a program name with args.
2831set dummy cc; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_CC+:} false; then :
2835  $as_echo_n "(cached) " >&6
2836else
2837  if test -n "$CC"; then
2838  ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840  ac_prog_rejected=no
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2849       ac_prog_rejected=yes
2850       continue
2851     fi
2852    ac_cv_prog_CC="cc"
2853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854    break 2
2855  fi
2856done
2857  done
2858IFS=$as_save_IFS
2859
2860if test $ac_prog_rejected = yes; then
2861  # We found a bogon in the path, so make sure we never use it.
2862  set dummy $ac_cv_prog_CC
2863  shift
2864  if test $# != 0; then
2865    # We chose a different compiler from the bogus one.
2866    # However, it has the same basename, so the bogon will be chosen
2867    # first if we set CC to just the basename; use the full file name.
2868    shift
2869    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2870  fi
2871fi
2872fi
2873fi
2874CC=$ac_cv_prog_CC
2875if test -n "$CC"; then
2876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877$as_echo "$CC" >&6; }
2878else
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880$as_echo "no" >&6; }
2881fi
2882
2883
2884fi
2885if test -z "$CC"; then
2886  if test -n "$ac_tool_prefix"; then
2887  for ac_prog in cl.exe
2888  do
2889    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2890set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if ${ac_cv_prog_CC+:} false; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$CC"; then
2897  ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919$as_echo "$CC" >&6; }
2920else
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926    test -n "$CC" && break
2927  done
2928fi
2929if test -z "$CC"; then
2930  ac_ct_CC=$CC
2931  for ac_prog in cl.exe
2932do
2933  # Extract the first word of "$ac_prog", so it can be a program name with args.
2934set dummy $ac_prog; ac_word=$2
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936$as_echo_n "checking for $ac_word... " >&6; }
2937if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938  $as_echo_n "(cached) " >&6
2939else
2940  if test -n "$ac_ct_CC"; then
2941  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942else
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950    ac_cv_prog_ac_ct_CC="$ac_prog"
2951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952    break 2
2953  fi
2954done
2955  done
2956IFS=$as_save_IFS
2957
2958fi
2959fi
2960ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961if test -n "$ac_ct_CC"; then
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963$as_echo "$ac_ct_CC" >&6; }
2964else
2965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966$as_echo "no" >&6; }
2967fi
2968
2969
2970  test -n "$ac_ct_CC" && break
2971done
2972
2973  if test "x$ac_ct_CC" = x; then
2974    CC=""
2975  else
2976    case $cross_compiling:$ac_tool_warned in
2977yes:)
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980ac_tool_warned=yes ;;
2981esac
2982    CC=$ac_ct_CC
2983  fi
2984fi
2985
2986fi
2987
2988
2989test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991as_fn_error $? "no acceptable C compiler found in \$PATH
2992See \`config.log' for more details" "$LINENO" 5; }
2993
2994# Provide some information about the compiler.
2995$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2996set X $ac_compile
2997ac_compiler=$2
2998for ac_option in --version -v -V -qversion; do
2999  { { ac_try="$ac_compiler $ac_option >&5"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3007  ac_status=$?
3008  if test -s conftest.err; then
3009    sed '10a\
3010... rest of stderr output deleted ...
3011         10q' conftest.err >conftest.er1
3012    cat conftest.er1 >&5
3013  fi
3014  rm -f conftest.er1 conftest.err
3015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016  test $ac_status = 0; }
3017done
3018
3019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h.  */
3021
3022int
3023main ()
3024{
3025
3026  ;
3027  return 0;
3028}
3029_ACEOF
3030ac_clean_files_save=$ac_clean_files
3031ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3032# Try to create an executable without -o first, disregard a.out.
3033# It will help us diagnose broken compilers, and finding out an intuition
3034# of exeext.
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3036$as_echo_n "checking whether the C compiler works... " >&6; }
3037ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3038
3039# The possible output files:
3040ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3041
3042ac_rmfiles=
3043for ac_file in $ac_files
3044do
3045  case $ac_file in
3046    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3047    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3048  esac
3049done
3050rm -f $ac_rmfiles
3051
3052if { { ac_try="$ac_link_default"
3053case "(($ac_try" in
3054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055  *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059  (eval "$ac_link_default") 2>&5
3060  ac_status=$?
3061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062  test $ac_status = 0; }; then :
3063  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3064# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3065# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3066# so that the user can short-circuit this test for compilers unknown to
3067# Autoconf.
3068for ac_file in $ac_files ''
3069do
3070  test -f "$ac_file" || continue
3071  case $ac_file in
3072    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3073	;;
3074    [ab].out )
3075	# We found the default executable, but exeext='' is most
3076	# certainly right.
3077	break;;
3078    *.* )
3079	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3080	then :; else
3081	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3082	fi
3083	# We set ac_cv_exeext here because the later test for it is not
3084	# safe: cross compilers may not add the suffix if given an `-o'
3085	# argument, so we may need to know it at that point already.
3086	# Even if this section looks crufty: it has the advantage of
3087	# actually working.
3088	break;;
3089    * )
3090	break;;
3091  esac
3092done
3093test "$ac_cv_exeext" = no && ac_cv_exeext=
3094
3095else
3096  ac_file=''
3097fi
3098if test -z "$ac_file"; then :
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100$as_echo "no" >&6; }
3101$as_echo "$as_me: failed program was:" >&5
3102sed 's/^/| /' conftest.$ac_ext >&5
3103
3104{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106as_fn_error 77 "C compiler cannot create executables
3107See \`config.log' for more details" "$LINENO" 5; }
3108else
3109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110$as_echo "yes" >&6; }
3111fi
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3113$as_echo_n "checking for C compiler default output file name... " >&6; }
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3115$as_echo "$ac_file" >&6; }
3116ac_exeext=$ac_cv_exeext
3117
3118rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3119ac_clean_files=$ac_clean_files_save
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3121$as_echo_n "checking for suffix of executables... " >&6; }
3122if { { ac_try="$ac_link"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128$as_echo "$ac_try_echo"; } >&5
3129  (eval "$ac_link") 2>&5
3130  ac_status=$?
3131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3132  test $ac_status = 0; }; then :
3133  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3134# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3135# work properly (i.e., refer to `conftest.exe'), while it won't with
3136# `rm'.
3137for ac_file in conftest.exe conftest conftest.*; do
3138  test -f "$ac_file" || continue
3139  case $ac_file in
3140    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142	  break;;
3143    * ) break;;
3144  esac
3145done
3146else
3147  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3150See \`config.log' for more details" "$LINENO" 5; }
3151fi
3152rm -f conftest conftest$ac_cv_exeext
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3154$as_echo "$ac_cv_exeext" >&6; }
3155
3156rm -f conftest.$ac_ext
3157EXEEXT=$ac_cv_exeext
3158ac_exeext=$EXEEXT
3159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h.  */
3161#include <stdio.h>
3162int
3163main ()
3164{
3165FILE *f = fopen ("conftest.out", "w");
3166 return ferror (f) || fclose (f) != 0;
3167
3168  ;
3169  return 0;
3170}
3171_ACEOF
3172ac_clean_files="$ac_clean_files conftest.out"
3173# Check that the compiler produces executables we can run.  If not, either
3174# the compiler is broken, or we cross compile.
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3176$as_echo_n "checking whether we are cross compiling... " >&6; }
3177if test "$cross_compiling" != yes; then
3178  { { ac_try="$ac_link"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185  (eval "$ac_link") 2>&5
3186  ac_status=$?
3187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188  test $ac_status = 0; }
3189  if { ac_try='./conftest$ac_cv_exeext'
3190  { { case "(($ac_try" in
3191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192  *) ac_try_echo=$ac_try;;
3193esac
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196  (eval "$ac_try") 2>&5
3197  ac_status=$?
3198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199  test $ac_status = 0; }; }; then
3200    cross_compiling=no
3201  else
3202    if test "$cross_compiling" = maybe; then
3203	cross_compiling=yes
3204    else
3205	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3207as_fn_error $? "cannot run C compiled programs.
3208If you meant to cross compile, use \`--host'.
3209See \`config.log' for more details" "$LINENO" 5; }
3210    fi
3211  fi
3212fi
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3214$as_echo "$cross_compiling" >&6; }
3215
3216rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3217ac_clean_files=$ac_clean_files_save
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3219$as_echo_n "checking for suffix of object files... " >&6; }
3220if ${ac_cv_objext+:} false; then :
3221  $as_echo_n "(cached) " >&6
3222else
3223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225
3226int
3227main ()
3228{
3229
3230  ;
3231  return 0;
3232}
3233_ACEOF
3234rm -f conftest.o conftest.obj
3235if { { ac_try="$ac_compile"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_compile") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }; then :
3246  for ac_file in conftest.o conftest.obj conftest.*; do
3247  test -f "$ac_file" || continue;
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3250    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3251       break;;
3252  esac
3253done
3254else
3255  $as_echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260as_fn_error $? "cannot compute suffix of object files: cannot compile
3261See \`config.log' for more details" "$LINENO" 5; }
3262fi
3263rm -f conftest.$ac_cv_objext conftest.$ac_ext
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3266$as_echo "$ac_cv_objext" >&6; }
3267OBJEXT=$ac_cv_objext
3268ac_objext=$OBJEXT
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3270$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3271if ${ac_cv_c_compiler_gnu+:} false; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280#ifndef __GNUC__
3281       choke me
3282#endif
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288if ac_fn_c_try_compile "$LINENO"; then :
3289  ac_compiler_gnu=yes
3290else
3291  ac_compiler_gnu=no
3292fi
3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294ac_cv_c_compiler_gnu=$ac_compiler_gnu
3295
3296fi
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3298$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3299if test $ac_compiler_gnu = yes; then
3300  GCC=yes
3301else
3302  GCC=
3303fi
3304ac_test_CFLAGS=${CFLAGS+set}
3305ac_save_CFLAGS=$CFLAGS
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3307$as_echo_n "checking whether $CC accepts -g... " >&6; }
3308if ${ac_cv_prog_cc_g+:} false; then :
3309  $as_echo_n "(cached) " >&6
3310else
3311  ac_save_c_werror_flag=$ac_c_werror_flag
3312   ac_c_werror_flag=yes
3313   ac_cv_prog_cc_g=no
3314   CFLAGS="-g"
3315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326if ac_fn_c_try_compile "$LINENO"; then :
3327  ac_cv_prog_cc_g=yes
3328else
3329  CFLAGS=""
3330      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331/* end confdefs.h.  */
3332
3333int
3334main ()
3335{
3336
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341if ac_fn_c_try_compile "$LINENO"; then :
3342
3343else
3344  ac_c_werror_flag=$ac_save_c_werror_flag
3345	 CFLAGS="-g"
3346	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357if ac_fn_c_try_compile "$LINENO"; then :
3358  ac_cv_prog_cc_g=yes
3359fi
3360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365   ac_c_werror_flag=$ac_save_c_werror_flag
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3368$as_echo "$ac_cv_prog_cc_g" >&6; }
3369if test "$ac_test_CFLAGS" = set; then
3370  CFLAGS=$ac_save_CFLAGS
3371elif test $ac_cv_prog_cc_g = yes; then
3372  if test "$GCC" = yes; then
3373    CFLAGS="-g -O2"
3374  else
3375    CFLAGS="-g"
3376  fi
3377else
3378  if test "$GCC" = yes; then
3379    CFLAGS="-O2"
3380  else
3381    CFLAGS=
3382  fi
3383fi
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3385$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3386if ${ac_cv_prog_cc_c89+:} false; then :
3387  $as_echo_n "(cached) " >&6
3388else
3389  ac_cv_prog_cc_c89=no
3390ac_save_CC=$CC
3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393#include <stdarg.h>
3394#include <stdio.h>
3395#include <sys/types.h>
3396#include <sys/stat.h>
3397/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3398struct buf { int x; };
3399FILE * (*rcsopen) (struct buf *, struct stat *, int);
3400static char *e (p, i)
3401     char **p;
3402     int i;
3403{
3404  return p[i];
3405}
3406static char *f (char * (*g) (char **, int), char **p, ...)
3407{
3408  char *s;
3409  va_list v;
3410  va_start (v,p);
3411  s = g (p, va_arg (v,int));
3412  va_end (v);
3413  return s;
3414}
3415
3416/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3417   function prototypes and stuff, but not '\xHH' hex character constants.
3418   These don't provoke an error unfortunately, instead are silently treated
3419   as 'x'.  The following induces an error, until -std is added to get
3420   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3421   array size at least.  It's necessary to write '\x00'==0 to get something
3422   that's true only with -std.  */
3423int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424
3425/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3426   inside strings and character constants.  */
3427#define FOO(x) 'x'
3428int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3429
3430int test (int i, double x);
3431struct s1 {int (*f) (int a);};
3432struct s2 {int (*f) (double a);};
3433int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434int argc;
3435char **argv;
3436int
3437main ()
3438{
3439return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3440  ;
3441  return 0;
3442}
3443_ACEOF
3444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3445	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446do
3447  CC="$ac_save_CC $ac_arg"
3448  if ac_fn_c_try_compile "$LINENO"; then :
3449  ac_cv_prog_cc_c89=$ac_arg
3450fi
3451rm -f core conftest.err conftest.$ac_objext
3452  test "x$ac_cv_prog_cc_c89" != "xno" && break
3453done
3454rm -f conftest.$ac_ext
3455CC=$ac_save_CC
3456
3457fi
3458# AC_CACHE_VAL
3459case "x$ac_cv_prog_cc_c89" in
3460  x)
3461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3462$as_echo "none needed" >&6; } ;;
3463  xno)
3464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3465$as_echo "unsupported" >&6; } ;;
3466  *)
3467    CC="$CC $ac_cv_prog_cc_c89"
3468    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3469$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3470esac
3471if test "x$ac_cv_prog_cc_c89" != xno; then :
3472
3473fi
3474
3475ac_ext=c
3476ac_cpp='$CPP $CPPFLAGS'
3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481depcc="$CC"   am_compiler_list=
3482
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3484$as_echo_n "checking dependency style of $depcc... " >&6; }
3485if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3489  # We make a subdir and do the tests there.  Otherwise we can end up
3490  # making bogus files that we don't know about and never remove.  For
3491  # instance it was reported that on HP-UX the gcc test will end up
3492  # making a dummy file named `D' -- because `-MD' means `put the output
3493  # in D'.
3494  mkdir conftest.dir
3495  # Copy depcomp to subdir because otherwise we won't find it if we're
3496  # using a relative directory.
3497  cp "$am_depcomp" conftest.dir
3498  cd conftest.dir
3499  # We will build objects and dependencies in a subdirectory because
3500  # it helps to detect inapplicable dependency modes.  For instance
3501  # both Tru64's cc and ICC support -MD to output dependencies as a
3502  # side effect of compilation, but ICC will put the dependencies in
3503  # the current directory while Tru64 will put them in the object
3504  # directory.
3505  mkdir sub
3506
3507  am_cv_CC_dependencies_compiler_type=none
3508  if test "$am_compiler_list" = ""; then
3509     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3510  fi
3511  am__universal=false
3512  case " $depcc " in #(
3513     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3514     esac
3515
3516  for depmode in $am_compiler_list; do
3517    # Setup a source with many dependencies, because some compilers
3518    # like to wrap large dependency lists on column 80 (with \), and
3519    # we should not choose a depcomp mode which is confused by this.
3520    #
3521    # We need to recreate these files for each test, as the compiler may
3522    # overwrite some of them when testing with obscure command lines.
3523    # This happens at least with the AIX C compiler.
3524    : > sub/conftest.c
3525    for i in 1 2 3 4 5 6; do
3526      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3527      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3528      # Solaris 8's {/usr,}/bin/sh.
3529      touch sub/conftst$i.h
3530    done
3531    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532
3533    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3534    # mode.  It turns out that the SunPro C++ compiler does not properly
3535    # handle `-M -o', and we need to detect this.  Also, some Intel
3536    # versions had trouble with output in subdirs
3537    am__obj=sub/conftest.${OBJEXT-o}
3538    am__minus_obj="-o $am__obj"
3539    case $depmode in
3540    gcc)
3541      # This depmode causes a compiler race in universal mode.
3542      test "$am__universal" = false || continue
3543      ;;
3544    nosideeffect)
3545      # after this tag, mechanisms are not by side-effect, so they'll
3546      # only be used when explicitly requested
3547      if test "x$enable_dependency_tracking" = xyes; then
3548	continue
3549      else
3550	break
3551      fi
3552      ;;
3553    msvisualcpp | msvcmsys)
3554      # This compiler won't grok `-c -o', but also, the minuso test has
3555      # not run yet.  These depmodes are late enough in the game, and
3556      # so weak that their functioning should not be impacted.
3557      am__obj=conftest.${OBJEXT-o}
3558      am__minus_obj=
3559      ;;
3560    none) break ;;
3561    esac
3562    if depmode=$depmode \
3563       source=sub/conftest.c object=$am__obj \
3564       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3565       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3566         >/dev/null 2>conftest.err &&
3567       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3568       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3569       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3570       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3571      # icc doesn't choke on unknown options, it will just issue warnings
3572      # or remarks (even with -Werror).  So we grep stderr for any message
3573      # that says an option was ignored or not supported.
3574      # When given -MP, icc 7.0 and 7.1 complain thusly:
3575      #   icc: Command line warning: ignoring option '-M'; no argument required
3576      # The diagnosis changed in icc 8.0:
3577      #   icc: Command line remark: option '-MP' not supported
3578      if (grep 'ignoring option' conftest.err ||
3579          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3580        am_cv_CC_dependencies_compiler_type=$depmode
3581        break
3582      fi
3583    fi
3584  done
3585
3586  cd ..
3587  rm -rf conftest.dir
3588else
3589  am_cv_CC_dependencies_compiler_type=none
3590fi
3591
3592fi
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3594$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3595CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3596
3597 if
3598  test "x$enable_dependency_tracking" != xno \
3599  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3600  am__fastdepCC_TRUE=
3601  am__fastdepCC_FALSE='#'
3602else
3603  am__fastdepCC_TRUE='#'
3604  am__fastdepCC_FALSE=
3605fi
3606
3607
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3609$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3610if ${ac_cv_prog_cc_c99+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  ac_cv_prog_cc_c99=no
3614ac_save_CC=$CC
3615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616/* end confdefs.h.  */
3617#include <stdarg.h>
3618#include <stdbool.h>
3619#include <stdlib.h>
3620#include <wchar.h>
3621#include <stdio.h>
3622
3623// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3624#define debug(...) fprintf (stderr, __VA_ARGS__)
3625#define showlist(...) puts (#__VA_ARGS__)
3626#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3627static void
3628test_varargs_macros (void)
3629{
3630  int x = 1234;
3631  int y = 5678;
3632  debug ("Flag");
3633  debug ("X = %d\n", x);
3634  showlist (The first, second, and third items.);
3635  report (x>y, "x is %d but y is %d", x, y);
3636}
3637
3638// Check long long types.
3639#define BIG64 18446744073709551615ull
3640#define BIG32 4294967295ul
3641#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3642#if !BIG_OK
3643  your preprocessor is broken;
3644#endif
3645#if BIG_OK
3646#else
3647  your preprocessor is broken;
3648#endif
3649static long long int bignum = -9223372036854775807LL;
3650static unsigned long long int ubignum = BIG64;
3651
3652struct incomplete_array
3653{
3654  int datasize;
3655  double data[];
3656};
3657
3658struct named_init {
3659  int number;
3660  const wchar_t *name;
3661  double average;
3662};
3663
3664typedef const char *ccp;
3665
3666static inline int
3667test_restrict (ccp restrict text)
3668{
3669  // See if C++-style comments work.
3670  // Iterate through items via the restricted pointer.
3671  // Also check for declarations in for loops.
3672  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3673    continue;
3674  return 0;
3675}
3676
3677// Check varargs and va_copy.
3678static void
3679test_varargs (const char *format, ...)
3680{
3681  va_list args;
3682  va_start (args, format);
3683  va_list args_copy;
3684  va_copy (args_copy, args);
3685
3686  const char *str;
3687  int number;
3688  float fnumber;
3689
3690  while (*format)
3691    {
3692      switch (*format++)
3693	{
3694	case 's': // string
3695	  str = va_arg (args_copy, const char *);
3696	  break;
3697	case 'd': // int
3698	  number = va_arg (args_copy, int);
3699	  break;
3700	case 'f': // float
3701	  fnumber = va_arg (args_copy, double);
3702	  break;
3703	default:
3704	  break;
3705	}
3706    }
3707  va_end (args_copy);
3708  va_end (args);
3709}
3710
3711int
3712main ()
3713{
3714
3715  // Check bool.
3716  _Bool success = false;
3717
3718  // Check restrict.
3719  if (test_restrict ("String literal") == 0)
3720    success = true;
3721  char *restrict newvar = "Another string";
3722
3723  // Check varargs.
3724  test_varargs ("s, d' f .", "string", 65, 34.234);
3725  test_varargs_macros ();
3726
3727  // Check flexible array members.
3728  struct incomplete_array *ia =
3729    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3730  ia->datasize = 10;
3731  for (int i = 0; i < ia->datasize; ++i)
3732    ia->data[i] = i * 1.234;
3733
3734  // Check named initializers.
3735  struct named_init ni = {
3736    .number = 34,
3737    .name = L"Test wide string",
3738    .average = 543.34343,
3739  };
3740
3741  ni.number = 58;
3742
3743  int dynamic_array[ni.number];
3744  dynamic_array[ni.number - 1] = 543;
3745
3746  // work around unused variable warnings
3747  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3748	  || dynamic_array[ni.number - 1] != 543);
3749
3750  ;
3751  return 0;
3752}
3753_ACEOF
3754for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3755do
3756  CC="$ac_save_CC $ac_arg"
3757  if ac_fn_c_try_compile "$LINENO"; then :
3758  ac_cv_prog_cc_c99=$ac_arg
3759fi
3760rm -f core conftest.err conftest.$ac_objext
3761  test "x$ac_cv_prog_cc_c99" != "xno" && break
3762done
3763rm -f conftest.$ac_ext
3764CC=$ac_save_CC
3765
3766fi
3767# AC_CACHE_VAL
3768case "x$ac_cv_prog_cc_c99" in
3769  x)
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3771$as_echo "none needed" >&6; } ;;
3772  xno)
3773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3774$as_echo "unsupported" >&6; } ;;
3775  *)
3776    CC="$CC $ac_cv_prog_cc_c99"
3777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3778$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3779esac
3780if test "x$ac_cv_prog_cc_c99" != xno; then :
3781
3782fi
3783
3784
3785
3786ac_ext=c
3787ac_cpp='$CPP $CPPFLAGS'
3788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3792$as_echo_n "checking how to run the C preprocessor... " >&6; }
3793# On Suns, sometimes $CPP names a directory.
3794if test -n "$CPP" && test -d "$CPP"; then
3795  CPP=
3796fi
3797if test -z "$CPP"; then
3798  if ${ac_cv_prog_CPP+:} false; then :
3799  $as_echo_n "(cached) " >&6
3800else
3801      # Double quotes because CPP needs to be expanded
3802    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3803    do
3804      ac_preproc_ok=false
3805for ac_c_preproc_warn_flag in '' yes
3806do
3807  # Use a header file that comes with gcc, so configuring glibc
3808  # with a fresh cross-compiler works.
3809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3810  # <limits.h> exists even on freestanding compilers.
3811  # On the NeXT, cc -E runs the code through the compiler's parser,
3812  # not just through cpp. "Syntax error" is here to catch this case.
3813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h.  */
3815#ifdef __STDC__
3816# include <limits.h>
3817#else
3818# include <assert.h>
3819#endif
3820		     Syntax error
3821_ACEOF
3822if ac_fn_c_try_cpp "$LINENO"; then :
3823
3824else
3825  # Broken: fails on valid input.
3826continue
3827fi
3828rm -f conftest.err conftest.i conftest.$ac_ext
3829
3830  # OK, works on sane cases.  Now check whether nonexistent headers
3831  # can be detected and how.
3832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834#include <ac_nonexistent.h>
3835_ACEOF
3836if ac_fn_c_try_cpp "$LINENO"; then :
3837  # Broken: success on invalid input.
3838continue
3839else
3840  # Passes both tests.
3841ac_preproc_ok=:
3842break
3843fi
3844rm -f conftest.err conftest.i conftest.$ac_ext
3845
3846done
3847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3848rm -f conftest.i conftest.err conftest.$ac_ext
3849if $ac_preproc_ok; then :
3850  break
3851fi
3852
3853    done
3854    ac_cv_prog_CPP=$CPP
3855
3856fi
3857  CPP=$ac_cv_prog_CPP
3858else
3859  ac_cv_prog_CPP=$CPP
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3862$as_echo "$CPP" >&6; }
3863ac_preproc_ok=false
3864for ac_c_preproc_warn_flag in '' yes
3865do
3866  # Use a header file that comes with gcc, so configuring glibc
3867  # with a fresh cross-compiler works.
3868  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3869  # <limits.h> exists even on freestanding compilers.
3870  # On the NeXT, cc -E runs the code through the compiler's parser,
3871  # not just through cpp. "Syntax error" is here to catch this case.
3872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874#ifdef __STDC__
3875# include <limits.h>
3876#else
3877# include <assert.h>
3878#endif
3879		     Syntax error
3880_ACEOF
3881if ac_fn_c_try_cpp "$LINENO"; then :
3882
3883else
3884  # Broken: fails on valid input.
3885continue
3886fi
3887rm -f conftest.err conftest.i conftest.$ac_ext
3888
3889  # OK, works on sane cases.  Now check whether nonexistent headers
3890  # can be detected and how.
3891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h.  */
3893#include <ac_nonexistent.h>
3894_ACEOF
3895if ac_fn_c_try_cpp "$LINENO"; then :
3896  # Broken: success on invalid input.
3897continue
3898else
3899  # Passes both tests.
3900ac_preproc_ok=:
3901break
3902fi
3903rm -f conftest.err conftest.i conftest.$ac_ext
3904
3905done
3906# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3907rm -f conftest.i conftest.err conftest.$ac_ext
3908if $ac_preproc_ok; then :
3909
3910else
3911  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3914See \`config.log' for more details" "$LINENO" 5; }
3915fi
3916
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3925$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3926if ${ac_cv_path_GREP+:} false; then :
3927  $as_echo_n "(cached) " >&6
3928else
3929  if test -z "$GREP"; then
3930  ac_path_GREP_found=false
3931  # Loop through the user's path and test for each of PROGNAME-LIST
3932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3934do
3935  IFS=$as_save_IFS
3936  test -z "$as_dir" && as_dir=.
3937    for ac_prog in grep ggrep; do
3938    for ac_exec_ext in '' $ac_executable_extensions; do
3939      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3940      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3941# Check for GNU ac_path_GREP and select it if it is found.
3942  # Check for GNU $ac_path_GREP
3943case `"$ac_path_GREP" --version 2>&1` in
3944*GNU*)
3945  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3946*)
3947  ac_count=0
3948  $as_echo_n 0123456789 >"conftest.in"
3949  while :
3950  do
3951    cat "conftest.in" "conftest.in" >"conftest.tmp"
3952    mv "conftest.tmp" "conftest.in"
3953    cp "conftest.in" "conftest.nl"
3954    $as_echo 'GREP' >> "conftest.nl"
3955    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3956    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3957    as_fn_arith $ac_count + 1 && ac_count=$as_val
3958    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3959      # Best one so far, save it but keep looking for a better one
3960      ac_cv_path_GREP="$ac_path_GREP"
3961      ac_path_GREP_max=$ac_count
3962    fi
3963    # 10*(2^10) chars as input seems more than enough
3964    test $ac_count -gt 10 && break
3965  done
3966  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3967esac
3968
3969      $ac_path_GREP_found && break 3
3970    done
3971  done
3972  done
3973IFS=$as_save_IFS
3974  if test -z "$ac_cv_path_GREP"; then
3975    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3976  fi
3977else
3978  ac_cv_path_GREP=$GREP
3979fi
3980
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3983$as_echo "$ac_cv_path_GREP" >&6; }
3984 GREP="$ac_cv_path_GREP"
3985
3986
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3988$as_echo_n "checking for egrep... " >&6; }
3989if ${ac_cv_path_EGREP+:} false; then :
3990  $as_echo_n "(cached) " >&6
3991else
3992  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3993   then ac_cv_path_EGREP="$GREP -E"
3994   else
3995     if test -z "$EGREP"; then
3996  ac_path_EGREP_found=false
3997  # Loop through the user's path and test for each of PROGNAME-LIST
3998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000do
4001  IFS=$as_save_IFS
4002  test -z "$as_dir" && as_dir=.
4003    for ac_prog in egrep; do
4004    for ac_exec_ext in '' $ac_executable_extensions; do
4005      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4006      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4007# Check for GNU ac_path_EGREP and select it if it is found.
4008  # Check for GNU $ac_path_EGREP
4009case `"$ac_path_EGREP" --version 2>&1` in
4010*GNU*)
4011  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4012*)
4013  ac_count=0
4014  $as_echo_n 0123456789 >"conftest.in"
4015  while :
4016  do
4017    cat "conftest.in" "conftest.in" >"conftest.tmp"
4018    mv "conftest.tmp" "conftest.in"
4019    cp "conftest.in" "conftest.nl"
4020    $as_echo 'EGREP' >> "conftest.nl"
4021    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4022    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4023    as_fn_arith $ac_count + 1 && ac_count=$as_val
4024    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4025      # Best one so far, save it but keep looking for a better one
4026      ac_cv_path_EGREP="$ac_path_EGREP"
4027      ac_path_EGREP_max=$ac_count
4028    fi
4029    # 10*(2^10) chars as input seems more than enough
4030    test $ac_count -gt 10 && break
4031  done
4032  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033esac
4034
4035      $ac_path_EGREP_found && break 3
4036    done
4037  done
4038  done
4039IFS=$as_save_IFS
4040  if test -z "$ac_cv_path_EGREP"; then
4041    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042  fi
4043else
4044  ac_cv_path_EGREP=$EGREP
4045fi
4046
4047   fi
4048fi
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4050$as_echo "$ac_cv_path_EGREP" >&6; }
4051 EGREP="$ac_cv_path_EGREP"
4052
4053
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4055$as_echo_n "checking for ANSI C header files... " >&6; }
4056if ${ac_cv_header_stdc+:} false; then :
4057  $as_echo_n "(cached) " >&6
4058else
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061#include <stdlib.h>
4062#include <stdarg.h>
4063#include <string.h>
4064#include <float.h>
4065
4066int
4067main ()
4068{
4069
4070  ;
4071  return 0;
4072}
4073_ACEOF
4074if ac_fn_c_try_compile "$LINENO"; then :
4075  ac_cv_header_stdc=yes
4076else
4077  ac_cv_header_stdc=no
4078fi
4079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080
4081if test $ac_cv_header_stdc = yes; then
4082  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085#include <string.h>
4086
4087_ACEOF
4088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4089  $EGREP "memchr" >/dev/null 2>&1; then :
4090
4091else
4092  ac_cv_header_stdc=no
4093fi
4094rm -f conftest*
4095
4096fi
4097
4098if test $ac_cv_header_stdc = yes; then
4099  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102#include <stdlib.h>
4103
4104_ACEOF
4105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4106  $EGREP "free" >/dev/null 2>&1; then :
4107
4108else
4109  ac_cv_header_stdc=no
4110fi
4111rm -f conftest*
4112
4113fi
4114
4115if test $ac_cv_header_stdc = yes; then
4116  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4117  if test "$cross_compiling" = yes; then :
4118  :
4119else
4120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122#include <ctype.h>
4123#include <stdlib.h>
4124#if ((' ' & 0x0FF) == 0x020)
4125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4127#else
4128# define ISLOWER(c) \
4129		   (('a' <= (c) && (c) <= 'i') \
4130		     || ('j' <= (c) && (c) <= 'r') \
4131		     || ('s' <= (c) && (c) <= 'z'))
4132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4133#endif
4134
4135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4136int
4137main ()
4138{
4139  int i;
4140  for (i = 0; i < 256; i++)
4141    if (XOR (islower (i), ISLOWER (i))
4142	|| toupper (i) != TOUPPER (i))
4143      return 2;
4144  return 0;
4145}
4146_ACEOF
4147if ac_fn_c_try_run "$LINENO"; then :
4148
4149else
4150  ac_cv_header_stdc=no
4151fi
4152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4153  conftest.$ac_objext conftest.beam conftest.$ac_ext
4154fi
4155
4156fi
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4159$as_echo "$ac_cv_header_stdc" >&6; }
4160if test $ac_cv_header_stdc = yes; then
4161
4162$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4163
4164fi
4165
4166# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4167for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4168		  inttypes.h stdint.h unistd.h
4169do :
4170  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4171ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4172"
4173if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4174  cat >>confdefs.h <<_ACEOF
4175#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4176_ACEOF
4177
4178fi
4179
4180done
4181
4182
4183
4184
4185ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4186if test "x$ac_cv_have_decl___clang__" = xyes; then :
4187  CLANGCC="yes"
4188else
4189  CLANGCC="no"
4190fi
4191
4192ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4193if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4194  INTELCC="yes"
4195else
4196  INTELCC="no"
4197fi
4198
4199ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4200if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4201  SUNCC="yes"
4202else
4203  SUNCC="no"
4204fi
4205
4206
4207
4208
4209if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4210	if test -n "$ac_tool_prefix"; then
4211  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4212set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
4215if ${ac_cv_path_PKG_CONFIG+:} false; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218  case $PKG_CONFIG in
4219  [\\/]* | ?:[\\/]*)
4220  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4221  ;;
4222  *)
4223  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226  IFS=$as_save_IFS
4227  test -z "$as_dir" && as_dir=.
4228    for ac_exec_ext in '' $ac_executable_extensions; do
4229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4231    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232    break 2
4233  fi
4234done
4235  done
4236IFS=$as_save_IFS
4237
4238  ;;
4239esac
4240fi
4241PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4242if test -n "$PKG_CONFIG"; then
4243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4244$as_echo "$PKG_CONFIG" >&6; }
4245else
4246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247$as_echo "no" >&6; }
4248fi
4249
4250
4251fi
4252if test -z "$ac_cv_path_PKG_CONFIG"; then
4253  ac_pt_PKG_CONFIG=$PKG_CONFIG
4254  # Extract the first word of "pkg-config", so it can be a program name with args.
4255set dummy pkg-config; ac_word=$2
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257$as_echo_n "checking for $ac_word... " >&6; }
4258if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  case $ac_pt_PKG_CONFIG in
4262  [\\/]* | ?:[\\/]*)
4263  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4264  ;;
4265  *)
4266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    for ac_exec_ext in '' $ac_executable_extensions; do
4272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275    break 2
4276  fi
4277done
4278  done
4279IFS=$as_save_IFS
4280
4281  ;;
4282esac
4283fi
4284ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4285if test -n "$ac_pt_PKG_CONFIG"; then
4286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4287$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4288else
4289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292
4293  if test "x$ac_pt_PKG_CONFIG" = x; then
4294    PKG_CONFIG=""
4295  else
4296    case $cross_compiling:$ac_tool_warned in
4297yes:)
4298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4300ac_tool_warned=yes ;;
4301esac
4302    PKG_CONFIG=$ac_pt_PKG_CONFIG
4303  fi
4304else
4305  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4306fi
4307
4308fi
4309if test -n "$PKG_CONFIG"; then
4310	_pkg_min_version=0.9.0
4311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4312$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4313	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315$as_echo "yes" >&6; }
4316	else
4317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
4319		PKG_CONFIG=""
4320	fi
4321
4322fi
4323# Make sure we can run config.sub.
4324$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4325  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4328$as_echo_n "checking build system type... " >&6; }
4329if ${ac_cv_build+:} false; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  ac_build_alias=$build_alias
4333test "x$ac_build_alias" = x &&
4334  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4335test "x$ac_build_alias" = x &&
4336  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4337ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4338  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4339
4340fi
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4342$as_echo "$ac_cv_build" >&6; }
4343case $ac_cv_build in
4344*-*-*) ;;
4345*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4346esac
4347build=$ac_cv_build
4348ac_save_IFS=$IFS; IFS='-'
4349set x $ac_cv_build
4350shift
4351build_cpu=$1
4352build_vendor=$2
4353shift; shift
4354# Remember, the first character of IFS is used to create $*,
4355# except with old shells:
4356build_os=$*
4357IFS=$ac_save_IFS
4358case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4359
4360
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4362$as_echo_n "checking host system type... " >&6; }
4363if ${ac_cv_host+:} false; then :
4364  $as_echo_n "(cached) " >&6
4365else
4366  if test "x$host_alias" = x; then
4367  ac_cv_host=$ac_cv_build
4368else
4369  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4370    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4371fi
4372
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4375$as_echo "$ac_cv_host" >&6; }
4376case $ac_cv_host in
4377*-*-*) ;;
4378*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4379esac
4380host=$ac_cv_host
4381ac_save_IFS=$IFS; IFS='-'
4382set x $ac_cv_host
4383shift
4384host_cpu=$1
4385host_vendor=$2
4386shift; shift
4387# Remember, the first character of IFS is used to create $*,
4388# except with old shells:
4389host_os=$*
4390IFS=$ac_save_IFS
4391case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4392
4393
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4395$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4396if ${ac_cv_path_SED+:} false; then :
4397  $as_echo_n "(cached) " >&6
4398else
4399            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4400     for ac_i in 1 2 3 4 5 6 7; do
4401       ac_script="$ac_script$as_nl$ac_script"
4402     done
4403     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4404     { ac_script=; unset ac_script;}
4405     if test -z "$SED"; then
4406  ac_path_SED_found=false
4407  # Loop through the user's path and test for each of PROGNAME-LIST
4408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411  IFS=$as_save_IFS
4412  test -z "$as_dir" && as_dir=.
4413    for ac_prog in sed gsed; do
4414    for ac_exec_ext in '' $ac_executable_extensions; do
4415      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4416      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4417# Check for GNU ac_path_SED and select it if it is found.
4418  # Check for GNU $ac_path_SED
4419case `"$ac_path_SED" --version 2>&1` in
4420*GNU*)
4421  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4422*)
4423  ac_count=0
4424  $as_echo_n 0123456789 >"conftest.in"
4425  while :
4426  do
4427    cat "conftest.in" "conftest.in" >"conftest.tmp"
4428    mv "conftest.tmp" "conftest.in"
4429    cp "conftest.in" "conftest.nl"
4430    $as_echo '' >> "conftest.nl"
4431    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433    as_fn_arith $ac_count + 1 && ac_count=$as_val
4434    if test $ac_count -gt ${ac_path_SED_max-0}; then
4435      # Best one so far, save it but keep looking for a better one
4436      ac_cv_path_SED="$ac_path_SED"
4437      ac_path_SED_max=$ac_count
4438    fi
4439    # 10*(2^10) chars as input seems more than enough
4440    test $ac_count -gt 10 && break
4441  done
4442  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443esac
4444
4445      $ac_path_SED_found && break 3
4446    done
4447  done
4448  done
4449IFS=$as_save_IFS
4450  if test -z "$ac_cv_path_SED"; then
4451    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4452  fi
4453else
4454  ac_cv_path_SED=$SED
4455fi
4456
4457fi
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4459$as_echo "$ac_cv_path_SED" >&6; }
4460 SED="$ac_cv_path_SED"
4461  rm -f conftest.sed
4462
4463
4464
4465
4466
4467
4468# Check whether --enable-selective-werror was given.
4469if test "${enable_selective_werror+set}" = set; then :
4470  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4471else
4472  SELECTIVE_WERROR=yes
4473fi
4474
4475
4476# -v is too short to test reliably with XORG_TESTSET_CFLAG
4477if test "x$SUNCC" = "xyes"; then
4478    BASE_CFLAGS="-v"
4479else
4480    BASE_CFLAGS=""
4481fi
4482
4483# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4484
4485
4486
4487
4488
4489xorg_testset_save_CFLAGS="$CFLAGS"
4490
4491if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4496  $as_echo_n "(cached) " >&6
4497else
4498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499/* end confdefs.h.  */
4500int i;
4501_ACEOF
4502if ac_fn_c_try_compile "$LINENO"; then :
4503  xorg_cv_cc_flag_unknown_warning_option=yes
4504else
4505  xorg_cv_cc_flag_unknown_warning_option=no
4506fi
4507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4511	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4512	CFLAGS="$xorg_testset_save_CFLAGS"
4513fi
4514
4515if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4516	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4518	fi
4519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4523  $as_echo_n "(cached) " >&6
4524else
4525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527int i;
4528_ACEOF
4529if ac_fn_c_try_compile "$LINENO"; then :
4530  xorg_cv_cc_flag_unused_command_line_argument=yes
4531else
4532  xorg_cv_cc_flag_unused_command_line_argument=no
4533fi
4534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4538	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4539	CFLAGS="$xorg_testset_save_CFLAGS"
4540fi
4541
4542found="no"
4543
4544	if test $found = "no" ; then
4545		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4547		fi
4548
4549		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4551		fi
4552
4553		CFLAGS="$CFLAGS -Wall"
4554
4555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4556$as_echo_n "checking if $CC supports -Wall... " >&6; }
4557		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4558		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4559  $as_echo_n "(cached) " >&6
4560else
4561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h.  */
4563int i;
4564int
4565main ()
4566{
4567
4568  ;
4569  return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_link "$LINENO"; then :
4573  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4574else
4575  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4576fi
4577rm -f core conftest.err conftest.$ac_objext \
4578    conftest$ac_exeext conftest.$ac_ext
4579fi
4580
4581
4582		CFLAGS="$xorg_testset_save_CFLAGS"
4583
4584		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4586$as_echo "$supported" >&6; }
4587		if test "$supported" = "yes" ; then
4588			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4589			found="yes"
4590		fi
4591	fi
4592
4593
4594
4595
4596
4597
4598
4599xorg_testset_save_CFLAGS="$CFLAGS"
4600
4601if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4602	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4603	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4604$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4605if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h.  */
4610int i;
4611_ACEOF
4612if ac_fn_c_try_compile "$LINENO"; then :
4613  xorg_cv_cc_flag_unknown_warning_option=yes
4614else
4615  xorg_cv_cc_flag_unknown_warning_option=no
4616fi
4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618fi
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4620$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4621	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4622	CFLAGS="$xorg_testset_save_CFLAGS"
4623fi
4624
4625if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4626	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4627		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4628	fi
4629	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4631$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4632if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4633  $as_echo_n "(cached) " >&6
4634else
4635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h.  */
4637int i;
4638_ACEOF
4639if ac_fn_c_try_compile "$LINENO"; then :
4640  xorg_cv_cc_flag_unused_command_line_argument=yes
4641else
4642  xorg_cv_cc_flag_unused_command_line_argument=no
4643fi
4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4647$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4648	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4649	CFLAGS="$xorg_testset_save_CFLAGS"
4650fi
4651
4652found="no"
4653
4654	if test $found = "no" ; then
4655		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4656			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4657		fi
4658
4659		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4660			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4661		fi
4662
4663		CFLAGS="$CFLAGS -Wpointer-arith"
4664
4665		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4666$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4667		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4668		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672/* end confdefs.h.  */
4673int i;
4674int
4675main ()
4676{
4677
4678  ;
4679  return 0;
4680}
4681_ACEOF
4682if ac_fn_c_try_link "$LINENO"; then :
4683  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4684else
4685  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4686fi
4687rm -f core conftest.err conftest.$ac_objext \
4688    conftest$ac_exeext conftest.$ac_ext
4689fi
4690
4691
4692		CFLAGS="$xorg_testset_save_CFLAGS"
4693
4694		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4695		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4696$as_echo "$supported" >&6; }
4697		if test "$supported" = "yes" ; then
4698			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4699			found="yes"
4700		fi
4701	fi
4702
4703
4704
4705
4706
4707
4708
4709xorg_testset_save_CFLAGS="$CFLAGS"
4710
4711if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720int i;
4721_ACEOF
4722if ac_fn_c_try_compile "$LINENO"; then :
4723  xorg_cv_cc_flag_unknown_warning_option=yes
4724else
4725  xorg_cv_cc_flag_unknown_warning_option=no
4726fi
4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4731	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4732	CFLAGS="$xorg_testset_save_CFLAGS"
4733fi
4734
4735if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4736	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4738	fi
4739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4743  $as_echo_n "(cached) " >&6
4744else
4745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746/* end confdefs.h.  */
4747int i;
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750  xorg_cv_cc_flag_unused_command_line_argument=yes
4751else
4752  xorg_cv_cc_flag_unused_command_line_argument=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4758	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4759	CFLAGS="$xorg_testset_save_CFLAGS"
4760fi
4761
4762found="no"
4763
4764	if test $found = "no" ; then
4765		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4767		fi
4768
4769		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4771		fi
4772
4773		CFLAGS="$CFLAGS -Wstrict-prototypes"
4774
4775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4776$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4777		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4778		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783int i;
4784int
4785main ()
4786{
4787
4788  ;
4789  return 0;
4790}
4791_ACEOF
4792if ac_fn_c_try_link "$LINENO"; then :
4793  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4794else
4795  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4796fi
4797rm -f core conftest.err conftest.$ac_objext \
4798    conftest$ac_exeext conftest.$ac_ext
4799fi
4800
4801
4802		CFLAGS="$xorg_testset_save_CFLAGS"
4803
4804		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4806$as_echo "$supported" >&6; }
4807		if test "$supported" = "yes" ; then
4808			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4809			found="yes"
4810		fi
4811	fi
4812
4813
4814
4815
4816
4817
4818
4819xorg_testset_save_CFLAGS="$CFLAGS"
4820
4821if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4826  $as_echo_n "(cached) " >&6
4827else
4828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829/* end confdefs.h.  */
4830int i;
4831_ACEOF
4832if ac_fn_c_try_compile "$LINENO"; then :
4833  xorg_cv_cc_flag_unknown_warning_option=yes
4834else
4835  xorg_cv_cc_flag_unknown_warning_option=no
4836fi
4837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838fi
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4841	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4842	CFLAGS="$xorg_testset_save_CFLAGS"
4843fi
4844
4845if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4846	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4848	fi
4849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h.  */
4857int i;
4858_ACEOF
4859if ac_fn_c_try_compile "$LINENO"; then :
4860  xorg_cv_cc_flag_unused_command_line_argument=yes
4861else
4862  xorg_cv_cc_flag_unused_command_line_argument=no
4863fi
4864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4868	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4869	CFLAGS="$xorg_testset_save_CFLAGS"
4870fi
4871
4872found="no"
4873
4874	if test $found = "no" ; then
4875		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877		fi
4878
4879		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4881		fi
4882
4883		CFLAGS="$CFLAGS -Wmissing-prototypes"
4884
4885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4886$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4887		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4888		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4889  $as_echo_n "(cached) " >&6
4890else
4891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h.  */
4893int i;
4894int
4895main ()
4896{
4897
4898  ;
4899  return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_link "$LINENO"; then :
4903  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4904else
4905  eval `$as_echo "$cacheid" | $as_tr_sh`=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext \
4908    conftest$ac_exeext conftest.$ac_ext
4909fi
4910
4911
4912		CFLAGS="$xorg_testset_save_CFLAGS"
4913
4914		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4916$as_echo "$supported" >&6; }
4917		if test "$supported" = "yes" ; then
4918			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4919			found="yes"
4920		fi
4921	fi
4922
4923
4924
4925
4926
4927
4928
4929xorg_testset_save_CFLAGS="$CFLAGS"
4930
4931if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4934$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4935if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
4944else
4945  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
4950$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4951	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4952	CFLAGS="$xorg_testset_save_CFLAGS"
4953fi
4954
4955if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4956	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4957		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4958	fi
4959	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4961$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4962if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967int i;
4968_ACEOF
4969if ac_fn_c_try_compile "$LINENO"; then :
4970  xorg_cv_cc_flag_unused_command_line_argument=yes
4971else
4972  xorg_cv_cc_flag_unused_command_line_argument=no
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4977$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4978	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4979	CFLAGS="$xorg_testset_save_CFLAGS"
4980fi
4981
4982found="no"
4983
4984	if test $found = "no" ; then
4985		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4986			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4987		fi
4988
4989		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4990			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4991		fi
4992
4993		CFLAGS="$CFLAGS -Wmissing-declarations"
4994
4995		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4996$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4997		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
4998		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4999  $as_echo_n "(cached) " >&6
5000else
5001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002/* end confdefs.h.  */
5003int i;
5004int
5005main ()
5006{
5007
5008  ;
5009  return 0;
5010}
5011_ACEOF
5012if ac_fn_c_try_link "$LINENO"; then :
5013  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5014else
5015  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5016fi
5017rm -f core conftest.err conftest.$ac_objext \
5018    conftest$ac_exeext conftest.$ac_ext
5019fi
5020
5021
5022		CFLAGS="$xorg_testset_save_CFLAGS"
5023
5024		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5025		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5026$as_echo "$supported" >&6; }
5027		if test "$supported" = "yes" ; then
5028			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5029			found="yes"
5030		fi
5031	fi
5032
5033
5034
5035
5036
5037
5038
5039xorg_testset_save_CFLAGS="$CFLAGS"
5040
5041if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049/* end confdefs.h.  */
5050int i;
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053  xorg_cv_cc_flag_unknown_warning_option=yes
5054else
5055  xorg_cv_cc_flag_unknown_warning_option=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5061	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5062	CFLAGS="$xorg_testset_save_CFLAGS"
5063fi
5064
5065if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5066	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068	fi
5069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077int i;
5078_ACEOF
5079if ac_fn_c_try_compile "$LINENO"; then :
5080  xorg_cv_cc_flag_unused_command_line_argument=yes
5081else
5082  xorg_cv_cc_flag_unused_command_line_argument=no
5083fi
5084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5088	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5089	CFLAGS="$xorg_testset_save_CFLAGS"
5090fi
5091
5092found="no"
5093
5094	if test $found = "no" ; then
5095		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097		fi
5098
5099		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101		fi
5102
5103		CFLAGS="$CFLAGS -Wnested-externs"
5104
5105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5106$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5107		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5108		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5109  $as_echo_n "(cached) " >&6
5110else
5111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h.  */
5113int i;
5114int
5115main ()
5116{
5117
5118  ;
5119  return 0;
5120}
5121_ACEOF
5122if ac_fn_c_try_link "$LINENO"; then :
5123  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5124else
5125  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext \
5128    conftest$ac_exeext conftest.$ac_ext
5129fi
5130
5131
5132		CFLAGS="$xorg_testset_save_CFLAGS"
5133
5134		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5136$as_echo "$supported" >&6; }
5137		if test "$supported" = "yes" ; then
5138			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5139			found="yes"
5140		fi
5141	fi
5142
5143
5144
5145
5146
5147
5148
5149xorg_testset_save_CFLAGS="$CFLAGS"
5150
5151if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5156  $as_echo_n "(cached) " >&6
5157else
5158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159/* end confdefs.h.  */
5160int i;
5161_ACEOF
5162if ac_fn_c_try_compile "$LINENO"; then :
5163  xorg_cv_cc_flag_unknown_warning_option=yes
5164else
5165  xorg_cv_cc_flag_unknown_warning_option=no
5166fi
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5171	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5172	CFLAGS="$xorg_testset_save_CFLAGS"
5173fi
5174
5175if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5176	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5178	fi
5179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5183  $as_echo_n "(cached) " >&6
5184else
5185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187int i;
5188_ACEOF
5189if ac_fn_c_try_compile "$LINENO"; then :
5190  xorg_cv_cc_flag_unused_command_line_argument=yes
5191else
5192  xorg_cv_cc_flag_unused_command_line_argument=no
5193fi
5194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5198	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5199	CFLAGS="$xorg_testset_save_CFLAGS"
5200fi
5201
5202found="no"
5203
5204	if test $found = "no" ; then
5205		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207		fi
5208
5209		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5211		fi
5212
5213		CFLAGS="$CFLAGS -Wbad-function-cast"
5214
5215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5216$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5217		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5218		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5219  $as_echo_n "(cached) " >&6
5220else
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223int i;
5224int
5225main ()
5226{
5227
5228  ;
5229  return 0;
5230}
5231_ACEOF
5232if ac_fn_c_try_link "$LINENO"; then :
5233  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5234else
5235  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext \
5238    conftest$ac_exeext conftest.$ac_ext
5239fi
5240
5241
5242		CFLAGS="$xorg_testset_save_CFLAGS"
5243
5244		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5246$as_echo "$supported" >&6; }
5247		if test "$supported" = "yes" ; then
5248			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5249			found="yes"
5250		fi
5251	fi
5252
5253
5254
5255
5256
5257
5258
5259xorg_testset_save_CFLAGS="$CFLAGS"
5260
5261if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h.  */
5270int i;
5271_ACEOF
5272if ac_fn_c_try_compile "$LINENO"; then :
5273  xorg_cv_cc_flag_unknown_warning_option=yes
5274else
5275  xorg_cv_cc_flag_unknown_warning_option=no
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278fi
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5281	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5282	CFLAGS="$xorg_testset_save_CFLAGS"
5283fi
5284
5285if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5286	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5288	fi
5289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5293  $as_echo_n "(cached) " >&6
5294else
5295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h.  */
5297int i;
5298_ACEOF
5299if ac_fn_c_try_compile "$LINENO"; then :
5300  xorg_cv_cc_flag_unused_command_line_argument=yes
5301else
5302  xorg_cv_cc_flag_unused_command_line_argument=no
5303fi
5304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305fi
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5308	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5309	CFLAGS="$xorg_testset_save_CFLAGS"
5310fi
5311
5312found="no"
5313
5314	if test $found = "no" ; then
5315		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317		fi
5318
5319		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5321		fi
5322
5323		CFLAGS="$CFLAGS -Wformat=2"
5324
5325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5326$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5327		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5328		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h.  */
5333int i;
5334int
5335main ()
5336{
5337
5338  ;
5339  return 0;
5340}
5341_ACEOF
5342if ac_fn_c_try_link "$LINENO"; then :
5343  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5344else
5345  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5346fi
5347rm -f core conftest.err conftest.$ac_objext \
5348    conftest$ac_exeext conftest.$ac_ext
5349fi
5350
5351
5352		CFLAGS="$xorg_testset_save_CFLAGS"
5353
5354		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5356$as_echo "$supported" >&6; }
5357		if test "$supported" = "yes" ; then
5358			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5359			found="yes"
5360		fi
5361	fi
5362
5363	if test $found = "no" ; then
5364		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366		fi
5367
5368		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370		fi
5371
5372		CFLAGS="$CFLAGS -Wformat"
5373
5374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5375$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5376		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5377		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382int i;
5383int
5384main ()
5385{
5386
5387  ;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_link "$LINENO"; then :
5392  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5393else
5394  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext \
5397    conftest$ac_exeext conftest.$ac_ext
5398fi
5399
5400
5401		CFLAGS="$xorg_testset_save_CFLAGS"
5402
5403		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5405$as_echo "$supported" >&6; }
5406		if test "$supported" = "yes" ; then
5407			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5408			found="yes"
5409		fi
5410	fi
5411
5412
5413
5414
5415
5416
5417
5418xorg_testset_save_CFLAGS="$CFLAGS"
5419
5420if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5425  $as_echo_n "(cached) " >&6
5426else
5427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h.  */
5429int i;
5430_ACEOF
5431if ac_fn_c_try_compile "$LINENO"; then :
5432  xorg_cv_cc_flag_unknown_warning_option=yes
5433else
5434  xorg_cv_cc_flag_unknown_warning_option=no
5435fi
5436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437fi
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5440	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5441	CFLAGS="$xorg_testset_save_CFLAGS"
5442fi
5443
5444if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5445	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5447	fi
5448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int i;
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459  xorg_cv_cc_flag_unused_command_line_argument=yes
5460else
5461  xorg_cv_cc_flag_unused_command_line_argument=no
5462fi
5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5467	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5468	CFLAGS="$xorg_testset_save_CFLAGS"
5469fi
5470
5471found="no"
5472
5473	if test $found = "no" ; then
5474		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5476		fi
5477
5478		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5480		fi
5481
5482		CFLAGS="$CFLAGS -Wold-style-definition"
5483
5484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5485$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5486		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5487		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5488  $as_echo_n "(cached) " >&6
5489else
5490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491/* end confdefs.h.  */
5492int i;
5493int
5494main ()
5495{
5496
5497  ;
5498  return 0;
5499}
5500_ACEOF
5501if ac_fn_c_try_link "$LINENO"; then :
5502  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5503else
5504  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5505fi
5506rm -f core conftest.err conftest.$ac_objext \
5507    conftest$ac_exeext conftest.$ac_ext
5508fi
5509
5510
5511		CFLAGS="$xorg_testset_save_CFLAGS"
5512
5513		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5515$as_echo "$supported" >&6; }
5516		if test "$supported" = "yes" ; then
5517			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5518			found="yes"
5519		fi
5520	fi
5521
5522
5523
5524
5525
5526
5527
5528xorg_testset_save_CFLAGS="$CFLAGS"
5529
5530if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538/* end confdefs.h.  */
5539int i;
5540_ACEOF
5541if ac_fn_c_try_compile "$LINENO"; then :
5542  xorg_cv_cc_flag_unknown_warning_option=yes
5543else
5544  xorg_cv_cc_flag_unknown_warning_option=no
5545fi
5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547fi
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5550	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5551	CFLAGS="$xorg_testset_save_CFLAGS"
5552fi
5553
5554if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5555	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557	fi
5558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566int i;
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"; then :
5569  xorg_cv_cc_flag_unused_command_line_argument=yes
5570else
5571  xorg_cv_cc_flag_unused_command_line_argument=no
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5577	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5578	CFLAGS="$xorg_testset_save_CFLAGS"
5579fi
5580
5581found="no"
5582
5583	if test $found = "no" ; then
5584		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586		fi
5587
5588		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590		fi
5591
5592		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5593
5594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5595$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5596		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5597		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602int i;
5603int
5604main ()
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_link "$LINENO"; then :
5612  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5613else
5614  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5615fi
5616rm -f core conftest.err conftest.$ac_objext \
5617    conftest$ac_exeext conftest.$ac_ext
5618fi
5619
5620
5621		CFLAGS="$xorg_testset_save_CFLAGS"
5622
5623		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5625$as_echo "$supported" >&6; }
5626		if test "$supported" = "yes" ; then
5627			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5628			found="yes"
5629		fi
5630	fi
5631
5632
5633
5634# This chunk adds additional warnings that could catch undesired effects.
5635
5636
5637
5638
5639
5640xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651int i;
5652_ACEOF
5653if ac_fn_c_try_compile "$LINENO"; then :
5654  xorg_cv_cc_flag_unknown_warning_option=yes
5655else
5656  xorg_cv_cc_flag_unknown_warning_option=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5662	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5663	CFLAGS="$xorg_testset_save_CFLAGS"
5664fi
5665
5666if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5667	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5669	fi
5670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679_ACEOF
5680if ac_fn_c_try_compile "$LINENO"; then :
5681  xorg_cv_cc_flag_unused_command_line_argument=yes
5682else
5683  xorg_cv_cc_flag_unused_command_line_argument=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686fi
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5689	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5690	CFLAGS="$xorg_testset_save_CFLAGS"
5691fi
5692
5693found="no"
5694
5695	if test $found = "no" ; then
5696		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698		fi
5699
5700		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702		fi
5703
5704		CFLAGS="$CFLAGS -Wunused"
5705
5706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5707$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5708		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5709		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714int i;
5715int
5716main ()
5717{
5718
5719  ;
5720  return 0;
5721}
5722_ACEOF
5723if ac_fn_c_try_link "$LINENO"; then :
5724  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5725else
5726  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5727fi
5728rm -f core conftest.err conftest.$ac_objext \
5729    conftest$ac_exeext conftest.$ac_ext
5730fi
5731
5732
5733		CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737$as_echo "$supported" >&6; }
5738		if test "$supported" = "yes" ; then
5739			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5740			found="yes"
5741		fi
5742	fi
5743
5744
5745
5746
5747
5748
5749
5750xorg_testset_save_CFLAGS="$CFLAGS"
5751
5752if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789_ACEOF
5790if ac_fn_c_try_compile "$LINENO"; then :
5791  xorg_cv_cc_flag_unused_command_line_argument=yes
5792else
5793  xorg_cv_cc_flag_unused_command_line_argument=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800	CFLAGS="$xorg_testset_save_CFLAGS"
5801fi
5802
5803found="no"
5804
5805	if test $found = "no" ; then
5806		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808		fi
5809
5810		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812		fi
5813
5814		CFLAGS="$CFLAGS -Wuninitialized"
5815
5816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5817$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5818		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5819		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_link "$LINENO"; then :
5834  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5835else
5836  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5837fi
5838rm -f core conftest.err conftest.$ac_objext \
5839    conftest$ac_exeext conftest.$ac_ext
5840fi
5841
5842
5843		CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847$as_echo "$supported" >&6; }
5848		if test "$supported" = "yes" ; then
5849			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5850			found="yes"
5851		fi
5852	fi
5853
5854
5855
5856
5857
5858
5859
5860xorg_testset_save_CFLAGS="$CFLAGS"
5861
5862if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871int i;
5872_ACEOF
5873if ac_fn_c_try_compile "$LINENO"; then :
5874  xorg_cv_cc_flag_unknown_warning_option=yes
5875else
5876  xorg_cv_cc_flag_unknown_warning_option=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5882	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5883	CFLAGS="$xorg_testset_save_CFLAGS"
5884fi
5885
5886if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5887	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889	fi
5890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"; then :
5901  xorg_cv_cc_flag_unused_command_line_argument=yes
5902else
5903  xorg_cv_cc_flag_unused_command_line_argument=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5909	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5910	CFLAGS="$xorg_testset_save_CFLAGS"
5911fi
5912
5913found="no"
5914
5915	if test $found = "no" ; then
5916		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918		fi
5919
5920		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5922		fi
5923
5924		CFLAGS="$CFLAGS -Wshadow"
5925
5926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5927$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5928		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5929		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933/* end confdefs.h.  */
5934int i;
5935int
5936main ()
5937{
5938
5939  ;
5940  return 0;
5941}
5942_ACEOF
5943if ac_fn_c_try_link "$LINENO"; then :
5944  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5945else
5946  eval `$as_echo "$cacheid" | $as_tr_sh`=no
5947fi
5948rm -f core conftest.err conftest.$ac_objext \
5949    conftest$ac_exeext conftest.$ac_ext
5950fi
5951
5952
5953		CFLAGS="$xorg_testset_save_CFLAGS"
5954
5955		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5957$as_echo "$supported" >&6; }
5958		if test "$supported" = "yes" ; then
5959			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5960			found="yes"
5961		fi
5962	fi
5963
5964
5965
5966
5967
5968
5969
5970xorg_testset_save_CFLAGS="$CFLAGS"
5971
5972if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981int i;
5982_ACEOF
5983if ac_fn_c_try_compile "$LINENO"; then :
5984  xorg_cv_cc_flag_unknown_warning_option=yes
5985else
5986  xorg_cv_cc_flag_unknown_warning_option=no
5987fi
5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5992	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5993	CFLAGS="$xorg_testset_save_CFLAGS"
5994fi
5995
5996if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5997	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999	fi
6000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6004  $as_echo_n "(cached) " >&6
6005else
6006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007/* end confdefs.h.  */
6008int i;
6009_ACEOF
6010if ac_fn_c_try_compile "$LINENO"; then :
6011  xorg_cv_cc_flag_unused_command_line_argument=yes
6012else
6013  xorg_cv_cc_flag_unused_command_line_argument=no
6014fi
6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6019	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6020	CFLAGS="$xorg_testset_save_CFLAGS"
6021fi
6022
6023found="no"
6024
6025	if test $found = "no" ; then
6026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028		fi
6029
6030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6032		fi
6033
6034		CFLAGS="$CFLAGS -Wcast-qual"
6035
6036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6037$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6038		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6039		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h.  */
6044int i;
6045int
6046main ()
6047{
6048
6049  ;
6050  return 0;
6051}
6052_ACEOF
6053if ac_fn_c_try_link "$LINENO"; then :
6054  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6055else
6056  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6057fi
6058rm -f core conftest.err conftest.$ac_objext \
6059    conftest$ac_exeext conftest.$ac_ext
6060fi
6061
6062
6063		CFLAGS="$xorg_testset_save_CFLAGS"
6064
6065		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6067$as_echo "$supported" >&6; }
6068		if test "$supported" = "yes" ; then
6069			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6070			found="yes"
6071		fi
6072	fi
6073
6074
6075
6076
6077
6078
6079
6080xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  xorg_cv_cc_flag_unknown_warning_option=yes
6095else
6096  xorg_cv_cc_flag_unknown_warning_option=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103	CFLAGS="$xorg_testset_save_CFLAGS"
6104fi
6105
6106if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6107	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109	fi
6110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121  xorg_cv_cc_flag_unused_command_line_argument=yes
6122else
6123  xorg_cv_cc_flag_unused_command_line_argument=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133found="no"
6134
6135	if test $found = "no" ; then
6136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138		fi
6139
6140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142		fi
6143
6144		CFLAGS="$CFLAGS -Wmissing-noreturn"
6145
6146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6147$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6148		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6149		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154int i;
6155int
6156main ()
6157{
6158
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6165else
6166  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169    conftest$ac_exeext conftest.$ac_ext
6170fi
6171
6172
6173		CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177$as_echo "$supported" >&6; }
6178		if test "$supported" = "yes" ; then
6179			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6180			found="yes"
6181		fi
6182	fi
6183
6184
6185
6186
6187
6188
6189
6190xorg_testset_save_CFLAGS="$CFLAGS"
6191
6192if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6200/* end confdefs.h.  */
6201int i;
6202_ACEOF
6203if ac_fn_c_try_compile "$LINENO"; then :
6204  xorg_cv_cc_flag_unknown_warning_option=yes
6205else
6206  xorg_cv_cc_flag_unknown_warning_option=no
6207fi
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6212	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6213	CFLAGS="$xorg_testset_save_CFLAGS"
6214fi
6215
6216if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6217	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219	fi
6220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"; then :
6231  xorg_cv_cc_flag_unused_command_line_argument=yes
6232else
6233  xorg_cv_cc_flag_unused_command_line_argument=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236fi
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240	CFLAGS="$xorg_testset_save_CFLAGS"
6241fi
6242
6243found="no"
6244
6245	if test $found = "no" ; then
6246		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248		fi
6249
6250		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252		fi
6253
6254		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6255
6256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6257$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6258		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6259		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6260  $as_echo_n "(cached) " >&6
6261else
6262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264int i;
6265int
6266main ()
6267{
6268
6269  ;
6270  return 0;
6271}
6272_ACEOF
6273if ac_fn_c_try_link "$LINENO"; then :
6274  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6275else
6276  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6277fi
6278rm -f core conftest.err conftest.$ac_objext \
6279    conftest$ac_exeext conftest.$ac_ext
6280fi
6281
6282
6283		CFLAGS="$xorg_testset_save_CFLAGS"
6284
6285		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6287$as_echo "$supported" >&6; }
6288		if test "$supported" = "yes" ; then
6289			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6290			found="yes"
6291		fi
6292	fi
6293
6294
6295
6296
6297
6298
6299
6300xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311int i;
6312_ACEOF
6313if ac_fn_c_try_compile "$LINENO"; then :
6314  xorg_cv_cc_flag_unknown_warning_option=yes
6315else
6316  xorg_cv_cc_flag_unknown_warning_option=no
6317fi
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323	CFLAGS="$xorg_testset_save_CFLAGS"
6324fi
6325
6326if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6327	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329	fi
6330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_cv_cc_flag_unused_command_line_argument=yes
6342else
6343  xorg_cv_cc_flag_unused_command_line_argument=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350	CFLAGS="$xorg_testset_save_CFLAGS"
6351fi
6352
6353found="no"
6354
6355	if test $found = "no" ; then
6356		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358		fi
6359
6360		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362		fi
6363
6364		CFLAGS="$CFLAGS -Wredundant-decls"
6365
6366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6367$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6368		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6369		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375int
6376main ()
6377{
6378
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6385else
6386  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext \
6389    conftest$ac_exeext conftest.$ac_ext
6390fi
6391
6392
6393		CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397$as_echo "$supported" >&6; }
6398		if test "$supported" = "yes" ; then
6399			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6400			found="yes"
6401		fi
6402	fi
6403
6404
6405
6406# These are currently disabled because they are noisy.  They will be enabled
6407# in the future once the codebase is sufficiently modernized to silence
6408# them.  For now, I don't want them to drown out the other warnings.
6409# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6410# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6411# XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6412
6413# Turn some warnings into errors, so we don't accidently get successful builds
6414# when there are problems that should be fixed.
6415
6416if test "x$SELECTIVE_WERROR" = "xyes" ; then
6417
6418
6419
6420
6421
6422xorg_testset_save_CFLAGS="$CFLAGS"
6423
6424if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6429  $as_echo_n "(cached) " >&6
6430else
6431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432/* end confdefs.h.  */
6433int i;
6434_ACEOF
6435if ac_fn_c_try_compile "$LINENO"; then :
6436  xorg_cv_cc_flag_unknown_warning_option=yes
6437else
6438  xorg_cv_cc_flag_unknown_warning_option=no
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441fi
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6444	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6445	CFLAGS="$xorg_testset_save_CFLAGS"
6446fi
6447
6448if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6449	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	fi
6452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6456  $as_echo_n "(cached) " >&6
6457else
6458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h.  */
6460int i;
6461_ACEOF
6462if ac_fn_c_try_compile "$LINENO"; then :
6463  xorg_cv_cc_flag_unused_command_line_argument=yes
6464else
6465  xorg_cv_cc_flag_unused_command_line_argument=no
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468fi
6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6471	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6472	CFLAGS="$xorg_testset_save_CFLAGS"
6473fi
6474
6475found="no"
6476
6477	if test $found = "no" ; then
6478		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6480		fi
6481
6482		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484		fi
6485
6486		CFLAGS="$CFLAGS -Werror=implicit"
6487
6488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6489$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6490		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6491		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6492  $as_echo_n "(cached) " >&6
6493else
6494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h.  */
6496int i;
6497int
6498main ()
6499{
6500
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505if ac_fn_c_try_link "$LINENO"; then :
6506  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6507else
6508  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6509fi
6510rm -f core conftest.err conftest.$ac_objext \
6511    conftest$ac_exeext conftest.$ac_ext
6512fi
6513
6514
6515		CFLAGS="$xorg_testset_save_CFLAGS"
6516
6517		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6518		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6519$as_echo "$supported" >&6; }
6520		if test "$supported" = "yes" ; then
6521			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6522			found="yes"
6523		fi
6524	fi
6525
6526	if test $found = "no" ; then
6527		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6528			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529		fi
6530
6531		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6532			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6533		fi
6534
6535		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6536
6537		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6538$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6539		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6540		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h.  */
6545int i;
6546int
6547main ()
6548{
6549
6550  ;
6551  return 0;
6552}
6553_ACEOF
6554if ac_fn_c_try_link "$LINENO"; then :
6555  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6556else
6557  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6558fi
6559rm -f core conftest.err conftest.$ac_objext \
6560    conftest$ac_exeext conftest.$ac_ext
6561fi
6562
6563
6564		CFLAGS="$xorg_testset_save_CFLAGS"
6565
6566		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6567		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6568$as_echo "$supported" >&6; }
6569		if test "$supported" = "yes" ; then
6570			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6571			found="yes"
6572		fi
6573	fi
6574
6575
6576
6577
6578
6579
6580
6581xorg_testset_save_CFLAGS="$CFLAGS"
6582
6583if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6584	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h.  */
6592int i;
6593_ACEOF
6594if ac_fn_c_try_compile "$LINENO"; then :
6595  xorg_cv_cc_flag_unknown_warning_option=yes
6596else
6597  xorg_cv_cc_flag_unknown_warning_option=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6603	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6604	CFLAGS="$xorg_testset_save_CFLAGS"
6605fi
6606
6607if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6608	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610	fi
6611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6612	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619int i;
6620_ACEOF
6621if ac_fn_c_try_compile "$LINENO"; then :
6622  xorg_cv_cc_flag_unused_command_line_argument=yes
6623else
6624  xorg_cv_cc_flag_unused_command_line_argument=no
6625fi
6626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627fi
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6630	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6631	CFLAGS="$xorg_testset_save_CFLAGS"
6632fi
6633
6634found="no"
6635
6636	if test $found = "no" ; then
6637		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6638			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6639		fi
6640
6641		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6642			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6643		fi
6644
6645		CFLAGS="$CFLAGS -Werror=nonnull"
6646
6647		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6648$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6649		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6650		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6651  $as_echo_n "(cached) " >&6
6652else
6653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654/* end confdefs.h.  */
6655int i;
6656int
6657main ()
6658{
6659
6660  ;
6661  return 0;
6662}
6663_ACEOF
6664if ac_fn_c_try_link "$LINENO"; then :
6665  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6666else
6667  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6668fi
6669rm -f core conftest.err conftest.$ac_objext \
6670    conftest$ac_exeext conftest.$ac_ext
6671fi
6672
6673
6674		CFLAGS="$xorg_testset_save_CFLAGS"
6675
6676		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6677		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6678$as_echo "$supported" >&6; }
6679		if test "$supported" = "yes" ; then
6680			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6681			found="yes"
6682		fi
6683	fi
6684
6685
6686
6687
6688
6689
6690
6691xorg_testset_save_CFLAGS="$CFLAGS"
6692
6693if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6698  $as_echo_n "(cached) " >&6
6699else
6700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701/* end confdefs.h.  */
6702int i;
6703_ACEOF
6704if ac_fn_c_try_compile "$LINENO"; then :
6705  xorg_cv_cc_flag_unknown_warning_option=yes
6706else
6707  xorg_cv_cc_flag_unknown_warning_option=no
6708fi
6709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710fi
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6713	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6714	CFLAGS="$xorg_testset_save_CFLAGS"
6715fi
6716
6717if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6718	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6720	fi
6721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730_ACEOF
6731if ac_fn_c_try_compile "$LINENO"; then :
6732  xorg_cv_cc_flag_unused_command_line_argument=yes
6733else
6734  xorg_cv_cc_flag_unused_command_line_argument=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737fi
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741	CFLAGS="$xorg_testset_save_CFLAGS"
6742fi
6743
6744found="no"
6745
6746	if test $found = "no" ; then
6747		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749		fi
6750
6751		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753		fi
6754
6755		CFLAGS="$CFLAGS -Werror=init-self"
6756
6757		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6758$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6759		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6760		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774if ac_fn_c_try_link "$LINENO"; then :
6775  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6776else
6777  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6778fi
6779rm -f core conftest.err conftest.$ac_objext \
6780    conftest$ac_exeext conftest.$ac_ext
6781fi
6782
6783
6784		CFLAGS="$xorg_testset_save_CFLAGS"
6785
6786		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6788$as_echo "$supported" >&6; }
6789		if test "$supported" = "yes" ; then
6790			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6791			found="yes"
6792		fi
6793	fi
6794
6795
6796
6797
6798
6799
6800
6801xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"; then :
6815  xorg_cv_cc_flag_unknown_warning_option=yes
6816else
6817  xorg_cv_cc_flag_unknown_warning_option=no
6818fi
6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824	CFLAGS="$xorg_testset_save_CFLAGS"
6825fi
6826
6827if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6828	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830	fi
6831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839int i;
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842  xorg_cv_cc_flag_unused_command_line_argument=yes
6843else
6844  xorg_cv_cc_flag_unused_command_line_argument=no
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851	CFLAGS="$xorg_testset_save_CFLAGS"
6852fi
6853
6854found="no"
6855
6856	if test $found = "no" ; then
6857		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859		fi
6860
6861		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863		fi
6864
6865		CFLAGS="$CFLAGS -Werror=main"
6866
6867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6868$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6869		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6870		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875int i;
6876int
6877main ()
6878{
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884if ac_fn_c_try_link "$LINENO"; then :
6885  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6886else
6887  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext \
6890    conftest$ac_exeext conftest.$ac_ext
6891fi
6892
6893
6894		CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898$as_echo "$supported" >&6; }
6899		if test "$supported" = "yes" ; then
6900			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6901			found="yes"
6902		fi
6903	fi
6904
6905
6906
6907
6908
6909
6910
6911xorg_testset_save_CFLAGS="$CFLAGS"
6912
6913if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unknown_warning_option=yes
6926else
6927  xorg_cv_cc_flag_unknown_warning_option=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6933	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6938	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940	fi
6941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949int i;
6950_ACEOF
6951if ac_fn_c_try_compile "$LINENO"; then :
6952  xorg_cv_cc_flag_unused_command_line_argument=yes
6953else
6954  xorg_cv_cc_flag_unused_command_line_argument=no
6955fi
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957fi
6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961	CFLAGS="$xorg_testset_save_CFLAGS"
6962fi
6963
6964found="no"
6965
6966	if test $found = "no" ; then
6967		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969		fi
6970
6971		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973		fi
6974
6975		CFLAGS="$CFLAGS -Werror=missing-braces"
6976
6977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6978$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6979		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6980		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985int i;
6986int
6987main ()
6988{
6989
6990  ;
6991  return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_link "$LINENO"; then :
6995  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6996else
6997  eval `$as_echo "$cacheid" | $as_tr_sh`=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext \
7000    conftest$ac_exeext conftest.$ac_ext
7001fi
7002
7003
7004		CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008$as_echo "$supported" >&6; }
7009		if test "$supported" = "yes" ; then
7010			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7011			found="yes"
7012		fi
7013	fi
7014
7015
7016
7017
7018
7019
7020
7021xorg_testset_save_CFLAGS="$CFLAGS"
7022
7023if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h.  */
7032int i;
7033_ACEOF
7034if ac_fn_c_try_compile "$LINENO"; then :
7035  xorg_cv_cc_flag_unknown_warning_option=yes
7036else
7037  xorg_cv_cc_flag_unknown_warning_option=no
7038fi
7039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040fi
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7043	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7044	CFLAGS="$xorg_testset_save_CFLAGS"
7045fi
7046
7047if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7048	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050	fi
7051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059int i;
7060_ACEOF
7061if ac_fn_c_try_compile "$LINENO"; then :
7062  xorg_cv_cc_flag_unused_command_line_argument=yes
7063else
7064  xorg_cv_cc_flag_unused_command_line_argument=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067fi
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7070	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7071	CFLAGS="$xorg_testset_save_CFLAGS"
7072fi
7073
7074found="no"
7075
7076	if test $found = "no" ; then
7077		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079		fi
7080
7081		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083		fi
7084
7085		CFLAGS="$CFLAGS -Werror=sequence-point"
7086
7087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7088$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7089		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7090		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096int
7097main ()
7098{
7099
7100  ;
7101  return 0;
7102}
7103_ACEOF
7104if ac_fn_c_try_link "$LINENO"; then :
7105  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7106else
7107  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7108fi
7109rm -f core conftest.err conftest.$ac_objext \
7110    conftest$ac_exeext conftest.$ac_ext
7111fi
7112
7113
7114		CFLAGS="$xorg_testset_save_CFLAGS"
7115
7116		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7118$as_echo "$supported" >&6; }
7119		if test "$supported" = "yes" ; then
7120			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7121			found="yes"
7122		fi
7123	fi
7124
7125
7126
7127
7128
7129
7130
7131xorg_testset_save_CFLAGS="$CFLAGS"
7132
7133if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7138  $as_echo_n "(cached) " >&6
7139else
7140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"; then :
7145  xorg_cv_cc_flag_unknown_warning_option=yes
7146else
7147  xorg_cv_cc_flag_unknown_warning_option=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7153	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7154	CFLAGS="$xorg_testset_save_CFLAGS"
7155fi
7156
7157if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7158	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7160	fi
7161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7165  $as_echo_n "(cached) " >&6
7166else
7167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168/* end confdefs.h.  */
7169int i;
7170_ACEOF
7171if ac_fn_c_try_compile "$LINENO"; then :
7172  xorg_cv_cc_flag_unused_command_line_argument=yes
7173else
7174  xorg_cv_cc_flag_unused_command_line_argument=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177fi
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7180	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7181	CFLAGS="$xorg_testset_save_CFLAGS"
7182fi
7183
7184found="no"
7185
7186	if test $found = "no" ; then
7187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189		fi
7190
7191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193		fi
7194
7195		CFLAGS="$CFLAGS -Werror=return-type"
7196
7197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7198$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7199		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7200		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7201  $as_echo_n "(cached) " >&6
7202else
7203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204/* end confdefs.h.  */
7205int i;
7206int
7207main ()
7208{
7209
7210  ;
7211  return 0;
7212}
7213_ACEOF
7214if ac_fn_c_try_link "$LINENO"; then :
7215  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7216else
7217  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7218fi
7219rm -f core conftest.err conftest.$ac_objext \
7220    conftest$ac_exeext conftest.$ac_ext
7221fi
7222
7223
7224		CFLAGS="$xorg_testset_save_CFLAGS"
7225
7226		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7228$as_echo "$supported" >&6; }
7229		if test "$supported" = "yes" ; then
7230			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7231			found="yes"
7232		fi
7233	fi
7234
7235	if test $found = "no" ; then
7236		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238		fi
7239
7240		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242		fi
7243
7244		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7245
7246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7247$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7248		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7249		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254int i;
7255int
7256main ()
7257{
7258
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263if ac_fn_c_try_link "$LINENO"; then :
7264  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7265else
7266  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7267fi
7268rm -f core conftest.err conftest.$ac_objext \
7269    conftest$ac_exeext conftest.$ac_ext
7270fi
7271
7272
7273		CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277$as_echo "$supported" >&6; }
7278		if test "$supported" = "yes" ; then
7279			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7280			found="yes"
7281		fi
7282	fi
7283
7284
7285
7286
7287
7288
7289
7290xorg_testset_save_CFLAGS="$CFLAGS"
7291
7292if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300/* end confdefs.h.  */
7301int i;
7302_ACEOF
7303if ac_fn_c_try_compile "$LINENO"; then :
7304  xorg_cv_cc_flag_unknown_warning_option=yes
7305else
7306  xorg_cv_cc_flag_unknown_warning_option=no
7307fi
7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309fi
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7312	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7313	CFLAGS="$xorg_testset_save_CFLAGS"
7314fi
7315
7316if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7317	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7319	fi
7320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7324  $as_echo_n "(cached) " >&6
7325else
7326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327/* end confdefs.h.  */
7328int i;
7329_ACEOF
7330if ac_fn_c_try_compile "$LINENO"; then :
7331  xorg_cv_cc_flag_unused_command_line_argument=yes
7332else
7333  xorg_cv_cc_flag_unused_command_line_argument=no
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7339	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7340	CFLAGS="$xorg_testset_save_CFLAGS"
7341fi
7342
7343found="no"
7344
7345	if test $found = "no" ; then
7346		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7348		fi
7349
7350		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352		fi
7353
7354		CFLAGS="$CFLAGS -Werror=trigraphs"
7355
7356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7357$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7358		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7359		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363/* end confdefs.h.  */
7364int i;
7365int
7366main ()
7367{
7368
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373if ac_fn_c_try_link "$LINENO"; then :
7374  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7375else
7376  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7377fi
7378rm -f core conftest.err conftest.$ac_objext \
7379    conftest$ac_exeext conftest.$ac_ext
7380fi
7381
7382
7383		CFLAGS="$xorg_testset_save_CFLAGS"
7384
7385		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7387$as_echo "$supported" >&6; }
7388		if test "$supported" = "yes" ; then
7389			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7390			found="yes"
7391		fi
7392	fi
7393
7394
7395
7396
7397
7398
7399
7400xorg_testset_save_CFLAGS="$CFLAGS"
7401
7402if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7407  $as_echo_n "(cached) " >&6
7408else
7409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411int i;
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"; then :
7414  xorg_cv_cc_flag_unknown_warning_option=yes
7415else
7416  xorg_cv_cc_flag_unknown_warning_option=no
7417fi
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419fi
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7422	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7423	CFLAGS="$xorg_testset_save_CFLAGS"
7424fi
7425
7426if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7427	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429	fi
7430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7434  $as_echo_n "(cached) " >&6
7435else
7436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437/* end confdefs.h.  */
7438int i;
7439_ACEOF
7440if ac_fn_c_try_compile "$LINENO"; then :
7441  xorg_cv_cc_flag_unused_command_line_argument=yes
7442else
7443  xorg_cv_cc_flag_unused_command_line_argument=no
7444fi
7445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446fi
7447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7449	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7450	CFLAGS="$xorg_testset_save_CFLAGS"
7451fi
7452
7453found="no"
7454
7455	if test $found = "no" ; then
7456		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7458		fi
7459
7460		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462		fi
7463
7464		CFLAGS="$CFLAGS -Werror=array-bounds"
7465
7466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7467$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7468		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7469		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7470  $as_echo_n "(cached) " >&6
7471else
7472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473/* end confdefs.h.  */
7474int i;
7475int
7476main ()
7477{
7478
7479  ;
7480  return 0;
7481}
7482_ACEOF
7483if ac_fn_c_try_link "$LINENO"; then :
7484  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7485else
7486  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7487fi
7488rm -f core conftest.err conftest.$ac_objext \
7489    conftest$ac_exeext conftest.$ac_ext
7490fi
7491
7492
7493		CFLAGS="$xorg_testset_save_CFLAGS"
7494
7495		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7497$as_echo "$supported" >&6; }
7498		if test "$supported" = "yes" ; then
7499			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7500			found="yes"
7501		fi
7502	fi
7503
7504
7505
7506
7507
7508
7509
7510xorg_testset_save_CFLAGS="$CFLAGS"
7511
7512if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7513	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7514	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7515$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7516if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521int i;
7522_ACEOF
7523if ac_fn_c_try_compile "$LINENO"; then :
7524  xorg_cv_cc_flag_unknown_warning_option=yes
7525else
7526  xorg_cv_cc_flag_unknown_warning_option=no
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529fi
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7531$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7532	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7533	CFLAGS="$xorg_testset_save_CFLAGS"
7534fi
7535
7536if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7537	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7538		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539	fi
7540	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7542$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7543if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548int i;
7549_ACEOF
7550if ac_fn_c_try_compile "$LINENO"; then :
7551  xorg_cv_cc_flag_unused_command_line_argument=yes
7552else
7553  xorg_cv_cc_flag_unused_command_line_argument=no
7554fi
7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7558$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7559	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7560	CFLAGS="$xorg_testset_save_CFLAGS"
7561fi
7562
7563found="no"
7564
7565	if test $found = "no" ; then
7566		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7567			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7568		fi
7569
7570		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7571			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572		fi
7573
7574		CFLAGS="$CFLAGS -Werror=write-strings"
7575
7576		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7577$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7578		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7579		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583/* end confdefs.h.  */
7584int i;
7585int
7586main ()
7587{
7588
7589  ;
7590  return 0;
7591}
7592_ACEOF
7593if ac_fn_c_try_link "$LINENO"; then :
7594  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7595else
7596  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7597fi
7598rm -f core conftest.err conftest.$ac_objext \
7599    conftest$ac_exeext conftest.$ac_ext
7600fi
7601
7602
7603		CFLAGS="$xorg_testset_save_CFLAGS"
7604
7605		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7606		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7607$as_echo "$supported" >&6; }
7608		if test "$supported" = "yes" ; then
7609			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7610			found="yes"
7611		fi
7612	fi
7613
7614
7615
7616
7617
7618
7619
7620xorg_testset_save_CFLAGS="$CFLAGS"
7621
7622if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632_ACEOF
7633if ac_fn_c_try_compile "$LINENO"; then :
7634  xorg_cv_cc_flag_unknown_warning_option=yes
7635else
7636  xorg_cv_cc_flag_unknown_warning_option=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643	CFLAGS="$xorg_testset_save_CFLAGS"
7644fi
7645
7646if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7647	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	fi
7650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"; then :
7661  xorg_cv_cc_flag_unused_command_line_argument=yes
7662else
7663  xorg_cv_cc_flag_unused_command_line_argument=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673found="no"
7674
7675	if test $found = "no" ; then
7676		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678		fi
7679
7680		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682		fi
7683
7684		CFLAGS="$CFLAGS -Werror=address"
7685
7686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7687$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7688		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7689		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695int
7696main ()
7697{
7698
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"; then :
7704  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7705else
7706  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext \
7709    conftest$ac_exeext conftest.$ac_ext
7710fi
7711
7712
7713		CFLAGS="$xorg_testset_save_CFLAGS"
7714
7715		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717$as_echo "$supported" >&6; }
7718		if test "$supported" = "yes" ; then
7719			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7720			found="yes"
7721		fi
7722	fi
7723
7724
7725
7726
7727
7728
7729
7730xorg_testset_save_CFLAGS="$CFLAGS"
7731
7732if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7737  $as_echo_n "(cached) " >&6
7738else
7739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740/* end confdefs.h.  */
7741int i;
7742_ACEOF
7743if ac_fn_c_try_compile "$LINENO"; then :
7744  xorg_cv_cc_flag_unknown_warning_option=yes
7745else
7746  xorg_cv_cc_flag_unknown_warning_option=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749fi
7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7752	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7753	CFLAGS="$xorg_testset_save_CFLAGS"
7754fi
7755
7756if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7757	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759	fi
7760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7764  $as_echo_n "(cached) " >&6
7765else
7766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h.  */
7768int i;
7769_ACEOF
7770if ac_fn_c_try_compile "$LINENO"; then :
7771  xorg_cv_cc_flag_unused_command_line_argument=yes
7772else
7773  xorg_cv_cc_flag_unused_command_line_argument=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776fi
7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7779	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7780	CFLAGS="$xorg_testset_save_CFLAGS"
7781fi
7782
7783found="no"
7784
7785	if test $found = "no" ; then
7786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788		fi
7789
7790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7792		fi
7793
7794		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7795
7796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7797$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7798		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7799		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7800  $as_echo_n "(cached) " >&6
7801else
7802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h.  */
7804int i;
7805int
7806main ()
7807{
7808
7809  ;
7810  return 0;
7811}
7812_ACEOF
7813if ac_fn_c_try_link "$LINENO"; then :
7814  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7815else
7816  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7817fi
7818rm -f core conftest.err conftest.$ac_objext \
7819    conftest$ac_exeext conftest.$ac_ext
7820fi
7821
7822
7823		CFLAGS="$xorg_testset_save_CFLAGS"
7824
7825		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7827$as_echo "$supported" >&6; }
7828		if test "$supported" = "yes" ; then
7829			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7830			found="yes"
7831		fi
7832	fi
7833
7834	if test $found = "no" ; then
7835		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837		fi
7838
7839		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841		fi
7842
7843		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7844
7845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7846$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7847		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7848		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854int
7855main ()
7856{
7857
7858  ;
7859  return 0;
7860}
7861_ACEOF
7862if ac_fn_c_try_link "$LINENO"; then :
7863  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7864else
7865  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7866fi
7867rm -f core conftest.err conftest.$ac_objext \
7868    conftest$ac_exeext conftest.$ac_ext
7869fi
7870
7871
7872		CFLAGS="$xorg_testset_save_CFLAGS"
7873
7874		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7876$as_echo "$supported" >&6; }
7877		if test "$supported" = "yes" ; then
7878			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7879			found="yes"
7880		fi
7881	fi
7882
7883
7884
7885
7886
7887
7888
7889xorg_testset_save_CFLAGS="$CFLAGS"
7890
7891if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901_ACEOF
7902if ac_fn_c_try_compile "$LINENO"; then :
7903  xorg_cv_cc_flag_unknown_warning_option=yes
7904else
7905  xorg_cv_cc_flag_unknown_warning_option=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7911	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7912	CFLAGS="$xorg_testset_save_CFLAGS"
7913fi
7914
7915if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7916	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918	fi
7919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928_ACEOF
7929if ac_fn_c_try_compile "$LINENO"; then :
7930  xorg_cv_cc_flag_unused_command_line_argument=yes
7931else
7932  xorg_cv_cc_flag_unused_command_line_argument=no
7933fi
7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7938	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7939	CFLAGS="$xorg_testset_save_CFLAGS"
7940fi
7941
7942found="no"
7943
7944	if test $found = "no" ; then
7945		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947		fi
7948
7949		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7951		fi
7952
7953		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7954
7955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7956$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7957		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7958		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7959  $as_echo_n "(cached) " >&6
7960else
7961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h.  */
7963int i;
7964int
7965main ()
7966{
7967
7968  ;
7969  return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_link "$LINENO"; then :
7973  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7974else
7975  eval `$as_echo "$cacheid" | $as_tr_sh`=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext \
7978    conftest$ac_exeext conftest.$ac_ext
7979fi
7980
7981
7982		CFLAGS="$xorg_testset_save_CFLAGS"
7983
7984		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7986$as_echo "$supported" >&6; }
7987		if test "$supported" = "yes" ; then
7988			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7989			found="yes"
7990		fi
7991	fi
7992
7993 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7994else
7995{ $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
7996$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;}
7997
7998
7999
8000
8001
8002xorg_testset_save_CFLAGS="$CFLAGS"
8003
8004if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8009  $as_echo_n "(cached) " >&6
8010else
8011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012/* end confdefs.h.  */
8013int i;
8014_ACEOF
8015if ac_fn_c_try_compile "$LINENO"; then :
8016  xorg_cv_cc_flag_unknown_warning_option=yes
8017else
8018  xorg_cv_cc_flag_unknown_warning_option=no
8019fi
8020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8024	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8025	CFLAGS="$xorg_testset_save_CFLAGS"
8026fi
8027
8028if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8029	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031	fi
8032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8036  $as_echo_n "(cached) " >&6
8037else
8038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039/* end confdefs.h.  */
8040int i;
8041_ACEOF
8042if ac_fn_c_try_compile "$LINENO"; then :
8043  xorg_cv_cc_flag_unused_command_line_argument=yes
8044else
8045  xorg_cv_cc_flag_unused_command_line_argument=no
8046fi
8047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8051	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8052	CFLAGS="$xorg_testset_save_CFLAGS"
8053fi
8054
8055found="no"
8056
8057	if test $found = "no" ; then
8058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060		fi
8061
8062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064		fi
8065
8066		CFLAGS="$CFLAGS -Wimplicit"
8067
8068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8069$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8070		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8071		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076int i;
8077int
8078main ()
8079{
8080
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085if ac_fn_c_try_link "$LINENO"; then :
8086  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8087else
8088  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8089fi
8090rm -f core conftest.err conftest.$ac_objext \
8091    conftest$ac_exeext conftest.$ac_ext
8092fi
8093
8094
8095		CFLAGS="$xorg_testset_save_CFLAGS"
8096
8097		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8099$as_echo "$supported" >&6; }
8100		if test "$supported" = "yes" ; then
8101			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8102			found="yes"
8103		fi
8104	fi
8105
8106
8107
8108
8109
8110
8111
8112xorg_testset_save_CFLAGS="$CFLAGS"
8113
8114if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122/* end confdefs.h.  */
8123int i;
8124_ACEOF
8125if ac_fn_c_try_compile "$LINENO"; then :
8126  xorg_cv_cc_flag_unknown_warning_option=yes
8127else
8128  xorg_cv_cc_flag_unknown_warning_option=no
8129fi
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131fi
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8134	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8135	CFLAGS="$xorg_testset_save_CFLAGS"
8136fi
8137
8138if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8139	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141	fi
8142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8146  $as_echo_n "(cached) " >&6
8147else
8148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150int i;
8151_ACEOF
8152if ac_fn_c_try_compile "$LINENO"; then :
8153  xorg_cv_cc_flag_unused_command_line_argument=yes
8154else
8155  xorg_cv_cc_flag_unused_command_line_argument=no
8156fi
8157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158fi
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8161	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8162	CFLAGS="$xorg_testset_save_CFLAGS"
8163fi
8164
8165found="no"
8166
8167	if test $found = "no" ; then
8168		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170		fi
8171
8172		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174		fi
8175
8176		CFLAGS="$CFLAGS -Wnonnull"
8177
8178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8179$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8180		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8181		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8182  $as_echo_n "(cached) " >&6
8183else
8184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185/* end confdefs.h.  */
8186int i;
8187int
8188main ()
8189{
8190
8191  ;
8192  return 0;
8193}
8194_ACEOF
8195if ac_fn_c_try_link "$LINENO"; then :
8196  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8197else
8198  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8199fi
8200rm -f core conftest.err conftest.$ac_objext \
8201    conftest$ac_exeext conftest.$ac_ext
8202fi
8203
8204
8205		CFLAGS="$xorg_testset_save_CFLAGS"
8206
8207		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8209$as_echo "$supported" >&6; }
8210		if test "$supported" = "yes" ; then
8211			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8212			found="yes"
8213		fi
8214	fi
8215
8216
8217
8218
8219
8220
8221
8222xorg_testset_save_CFLAGS="$CFLAGS"
8223
8224if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232/* end confdefs.h.  */
8233int i;
8234_ACEOF
8235if ac_fn_c_try_compile "$LINENO"; then :
8236  xorg_cv_cc_flag_unknown_warning_option=yes
8237else
8238  xorg_cv_cc_flag_unknown_warning_option=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241fi
8242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8244	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8245	CFLAGS="$xorg_testset_save_CFLAGS"
8246fi
8247
8248if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8249	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8250		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8251	fi
8252	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h.  */
8260int i;
8261_ACEOF
8262if ac_fn_c_try_compile "$LINENO"; then :
8263  xorg_cv_cc_flag_unused_command_line_argument=yes
8264else
8265  xorg_cv_cc_flag_unused_command_line_argument=no
8266fi
8267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268fi
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8271	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8272	CFLAGS="$xorg_testset_save_CFLAGS"
8273fi
8274
8275found="no"
8276
8277	if test $found = "no" ; then
8278		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8280		fi
8281
8282		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284		fi
8285
8286		CFLAGS="$CFLAGS -Winit-self"
8287
8288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8289$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8290		cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8291		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297int
8298main ()
8299{
8300
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_link "$LINENO"; then :
8306  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8307else
8308  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8309fi
8310rm -f core conftest.err conftest.$ac_objext \
8311    conftest$ac_exeext conftest.$ac_ext
8312fi
8313
8314
8315		CFLAGS="$xorg_testset_save_CFLAGS"
8316
8317		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8319$as_echo "$supported" >&6; }
8320		if test "$supported" = "yes" ; then
8321			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8322			found="yes"
8323		fi
8324	fi
8325
8326
8327
8328
8329
8330
8331
8332xorg_testset_save_CFLAGS="$CFLAGS"
8333
8334if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343int i;
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"; then :
8346  xorg_cv_cc_flag_unknown_warning_option=yes
8347else
8348  xorg_cv_cc_flag_unknown_warning_option=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8354	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8355	CFLAGS="$xorg_testset_save_CFLAGS"
8356fi
8357
8358if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8359	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361	fi
8362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369/* end confdefs.h.  */
8370int i;
8371_ACEOF
8372if ac_fn_c_try_compile "$LINENO"; then :
8373  xorg_cv_cc_flag_unused_command_line_argument=yes
8374else
8375  xorg_cv_cc_flag_unused_command_line_argument=no
8376fi
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8381	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8382	CFLAGS="$xorg_testset_save_CFLAGS"
8383fi
8384
8385found="no"
8386
8387	if test $found = "no" ; then
8388		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390		fi
8391
8392		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394		fi
8395
8396		CFLAGS="$CFLAGS -Wmain"
8397
8398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8399$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8400		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8401		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405/* end confdefs.h.  */
8406int i;
8407int
8408main ()
8409{
8410
8411  ;
8412  return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_link "$LINENO"; then :
8416  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8417else
8418  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8419fi
8420rm -f core conftest.err conftest.$ac_objext \
8421    conftest$ac_exeext conftest.$ac_ext
8422fi
8423
8424
8425		CFLAGS="$xorg_testset_save_CFLAGS"
8426
8427		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8429$as_echo "$supported" >&6; }
8430		if test "$supported" = "yes" ; then
8431			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8432			found="yes"
8433		fi
8434	fi
8435
8436
8437
8438
8439
8440
8441
8442xorg_testset_save_CFLAGS="$CFLAGS"
8443
8444if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454_ACEOF
8455if ac_fn_c_try_compile "$LINENO"; then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480int i;
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"; then :
8483  xorg_cv_cc_flag_unused_command_line_argument=yes
8484else
8485  xorg_cv_cc_flag_unused_command_line_argument=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8491	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495found="no"
8496
8497	if test $found = "no" ; then
8498		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500		fi
8501
8502		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504		fi
8505
8506		CFLAGS="$CFLAGS -Wmissing-braces"
8507
8508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8509$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8510		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8511		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516int i;
8517int
8518main ()
8519{
8520
8521  ;
8522  return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_link "$LINENO"; then :
8526  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8527else
8528  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8529fi
8530rm -f core conftest.err conftest.$ac_objext \
8531    conftest$ac_exeext conftest.$ac_ext
8532fi
8533
8534
8535		CFLAGS="$xorg_testset_save_CFLAGS"
8536
8537		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8539$as_echo "$supported" >&6; }
8540		if test "$supported" = "yes" ; then
8541			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8542			found="yes"
8543		fi
8544	fi
8545
8546
8547
8548
8549
8550
8551
8552xorg_testset_save_CFLAGS="$CFLAGS"
8553
8554if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566  xorg_cv_cc_flag_unknown_warning_option=yes
8567else
8568  xorg_cv_cc_flag_unknown_warning_option=no
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8574	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8579	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581	fi
8582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h.  */
8590int i;
8591_ACEOF
8592if ac_fn_c_try_compile "$LINENO"; then :
8593  xorg_cv_cc_flag_unused_command_line_argument=yes
8594else
8595  xorg_cv_cc_flag_unused_command_line_argument=no
8596fi
8597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598fi
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8601	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8602	CFLAGS="$xorg_testset_save_CFLAGS"
8603fi
8604
8605found="no"
8606
8607	if test $found = "no" ; then
8608		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610		fi
8611
8612		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8614		fi
8615
8616		CFLAGS="$CFLAGS -Wsequence-point"
8617
8618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8619$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8620		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8621		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8622  $as_echo_n "(cached) " >&6
8623else
8624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626int i;
8627int
8628main ()
8629{
8630
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635if ac_fn_c_try_link "$LINENO"; then :
8636  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8637else
8638  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8639fi
8640rm -f core conftest.err conftest.$ac_objext \
8641    conftest$ac_exeext conftest.$ac_ext
8642fi
8643
8644
8645		CFLAGS="$xorg_testset_save_CFLAGS"
8646
8647		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8649$as_echo "$supported" >&6; }
8650		if test "$supported" = "yes" ; then
8651			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8652			found="yes"
8653		fi
8654	fi
8655
8656
8657
8658
8659
8660
8661
8662xorg_testset_save_CFLAGS="$CFLAGS"
8663
8664if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"; then :
8676  xorg_cv_cc_flag_unknown_warning_option=yes
8677else
8678  xorg_cv_cc_flag_unknown_warning_option=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8684	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8685	CFLAGS="$xorg_testset_save_CFLAGS"
8686fi
8687
8688if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8689	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691	fi
8692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8696  $as_echo_n "(cached) " >&6
8697else
8698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699/* end confdefs.h.  */
8700int i;
8701_ACEOF
8702if ac_fn_c_try_compile "$LINENO"; then :
8703  xorg_cv_cc_flag_unused_command_line_argument=yes
8704else
8705  xorg_cv_cc_flag_unused_command_line_argument=no
8706fi
8707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8711	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8712	CFLAGS="$xorg_testset_save_CFLAGS"
8713fi
8714
8715found="no"
8716
8717	if test $found = "no" ; then
8718		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720		fi
8721
8722		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724		fi
8725
8726		CFLAGS="$CFLAGS -Wreturn-type"
8727
8728		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8729$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8730		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8731		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737int
8738main ()
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_link "$LINENO"; then :
8746  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8747else
8748  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8749fi
8750rm -f core conftest.err conftest.$ac_objext \
8751    conftest$ac_exeext conftest.$ac_ext
8752fi
8753
8754
8755		CFLAGS="$xorg_testset_save_CFLAGS"
8756
8757		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759$as_echo "$supported" >&6; }
8760		if test "$supported" = "yes" ; then
8761			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8762			found="yes"
8763		fi
8764	fi
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784_ACEOF
8785if ac_fn_c_try_compile "$LINENO"; then :
8786  xorg_cv_cc_flag_unknown_warning_option=yes
8787else
8788  xorg_cv_cc_flag_unknown_warning_option=no
8789fi
8790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8794	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8795	CFLAGS="$xorg_testset_save_CFLAGS"
8796fi
8797
8798if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8799	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801	fi
8802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8806  $as_echo_n "(cached) " >&6
8807else
8808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809/* end confdefs.h.  */
8810int i;
8811_ACEOF
8812if ac_fn_c_try_compile "$LINENO"; then :
8813  xorg_cv_cc_flag_unused_command_line_argument=yes
8814else
8815  xorg_cv_cc_flag_unused_command_line_argument=no
8816fi
8817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8821	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8822	CFLAGS="$xorg_testset_save_CFLAGS"
8823fi
8824
8825found="no"
8826
8827	if test $found = "no" ; then
8828		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8830		fi
8831
8832		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8834		fi
8835
8836		CFLAGS="$CFLAGS -Wtrigraphs"
8837
8838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8839$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8840		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8841		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8842  $as_echo_n "(cached) " >&6
8843else
8844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845/* end confdefs.h.  */
8846int i;
8847int
8848main ()
8849{
8850
8851  ;
8852  return 0;
8853}
8854_ACEOF
8855if ac_fn_c_try_link "$LINENO"; then :
8856  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8857else
8858  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext \
8861    conftest$ac_exeext conftest.$ac_ext
8862fi
8863
8864
8865		CFLAGS="$xorg_testset_save_CFLAGS"
8866
8867		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8869$as_echo "$supported" >&6; }
8870		if test "$supported" = "yes" ; then
8871			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8872			found="yes"
8873		fi
8874	fi
8875
8876
8877
8878
8879
8880
8881
8882xorg_testset_save_CFLAGS="$CFLAGS"
8883
8884if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h.  */
8893int i;
8894_ACEOF
8895if ac_fn_c_try_compile "$LINENO"; then :
8896  xorg_cv_cc_flag_unknown_warning_option=yes
8897else
8898  xorg_cv_cc_flag_unknown_warning_option=no
8899fi
8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8901fi
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8904	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8905	CFLAGS="$xorg_testset_save_CFLAGS"
8906fi
8907
8908if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8909	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911	fi
8912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921_ACEOF
8922if ac_fn_c_try_compile "$LINENO"; then :
8923  xorg_cv_cc_flag_unused_command_line_argument=yes
8924else
8925  xorg_cv_cc_flag_unused_command_line_argument=no
8926fi
8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8931	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8932	CFLAGS="$xorg_testset_save_CFLAGS"
8933fi
8934
8935found="no"
8936
8937	if test $found = "no" ; then
8938		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940		fi
8941
8942		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8944		fi
8945
8946		CFLAGS="$CFLAGS -Warray-bounds"
8947
8948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8949$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8950		cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8951		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956int i;
8957int
8958main ()
8959{
8960
8961  ;
8962  return 0;
8963}
8964_ACEOF
8965if ac_fn_c_try_link "$LINENO"; then :
8966  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8967else
8968  eval `$as_echo "$cacheid" | $as_tr_sh`=no
8969fi
8970rm -f core conftest.err conftest.$ac_objext \
8971    conftest$ac_exeext conftest.$ac_ext
8972fi
8973
8974
8975		CFLAGS="$xorg_testset_save_CFLAGS"
8976
8977		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8979$as_echo "$supported" >&6; }
8980		if test "$supported" = "yes" ; then
8981			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8982			found="yes"
8983		fi
8984	fi
8985
8986
8987
8988
8989
8990
8991
8992xorg_testset_save_CFLAGS="$CFLAGS"
8993
8994if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8999  $as_echo_n "(cached) " >&6
9000else
9001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9002/* end confdefs.h.  */
9003int i;
9004_ACEOF
9005if ac_fn_c_try_compile "$LINENO"; then :
9006  xorg_cv_cc_flag_unknown_warning_option=yes
9007else
9008  xorg_cv_cc_flag_unknown_warning_option=no
9009fi
9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011fi
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9014	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9015	CFLAGS="$xorg_testset_save_CFLAGS"
9016fi
9017
9018if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9019	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021	fi
9022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030int i;
9031_ACEOF
9032if ac_fn_c_try_compile "$LINENO"; then :
9033  xorg_cv_cc_flag_unused_command_line_argument=yes
9034else
9035  xorg_cv_cc_flag_unused_command_line_argument=no
9036fi
9037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9041	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9042	CFLAGS="$xorg_testset_save_CFLAGS"
9043fi
9044
9045found="no"
9046
9047	if test $found = "no" ; then
9048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050		fi
9051
9052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9054		fi
9055
9056		CFLAGS="$CFLAGS -Wwrite-strings"
9057
9058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9059$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9060		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9061		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9062  $as_echo_n "(cached) " >&6
9063else
9064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065/* end confdefs.h.  */
9066int i;
9067int
9068main ()
9069{
9070
9071  ;
9072  return 0;
9073}
9074_ACEOF
9075if ac_fn_c_try_link "$LINENO"; then :
9076  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9077else
9078  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9079fi
9080rm -f core conftest.err conftest.$ac_objext \
9081    conftest$ac_exeext conftest.$ac_ext
9082fi
9083
9084
9085		CFLAGS="$xorg_testset_save_CFLAGS"
9086
9087		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9089$as_echo "$supported" >&6; }
9090		if test "$supported" = "yes" ; then
9091			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9092			found="yes"
9093		fi
9094	fi
9095
9096
9097
9098
9099
9100
9101
9102xorg_testset_save_CFLAGS="$CFLAGS"
9103
9104if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9105	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9107$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9108if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9109  $as_echo_n "(cached) " >&6
9110else
9111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112/* end confdefs.h.  */
9113int i;
9114_ACEOF
9115if ac_fn_c_try_compile "$LINENO"; then :
9116  xorg_cv_cc_flag_unknown_warning_option=yes
9117else
9118  xorg_cv_cc_flag_unknown_warning_option=no
9119fi
9120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9123$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9124	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9125	CFLAGS="$xorg_testset_save_CFLAGS"
9126fi
9127
9128if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9129	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9130		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9131	fi
9132	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9134$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9135if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9136  $as_echo_n "(cached) " >&6
9137else
9138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h.  */
9140int i;
9141_ACEOF
9142if ac_fn_c_try_compile "$LINENO"; then :
9143  xorg_cv_cc_flag_unused_command_line_argument=yes
9144else
9145  xorg_cv_cc_flag_unused_command_line_argument=no
9146fi
9147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9150$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9151	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9152	CFLAGS="$xorg_testset_save_CFLAGS"
9153fi
9154
9155found="no"
9156
9157	if test $found = "no" ; then
9158		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9160		fi
9161
9162		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164		fi
9165
9166		CFLAGS="$CFLAGS -Waddress"
9167
9168		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9169$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9170		cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9171		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9172  $as_echo_n "(cached) " >&6
9173else
9174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175/* end confdefs.h.  */
9176int i;
9177int
9178main ()
9179{
9180
9181  ;
9182  return 0;
9183}
9184_ACEOF
9185if ac_fn_c_try_link "$LINENO"; then :
9186  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9187else
9188  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9189fi
9190rm -f core conftest.err conftest.$ac_objext \
9191    conftest$ac_exeext conftest.$ac_ext
9192fi
9193
9194
9195		CFLAGS="$xorg_testset_save_CFLAGS"
9196
9197		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9198		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9199$as_echo "$supported" >&6; }
9200		if test "$supported" = "yes" ; then
9201			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9202			found="yes"
9203		fi
9204	fi
9205
9206
9207
9208
9209
9210
9211
9212xorg_testset_save_CFLAGS="$CFLAGS"
9213
9214if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224_ACEOF
9225if ac_fn_c_try_compile "$LINENO"; then :
9226  xorg_cv_cc_flag_unknown_warning_option=yes
9227else
9228  xorg_cv_cc_flag_unknown_warning_option=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231fi
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9234	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9235	CFLAGS="$xorg_testset_save_CFLAGS"
9236fi
9237
9238if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9239	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241	fi
9242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251_ACEOF
9252if ac_fn_c_try_compile "$LINENO"; then :
9253  xorg_cv_cc_flag_unused_command_line_argument=yes
9254else
9255  xorg_cv_cc_flag_unused_command_line_argument=no
9256fi
9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9261	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9262	CFLAGS="$xorg_testset_save_CFLAGS"
9263fi
9264
9265found="no"
9266
9267	if test $found = "no" ; then
9268		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270		fi
9271
9272		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9274		fi
9275
9276		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9277
9278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9279$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9280		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9281		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9282  $as_echo_n "(cached) " >&6
9283else
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287int
9288main ()
9289{
9290
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295if ac_fn_c_try_link "$LINENO"; then :
9296  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9297else
9298  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9299fi
9300rm -f core conftest.err conftest.$ac_objext \
9301    conftest$ac_exeext conftest.$ac_ext
9302fi
9303
9304
9305		CFLAGS="$xorg_testset_save_CFLAGS"
9306
9307		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9309$as_echo "$supported" >&6; }
9310		if test "$supported" = "yes" ; then
9311			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9312			found="yes"
9313		fi
9314	fi
9315
9316
9317
9318
9319
9320
9321
9322xorg_testset_save_CFLAGS="$CFLAGS"
9323
9324if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9329  $as_echo_n "(cached) " >&6
9330else
9331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333int i;
9334_ACEOF
9335if ac_fn_c_try_compile "$LINENO"; then :
9336  xorg_cv_cc_flag_unknown_warning_option=yes
9337else
9338  xorg_cv_cc_flag_unknown_warning_option=no
9339fi
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9344	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9345	CFLAGS="$xorg_testset_save_CFLAGS"
9346fi
9347
9348if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9349	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9351	fi
9352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9356  $as_echo_n "(cached) " >&6
9357else
9358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h.  */
9360int i;
9361_ACEOF
9362if ac_fn_c_try_compile "$LINENO"; then :
9363  xorg_cv_cc_flag_unused_command_line_argument=yes
9364else
9365  xorg_cv_cc_flag_unused_command_line_argument=no
9366fi
9367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368fi
9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9371	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9372	CFLAGS="$xorg_testset_save_CFLAGS"
9373fi
9374
9375found="no"
9376
9377	if test $found = "no" ; then
9378		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9380		fi
9381
9382		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9384		fi
9385
9386		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9387
9388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9389$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9390		cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9391		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9392  $as_echo_n "(cached) " >&6
9393else
9394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h.  */
9396int i;
9397int
9398main ()
9399{
9400
9401  ;
9402  return 0;
9403}
9404_ACEOF
9405if ac_fn_c_try_link "$LINENO"; then :
9406  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9407else
9408  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9409fi
9410rm -f core conftest.err conftest.$ac_objext \
9411    conftest$ac_exeext conftest.$ac_ext
9412fi
9413
9414
9415		CFLAGS="$xorg_testset_save_CFLAGS"
9416
9417		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9419$as_echo "$supported" >&6; }
9420		if test "$supported" = "yes" ; then
9421			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9422			found="yes"
9423		fi
9424	fi
9425
9426
9427fi
9428
9429
9430
9431
9432
9433
9434CWARNFLAGS="$BASE_CFLAGS"
9435if  test "x$GCC" = xyes ; then
9436    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9437fi
9438
9439
9440
9441
9442
9443
9444# Check whether --enable-strict-compilation was given.
9445if test "${enable_strict_compilation+set}" = set; then :
9446  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9447else
9448  STRICT_COMPILE=no
9449fi
9450
9451
9452STRICT_CFLAGS=""
9453
9454
9455
9456
9457
9458xorg_testset_save_CFLAGS="$CFLAGS"
9459
9460if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9463$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9464if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"; then :
9472  xorg_cv_cc_flag_unknown_warning_option=yes
9473else
9474  xorg_cv_cc_flag_unknown_warning_option=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9479$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9480	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9485	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9486		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487	fi
9488	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9490$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9491if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
9500else
9501  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
9506$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9507	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9508	CFLAGS="$xorg_testset_save_CFLAGS"
9509fi
9510
9511found="no"
9512
9513	if test $found = "no" ; then
9514		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9515			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516		fi
9517
9518		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9519			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9520		fi
9521
9522		CFLAGS="$CFLAGS -pedantic"
9523
9524		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9525$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9526		cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9527		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532int i;
9533int
9534main ()
9535{
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541if ac_fn_c_try_link "$LINENO"; then :
9542  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9543else
9544  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548fi
9549
9550
9551		CFLAGS="$xorg_testset_save_CFLAGS"
9552
9553		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9554		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9555$as_echo "$supported" >&6; }
9556		if test "$supported" = "yes" ; then
9557			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9558			found="yes"
9559		fi
9560	fi
9561
9562
9563
9564
9565
9566
9567
9568xorg_testset_save_CFLAGS="$CFLAGS"
9569
9570if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"; then :
9582  xorg_cv_cc_flag_unknown_warning_option=yes
9583else
9584  xorg_cv_cc_flag_unknown_warning_option=no
9585fi
9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9590	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9591	CFLAGS="$xorg_testset_save_CFLAGS"
9592fi
9593
9594if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9595	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597	fi
9598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9602  $as_echo_n "(cached) " >&6
9603else
9604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605/* end confdefs.h.  */
9606int i;
9607_ACEOF
9608if ac_fn_c_try_compile "$LINENO"; then :
9609  xorg_cv_cc_flag_unused_command_line_argument=yes
9610else
9611  xorg_cv_cc_flag_unused_command_line_argument=no
9612fi
9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614fi
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9617	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9618	CFLAGS="$xorg_testset_save_CFLAGS"
9619fi
9620
9621found="no"
9622
9623	if test $found = "no" ; then
9624		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626		fi
9627
9628		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630		fi
9631
9632		CFLAGS="$CFLAGS -Werror"
9633
9634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9635$as_echo_n "checking if $CC supports -Werror... " >&6; }
9636		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9637		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h.  */
9642int i;
9643int
9644main ()
9645{
9646
9647  ;
9648  return 0;
9649}
9650_ACEOF
9651if ac_fn_c_try_link "$LINENO"; then :
9652  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9653else
9654  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9655fi
9656rm -f core conftest.err conftest.$ac_objext \
9657    conftest$ac_exeext conftest.$ac_ext
9658fi
9659
9660
9661		CFLAGS="$xorg_testset_save_CFLAGS"
9662
9663		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9665$as_echo "$supported" >&6; }
9666		if test "$supported" = "yes" ; then
9667			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9668			found="yes"
9669		fi
9670	fi
9671
9672	if test $found = "no" ; then
9673		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9675		fi
9676
9677		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679		fi
9680
9681		CFLAGS="$CFLAGS -errwarn"
9682
9683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9684$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9685		cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9686		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691int i;
9692int
9693main ()
9694{
9695
9696  ;
9697  return 0;
9698}
9699_ACEOF
9700if ac_fn_c_try_link "$LINENO"; then :
9701  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9702else
9703  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9704fi
9705rm -f core conftest.err conftest.$ac_objext \
9706    conftest$ac_exeext conftest.$ac_ext
9707fi
9708
9709
9710		CFLAGS="$xorg_testset_save_CFLAGS"
9711
9712		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9714$as_echo "$supported" >&6; }
9715		if test "$supported" = "yes" ; then
9716			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9717			found="yes"
9718		fi
9719	fi
9720
9721
9722
9723# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9724# activate it with -Werror, so we add it here explicitly.
9725
9726
9727
9728
9729
9730xorg_testset_save_CFLAGS="$CFLAGS"
9731
9732if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9733	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742_ACEOF
9743if ac_fn_c_try_compile "$LINENO"; then :
9744  xorg_cv_cc_flag_unknown_warning_option=yes
9745else
9746  xorg_cv_cc_flag_unknown_warning_option=no
9747fi
9748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9752	xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9753	CFLAGS="$xorg_testset_save_CFLAGS"
9754fi
9755
9756if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9757	if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9758		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9759	fi
9760	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9761	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9764  $as_echo_n "(cached) " >&6
9765else
9766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767/* end confdefs.h.  */
9768int i;
9769_ACEOF
9770if ac_fn_c_try_compile "$LINENO"; then :
9771  xorg_cv_cc_flag_unused_command_line_argument=yes
9772else
9773  xorg_cv_cc_flag_unused_command_line_argument=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9776fi
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9779	xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9780	CFLAGS="$xorg_testset_save_CFLAGS"
9781fi
9782
9783found="no"
9784
9785	if test $found = "no" ; then
9786		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9787			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788		fi
9789
9790		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9791			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9792		fi
9793
9794		CFLAGS="$CFLAGS -Werror=attributes"
9795
9796		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9797$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9798		cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9799		if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805int
9806main ()
9807{
9808
9809  ;
9810  return 0;
9811}
9812_ACEOF
9813if ac_fn_c_try_link "$LINENO"; then :
9814  eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9815else
9816  eval `$as_echo "$cacheid" | $as_tr_sh`=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext \
9819    conftest$ac_exeext conftest.$ac_ext
9820fi
9821
9822
9823		CFLAGS="$xorg_testset_save_CFLAGS"
9824
9825		eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9826		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9827$as_echo "$supported" >&6; }
9828		if test "$supported" = "yes" ; then
9829			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9830			found="yes"
9831		fi
9832	fi
9833
9834
9835
9836if test "x$STRICT_COMPILE" = "xyes"; then
9837    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9838    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9839fi
9840
9841
9842
9843
9844
9845
9846cat >>confdefs.h <<_ACEOF
9847#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9848_ACEOF
9849
9850	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9851	if test "x$PVM" = "x"; then
9852		PVM="0"
9853	fi
9854
9855cat >>confdefs.h <<_ACEOF
9856#define PACKAGE_VERSION_MINOR $PVM
9857_ACEOF
9858
9859	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9860	if test "x$PVP" = "x"; then
9861		PVP="0"
9862	fi
9863
9864cat >>confdefs.h <<_ACEOF
9865#define PACKAGE_VERSION_PATCHLEVEL $PVP
9866_ACEOF
9867
9868
9869
9870CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9871mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9872|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9873echo 'git directory not found: installing possibly empty changelog.' >&2)"
9874
9875
9876
9877
9878macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9879INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9880mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9881|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9882echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9883
9884
9885
9886
9887
9888
9889if test x$APP_MAN_SUFFIX = x    ; then
9890    APP_MAN_SUFFIX=1
9891fi
9892if test x$APP_MAN_DIR = x    ; then
9893    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9894fi
9895
9896if test x$LIB_MAN_SUFFIX = x    ; then
9897    LIB_MAN_SUFFIX=3
9898fi
9899if test x$LIB_MAN_DIR = x    ; then
9900    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9901fi
9902
9903if test x$FILE_MAN_SUFFIX = x    ; then
9904    case $host_os in
9905	solaris*)	FILE_MAN_SUFFIX=4  ;;
9906	*)		FILE_MAN_SUFFIX=5  ;;
9907    esac
9908fi
9909if test x$FILE_MAN_DIR = x    ; then
9910    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9911fi
9912
9913if test x$MISC_MAN_SUFFIX = x    ; then
9914    case $host_os in
9915	solaris*)	MISC_MAN_SUFFIX=5  ;;
9916	*)		MISC_MAN_SUFFIX=7  ;;
9917    esac
9918fi
9919if test x$MISC_MAN_DIR = x    ; then
9920    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9921fi
9922
9923if test x$DRIVER_MAN_SUFFIX = x    ; then
9924    case $host_os in
9925	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9926	*)		DRIVER_MAN_SUFFIX=4  ;;
9927    esac
9928fi
9929if test x$DRIVER_MAN_DIR = x    ; then
9930    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9931fi
9932
9933if test x$ADMIN_MAN_SUFFIX = x    ; then
9934    case $host_os in
9935	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9936	*)		ADMIN_MAN_SUFFIX=8  ;;
9937    esac
9938fi
9939if test x$ADMIN_MAN_DIR = x    ; then
9940    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9941fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957XORG_MAN_PAGE="X Version 11"
9958
9959MAN_SUBSTS="\
9960	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9961	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9962	-e 's|__xservername__|Xorg|g' \
9963	-e 's|__xconfigfile__|xorg.conf|g' \
9964	-e 's|__projectroot__|\$(prefix)|g' \
9965	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
9966	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9967	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9968	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9969	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9970	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9971	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9972
9973
9974
9975# Check whether --enable-silent-rules was given.
9976if test "${enable_silent_rules+set}" = set; then :
9977  enableval=$enable_silent_rules;
9978fi
9979
9980case $enable_silent_rules in
9981yes) AM_DEFAULT_VERBOSITY=0;;
9982no)  AM_DEFAULT_VERBOSITY=1;;
9983*)   AM_DEFAULT_VERBOSITY=0;;
9984esac
9985AM_BACKSLASH='\'
9986
9987
9988
9989ac_config_headers="$ac_config_headers config.h"
9990
9991
9992
9993# Internationalization & localization support
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
9995$as_echo_n "checking for library containing gettext... " >&6; }
9996if ${ac_cv_search_gettext+:} false; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  ac_func_search_save_LIBS=$LIBS
10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001/* end confdefs.h.  */
10002
10003/* Override any GCC internal prototype to avoid an error.
10004   Use char because int might match the return type of a GCC
10005   builtin and then its argument prototype would still apply.  */
10006#ifdef __cplusplus
10007extern "C"
10008#endif
10009char gettext ();
10010int
10011main ()
10012{
10013return gettext ();
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018for ac_lib in '' intl; do
10019  if test -z "$ac_lib"; then
10020    ac_res="none required"
10021  else
10022    ac_res=-l$ac_lib
10023    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10024  fi
10025  if ac_fn_c_try_link "$LINENO"; then :
10026  ac_cv_search_gettext=$ac_res
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029    conftest$ac_exeext
10030  if ${ac_cv_search_gettext+:} false; then :
10031  break
10032fi
10033done
10034if ${ac_cv_search_gettext+:} false; then :
10035
10036else
10037  ac_cv_search_gettext=no
10038fi
10039rm conftest.$ac_ext
10040LIBS=$ac_func_search_save_LIBS
10041fi
10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10043$as_echo "$ac_cv_search_gettext" >&6; }
10044ac_res=$ac_cv_search_gettext
10045if test "$ac_res" != no; then :
10046  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10047  USE_GETTEXT="yes"
10048else
10049  USE_GETTEXT="no"
10050fi
10051
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10053$as_echo_n "checking where to install localized messages... " >&6; }
10054
10055# Check whether --with-localedir was given.
10056if test "${with_localedir+set}" = set; then :
10057  withval=$with_localedir; LOCALEDIR=${withval}
10058else
10059  LOCALEDIR=${datadir}/locale
10060fi
10061
10062
10063if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10064        { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10065$as_echo "nowhere" >&6; }
10066        USE_GETTEXT="no"
10067else
10068        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10069$as_echo "$LOCALEDIR" >&6; }
10070fi
10071
10072if test "x$USE_GETTEXT" = "xyes" ; then
10073
10074$as_echo "#define USE_GETTEXT 1" >>confdefs.h
10075
10076fi
10077 if test "x$USE_GETTEXT" = "xyes"; then
10078  USE_GETTEXT_TRUE=
10079  USE_GETTEXT_FALSE='#'
10080else
10081  USE_GETTEXT_TRUE='#'
10082  USE_GETTEXT_FALSE=
10083fi
10084
10085
10086# Checks for pkg-config packages
10087
10088pkg_failed=no
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10090$as_echo_n "checking for XFD... " >&6; }
10091
10092if test -n "$XFD_CFLAGS"; then
10093    pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10094 elif test -n "$PKG_CONFIG"; then
10095    if test -n "$PKG_CONFIG" && \
10096    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu\""; } >&5
10097  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu") 2>&5
10098  ac_status=$?
10099  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100  test $ac_status = 0; }; then
10101  pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu" 2>/dev/null`
10102else
10103  pkg_failed=yes
10104fi
10105 else
10106    pkg_failed=untried
10107fi
10108if test -n "$XFD_LIBS"; then
10109    pkg_cv_XFD_LIBS="$XFD_LIBS"
10110 elif test -n "$PKG_CONFIG"; then
10111    if test -n "$PKG_CONFIG" && \
10112    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu\""; } >&5
10113  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu") 2>&5
10114  ac_status=$?
10115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116  test $ac_status = 0; }; then
10117  pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu" 2>/dev/null`
10118else
10119  pkg_failed=yes
10120fi
10121 else
10122    pkg_failed=untried
10123fi
10124
10125
10126
10127if test $pkg_failed = yes; then
10128
10129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10130        _pkg_short_errors_supported=yes
10131else
10132        _pkg_short_errors_supported=no
10133fi
10134        if test $_pkg_short_errors_supported = yes; then
10135	        XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 fontconfig xft xrender xmu" 2>&1`
10136        else
10137	        XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 fontconfig xft xrender xmu" 2>&1`
10138        fi
10139	# Put the nasty error message in config.log where it belongs
10140	echo "$XFD_PKG_ERRORS" >&5
10141
10142	as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu) were not met:
10143
10144$XFD_PKG_ERRORS
10145
10146Consider adjusting the PKG_CONFIG_PATH environment variable if you
10147installed software in a non-standard prefix.
10148
10149Alternatively, you may set the environment variables XFD_CFLAGS
10150and XFD_LIBS to avoid the need to call pkg-config.
10151See the pkg-config man page for more details.
10152" "$LINENO" 5
10153elif test $pkg_failed = untried; then
10154	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10156as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10157is in your PATH or set the PKG_CONFIG environment variable to the full
10158path to pkg-config.
10159
10160Alternatively, you may set the environment variables XFD_CFLAGS
10161and XFD_LIBS to avoid the need to call pkg-config.
10162See the pkg-config man page for more details.
10163
10164To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10165See \`config.log' for more details" "$LINENO" 5; }
10166else
10167	XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10168	XFD_LIBS=$pkg_cv_XFD_LIBS
10169        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170$as_echo "yes" >&6; }
10171	:
10172fi
10173
10174
10175pkg_failed=no
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10177$as_echo_n "checking for APPDEFS... " >&6; }
10178
10179if test -n "$APPDEFS_CFLAGS"; then
10180    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10181 elif test -n "$PKG_CONFIG"; then
10182    if test -n "$PKG_CONFIG" && \
10183    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10184  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10185  ac_status=$?
10186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10187  test $ac_status = 0; }; then
10188  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10189else
10190  pkg_failed=yes
10191fi
10192 else
10193    pkg_failed=untried
10194fi
10195if test -n "$APPDEFS_LIBS"; then
10196    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10197 elif test -n "$PKG_CONFIG"; then
10198    if test -n "$PKG_CONFIG" && \
10199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10200  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10201  ac_status=$?
10202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10203  test $ac_status = 0; }; then
10204  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10205else
10206  pkg_failed=yes
10207fi
10208 else
10209    pkg_failed=untried
10210fi
10211
10212
10213
10214if test $pkg_failed = yes; then
10215
10216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10217        _pkg_short_errors_supported=yes
10218else
10219        _pkg_short_errors_supported=no
10220fi
10221        if test $_pkg_short_errors_supported = yes; then
10222	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xt" 2>&1`
10223        else
10224	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "xt" 2>&1`
10225        fi
10226	# Put the nasty error message in config.log where it belongs
10227	echo "$APPDEFS_PKG_ERRORS" >&5
10228
10229	as_fn_error $? "Package requirements (xt) were not met:
10230
10231$APPDEFS_PKG_ERRORS
10232
10233Consider adjusting the PKG_CONFIG_PATH environment variable if you
10234installed software in a non-standard prefix.
10235
10236Alternatively, you may set the environment variables APPDEFS_CFLAGS
10237and APPDEFS_LIBS to avoid the need to call pkg-config.
10238See the pkg-config man page for more details.
10239" "$LINENO" 5
10240elif test $pkg_failed = untried; then
10241	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10243as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10244is in your PATH or set the PKG_CONFIG environment variable to the full
10245path to pkg-config.
10246
10247Alternatively, you may set the environment variables APPDEFS_CFLAGS
10248and APPDEFS_LIBS to avoid the need to call pkg-config.
10249See the pkg-config man page for more details.
10250
10251To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10252See \`config.log' for more details" "$LINENO" 5; }
10253else
10254	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10255	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10257$as_echo "yes" >&6; }
10258	:
10259fi
10260xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10261
10262# Check whether --with-appdefaultdir was given.
10263if test "${with_appdefaultdir+set}" = set; then :
10264  withval=$with_appdefaultdir; appdefaultdir="$withval"
10265else
10266  appdefaultdir="${xt_appdefaultdir}"
10267fi
10268
10269
10270
10271
10272ac_config_files="$ac_config_files Makefile man/Makefile"
10273
10274cat >confcache <<\_ACEOF
10275# This file is a shell script that caches the results of configure
10276# tests run on this system so they can be shared between configure
10277# scripts and configure runs, see configure's option --config-cache.
10278# It is not useful on other systems.  If it contains results you don't
10279# want to keep, you may remove or edit it.
10280#
10281# config.status only pays attention to the cache file if you give it
10282# the --recheck option to rerun configure.
10283#
10284# `ac_cv_env_foo' variables (set or unset) will be overridden when
10285# loading this file, other *unset* `ac_cv_foo' will be assigned the
10286# following values.
10287
10288_ACEOF
10289
10290# The following way of writing the cache mishandles newlines in values,
10291# but we know of no workaround that is simple, portable, and efficient.
10292# So, we kill variables containing newlines.
10293# Ultrix sh set writes to stderr and can't be redirected directly,
10294# and sets the high bit in the cache file unless we assign to the vars.
10295(
10296  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10297    eval ac_val=\$$ac_var
10298    case $ac_val in #(
10299    *${as_nl}*)
10300      case $ac_var in #(
10301      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10303      esac
10304      case $ac_var in #(
10305      _ | IFS | as_nl) ;; #(
10306      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10307      *) { eval $ac_var=; unset $ac_var;} ;;
10308      esac ;;
10309    esac
10310  done
10311
10312  (set) 2>&1 |
10313    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10314    *${as_nl}ac_space=\ *)
10315      # `set' does not quote correctly, so add quotes: double-quote
10316      # substitution turns \\\\ into \\, and sed turns \\ into \.
10317      sed -n \
10318	"s/'/'\\\\''/g;
10319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10320      ;; #(
10321    *)
10322      # `set' quotes correctly as required by POSIX, so do not add quotes.
10323      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10324      ;;
10325    esac |
10326    sort
10327) |
10328  sed '
10329     /^ac_cv_env_/b end
10330     t clear
10331     :clear
10332     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10333     t end
10334     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10335     :end' >>confcache
10336if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10337  if test -w "$cache_file"; then
10338    if test "x$cache_file" != "x/dev/null"; then
10339      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10340$as_echo "$as_me: updating cache $cache_file" >&6;}
10341      if test ! -f "$cache_file" || test -h "$cache_file"; then
10342	cat confcache >"$cache_file"
10343      else
10344        case $cache_file in #(
10345        */* | ?:*)
10346	  mv -f confcache "$cache_file"$$ &&
10347	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10348        *)
10349	  mv -f confcache "$cache_file" ;;
10350	esac
10351      fi
10352    fi
10353  else
10354    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10355$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10356  fi
10357fi
10358rm -f confcache
10359
10360test "x$prefix" = xNONE && prefix=$ac_default_prefix
10361# Let make expand exec_prefix.
10362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10363
10364DEFS=-DHAVE_CONFIG_H
10365
10366ac_libobjs=
10367ac_ltlibobjs=
10368U=
10369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10370  # 1. Remove the extension, and $U if already installed.
10371  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10372  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10373  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10374  #    will be set to the directory where LIBOBJS objects are built.
10375  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10376  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10377done
10378LIBOBJS=$ac_libobjs
10379
10380LTLIBOBJS=$ac_ltlibobjs
10381
10382
10383 if test -n "$EXEEXT"; then
10384  am__EXEEXT_TRUE=
10385  am__EXEEXT_FALSE='#'
10386else
10387  am__EXEEXT_TRUE='#'
10388  am__EXEEXT_FALSE=
10389fi
10390
10391if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10392  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10393Usually this means the macro was only invoked conditionally." "$LINENO" 5
10394fi
10395if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10396  as_fn_error $? "conditional \"AMDEP\" was never defined.
10397Usually this means the macro was only invoked conditionally." "$LINENO" 5
10398fi
10399if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10400  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10401Usually this means the macro was only invoked conditionally." "$LINENO" 5
10402fi
10403if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
10404  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
10405Usually this means the macro was only invoked conditionally." "$LINENO" 5
10406fi
10407
10408: "${CONFIG_STATUS=./config.status}"
10409ac_write_fail=0
10410ac_clean_files_save=$ac_clean_files
10411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10414as_write_fail=0
10415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10416#! $SHELL
10417# Generated by $as_me.
10418# Run this file to recreate the current configuration.
10419# Compiler output produced by configure, useful for debugging
10420# configure, is in config.log if it exists.
10421
10422debug=false
10423ac_cs_recheck=false
10424ac_cs_silent=false
10425
10426SHELL=\${CONFIG_SHELL-$SHELL}
10427export SHELL
10428_ASEOF
10429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10430## -------------------- ##
10431## M4sh Initialization. ##
10432## -------------------- ##
10433
10434# Be more Bourne compatible
10435DUALCASE=1; export DUALCASE # for MKS sh
10436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10437  emulate sh
10438  NULLCMD=:
10439  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10440  # is contrary to our usage.  Disable this feature.
10441  alias -g '${1+"$@"}'='"$@"'
10442  setopt NO_GLOB_SUBST
10443else
10444  case `(set -o) 2>/dev/null` in #(
10445  *posix*) :
10446    set -o posix ;; #(
10447  *) :
10448     ;;
10449esac
10450fi
10451
10452
10453as_nl='
10454'
10455export as_nl
10456# Printing a long string crashes Solaris 7 /usr/bin/printf.
10457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10460# Prefer a ksh shell builtin over an external printf program on Solaris,
10461# but without wasting forks for bash or zsh.
10462if test -z "$BASH_VERSION$ZSH_VERSION" \
10463    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10464  as_echo='print -r --'
10465  as_echo_n='print -rn --'
10466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10467  as_echo='printf %s\n'
10468  as_echo_n='printf %s'
10469else
10470  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10471    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10472    as_echo_n='/usr/ucb/echo -n'
10473  else
10474    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10475    as_echo_n_body='eval
10476      arg=$1;
10477      case $arg in #(
10478      *"$as_nl"*)
10479	expr "X$arg" : "X\\(.*\\)$as_nl";
10480	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10481      esac;
10482      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10483    '
10484    export as_echo_n_body
10485    as_echo_n='sh -c $as_echo_n_body as_echo'
10486  fi
10487  export as_echo_body
10488  as_echo='sh -c $as_echo_body as_echo'
10489fi
10490
10491# The user is always right.
10492if test "${PATH_SEPARATOR+set}" != set; then
10493  PATH_SEPARATOR=:
10494  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10495    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10496      PATH_SEPARATOR=';'
10497  }
10498fi
10499
10500
10501# IFS
10502# We need space, tab and new line, in precisely that order.  Quoting is
10503# there to prevent editors from complaining about space-tab.
10504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10505# splitting by setting IFS to empty value.)
10506IFS=" ""	$as_nl"
10507
10508# Find who we are.  Look in the path if we contain no directory separator.
10509as_myself=
10510case $0 in #((
10511  *[\\/]* ) as_myself=$0 ;;
10512  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515  IFS=$as_save_IFS
10516  test -z "$as_dir" && as_dir=.
10517    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10518  done
10519IFS=$as_save_IFS
10520
10521     ;;
10522esac
10523# We did not find ourselves, most probably we were run as `sh COMMAND'
10524# in which case we are not to be found in the path.
10525if test "x$as_myself" = x; then
10526  as_myself=$0
10527fi
10528if test ! -f "$as_myself"; then
10529  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10530  exit 1
10531fi
10532
10533# Unset variables that we do not need and which cause bugs (e.g. in
10534# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10535# suppresses any "Segmentation fault" message there.  '((' could
10536# trigger a bug in pdksh 5.2.14.
10537for as_var in BASH_ENV ENV MAIL MAILPATH
10538do eval test x\${$as_var+set} = xset \
10539  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10540done
10541PS1='$ '
10542PS2='> '
10543PS4='+ '
10544
10545# NLS nuisances.
10546LC_ALL=C
10547export LC_ALL
10548LANGUAGE=C
10549export LANGUAGE
10550
10551# CDPATH.
10552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10553
10554
10555# as_fn_error STATUS ERROR [LINENO LOG_FD]
10556# ----------------------------------------
10557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10559# script with STATUS, using 1 if that was 0.
10560as_fn_error ()
10561{
10562  as_status=$1; test $as_status -eq 0 && as_status=1
10563  if test "$4"; then
10564    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10565    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10566  fi
10567  $as_echo "$as_me: error: $2" >&2
10568  as_fn_exit $as_status
10569} # as_fn_error
10570
10571
10572# as_fn_set_status STATUS
10573# -----------------------
10574# Set $? to STATUS, without forking.
10575as_fn_set_status ()
10576{
10577  return $1
10578} # as_fn_set_status
10579
10580# as_fn_exit STATUS
10581# -----------------
10582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10583as_fn_exit ()
10584{
10585  set +e
10586  as_fn_set_status $1
10587  exit $1
10588} # as_fn_exit
10589
10590# as_fn_unset VAR
10591# ---------------
10592# Portably unset VAR.
10593as_fn_unset ()
10594{
10595  { eval $1=; unset $1;}
10596}
10597as_unset=as_fn_unset
10598# as_fn_append VAR VALUE
10599# ----------------------
10600# Append the text in VALUE to the end of the definition contained in VAR. Take
10601# advantage of any shell optimizations that allow amortized linear growth over
10602# repeated appends, instead of the typical quadratic growth present in naive
10603# implementations.
10604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10605  eval 'as_fn_append ()
10606  {
10607    eval $1+=\$2
10608  }'
10609else
10610  as_fn_append ()
10611  {
10612    eval $1=\$$1\$2
10613  }
10614fi # as_fn_append
10615
10616# as_fn_arith ARG...
10617# ------------------
10618# Perform arithmetic evaluation on the ARGs, and store the result in the
10619# global $as_val. Take advantage of shells that can avoid forks. The arguments
10620# must be portable across $(()) and expr.
10621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10622  eval 'as_fn_arith ()
10623  {
10624    as_val=$(( $* ))
10625  }'
10626else
10627  as_fn_arith ()
10628  {
10629    as_val=`expr "$@" || test $? -eq 1`
10630  }
10631fi # as_fn_arith
10632
10633
10634if expr a : '\(a\)' >/dev/null 2>&1 &&
10635   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10636  as_expr=expr
10637else
10638  as_expr=false
10639fi
10640
10641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10642  as_basename=basename
10643else
10644  as_basename=false
10645fi
10646
10647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10648  as_dirname=dirname
10649else
10650  as_dirname=false
10651fi
10652
10653as_me=`$as_basename -- "$0" ||
10654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10655	 X"$0" : 'X\(//\)$' \| \
10656	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10657$as_echo X/"$0" |
10658    sed '/^.*\/\([^/][^/]*\)\/*$/{
10659	    s//\1/
10660	    q
10661	  }
10662	  /^X\/\(\/\/\)$/{
10663	    s//\1/
10664	    q
10665	  }
10666	  /^X\/\(\/\).*/{
10667	    s//\1/
10668	    q
10669	  }
10670	  s/.*/./; q'`
10671
10672# Avoid depending upon Character Ranges.
10673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10676as_cr_digits='0123456789'
10677as_cr_alnum=$as_cr_Letters$as_cr_digits
10678
10679ECHO_C= ECHO_N= ECHO_T=
10680case `echo -n x` in #(((((
10681-n*)
10682  case `echo 'xy\c'` in
10683  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10684  xy)  ECHO_C='\c';;
10685  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10686       ECHO_T='	';;
10687  esac;;
10688*)
10689  ECHO_N='-n';;
10690esac
10691
10692rm -f conf$$ conf$$.exe conf$$.file
10693if test -d conf$$.dir; then
10694  rm -f conf$$.dir/conf$$.file
10695else
10696  rm -f conf$$.dir
10697  mkdir conf$$.dir 2>/dev/null
10698fi
10699if (echo >conf$$.file) 2>/dev/null; then
10700  if ln -s conf$$.file conf$$ 2>/dev/null; then
10701    as_ln_s='ln -s'
10702    # ... but there are two gotchas:
10703    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10704    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10705    # In both cases, we have to default to `cp -p'.
10706    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10707      as_ln_s='cp -p'
10708  elif ln conf$$.file conf$$ 2>/dev/null; then
10709    as_ln_s=ln
10710  else
10711    as_ln_s='cp -p'
10712  fi
10713else
10714  as_ln_s='cp -p'
10715fi
10716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10717rmdir conf$$.dir 2>/dev/null
10718
10719
10720# as_fn_mkdir_p
10721# -------------
10722# Create "$as_dir" as a directory, including parents if necessary.
10723as_fn_mkdir_p ()
10724{
10725
10726  case $as_dir in #(
10727  -*) as_dir=./$as_dir;;
10728  esac
10729  test -d "$as_dir" || eval $as_mkdir_p || {
10730    as_dirs=
10731    while :; do
10732      case $as_dir in #(
10733      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10734      *) as_qdir=$as_dir;;
10735      esac
10736      as_dirs="'$as_qdir' $as_dirs"
10737      as_dir=`$as_dirname -- "$as_dir" ||
10738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10739	 X"$as_dir" : 'X\(//\)[^/]' \| \
10740	 X"$as_dir" : 'X\(//\)$' \| \
10741	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10742$as_echo X"$as_dir" |
10743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10744	    s//\1/
10745	    q
10746	  }
10747	  /^X\(\/\/\)[^/].*/{
10748	    s//\1/
10749	    q
10750	  }
10751	  /^X\(\/\/\)$/{
10752	    s//\1/
10753	    q
10754	  }
10755	  /^X\(\/\).*/{
10756	    s//\1/
10757	    q
10758	  }
10759	  s/.*/./; q'`
10760      test -d "$as_dir" && break
10761    done
10762    test -z "$as_dirs" || eval "mkdir $as_dirs"
10763  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10764
10765
10766} # as_fn_mkdir_p
10767if mkdir -p . 2>/dev/null; then
10768  as_mkdir_p='mkdir -p "$as_dir"'
10769else
10770  test -d ./-p && rmdir ./-p
10771  as_mkdir_p=false
10772fi
10773
10774if test -x / >/dev/null 2>&1; then
10775  as_test_x='test -x'
10776else
10777  if ls -dL / >/dev/null 2>&1; then
10778    as_ls_L_option=L
10779  else
10780    as_ls_L_option=
10781  fi
10782  as_test_x='
10783    eval sh -c '\''
10784      if test -d "$1"; then
10785	test -d "$1/.";
10786      else
10787	case $1 in #(
10788	-*)set "./$1";;
10789	esac;
10790	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10791	???[sx]*):;;*)false;;esac;fi
10792    '\'' sh
10793  '
10794fi
10795as_executable_p=$as_test_x
10796
10797# Sed expression to map a string onto a valid CPP name.
10798as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10799
10800# Sed expression to map a string onto a valid variable name.
10801as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10802
10803
10804exec 6>&1
10805## ----------------------------------- ##
10806## Main body of $CONFIG_STATUS script. ##
10807## ----------------------------------- ##
10808_ASEOF
10809test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10810
10811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10812# Save the log message, to keep $0 and so on meaningful, and to
10813# report actual input values of CONFIG_FILES etc. instead of their
10814# values after options handling.
10815ac_log="
10816This file was extended by xfd $as_me 1.1.1, which was
10817generated by GNU Autoconf 2.68.  Invocation command line was
10818
10819  CONFIG_FILES    = $CONFIG_FILES
10820  CONFIG_HEADERS  = $CONFIG_HEADERS
10821  CONFIG_LINKS    = $CONFIG_LINKS
10822  CONFIG_COMMANDS = $CONFIG_COMMANDS
10823  $ $0 $@
10824
10825on `(hostname || uname -n) 2>/dev/null | sed 1q`
10826"
10827
10828_ACEOF
10829
10830case $ac_config_files in *"
10831"*) set x $ac_config_files; shift; ac_config_files=$*;;
10832esac
10833
10834case $ac_config_headers in *"
10835"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10836esac
10837
10838
10839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10840# Files that config.status was made for.
10841config_files="$ac_config_files"
10842config_headers="$ac_config_headers"
10843config_commands="$ac_config_commands"
10844
10845_ACEOF
10846
10847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10848ac_cs_usage="\
10849\`$as_me' instantiates files and other configuration actions
10850from templates according to the current configuration.  Unless the files
10851and actions are specified as TAGs, all are instantiated by default.
10852
10853Usage: $0 [OPTION]... [TAG]...
10854
10855  -h, --help       print this help, then exit
10856  -V, --version    print version number and configuration settings, then exit
10857      --config     print configuration, then exit
10858  -q, --quiet, --silent
10859                   do not print progress messages
10860  -d, --debug      don't remove temporary files
10861      --recheck    update $as_me by reconfiguring in the same conditions
10862      --file=FILE[:TEMPLATE]
10863                   instantiate the configuration file FILE
10864      --header=FILE[:TEMPLATE]
10865                   instantiate the configuration header FILE
10866
10867Configuration files:
10868$config_files
10869
10870Configuration headers:
10871$config_headers
10872
10873Configuration commands:
10874$config_commands
10875
10876Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10877
10878_ACEOF
10879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10880ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10881ac_cs_version="\\
10882xfd config.status 1.1.1
10883configured by $0, generated by GNU Autoconf 2.68,
10884  with options \\"\$ac_cs_config\\"
10885
10886Copyright (C) 2010 Free Software Foundation, Inc.
10887This config.status script is free software; the Free Software Foundation
10888gives unlimited permission to copy, distribute and modify it."
10889
10890ac_pwd='$ac_pwd'
10891srcdir='$srcdir'
10892INSTALL='$INSTALL'
10893MKDIR_P='$MKDIR_P'
10894AWK='$AWK'
10895test -n "\$AWK" || AWK=awk
10896_ACEOF
10897
10898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10899# The default lists apply if the user does not specify any file.
10900ac_need_defaults=:
10901while test $# != 0
10902do
10903  case $1 in
10904  --*=?*)
10905    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10906    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10907    ac_shift=:
10908    ;;
10909  --*=)
10910    ac_option=`expr "X$1" : 'X\([^=]*\)='`
10911    ac_optarg=
10912    ac_shift=:
10913    ;;
10914  *)
10915    ac_option=$1
10916    ac_optarg=$2
10917    ac_shift=shift
10918    ;;
10919  esac
10920
10921  case $ac_option in
10922  # Handling of the options.
10923  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10924    ac_cs_recheck=: ;;
10925  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10926    $as_echo "$ac_cs_version"; exit ;;
10927  --config | --confi | --conf | --con | --co | --c )
10928    $as_echo "$ac_cs_config"; exit ;;
10929  --debug | --debu | --deb | --de | --d | -d )
10930    debug=: ;;
10931  --file | --fil | --fi | --f )
10932    $ac_shift
10933    case $ac_optarg in
10934    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10935    '') as_fn_error $? "missing file argument" ;;
10936    esac
10937    as_fn_append CONFIG_FILES " '$ac_optarg'"
10938    ac_need_defaults=false;;
10939  --header | --heade | --head | --hea )
10940    $ac_shift
10941    case $ac_optarg in
10942    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10943    esac
10944    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10945    ac_need_defaults=false;;
10946  --he | --h)
10947    # Conflict between --help and --header
10948    as_fn_error $? "ambiguous option: \`$1'
10949Try \`$0 --help' for more information.";;
10950  --help | --hel | -h )
10951    $as_echo "$ac_cs_usage"; exit ;;
10952  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10953  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10954    ac_cs_silent=: ;;
10955
10956  # This is an error.
10957  -*) as_fn_error $? "unrecognized option: \`$1'
10958Try \`$0 --help' for more information." ;;
10959
10960  *) as_fn_append ac_config_targets " $1"
10961     ac_need_defaults=false ;;
10962
10963  esac
10964  shift
10965done
10966
10967ac_configure_extra_args=
10968
10969if $ac_cs_silent; then
10970  exec 6>/dev/null
10971  ac_configure_extra_args="$ac_configure_extra_args --silent"
10972fi
10973
10974_ACEOF
10975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10976if \$ac_cs_recheck; then
10977  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10978  shift
10979  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10980  CONFIG_SHELL='$SHELL'
10981  export CONFIG_SHELL
10982  exec "\$@"
10983fi
10984
10985_ACEOF
10986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10987exec 5>>config.log
10988{
10989  echo
10990  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10991## Running $as_me. ##
10992_ASBOX
10993  $as_echo "$ac_log"
10994} >&5
10995
10996_ACEOF
10997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10998#
10999# INIT-COMMANDS
11000#
11001AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11002
11003_ACEOF
11004
11005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11006
11007# Handling of arguments.
11008for ac_config_target in $ac_config_targets
11009do
11010  case $ac_config_target in
11011    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11012    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11013    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11014    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11015
11016  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11017  esac
11018done
11019
11020
11021# If the user did not use the arguments to specify the items to instantiate,
11022# then the envvar interface is used.  Set only those that are not.
11023# We use the long form for the default assignment because of an extremely
11024# bizarre bug on SunOS 4.1.3.
11025if $ac_need_defaults; then
11026  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11027  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11028  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11029fi
11030
11031# Have a temporary directory for convenience.  Make it in the build tree
11032# simply because there is no reason against having it here, and in addition,
11033# creating and moving files from /tmp can sometimes cause problems.
11034# Hook for its removal unless debugging.
11035# Note that there is a small window in which the directory will not be cleaned:
11036# after its creation but before its name has been assigned to `$tmp'.
11037$debug ||
11038{
11039  tmp= ac_tmp=
11040  trap 'exit_status=$?
11041  : "${ac_tmp:=$tmp}"
11042  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11043' 0
11044  trap 'as_fn_exit 1' 1 2 13 15
11045}
11046# Create a (secure) tmp directory for tmp files.
11047
11048{
11049  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11050  test -d "$tmp"
11051}  ||
11052{
11053  tmp=./conf$$-$RANDOM
11054  (umask 077 && mkdir "$tmp")
11055} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11056ac_tmp=$tmp
11057
11058# Set up the scripts for CONFIG_FILES section.
11059# No need to generate them if there are no CONFIG_FILES.
11060# This happens for instance with `./config.status config.h'.
11061if test -n "$CONFIG_FILES"; then
11062
11063
11064ac_cr=`echo X | tr X '\015'`
11065# On cygwin, bash can eat \r inside `` if the user requested igncr.
11066# But we know of no other shell where ac_cr would be empty at this
11067# point, so we can use a bashism as a fallback.
11068if test "x$ac_cr" = x; then
11069  eval ac_cr=\$\'\\r\'
11070fi
11071ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11072if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11073  ac_cs_awk_cr='\\r'
11074else
11075  ac_cs_awk_cr=$ac_cr
11076fi
11077
11078echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11079_ACEOF
11080
11081
11082{
11083  echo "cat >conf$$subs.awk <<_ACEOF" &&
11084  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11085  echo "_ACEOF"
11086} >conf$$subs.sh ||
11087  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11088ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11089ac_delim='%!_!# '
11090for ac_last_try in false false false false false :; do
11091  . ./conf$$subs.sh ||
11092    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11093
11094  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11095  if test $ac_delim_n = $ac_delim_num; then
11096    break
11097  elif $ac_last_try; then
11098    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11099  else
11100    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11101  fi
11102done
11103rm -f conf$$subs.sh
11104
11105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11106cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11107_ACEOF
11108sed -n '
11109h
11110s/^/S["/; s/!.*/"]=/
11111p
11112g
11113s/^[^!]*!//
11114:repl
11115t repl
11116s/'"$ac_delim"'$//
11117t delim
11118:nl
11119h
11120s/\(.\{148\}\)..*/\1/
11121t more1
11122s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11123p
11124n
11125b repl
11126:more1
11127s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11128p
11129g
11130s/.\{148\}//
11131t nl
11132:delim
11133h
11134s/\(.\{148\}\)..*/\1/
11135t more2
11136s/["\\]/\\&/g; s/^/"/; s/$/"/
11137p
11138b
11139:more2
11140s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11141p
11142g
11143s/.\{148\}//
11144t delim
11145' <conf$$subs.awk | sed '
11146/^[^""]/{
11147  N
11148  s/\n//
11149}
11150' >>$CONFIG_STATUS || ac_write_fail=1
11151rm -f conf$$subs.awk
11152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11153_ACAWK
11154cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11155  for (key in S) S_is_set[key] = 1
11156  FS = ""
11157
11158}
11159{
11160  line = $ 0
11161  nfields = split(line, field, "@")
11162  substed = 0
11163  len = length(field[1])
11164  for (i = 2; i < nfields; i++) {
11165    key = field[i]
11166    keylen = length(key)
11167    if (S_is_set[key]) {
11168      value = S[key]
11169      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11170      len += length(value) + length(field[++i])
11171      substed = 1
11172    } else
11173      len += 1 + keylen
11174  }
11175
11176  print line
11177}
11178
11179_ACAWK
11180_ACEOF
11181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11182if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11183  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11184else
11185  cat
11186fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11187  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11188_ACEOF
11189
11190# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11191# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11192# trailing colons and then remove the whole line if VPATH becomes empty
11193# (actually we leave an empty line to preserve line numbers).
11194if test "x$srcdir" = x.; then
11195  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11196h
11197s///
11198s/^/:/
11199s/[	 ]*$/:/
11200s/:\$(srcdir):/:/g
11201s/:\${srcdir}:/:/g
11202s/:@srcdir@:/:/g
11203s/^:*//
11204s/:*$//
11205x
11206s/\(=[	 ]*\).*/\1/
11207G
11208s/\n//
11209s/^[^=]*=[	 ]*$//
11210}'
11211fi
11212
11213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11214fi # test -n "$CONFIG_FILES"
11215
11216# Set up the scripts for CONFIG_HEADERS section.
11217# No need to generate them if there are no CONFIG_HEADERS.
11218# This happens for instance with `./config.status Makefile'.
11219if test -n "$CONFIG_HEADERS"; then
11220cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11221BEGIN {
11222_ACEOF
11223
11224# Transform confdefs.h into an awk script `defines.awk', embedded as
11225# here-document in config.status, that substitutes the proper values into
11226# config.h.in to produce config.h.
11227
11228# Create a delimiter string that does not exist in confdefs.h, to ease
11229# handling of long lines.
11230ac_delim='%!_!# '
11231for ac_last_try in false false :; do
11232  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11233  if test -z "$ac_tt"; then
11234    break
11235  elif $ac_last_try; then
11236    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11237  else
11238    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11239  fi
11240done
11241
11242# For the awk script, D is an array of macro values keyed by name,
11243# likewise P contains macro parameters if any.  Preserve backslash
11244# newline sequences.
11245
11246ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11247sed -n '
11248s/.\{148\}/&'"$ac_delim"'/g
11249t rset
11250:rset
11251s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11252t def
11253d
11254:def
11255s/\\$//
11256t bsnl
11257s/["\\]/\\&/g
11258s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11259D["\1"]=" \3"/p
11260s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11261d
11262:bsnl
11263s/["\\]/\\&/g
11264s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11265D["\1"]=" \3\\\\\\n"\\/p
11266t cont
11267s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11268t cont
11269d
11270:cont
11271n
11272s/.\{148\}/&'"$ac_delim"'/g
11273t clear
11274:clear
11275s/\\$//
11276t bsnlc
11277s/["\\]/\\&/g; s/^/"/; s/$/"/p
11278d
11279:bsnlc
11280s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11281b cont
11282' <confdefs.h | sed '
11283s/'"$ac_delim"'/"\\\
11284"/g' >>$CONFIG_STATUS || ac_write_fail=1
11285
11286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11287  for (key in D) D_is_set[key] = 1
11288  FS = ""
11289}
11290/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11291  line = \$ 0
11292  split(line, arg, " ")
11293  if (arg[1] == "#") {
11294    defundef = arg[2]
11295    mac1 = arg[3]
11296  } else {
11297    defundef = substr(arg[1], 2)
11298    mac1 = arg[2]
11299  }
11300  split(mac1, mac2, "(") #)
11301  macro = mac2[1]
11302  prefix = substr(line, 1, index(line, defundef) - 1)
11303  if (D_is_set[macro]) {
11304    # Preserve the white space surrounding the "#".
11305    print prefix "define", macro P[macro] D[macro]
11306    next
11307  } else {
11308    # Replace #undef with comments.  This is necessary, for example,
11309    # in the case of _POSIX_SOURCE, which is predefined and required
11310    # on some systems where configure will not decide to define it.
11311    if (defundef == "undef") {
11312      print "/*", prefix defundef, macro, "*/"
11313      next
11314    }
11315  }
11316}
11317{ print }
11318_ACAWK
11319_ACEOF
11320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11321  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11322fi # test -n "$CONFIG_HEADERS"
11323
11324
11325eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11326shift
11327for ac_tag
11328do
11329  case $ac_tag in
11330  :[FHLC]) ac_mode=$ac_tag; continue;;
11331  esac
11332  case $ac_mode$ac_tag in
11333  :[FHL]*:*);;
11334  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11335  :[FH]-) ac_tag=-:-;;
11336  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11337  esac
11338  ac_save_IFS=$IFS
11339  IFS=:
11340  set x $ac_tag
11341  IFS=$ac_save_IFS
11342  shift
11343  ac_file=$1
11344  shift
11345
11346  case $ac_mode in
11347  :L) ac_source=$1;;
11348  :[FH])
11349    ac_file_inputs=
11350    for ac_f
11351    do
11352      case $ac_f in
11353      -) ac_f="$ac_tmp/stdin";;
11354      *) # Look for the file first in the build tree, then in the source tree
11355	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11356	 # because $ac_f cannot contain `:'.
11357	 test -f "$ac_f" ||
11358	   case $ac_f in
11359	   [\\/$]*) false;;
11360	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11361	   esac ||
11362	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11363      esac
11364      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11365      as_fn_append ac_file_inputs " '$ac_f'"
11366    done
11367
11368    # Let's still pretend it is `configure' which instantiates (i.e., don't
11369    # use $as_me), people would be surprised to read:
11370    #    /* config.h.  Generated by config.status.  */
11371    configure_input='Generated from '`
11372	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11373	`' by configure.'
11374    if test x"$ac_file" != x-; then
11375      configure_input="$ac_file.  $configure_input"
11376      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11377$as_echo "$as_me: creating $ac_file" >&6;}
11378    fi
11379    # Neutralize special characters interpreted by sed in replacement strings.
11380    case $configure_input in #(
11381    *\&* | *\|* | *\\* )
11382       ac_sed_conf_input=`$as_echo "$configure_input" |
11383       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11384    *) ac_sed_conf_input=$configure_input;;
11385    esac
11386
11387    case $ac_tag in
11388    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11389      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11390    esac
11391    ;;
11392  esac
11393
11394  ac_dir=`$as_dirname -- "$ac_file" ||
11395$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11396	 X"$ac_file" : 'X\(//\)[^/]' \| \
11397	 X"$ac_file" : 'X\(//\)$' \| \
11398	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11399$as_echo X"$ac_file" |
11400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11401	    s//\1/
11402	    q
11403	  }
11404	  /^X\(\/\/\)[^/].*/{
11405	    s//\1/
11406	    q
11407	  }
11408	  /^X\(\/\/\)$/{
11409	    s//\1/
11410	    q
11411	  }
11412	  /^X\(\/\).*/{
11413	    s//\1/
11414	    q
11415	  }
11416	  s/.*/./; q'`
11417  as_dir="$ac_dir"; as_fn_mkdir_p
11418  ac_builddir=.
11419
11420case "$ac_dir" in
11421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11422*)
11423  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11424  # A ".." for each directory in $ac_dir_suffix.
11425  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11426  case $ac_top_builddir_sub in
11427  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11428  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11429  esac ;;
11430esac
11431ac_abs_top_builddir=$ac_pwd
11432ac_abs_builddir=$ac_pwd$ac_dir_suffix
11433# for backward compatibility:
11434ac_top_builddir=$ac_top_build_prefix
11435
11436case $srcdir in
11437  .)  # We are building in place.
11438    ac_srcdir=.
11439    ac_top_srcdir=$ac_top_builddir_sub
11440    ac_abs_top_srcdir=$ac_pwd ;;
11441  [\\/]* | ?:[\\/]* )  # Absolute name.
11442    ac_srcdir=$srcdir$ac_dir_suffix;
11443    ac_top_srcdir=$srcdir
11444    ac_abs_top_srcdir=$srcdir ;;
11445  *) # Relative name.
11446    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11447    ac_top_srcdir=$ac_top_build_prefix$srcdir
11448    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11449esac
11450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11451
11452
11453  case $ac_mode in
11454  :F)
11455  #
11456  # CONFIG_FILE
11457  #
11458
11459  case $INSTALL in
11460  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11461  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11462  esac
11463  ac_MKDIR_P=$MKDIR_P
11464  case $MKDIR_P in
11465  [\\/$]* | ?:[\\/]* ) ;;
11466  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11467  esac
11468_ACEOF
11469
11470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11471# If the template does not know about datarootdir, expand it.
11472# FIXME: This hack should be removed a few years after 2.60.
11473ac_datarootdir_hack=; ac_datarootdir_seen=
11474ac_sed_dataroot='
11475/datarootdir/ {
11476  p
11477  q
11478}
11479/@datadir@/p
11480/@docdir@/p
11481/@infodir@/p
11482/@localedir@/p
11483/@mandir@/p'
11484case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11485*datarootdir*) ac_datarootdir_seen=yes;;
11486*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11487  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11488$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11489_ACEOF
11490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11491  ac_datarootdir_hack='
11492  s&@datadir@&$datadir&g
11493  s&@docdir@&$docdir&g
11494  s&@infodir@&$infodir&g
11495  s&@localedir@&$localedir&g
11496  s&@mandir@&$mandir&g
11497  s&\\\${datarootdir}&$datarootdir&g' ;;
11498esac
11499_ACEOF
11500
11501# Neutralize VPATH when `$srcdir' = `.'.
11502# Shell code in configure.ac might set extrasub.
11503# FIXME: do we really want to maintain this feature?
11504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505ac_sed_extra="$ac_vpsub
11506$extrasub
11507_ACEOF
11508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11509:t
11510/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11511s|@configure_input@|$ac_sed_conf_input|;t t
11512s&@top_builddir@&$ac_top_builddir_sub&;t t
11513s&@top_build_prefix@&$ac_top_build_prefix&;t t
11514s&@srcdir@&$ac_srcdir&;t t
11515s&@abs_srcdir@&$ac_abs_srcdir&;t t
11516s&@top_srcdir@&$ac_top_srcdir&;t t
11517s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11518s&@builddir@&$ac_builddir&;t t
11519s&@abs_builddir@&$ac_abs_builddir&;t t
11520s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11521s&@INSTALL@&$ac_INSTALL&;t t
11522s&@MKDIR_P@&$ac_MKDIR_P&;t t
11523$ac_datarootdir_hack
11524"
11525eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11526  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11527
11528test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11529  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11530  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11531      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11533which seems to be undefined.  Please make sure it is defined" >&5
11534$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11535which seems to be undefined.  Please make sure it is defined" >&2;}
11536
11537  rm -f "$ac_tmp/stdin"
11538  case $ac_file in
11539  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11540  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11541  esac \
11542  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11543 ;;
11544  :H)
11545  #
11546  # CONFIG_HEADER
11547  #
11548  if test x"$ac_file" != x-; then
11549    {
11550      $as_echo "/* $configure_input  */" \
11551      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11552    } >"$ac_tmp/config.h" \
11553      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11554    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11555      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11556$as_echo "$as_me: $ac_file is unchanged" >&6;}
11557    else
11558      rm -f "$ac_file"
11559      mv "$ac_tmp/config.h" "$ac_file" \
11560	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11561    fi
11562  else
11563    $as_echo "/* $configure_input  */" \
11564      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11565      || as_fn_error $? "could not create -" "$LINENO" 5
11566  fi
11567# Compute "$ac_file"'s index in $config_headers.
11568_am_arg="$ac_file"
11569_am_stamp_count=1
11570for _am_header in $config_headers :; do
11571  case $_am_header in
11572    $_am_arg | $_am_arg:* )
11573      break ;;
11574    * )
11575      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11576  esac
11577done
11578echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11579$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11580	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11581	 X"$_am_arg" : 'X\(//\)$' \| \
11582	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11583$as_echo X"$_am_arg" |
11584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11585	    s//\1/
11586	    q
11587	  }
11588	  /^X\(\/\/\)[^/].*/{
11589	    s//\1/
11590	    q
11591	  }
11592	  /^X\(\/\/\)$/{
11593	    s//\1/
11594	    q
11595	  }
11596	  /^X\(\/\).*/{
11597	    s//\1/
11598	    q
11599	  }
11600	  s/.*/./; q'`/stamp-h$_am_stamp_count
11601 ;;
11602
11603  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11604$as_echo "$as_me: executing $ac_file commands" >&6;}
11605 ;;
11606  esac
11607
11608
11609  case $ac_file$ac_mode in
11610    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11611  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11612  # are listed without --file.  Let's play safe and only enable the eval
11613  # if we detect the quoting.
11614  case $CONFIG_FILES in
11615  *\'*) eval set x "$CONFIG_FILES" ;;
11616  *)   set x $CONFIG_FILES ;;
11617  esac
11618  shift
11619  for mf
11620  do
11621    # Strip MF so we end up with the name of the file.
11622    mf=`echo "$mf" | sed -e 's/:.*$//'`
11623    # Check whether this is an Automake generated Makefile or not.
11624    # We used to match only the files named `Makefile.in', but
11625    # some people rename them; so instead we look at the file content.
11626    # Grep'ing the first line is not enough: some people post-process
11627    # each Makefile.in and add a new line on top of each file to say so.
11628    # Grep'ing the whole file is not good either: AIX grep has a line
11629    # limit of 2048, but all sed's we know have understand at least 4000.
11630    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11631      dirpart=`$as_dirname -- "$mf" ||
11632$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11633	 X"$mf" : 'X\(//\)[^/]' \| \
11634	 X"$mf" : 'X\(//\)$' \| \
11635	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11636$as_echo X"$mf" |
11637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11638	    s//\1/
11639	    q
11640	  }
11641	  /^X\(\/\/\)[^/].*/{
11642	    s//\1/
11643	    q
11644	  }
11645	  /^X\(\/\/\)$/{
11646	    s//\1/
11647	    q
11648	  }
11649	  /^X\(\/\).*/{
11650	    s//\1/
11651	    q
11652	  }
11653	  s/.*/./; q'`
11654    else
11655      continue
11656    fi
11657    # Extract the definition of DEPDIR, am__include, and am__quote
11658    # from the Makefile without running `make'.
11659    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11660    test -z "$DEPDIR" && continue
11661    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11662    test -z "am__include" && continue
11663    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11664    # When using ansi2knr, U may be empty or an underscore; expand it
11665    U=`sed -n 's/^U = //p' < "$mf"`
11666    # Find all dependency output files, they are included files with
11667    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11668    # simplest approach to changing $(DEPDIR) to its actual value in the
11669    # expansion.
11670    for file in `sed -n "
11671      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11672	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11673      # Make sure the directory exists.
11674      test -f "$dirpart/$file" && continue
11675      fdir=`$as_dirname -- "$file" ||
11676$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11677	 X"$file" : 'X\(//\)[^/]' \| \
11678	 X"$file" : 'X\(//\)$' \| \
11679	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11680$as_echo X"$file" |
11681    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11682	    s//\1/
11683	    q
11684	  }
11685	  /^X\(\/\/\)[^/].*/{
11686	    s//\1/
11687	    q
11688	  }
11689	  /^X\(\/\/\)$/{
11690	    s//\1/
11691	    q
11692	  }
11693	  /^X\(\/\).*/{
11694	    s//\1/
11695	    q
11696	  }
11697	  s/.*/./; q'`
11698      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11699      # echo "creating $dirpart/$file"
11700      echo '# dummy' > "$dirpart/$file"
11701    done
11702  done
11703}
11704 ;;
11705
11706  esac
11707done # for ac_tag
11708
11709
11710as_fn_exit 0
11711_ACEOF
11712ac_clean_files=$ac_clean_files_save
11713
11714test $ac_write_fail = 0 ||
11715  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11716
11717
11718# configure is writing to config.log, and then calls config.status.
11719# config.status does its own redirection, appending to config.log.
11720# Unfortunately, on DOS this fails, as config.log is still kept open
11721# by configure, so config.status won't be able to write to it; its
11722# output is simply discarded.  So we exec the FD to /dev/null,
11723# effectively closing config.log, so it can be properly (re)opened and
11724# appended to by config.status.  When coming back to configure, we
11725# need to make the FD available again.
11726if test "$no_create" != yes; then
11727  ac_cs_success=:
11728  ac_config_status_args=
11729  test "$silent" = yes &&
11730    ac_config_status_args="$ac_config_status_args --quiet"
11731  exec 5>/dev/null
11732  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11733  exec 5>>config.log
11734  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11735  # would make configure fail if this is the last instruction.
11736  $ac_cs_success || as_fn_exit 1
11737fi
11738if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11740$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11741fi
11742
11743