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