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