configure revision 1a2dd139
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xev 1.2.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xev'
563PACKAGE_TARNAME='xev'
564PACKAGE_VERSION='1.2.1'
565PACKAGE_STRING='xev 1.2.1'
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
610XEV_LIBS
611XEV_CFLAGS
612AM_BACKSLASH
613AM_DEFAULT_VERBOSITY
614AM_DEFAULT_V
615AM_V
616MAN_SUBSTS
617XORG_MAN_PAGE
618ADMIN_MAN_DIR
619DRIVER_MAN_DIR
620MISC_MAN_DIR
621FILE_MAN_DIR
622LIB_MAN_DIR
623APP_MAN_DIR
624ADMIN_MAN_SUFFIX
625DRIVER_MAN_SUFFIX
626MISC_MAN_SUFFIX
627FILE_MAN_SUFFIX
628LIB_MAN_SUFFIX
629APP_MAN_SUFFIX
630SED
631host_os
632host_vendor
633host_cpu
634host
635build_os
636build_vendor
637build_cpu
638build
639INSTALL_CMD
640PKG_CONFIG_LIBDIR
641PKG_CONFIG_PATH
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660am__untar
661am__tar
662AMTAR
663am__leading_dot
664SET_MAKE
665AWK
666mkdir_p
667MKDIR_P
668INSTALL_STRIP_PROGRAM
669STRIP
670install_sh
671MAKEINFO
672AUTOHEADER
673AUTOMAKE
674AUTOCONF
675ACLOCAL
676VERSION
677PACKAGE
678CYGPATH_W
679am__isrc
680INSTALL_DATA
681INSTALL_SCRIPT
682INSTALL_PROGRAM
683EGREP
684GREP
685CPP
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_dependency_tracking
735enable_maintainer_mode
736enable_selective_werror
737enable_strict_compilation
738enable_silent_rules
739'
740      ac_precious_vars='build_alias
741host_alias
742target_alias
743CC
744CFLAGS
745LDFLAGS
746LIBS
747CPPFLAGS
748CPP
749PKG_CONFIG
750PKG_CONFIG_PATH
751PKG_CONFIG_LIBDIR
752XEV_CFLAGS
753XEV_LIBS'
754
755
756# Initialize some variables set by options.
757ac_init_help=
758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
761# The variables have the same names as the options, with
762# dashes changed to underlines.
763cache_file=/dev/null
764exec_prefix=NONE
765no_create=
766no_recursion=
767prefix=NONE
768program_prefix=NONE
769program_suffix=NONE
770program_transform_name=s,x,x,
771silent=
772site=
773srcdir=
774verbose=
775x_includes=NONE
776x_libraries=NONE
777
778# Installation directory options.
779# These are left unexpanded so users can "make install exec_prefix=/foo"
780# and all the variables that are supposed to be based on exec_prefix
781# by default will actually change.
782# Use braces instead of parens because sh, perl, etc. also accept them.
783# (The list follows the same order as the GNU Coding Standards.)
784bindir='${exec_prefix}/bin'
785sbindir='${exec_prefix}/sbin'
786libexecdir='${exec_prefix}/libexec'
787datarootdir='${prefix}/share'
788datadir='${datarootdir}'
789sysconfdir='${prefix}/etc'
790sharedstatedir='${prefix}/com'
791localstatedir='${prefix}/var'
792includedir='${prefix}/include'
793oldincludedir='/usr/include'
794docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
795infodir='${datarootdir}/info'
796htmldir='${docdir}'
797dvidir='${docdir}'
798pdfdir='${docdir}'
799psdir='${docdir}'
800libdir='${exec_prefix}/lib'
801localedir='${datarootdir}/locale'
802mandir='${datarootdir}/man'
803
804ac_prev=
805ac_dashdash=
806for ac_option
807do
808  # If the previous option needs an argument, assign it.
809  if test -n "$ac_prev"; then
810    eval $ac_prev=\$ac_option
811    ac_prev=
812    continue
813  fi
814
815  case $ac_option in
816  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817  *=)   ac_optarg= ;;
818  *)    ac_optarg=yes ;;
819  esac
820
821  # Accept the important Cygnus configure options, so we can diagnose typos.
822
823  case $ac_dashdash$ac_option in
824  --)
825    ac_dashdash=yes ;;
826
827  -bindir | --bindir | --bindi | --bind | --bin | --bi)
828    ac_prev=bindir ;;
829  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830    bindir=$ac_optarg ;;
831
832  -build | --build | --buil | --bui | --bu)
833    ac_prev=build_alias ;;
834  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835    build_alias=$ac_optarg ;;
836
837  -cache-file | --cache-file | --cache-fil | --cache-fi \
838  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839    ac_prev=cache_file ;;
840  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842    cache_file=$ac_optarg ;;
843
844  --config-cache | -C)
845    cache_file=config.cache ;;
846
847  -datadir | --datadir | --datadi | --datad)
848    ac_prev=datadir ;;
849  -datadir=* | --datadir=* | --datadi=* | --datad=*)
850    datadir=$ac_optarg ;;
851
852  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853  | --dataroo | --dataro | --datar)
854    ac_prev=datarootdir ;;
855  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857    datarootdir=$ac_optarg ;;
858
859  -disable-* | --disable-*)
860    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861    # Reject names that are not valid shell variable names.
862    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
863      as_fn_error $? "invalid feature name: $ac_useropt"
864    ac_useropt_orig=$ac_useropt
865    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866    case $ac_user_opts in
867      *"
868"enable_$ac_useropt"
869"*) ;;
870      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871	 ac_unrecognized_sep=', ';;
872    esac
873    eval enable_$ac_useropt=no ;;
874
875  -docdir | --docdir | --docdi | --doc | --do)
876    ac_prev=docdir ;;
877  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878    docdir=$ac_optarg ;;
879
880  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881    ac_prev=dvidir ;;
882  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883    dvidir=$ac_optarg ;;
884
885  -enable-* | --enable-*)
886    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
887    # Reject names that are not valid shell variable names.
888    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889      as_fn_error $? "invalid feature name: $ac_useropt"
890    ac_useropt_orig=$ac_useropt
891    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892    case $ac_user_opts in
893      *"
894"enable_$ac_useropt"
895"*) ;;
896      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897	 ac_unrecognized_sep=', ';;
898    esac
899    eval enable_$ac_useropt=\$ac_optarg ;;
900
901  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903  | --exec | --exe | --ex)
904    ac_prev=exec_prefix ;;
905  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907  | --exec=* | --exe=* | --ex=*)
908    exec_prefix=$ac_optarg ;;
909
910  -gas | --gas | --ga | --g)
911    # Obsolete; use --with-gas.
912    with_gas=yes ;;
913
914  -help | --help | --hel | --he | -h)
915    ac_init_help=long ;;
916  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917    ac_init_help=recursive ;;
918  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919    ac_init_help=short ;;
920
921  -host | --host | --hos | --ho)
922    ac_prev=host_alias ;;
923  -host=* | --host=* | --hos=* | --ho=*)
924    host_alias=$ac_optarg ;;
925
926  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927    ac_prev=htmldir ;;
928  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929  | --ht=*)
930    htmldir=$ac_optarg ;;
931
932  -includedir | --includedir | --includedi | --included | --include \
933  | --includ | --inclu | --incl | --inc)
934    ac_prev=includedir ;;
935  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936  | --includ=* | --inclu=* | --incl=* | --inc=*)
937    includedir=$ac_optarg ;;
938
939  -infodir | --infodir | --infodi | --infod | --info | --inf)
940    ac_prev=infodir ;;
941  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942    infodir=$ac_optarg ;;
943
944  -libdir | --libdir | --libdi | --libd)
945    ac_prev=libdir ;;
946  -libdir=* | --libdir=* | --libdi=* | --libd=*)
947    libdir=$ac_optarg ;;
948
949  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950  | --libexe | --libex | --libe)
951    ac_prev=libexecdir ;;
952  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953  | --libexe=* | --libex=* | --libe=*)
954    libexecdir=$ac_optarg ;;
955
956  -localedir | --localedir | --localedi | --localed | --locale)
957    ac_prev=localedir ;;
958  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959    localedir=$ac_optarg ;;
960
961  -localstatedir | --localstatedir | --localstatedi | --localstated \
962  | --localstate | --localstat | --localsta | --localst | --locals)
963    ac_prev=localstatedir ;;
964  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966    localstatedir=$ac_optarg ;;
967
968  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969    ac_prev=mandir ;;
970  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971    mandir=$ac_optarg ;;
972
973  -nfp | --nfp | --nf)
974    # Obsolete; use --without-fp.
975    with_fp=no ;;
976
977  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978  | --no-cr | --no-c | -n)
979    no_create=yes ;;
980
981  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983    no_recursion=yes ;;
984
985  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987  | --oldin | --oldi | --old | --ol | --o)
988    ac_prev=oldincludedir ;;
989  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992    oldincludedir=$ac_optarg ;;
993
994  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995    ac_prev=prefix ;;
996  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997    prefix=$ac_optarg ;;
998
999  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000  | --program-pre | --program-pr | --program-p)
1001    ac_prev=program_prefix ;;
1002  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004    program_prefix=$ac_optarg ;;
1005
1006  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007  | --program-suf | --program-su | --program-s)
1008    ac_prev=program_suffix ;;
1009  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011    program_suffix=$ac_optarg ;;
1012
1013  -program-transform-name | --program-transform-name \
1014  | --program-transform-nam | --program-transform-na \
1015  | --program-transform-n | --program-transform- \
1016  | --program-transform | --program-transfor \
1017  | --program-transfo | --program-transf \
1018  | --program-trans | --program-tran \
1019  | --progr-tra | --program-tr | --program-t)
1020    ac_prev=program_transform_name ;;
1021  -program-transform-name=* | --program-transform-name=* \
1022  | --program-transform-nam=* | --program-transform-na=* \
1023  | --program-transform-n=* | --program-transform-=* \
1024  | --program-transform=* | --program-transfor=* \
1025  | --program-transfo=* | --program-transf=* \
1026  | --program-trans=* | --program-tran=* \
1027  | --progr-tra=* | --program-tr=* | --program-t=*)
1028    program_transform_name=$ac_optarg ;;
1029
1030  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031    ac_prev=pdfdir ;;
1032  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033    pdfdir=$ac_optarg ;;
1034
1035  -psdir | --psdir | --psdi | --psd | --ps)
1036    ac_prev=psdir ;;
1037  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038    psdir=$ac_optarg ;;
1039
1040  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041  | -silent | --silent | --silen | --sile | --sil)
1042    silent=yes ;;
1043
1044  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045    ac_prev=sbindir ;;
1046  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047  | --sbi=* | --sb=*)
1048    sbindir=$ac_optarg ;;
1049
1050  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052  | --sharedst | --shareds | --shared | --share | --shar \
1053  | --sha | --sh)
1054    ac_prev=sharedstatedir ;;
1055  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058  | --sha=* | --sh=*)
1059    sharedstatedir=$ac_optarg ;;
1060
1061  -site | --site | --sit)
1062    ac_prev=site ;;
1063  -site=* | --site=* | --sit=*)
1064    site=$ac_optarg ;;
1065
1066  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067    ac_prev=srcdir ;;
1068  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069    srcdir=$ac_optarg ;;
1070
1071  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072  | --syscon | --sysco | --sysc | --sys | --sy)
1073    ac_prev=sysconfdir ;;
1074  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076    sysconfdir=$ac_optarg ;;
1077
1078  -target | --target | --targe | --targ | --tar | --ta | --t)
1079    ac_prev=target_alias ;;
1080  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081    target_alias=$ac_optarg ;;
1082
1083  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084    verbose=yes ;;
1085
1086  -version | --version | --versio | --versi | --vers | -V)
1087    ac_init_version=: ;;
1088
1089  -with-* | --with-*)
1090    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091    # Reject names that are not valid shell variable names.
1092    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093      as_fn_error $? "invalid package name: $ac_useropt"
1094    ac_useropt_orig=$ac_useropt
1095    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096    case $ac_user_opts in
1097      *"
1098"with_$ac_useropt"
1099"*) ;;
1100      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101	 ac_unrecognized_sep=', ';;
1102    esac
1103    eval with_$ac_useropt=\$ac_optarg ;;
1104
1105  -without-* | --without-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=no ;;
1120
1121  --x)
1122    # Obsolete; use --with-x.
1123    with_x=yes ;;
1124
1125  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126  | --x-incl | --x-inc | --x-in | --x-i)
1127    ac_prev=x_includes ;;
1128  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130    x_includes=$ac_optarg ;;
1131
1132  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134    ac_prev=x_libraries ;;
1135  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137    x_libraries=$ac_optarg ;;
1138
1139  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1140Try \`$0 --help' for more information"
1141    ;;
1142
1143  *=*)
1144    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1145    # Reject names that are not valid shell variable names.
1146    case $ac_envvar in #(
1147      '' | [0-9]* | *[!_$as_cr_alnum]* )
1148      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149    esac
1150    eval $ac_envvar=\$ac_optarg
1151    export $ac_envvar ;;
1152
1153  *)
1154    # FIXME: should be removed in autoconf 3.0.
1155    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159    ;;
1160
1161  esac
1162done
1163
1164if test -n "$ac_prev"; then
1165  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166  as_fn_error $? "missing argument to $ac_option"
1167fi
1168
1169if test -n "$ac_unrecognized_opts"; then
1170  case $enable_option_checking in
1171    no) ;;
1172    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174  esac
1175fi
1176
1177# Check all directory arguments for consistency.
1178for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179		datadir sysconfdir sharedstatedir localstatedir includedir \
1180		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181		libdir localedir mandir
1182do
1183  eval ac_val=\$$ac_var
1184  # Remove trailing slashes.
1185  case $ac_val in
1186    */ )
1187      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188      eval $ac_var=\$ac_val;;
1189  esac
1190  # Be sure to have absolute directory names.
1191  case $ac_val in
1192    [\\/$]* | ?:[\\/]* )  continue;;
1193    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194  esac
1195  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196done
1197
1198# There might be people who depend on the old broken behavior: `$host'
1199# used to hold the argument of --host etc.
1200# FIXME: To remove some day.
1201build=$build_alias
1202host=$host_alias
1203target=$target_alias
1204
1205# FIXME: To remove some day.
1206if test "x$host_alias" != x; then
1207  if test "x$build_alias" = x; then
1208    cross_compiling=maybe
1209    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1210    If a cross compiler is detected then cross compile mode will be used" >&2
1211  elif test "x$build_alias" != "x$host_alias"; then
1212    cross_compiling=yes
1213  fi
1214fi
1215
1216ac_tool_prefix=
1217test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219test "$silent" = yes && exec 6>/dev/null
1220
1221
1222ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223ac_ls_di=`ls -di .` &&
1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225  as_fn_error $? "working directory cannot be determined"
1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1227  as_fn_error $? "pwd does not report name of working directory"
1228
1229
1230# Find the source files, if location was not specified.
1231if test -z "$srcdir"; then
1232  ac_srcdir_defaulted=yes
1233  # Try the directory containing this script, then the parent directory.
1234  ac_confdir=`$as_dirname -- "$as_myself" ||
1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236	 X"$as_myself" : 'X\(//\)[^/]' \| \
1237	 X"$as_myself" : 'X\(//\)$' \| \
1238	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1239$as_echo X"$as_myself" |
1240    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)[^/].*/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)$/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\).*/{
1253	    s//\1/
1254	    q
1255	  }
1256	  s/.*/./; q'`
1257  srcdir=$ac_confdir
1258  if test ! -r "$srcdir/$ac_unique_file"; then
1259    srcdir=..
1260  fi
1261else
1262  ac_srcdir_defaulted=no
1263fi
1264if test ! -r "$srcdir/$ac_unique_file"; then
1265  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267fi
1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269ac_abs_confdir=`(
1270	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271	pwd)`
1272# When building in place, set srcdir=.
1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1274  srcdir=.
1275fi
1276# Remove unnecessary trailing slashes from srcdir.
1277# Double slashes in file names in object file debugging info
1278# mess up M-x gdb in Emacs.
1279case $srcdir in
1280*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281esac
1282for ac_var in $ac_precious_vars; do
1283  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1284  eval ac_env_${ac_var}_value=\$${ac_var}
1285  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1286  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287done
1288
1289#
1290# Report the --help message.
1291#
1292if test "$ac_init_help" = "long"; then
1293  # Omit some internal or obsolete options to make the list less imposing.
1294  # This message is too long to be a string in the A/UX 3.1 sh.
1295  cat <<_ACEOF
1296\`configure' configures xev 1.2.1 to adapt to many kinds of systems.
1297
1298Usage: $0 [OPTION]... [VAR=VALUE]...
1299
1300To assign environment variables (e.g., CC, CFLAGS...), specify them as
1301VAR=VALUE.  See below for descriptions of some of the useful variables.
1302
1303Defaults for the options are specified in brackets.
1304
1305Configuration:
1306  -h, --help              display this help and exit
1307      --help=short        display options specific to this package
1308      --help=recursive    display the short help of all the included packages
1309  -V, --version           display version information and exit
1310  -q, --quiet, --silent   do not print \`checking ...' messages
1311      --cache-file=FILE   cache test results in FILE [disabled]
1312  -C, --config-cache      alias for \`--cache-file=config.cache'
1313  -n, --no-create         do not create output files
1314      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1315
1316Installation directories:
1317  --prefix=PREFIX         install architecture-independent files in PREFIX
1318                          [$ac_default_prefix]
1319  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1320                          [PREFIX]
1321
1322By default, \`make install' will install all the files in
1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1325for instance \`--prefix=\$HOME'.
1326
1327For better control, use the options below.
1328
1329Fine tuning of the installation directories:
1330  --bindir=DIR            user executables [EPREFIX/bin]
1331  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1332  --libexecdir=DIR        program executables [EPREFIX/libexec]
1333  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1334  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1335  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1336  --libdir=DIR            object code libraries [EPREFIX/lib]
1337  --includedir=DIR        C header files [PREFIX/include]
1338  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1339  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1340  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1341  --infodir=DIR           info documentation [DATAROOTDIR/info]
1342  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1343  --mandir=DIR            man documentation [DATAROOTDIR/man]
1344  --docdir=DIR            documentation root [DATAROOTDIR/doc/xev]
1345  --htmldir=DIR           html documentation [DOCDIR]
1346  --dvidir=DIR            dvi documentation [DOCDIR]
1347  --pdfdir=DIR            pdf documentation [DOCDIR]
1348  --psdir=DIR             ps documentation [DOCDIR]
1349_ACEOF
1350
1351  cat <<\_ACEOF
1352
1353Program names:
1354  --program-prefix=PREFIX            prepend PREFIX to installed program names
1355  --program-suffix=SUFFIX            append SUFFIX to installed program names
1356  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1357
1358System types:
1359  --build=BUILD     configure for building on BUILD [guessed]
1360  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1361_ACEOF
1362fi
1363
1364if test -n "$ac_init_help"; then
1365  case $ac_init_help in
1366     short | recursive ) echo "Configuration of xev 1.2.1:";;
1367   esac
1368  cat <<\_ACEOF
1369
1370Optional Features:
1371  --disable-option-checking  ignore unrecognized --enable/--with options
1372  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374  --disable-dependency-tracking  speeds up one-time build
1375  --enable-dependency-tracking   do not reject slow dependency extractors
1376  --enable-maintainer-mode  enable make rules and dependencies not useful
1377			  (and sometimes confusing) to the casual installer
1378  --disable-selective-werror
1379                          Turn off selective compiler errors. (default:
1380                          enabled)
1381  --enable-strict-compilation
1382                          Enable all warnings from compiler and make them
1383                          errors (default: disabled)
1384  --enable-silent-rules          less verbose build output (undo: `make V=1')
1385  --disable-silent-rules         verbose build output (undo: `make V=0')
1386
1387Some influential environment variables:
1388  CC          C compiler command
1389  CFLAGS      C compiler flags
1390  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391              nonstandard directory <lib dir>
1392  LIBS        libraries to pass to the linker, e.g. -l<library>
1393  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1394              you have headers in a nonstandard directory <include dir>
1395  CPP         C preprocessor
1396  PKG_CONFIG  path to pkg-config utility
1397  PKG_CONFIG_PATH
1398              directories to add to pkg-config's search path
1399  PKG_CONFIG_LIBDIR
1400              path overriding pkg-config's built-in search path
1401  XEV_CFLAGS  C compiler flags for XEV, overriding pkg-config
1402  XEV_LIBS    linker flags for XEV, overriding pkg-config
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1408_ACEOF
1409ac_status=$?
1410fi
1411
1412if test "$ac_init_help" = "recursive"; then
1413  # If there are subdirs, report their specific --help.
1414  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1415    test -d "$ac_dir" ||
1416      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1417      continue
1418    ac_builddir=.
1419
1420case "$ac_dir" in
1421.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422*)
1423  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1424  # A ".." for each directory in $ac_dir_suffix.
1425  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1426  case $ac_top_builddir_sub in
1427  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1429  esac ;;
1430esac
1431ac_abs_top_builddir=$ac_pwd
1432ac_abs_builddir=$ac_pwd$ac_dir_suffix
1433# for backward compatibility:
1434ac_top_builddir=$ac_top_build_prefix
1435
1436case $srcdir in
1437  .)  # We are building in place.
1438    ac_srcdir=.
1439    ac_top_srcdir=$ac_top_builddir_sub
1440    ac_abs_top_srcdir=$ac_pwd ;;
1441  [\\/]* | ?:[\\/]* )  # Absolute name.
1442    ac_srcdir=$srcdir$ac_dir_suffix;
1443    ac_top_srcdir=$srcdir
1444    ac_abs_top_srcdir=$srcdir ;;
1445  *) # Relative name.
1446    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1447    ac_top_srcdir=$ac_top_build_prefix$srcdir
1448    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449esac
1450ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451
1452    cd "$ac_dir" || { ac_status=$?; continue; }
1453    # Check for guested configure.
1454    if test -f "$ac_srcdir/configure.gnu"; then
1455      echo &&
1456      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1457    elif test -f "$ac_srcdir/configure"; then
1458      echo &&
1459      $SHELL "$ac_srcdir/configure" --help=recursive
1460    else
1461      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462    fi || ac_status=$?
1463    cd "$ac_pwd" || { ac_status=$?; break; }
1464  done
1465fi
1466
1467test -n "$ac_init_help" && exit $ac_status
1468if $ac_init_version; then
1469  cat <<\_ACEOF
1470xev configure 1.2.1
1471generated by GNU Autoconf 2.68
1472
1473Copyright (C) 2010 Free Software Foundation, Inc.
1474This configure script is free software; the Free Software Foundation
1475gives unlimited permission to copy, distribute and modify it.
1476_ACEOF
1477  exit
1478fi
1479
1480## ------------------------ ##
1481## Autoconf initialization. ##
1482## ------------------------ ##
1483
1484# ac_fn_c_try_compile LINENO
1485# --------------------------
1486# Try to compile conftest.$ac_ext, and return whether this succeeded.
1487ac_fn_c_try_compile ()
1488{
1489  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490  rm -f conftest.$ac_objext
1491  if { { ac_try="$ac_compile"
1492case "(($ac_try" in
1493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494  *) ac_try_echo=$ac_try;;
1495esac
1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497$as_echo "$ac_try_echo"; } >&5
1498  (eval "$ac_compile") 2>conftest.err
1499  ac_status=$?
1500  if test -s conftest.err; then
1501    grep -v '^ *+' conftest.err >conftest.er1
1502    cat conftest.er1 >&5
1503    mv -f conftest.er1 conftest.err
1504  fi
1505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506  test $ac_status = 0; } && {
1507	 test -z "$ac_c_werror_flag" ||
1508	 test ! -s conftest.err
1509       } && test -s conftest.$ac_objext; then :
1510  ac_retval=0
1511else
1512  $as_echo "$as_me: failed program was:" >&5
1513sed 's/^/| /' conftest.$ac_ext >&5
1514
1515	ac_retval=1
1516fi
1517  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518  as_fn_set_status $ac_retval
1519
1520} # ac_fn_c_try_compile
1521
1522# ac_fn_c_try_cpp LINENO
1523# ----------------------
1524# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_cpp ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  if { { ac_try="$ac_cpp conftest.$ac_ext"
1529case "(($ac_try" in
1530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531  *) ac_try_echo=$ac_try;;
1532esac
1533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534$as_echo "$ac_try_echo"; } >&5
1535  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1536  ac_status=$?
1537  if test -s conftest.err; then
1538    grep -v '^ *+' conftest.err >conftest.er1
1539    cat conftest.er1 >&5
1540    mv -f conftest.er1 conftest.err
1541  fi
1542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543  test $ac_status = 0; } > conftest.i && {
1544	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545	 test ! -s conftest.err
1546       }; then :
1547  ac_retval=0
1548else
1549  $as_echo "$as_me: failed program was:" >&5
1550sed 's/^/| /' conftest.$ac_ext >&5
1551
1552    ac_retval=1
1553fi
1554  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555  as_fn_set_status $ac_retval
1556
1557} # ac_fn_c_try_cpp
1558
1559# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1560# -------------------------------------------------------
1561# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1562# the include files in INCLUDES and setting the cache variable VAR
1563# accordingly.
1564ac_fn_c_check_header_mongrel ()
1565{
1566  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567  if eval \${$3+:} false; then :
1568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569$as_echo_n "checking for $2... " >&6; }
1570if eval \${$3+:} false; then :
1571  $as_echo_n "(cached) " >&6
1572fi
1573eval ac_res=\$$3
1574	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1575$as_echo "$ac_res" >&6; }
1576else
1577  # Is the header compilable?
1578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1579$as_echo_n "checking $2 usability... " >&6; }
1580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581/* end confdefs.h.  */
1582$4
1583#include <$2>
1584_ACEOF
1585if ac_fn_c_try_compile "$LINENO"; then :
1586  ac_header_compiler=yes
1587else
1588  ac_header_compiler=no
1589fi
1590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1592$as_echo "$ac_header_compiler" >&6; }
1593
1594# Is the header present?
1595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1596$as_echo_n "checking $2 presence... " >&6; }
1597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1598/* end confdefs.h.  */
1599#include <$2>
1600_ACEOF
1601if ac_fn_c_try_cpp "$LINENO"; then :
1602  ac_header_preproc=yes
1603else
1604  ac_header_preproc=no
1605fi
1606rm -f conftest.err conftest.i conftest.$ac_ext
1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1608$as_echo "$ac_header_preproc" >&6; }
1609
1610# So?  What about this header?
1611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1612  yes:no: )
1613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1614$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1616$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1617    ;;
1618  no:yes:* )
1619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1620$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1622$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1624$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1625    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1626$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1627    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1628$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1629( $as_echo "## ---------------------------------------------------------------------- ##
1630## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1631## ---------------------------------------------------------------------- ##"
1632     ) | sed "s/^/$as_me: WARNING:     /" >&2
1633    ;;
1634esac
1635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636$as_echo_n "checking for $2... " >&6; }
1637if eval \${$3+:} false; then :
1638  $as_echo_n "(cached) " >&6
1639else
1640  eval "$3=\$ac_header_compiler"
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648} # ac_fn_c_check_header_mongrel
1649
1650# ac_fn_c_try_run LINENO
1651# ----------------------
1652# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653# that executables *can* be run.
1654ac_fn_c_try_run ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  if { { ac_try="$ac_link"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_link") 2>&5
1665  ac_status=$?
1666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668  { { case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_try") 2>&5
1675  ac_status=$?
1676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677  test $ac_status = 0; }; }; then :
1678  ac_retval=0
1679else
1680  $as_echo "$as_me: program exited with status $ac_status" >&5
1681       $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684       ac_retval=$ac_status
1685fi
1686  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_run
1691
1692# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693# -------------------------------------------------------
1694# Tests whether HEADER exists and can be compiled using the include files in
1695# INCLUDES, setting the cache variable VAR accordingly.
1696ac_fn_c_check_header_compile ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
1701if eval \${$3+:} false; then :
1702  $as_echo_n "(cached) " >&6
1703else
1704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h.  */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710  eval "$3=yes"
1711else
1712  eval "$3=no"
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721} # ac_fn_c_check_header_compile
1722
1723# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1724# ---------------------------------------------
1725# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1726# accordingly.
1727ac_fn_c_check_decl ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  as_decl_name=`echo $2|sed 's/ *(.*//'`
1731  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1733$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1734if eval \${$3+:} false; then :
1735  $as_echo_n "(cached) " >&6
1736else
1737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739$4
1740int
1741main ()
1742{
1743#ifndef $as_decl_name
1744#ifdef __cplusplus
1745  (void) $as_decl_use;
1746#else
1747  (void) $as_decl_name;
1748#endif
1749#endif
1750
1751  ;
1752  return 0;
1753}
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756  eval "$3=yes"
1757else
1758  eval "$3=no"
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767} # ac_fn_c_check_decl
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext conftest$ac_exeext
1776  if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_link") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792	 test -z "$ac_c_werror_flag" ||
1793	 test ! -s conftest.err
1794       } && test -s conftest$ac_exeext && {
1795	 test "$cross_compiling" = yes ||
1796	 $as_test_x conftest$ac_exeext
1797       }; then :
1798  ac_retval=0
1799else
1800  $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803	ac_retval=1
1804fi
1805  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807  # interfere with the next link command; also delete a directory that is
1808  # left behind by Apple's compiler.  We do this before executing the actions.
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_link
1814cat >config.log <<_ACEOF
1815This file contains any messages produced by compilers while
1816running configure, to aid debugging if configure makes a mistake.
1817
1818It was created by xev $as_me 1.2.1, which was
1819generated by GNU Autoconf 2.68.  Invocation command line was
1820
1821  $ $0 $@
1822
1823_ACEOF
1824exec 5>>config.log
1825{
1826cat <<_ASUNAME
1827## --------- ##
1828## Platform. ##
1829## --------- ##
1830
1831hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1832uname -m = `(uname -m) 2>/dev/null || echo unknown`
1833uname -r = `(uname -r) 2>/dev/null || echo unknown`
1834uname -s = `(uname -s) 2>/dev/null || echo unknown`
1835uname -v = `(uname -v) 2>/dev/null || echo unknown`
1836
1837/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1838/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1839
1840/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1841/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1842/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1843/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1844/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1845/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1846/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1847
1848_ASUNAME
1849
1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851for as_dir in $PATH
1852do
1853  IFS=$as_save_IFS
1854  test -z "$as_dir" && as_dir=.
1855    $as_echo "PATH: $as_dir"
1856  done
1857IFS=$as_save_IFS
1858
1859} >&5
1860
1861cat >&5 <<_ACEOF
1862
1863
1864## ----------- ##
1865## Core tests. ##
1866## ----------- ##
1867
1868_ACEOF
1869
1870
1871# Keep a trace of the command line.
1872# Strip out --no-create and --no-recursion so they do not pile up.
1873# Strip out --silent because we don't want to record it for future runs.
1874# Also quote any args containing shell meta-characters.
1875# Make two passes to allow for proper duplicate-argument suppression.
1876ac_configure_args=
1877ac_configure_args0=
1878ac_configure_args1=
1879ac_must_keep_next=false
1880for ac_pass in 1 2
1881do
1882  for ac_arg
1883  do
1884    case $ac_arg in
1885    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1886    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1887    | -silent | --silent | --silen | --sile | --sil)
1888      continue ;;
1889    *\'*)
1890      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891    esac
1892    case $ac_pass in
1893    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1894    2)
1895      as_fn_append ac_configure_args1 " '$ac_arg'"
1896      if test $ac_must_keep_next = true; then
1897	ac_must_keep_next=false # Got value, back to normal.
1898      else
1899	case $ac_arg in
1900	  *=* | --config-cache | -C | -disable-* | --disable-* \
1901	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1902	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1903	  | -with-* | --with-* | -without-* | --without-* | --x)
1904	    case "$ac_configure_args0 " in
1905	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906	    esac
1907	    ;;
1908	  -* ) ac_must_keep_next=true ;;
1909	esac
1910      fi
1911      as_fn_append ac_configure_args " '$ac_arg'"
1912      ;;
1913    esac
1914  done
1915done
1916{ ac_configure_args0=; unset ac_configure_args0;}
1917{ ac_configure_args1=; unset ac_configure_args1;}
1918
1919# When interrupted or exit'd, cleanup temporary files, and complete
1920# config.log.  We remove comments because anyway the quotes in there
1921# would cause problems or look ugly.
1922# WARNING: Use '\'' to represent an apostrophe within the trap.
1923# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1924trap 'exit_status=$?
1925  # Save into config.log some information that might help in debugging.
1926  {
1927    echo
1928
1929    $as_echo "## ---------------- ##
1930## Cache variables. ##
1931## ---------------- ##"
1932    echo
1933    # The following way of writing the cache mishandles newlines in values,
1934(
1935  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1936    eval ac_val=\$$ac_var
1937    case $ac_val in #(
1938    *${as_nl}*)
1939      case $ac_var in #(
1940      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942      esac
1943      case $ac_var in #(
1944      _ | IFS | as_nl) ;; #(
1945      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1946      *) { eval $ac_var=; unset $ac_var;} ;;
1947      esac ;;
1948    esac
1949  done
1950  (set) 2>&1 |
1951    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1952    *${as_nl}ac_space=\ *)
1953      sed -n \
1954	"s/'\''/'\''\\\\'\'''\''/g;
1955	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956      ;; #(
1957    *)
1958      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1959      ;;
1960    esac |
1961    sort
1962)
1963    echo
1964
1965    $as_echo "## ----------------- ##
1966## Output variables. ##
1967## ----------------- ##"
1968    echo
1969    for ac_var in $ac_subst_vars
1970    do
1971      eval ac_val=\$$ac_var
1972      case $ac_val in
1973      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974      esac
1975      $as_echo "$ac_var='\''$ac_val'\''"
1976    done | sort
1977    echo
1978
1979    if test -n "$ac_subst_files"; then
1980      $as_echo "## ------------------- ##
1981## File substitutions. ##
1982## ------------------- ##"
1983      echo
1984      for ac_var in $ac_subst_files
1985      do
1986	eval ac_val=\$$ac_var
1987	case $ac_val in
1988	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989	esac
1990	$as_echo "$ac_var='\''$ac_val'\''"
1991      done | sort
1992      echo
1993    fi
1994
1995    if test -s confdefs.h; then
1996      $as_echo "## ----------- ##
1997## confdefs.h. ##
1998## ----------- ##"
1999      echo
2000      cat confdefs.h
2001      echo
2002    fi
2003    test "$ac_signal" != 0 &&
2004      $as_echo "$as_me: caught signal $ac_signal"
2005    $as_echo "$as_me: exit $exit_status"
2006  } >&5
2007  rm -f core *.core core.conftest.* &&
2008    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2009    exit $exit_status
2010' 0
2011for ac_signal in 1 2 13 15; do
2012  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2013done
2014ac_signal=0
2015
2016# confdefs.h avoids OS command line length limits that DEFS can exceed.
2017rm -f -r conftest* confdefs.h
2018
2019$as_echo "/* confdefs.h */" > confdefs.h
2020
2021# Predefined preprocessor variables.
2022
2023cat >>confdefs.h <<_ACEOF
2024#define PACKAGE_NAME "$PACKAGE_NAME"
2025_ACEOF
2026
2027cat >>confdefs.h <<_ACEOF
2028#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2029_ACEOF
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_VERSION "$PACKAGE_VERSION"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_STRING "$PACKAGE_STRING"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_URL "$PACKAGE_URL"
2045_ACEOF
2046
2047
2048# Let the site file select an alternate cache file if it wants to.
2049# Prefer an explicitly selected file to automatically selected ones.
2050ac_site_file1=NONE
2051ac_site_file2=NONE
2052if test -n "$CONFIG_SITE"; then
2053  # We do not want a PATH search for config.site.
2054  case $CONFIG_SITE in #((
2055    -*)  ac_site_file1=./$CONFIG_SITE;;
2056    */*) ac_site_file1=$CONFIG_SITE;;
2057    *)   ac_site_file1=./$CONFIG_SITE;;
2058  esac
2059elif test "x$prefix" != xNONE; then
2060  ac_site_file1=$prefix/share/config.site
2061  ac_site_file2=$prefix/etc/config.site
2062else
2063  ac_site_file1=$ac_default_prefix/share/config.site
2064  ac_site_file2=$ac_default_prefix/etc/config.site
2065fi
2066for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2067do
2068  test "x$ac_site_file" = xNONE && continue
2069  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2070    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2071$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2072    sed 's/^/| /' "$ac_site_file" >&5
2073    . "$ac_site_file" \
2074      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076as_fn_error $? "failed to load site script $ac_site_file
2077See \`config.log' for more details" "$LINENO" 5; }
2078  fi
2079done
2080
2081if test -r "$cache_file"; then
2082  # Some versions of bash will fail to source /dev/null (special files
2083  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2084  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086$as_echo "$as_me: loading cache $cache_file" >&6;}
2087    case $cache_file in
2088      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089      *)                      . "./$cache_file";;
2090    esac
2091  fi
2092else
2093  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094$as_echo "$as_me: creating cache $cache_file" >&6;}
2095  >$cache_file
2096fi
2097
2098# Check that the precious variables saved in the cache have kept the same
2099# value.
2100ac_cache_corrupted=false
2101for ac_var in $ac_precious_vars; do
2102  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103  eval ac_new_set=\$ac_env_${ac_var}_set
2104  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105  eval ac_new_val=\$ac_env_${ac_var}_value
2106  case $ac_old_set,$ac_new_set in
2107    set,)
2108      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110      ac_cache_corrupted=: ;;
2111    ,set)
2112      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114      ac_cache_corrupted=: ;;
2115    ,);;
2116    *)
2117      if test "x$ac_old_val" != "x$ac_new_val"; then
2118	# differences in whitespace do not lead to failure.
2119	ac_old_val_w=`echo x $ac_old_val`
2120	ac_new_val_w=`echo x $ac_new_val`
2121	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124	  ac_cache_corrupted=:
2125	else
2126	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128	  eval $ac_var=\$ac_old_val
2129	fi
2130	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2131$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2132	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2133$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2134      fi;;
2135  esac
2136  # Pass precious variables to config.status.
2137  if test "$ac_new_set" = set; then
2138    case $ac_new_val in
2139    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140    *) ac_arg=$ac_var=$ac_new_val ;;
2141    esac
2142    case " $ac_configure_args " in
2143      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2144      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2145    esac
2146  fi
2147done
2148if $ac_cache_corrupted; then
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2154fi
2155## -------------------- ##
2156## Main body of script. ##
2157## -------------------- ##
2158
2159ac_ext=c
2160ac_cpp='$CPP $CPPFLAGS'
2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166
2167ac_config_headers="$ac_config_headers config.h"
2168
2169ac_ext=c
2170ac_cpp='$CPP $CPPFLAGS'
2171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173ac_compiler_gnu=$ac_cv_c_compiler_gnu
2174if test -n "$ac_tool_prefix"; then
2175  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2176set dummy ${ac_tool_prefix}gcc; ac_word=$2
2177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2178$as_echo_n "checking for $ac_word... " >&6; }
2179if ${ac_cv_prog_CC+:} false; then :
2180  $as_echo_n "(cached) " >&6
2181else
2182  if test -n "$CC"; then
2183  ac_cv_prog_CC="$CC" # Let the user override the test.
2184else
2185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188  IFS=$as_save_IFS
2189  test -z "$as_dir" && as_dir=.
2190    for ac_exec_ext in '' $ac_executable_extensions; do
2191  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2194    break 2
2195  fi
2196done
2197  done
2198IFS=$as_save_IFS
2199
2200fi
2201fi
2202CC=$ac_cv_prog_CC
2203if test -n "$CC"; then
2204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2205$as_echo "$CC" >&6; }
2206else
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2208$as_echo "no" >&6; }
2209fi
2210
2211
2212fi
2213if test -z "$ac_cv_prog_CC"; then
2214  ac_ct_CC=$CC
2215  # Extract the first word of "gcc", so it can be a program name with args.
2216set dummy gcc; ac_word=$2
2217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2218$as_echo_n "checking for $ac_word... " >&6; }
2219if ${ac_cv_prog_ac_ct_CC+:} false; then :
2220  $as_echo_n "(cached) " >&6
2221else
2222  if test -n "$ac_ct_CC"; then
2223  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228  IFS=$as_save_IFS
2229  test -z "$as_dir" && as_dir=.
2230    for ac_exec_ext in '' $ac_executable_extensions; do
2231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232    ac_cv_prog_ac_ct_CC="gcc"
2233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2234    break 2
2235  fi
2236done
2237  done
2238IFS=$as_save_IFS
2239
2240fi
2241fi
2242ac_ct_CC=$ac_cv_prog_ac_ct_CC
2243if test -n "$ac_ct_CC"; then
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2245$as_echo "$ac_ct_CC" >&6; }
2246else
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2248$as_echo "no" >&6; }
2249fi
2250
2251  if test "x$ac_ct_CC" = x; then
2252    CC=""
2253  else
2254    case $cross_compiling:$ac_tool_warned in
2255yes:)
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2258ac_tool_warned=yes ;;
2259esac
2260    CC=$ac_ct_CC
2261  fi
2262else
2263  CC="$ac_cv_prog_CC"
2264fi
2265
2266if test -z "$CC"; then
2267          if test -n "$ac_tool_prefix"; then
2268    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2269set dummy ${ac_tool_prefix}cc; ac_word=$2
2270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2271$as_echo_n "checking for $ac_word... " >&6; }
2272if ${ac_cv_prog_CC+:} false; then :
2273  $as_echo_n "(cached) " >&6
2274else
2275  if test -n "$CC"; then
2276  ac_cv_prog_CC="$CC" # Let the user override the test.
2277else
2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281  IFS=$as_save_IFS
2282  test -z "$as_dir" && as_dir=.
2283    for ac_exec_ext in '' $ac_executable_extensions; do
2284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285    ac_cv_prog_CC="${ac_tool_prefix}cc"
2286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2287    break 2
2288  fi
2289done
2290  done
2291IFS=$as_save_IFS
2292
2293fi
2294fi
2295CC=$ac_cv_prog_CC
2296if test -n "$CC"; then
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2298$as_echo "$CC" >&6; }
2299else
2300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2301$as_echo "no" >&6; }
2302fi
2303
2304
2305  fi
2306fi
2307if test -z "$CC"; then
2308  # Extract the first word of "cc", so it can be a program name with args.
2309set dummy cc; ac_word=$2
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311$as_echo_n "checking for $ac_word... " >&6; }
2312if ${ac_cv_prog_CC+:} false; then :
2313  $as_echo_n "(cached) " >&6
2314else
2315  if test -n "$CC"; then
2316  ac_cv_prog_CC="$CC" # Let the user override the test.
2317else
2318  ac_prog_rejected=no
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324    for ac_exec_ext in '' $ac_executable_extensions; do
2325  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2327       ac_prog_rejected=yes
2328       continue
2329     fi
2330    ac_cv_prog_CC="cc"
2331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335  done
2336IFS=$as_save_IFS
2337
2338if test $ac_prog_rejected = yes; then
2339  # We found a bogon in the path, so make sure we never use it.
2340  set dummy $ac_cv_prog_CC
2341  shift
2342  if test $# != 0; then
2343    # We chose a different compiler from the bogus one.
2344    # However, it has the same basename, so the bogon will be chosen
2345    # first if we set CC to just the basename; use the full file name.
2346    shift
2347    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2348  fi
2349fi
2350fi
2351fi
2352CC=$ac_cv_prog_CC
2353if test -n "$CC"; then
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2355$as_echo "$CC" >&6; }
2356else
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2358$as_echo "no" >&6; }
2359fi
2360
2361
2362fi
2363if test -z "$CC"; then
2364  if test -n "$ac_tool_prefix"; then
2365  for ac_prog in cl.exe
2366  do
2367    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2368set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2370$as_echo_n "checking for $ac_word... " >&6; }
2371if ${ac_cv_prog_CC+:} false; then :
2372  $as_echo_n "(cached) " >&6
2373else
2374  if test -n "$CC"; then
2375  ac_cv_prog_CC="$CC" # Let the user override the test.
2376else
2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380  IFS=$as_save_IFS
2381  test -z "$as_dir" && as_dir=.
2382    for ac_exec_ext in '' $ac_executable_extensions; do
2383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2384    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2385    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2386    break 2
2387  fi
2388done
2389  done
2390IFS=$as_save_IFS
2391
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2397$as_echo "$CC" >&6; }
2398else
2399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2400$as_echo "no" >&6; }
2401fi
2402
2403
2404    test -n "$CC" && break
2405  done
2406fi
2407if test -z "$CC"; then
2408  ac_ct_CC=$CC
2409  for ac_prog in cl.exe
2410do
2411  # Extract the first word of "$ac_prog", so it can be a program name with args.
2412set dummy $ac_prog; ac_word=$2
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
2415if ${ac_cv_prog_ac_ct_CC+:} false; then :
2416  $as_echo_n "(cached) " >&6
2417else
2418  if test -n "$ac_ct_CC"; then
2419  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424  IFS=$as_save_IFS
2425  test -z "$as_dir" && as_dir=.
2426    for ac_exec_ext in '' $ac_executable_extensions; do
2427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428    ac_cv_prog_ac_ct_CC="$ac_prog"
2429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2430    break 2
2431  fi
2432done
2433  done
2434IFS=$as_save_IFS
2435
2436fi
2437fi
2438ac_ct_CC=$ac_cv_prog_ac_ct_CC
2439if test -n "$ac_ct_CC"; then
2440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2441$as_echo "$ac_ct_CC" >&6; }
2442else
2443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444$as_echo "no" >&6; }
2445fi
2446
2447
2448  test -n "$ac_ct_CC" && break
2449done
2450
2451  if test "x$ac_ct_CC" = x; then
2452    CC=""
2453  else
2454    case $cross_compiling:$ac_tool_warned in
2455yes:)
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2458ac_tool_warned=yes ;;
2459esac
2460    CC=$ac_ct_CC
2461  fi
2462fi
2463
2464fi
2465
2466
2467test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469as_fn_error $? "no acceptable C compiler found in \$PATH
2470See \`config.log' for more details" "$LINENO" 5; }
2471
2472# Provide some information about the compiler.
2473$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2474set X $ac_compile
2475ac_compiler=$2
2476for ac_option in --version -v -V -qversion; do
2477  { { ac_try="$ac_compiler $ac_option >&5"
2478case "(($ac_try" in
2479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480  *) ac_try_echo=$ac_try;;
2481esac
2482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483$as_echo "$ac_try_echo"; } >&5
2484  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2485  ac_status=$?
2486  if test -s conftest.err; then
2487    sed '10a\
2488... rest of stderr output deleted ...
2489         10q' conftest.err >conftest.er1
2490    cat conftest.er1 >&5
2491  fi
2492  rm -f conftest.er1 conftest.err
2493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2494  test $ac_status = 0; }
2495done
2496
2497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498/* end confdefs.h.  */
2499
2500int
2501main ()
2502{
2503
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508ac_clean_files_save=$ac_clean_files
2509ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2510# Try to create an executable without -o first, disregard a.out.
2511# It will help us diagnose broken compilers, and finding out an intuition
2512# of exeext.
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2514$as_echo_n "checking whether the C compiler works... " >&6; }
2515ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2516
2517# The possible output files:
2518ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2519
2520ac_rmfiles=
2521for ac_file in $ac_files
2522do
2523  case $ac_file in
2524    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2525    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2526  esac
2527done
2528rm -f $ac_rmfiles
2529
2530if { { ac_try="$ac_link_default"
2531case "(($ac_try" in
2532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533  *) ac_try_echo=$ac_try;;
2534esac
2535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2536$as_echo "$ac_try_echo"; } >&5
2537  (eval "$ac_link_default") 2>&5
2538  ac_status=$?
2539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540  test $ac_status = 0; }; then :
2541  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2542# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2543# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2544# so that the user can short-circuit this test for compilers unknown to
2545# Autoconf.
2546for ac_file in $ac_files ''
2547do
2548  test -f "$ac_file" || continue
2549  case $ac_file in
2550    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2551	;;
2552    [ab].out )
2553	# We found the default executable, but exeext='' is most
2554	# certainly right.
2555	break;;
2556    *.* )
2557	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2558	then :; else
2559	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560	fi
2561	# We set ac_cv_exeext here because the later test for it is not
2562	# safe: cross compilers may not add the suffix if given an `-o'
2563	# argument, so we may need to know it at that point already.
2564	# Even if this section looks crufty: it has the advantage of
2565	# actually working.
2566	break;;
2567    * )
2568	break;;
2569  esac
2570done
2571test "$ac_cv_exeext" = no && ac_cv_exeext=
2572
2573else
2574  ac_file=''
2575fi
2576if test -z "$ac_file"; then :
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579$as_echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584as_fn_error 77 "C compiler cannot create executables
2585See \`config.log' for more details" "$LINENO" 5; }
2586else
2587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588$as_echo "yes" >&6; }
2589fi
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2591$as_echo_n "checking for C compiler default output file name... " >&6; }
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2593$as_echo "$ac_file" >&6; }
2594ac_exeext=$ac_cv_exeext
2595
2596rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2597ac_clean_files=$ac_clean_files_save
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2599$as_echo_n "checking for suffix of executables... " >&6; }
2600if { { ac_try="$ac_link"
2601case "(($ac_try" in
2602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603  *) ac_try_echo=$ac_try;;
2604esac
2605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2606$as_echo "$ac_try_echo"; } >&5
2607  (eval "$ac_link") 2>&5
2608  ac_status=$?
2609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2610  test $ac_status = 0; }; then :
2611  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2612# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2613# work properly (i.e., refer to `conftest.exe'), while it won't with
2614# `rm'.
2615for ac_file in conftest.exe conftest conftest.*; do
2616  test -f "$ac_file" || continue
2617  case $ac_file in
2618    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2619    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620	  break;;
2621    * ) break;;
2622  esac
2623done
2624else
2625  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2628See \`config.log' for more details" "$LINENO" 5; }
2629fi
2630rm -f conftest conftest$ac_cv_exeext
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2632$as_echo "$ac_cv_exeext" >&6; }
2633
2634rm -f conftest.$ac_ext
2635EXEEXT=$ac_cv_exeext
2636ac_exeext=$EXEEXT
2637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638/* end confdefs.h.  */
2639#include <stdio.h>
2640int
2641main ()
2642{
2643FILE *f = fopen ("conftest.out", "w");
2644 return ferror (f) || fclose (f) != 0;
2645
2646  ;
2647  return 0;
2648}
2649_ACEOF
2650ac_clean_files="$ac_clean_files conftest.out"
2651# Check that the compiler produces executables we can run.  If not, either
2652# the compiler is broken, or we cross compile.
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2654$as_echo_n "checking whether we are cross compiling... " >&6; }
2655if test "$cross_compiling" != yes; then
2656  { { ac_try="$ac_link"
2657case "(($ac_try" in
2658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659  *) ac_try_echo=$ac_try;;
2660esac
2661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662$as_echo "$ac_try_echo"; } >&5
2663  (eval "$ac_link") 2>&5
2664  ac_status=$?
2665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666  test $ac_status = 0; }
2667  if { ac_try='./conftest$ac_cv_exeext'
2668  { { case "(($ac_try" in
2669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670  *) ac_try_echo=$ac_try;;
2671esac
2672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2673$as_echo "$ac_try_echo"; } >&5
2674  (eval "$ac_try") 2>&5
2675  ac_status=$?
2676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2677  test $ac_status = 0; }; }; then
2678    cross_compiling=no
2679  else
2680    if test "$cross_compiling" = maybe; then
2681	cross_compiling=yes
2682    else
2683	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685as_fn_error $? "cannot run C compiled programs.
2686If you meant to cross compile, use \`--host'.
2687See \`config.log' for more details" "$LINENO" 5; }
2688    fi
2689  fi
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2692$as_echo "$cross_compiling" >&6; }
2693
2694rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2695ac_clean_files=$ac_clean_files_save
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2697$as_echo_n "checking for suffix of object files... " >&6; }
2698if ${ac_cv_objext+:} false; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702/* end confdefs.h.  */
2703
2704int
2705main ()
2706{
2707
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.o conftest.obj
2713if { { ac_try="$ac_compile"
2714case "(($ac_try" in
2715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716  *) ac_try_echo=$ac_try;;
2717esac
2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719$as_echo "$ac_try_echo"; } >&5
2720  (eval "$ac_compile") 2>&5
2721  ac_status=$?
2722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723  test $ac_status = 0; }; then :
2724  for ac_file in conftest.o conftest.obj conftest.*; do
2725  test -f "$ac_file" || continue;
2726  case $ac_file in
2727    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2728    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2729       break;;
2730  esac
2731done
2732else
2733  $as_echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738as_fn_error $? "cannot compute suffix of object files: cannot compile
2739See \`config.log' for more details" "$LINENO" 5; }
2740fi
2741rm -f conftest.$ac_cv_objext conftest.$ac_ext
2742fi
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2744$as_echo "$ac_cv_objext" >&6; }
2745OBJEXT=$ac_cv_objext
2746ac_objext=$OBJEXT
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2748$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749if ${ac_cv_c_compiler_gnu+:} false; then :
2750  $as_echo_n "(cached) " >&6
2751else
2752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758#ifndef __GNUC__
2759       choke me
2760#endif
2761
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766if ac_fn_c_try_compile "$LINENO"; then :
2767  ac_compiler_gnu=yes
2768else
2769  ac_compiler_gnu=no
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772ac_cv_c_compiler_gnu=$ac_compiler_gnu
2773
2774fi
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2776$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2777if test $ac_compiler_gnu = yes; then
2778  GCC=yes
2779else
2780  GCC=
2781fi
2782ac_test_CFLAGS=${CFLAGS+set}
2783ac_save_CFLAGS=$CFLAGS
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2785$as_echo_n "checking whether $CC accepts -g... " >&6; }
2786if ${ac_cv_prog_cc_g+:} false; then :
2787  $as_echo_n "(cached) " >&6
2788else
2789  ac_save_c_werror_flag=$ac_c_werror_flag
2790   ac_c_werror_flag=yes
2791   ac_cv_prog_cc_g=no
2792   CFLAGS="-g"
2793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h.  */
2795
2796int
2797main ()
2798{
2799
2800  ;
2801  return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805  ac_cv_prog_cc_g=yes
2806else
2807  CFLAGS=""
2808      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809/* end confdefs.h.  */
2810
2811int
2812main ()
2813{
2814
2815  ;
2816  return 0;
2817}
2818_ACEOF
2819if ac_fn_c_try_compile "$LINENO"; then :
2820
2821else
2822  ac_c_werror_flag=$ac_save_c_werror_flag
2823	 CFLAGS="-g"
2824	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835if ac_fn_c_try_compile "$LINENO"; then :
2836  ac_cv_prog_cc_g=yes
2837fi
2838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839fi
2840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841fi
2842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843   ac_c_werror_flag=$ac_save_c_werror_flag
2844fi
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2846$as_echo "$ac_cv_prog_cc_g" >&6; }
2847if test "$ac_test_CFLAGS" = set; then
2848  CFLAGS=$ac_save_CFLAGS
2849elif test $ac_cv_prog_cc_g = yes; then
2850  if test "$GCC" = yes; then
2851    CFLAGS="-g -O2"
2852  else
2853    CFLAGS="-g"
2854  fi
2855else
2856  if test "$GCC" = yes; then
2857    CFLAGS="-O2"
2858  else
2859    CFLAGS=
2860  fi
2861fi
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2864if ${ac_cv_prog_cc_c89+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  ac_cv_prog_cc_c89=no
2868ac_save_CC=$CC
2869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870/* end confdefs.h.  */
2871#include <stdarg.h>
2872#include <stdio.h>
2873#include <sys/types.h>
2874#include <sys/stat.h>
2875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2876struct buf { int x; };
2877FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878static char *e (p, i)
2879     char **p;
2880     int i;
2881{
2882  return p[i];
2883}
2884static char *f (char * (*g) (char **, int), char **p, ...)
2885{
2886  char *s;
2887  va_list v;
2888  va_start (v,p);
2889  s = g (p, va_arg (v,int));
2890  va_end (v);
2891  return s;
2892}
2893
2894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2895   function prototypes and stuff, but not '\xHH' hex character constants.
2896   These don't provoke an error unfortunately, instead are silently treated
2897   as 'x'.  The following induces an error, until -std is added to get
2898   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2899   array size at least.  It's necessary to write '\x00'==0 to get something
2900   that's true only with -std.  */
2901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
2903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904   inside strings and character constants.  */
2905#define FOO(x) 'x'
2906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2907
2908int test (int i, double x);
2909struct s1 {int (*f) (int a);};
2910struct s2 {int (*f) (double a);};
2911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912int argc;
2913char **argv;
2914int
2915main ()
2916{
2917return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2918  ;
2919  return 0;
2920}
2921_ACEOF
2922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924do
2925  CC="$ac_save_CC $ac_arg"
2926  if ac_fn_c_try_compile "$LINENO"; then :
2927  ac_cv_prog_cc_c89=$ac_arg
2928fi
2929rm -f core conftest.err conftest.$ac_objext
2930  test "x$ac_cv_prog_cc_c89" != "xno" && break
2931done
2932rm -f conftest.$ac_ext
2933CC=$ac_save_CC
2934
2935fi
2936# AC_CACHE_VAL
2937case "x$ac_cv_prog_cc_c89" in
2938  x)
2939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2940$as_echo "none needed" >&6; } ;;
2941  xno)
2942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2943$as_echo "unsupported" >&6; } ;;
2944  *)
2945    CC="$CC $ac_cv_prog_cc_c89"
2946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2948esac
2949if test "x$ac_cv_prog_cc_c89" != xno; then :
2950
2951fi
2952
2953ac_ext=c
2954ac_cpp='$CPP $CPPFLAGS'
2955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
2959
2960ac_ext=c
2961ac_cpp='$CPP $CPPFLAGS'
2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2966$as_echo_n "checking how to run the C preprocessor... " >&6; }
2967# On Suns, sometimes $CPP names a directory.
2968if test -n "$CPP" && test -d "$CPP"; then
2969  CPP=
2970fi
2971if test -z "$CPP"; then
2972  if ${ac_cv_prog_CPP+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975      # Double quotes because CPP needs to be expanded
2976    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2977    do
2978      ac_preproc_ok=false
2979for ac_c_preproc_warn_flag in '' yes
2980do
2981  # Use a header file that comes with gcc, so configuring glibc
2982  # with a fresh cross-compiler works.
2983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984  # <limits.h> exists even on freestanding compilers.
2985  # On the NeXT, cc -E runs the code through the compiler's parser,
2986  # not just through cpp. "Syntax error" is here to catch this case.
2987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h.  */
2989#ifdef __STDC__
2990# include <limits.h>
2991#else
2992# include <assert.h>
2993#endif
2994		     Syntax error
2995_ACEOF
2996if ac_fn_c_try_cpp "$LINENO"; then :
2997
2998else
2999  # Broken: fails on valid input.
3000continue
3001fi
3002rm -f conftest.err conftest.i conftest.$ac_ext
3003
3004  # OK, works on sane cases.  Now check whether nonexistent headers
3005  # can be detected and how.
3006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007/* end confdefs.h.  */
3008#include <ac_nonexistent.h>
3009_ACEOF
3010if ac_fn_c_try_cpp "$LINENO"; then :
3011  # Broken: success on invalid input.
3012continue
3013else
3014  # Passes both tests.
3015ac_preproc_ok=:
3016break
3017fi
3018rm -f conftest.err conftest.i conftest.$ac_ext
3019
3020done
3021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3022rm -f conftest.i conftest.err conftest.$ac_ext
3023if $ac_preproc_ok; then :
3024  break
3025fi
3026
3027    done
3028    ac_cv_prog_CPP=$CPP
3029
3030fi
3031  CPP=$ac_cv_prog_CPP
3032else
3033  ac_cv_prog_CPP=$CPP
3034fi
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3036$as_echo "$CPP" >&6; }
3037ac_preproc_ok=false
3038for ac_c_preproc_warn_flag in '' yes
3039do
3040  # Use a header file that comes with gcc, so configuring glibc
3041  # with a fresh cross-compiler works.
3042  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043  # <limits.h> exists even on freestanding compilers.
3044  # On the NeXT, cc -E runs the code through the compiler's parser,
3045  # not just through cpp. "Syntax error" is here to catch this case.
3046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h.  */
3048#ifdef __STDC__
3049# include <limits.h>
3050#else
3051# include <assert.h>
3052#endif
3053		     Syntax error
3054_ACEOF
3055if ac_fn_c_try_cpp "$LINENO"; then :
3056
3057else
3058  # Broken: fails on valid input.
3059continue
3060fi
3061rm -f conftest.err conftest.i conftest.$ac_ext
3062
3063  # OK, works on sane cases.  Now check whether nonexistent headers
3064  # can be detected and how.
3065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066/* end confdefs.h.  */
3067#include <ac_nonexistent.h>
3068_ACEOF
3069if ac_fn_c_try_cpp "$LINENO"; then :
3070  # Broken: success on invalid input.
3071continue
3072else
3073  # Passes both tests.
3074ac_preproc_ok=:
3075break
3076fi
3077rm -f conftest.err conftest.i conftest.$ac_ext
3078
3079done
3080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081rm -f conftest.i conftest.err conftest.$ac_ext
3082if $ac_preproc_ok; then :
3083
3084else
3085  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3088See \`config.log' for more details" "$LINENO" 5; }
3089fi
3090
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3099$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3100if ${ac_cv_path_GREP+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -z "$GREP"; then
3104  ac_path_GREP_found=false
3105  # Loop through the user's path and test for each of PROGNAME-LIST
3106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111    for ac_prog in grep ggrep; do
3112    for ac_exec_ext in '' $ac_executable_extensions; do
3113      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3114      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3115# Check for GNU ac_path_GREP and select it if it is found.
3116  # Check for GNU $ac_path_GREP
3117case `"$ac_path_GREP" --version 2>&1` in
3118*GNU*)
3119  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3120*)
3121  ac_count=0
3122  $as_echo_n 0123456789 >"conftest.in"
3123  while :
3124  do
3125    cat "conftest.in" "conftest.in" >"conftest.tmp"
3126    mv "conftest.tmp" "conftest.in"
3127    cp "conftest.in" "conftest.nl"
3128    $as_echo 'GREP' >> "conftest.nl"
3129    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3130    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3131    as_fn_arith $ac_count + 1 && ac_count=$as_val
3132    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3133      # Best one so far, save it but keep looking for a better one
3134      ac_cv_path_GREP="$ac_path_GREP"
3135      ac_path_GREP_max=$ac_count
3136    fi
3137    # 10*(2^10) chars as input seems more than enough
3138    test $ac_count -gt 10 && break
3139  done
3140  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3141esac
3142
3143      $ac_path_GREP_found && break 3
3144    done
3145  done
3146  done
3147IFS=$as_save_IFS
3148  if test -z "$ac_cv_path_GREP"; then
3149    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3150  fi
3151else
3152  ac_cv_path_GREP=$GREP
3153fi
3154
3155fi
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3157$as_echo "$ac_cv_path_GREP" >&6; }
3158 GREP="$ac_cv_path_GREP"
3159
3160
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3162$as_echo_n "checking for egrep... " >&6; }
3163if ${ac_cv_path_EGREP+:} false; then :
3164  $as_echo_n "(cached) " >&6
3165else
3166  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3167   then ac_cv_path_EGREP="$GREP -E"
3168   else
3169     if test -z "$EGREP"; then
3170  ac_path_EGREP_found=false
3171  # Loop through the user's path and test for each of PROGNAME-LIST
3172  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_prog in egrep; do
3178    for ac_exec_ext in '' $ac_executable_extensions; do
3179      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3180      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3181# Check for GNU ac_path_EGREP and select it if it is found.
3182  # Check for GNU $ac_path_EGREP
3183case `"$ac_path_EGREP" --version 2>&1` in
3184*GNU*)
3185  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3186*)
3187  ac_count=0
3188  $as_echo_n 0123456789 >"conftest.in"
3189  while :
3190  do
3191    cat "conftest.in" "conftest.in" >"conftest.tmp"
3192    mv "conftest.tmp" "conftest.in"
3193    cp "conftest.in" "conftest.nl"
3194    $as_echo 'EGREP' >> "conftest.nl"
3195    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3196    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3197    as_fn_arith $ac_count + 1 && ac_count=$as_val
3198    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3199      # Best one so far, save it but keep looking for a better one
3200      ac_cv_path_EGREP="$ac_path_EGREP"
3201      ac_path_EGREP_max=$ac_count
3202    fi
3203    # 10*(2^10) chars as input seems more than enough
3204    test $ac_count -gt 10 && break
3205  done
3206  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3207esac
3208
3209      $ac_path_EGREP_found && break 3
3210    done
3211  done
3212  done
3213IFS=$as_save_IFS
3214  if test -z "$ac_cv_path_EGREP"; then
3215    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3216  fi
3217else
3218  ac_cv_path_EGREP=$EGREP
3219fi
3220
3221   fi
3222fi
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3224$as_echo "$ac_cv_path_EGREP" >&6; }
3225 EGREP="$ac_cv_path_EGREP"
3226
3227
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3229$as_echo_n "checking for ANSI C header files... " >&6; }
3230if ${ac_cv_header_stdc+:} false; then :
3231  $as_echo_n "(cached) " >&6
3232else
3233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h.  */
3235#include <stdlib.h>
3236#include <stdarg.h>
3237#include <string.h>
3238#include <float.h>
3239
3240int
3241main ()
3242{
3243
3244  ;
3245  return 0;
3246}
3247_ACEOF
3248if ac_fn_c_try_compile "$LINENO"; then :
3249  ac_cv_header_stdc=yes
3250else
3251  ac_cv_header_stdc=no
3252fi
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254
3255if test $ac_cv_header_stdc = yes; then
3256  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259#include <string.h>
3260
3261_ACEOF
3262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263  $EGREP "memchr" >/dev/null 2>&1; then :
3264
3265else
3266  ac_cv_header_stdc=no
3267fi
3268rm -f conftest*
3269
3270fi
3271
3272if test $ac_cv_header_stdc = yes; then
3273  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276#include <stdlib.h>
3277
3278_ACEOF
3279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280  $EGREP "free" >/dev/null 2>&1; then :
3281
3282else
3283  ac_cv_header_stdc=no
3284fi
3285rm -f conftest*
3286
3287fi
3288
3289if test $ac_cv_header_stdc = yes; then
3290  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291  if test "$cross_compiling" = yes; then :
3292  :
3293else
3294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295/* end confdefs.h.  */
3296#include <ctype.h>
3297#include <stdlib.h>
3298#if ((' ' & 0x0FF) == 0x020)
3299# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3300# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3301#else
3302# define ISLOWER(c) \
3303		   (('a' <= (c) && (c) <= 'i') \
3304		     || ('j' <= (c) && (c) <= 'r') \
3305		     || ('s' <= (c) && (c) <= 'z'))
3306# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3307#endif
3308
3309#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3310int
3311main ()
3312{
3313  int i;
3314  for (i = 0; i < 256; i++)
3315    if (XOR (islower (i), ISLOWER (i))
3316	|| toupper (i) != TOUPPER (i))
3317      return 2;
3318  return 0;
3319}
3320_ACEOF
3321if ac_fn_c_try_run "$LINENO"; then :
3322
3323else
3324  ac_cv_header_stdc=no
3325fi
3326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3327  conftest.$ac_objext conftest.beam conftest.$ac_ext
3328fi
3329
3330fi
3331fi
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3333$as_echo "$ac_cv_header_stdc" >&6; }
3334if test $ac_cv_header_stdc = yes; then
3335
3336$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3337
3338fi
3339
3340# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3341for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3342		  inttypes.h stdint.h unistd.h
3343do :
3344  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3345ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3346"
3347if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3348  cat >>confdefs.h <<_ACEOF
3349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3350_ACEOF
3351
3352fi
3353
3354done
3355
3356
3357
3358  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3359if test "x$ac_cv_header_minix_config_h" = xyes; then :
3360  MINIX=yes
3361else
3362  MINIX=
3363fi
3364
3365
3366  if test "$MINIX" = yes; then
3367
3368$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3369
3370
3371$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3372
3373
3374$as_echo "#define _MINIX 1" >>confdefs.h
3375
3376  fi
3377
3378
3379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3380$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3381if ${ac_cv_safe_to_define___extensions__+:} false; then :
3382  $as_echo_n "(cached) " >&6
3383else
3384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h.  */
3386
3387#	  define __EXTENSIONS__ 1
3388	  $ac_includes_default
3389int
3390main ()
3391{
3392
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398  ac_cv_safe_to_define___extensions__=yes
3399else
3400  ac_cv_safe_to_define___extensions__=no
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3405$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3406  test $ac_cv_safe_to_define___extensions__ = yes &&
3407    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3408
3409  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3410
3411  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3412
3413  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3414
3415  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3416
3417
3418
3419# Initialize Automake
3420am__api_version='1.11'
3421
3422ac_aux_dir=
3423for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3424  if test -f "$ac_dir/install-sh"; then
3425    ac_aux_dir=$ac_dir
3426    ac_install_sh="$ac_aux_dir/install-sh -c"
3427    break
3428  elif test -f "$ac_dir/install.sh"; then
3429    ac_aux_dir=$ac_dir
3430    ac_install_sh="$ac_aux_dir/install.sh -c"
3431    break
3432  elif test -f "$ac_dir/shtool"; then
3433    ac_aux_dir=$ac_dir
3434    ac_install_sh="$ac_aux_dir/shtool install -c"
3435    break
3436  fi
3437done
3438if test -z "$ac_aux_dir"; then
3439  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3440fi
3441
3442# These three variables are undocumented and unsupported,
3443# and are intended to be withdrawn in a future Autoconf release.
3444# They can cause serious problems if a builder's source tree is in a directory
3445# whose full name contains unusual characters.
3446ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3447ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3448ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3449
3450
3451# Find a good install program.  We prefer a C program (faster),
3452# so one script is as good as another.  But avoid the broken or
3453# incompatible versions:
3454# SysV /etc/install, /usr/sbin/install
3455# SunOS /usr/etc/install
3456# IRIX /sbin/install
3457# AIX /bin/install
3458# AmigaOS /C/install, which installs bootblocks on floppy discs
3459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3462# OS/2's system install, which has a completely different semantic
3463# ./install, which can be erroneously created by make from ./install.sh.
3464# Reject install programs that cannot install multiple files.
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3466$as_echo_n "checking for a BSD-compatible install... " >&6; }
3467if test -z "$INSTALL"; then
3468if ${ac_cv_path_install+:} false; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    # Account for people who put trailing slashes in PATH elements.
3477case $as_dir/ in #((
3478  ./ | .// | /[cC]/* | \
3479  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3480  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3481  /usr/ucb/* ) ;;
3482  *)
3483    # OSF1 and SCO ODT 3.0 have their own names for install.
3484    # Don't use installbsd from OSF since it installs stuff as root
3485    # by default.
3486    for ac_prog in ginstall scoinst install; do
3487      for ac_exec_ext in '' $ac_executable_extensions; do
3488	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3489	  if test $ac_prog = install &&
3490	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3491	    # AIX install.  It has an incompatible calling convention.
3492	    :
3493	  elif test $ac_prog = install &&
3494	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495	    # program-specific install script used by HP pwplus--don't use.
3496	    :
3497	  else
3498	    rm -rf conftest.one conftest.two conftest.dir
3499	    echo one > conftest.one
3500	    echo two > conftest.two
3501	    mkdir conftest.dir
3502	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3503	      test -s conftest.one && test -s conftest.two &&
3504	      test -s conftest.dir/conftest.one &&
3505	      test -s conftest.dir/conftest.two
3506	    then
3507	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3508	      break 3
3509	    fi
3510	  fi
3511	fi
3512      done
3513    done
3514    ;;
3515esac
3516
3517  done
3518IFS=$as_save_IFS
3519
3520rm -rf conftest.one conftest.two conftest.dir
3521
3522fi
3523  if test "${ac_cv_path_install+set}" = set; then
3524    INSTALL=$ac_cv_path_install
3525  else
3526    # As a last resort, use the slow shell script.  Don't cache a
3527    # value for INSTALL within a source directory, because that will
3528    # break other packages using the cache if that directory is
3529    # removed, or if the value is a relative name.
3530    INSTALL=$ac_install_sh
3531  fi
3532fi
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3534$as_echo "$INSTALL" >&6; }
3535
3536# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3537# It thinks the first close brace ends the variable substitution.
3538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3539
3540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3541
3542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3543
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3545$as_echo_n "checking whether build environment is sane... " >&6; }
3546# Just in case
3547sleep 1
3548echo timestamp > conftest.file
3549# Reject unsafe characters in $srcdir or the absolute working directory
3550# name.  Accept space and tab only in the latter.
3551am_lf='
3552'
3553case `pwd` in
3554  *[\\\"\#\$\&\'\`$am_lf]*)
3555    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3556esac
3557case $srcdir in
3558  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3559    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3560esac
3561
3562# Do `set' in a subshell so we don't clobber the current shell's
3563# arguments.  Must try -L first in case configure is actually a
3564# symlink; some systems play weird games with the mod time of symlinks
3565# (eg FreeBSD returns the mod time of the symlink's containing
3566# directory).
3567if (
3568   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3569   if test "$*" = "X"; then
3570      # -L didn't work.
3571      set X `ls -t "$srcdir/configure" conftest.file`
3572   fi
3573   rm -f conftest.file
3574   if test "$*" != "X $srcdir/configure conftest.file" \
3575      && test "$*" != "X conftest.file $srcdir/configure"; then
3576
3577      # If neither matched, then we have a broken ls.  This can happen
3578      # if, for instance, CONFIG_SHELL is bash and it inherits a
3579      # broken ls alias from the environment.  This has actually
3580      # happened.  Such a system could not be considered "sane".
3581      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3582alias in your environment" "$LINENO" 5
3583   fi
3584
3585   test "$2" = conftest.file
3586   )
3587then
3588   # Ok.
3589   :
3590else
3591   as_fn_error $? "newly created file is older than distributed files!
3592Check your system clock" "$LINENO" 5
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595$as_echo "yes" >&6; }
3596test "$program_prefix" != NONE &&
3597  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3598# Use a double $ so make ignores it.
3599test "$program_suffix" != NONE &&
3600  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3601# Double any \ or $.
3602# By default was `s,x,x', remove it if useless.
3603ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3604program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3605
3606# expand $ac_aux_dir to an absolute path
3607am_aux_dir=`cd $ac_aux_dir && pwd`
3608
3609if test x"${MISSING+set}" != xset; then
3610  case $am_aux_dir in
3611  *\ * | *\	*)
3612    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3613  *)
3614    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3615  esac
3616fi
3617# Use eval to expand $SHELL
3618if eval "$MISSING --run true"; then
3619  am_missing_run="$MISSING --run "
3620else
3621  am_missing_run=
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3623$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3624fi
3625
3626if test x"${install_sh}" != xset; then
3627  case $am_aux_dir in
3628  *\ * | *\	*)
3629    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3630  *)
3631    install_sh="\${SHELL} $am_aux_dir/install-sh"
3632  esac
3633fi
3634
3635# Installed binaries are usually stripped using `strip' when the user
3636# run `make install-strip'.  However `strip' might not be the right
3637# tool to use in cross-compilation environments, therefore Automake
3638# will honor the `STRIP' environment variable to overrule this program.
3639if test "$cross_compiling" != no; then
3640  if test -n "$ac_tool_prefix"; then
3641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3642set dummy ${ac_tool_prefix}strip; ac_word=$2
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644$as_echo_n "checking for $ac_word... " >&6; }
3645if ${ac_cv_prog_STRIP+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  if test -n "$STRIP"; then
3649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654  IFS=$as_save_IFS
3655  test -z "$as_dir" && as_dir=.
3656    for ac_exec_ext in '' $ac_executable_extensions; do
3657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660    break 2
3661  fi
3662done
3663  done
3664IFS=$as_save_IFS
3665
3666fi
3667fi
3668STRIP=$ac_cv_prog_STRIP
3669if test -n "$STRIP"; then
3670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3671$as_echo "$STRIP" >&6; }
3672else
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$ac_cv_prog_STRIP"; then
3680  ac_ct_STRIP=$STRIP
3681  # Extract the first word of "strip", so it can be a program name with args.
3682set dummy strip; ac_word=$2
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684$as_echo_n "checking for $ac_word... " >&6; }
3685if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3686  $as_echo_n "(cached) " >&6
3687else
3688  if test -n "$ac_ct_STRIP"; then
3689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694  IFS=$as_save_IFS
3695  test -z "$as_dir" && as_dir=.
3696    for ac_exec_ext in '' $ac_executable_extensions; do
3697  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698    ac_cv_prog_ac_ct_STRIP="strip"
3699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700    break 2
3701  fi
3702done
3703  done
3704IFS=$as_save_IFS
3705
3706fi
3707fi
3708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3709if test -n "$ac_ct_STRIP"; then
3710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3711$as_echo "$ac_ct_STRIP" >&6; }
3712else
3713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714$as_echo "no" >&6; }
3715fi
3716
3717  if test "x$ac_ct_STRIP" = x; then
3718    STRIP=":"
3719  else
3720    case $cross_compiling:$ac_tool_warned in
3721yes:)
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724ac_tool_warned=yes ;;
3725esac
3726    STRIP=$ac_ct_STRIP
3727  fi
3728else
3729  STRIP="$ac_cv_prog_STRIP"
3730fi
3731
3732fi
3733INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3736$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3737if test -z "$MKDIR_P"; then
3738  if ${ac_cv_path_mkdir+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3743do
3744  IFS=$as_save_IFS
3745  test -z "$as_dir" && as_dir=.
3746    for ac_prog in mkdir gmkdir; do
3747	 for ac_exec_ext in '' $ac_executable_extensions; do
3748	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3749	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3750	     'mkdir (GNU coreutils) '* | \
3751	     'mkdir (coreutils) '* | \
3752	     'mkdir (fileutils) '4.1*)
3753	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3754	       break 3;;
3755	   esac
3756	 done
3757       done
3758  done
3759IFS=$as_save_IFS
3760
3761fi
3762
3763  test -d ./--version && rmdir ./--version
3764  if test "${ac_cv_path_mkdir+set}" = set; then
3765    MKDIR_P="$ac_cv_path_mkdir -p"
3766  else
3767    # As a last resort, use the slow shell script.  Don't cache a
3768    # value for MKDIR_P within a source directory, because that will
3769    # break other packages using the cache if that directory is
3770    # removed, or if the value is a relative name.
3771    MKDIR_P="$ac_install_sh -d"
3772  fi
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3775$as_echo "$MKDIR_P" >&6; }
3776
3777mkdir_p="$MKDIR_P"
3778case $mkdir_p in
3779  [\\/$]* | ?:[\\/]*) ;;
3780  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3781esac
3782
3783for ac_prog in gawk mawk nawk awk
3784do
3785  # Extract the first word of "$ac_prog", so it can be a program name with args.
3786set dummy $ac_prog; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
3789if ${ac_cv_prog_AWK+:} false; then :
3790  $as_echo_n "(cached) " >&6
3791else
3792  if test -n "$AWK"; then
3793  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    for ac_exec_ext in '' $ac_executable_extensions; do
3801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802    ac_cv_prog_AWK="$ac_prog"
3803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804    break 2
3805  fi
3806done
3807  done
3808IFS=$as_save_IFS
3809
3810fi
3811fi
3812AWK=$ac_cv_prog_AWK
3813if test -n "$AWK"; then
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3815$as_echo "$AWK" >&6; }
3816else
3817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
3820
3821
3822  test -n "$AWK" && break
3823done
3824
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3826$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3827set x ${MAKE-make}
3828ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3829if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  cat >conftest.make <<\_ACEOF
3833SHELL = /bin/sh
3834all:
3835	@echo '@@@%%%=$(MAKE)=@@@%%%'
3836_ACEOF
3837# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3838case `${MAKE-make} -f conftest.make 2>/dev/null` in
3839  *@@@%%%=?*=@@@%%%*)
3840    eval ac_cv_prog_make_${ac_make}_set=yes;;
3841  *)
3842    eval ac_cv_prog_make_${ac_make}_set=no;;
3843esac
3844rm -f conftest.make
3845fi
3846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848$as_echo "yes" >&6; }
3849  SET_MAKE=
3850else
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852$as_echo "no" >&6; }
3853  SET_MAKE="MAKE=${MAKE-make}"
3854fi
3855
3856rm -rf .tst 2>/dev/null
3857mkdir .tst 2>/dev/null
3858if test -d .tst; then
3859  am__leading_dot=.
3860else
3861  am__leading_dot=_
3862fi
3863rmdir .tst 2>/dev/null
3864
3865DEPDIR="${am__leading_dot}deps"
3866
3867ac_config_commands="$ac_config_commands depfiles"
3868
3869
3870am_make=${MAKE-make}
3871cat > confinc << 'END'
3872am__doit:
3873	@echo this is the am__doit target
3874.PHONY: am__doit
3875END
3876# If we don't find an include directive, just comment out the code.
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3878$as_echo_n "checking for style of include used by $am_make... " >&6; }
3879am__include="#"
3880am__quote=
3881_am_result=none
3882# First try GNU make style include.
3883echo "include confinc" > confmf
3884# Ignore all kinds of additional output from `make'.
3885case `$am_make -s -f confmf 2> /dev/null` in #(
3886*the\ am__doit\ target*)
3887  am__include=include
3888  am__quote=
3889  _am_result=GNU
3890  ;;
3891esac
3892# Now try BSD make style include.
3893if test "$am__include" = "#"; then
3894   echo '.include "confinc"' > confmf
3895   case `$am_make -s -f confmf 2> /dev/null` in #(
3896   *the\ am__doit\ target*)
3897     am__include=.include
3898     am__quote="\""
3899     _am_result=BSD
3900     ;;
3901   esac
3902fi
3903
3904
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3906$as_echo "$_am_result" >&6; }
3907rm -f confinc confmf
3908
3909# Check whether --enable-dependency-tracking was given.
3910if test "${enable_dependency_tracking+set}" = set; then :
3911  enableval=$enable_dependency_tracking;
3912fi
3913
3914if test "x$enable_dependency_tracking" != xno; then
3915  am_depcomp="$ac_aux_dir/depcomp"
3916  AMDEPBACKSLASH='\'
3917  am__nodep='_no'
3918fi
3919 if test "x$enable_dependency_tracking" != xno; then
3920  AMDEP_TRUE=
3921  AMDEP_FALSE='#'
3922else
3923  AMDEP_TRUE='#'
3924  AMDEP_FALSE=
3925fi
3926
3927
3928if test "`cd $srcdir && pwd`" != "`pwd`"; then
3929  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3930  # is not polluted with repeated "-I."
3931  am__isrc=' -I$(srcdir)'
3932  # test to see if srcdir already configured
3933  if test -f $srcdir/config.status; then
3934    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3935  fi
3936fi
3937
3938# test whether we have cygpath
3939if test -z "$CYGPATH_W"; then
3940  if (cygpath --version) >/dev/null 2>/dev/null; then
3941    CYGPATH_W='cygpath -w'
3942  else
3943    CYGPATH_W=echo
3944  fi
3945fi
3946
3947
3948# Define the identity of the package.
3949 PACKAGE='xev'
3950 VERSION='1.2.1'
3951
3952
3953cat >>confdefs.h <<_ACEOF
3954#define PACKAGE "$PACKAGE"
3955_ACEOF
3956
3957
3958cat >>confdefs.h <<_ACEOF
3959#define VERSION "$VERSION"
3960_ACEOF
3961
3962# Some tools Automake needs.
3963
3964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3965
3966
3967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3968
3969
3970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3971
3972
3973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3974
3975
3976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3977
3978# We need awk for the "check" target.  The system "awk" is bad on
3979# some platforms.
3980# Always define AMTAR for backward compatibility.  Yes, it's still used
3981# in the wild :-(  We should find a proper way to deprecate it ...
3982AMTAR='$${TAR-tar}'
3983
3984am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3985
3986
3987
3988
3989depcc="$CC"   am_compiler_list=
3990
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3992$as_echo_n "checking dependency style of $depcc... " >&6; }
3993if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997  # We make a subdir and do the tests there.  Otherwise we can end up
3998  # making bogus files that we don't know about and never remove.  For
3999  # instance it was reported that on HP-UX the gcc test will end up
4000  # making a dummy file named `D' -- because `-MD' means `put the output
4001  # in D'.
4002  rm -rf conftest.dir
4003  mkdir conftest.dir
4004  # Copy depcomp to subdir because otherwise we won't find it if we're
4005  # using a relative directory.
4006  cp "$am_depcomp" conftest.dir
4007  cd conftest.dir
4008  # We will build objects and dependencies in a subdirectory because
4009  # it helps to detect inapplicable dependency modes.  For instance
4010  # both Tru64's cc and ICC support -MD to output dependencies as a
4011  # side effect of compilation, but ICC will put the dependencies in
4012  # the current directory while Tru64 will put them in the object
4013  # directory.
4014  mkdir sub
4015
4016  am_cv_CC_dependencies_compiler_type=none
4017  if test "$am_compiler_list" = ""; then
4018     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4019  fi
4020  am__universal=false
4021  case " $depcc " in #(
4022     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4023     esac
4024
4025  for depmode in $am_compiler_list; do
4026    # Setup a source with many dependencies, because some compilers
4027    # like to wrap large dependency lists on column 80 (with \), and
4028    # we should not choose a depcomp mode which is confused by this.
4029    #
4030    # We need to recreate these files for each test, as the compiler may
4031    # overwrite some of them when testing with obscure command lines.
4032    # This happens at least with the AIX C compiler.
4033    : > sub/conftest.c
4034    for i in 1 2 3 4 5 6; do
4035      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4036      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4037      # Solaris 8's {/usr,}/bin/sh.
4038      touch sub/conftst$i.h
4039    done
4040    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4041
4042    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4043    # mode.  It turns out that the SunPro C++ compiler does not properly
4044    # handle `-M -o', and we need to detect this.  Also, some Intel
4045    # versions had trouble with output in subdirs
4046    am__obj=sub/conftest.${OBJEXT-o}
4047    am__minus_obj="-o $am__obj"
4048    case $depmode in
4049    gcc)
4050      # This depmode causes a compiler race in universal mode.
4051      test "$am__universal" = false || continue
4052      ;;
4053    nosideeffect)
4054      # after this tag, mechanisms are not by side-effect, so they'll
4055      # only be used when explicitly requested
4056      if test "x$enable_dependency_tracking" = xyes; then
4057	continue
4058      else
4059	break
4060      fi
4061      ;;
4062    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4063      # This compiler won't grok `-c -o', but also, the minuso test has
4064      # not run yet.  These depmodes are late enough in the game, and
4065      # so weak that their functioning should not be impacted.
4066      am__obj=conftest.${OBJEXT-o}
4067      am__minus_obj=
4068      ;;
4069    none) break ;;
4070    esac
4071    if depmode=$depmode \
4072       source=sub/conftest.c object=$am__obj \
4073       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4074       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4075         >/dev/null 2>conftest.err &&
4076       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4077       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4078       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4079       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4080      # icc doesn't choke on unknown options, it will just issue warnings
4081      # or remarks (even with -Werror).  So we grep stderr for any message
4082      # that says an option was ignored or not supported.
4083      # When given -MP, icc 7.0 and 7.1 complain thusly:
4084      #   icc: Command line warning: ignoring option '-M'; no argument required
4085      # The diagnosis changed in icc 8.0:
4086      #   icc: Command line remark: option '-MP' not supported
4087      if (grep 'ignoring option' conftest.err ||
4088          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4089        am_cv_CC_dependencies_compiler_type=$depmode
4090        break
4091      fi
4092    fi
4093  done
4094
4095  cd ..
4096  rm -rf conftest.dir
4097else
4098  am_cv_CC_dependencies_compiler_type=none
4099fi
4100
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4103$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4104CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4105
4106 if
4107  test "x$enable_dependency_tracking" != xno \
4108  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4109  am__fastdepCC_TRUE=
4110  am__fastdepCC_FALSE='#'
4111else
4112  am__fastdepCC_TRUE='#'
4113  am__fastdepCC_FALSE=
4114fi
4115
4116
4117
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4120$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4121    # Check whether --enable-maintainer-mode was given.
4122if test "${enable_maintainer_mode+set}" = set; then :
4123  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4124else
4125  USE_MAINTAINER_MODE=no
4126fi
4127
4128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4129$as_echo "$USE_MAINTAINER_MODE" >&6; }
4130   if test $USE_MAINTAINER_MODE = yes; then
4131  MAINTAINER_MODE_TRUE=
4132  MAINTAINER_MODE_FALSE='#'
4133else
4134  MAINTAINER_MODE_TRUE='#'
4135  MAINTAINER_MODE_FALSE=
4136fi
4137
4138  MAINT=$MAINTAINER_MODE_TRUE
4139
4140
4141
4142# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4155$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4156if ${ac_cv_prog_cc_c99+:} false; then :
4157  $as_echo_n "(cached) " >&6
4158else
4159  ac_cv_prog_cc_c99=no
4160ac_save_CC=$CC
4161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162/* end confdefs.h.  */
4163#include <stdarg.h>
4164#include <stdbool.h>
4165#include <stdlib.h>
4166#include <wchar.h>
4167#include <stdio.h>
4168
4169// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4170#define debug(...) fprintf (stderr, __VA_ARGS__)
4171#define showlist(...) puts (#__VA_ARGS__)
4172#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4173static void
4174test_varargs_macros (void)
4175{
4176  int x = 1234;
4177  int y = 5678;
4178  debug ("Flag");
4179  debug ("X = %d\n", x);
4180  showlist (The first, second, and third items.);
4181  report (x>y, "x is %d but y is %d", x, y);
4182}
4183
4184// Check long long types.
4185#define BIG64 18446744073709551615ull
4186#define BIG32 4294967295ul
4187#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4188#if !BIG_OK
4189  your preprocessor is broken;
4190#endif
4191#if BIG_OK
4192#else
4193  your preprocessor is broken;
4194#endif
4195static long long int bignum = -9223372036854775807LL;
4196static unsigned long long int ubignum = BIG64;
4197
4198struct incomplete_array
4199{
4200  int datasize;
4201  double data[];
4202};
4203
4204struct named_init {
4205  int number;
4206  const wchar_t *name;
4207  double average;
4208};
4209
4210typedef const char *ccp;
4211
4212static inline int
4213test_restrict (ccp restrict text)
4214{
4215  // See if C++-style comments work.
4216  // Iterate through items via the restricted pointer.
4217  // Also check for declarations in for loops.
4218  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4219    continue;
4220  return 0;
4221}
4222
4223// Check varargs and va_copy.
4224static void
4225test_varargs (const char *format, ...)
4226{
4227  va_list args;
4228  va_start (args, format);
4229  va_list args_copy;
4230  va_copy (args_copy, args);
4231
4232  const char *str;
4233  int number;
4234  float fnumber;
4235
4236  while (*format)
4237    {
4238      switch (*format++)
4239	{
4240	case 's': // string
4241	  str = va_arg (args_copy, const char *);
4242	  break;
4243	case 'd': // int
4244	  number = va_arg (args_copy, int);
4245	  break;
4246	case 'f': // float
4247	  fnumber = va_arg (args_copy, double);
4248	  break;
4249	default:
4250	  break;
4251	}
4252    }
4253  va_end (args_copy);
4254  va_end (args);
4255}
4256
4257int
4258main ()
4259{
4260
4261  // Check bool.
4262  _Bool success = false;
4263
4264  // Check restrict.
4265  if (test_restrict ("String literal") == 0)
4266    success = true;
4267  char *restrict newvar = "Another string";
4268
4269  // Check varargs.
4270  test_varargs ("s, d' f .", "string", 65, 34.234);
4271  test_varargs_macros ();
4272
4273  // Check flexible array members.
4274  struct incomplete_array *ia =
4275    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4276  ia->datasize = 10;
4277  for (int i = 0; i < ia->datasize; ++i)
4278    ia->data[i] = i * 1.234;
4279
4280  // Check named initializers.
4281  struct named_init ni = {
4282    .number = 34,
4283    .name = L"Test wide string",
4284    .average = 543.34343,
4285  };
4286
4287  ni.number = 58;
4288
4289  int dynamic_array[ni.number];
4290  dynamic_array[ni.number - 1] = 543;
4291
4292  // work around unused variable warnings
4293  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4294	  || dynamic_array[ni.number - 1] != 543);
4295
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4301do
4302  CC="$ac_save_CC $ac_arg"
4303  if ac_fn_c_try_compile "$LINENO"; then :
4304  ac_cv_prog_cc_c99=$ac_arg
4305fi
4306rm -f core conftest.err conftest.$ac_objext
4307  test "x$ac_cv_prog_cc_c99" != "xno" && break
4308done
4309rm -f conftest.$ac_ext
4310CC=$ac_save_CC
4311
4312fi
4313# AC_CACHE_VAL
4314case "x$ac_cv_prog_cc_c99" in
4315  x)
4316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4317$as_echo "none needed" >&6; } ;;
4318  xno)
4319    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4320$as_echo "unsupported" >&6; } ;;
4321  *)
4322    CC="$CC $ac_cv_prog_cc_c99"
4323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4324$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4325esac
4326if test "x$ac_cv_prog_cc_c99" != xno; then :
4327
4328fi
4329
4330
4331
4332
4333
4334
4335ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4336if test "x$ac_cv_have_decl___clang__" = xyes; then :
4337  CLANGCC="yes"
4338else
4339  CLANGCC="no"
4340fi
4341
4342ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4343if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4344  INTELCC="yes"
4345else
4346  INTELCC="no"
4347fi
4348
4349ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4350if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4351  SUNCC="yes"
4352else
4353  SUNCC="no"
4354fi
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4365	if test -n "$ac_tool_prefix"; then
4366  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4367set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
4370if ${ac_cv_path_PKG_CONFIG+:} false; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  case $PKG_CONFIG in
4374  [\\/]* | ?:[\\/]*)
4375  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4376  ;;
4377  *)
4378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379for as_dir in $PATH
4380do
4381  IFS=$as_save_IFS
4382  test -z "$as_dir" && as_dir=.
4383    for ac_exec_ext in '' $ac_executable_extensions; do
4384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4385    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387    break 2
4388  fi
4389done
4390  done
4391IFS=$as_save_IFS
4392
4393  ;;
4394esac
4395fi
4396PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4397if test -n "$PKG_CONFIG"; then
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4399$as_echo "$PKG_CONFIG" >&6; }
4400else
4401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402$as_echo "no" >&6; }
4403fi
4404
4405
4406fi
4407if test -z "$ac_cv_path_PKG_CONFIG"; then
4408  ac_pt_PKG_CONFIG=$PKG_CONFIG
4409  # Extract the first word of "pkg-config", so it can be a program name with args.
4410set dummy pkg-config; ac_word=$2
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412$as_echo_n "checking for $ac_word... " >&6; }
4413if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  case $ac_pt_PKG_CONFIG in
4417  [\\/]* | ?:[\\/]*)
4418  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4419  ;;
4420  *)
4421  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426    for ac_exec_ext in '' $ac_executable_extensions; do
4427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430    break 2
4431  fi
4432done
4433  done
4434IFS=$as_save_IFS
4435
4436  ;;
4437esac
4438fi
4439ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4440if test -n "$ac_pt_PKG_CONFIG"; then
4441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4442$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4443else
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445$as_echo "no" >&6; }
4446fi
4447
4448  if test "x$ac_pt_PKG_CONFIG" = x; then
4449    PKG_CONFIG=""
4450  else
4451    case $cross_compiling:$ac_tool_warned in
4452yes:)
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455ac_tool_warned=yes ;;
4456esac
4457    PKG_CONFIG=$ac_pt_PKG_CONFIG
4458  fi
4459else
4460  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4461fi
4462
4463fi
4464if test -n "$PKG_CONFIG"; then
4465	_pkg_min_version=0.9.0
4466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4467$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4468	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4469		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470$as_echo "yes" >&6; }
4471	else
4472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473$as_echo "no" >&6; }
4474		PKG_CONFIG=""
4475	fi
4476fi
4477# Make sure we can run config.sub.
4478$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4479  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4480
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4482$as_echo_n "checking build system type... " >&6; }
4483if ${ac_cv_build+:} false; then :
4484  $as_echo_n "(cached) " >&6
4485else
4486  ac_build_alias=$build_alias
4487test "x$ac_build_alias" = x &&
4488  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4489test "x$ac_build_alias" = x &&
4490  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4491ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4492  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4493
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4496$as_echo "$ac_cv_build" >&6; }
4497case $ac_cv_build in
4498*-*-*) ;;
4499*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4500esac
4501build=$ac_cv_build
4502ac_save_IFS=$IFS; IFS='-'
4503set x $ac_cv_build
4504shift
4505build_cpu=$1
4506build_vendor=$2
4507shift; shift
4508# Remember, the first character of IFS is used to create $*,
4509# except with old shells:
4510build_os=$*
4511IFS=$ac_save_IFS
4512case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4513
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4516$as_echo_n "checking host system type... " >&6; }
4517if ${ac_cv_host+:} false; then :
4518  $as_echo_n "(cached) " >&6
4519else
4520  if test "x$host_alias" = x; then
4521  ac_cv_host=$ac_cv_build
4522else
4523  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4524    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4525fi
4526
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4529$as_echo "$ac_cv_host" >&6; }
4530case $ac_cv_host in
4531*-*-*) ;;
4532*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4533esac
4534host=$ac_cv_host
4535ac_save_IFS=$IFS; IFS='-'
4536set x $ac_cv_host
4537shift
4538host_cpu=$1
4539host_vendor=$2
4540shift; shift
4541# Remember, the first character of IFS is used to create $*,
4542# except with old shells:
4543host_os=$*
4544IFS=$ac_save_IFS
4545case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4546
4547
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4549$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4550if ${ac_cv_path_SED+:} false; then :
4551  $as_echo_n "(cached) " >&6
4552else
4553            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4554     for ac_i in 1 2 3 4 5 6 7; do
4555       ac_script="$ac_script$as_nl$ac_script"
4556     done
4557     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4558     { ac_script=; unset ac_script;}
4559     if test -z "$SED"; then
4560  ac_path_SED_found=false
4561  # Loop through the user's path and test for each of PROGNAME-LIST
4562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565  IFS=$as_save_IFS
4566  test -z "$as_dir" && as_dir=.
4567    for ac_prog in sed gsed; do
4568    for ac_exec_ext in '' $ac_executable_extensions; do
4569      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4570      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4571# Check for GNU ac_path_SED and select it if it is found.
4572  # Check for GNU $ac_path_SED
4573case `"$ac_path_SED" --version 2>&1` in
4574*GNU*)
4575  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4576*)
4577  ac_count=0
4578  $as_echo_n 0123456789 >"conftest.in"
4579  while :
4580  do
4581    cat "conftest.in" "conftest.in" >"conftest.tmp"
4582    mv "conftest.tmp" "conftest.in"
4583    cp "conftest.in" "conftest.nl"
4584    $as_echo '' >> "conftest.nl"
4585    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587    as_fn_arith $ac_count + 1 && ac_count=$as_val
4588    if test $ac_count -gt ${ac_path_SED_max-0}; then
4589      # Best one so far, save it but keep looking for a better one
4590      ac_cv_path_SED="$ac_path_SED"
4591      ac_path_SED_max=$ac_count
4592    fi
4593    # 10*(2^10) chars as input seems more than enough
4594    test $ac_count -gt 10 && break
4595  done
4596  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
4598
4599      $ac_path_SED_found && break 3
4600    done
4601  done
4602  done
4603IFS=$as_save_IFS
4604  if test -z "$ac_cv_path_SED"; then
4605    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4606  fi
4607else
4608  ac_cv_path_SED=$SED
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4613$as_echo "$ac_cv_path_SED" >&6; }
4614 SED="$ac_cv_path_SED"
4615  rm -f conftest.sed
4616
4617
4618
4619
4620
4621
4622# Check whether --enable-selective-werror was given.
4623if test "${enable_selective_werror+set}" = set; then :
4624  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4625else
4626  SELECTIVE_WERROR=yes
4627fi
4628
4629
4630
4631
4632
4633# -v is too short to test reliably with XORG_TESTSET_CFLAG
4634if test "x$SUNCC" = "xyes"; then
4635    BASE_CFLAGS="-v"
4636else
4637    BASE_CFLAGS=""
4638fi
4639
4640# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654xorg_testset_save_CFLAGS="$CFLAGS"
4655
4656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h.  */
4665int i;
4666_ACEOF
4667if ac_fn_c_try_compile "$LINENO"; then :
4668  xorg_cv_cc_flag_unknown_warning_option=yes
4669else
4670  xorg_cv_cc_flag_unknown_warning_option=no
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4677	CFLAGS="$xorg_testset_save_CFLAGS"
4678fi
4679
4680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4683	fi
4684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4688  $as_echo_n "(cached) " >&6
4689else
4690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h.  */
4692int i;
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695  xorg_cv_cc_flag_unused_command_line_argument=yes
4696else
4697  xorg_cv_cc_flag_unused_command_line_argument=no
4698fi
4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4704	CFLAGS="$xorg_testset_save_CFLAGS"
4705fi
4706
4707found="no"
4708
4709	if test $found = "no" ; then
4710		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4712		fi
4713
4714		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4716		fi
4717
4718		CFLAGS="$CFLAGS -Wall"
4719
4720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4721$as_echo_n "checking if $CC supports -Wall... " >&6; }
4722		cacheid=xorg_cv_cc_flag__Wall
4723		if eval \${$cacheid+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728int i;
4729int
4730main ()
4731{
4732
4733  ;
4734  return 0;
4735}
4736_ACEOF
4737if ac_fn_c_try_link "$LINENO"; then :
4738  eval $cacheid=yes
4739else
4740  eval $cacheid=no
4741fi
4742rm -f core conftest.err conftest.$ac_objext \
4743    conftest$ac_exeext conftest.$ac_ext
4744fi
4745
4746
4747		CFLAGS="$xorg_testset_save_CFLAGS"
4748
4749		eval supported=\$$cacheid
4750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4751$as_echo "$supported" >&6; }
4752		if test "$supported" = "yes" ; then
4753			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4754			found="yes"
4755		fi
4756	fi
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772xorg_testset_save_CFLAGS="$CFLAGS"
4773
4774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4779  $as_echo_n "(cached) " >&6
4780else
4781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h.  */
4783int i;
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786  xorg_cv_cc_flag_unknown_warning_option=yes
4787else
4788  xorg_cv_cc_flag_unknown_warning_option=no
4789fi
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791fi
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4795	CFLAGS="$xorg_testset_save_CFLAGS"
4796fi
4797
4798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4801	fi
4802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h.  */
4810int i;
4811_ACEOF
4812if ac_fn_c_try_compile "$LINENO"; then :
4813  xorg_cv_cc_flag_unused_command_line_argument=yes
4814else
4815  xorg_cv_cc_flag_unused_command_line_argument=no
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4822	CFLAGS="$xorg_testset_save_CFLAGS"
4823fi
4824
4825found="no"
4826
4827	if test $found = "no" ; then
4828		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830		fi
4831
4832		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4834		fi
4835
4836		CFLAGS="$CFLAGS -Wpointer-arith"
4837
4838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4839$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4840		cacheid=xorg_cv_cc_flag__Wpointer_arith
4841		if eval \${$cacheid+:} false; then :
4842  $as_echo_n "(cached) " >&6
4843else
4844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846int i;
4847int
4848main ()
4849{
4850
4851  ;
4852  return 0;
4853}
4854_ACEOF
4855if ac_fn_c_try_link "$LINENO"; then :
4856  eval $cacheid=yes
4857else
4858  eval $cacheid=no
4859fi
4860rm -f core conftest.err conftest.$ac_objext \
4861    conftest$ac_exeext conftest.$ac_ext
4862fi
4863
4864
4865		CFLAGS="$xorg_testset_save_CFLAGS"
4866
4867		eval supported=\$$cacheid
4868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4869$as_echo "$supported" >&6; }
4870		if test "$supported" = "yes" ; then
4871			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4872			found="yes"
4873		fi
4874	fi
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890xorg_testset_save_CFLAGS="$CFLAGS"
4891
4892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4893	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904  xorg_cv_cc_flag_unknown_warning_option=yes
4905else
4906  xorg_cv_cc_flag_unknown_warning_option=no
4907fi
4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4913	CFLAGS="$xorg_testset_save_CFLAGS"
4914fi
4915
4916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4919	fi
4920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int i;
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  xorg_cv_cc_flag_unused_command_line_argument=yes
4932else
4933  xorg_cv_cc_flag_unused_command_line_argument=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4939	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943found="no"
4944
4945	if test $found = "no" ; then
4946		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4947			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948		fi
4949
4950		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4951			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4952		fi
4953
4954		CFLAGS="$CFLAGS -Wmissing-declarations"
4955
4956		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4957$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4958		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4959		if eval \${$cacheid+:} false; then :
4960  $as_echo_n "(cached) " >&6
4961else
4962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963/* end confdefs.h.  */
4964int i;
4965int
4966main ()
4967{
4968
4969  ;
4970  return 0;
4971}
4972_ACEOF
4973if ac_fn_c_try_link "$LINENO"; then :
4974  eval $cacheid=yes
4975else
4976  eval $cacheid=no
4977fi
4978rm -f core conftest.err conftest.$ac_objext \
4979    conftest$ac_exeext conftest.$ac_ext
4980fi
4981
4982
4983		CFLAGS="$xorg_testset_save_CFLAGS"
4984
4985		eval supported=\$$cacheid
4986		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4987$as_echo "$supported" >&6; }
4988		if test "$supported" = "yes" ; then
4989			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4990			found="yes"
4991		fi
4992	fi
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008xorg_testset_save_CFLAGS="$CFLAGS"
5009
5010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019int i;
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022  xorg_cv_cc_flag_unknown_warning_option=yes
5023else
5024  xorg_cv_cc_flag_unknown_warning_option=no
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5031	CFLAGS="$xorg_testset_save_CFLAGS"
5032fi
5033
5034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5037	fi
5038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046int i;
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  xorg_cv_cc_flag_unused_command_line_argument=yes
5050else
5051  xorg_cv_cc_flag_unused_command_line_argument=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5057	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5058	CFLAGS="$xorg_testset_save_CFLAGS"
5059fi
5060
5061found="no"
5062
5063	if test $found = "no" ; then
5064		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5065			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066		fi
5067
5068		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5069			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5070		fi
5071
5072		CFLAGS="$CFLAGS -Wformat=2"
5073
5074		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5075$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5076		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5077		if eval \${$cacheid+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081/* end confdefs.h.  */
5082int i;
5083int
5084main ()
5085{
5086
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091if ac_fn_c_try_link "$LINENO"; then :
5092  eval $cacheid=yes
5093else
5094  eval $cacheid=no
5095fi
5096rm -f core conftest.err conftest.$ac_objext \
5097    conftest$ac_exeext conftest.$ac_ext
5098fi
5099
5100
5101		CFLAGS="$xorg_testset_save_CFLAGS"
5102
5103		eval supported=\$$cacheid
5104		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5105$as_echo "$supported" >&6; }
5106		if test "$supported" = "yes" ; then
5107			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5108			found="yes"
5109		fi
5110	fi
5111
5112	if test $found = "no" ; then
5113		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5115		fi
5116
5117		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5119		fi
5120
5121		CFLAGS="$CFLAGS -Wformat"
5122
5123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5124$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5125		cacheid=xorg_cv_cc_flag__Wformat
5126		if eval \${$cacheid+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130/* end confdefs.h.  */
5131int i;
5132int
5133main ()
5134{
5135
5136  ;
5137  return 0;
5138}
5139_ACEOF
5140if ac_fn_c_try_link "$LINENO"; then :
5141  eval $cacheid=yes
5142else
5143  eval $cacheid=no
5144fi
5145rm -f core conftest.err conftest.$ac_objext \
5146    conftest$ac_exeext conftest.$ac_ext
5147fi
5148
5149
5150		CFLAGS="$xorg_testset_save_CFLAGS"
5151
5152		eval supported=\$$cacheid
5153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5154$as_echo "$supported" >&6; }
5155		if test "$supported" = "yes" ; then
5156			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5157			found="yes"
5158		fi
5159	fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177xorg_testset_save_CFLAGS="$CFLAGS"
5178
5179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191  xorg_cv_cc_flag_unknown_warning_option=yes
5192else
5193  xorg_cv_cc_flag_unknown_warning_option=no
5194fi
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200	CFLAGS="$xorg_testset_save_CFLAGS"
5201fi
5202
5203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206	fi
5207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215int i;
5216_ACEOF
5217if ac_fn_c_try_compile "$LINENO"; then :
5218  xorg_cv_cc_flag_unused_command_line_argument=yes
5219else
5220  xorg_cv_cc_flag_unused_command_line_argument=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227	CFLAGS="$xorg_testset_save_CFLAGS"
5228fi
5229
5230found="no"
5231
5232	if test $found = "no" ; then
5233		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235		fi
5236
5237		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239		fi
5240
5241		CFLAGS="$CFLAGS -Wstrict-prototypes"
5242
5243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5244$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5245		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5246		if eval \${$cacheid+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252int
5253main ()
5254{
5255
5256  ;
5257  return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"; then :
5261  eval $cacheid=yes
5262else
5263  eval $cacheid=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext \
5266    conftest$ac_exeext conftest.$ac_ext
5267fi
5268
5269
5270		CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272		eval supported=\$$cacheid
5273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274$as_echo "$supported" >&6; }
5275		if test "$supported" = "yes" ; then
5276			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5277			found="yes"
5278		fi
5279	fi
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295xorg_testset_save_CFLAGS="$CFLAGS"
5296
5297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305/* end confdefs.h.  */
5306int i;
5307_ACEOF
5308if ac_fn_c_try_compile "$LINENO"; then :
5309  xorg_cv_cc_flag_unknown_warning_option=yes
5310else
5311  xorg_cv_cc_flag_unknown_warning_option=no
5312fi
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318	CFLAGS="$xorg_testset_save_CFLAGS"
5319fi
5320
5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324	fi
5325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5329  $as_echo_n "(cached) " >&6
5330else
5331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332/* end confdefs.h.  */
5333int i;
5334_ACEOF
5335if ac_fn_c_try_compile "$LINENO"; then :
5336  xorg_cv_cc_flag_unused_command_line_argument=yes
5337else
5338  xorg_cv_cc_flag_unused_command_line_argument=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5345	CFLAGS="$xorg_testset_save_CFLAGS"
5346fi
5347
5348found="no"
5349
5350	if test $found = "no" ; then
5351		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353		fi
5354
5355		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357		fi
5358
5359		CFLAGS="$CFLAGS -Wmissing-prototypes"
5360
5361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5362$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5363		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5364		if eval \${$cacheid+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369int i;
5370int
5371main ()
5372{
5373
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_link "$LINENO"; then :
5379  eval $cacheid=yes
5380else
5381  eval $cacheid=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext \
5384    conftest$ac_exeext conftest.$ac_ext
5385fi
5386
5387
5388		CFLAGS="$xorg_testset_save_CFLAGS"
5389
5390		eval supported=\$$cacheid
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5392$as_echo "$supported" >&6; }
5393		if test "$supported" = "yes" ; then
5394			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5395			found="yes"
5396		fi
5397	fi
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413xorg_testset_save_CFLAGS="$CFLAGS"
5414
5415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424int i;
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"; then :
5427  xorg_cv_cc_flag_unknown_warning_option=yes
5428else
5429  xorg_cv_cc_flag_unknown_warning_option=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5436	CFLAGS="$xorg_testset_save_CFLAGS"
5437fi
5438
5439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5442	fi
5443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452_ACEOF
5453if ac_fn_c_try_compile "$LINENO"; then :
5454  xorg_cv_cc_flag_unused_command_line_argument=yes
5455else
5456  xorg_cv_cc_flag_unused_command_line_argument=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5463	CFLAGS="$xorg_testset_save_CFLAGS"
5464fi
5465
5466found="no"
5467
5468	if test $found = "no" ; then
5469		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471		fi
5472
5473		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475		fi
5476
5477		CFLAGS="$CFLAGS -Wnested-externs"
5478
5479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5480$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5481		cacheid=xorg_cv_cc_flag__Wnested_externs
5482		if eval \${$cacheid+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h.  */
5487int i;
5488int
5489main ()
5490{
5491
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_link "$LINENO"; then :
5497  eval $cacheid=yes
5498else
5499  eval $cacheid=no
5500fi
5501rm -f core conftest.err conftest.$ac_objext \
5502    conftest$ac_exeext conftest.$ac_ext
5503fi
5504
5505
5506		CFLAGS="$xorg_testset_save_CFLAGS"
5507
5508		eval supported=\$$cacheid
5509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5510$as_echo "$supported" >&6; }
5511		if test "$supported" = "yes" ; then
5512			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5513			found="yes"
5514		fi
5515	fi
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531xorg_testset_save_CFLAGS="$CFLAGS"
5532
5533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542int i;
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545  xorg_cv_cc_flag_unknown_warning_option=yes
5546else
5547  xorg_cv_cc_flag_unknown_warning_option=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5554	CFLAGS="$xorg_testset_save_CFLAGS"
5555fi
5556
5557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5560	fi
5561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572  xorg_cv_cc_flag_unused_command_line_argument=yes
5573else
5574  xorg_cv_cc_flag_unused_command_line_argument=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5581	CFLAGS="$xorg_testset_save_CFLAGS"
5582fi
5583
5584found="no"
5585
5586	if test $found = "no" ; then
5587		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589		fi
5590
5591		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593		fi
5594
5595		CFLAGS="$CFLAGS -Wbad-function-cast"
5596
5597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5598$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5599		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5600		if eval \${$cacheid+:} false; then :
5601  $as_echo_n "(cached) " >&6
5602else
5603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605int i;
5606int
5607main ()
5608{
5609
5610  ;
5611  return 0;
5612}
5613_ACEOF
5614if ac_fn_c_try_link "$LINENO"; then :
5615  eval $cacheid=yes
5616else
5617  eval $cacheid=no
5618fi
5619rm -f core conftest.err conftest.$ac_objext \
5620    conftest$ac_exeext conftest.$ac_ext
5621fi
5622
5623
5624		CFLAGS="$xorg_testset_save_CFLAGS"
5625
5626		eval supported=\$$cacheid
5627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5628$as_echo "$supported" >&6; }
5629		if test "$supported" = "yes" ; then
5630			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5631			found="yes"
5632		fi
5633	fi
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649xorg_testset_save_CFLAGS="$CFLAGS"
5650
5651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663  xorg_cv_cc_flag_unknown_warning_option=yes
5664else
5665  xorg_cv_cc_flag_unknown_warning_option=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678	fi
5679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688_ACEOF
5689if ac_fn_c_try_compile "$LINENO"; then :
5690  xorg_cv_cc_flag_unused_command_line_argument=yes
5691else
5692  xorg_cv_cc_flag_unused_command_line_argument=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5699	CFLAGS="$xorg_testset_save_CFLAGS"
5700fi
5701
5702found="no"
5703
5704	if test $found = "no" ; then
5705		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707		fi
5708
5709		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711		fi
5712
5713		CFLAGS="$CFLAGS -Wold-style-definition"
5714
5715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5716$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5717		cacheid=xorg_cv_cc_flag__Wold_style_definition
5718		if eval \${$cacheid+:} false; then :
5719  $as_echo_n "(cached) " >&6
5720else
5721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722/* end confdefs.h.  */
5723int i;
5724int
5725main ()
5726{
5727
5728  ;
5729  return 0;
5730}
5731_ACEOF
5732if ac_fn_c_try_link "$LINENO"; then :
5733  eval $cacheid=yes
5734else
5735  eval $cacheid=no
5736fi
5737rm -f core conftest.err conftest.$ac_objext \
5738    conftest$ac_exeext conftest.$ac_ext
5739fi
5740
5741
5742		CFLAGS="$xorg_testset_save_CFLAGS"
5743
5744		eval supported=\$$cacheid
5745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5746$as_echo "$supported" >&6; }
5747		if test "$supported" = "yes" ; then
5748			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5749			found="yes"
5750		fi
5751	fi
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767xorg_testset_save_CFLAGS="$CFLAGS"
5768
5769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781  xorg_cv_cc_flag_unknown_warning_option=yes
5782else
5783  xorg_cv_cc_flag_unknown_warning_option=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796	fi
5797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805int i;
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808  xorg_cv_cc_flag_unused_command_line_argument=yes
5809else
5810  xorg_cv_cc_flag_unused_command_line_argument=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5817	CFLAGS="$xorg_testset_save_CFLAGS"
5818fi
5819
5820found="no"
5821
5822	if test $found = "no" ; then
5823		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825		fi
5826
5827		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5829		fi
5830
5831		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5832
5833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5834$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5835		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5836		if eval \${$cacheid+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h.  */
5841int i;
5842int
5843main ()
5844{
5845
5846  ;
5847  return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_link "$LINENO"; then :
5851  eval $cacheid=yes
5852else
5853  eval $cacheid=no
5854fi
5855rm -f core conftest.err conftest.$ac_objext \
5856    conftest$ac_exeext conftest.$ac_ext
5857fi
5858
5859
5860		CFLAGS="$xorg_testset_save_CFLAGS"
5861
5862		eval supported=\$$cacheid
5863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5864$as_echo "$supported" >&6; }
5865		if test "$supported" = "yes" ; then
5866			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5867			found="yes"
5868		fi
5869	fi
5870
5871
5872
5873
5874
5875# This chunk adds additional warnings that could catch undesired effects.
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889xorg_testset_save_CFLAGS="$CFLAGS"
5890
5891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900int i;
5901_ACEOF
5902if ac_fn_c_try_compile "$LINENO"; then :
5903  xorg_cv_cc_flag_unknown_warning_option=yes
5904else
5905  xorg_cv_cc_flag_unknown_warning_option=no
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5912	CFLAGS="$xorg_testset_save_CFLAGS"
5913fi
5914
5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	fi
5919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then :
5930  xorg_cv_cc_flag_unused_command_line_argument=yes
5931else
5932  xorg_cv_cc_flag_unused_command_line_argument=no
5933fi
5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935fi
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5939	CFLAGS="$xorg_testset_save_CFLAGS"
5940fi
5941
5942found="no"
5943
5944	if test $found = "no" ; then
5945		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947		fi
5948
5949		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951		fi
5952
5953		CFLAGS="$CFLAGS -Wunused"
5954
5955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5956$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5957		cacheid=xorg_cv_cc_flag__Wunused
5958		if eval \${$cacheid+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963int i;
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"; then :
5973  eval $cacheid=yes
5974else
5975  eval $cacheid=no
5976fi
5977rm -f core conftest.err conftest.$ac_objext \
5978    conftest$ac_exeext conftest.$ac_ext
5979fi
5980
5981
5982		CFLAGS="$xorg_testset_save_CFLAGS"
5983
5984		eval supported=\$$cacheid
5985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5986$as_echo "$supported" >&6; }
5987		if test "$supported" = "yes" ; then
5988			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5989			found="yes"
5990		fi
5991	fi
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007xorg_testset_save_CFLAGS="$CFLAGS"
6008
6009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h.  */
6018int i;
6019_ACEOF
6020if ac_fn_c_try_compile "$LINENO"; then :
6021  xorg_cv_cc_flag_unknown_warning_option=yes
6022else
6023  xorg_cv_cc_flag_unknown_warning_option=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026fi
6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6030	CFLAGS="$xorg_testset_save_CFLAGS"
6031fi
6032
6033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036	fi
6037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046_ACEOF
6047if ac_fn_c_try_compile "$LINENO"; then :
6048  xorg_cv_cc_flag_unused_command_line_argument=yes
6049else
6050  xorg_cv_cc_flag_unused_command_line_argument=no
6051fi
6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6056	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6057	CFLAGS="$xorg_testset_save_CFLAGS"
6058fi
6059
6060found="no"
6061
6062	if test $found = "no" ; then
6063		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065		fi
6066
6067		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069		fi
6070
6071		CFLAGS="$CFLAGS -Wuninitialized"
6072
6073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6074$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6075		cacheid=xorg_cv_cc_flag__Wuninitialized
6076		if eval \${$cacheid+:} false; then :
6077  $as_echo_n "(cached) " >&6
6078else
6079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082int
6083main ()
6084{
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_link "$LINENO"; then :
6091  eval $cacheid=yes
6092else
6093  eval $cacheid=no
6094fi
6095rm -f core conftest.err conftest.$ac_objext \
6096    conftest$ac_exeext conftest.$ac_ext
6097fi
6098
6099
6100		CFLAGS="$xorg_testset_save_CFLAGS"
6101
6102		eval supported=\$$cacheid
6103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6104$as_echo "$supported" >&6; }
6105		if test "$supported" = "yes" ; then
6106			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6107			found="yes"
6108		fi
6109	fi
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125xorg_testset_save_CFLAGS="$CFLAGS"
6126
6127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h.  */
6136int i;
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139  xorg_cv_cc_flag_unknown_warning_option=yes
6140else
6141  xorg_cv_cc_flag_unknown_warning_option=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6148	CFLAGS="$xorg_testset_save_CFLAGS"
6149fi
6150
6151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6154	fi
6155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6159  $as_echo_n "(cached) " >&6
6160else
6161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h.  */
6163int i;
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"; then :
6166  xorg_cv_cc_flag_unused_command_line_argument=yes
6167else
6168  xorg_cv_cc_flag_unused_command_line_argument=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6175	CFLAGS="$xorg_testset_save_CFLAGS"
6176fi
6177
6178found="no"
6179
6180	if test $found = "no" ; then
6181		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183		fi
6184
6185		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6187		fi
6188
6189		CFLAGS="$CFLAGS -Wshadow"
6190
6191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6192$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6193		cacheid=xorg_cv_cc_flag__Wshadow
6194		if eval \${$cacheid+:} false; then :
6195  $as_echo_n "(cached) " >&6
6196else
6197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h.  */
6199int i;
6200int
6201main ()
6202{
6203
6204  ;
6205  return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_link "$LINENO"; then :
6209  eval $cacheid=yes
6210else
6211  eval $cacheid=no
6212fi
6213rm -f core conftest.err conftest.$ac_objext \
6214    conftest$ac_exeext conftest.$ac_ext
6215fi
6216
6217
6218		CFLAGS="$xorg_testset_save_CFLAGS"
6219
6220		eval supported=\$$cacheid
6221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6222$as_echo "$supported" >&6; }
6223		if test "$supported" = "yes" ; then
6224			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6225			found="yes"
6226		fi
6227	fi
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243xorg_testset_save_CFLAGS="$CFLAGS"
6244
6245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"; then :
6257  xorg_cv_cc_flag_unknown_warning_option=yes
6258else
6259  xorg_cv_cc_flag_unknown_warning_option=no
6260fi
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6266	CFLAGS="$xorg_testset_save_CFLAGS"
6267fi
6268
6269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272	fi
6273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6277  $as_echo_n "(cached) " >&6
6278else
6279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h.  */
6281int i;
6282_ACEOF
6283if ac_fn_c_try_compile "$LINENO"; then :
6284  xorg_cv_cc_flag_unused_command_line_argument=yes
6285else
6286  xorg_cv_cc_flag_unused_command_line_argument=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6293	CFLAGS="$xorg_testset_save_CFLAGS"
6294fi
6295
6296found="no"
6297
6298	if test $found = "no" ; then
6299		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301		fi
6302
6303		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6305		fi
6306
6307		CFLAGS="$CFLAGS -Wcast-qual"
6308
6309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6310$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6311		cacheid=xorg_cv_cc_flag__Wcast_qual
6312		if eval \${$cacheid+:} false; then :
6313  $as_echo_n "(cached) " >&6
6314else
6315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317int i;
6318int
6319main ()
6320{
6321
6322  ;
6323  return 0;
6324}
6325_ACEOF
6326if ac_fn_c_try_link "$LINENO"; then :
6327  eval $cacheid=yes
6328else
6329  eval $cacheid=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext \
6332    conftest$ac_exeext conftest.$ac_ext
6333fi
6334
6335
6336		CFLAGS="$xorg_testset_save_CFLAGS"
6337
6338		eval supported=\$$cacheid
6339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6340$as_echo "$supported" >&6; }
6341		if test "$supported" = "yes" ; then
6342			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6343			found="yes"
6344		fi
6345	fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361xorg_testset_save_CFLAGS="$CFLAGS"
6362
6363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371/* end confdefs.h.  */
6372int i;
6373_ACEOF
6374if ac_fn_c_try_compile "$LINENO"; then :
6375  xorg_cv_cc_flag_unknown_warning_option=yes
6376else
6377  xorg_cv_cc_flag_unknown_warning_option=no
6378fi
6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6384	CFLAGS="$xorg_testset_save_CFLAGS"
6385fi
6386
6387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390	fi
6391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h.  */
6399int i;
6400_ACEOF
6401if ac_fn_c_try_compile "$LINENO"; then :
6402  xorg_cv_cc_flag_unused_command_line_argument=yes
6403else
6404  xorg_cv_cc_flag_unused_command_line_argument=no
6405fi
6406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407fi
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6411	CFLAGS="$xorg_testset_save_CFLAGS"
6412fi
6413
6414found="no"
6415
6416	if test $found = "no" ; then
6417		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419		fi
6420
6421		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423		fi
6424
6425		CFLAGS="$CFLAGS -Wmissing-noreturn"
6426
6427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6428$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6429		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6430		if eval \${$cacheid+:} false; then :
6431  $as_echo_n "(cached) " >&6
6432else
6433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434/* end confdefs.h.  */
6435int i;
6436int
6437main ()
6438{
6439
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444if ac_fn_c_try_link "$LINENO"; then :
6445  eval $cacheid=yes
6446else
6447  eval $cacheid=no
6448fi
6449rm -f core conftest.err conftest.$ac_objext \
6450    conftest$ac_exeext conftest.$ac_ext
6451fi
6452
6453
6454		CFLAGS="$xorg_testset_save_CFLAGS"
6455
6456		eval supported=\$$cacheid
6457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6458$as_echo "$supported" >&6; }
6459		if test "$supported" = "yes" ; then
6460			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6461			found="yes"
6462		fi
6463	fi
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479xorg_testset_save_CFLAGS="$CFLAGS"
6480
6481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490int i;
6491_ACEOF
6492if ac_fn_c_try_compile "$LINENO"; then :
6493  xorg_cv_cc_flag_unknown_warning_option=yes
6494else
6495  xorg_cv_cc_flag_unknown_warning_option=no
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6502	CFLAGS="$xorg_testset_save_CFLAGS"
6503fi
6504
6505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508	fi
6509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6513  $as_echo_n "(cached) " >&6
6514else
6515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516/* end confdefs.h.  */
6517int i;
6518_ACEOF
6519if ac_fn_c_try_compile "$LINENO"; then :
6520  xorg_cv_cc_flag_unused_command_line_argument=yes
6521else
6522  xorg_cv_cc_flag_unused_command_line_argument=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525fi
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6529	CFLAGS="$xorg_testset_save_CFLAGS"
6530fi
6531
6532found="no"
6533
6534	if test $found = "no" ; then
6535		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537		fi
6538
6539		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6541		fi
6542
6543		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6544
6545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6546$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6547		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6548		if eval \${$cacheid+:} false; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553int i;
6554int
6555main ()
6556{
6557
6558  ;
6559  return 0;
6560}
6561_ACEOF
6562if ac_fn_c_try_link "$LINENO"; then :
6563  eval $cacheid=yes
6564else
6565  eval $cacheid=no
6566fi
6567rm -f core conftest.err conftest.$ac_objext \
6568    conftest$ac_exeext conftest.$ac_ext
6569fi
6570
6571
6572		CFLAGS="$xorg_testset_save_CFLAGS"
6573
6574		eval supported=\$$cacheid
6575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6576$as_echo "$supported" >&6; }
6577		if test "$supported" = "yes" ; then
6578			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6579			found="yes"
6580		fi
6581	fi
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597xorg_testset_save_CFLAGS="$CFLAGS"
6598
6599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h.  */
6608int i;
6609_ACEOF
6610if ac_fn_c_try_compile "$LINENO"; then :
6611  xorg_cv_cc_flag_unknown_warning_option=yes
6612else
6613  xorg_cv_cc_flag_unknown_warning_option=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6620	CFLAGS="$xorg_testset_save_CFLAGS"
6621fi
6622
6623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6626	fi
6627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6631  $as_echo_n "(cached) " >&6
6632else
6633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634/* end confdefs.h.  */
6635int i;
6636_ACEOF
6637if ac_fn_c_try_compile "$LINENO"; then :
6638  xorg_cv_cc_flag_unused_command_line_argument=yes
6639else
6640  xorg_cv_cc_flag_unused_command_line_argument=no
6641fi
6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643fi
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6647	CFLAGS="$xorg_testset_save_CFLAGS"
6648fi
6649
6650found="no"
6651
6652	if test $found = "no" ; then
6653		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655		fi
6656
6657		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6659		fi
6660
6661		CFLAGS="$CFLAGS -Wredundant-decls"
6662
6663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6664$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6665		cacheid=xorg_cv_cc_flag__Wredundant_decls
6666		if eval \${$cacheid+:} false; then :
6667  $as_echo_n "(cached) " >&6
6668else
6669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671int i;
6672int
6673main ()
6674{
6675
6676  ;
6677  return 0;
6678}
6679_ACEOF
6680if ac_fn_c_try_link "$LINENO"; then :
6681  eval $cacheid=yes
6682else
6683  eval $cacheid=no
6684fi
6685rm -f core conftest.err conftest.$ac_objext \
6686    conftest$ac_exeext conftest.$ac_ext
6687fi
6688
6689
6690		CFLAGS="$xorg_testset_save_CFLAGS"
6691
6692		eval supported=\$$cacheid
6693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6694$as_echo "$supported" >&6; }
6695		if test "$supported" = "yes" ; then
6696			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6697			found="yes"
6698		fi
6699	fi
6700
6701
6702
6703# These are currently disabled because they are noisy.  They will be enabled
6704# in the future once the codebase is sufficiently modernized to silence
6705# them.  For now, I don't want them to drown out the other warnings.
6706# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6707# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6708# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6709
6710# Turn some warnings into errors, so we don't accidently get successful builds
6711# when there are problems that should be fixed.
6712
6713if test "x$SELECTIVE_WERROR" = "xyes" ; then
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727xorg_testset_save_CFLAGS="$CFLAGS"
6728
6729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737/* end confdefs.h.  */
6738int i;
6739_ACEOF
6740if ac_fn_c_try_compile "$LINENO"; then :
6741  xorg_cv_cc_flag_unknown_warning_option=yes
6742else
6743  xorg_cv_cc_flag_unknown_warning_option=no
6744fi
6745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746fi
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6750	CFLAGS="$xorg_testset_save_CFLAGS"
6751fi
6752
6753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756	fi
6757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765int i;
6766_ACEOF
6767if ac_fn_c_try_compile "$LINENO"; then :
6768  xorg_cv_cc_flag_unused_command_line_argument=yes
6769else
6770  xorg_cv_cc_flag_unused_command_line_argument=no
6771fi
6772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773fi
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6777	CFLAGS="$xorg_testset_save_CFLAGS"
6778fi
6779
6780found="no"
6781
6782	if test $found = "no" ; then
6783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6785		fi
6786
6787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6789		fi
6790
6791		CFLAGS="$CFLAGS -Werror=implicit"
6792
6793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6794$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6795		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6796		if eval \${$cacheid+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h.  */
6801int i;
6802int
6803main ()
6804{
6805
6806  ;
6807  return 0;
6808}
6809_ACEOF
6810if ac_fn_c_try_link "$LINENO"; then :
6811  eval $cacheid=yes
6812else
6813  eval $cacheid=no
6814fi
6815rm -f core conftest.err conftest.$ac_objext \
6816    conftest$ac_exeext conftest.$ac_ext
6817fi
6818
6819
6820		CFLAGS="$xorg_testset_save_CFLAGS"
6821
6822		eval supported=\$$cacheid
6823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6824$as_echo "$supported" >&6; }
6825		if test "$supported" = "yes" ; then
6826			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6827			found="yes"
6828		fi
6829	fi
6830
6831	if test $found = "no" ; then
6832		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834		fi
6835
6836		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6837			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838		fi
6839
6840		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6841
6842		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6843$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6844		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6845		if eval \${$cacheid+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h.  */
6850int i;
6851int
6852main ()
6853{
6854
6855  ;
6856  return 0;
6857}
6858_ACEOF
6859if ac_fn_c_try_link "$LINENO"; then :
6860  eval $cacheid=yes
6861else
6862  eval $cacheid=no
6863fi
6864rm -f core conftest.err conftest.$ac_objext \
6865    conftest$ac_exeext conftest.$ac_ext
6866fi
6867
6868
6869		CFLAGS="$xorg_testset_save_CFLAGS"
6870
6871		eval supported=\$$cacheid
6872		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873$as_echo "$supported" >&6; }
6874		if test "$supported" = "yes" ; then
6875			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6876			found="yes"
6877		fi
6878	fi
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894xorg_testset_save_CFLAGS="$CFLAGS"
6895
6896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6897	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6898	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6899$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6900if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h.  */
6905int i;
6906_ACEOF
6907if ac_fn_c_try_compile "$LINENO"; then :
6908  xorg_cv_cc_flag_unknown_warning_option=yes
6909else
6910  xorg_cv_cc_flag_unknown_warning_option=no
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913fi
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6915$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6916	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6917	CFLAGS="$xorg_testset_save_CFLAGS"
6918fi
6919
6920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6921	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923	fi
6924	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6926$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6927if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6928  $as_echo_n "(cached) " >&6
6929else
6930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931/* end confdefs.h.  */
6932int i;
6933_ACEOF
6934if ac_fn_c_try_compile "$LINENO"; then :
6935  xorg_cv_cc_flag_unused_command_line_argument=yes
6936else
6937  xorg_cv_cc_flag_unused_command_line_argument=no
6938fi
6939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940fi
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6942$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6943	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6944	CFLAGS="$xorg_testset_save_CFLAGS"
6945fi
6946
6947found="no"
6948
6949	if test $found = "no" ; then
6950		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6951			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952		fi
6953
6954		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6955			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956		fi
6957
6958		CFLAGS="$CFLAGS -Werror=nonnull"
6959
6960		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6961$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6962		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6963		if eval \${$cacheid+:} false; then :
6964  $as_echo_n "(cached) " >&6
6965else
6966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967/* end confdefs.h.  */
6968int i;
6969int
6970main ()
6971{
6972
6973  ;
6974  return 0;
6975}
6976_ACEOF
6977if ac_fn_c_try_link "$LINENO"; then :
6978  eval $cacheid=yes
6979else
6980  eval $cacheid=no
6981fi
6982rm -f core conftest.err conftest.$ac_objext \
6983    conftest$ac_exeext conftest.$ac_ext
6984fi
6985
6986
6987		CFLAGS="$xorg_testset_save_CFLAGS"
6988
6989		eval supported=\$$cacheid
6990		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6991$as_echo "$supported" >&6; }
6992		if test "$supported" = "yes" ; then
6993			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6994			found="yes"
6995		fi
6996	fi
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012xorg_testset_save_CFLAGS="$CFLAGS"
7013
7014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7017$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7018if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7019  $as_echo_n "(cached) " >&6
7020else
7021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h.  */
7023int i;
7024_ACEOF
7025if ac_fn_c_try_compile "$LINENO"; then :
7026  xorg_cv_cc_flag_unknown_warning_option=yes
7027else
7028  xorg_cv_cc_flag_unknown_warning_option=no
7029fi
7030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031fi
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7033$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7034	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7035	CFLAGS="$xorg_testset_save_CFLAGS"
7036fi
7037
7038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7039	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041	fi
7042	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7044$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7045if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050int i;
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"; then :
7053  xorg_cv_cc_flag_unused_command_line_argument=yes
7054else
7055  xorg_cv_cc_flag_unused_command_line_argument=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7060$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7062	CFLAGS="$xorg_testset_save_CFLAGS"
7063fi
7064
7065found="no"
7066
7067	if test $found = "no" ; then
7068		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070		fi
7071
7072		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074		fi
7075
7076		CFLAGS="$CFLAGS -Werror=init-self"
7077
7078		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7079$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7080		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7081		if eval \${$cacheid+:} false; then :
7082  $as_echo_n "(cached) " >&6
7083else
7084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085/* end confdefs.h.  */
7086int i;
7087int
7088main ()
7089{
7090
7091  ;
7092  return 0;
7093}
7094_ACEOF
7095if ac_fn_c_try_link "$LINENO"; then :
7096  eval $cacheid=yes
7097else
7098  eval $cacheid=no
7099fi
7100rm -f core conftest.err conftest.$ac_objext \
7101    conftest$ac_exeext conftest.$ac_ext
7102fi
7103
7104
7105		CFLAGS="$xorg_testset_save_CFLAGS"
7106
7107		eval supported=\$$cacheid
7108		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7109$as_echo "$supported" >&6; }
7110		if test "$supported" = "yes" ; then
7111			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7112			found="yes"
7113		fi
7114	fi
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130xorg_testset_save_CFLAGS="$CFLAGS"
7131
7132if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7133	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7135$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7136if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141int i;
7142_ACEOF
7143if ac_fn_c_try_compile "$LINENO"; then :
7144  xorg_cv_cc_flag_unknown_warning_option=yes
7145else
7146  xorg_cv_cc_flag_unknown_warning_option=no
7147fi
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7151$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7152	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7153	CFLAGS="$xorg_testset_save_CFLAGS"
7154fi
7155
7156if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7157	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7158		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7159	fi
7160	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7162$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7163if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7164  $as_echo_n "(cached) " >&6
7165else
7166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h.  */
7168int i;
7169_ACEOF
7170if ac_fn_c_try_compile "$LINENO"; then :
7171  xorg_cv_cc_flag_unused_command_line_argument=yes
7172else
7173  xorg_cv_cc_flag_unused_command_line_argument=no
7174fi
7175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7178$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7179	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7180	CFLAGS="$xorg_testset_save_CFLAGS"
7181fi
7182
7183found="no"
7184
7185	if test $found = "no" ; then
7186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188		fi
7189
7190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7192		fi
7193
7194		CFLAGS="$CFLAGS -Werror=main"
7195
7196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7197$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7198		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7199		if eval \${$cacheid+:} false; then :
7200  $as_echo_n "(cached) " >&6
7201else
7202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205int
7206main ()
7207{
7208
7209  ;
7210  return 0;
7211}
7212_ACEOF
7213if ac_fn_c_try_link "$LINENO"; then :
7214  eval $cacheid=yes
7215else
7216  eval $cacheid=no
7217fi
7218rm -f core conftest.err conftest.$ac_objext \
7219    conftest$ac_exeext conftest.$ac_ext
7220fi
7221
7222
7223		CFLAGS="$xorg_testset_save_CFLAGS"
7224
7225		eval supported=\$$cacheid
7226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227$as_echo "$supported" >&6; }
7228		if test "$supported" = "yes" ; then
7229			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7230			found="yes"
7231		fi
7232	fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248xorg_testset_save_CFLAGS="$CFLAGS"
7249
7250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259int i;
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"; then :
7262  xorg_cv_cc_flag_unknown_warning_option=yes
7263else
7264  xorg_cv_cc_flag_unknown_warning_option=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7271	CFLAGS="$xorg_testset_save_CFLAGS"
7272fi
7273
7274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277	fi
7278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h.  */
7286int i;
7287_ACEOF
7288if ac_fn_c_try_compile "$LINENO"; then :
7289  xorg_cv_cc_flag_unused_command_line_argument=yes
7290else
7291  xorg_cv_cc_flag_unused_command_line_argument=no
7292fi
7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7298	CFLAGS="$xorg_testset_save_CFLAGS"
7299fi
7300
7301found="no"
7302
7303	if test $found = "no" ; then
7304		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306		fi
7307
7308		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7310		fi
7311
7312		CFLAGS="$CFLAGS -Werror=missing-braces"
7313
7314		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7315$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7316		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7317		if eval \${$cacheid+:} false; then :
7318  $as_echo_n "(cached) " >&6
7319else
7320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321/* end confdefs.h.  */
7322int i;
7323int
7324main ()
7325{
7326
7327  ;
7328  return 0;
7329}
7330_ACEOF
7331if ac_fn_c_try_link "$LINENO"; then :
7332  eval $cacheid=yes
7333else
7334  eval $cacheid=no
7335fi
7336rm -f core conftest.err conftest.$ac_objext \
7337    conftest$ac_exeext conftest.$ac_ext
7338fi
7339
7340
7341		CFLAGS="$xorg_testset_save_CFLAGS"
7342
7343		eval supported=\$$cacheid
7344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7345$as_echo "$supported" >&6; }
7346		if test "$supported" = "yes" ; then
7347			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7348			found="yes"
7349		fi
7350	fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366xorg_testset_save_CFLAGS="$CFLAGS"
7367
7368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7371$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7372if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377int i;
7378_ACEOF
7379if ac_fn_c_try_compile "$LINENO"; then :
7380  xorg_cv_cc_flag_unknown_warning_option=yes
7381else
7382  xorg_cv_cc_flag_unknown_warning_option=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7387$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7388	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7389	CFLAGS="$xorg_testset_save_CFLAGS"
7390fi
7391
7392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7393	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7394		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395	fi
7396	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7398$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7399if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7400  $as_echo_n "(cached) " >&6
7401else
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404int i;
7405_ACEOF
7406if ac_fn_c_try_compile "$LINENO"; then :
7407  xorg_cv_cc_flag_unused_command_line_argument=yes
7408else
7409  xorg_cv_cc_flag_unused_command_line_argument=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7414$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7415	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7416	CFLAGS="$xorg_testset_save_CFLAGS"
7417fi
7418
7419found="no"
7420
7421	if test $found = "no" ; then
7422		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7423			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424		fi
7425
7426		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7427			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428		fi
7429
7430		CFLAGS="$CFLAGS -Werror=sequence-point"
7431
7432		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7433$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7434		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7435		if eval \${$cacheid+:} false; then :
7436  $as_echo_n "(cached) " >&6
7437else
7438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h.  */
7440int i;
7441int
7442main ()
7443{
7444
7445  ;
7446  return 0;
7447}
7448_ACEOF
7449if ac_fn_c_try_link "$LINENO"; then :
7450  eval $cacheid=yes
7451else
7452  eval $cacheid=no
7453fi
7454rm -f core conftest.err conftest.$ac_objext \
7455    conftest$ac_exeext conftest.$ac_ext
7456fi
7457
7458
7459		CFLAGS="$xorg_testset_save_CFLAGS"
7460
7461		eval supported=\$$cacheid
7462		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7463$as_echo "$supported" >&6; }
7464		if test "$supported" = "yes" ; then
7465			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7466			found="yes"
7467		fi
7468	fi
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484xorg_testset_save_CFLAGS="$CFLAGS"
7485
7486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495int i;
7496_ACEOF
7497if ac_fn_c_try_compile "$LINENO"; then :
7498  xorg_cv_cc_flag_unknown_warning_option=yes
7499else
7500  xorg_cv_cc_flag_unknown_warning_option=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503fi
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7507	CFLAGS="$xorg_testset_save_CFLAGS"
7508fi
7509
7510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513	fi
7514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7518  $as_echo_n "(cached) " >&6
7519else
7520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521/* end confdefs.h.  */
7522int i;
7523_ACEOF
7524if ac_fn_c_try_compile "$LINENO"; then :
7525  xorg_cv_cc_flag_unused_command_line_argument=yes
7526else
7527  xorg_cv_cc_flag_unused_command_line_argument=no
7528fi
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7534	CFLAGS="$xorg_testset_save_CFLAGS"
7535fi
7536
7537found="no"
7538
7539	if test $found = "no" ; then
7540		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542		fi
7543
7544		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7546		fi
7547
7548		CFLAGS="$CFLAGS -Werror=return-type"
7549
7550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7551$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7552		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7553		if eval \${$cacheid+:} false; then :
7554  $as_echo_n "(cached) " >&6
7555else
7556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h.  */
7558int i;
7559int
7560main ()
7561{
7562
7563  ;
7564  return 0;
7565}
7566_ACEOF
7567if ac_fn_c_try_link "$LINENO"; then :
7568  eval $cacheid=yes
7569else
7570  eval $cacheid=no
7571fi
7572rm -f core conftest.err conftest.$ac_objext \
7573    conftest$ac_exeext conftest.$ac_ext
7574fi
7575
7576
7577		CFLAGS="$xorg_testset_save_CFLAGS"
7578
7579		eval supported=\$$cacheid
7580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7581$as_echo "$supported" >&6; }
7582		if test "$supported" = "yes" ; then
7583			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7584			found="yes"
7585		fi
7586	fi
7587
7588	if test $found = "no" ; then
7589		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591		fi
7592
7593		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595		fi
7596
7597		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7598
7599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7600$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7601		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7602		if eval \${$cacheid+:} false; then :
7603  $as_echo_n "(cached) " >&6
7604else
7605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h.  */
7607int i;
7608int
7609main ()
7610{
7611
7612  ;
7613  return 0;
7614}
7615_ACEOF
7616if ac_fn_c_try_link "$LINENO"; then :
7617  eval $cacheid=yes
7618else
7619  eval $cacheid=no
7620fi
7621rm -f core conftest.err conftest.$ac_objext \
7622    conftest$ac_exeext conftest.$ac_ext
7623fi
7624
7625
7626		CFLAGS="$xorg_testset_save_CFLAGS"
7627
7628		eval supported=\$$cacheid
7629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7630$as_echo "$supported" >&6; }
7631		if test "$supported" = "yes" ; then
7632			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7633			found="yes"
7634		fi
7635	fi
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651xorg_testset_save_CFLAGS="$CFLAGS"
7652
7653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7658  $as_echo_n "(cached) " >&6
7659else
7660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h.  */
7662int i;
7663_ACEOF
7664if ac_fn_c_try_compile "$LINENO"; then :
7665  xorg_cv_cc_flag_unknown_warning_option=yes
7666else
7667  xorg_cv_cc_flag_unknown_warning_option=no
7668fi
7669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7670fi
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7674	CFLAGS="$xorg_testset_save_CFLAGS"
7675fi
7676
7677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680	fi
7681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_cv_cc_flag_unused_command_line_argument=yes
7693else
7694  xorg_cv_cc_flag_unused_command_line_argument=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704found="no"
7705
7706	if test $found = "no" ; then
7707		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709		fi
7710
7711		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713		fi
7714
7715		CFLAGS="$CFLAGS -Werror=trigraphs"
7716
7717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7718$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7719		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7720		if eval \${$cacheid+:} false; then :
7721  $as_echo_n "(cached) " >&6
7722else
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725int i;
7726int
7727main ()
7728{
7729
7730  ;
7731  return 0;
7732}
7733_ACEOF
7734if ac_fn_c_try_link "$LINENO"; then :
7735  eval $cacheid=yes
7736else
7737  eval $cacheid=no
7738fi
7739rm -f core conftest.err conftest.$ac_objext \
7740    conftest$ac_exeext conftest.$ac_ext
7741fi
7742
7743
7744		CFLAGS="$xorg_testset_save_CFLAGS"
7745
7746		eval supported=\$$cacheid
7747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7748$as_echo "$supported" >&6; }
7749		if test "$supported" = "yes" ; then
7750			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7751			found="yes"
7752		fi
7753	fi
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769xorg_testset_save_CFLAGS="$CFLAGS"
7770
7771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779/* end confdefs.h.  */
7780int i;
7781_ACEOF
7782if ac_fn_c_try_compile "$LINENO"; then :
7783  xorg_cv_cc_flag_unknown_warning_option=yes
7784else
7785  xorg_cv_cc_flag_unknown_warning_option=no
7786fi
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788fi
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7792	CFLAGS="$xorg_testset_save_CFLAGS"
7793fi
7794
7795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798	fi
7799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807int i;
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810  xorg_cv_cc_flag_unused_command_line_argument=yes
7811else
7812  xorg_cv_cc_flag_unused_command_line_argument=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819	CFLAGS="$xorg_testset_save_CFLAGS"
7820fi
7821
7822found="no"
7823
7824	if test $found = "no" ; then
7825		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827		fi
7828
7829		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831		fi
7832
7833		CFLAGS="$CFLAGS -Werror=array-bounds"
7834
7835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7836$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7837		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7838		if eval \${$cacheid+:} false; then :
7839  $as_echo_n "(cached) " >&6
7840else
7841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842/* end confdefs.h.  */
7843int i;
7844int
7845main ()
7846{
7847
7848  ;
7849  return 0;
7850}
7851_ACEOF
7852if ac_fn_c_try_link "$LINENO"; then :
7853  eval $cacheid=yes
7854else
7855  eval $cacheid=no
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858    conftest$ac_exeext conftest.$ac_ext
7859fi
7860
7861
7862		CFLAGS="$xorg_testset_save_CFLAGS"
7863
7864		eval supported=\$$cacheid
7865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7866$as_echo "$supported" >&6; }
7867		if test "$supported" = "yes" ; then
7868			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7869			found="yes"
7870		fi
7871	fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887xorg_testset_save_CFLAGS="$CFLAGS"
7888
7889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h.  */
7898int i;
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901  xorg_cv_cc_flag_unknown_warning_option=yes
7902else
7903  xorg_cv_cc_flag_unknown_warning_option=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7910	CFLAGS="$xorg_testset_save_CFLAGS"
7911fi
7912
7913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7916	fi
7917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7921  $as_echo_n "(cached) " >&6
7922else
7923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924/* end confdefs.h.  */
7925int i;
7926_ACEOF
7927if ac_fn_c_try_compile "$LINENO"; then :
7928  xorg_cv_cc_flag_unused_command_line_argument=yes
7929else
7930  xorg_cv_cc_flag_unused_command_line_argument=no
7931fi
7932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933fi
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7937	CFLAGS="$xorg_testset_save_CFLAGS"
7938fi
7939
7940found="no"
7941
7942	if test $found = "no" ; then
7943		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945		fi
7946
7947		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949		fi
7950
7951		CFLAGS="$CFLAGS -Werror=write-strings"
7952
7953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7954$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7955		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7956		if eval \${$cacheid+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h.  */
7961int i;
7962int
7963main ()
7964{
7965
7966  ;
7967  return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"; then :
7971  eval $cacheid=yes
7972else
7973  eval $cacheid=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext \
7976    conftest$ac_exeext conftest.$ac_ext
7977fi
7978
7979
7980		CFLAGS="$xorg_testset_save_CFLAGS"
7981
7982		eval supported=\$$cacheid
7983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7984$as_echo "$supported" >&6; }
7985		if test "$supported" = "yes" ; then
7986			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7987			found="yes"
7988		fi
7989	fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005xorg_testset_save_CFLAGS="$CFLAGS"
8006
8007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016int i;
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019  xorg_cv_cc_flag_unknown_warning_option=yes
8020else
8021  xorg_cv_cc_flag_unknown_warning_option=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8028	CFLAGS="$xorg_testset_save_CFLAGS"
8029fi
8030
8031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8034	fi
8035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8039  $as_echo_n "(cached) " >&6
8040else
8041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043int i;
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
8046  xorg_cv_cc_flag_unused_command_line_argument=yes
8047else
8048  xorg_cv_cc_flag_unused_command_line_argument=no
8049fi
8050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051fi
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8055	CFLAGS="$xorg_testset_save_CFLAGS"
8056fi
8057
8058found="no"
8059
8060	if test $found = "no" ; then
8061		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063		fi
8064
8065		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8067		fi
8068
8069		CFLAGS="$CFLAGS -Werror=address"
8070
8071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8072$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8073		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8074		if eval \${$cacheid+:} false; then :
8075  $as_echo_n "(cached) " >&6
8076else
8077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078/* end confdefs.h.  */
8079int i;
8080int
8081main ()
8082{
8083
8084  ;
8085  return 0;
8086}
8087_ACEOF
8088if ac_fn_c_try_link "$LINENO"; then :
8089  eval $cacheid=yes
8090else
8091  eval $cacheid=no
8092fi
8093rm -f core conftest.err conftest.$ac_objext \
8094    conftest$ac_exeext conftest.$ac_ext
8095fi
8096
8097
8098		CFLAGS="$xorg_testset_save_CFLAGS"
8099
8100		eval supported=\$$cacheid
8101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8102$as_echo "$supported" >&6; }
8103		if test "$supported" = "yes" ; then
8104			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8105			found="yes"
8106		fi
8107	fi
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123xorg_testset_save_CFLAGS="$CFLAGS"
8124
8125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134int i;
8135_ACEOF
8136if ac_fn_c_try_compile "$LINENO"; then :
8137  xorg_cv_cc_flag_unknown_warning_option=yes
8138else
8139  xorg_cv_cc_flag_unknown_warning_option=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8146	CFLAGS="$xorg_testset_save_CFLAGS"
8147fi
8148
8149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8152	fi
8153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8157  $as_echo_n "(cached) " >&6
8158else
8159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h.  */
8161int i;
8162_ACEOF
8163if ac_fn_c_try_compile "$LINENO"; then :
8164  xorg_cv_cc_flag_unused_command_line_argument=yes
8165else
8166  xorg_cv_cc_flag_unused_command_line_argument=no
8167fi
8168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169fi
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8173	CFLAGS="$xorg_testset_save_CFLAGS"
8174fi
8175
8176found="no"
8177
8178	if test $found = "no" ; then
8179		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181		fi
8182
8183		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8185		fi
8186
8187		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8188
8189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8190$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8191		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8192		if eval \${$cacheid+:} false; then :
8193  $as_echo_n "(cached) " >&6
8194else
8195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196/* end confdefs.h.  */
8197int i;
8198int
8199main ()
8200{
8201
8202  ;
8203  return 0;
8204}
8205_ACEOF
8206if ac_fn_c_try_link "$LINENO"; then :
8207  eval $cacheid=yes
8208else
8209  eval $cacheid=no
8210fi
8211rm -f core conftest.err conftest.$ac_objext \
8212    conftest$ac_exeext conftest.$ac_ext
8213fi
8214
8215
8216		CFLAGS="$xorg_testset_save_CFLAGS"
8217
8218		eval supported=\$$cacheid
8219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8220$as_echo "$supported" >&6; }
8221		if test "$supported" = "yes" ; then
8222			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8223			found="yes"
8224		fi
8225	fi
8226
8227	if test $found = "no" ; then
8228		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230		fi
8231
8232		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8234		fi
8235
8236		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8237
8238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8239$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8240		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8241		if eval \${$cacheid+:} false; then :
8242  $as_echo_n "(cached) " >&6
8243else
8244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245/* end confdefs.h.  */
8246int i;
8247int
8248main ()
8249{
8250
8251  ;
8252  return 0;
8253}
8254_ACEOF
8255if ac_fn_c_try_link "$LINENO"; then :
8256  eval $cacheid=yes
8257else
8258  eval $cacheid=no
8259fi
8260rm -f core conftest.err conftest.$ac_objext \
8261    conftest$ac_exeext conftest.$ac_ext
8262fi
8263
8264
8265		CFLAGS="$xorg_testset_save_CFLAGS"
8266
8267		eval supported=\$$cacheid
8268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8269$as_echo "$supported" >&6; }
8270		if test "$supported" = "yes" ; then
8271			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8272			found="yes"
8273		fi
8274	fi
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290xorg_testset_save_CFLAGS="$CFLAGS"
8291
8292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"; then :
8304  xorg_cv_cc_flag_unknown_warning_option=yes
8305else
8306  xorg_cv_cc_flag_unknown_warning_option=no
8307fi
8308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309fi
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8313	CFLAGS="$xorg_testset_save_CFLAGS"
8314fi
8315
8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8319	fi
8320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8324  $as_echo_n "(cached) " >&6
8325else
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  xorg_cv_cc_flag_unused_command_line_argument=yes
8332else
8333  xorg_cv_cc_flag_unused_command_line_argument=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343found="no"
8344
8345	if test $found = "no" ; then
8346		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8348		fi
8349
8350		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352		fi
8353
8354		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8355
8356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8357$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8358		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8359		if eval \${$cacheid+:} false; then :
8360  $as_echo_n "(cached) " >&6
8361else
8362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364int i;
8365int
8366main ()
8367{
8368
8369  ;
8370  return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"; then :
8374  eval $cacheid=yes
8375else
8376  eval $cacheid=no
8377fi
8378rm -f core conftest.err conftest.$ac_objext \
8379    conftest$ac_exeext conftest.$ac_ext
8380fi
8381
8382
8383		CFLAGS="$xorg_testset_save_CFLAGS"
8384
8385		eval supported=\$$cacheid
8386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8387$as_echo "$supported" >&6; }
8388		if test "$supported" = "yes" ; then
8389			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8390			found="yes"
8391		fi
8392	fi
8393
8394 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8395else
8396{ $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
8397$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;}
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411xorg_testset_save_CFLAGS="$CFLAGS"
8412
8413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425  xorg_cv_cc_flag_unknown_warning_option=yes
8426else
8427  xorg_cv_cc_flag_unknown_warning_option=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8434	CFLAGS="$xorg_testset_save_CFLAGS"
8435fi
8436
8437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440	fi
8441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8445  $as_echo_n "(cached) " >&6
8446else
8447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448/* end confdefs.h.  */
8449int i;
8450_ACEOF
8451if ac_fn_c_try_compile "$LINENO"; then :
8452  xorg_cv_cc_flag_unused_command_line_argument=yes
8453else
8454  xorg_cv_cc_flag_unused_command_line_argument=no
8455fi
8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457fi
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8461	CFLAGS="$xorg_testset_save_CFLAGS"
8462fi
8463
8464found="no"
8465
8466	if test $found = "no" ; then
8467		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469		fi
8470
8471		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473		fi
8474
8475		CFLAGS="$CFLAGS -Wimplicit"
8476
8477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8478$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8479		cacheid=xorg_cv_cc_flag__Wimplicit
8480		if eval \${$cacheid+:} false; then :
8481  $as_echo_n "(cached) " >&6
8482else
8483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h.  */
8485int i;
8486int
8487main ()
8488{
8489
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494if ac_fn_c_try_link "$LINENO"; then :
8495  eval $cacheid=yes
8496else
8497  eval $cacheid=no
8498fi
8499rm -f core conftest.err conftest.$ac_objext \
8500    conftest$ac_exeext conftest.$ac_ext
8501fi
8502
8503
8504		CFLAGS="$xorg_testset_save_CFLAGS"
8505
8506		eval supported=\$$cacheid
8507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8508$as_echo "$supported" >&6; }
8509		if test "$supported" = "yes" ; then
8510			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8511			found="yes"
8512		fi
8513	fi
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529xorg_testset_save_CFLAGS="$CFLAGS"
8530
8531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8536  $as_echo_n "(cached) " >&6
8537else
8538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539/* end confdefs.h.  */
8540int i;
8541_ACEOF
8542if ac_fn_c_try_compile "$LINENO"; then :
8543  xorg_cv_cc_flag_unknown_warning_option=yes
8544else
8545  xorg_cv_cc_flag_unknown_warning_option=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548fi
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8552	CFLAGS="$xorg_testset_save_CFLAGS"
8553fi
8554
8555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8558	fi
8559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566/* end confdefs.h.  */
8567int i;
8568_ACEOF
8569if ac_fn_c_try_compile "$LINENO"; then :
8570  xorg_cv_cc_flag_unused_command_line_argument=yes
8571else
8572  xorg_cv_cc_flag_unused_command_line_argument=no
8573fi
8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575fi
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8579	CFLAGS="$xorg_testset_save_CFLAGS"
8580fi
8581
8582found="no"
8583
8584	if test $found = "no" ; then
8585		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587		fi
8588
8589		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591		fi
8592
8593		CFLAGS="$CFLAGS -Wnonnull"
8594
8595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8596$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8597		cacheid=xorg_cv_cc_flag__Wnonnull
8598		if eval \${$cacheid+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604int
8605main ()
8606{
8607
8608  ;
8609  return 0;
8610}
8611_ACEOF
8612if ac_fn_c_try_link "$LINENO"; then :
8613  eval $cacheid=yes
8614else
8615  eval $cacheid=no
8616fi
8617rm -f core conftest.err conftest.$ac_objext \
8618    conftest$ac_exeext conftest.$ac_ext
8619fi
8620
8621
8622		CFLAGS="$xorg_testset_save_CFLAGS"
8623
8624		eval supported=\$$cacheid
8625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626$as_echo "$supported" >&6; }
8627		if test "$supported" = "yes" ; then
8628			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8629			found="yes"
8630		fi
8631	fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647xorg_testset_save_CFLAGS="$CFLAGS"
8648
8649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658int i;
8659_ACEOF
8660if ac_fn_c_try_compile "$LINENO"; then :
8661  xorg_cv_cc_flag_unknown_warning_option=yes
8662else
8663  xorg_cv_cc_flag_unknown_warning_option=no
8664fi
8665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8670	CFLAGS="$xorg_testset_save_CFLAGS"
8671fi
8672
8673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8676	fi
8677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h.  */
8685int i;
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"; then :
8688  xorg_cv_cc_flag_unused_command_line_argument=yes
8689else
8690  xorg_cv_cc_flag_unused_command_line_argument=no
8691fi
8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8697	CFLAGS="$xorg_testset_save_CFLAGS"
8698fi
8699
8700found="no"
8701
8702	if test $found = "no" ; then
8703		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705		fi
8706
8707		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709		fi
8710
8711		CFLAGS="$CFLAGS -Winit-self"
8712
8713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8714$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8715		cacheid=xorg_cv_cc_flag__Winit_self
8716		if eval \${$cacheid+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721int i;
8722int
8723main ()
8724{
8725
8726  ;
8727  return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_link "$LINENO"; then :
8731  eval $cacheid=yes
8732else
8733  eval $cacheid=no
8734fi
8735rm -f core conftest.err conftest.$ac_objext \
8736    conftest$ac_exeext conftest.$ac_ext
8737fi
8738
8739
8740		CFLAGS="$xorg_testset_save_CFLAGS"
8741
8742		eval supported=\$$cacheid
8743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8744$as_echo "$supported" >&6; }
8745		if test "$supported" = "yes" ; then
8746			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8747			found="yes"
8748		fi
8749	fi
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765xorg_testset_save_CFLAGS="$CFLAGS"
8766
8767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775/* end confdefs.h.  */
8776int i;
8777_ACEOF
8778if ac_fn_c_try_compile "$LINENO"; then :
8779  xorg_cv_cc_flag_unknown_warning_option=yes
8780else
8781  xorg_cv_cc_flag_unknown_warning_option=no
8782fi
8783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784fi
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8788	CFLAGS="$xorg_testset_save_CFLAGS"
8789fi
8790
8791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8794	fi
8795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8799  $as_echo_n "(cached) " >&6
8800else
8801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802/* end confdefs.h.  */
8803int i;
8804_ACEOF
8805if ac_fn_c_try_compile "$LINENO"; then :
8806  xorg_cv_cc_flag_unused_command_line_argument=yes
8807else
8808  xorg_cv_cc_flag_unused_command_line_argument=no
8809fi
8810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811fi
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8815	CFLAGS="$xorg_testset_save_CFLAGS"
8816fi
8817
8818found="no"
8819
8820	if test $found = "no" ; then
8821		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823		fi
8824
8825		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8827		fi
8828
8829		CFLAGS="$CFLAGS -Wmain"
8830
8831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8832$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8833		cacheid=xorg_cv_cc_flag__Wmain
8834		if eval \${$cacheid+:} false; then :
8835  $as_echo_n "(cached) " >&6
8836else
8837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838/* end confdefs.h.  */
8839int i;
8840int
8841main ()
8842{
8843
8844  ;
8845  return 0;
8846}
8847_ACEOF
8848if ac_fn_c_try_link "$LINENO"; then :
8849  eval $cacheid=yes
8850else
8851  eval $cacheid=no
8852fi
8853rm -f core conftest.err conftest.$ac_objext \
8854    conftest$ac_exeext conftest.$ac_ext
8855fi
8856
8857
8858		CFLAGS="$xorg_testset_save_CFLAGS"
8859
8860		eval supported=\$$cacheid
8861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8862$as_echo "$supported" >&6; }
8863		if test "$supported" = "yes" ; then
8864			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8865			found="yes"
8866		fi
8867	fi
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883xorg_testset_save_CFLAGS="$CFLAGS"
8884
8885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8890  $as_echo_n "(cached) " >&6
8891else
8892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894int i;
8895_ACEOF
8896if ac_fn_c_try_compile "$LINENO"; then :
8897  xorg_cv_cc_flag_unknown_warning_option=yes
8898else
8899  xorg_cv_cc_flag_unknown_warning_option=no
8900fi
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902fi
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8906	CFLAGS="$xorg_testset_save_CFLAGS"
8907fi
8908
8909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8912	fi
8913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8917  $as_echo_n "(cached) " >&6
8918else
8919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920/* end confdefs.h.  */
8921int i;
8922_ACEOF
8923if ac_fn_c_try_compile "$LINENO"; then :
8924  xorg_cv_cc_flag_unused_command_line_argument=yes
8925else
8926  xorg_cv_cc_flag_unused_command_line_argument=no
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929fi
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8933	CFLAGS="$xorg_testset_save_CFLAGS"
8934fi
8935
8936found="no"
8937
8938	if test $found = "no" ; then
8939		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941		fi
8942
8943		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8945		fi
8946
8947		CFLAGS="$CFLAGS -Wmissing-braces"
8948
8949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8950$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8951		cacheid=xorg_cv_cc_flag__Wmissing_braces
8952		if eval \${$cacheid+:} false; then :
8953  $as_echo_n "(cached) " >&6
8954else
8955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957int i;
8958int
8959main ()
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966if ac_fn_c_try_link "$LINENO"; then :
8967  eval $cacheid=yes
8968else
8969  eval $cacheid=no
8970fi
8971rm -f core conftest.err conftest.$ac_objext \
8972    conftest$ac_exeext conftest.$ac_ext
8973fi
8974
8975
8976		CFLAGS="$xorg_testset_save_CFLAGS"
8977
8978		eval supported=\$$cacheid
8979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8980$as_echo "$supported" >&6; }
8981		if test "$supported" = "yes" ; then
8982			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8983			found="yes"
8984		fi
8985	fi
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001xorg_testset_save_CFLAGS="$CFLAGS"
9002
9003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9008  $as_echo_n "(cached) " >&6
9009else
9010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011/* end confdefs.h.  */
9012int i;
9013_ACEOF
9014if ac_fn_c_try_compile "$LINENO"; then :
9015  xorg_cv_cc_flag_unknown_warning_option=yes
9016else
9017  xorg_cv_cc_flag_unknown_warning_option=no
9018fi
9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020fi
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9024	CFLAGS="$xorg_testset_save_CFLAGS"
9025fi
9026
9027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030	fi
9031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9035  $as_echo_n "(cached) " >&6
9036else
9037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038/* end confdefs.h.  */
9039int i;
9040_ACEOF
9041if ac_fn_c_try_compile "$LINENO"; then :
9042  xorg_cv_cc_flag_unused_command_line_argument=yes
9043else
9044  xorg_cv_cc_flag_unused_command_line_argument=no
9045fi
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047fi
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9051	CFLAGS="$xorg_testset_save_CFLAGS"
9052fi
9053
9054found="no"
9055
9056	if test $found = "no" ; then
9057		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059		fi
9060
9061		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063		fi
9064
9065		CFLAGS="$CFLAGS -Wsequence-point"
9066
9067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9068$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9069		cacheid=xorg_cv_cc_flag__Wsequence_point
9070		if eval \${$cacheid+:} false; then :
9071  $as_echo_n "(cached) " >&6
9072else
9073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075int i;
9076int
9077main ()
9078{
9079
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084if ac_fn_c_try_link "$LINENO"; then :
9085  eval $cacheid=yes
9086else
9087  eval $cacheid=no
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090    conftest$ac_exeext conftest.$ac_ext
9091fi
9092
9093
9094		CFLAGS="$xorg_testset_save_CFLAGS"
9095
9096		eval supported=\$$cacheid
9097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9098$as_echo "$supported" >&6; }
9099		if test "$supported" = "yes" ; then
9100			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9101			found="yes"
9102		fi
9103	fi
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119xorg_testset_save_CFLAGS="$CFLAGS"
9120
9121if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9122	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9124$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9125if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129/* end confdefs.h.  */
9130int i;
9131_ACEOF
9132if ac_fn_c_try_compile "$LINENO"; then :
9133  xorg_cv_cc_flag_unknown_warning_option=yes
9134else
9135  xorg_cv_cc_flag_unknown_warning_option=no
9136fi
9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9140$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9141	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9142	CFLAGS="$xorg_testset_save_CFLAGS"
9143fi
9144
9145if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9146	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9147		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9148	fi
9149	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9151$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9152if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9153  $as_echo_n "(cached) " >&6
9154else
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h.  */
9157int i;
9158_ACEOF
9159if ac_fn_c_try_compile "$LINENO"; then :
9160  xorg_cv_cc_flag_unused_command_line_argument=yes
9161else
9162  xorg_cv_cc_flag_unused_command_line_argument=no
9163fi
9164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165fi
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9167$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9168	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9169	CFLAGS="$xorg_testset_save_CFLAGS"
9170fi
9171
9172found="no"
9173
9174	if test $found = "no" ; then
9175		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9176			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177		fi
9178
9179		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9180			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9181		fi
9182
9183		CFLAGS="$CFLAGS -Wreturn-type"
9184
9185		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9186$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9187		cacheid=xorg_cv_cc_flag__Wreturn_type
9188		if eval \${$cacheid+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192/* end confdefs.h.  */
9193int i;
9194int
9195main ()
9196{
9197
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"; then :
9203  eval $cacheid=yes
9204else
9205  eval $cacheid=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext \
9208    conftest$ac_exeext conftest.$ac_ext
9209fi
9210
9211
9212		CFLAGS="$xorg_testset_save_CFLAGS"
9213
9214		eval supported=\$$cacheid
9215		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9216$as_echo "$supported" >&6; }
9217		if test "$supported" = "yes" ; then
9218			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9219			found="yes"
9220		fi
9221	fi
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237xorg_testset_save_CFLAGS="$CFLAGS"
9238
9239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9242$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9243if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9244  $as_echo_n "(cached) " >&6
9245else
9246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h.  */
9248int i;
9249_ACEOF
9250if ac_fn_c_try_compile "$LINENO"; then :
9251  xorg_cv_cc_flag_unknown_warning_option=yes
9252else
9253  xorg_cv_cc_flag_unknown_warning_option=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9258$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9260	CFLAGS="$xorg_testset_save_CFLAGS"
9261fi
9262
9263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9266	fi
9267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9269$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9270if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275int i;
9276_ACEOF
9277if ac_fn_c_try_compile "$LINENO"; then :
9278  xorg_cv_cc_flag_unused_command_line_argument=yes
9279else
9280  xorg_cv_cc_flag_unused_command_line_argument=no
9281fi
9282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283fi
9284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9285$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9287	CFLAGS="$xorg_testset_save_CFLAGS"
9288fi
9289
9290found="no"
9291
9292	if test $found = "no" ; then
9293		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295		fi
9296
9297		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299		fi
9300
9301		CFLAGS="$CFLAGS -Wtrigraphs"
9302
9303		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9304$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9305		cacheid=xorg_cv_cc_flag__Wtrigraphs
9306		if eval \${$cacheid+:} false; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h.  */
9311int i;
9312int
9313main ()
9314{
9315
9316  ;
9317  return 0;
9318}
9319_ACEOF
9320if ac_fn_c_try_link "$LINENO"; then :
9321  eval $cacheid=yes
9322else
9323  eval $cacheid=no
9324fi
9325rm -f core conftest.err conftest.$ac_objext \
9326    conftest$ac_exeext conftest.$ac_ext
9327fi
9328
9329
9330		CFLAGS="$xorg_testset_save_CFLAGS"
9331
9332		eval supported=\$$cacheid
9333		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9334$as_echo "$supported" >&6; }
9335		if test "$supported" = "yes" ; then
9336			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9337			found="yes"
9338		fi
9339	fi
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355xorg_testset_save_CFLAGS="$CFLAGS"
9356
9357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9358	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9360$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9361if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9362  $as_echo_n "(cached) " >&6
9363else
9364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h.  */
9366int i;
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"; then :
9369  xorg_cv_cc_flag_unknown_warning_option=yes
9370else
9371  xorg_cv_cc_flag_unknown_warning_option=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374fi
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9376$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9377	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9378	CFLAGS="$xorg_testset_save_CFLAGS"
9379fi
9380
9381if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9382	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9383		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9384	fi
9385	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9387$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9388if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9389  $as_echo_n "(cached) " >&6
9390else
9391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392/* end confdefs.h.  */
9393int i;
9394_ACEOF
9395if ac_fn_c_try_compile "$LINENO"; then :
9396  xorg_cv_cc_flag_unused_command_line_argument=yes
9397else
9398  xorg_cv_cc_flag_unused_command_line_argument=no
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401fi
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9403$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9404	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9405	CFLAGS="$xorg_testset_save_CFLAGS"
9406fi
9407
9408found="no"
9409
9410	if test $found = "no" ; then
9411		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9412			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413		fi
9414
9415		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9416			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9417		fi
9418
9419		CFLAGS="$CFLAGS -Warray-bounds"
9420
9421		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9422$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9423		cacheid=xorg_cv_cc_flag__Warray_bounds
9424		if eval \${$cacheid+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428/* end confdefs.h.  */
9429int i;
9430int
9431main ()
9432{
9433
9434  ;
9435  return 0;
9436}
9437_ACEOF
9438if ac_fn_c_try_link "$LINENO"; then :
9439  eval $cacheid=yes
9440else
9441  eval $cacheid=no
9442fi
9443rm -f core conftest.err conftest.$ac_objext \
9444    conftest$ac_exeext conftest.$ac_ext
9445fi
9446
9447
9448		CFLAGS="$xorg_testset_save_CFLAGS"
9449
9450		eval supported=\$$cacheid
9451		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9452$as_echo "$supported" >&6; }
9453		if test "$supported" = "yes" ; then
9454			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9455			found="yes"
9456		fi
9457	fi
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473xorg_testset_save_CFLAGS="$CFLAGS"
9474
9475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9480  $as_echo_n "(cached) " >&6
9481else
9482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484int i;
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"; then :
9487  xorg_cv_cc_flag_unknown_warning_option=yes
9488else
9489  xorg_cv_cc_flag_unknown_warning_option=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9496	CFLAGS="$xorg_testset_save_CFLAGS"
9497fi
9498
9499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9502	fi
9503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9507  $as_echo_n "(cached) " >&6
9508else
9509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510/* end confdefs.h.  */
9511int i;
9512_ACEOF
9513if ac_fn_c_try_compile "$LINENO"; then :
9514  xorg_cv_cc_flag_unused_command_line_argument=yes
9515else
9516  xorg_cv_cc_flag_unused_command_line_argument=no
9517fi
9518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519fi
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9523	CFLAGS="$xorg_testset_save_CFLAGS"
9524fi
9525
9526found="no"
9527
9528	if test $found = "no" ; then
9529		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531		fi
9532
9533		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9535		fi
9536
9537		CFLAGS="$CFLAGS -Wwrite-strings"
9538
9539		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9540$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9541		cacheid=xorg_cv_cc_flag__Wwrite_strings
9542		if eval \${$cacheid+:} false; then :
9543  $as_echo_n "(cached) " >&6
9544else
9545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546/* end confdefs.h.  */
9547int i;
9548int
9549main ()
9550{
9551
9552  ;
9553  return 0;
9554}
9555_ACEOF
9556if ac_fn_c_try_link "$LINENO"; then :
9557  eval $cacheid=yes
9558else
9559  eval $cacheid=no
9560fi
9561rm -f core conftest.err conftest.$ac_objext \
9562    conftest$ac_exeext conftest.$ac_ext
9563fi
9564
9565
9566		CFLAGS="$xorg_testset_save_CFLAGS"
9567
9568		eval supported=\$$cacheid
9569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9570$as_echo "$supported" >&6; }
9571		if test "$supported" = "yes" ; then
9572			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9573			found="yes"
9574		fi
9575	fi
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591xorg_testset_save_CFLAGS="$CFLAGS"
9592
9593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h.  */
9602int i;
9603_ACEOF
9604if ac_fn_c_try_compile "$LINENO"; then :
9605  xorg_cv_cc_flag_unknown_warning_option=yes
9606else
9607  xorg_cv_cc_flag_unknown_warning_option=no
9608fi
9609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9614	CFLAGS="$xorg_testset_save_CFLAGS"
9615fi
9616
9617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620	fi
9621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9625  $as_echo_n "(cached) " >&6
9626else
9627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628/* end confdefs.h.  */
9629int i;
9630_ACEOF
9631if ac_fn_c_try_compile "$LINENO"; then :
9632  xorg_cv_cc_flag_unused_command_line_argument=yes
9633else
9634  xorg_cv_cc_flag_unused_command_line_argument=no
9635fi
9636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9637fi
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9641	CFLAGS="$xorg_testset_save_CFLAGS"
9642fi
9643
9644found="no"
9645
9646	if test $found = "no" ; then
9647		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649		fi
9650
9651		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9653		fi
9654
9655		CFLAGS="$CFLAGS -Waddress"
9656
9657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9658$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9659		cacheid=xorg_cv_cc_flag__Waddress
9660		if eval \${$cacheid+:} false; then :
9661  $as_echo_n "(cached) " >&6
9662else
9663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664/* end confdefs.h.  */
9665int i;
9666int
9667main ()
9668{
9669
9670  ;
9671  return 0;
9672}
9673_ACEOF
9674if ac_fn_c_try_link "$LINENO"; then :
9675  eval $cacheid=yes
9676else
9677  eval $cacheid=no
9678fi
9679rm -f core conftest.err conftest.$ac_objext \
9680    conftest$ac_exeext conftest.$ac_ext
9681fi
9682
9683
9684		CFLAGS="$xorg_testset_save_CFLAGS"
9685
9686		eval supported=\$$cacheid
9687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9688$as_echo "$supported" >&6; }
9689		if test "$supported" = "yes" ; then
9690			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9691			found="yes"
9692		fi
9693	fi
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709xorg_testset_save_CFLAGS="$CFLAGS"
9710
9711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720int i;
9721_ACEOF
9722if ac_fn_c_try_compile "$LINENO"; then :
9723  xorg_cv_cc_flag_unknown_warning_option=yes
9724else
9725  xorg_cv_cc_flag_unknown_warning_option=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9732	CFLAGS="$xorg_testset_save_CFLAGS"
9733fi
9734
9735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	fi
9739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9743  $as_echo_n "(cached) " >&6
9744else
9745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746/* end confdefs.h.  */
9747int i;
9748_ACEOF
9749if ac_fn_c_try_compile "$LINENO"; then :
9750  xorg_cv_cc_flag_unused_command_line_argument=yes
9751else
9752  xorg_cv_cc_flag_unused_command_line_argument=no
9753fi
9754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9755fi
9756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9759	CFLAGS="$xorg_testset_save_CFLAGS"
9760fi
9761
9762found="no"
9763
9764	if test $found = "no" ; then
9765		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767		fi
9768
9769		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9771		fi
9772
9773		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9774
9775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9776$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9777		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9778		if eval \${$cacheid+:} false; then :
9779  $as_echo_n "(cached) " >&6
9780else
9781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h.  */
9783int i;
9784int
9785main ()
9786{
9787
9788  ;
9789  return 0;
9790}
9791_ACEOF
9792if ac_fn_c_try_link "$LINENO"; then :
9793  eval $cacheid=yes
9794else
9795  eval $cacheid=no
9796fi
9797rm -f core conftest.err conftest.$ac_objext \
9798    conftest$ac_exeext conftest.$ac_ext
9799fi
9800
9801
9802		CFLAGS="$xorg_testset_save_CFLAGS"
9803
9804		eval supported=\$$cacheid
9805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9806$as_echo "$supported" >&6; }
9807		if test "$supported" = "yes" ; then
9808			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9809			found="yes"
9810		fi
9811	fi
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827xorg_testset_save_CFLAGS="$CFLAGS"
9828
9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9834  $as_echo_n "(cached) " >&6
9835else
9836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837/* end confdefs.h.  */
9838int i;
9839_ACEOF
9840if ac_fn_c_try_compile "$LINENO"; then :
9841  xorg_cv_cc_flag_unknown_warning_option=yes
9842else
9843  xorg_cv_cc_flag_unknown_warning_option=no
9844fi
9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9850	CFLAGS="$xorg_testset_save_CFLAGS"
9851fi
9852
9853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856	fi
9857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9861  $as_echo_n "(cached) " >&6
9862else
9863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864/* end confdefs.h.  */
9865int i;
9866_ACEOF
9867if ac_fn_c_try_compile "$LINENO"; then :
9868  xorg_cv_cc_flag_unused_command_line_argument=yes
9869else
9870  xorg_cv_cc_flag_unused_command_line_argument=no
9871fi
9872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873fi
9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9877	CFLAGS="$xorg_testset_save_CFLAGS"
9878fi
9879
9880found="no"
9881
9882	if test $found = "no" ; then
9883		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885		fi
9886
9887		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9889		fi
9890
9891		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9892
9893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9894$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9895		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9896		if eval \${$cacheid+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900/* end confdefs.h.  */
9901int i;
9902int
9903main ()
9904{
9905
9906  ;
9907  return 0;
9908}
9909_ACEOF
9910if ac_fn_c_try_link "$LINENO"; then :
9911  eval $cacheid=yes
9912else
9913  eval $cacheid=no
9914fi
9915rm -f core conftest.err conftest.$ac_objext \
9916    conftest$ac_exeext conftest.$ac_ext
9917fi
9918
9919
9920		CFLAGS="$xorg_testset_save_CFLAGS"
9921
9922		eval supported=\$$cacheid
9923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9924$as_echo "$supported" >&6; }
9925		if test "$supported" = "yes" ; then
9926			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9927			found="yes"
9928		fi
9929	fi
9930
9931
9932fi
9933
9934
9935
9936
9937
9938
9939
9940		CWARNFLAGS="$BASE_CFLAGS"
9941		if  test "x$GCC" = xyes ; then
9942		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9943		fi
9944
9945
9946
9947
9948
9949
9950
9951
9952# Check whether --enable-strict-compilation was given.
9953if test "${enable_strict_compilation+set}" = set; then :
9954  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9955else
9956  STRICT_COMPILE=no
9957fi
9958
9959
9960
9961
9962
9963
9964STRICT_CFLAGS=""
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978xorg_testset_save_CFLAGS="$CFLAGS"
9979
9980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9985  $as_echo_n "(cached) " >&6
9986else
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989int i;
9990_ACEOF
9991if ac_fn_c_try_compile "$LINENO"; then :
9992  xorg_cv_cc_flag_unknown_warning_option=yes
9993else
9994  xorg_cv_cc_flag_unknown_warning_option=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997fi
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10001	CFLAGS="$xorg_testset_save_CFLAGS"
10002fi
10003
10004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007	fi
10008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10012  $as_echo_n "(cached) " >&6
10013else
10014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015/* end confdefs.h.  */
10016int i;
10017_ACEOF
10018if ac_fn_c_try_compile "$LINENO"; then :
10019  xorg_cv_cc_flag_unused_command_line_argument=yes
10020else
10021  xorg_cv_cc_flag_unused_command_line_argument=no
10022fi
10023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024fi
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10028	CFLAGS="$xorg_testset_save_CFLAGS"
10029fi
10030
10031found="no"
10032
10033	if test $found = "no" ; then
10034		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036		fi
10037
10038		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10040		fi
10041
10042		CFLAGS="$CFLAGS -pedantic"
10043
10044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10045$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10046		cacheid=xorg_cv_cc_flag__pedantic
10047		if eval \${$cacheid+:} false; then :
10048  $as_echo_n "(cached) " >&6
10049else
10050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h.  */
10052int i;
10053int
10054main ()
10055{
10056
10057  ;
10058  return 0;
10059}
10060_ACEOF
10061if ac_fn_c_try_link "$LINENO"; then :
10062  eval $cacheid=yes
10063else
10064  eval $cacheid=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext \
10067    conftest$ac_exeext conftest.$ac_ext
10068fi
10069
10070
10071		CFLAGS="$xorg_testset_save_CFLAGS"
10072
10073		eval supported=\$$cacheid
10074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10075$as_echo "$supported" >&6; }
10076		if test "$supported" = "yes" ; then
10077			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10078			found="yes"
10079		fi
10080	fi
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096xorg_testset_save_CFLAGS="$CFLAGS"
10097
10098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10103  $as_echo_n "(cached) " >&6
10104else
10105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106/* end confdefs.h.  */
10107int i;
10108_ACEOF
10109if ac_fn_c_try_compile "$LINENO"; then :
10110  xorg_cv_cc_flag_unknown_warning_option=yes
10111else
10112  xorg_cv_cc_flag_unknown_warning_option=no
10113fi
10114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10115fi
10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119	CFLAGS="$xorg_testset_save_CFLAGS"
10120fi
10121
10122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125	fi
10126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10130  $as_echo_n "(cached) " >&6
10131else
10132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133/* end confdefs.h.  */
10134int i;
10135_ACEOF
10136if ac_fn_c_try_compile "$LINENO"; then :
10137  xorg_cv_cc_flag_unused_command_line_argument=yes
10138else
10139  xorg_cv_cc_flag_unused_command_line_argument=no
10140fi
10141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142fi
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10146	CFLAGS="$xorg_testset_save_CFLAGS"
10147fi
10148
10149found="no"
10150
10151	if test $found = "no" ; then
10152		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154		fi
10155
10156		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10158		fi
10159
10160		CFLAGS="$CFLAGS -Werror"
10161
10162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10163$as_echo_n "checking if $CC supports -Werror... " >&6; }
10164		cacheid=xorg_cv_cc_flag__Werror
10165		if eval \${$cacheid+:} false; then :
10166  $as_echo_n "(cached) " >&6
10167else
10168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169/* end confdefs.h.  */
10170int i;
10171int
10172main ()
10173{
10174
10175  ;
10176  return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_link "$LINENO"; then :
10180  eval $cacheid=yes
10181else
10182  eval $cacheid=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext \
10185    conftest$ac_exeext conftest.$ac_ext
10186fi
10187
10188
10189		CFLAGS="$xorg_testset_save_CFLAGS"
10190
10191		eval supported=\$$cacheid
10192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10193$as_echo "$supported" >&6; }
10194		if test "$supported" = "yes" ; then
10195			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10196			found="yes"
10197		fi
10198	fi
10199
10200	if test $found = "no" ; then
10201		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203		fi
10204
10205		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207		fi
10208
10209		CFLAGS="$CFLAGS -errwarn"
10210
10211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10212$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10213		cacheid=xorg_cv_cc_flag__errwarn
10214		if eval \${$cacheid+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218/* end confdefs.h.  */
10219int i;
10220int
10221main ()
10222{
10223
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228if ac_fn_c_try_link "$LINENO"; then :
10229  eval $cacheid=yes
10230else
10231  eval $cacheid=no
10232fi
10233rm -f core conftest.err conftest.$ac_objext \
10234    conftest$ac_exeext conftest.$ac_ext
10235fi
10236
10237
10238		CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240		eval supported=\$$cacheid
10241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242$as_echo "$supported" >&6; }
10243		if test "$supported" = "yes" ; then
10244			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10245			found="yes"
10246		fi
10247	fi
10248
10249
10250
10251# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10252# activate it with -Werror, so we add it here explicitly.
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266xorg_testset_save_CFLAGS="$CFLAGS"
10267
10268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278_ACEOF
10279if ac_fn_c_try_compile "$LINENO"; then :
10280  xorg_cv_cc_flag_unknown_warning_option=yes
10281else
10282  xorg_cv_cc_flag_unknown_warning_option=no
10283fi
10284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10289	CFLAGS="$xorg_testset_save_CFLAGS"
10290fi
10291
10292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10295	fi
10296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10300  $as_echo_n "(cached) " >&6
10301else
10302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303/* end confdefs.h.  */
10304int i;
10305_ACEOF
10306if ac_fn_c_try_compile "$LINENO"; then :
10307  xorg_cv_cc_flag_unused_command_line_argument=yes
10308else
10309  xorg_cv_cc_flag_unused_command_line_argument=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10312fi
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10316	CFLAGS="$xorg_testset_save_CFLAGS"
10317fi
10318
10319found="no"
10320
10321	if test $found = "no" ; then
10322		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324		fi
10325
10326		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10328		fi
10329
10330		CFLAGS="$CFLAGS -Werror=attributes"
10331
10332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10333$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10334		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10335		if eval \${$cacheid+:} false; then :
10336  $as_echo_n "(cached) " >&6
10337else
10338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339/* end confdefs.h.  */
10340int i;
10341int
10342main ()
10343{
10344
10345  ;
10346  return 0;
10347}
10348_ACEOF
10349if ac_fn_c_try_link "$LINENO"; then :
10350  eval $cacheid=yes
10351else
10352  eval $cacheid=no
10353fi
10354rm -f core conftest.err conftest.$ac_objext \
10355    conftest$ac_exeext conftest.$ac_ext
10356fi
10357
10358
10359		CFLAGS="$xorg_testset_save_CFLAGS"
10360
10361		eval supported=\$$cacheid
10362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10363$as_echo "$supported" >&6; }
10364		if test "$supported" = "yes" ; then
10365			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10366			found="yes"
10367		fi
10368	fi
10369
10370
10371
10372if test "x$STRICT_COMPILE" = "xyes"; then
10373    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10374    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10375fi
10376
10377
10378
10379
10380
10381
10382cat >>confdefs.h <<_ACEOF
10383#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10384_ACEOF
10385
10386	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10387	if test "x$PVM" = "x"; then
10388		PVM="0"
10389	fi
10390
10391cat >>confdefs.h <<_ACEOF
10392#define PACKAGE_VERSION_MINOR $PVM
10393_ACEOF
10394
10395	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10396	if test "x$PVP" = "x"; then
10397		PVP="0"
10398	fi
10399
10400cat >>confdefs.h <<_ACEOF
10401#define PACKAGE_VERSION_PATCHLEVEL $PVP
10402_ACEOF
10403
10404
10405
10406CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10407mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10408|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10409echo 'git directory not found: installing possibly empty changelog.' >&2)"
10410
10411
10412
10413
10414macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10415INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10416mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10417|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10418echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10419
10420
10421
10422
10423
10424
10425if test x$APP_MAN_SUFFIX = x    ; then
10426    APP_MAN_SUFFIX=1
10427fi
10428if test x$APP_MAN_DIR = x    ; then
10429    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10430fi
10431
10432if test x$LIB_MAN_SUFFIX = x    ; then
10433    LIB_MAN_SUFFIX=3
10434fi
10435if test x$LIB_MAN_DIR = x    ; then
10436    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10437fi
10438
10439if test x$FILE_MAN_SUFFIX = x    ; then
10440    case $host_os in
10441	solaris*)	FILE_MAN_SUFFIX=4  ;;
10442	*)		FILE_MAN_SUFFIX=5  ;;
10443    esac
10444fi
10445if test x$FILE_MAN_DIR = x    ; then
10446    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10447fi
10448
10449if test x$MISC_MAN_SUFFIX = x    ; then
10450    case $host_os in
10451	solaris*)	MISC_MAN_SUFFIX=5  ;;
10452	*)		MISC_MAN_SUFFIX=7  ;;
10453    esac
10454fi
10455if test x$MISC_MAN_DIR = x    ; then
10456    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10457fi
10458
10459if test x$DRIVER_MAN_SUFFIX = x    ; then
10460    case $host_os in
10461	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10462	*)		DRIVER_MAN_SUFFIX=4  ;;
10463    esac
10464fi
10465if test x$DRIVER_MAN_DIR = x    ; then
10466    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10467fi
10468
10469if test x$ADMIN_MAN_SUFFIX = x    ; then
10470    case $host_os in
10471	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10472	*)		ADMIN_MAN_SUFFIX=8  ;;
10473    esac
10474fi
10475if test x$ADMIN_MAN_DIR = x    ; then
10476    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10477fi
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493XORG_MAN_PAGE="X Version 11"
10494
10495MAN_SUBSTS="\
10496	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10497	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10498	-e 's|__xservername__|Xorg|g' \
10499	-e 's|__xconfigfile__|xorg.conf|g' \
10500	-e 's|__projectroot__|\$(prefix)|g' \
10501	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10502	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10503	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10504	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10505	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10506	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10507	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10508
10509
10510
10511# Check whether --enable-silent-rules was given.
10512if test "${enable_silent_rules+set}" = set; then :
10513  enableval=$enable_silent_rules;
10514fi
10515
10516case $enable_silent_rules in
10517yes) AM_DEFAULT_VERBOSITY=0;;
10518no)  AM_DEFAULT_VERBOSITY=1;;
10519*)   AM_DEFAULT_VERBOSITY=0;;
10520esac
10521am_make=${MAKE-make}
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10523$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10524if ${am_cv_make_support_nested_variables+:} false; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  if $as_echo 'TRUE=$(BAR$(V))
10528BAR0=false
10529BAR1=true
10530V=1
10531am__doit:
10532	@$(TRUE)
10533.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10534  am_cv_make_support_nested_variables=yes
10535else
10536  am_cv_make_support_nested_variables=no
10537fi
10538fi
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10540$as_echo "$am_cv_make_support_nested_variables" >&6; }
10541if test $am_cv_make_support_nested_variables = yes; then
10542    AM_V='$(V)'
10543  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10544else
10545  AM_V=$AM_DEFAULT_VERBOSITY
10546  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10547fi
10548AM_BACKSLASH='\'
10549
10550
10551
10552# Checks for pkg-config packages
10553
10554pkg_failed=no
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5
10556$as_echo_n "checking for XEV... " >&6; }
10557
10558if test -n "$XEV_CFLAGS"; then
10559    pkg_cv_XEV_CFLAGS="$XEV_CFLAGS"
10560 elif test -n "$PKG_CONFIG"; then
10561    if test -n "$PKG_CONFIG" && \
10562    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
10563  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
10564  ac_status=$?
10565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566  test $ac_status = 0; }; then
10567  pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
10568		      test "x$?" != "x0" && pkg_failed=yes
10569else
10570  pkg_failed=yes
10571fi
10572 else
10573    pkg_failed=untried
10574fi
10575if test -n "$XEV_LIBS"; then
10576    pkg_cv_XEV_LIBS="$XEV_LIBS"
10577 elif test -n "$PKG_CONFIG"; then
10578    if test -n "$PKG_CONFIG" && \
10579    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
10580  ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
10581  ac_status=$?
10582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583  test $ac_status = 0; }; then
10584  pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
10585		      test "x$?" != "x0" && pkg_failed=yes
10586else
10587  pkg_failed=yes
10588fi
10589 else
10590    pkg_failed=untried
10591fi
10592
10593
10594
10595if test $pkg_failed = yes; then
10596   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598
10599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10600        _pkg_short_errors_supported=yes
10601else
10602        _pkg_short_errors_supported=no
10603fi
10604        if test $_pkg_short_errors_supported = yes; then
10605	        XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
10606        else
10607	        XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
10608        fi
10609	# Put the nasty error message in config.log where it belongs
10610	echo "$XEV_PKG_ERRORS" >&5
10611
10612	as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met:
10613
10614$XEV_PKG_ERRORS
10615
10616Consider adjusting the PKG_CONFIG_PATH environment variable if you
10617installed software in a non-standard prefix.
10618
10619Alternatively, you may set the environment variables XEV_CFLAGS
10620and XEV_LIBS to avoid the need to call pkg-config.
10621See the pkg-config man page for more details." "$LINENO" 5
10622elif test $pkg_failed = untried; then
10623     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624$as_echo "no" >&6; }
10625	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10627as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10628is in your PATH or set the PKG_CONFIG environment variable to the full
10629path to pkg-config.
10630
10631Alternatively, you may set the environment variables XEV_CFLAGS
10632and XEV_LIBS to avoid the need to call pkg-config.
10633See the pkg-config man page for more details.
10634
10635To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10636See \`config.log' for more details" "$LINENO" 5; }
10637else
10638	XEV_CFLAGS=$pkg_cv_XEV_CFLAGS
10639	XEV_LIBS=$pkg_cv_XEV_LIBS
10640        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641$as_echo "yes" >&6; }
10642
10643fi
10644
10645ac_config_files="$ac_config_files Makefile man/Makefile"
10646
10647cat >confcache <<\_ACEOF
10648# This file is a shell script that caches the results of configure
10649# tests run on this system so they can be shared between configure
10650# scripts and configure runs, see configure's option --config-cache.
10651# It is not useful on other systems.  If it contains results you don't
10652# want to keep, you may remove or edit it.
10653#
10654# config.status only pays attention to the cache file if you give it
10655# the --recheck option to rerun configure.
10656#
10657# `ac_cv_env_foo' variables (set or unset) will be overridden when
10658# loading this file, other *unset* `ac_cv_foo' will be assigned the
10659# following values.
10660
10661_ACEOF
10662
10663# The following way of writing the cache mishandles newlines in values,
10664# but we know of no workaround that is simple, portable, and efficient.
10665# So, we kill variables containing newlines.
10666# Ultrix sh set writes to stderr and can't be redirected directly,
10667# and sets the high bit in the cache file unless we assign to the vars.
10668(
10669  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10670    eval ac_val=\$$ac_var
10671    case $ac_val in #(
10672    *${as_nl}*)
10673      case $ac_var in #(
10674      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10675$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10676      esac
10677      case $ac_var in #(
10678      _ | IFS | as_nl) ;; #(
10679      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10680      *) { eval $ac_var=; unset $ac_var;} ;;
10681      esac ;;
10682    esac
10683  done
10684
10685  (set) 2>&1 |
10686    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10687    *${as_nl}ac_space=\ *)
10688      # `set' does not quote correctly, so add quotes: double-quote
10689      # substitution turns \\\\ into \\, and sed turns \\ into \.
10690      sed -n \
10691	"s/'/'\\\\''/g;
10692	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10693      ;; #(
10694    *)
10695      # `set' quotes correctly as required by POSIX, so do not add quotes.
10696      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10697      ;;
10698    esac |
10699    sort
10700) |
10701  sed '
10702     /^ac_cv_env_/b end
10703     t clear
10704     :clear
10705     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10706     t end
10707     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10708     :end' >>confcache
10709if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10710  if test -w "$cache_file"; then
10711    if test "x$cache_file" != "x/dev/null"; then
10712      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10713$as_echo "$as_me: updating cache $cache_file" >&6;}
10714      if test ! -f "$cache_file" || test -h "$cache_file"; then
10715	cat confcache >"$cache_file"
10716      else
10717        case $cache_file in #(
10718        */* | ?:*)
10719	  mv -f confcache "$cache_file"$$ &&
10720	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10721        *)
10722	  mv -f confcache "$cache_file" ;;
10723	esac
10724      fi
10725    fi
10726  else
10727    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10728$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10729  fi
10730fi
10731rm -f confcache
10732
10733test "x$prefix" = xNONE && prefix=$ac_default_prefix
10734# Let make expand exec_prefix.
10735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10736
10737DEFS=-DHAVE_CONFIG_H
10738
10739ac_libobjs=
10740ac_ltlibobjs=
10741U=
10742for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10743  # 1. Remove the extension, and $U if already installed.
10744  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10745  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10746  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10747  #    will be set to the directory where LIBOBJS objects are built.
10748  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10749  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10750done
10751LIBOBJS=$ac_libobjs
10752
10753LTLIBOBJS=$ac_ltlibobjs
10754
10755
10756if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10757  as_fn_error $? "conditional \"AMDEP\" was never defined.
10758Usually this means the macro was only invoked conditionally." "$LINENO" 5
10759fi
10760if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10761  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10762Usually this means the macro was only invoked conditionally." "$LINENO" 5
10763fi
10764 if test -n "$EXEEXT"; then
10765  am__EXEEXT_TRUE=
10766  am__EXEEXT_FALSE='#'
10767else
10768  am__EXEEXT_TRUE='#'
10769  am__EXEEXT_FALSE=
10770fi
10771
10772if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10773  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10774Usually this means the macro was only invoked conditionally." "$LINENO" 5
10775fi
10776
10777: "${CONFIG_STATUS=./config.status}"
10778ac_write_fail=0
10779ac_clean_files_save=$ac_clean_files
10780ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10782$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10783as_write_fail=0
10784cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10785#! $SHELL
10786# Generated by $as_me.
10787# Run this file to recreate the current configuration.
10788# Compiler output produced by configure, useful for debugging
10789# configure, is in config.log if it exists.
10790
10791debug=false
10792ac_cs_recheck=false
10793ac_cs_silent=false
10794
10795SHELL=\${CONFIG_SHELL-$SHELL}
10796export SHELL
10797_ASEOF
10798cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10799## -------------------- ##
10800## M4sh Initialization. ##
10801## -------------------- ##
10802
10803# Be more Bourne compatible
10804DUALCASE=1; export DUALCASE # for MKS sh
10805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10806  emulate sh
10807  NULLCMD=:
10808  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10809  # is contrary to our usage.  Disable this feature.
10810  alias -g '${1+"$@"}'='"$@"'
10811  setopt NO_GLOB_SUBST
10812else
10813  case `(set -o) 2>/dev/null` in #(
10814  *posix*) :
10815    set -o posix ;; #(
10816  *) :
10817     ;;
10818esac
10819fi
10820
10821
10822as_nl='
10823'
10824export as_nl
10825# Printing a long string crashes Solaris 7 /usr/bin/printf.
10826as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10828as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10829# Prefer a ksh shell builtin over an external printf program on Solaris,
10830# but without wasting forks for bash or zsh.
10831if test -z "$BASH_VERSION$ZSH_VERSION" \
10832    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10833  as_echo='print -r --'
10834  as_echo_n='print -rn --'
10835elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10836  as_echo='printf %s\n'
10837  as_echo_n='printf %s'
10838else
10839  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10840    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10841    as_echo_n='/usr/ucb/echo -n'
10842  else
10843    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10844    as_echo_n_body='eval
10845      arg=$1;
10846      case $arg in #(
10847      *"$as_nl"*)
10848	expr "X$arg" : "X\\(.*\\)$as_nl";
10849	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10850      esac;
10851      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10852    '
10853    export as_echo_n_body
10854    as_echo_n='sh -c $as_echo_n_body as_echo'
10855  fi
10856  export as_echo_body
10857  as_echo='sh -c $as_echo_body as_echo'
10858fi
10859
10860# The user is always right.
10861if test "${PATH_SEPARATOR+set}" != set; then
10862  PATH_SEPARATOR=:
10863  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10864    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10865      PATH_SEPARATOR=';'
10866  }
10867fi
10868
10869
10870# IFS
10871# We need space, tab and new line, in precisely that order.  Quoting is
10872# there to prevent editors from complaining about space-tab.
10873# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10874# splitting by setting IFS to empty value.)
10875IFS=" ""	$as_nl"
10876
10877# Find who we are.  Look in the path if we contain no directory separator.
10878as_myself=
10879case $0 in #((
10880  *[\\/]* ) as_myself=$0 ;;
10881  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $PATH
10883do
10884  IFS=$as_save_IFS
10885  test -z "$as_dir" && as_dir=.
10886    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10887  done
10888IFS=$as_save_IFS
10889
10890     ;;
10891esac
10892# We did not find ourselves, most probably we were run as `sh COMMAND'
10893# in which case we are not to be found in the path.
10894if test "x$as_myself" = x; then
10895  as_myself=$0
10896fi
10897if test ! -f "$as_myself"; then
10898  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10899  exit 1
10900fi
10901
10902# Unset variables that we do not need and which cause bugs (e.g. in
10903# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10904# suppresses any "Segmentation fault" message there.  '((' could
10905# trigger a bug in pdksh 5.2.14.
10906for as_var in BASH_ENV ENV MAIL MAILPATH
10907do eval test x\${$as_var+set} = xset \
10908  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10909done
10910PS1='$ '
10911PS2='> '
10912PS4='+ '
10913
10914# NLS nuisances.
10915LC_ALL=C
10916export LC_ALL
10917LANGUAGE=C
10918export LANGUAGE
10919
10920# CDPATH.
10921(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10922
10923
10924# as_fn_error STATUS ERROR [LINENO LOG_FD]
10925# ----------------------------------------
10926# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10927# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10928# script with STATUS, using 1 if that was 0.
10929as_fn_error ()
10930{
10931  as_status=$1; test $as_status -eq 0 && as_status=1
10932  if test "$4"; then
10933    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10934    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10935  fi
10936  $as_echo "$as_me: error: $2" >&2
10937  as_fn_exit $as_status
10938} # as_fn_error
10939
10940
10941# as_fn_set_status STATUS
10942# -----------------------
10943# Set $? to STATUS, without forking.
10944as_fn_set_status ()
10945{
10946  return $1
10947} # as_fn_set_status
10948
10949# as_fn_exit STATUS
10950# -----------------
10951# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10952as_fn_exit ()
10953{
10954  set +e
10955  as_fn_set_status $1
10956  exit $1
10957} # as_fn_exit
10958
10959# as_fn_unset VAR
10960# ---------------
10961# Portably unset VAR.
10962as_fn_unset ()
10963{
10964  { eval $1=; unset $1;}
10965}
10966as_unset=as_fn_unset
10967# as_fn_append VAR VALUE
10968# ----------------------
10969# Append the text in VALUE to the end of the definition contained in VAR. Take
10970# advantage of any shell optimizations that allow amortized linear growth over
10971# repeated appends, instead of the typical quadratic growth present in naive
10972# implementations.
10973if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10974  eval 'as_fn_append ()
10975  {
10976    eval $1+=\$2
10977  }'
10978else
10979  as_fn_append ()
10980  {
10981    eval $1=\$$1\$2
10982  }
10983fi # as_fn_append
10984
10985# as_fn_arith ARG...
10986# ------------------
10987# Perform arithmetic evaluation on the ARGs, and store the result in the
10988# global $as_val. Take advantage of shells that can avoid forks. The arguments
10989# must be portable across $(()) and expr.
10990if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10991  eval 'as_fn_arith ()
10992  {
10993    as_val=$(( $* ))
10994  }'
10995else
10996  as_fn_arith ()
10997  {
10998    as_val=`expr "$@" || test $? -eq 1`
10999  }
11000fi # as_fn_arith
11001
11002
11003if expr a : '\(a\)' >/dev/null 2>&1 &&
11004   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11005  as_expr=expr
11006else
11007  as_expr=false
11008fi
11009
11010if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11011  as_basename=basename
11012else
11013  as_basename=false
11014fi
11015
11016if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11017  as_dirname=dirname
11018else
11019  as_dirname=false
11020fi
11021
11022as_me=`$as_basename -- "$0" ||
11023$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11024	 X"$0" : 'X\(//\)$' \| \
11025	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11026$as_echo X/"$0" |
11027    sed '/^.*\/\([^/][^/]*\)\/*$/{
11028	    s//\1/
11029	    q
11030	  }
11031	  /^X\/\(\/\/\)$/{
11032	    s//\1/
11033	    q
11034	  }
11035	  /^X\/\(\/\).*/{
11036	    s//\1/
11037	    q
11038	  }
11039	  s/.*/./; q'`
11040
11041# Avoid depending upon Character Ranges.
11042as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11043as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11044as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11045as_cr_digits='0123456789'
11046as_cr_alnum=$as_cr_Letters$as_cr_digits
11047
11048ECHO_C= ECHO_N= ECHO_T=
11049case `echo -n x` in #(((((
11050-n*)
11051  case `echo 'xy\c'` in
11052  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11053  xy)  ECHO_C='\c';;
11054  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11055       ECHO_T='	';;
11056  esac;;
11057*)
11058  ECHO_N='-n';;
11059esac
11060
11061rm -f conf$$ conf$$.exe conf$$.file
11062if test -d conf$$.dir; then
11063  rm -f conf$$.dir/conf$$.file
11064else
11065  rm -f conf$$.dir
11066  mkdir conf$$.dir 2>/dev/null
11067fi
11068if (echo >conf$$.file) 2>/dev/null; then
11069  if ln -s conf$$.file conf$$ 2>/dev/null; then
11070    as_ln_s='ln -s'
11071    # ... but there are two gotchas:
11072    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11073    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11074    # In both cases, we have to default to `cp -p'.
11075    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11076      as_ln_s='cp -p'
11077  elif ln conf$$.file conf$$ 2>/dev/null; then
11078    as_ln_s=ln
11079  else
11080    as_ln_s='cp -p'
11081  fi
11082else
11083  as_ln_s='cp -p'
11084fi
11085rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11086rmdir conf$$.dir 2>/dev/null
11087
11088
11089# as_fn_mkdir_p
11090# -------------
11091# Create "$as_dir" as a directory, including parents if necessary.
11092as_fn_mkdir_p ()
11093{
11094
11095  case $as_dir in #(
11096  -*) as_dir=./$as_dir;;
11097  esac
11098  test -d "$as_dir" || eval $as_mkdir_p || {
11099    as_dirs=
11100    while :; do
11101      case $as_dir in #(
11102      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11103      *) as_qdir=$as_dir;;
11104      esac
11105      as_dirs="'$as_qdir' $as_dirs"
11106      as_dir=`$as_dirname -- "$as_dir" ||
11107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11108	 X"$as_dir" : 'X\(//\)[^/]' \| \
11109	 X"$as_dir" : 'X\(//\)$' \| \
11110	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11111$as_echo X"$as_dir" |
11112    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11113	    s//\1/
11114	    q
11115	  }
11116	  /^X\(\/\/\)[^/].*/{
11117	    s//\1/
11118	    q
11119	  }
11120	  /^X\(\/\/\)$/{
11121	    s//\1/
11122	    q
11123	  }
11124	  /^X\(\/\).*/{
11125	    s//\1/
11126	    q
11127	  }
11128	  s/.*/./; q'`
11129      test -d "$as_dir" && break
11130    done
11131    test -z "$as_dirs" || eval "mkdir $as_dirs"
11132  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11133
11134
11135} # as_fn_mkdir_p
11136if mkdir -p . 2>/dev/null; then
11137  as_mkdir_p='mkdir -p "$as_dir"'
11138else
11139  test -d ./-p && rmdir ./-p
11140  as_mkdir_p=false
11141fi
11142
11143if test -x / >/dev/null 2>&1; then
11144  as_test_x='test -x'
11145else
11146  if ls -dL / >/dev/null 2>&1; then
11147    as_ls_L_option=L
11148  else
11149    as_ls_L_option=
11150  fi
11151  as_test_x='
11152    eval sh -c '\''
11153      if test -d "$1"; then
11154	test -d "$1/.";
11155      else
11156	case $1 in #(
11157	-*)set "./$1";;
11158	esac;
11159	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11160	???[sx]*):;;*)false;;esac;fi
11161    '\'' sh
11162  '
11163fi
11164as_executable_p=$as_test_x
11165
11166# Sed expression to map a string onto a valid CPP name.
11167as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11168
11169# Sed expression to map a string onto a valid variable name.
11170as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11171
11172
11173exec 6>&1
11174## ----------------------------------- ##
11175## Main body of $CONFIG_STATUS script. ##
11176## ----------------------------------- ##
11177_ASEOF
11178test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11179
11180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11181# Save the log message, to keep $0 and so on meaningful, and to
11182# report actual input values of CONFIG_FILES etc. instead of their
11183# values after options handling.
11184ac_log="
11185This file was extended by xev $as_me 1.2.1, which was
11186generated by GNU Autoconf 2.68.  Invocation command line was
11187
11188  CONFIG_FILES    = $CONFIG_FILES
11189  CONFIG_HEADERS  = $CONFIG_HEADERS
11190  CONFIG_LINKS    = $CONFIG_LINKS
11191  CONFIG_COMMANDS = $CONFIG_COMMANDS
11192  $ $0 $@
11193
11194on `(hostname || uname -n) 2>/dev/null | sed 1q`
11195"
11196
11197_ACEOF
11198
11199case $ac_config_files in *"
11200"*) set x $ac_config_files; shift; ac_config_files=$*;;
11201esac
11202
11203case $ac_config_headers in *"
11204"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11205esac
11206
11207
11208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11209# Files that config.status was made for.
11210config_files="$ac_config_files"
11211config_headers="$ac_config_headers"
11212config_commands="$ac_config_commands"
11213
11214_ACEOF
11215
11216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11217ac_cs_usage="\
11218\`$as_me' instantiates files and other configuration actions
11219from templates according to the current configuration.  Unless the files
11220and actions are specified as TAGs, all are instantiated by default.
11221
11222Usage: $0 [OPTION]... [TAG]...
11223
11224  -h, --help       print this help, then exit
11225  -V, --version    print version number and configuration settings, then exit
11226      --config     print configuration, then exit
11227  -q, --quiet, --silent
11228                   do not print progress messages
11229  -d, --debug      don't remove temporary files
11230      --recheck    update $as_me by reconfiguring in the same conditions
11231      --file=FILE[:TEMPLATE]
11232                   instantiate the configuration file FILE
11233      --header=FILE[:TEMPLATE]
11234                   instantiate the configuration header FILE
11235
11236Configuration files:
11237$config_files
11238
11239Configuration headers:
11240$config_headers
11241
11242Configuration commands:
11243$config_commands
11244
11245Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11246
11247_ACEOF
11248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11249ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11250ac_cs_version="\\
11251xev config.status 1.2.1
11252configured by $0, generated by GNU Autoconf 2.68,
11253  with options \\"\$ac_cs_config\\"
11254
11255Copyright (C) 2010 Free Software Foundation, Inc.
11256This config.status script is free software; the Free Software Foundation
11257gives unlimited permission to copy, distribute and modify it."
11258
11259ac_pwd='$ac_pwd'
11260srcdir='$srcdir'
11261INSTALL='$INSTALL'
11262MKDIR_P='$MKDIR_P'
11263AWK='$AWK'
11264test -n "\$AWK" || AWK=awk
11265_ACEOF
11266
11267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11268# The default lists apply if the user does not specify any file.
11269ac_need_defaults=:
11270while test $# != 0
11271do
11272  case $1 in
11273  --*=?*)
11274    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11275    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11276    ac_shift=:
11277    ;;
11278  --*=)
11279    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11280    ac_optarg=
11281    ac_shift=:
11282    ;;
11283  *)
11284    ac_option=$1
11285    ac_optarg=$2
11286    ac_shift=shift
11287    ;;
11288  esac
11289
11290  case $ac_option in
11291  # Handling of the options.
11292  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11293    ac_cs_recheck=: ;;
11294  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11295    $as_echo "$ac_cs_version"; exit ;;
11296  --config | --confi | --conf | --con | --co | --c )
11297    $as_echo "$ac_cs_config"; exit ;;
11298  --debug | --debu | --deb | --de | --d | -d )
11299    debug=: ;;
11300  --file | --fil | --fi | --f )
11301    $ac_shift
11302    case $ac_optarg in
11303    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11304    '') as_fn_error $? "missing file argument" ;;
11305    esac
11306    as_fn_append CONFIG_FILES " '$ac_optarg'"
11307    ac_need_defaults=false;;
11308  --header | --heade | --head | --hea )
11309    $ac_shift
11310    case $ac_optarg in
11311    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11312    esac
11313    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11314    ac_need_defaults=false;;
11315  --he | --h)
11316    # Conflict between --help and --header
11317    as_fn_error $? "ambiguous option: \`$1'
11318Try \`$0 --help' for more information.";;
11319  --help | --hel | -h )
11320    $as_echo "$ac_cs_usage"; exit ;;
11321  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11322  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11323    ac_cs_silent=: ;;
11324
11325  # This is an error.
11326  -*) as_fn_error $? "unrecognized option: \`$1'
11327Try \`$0 --help' for more information." ;;
11328
11329  *) as_fn_append ac_config_targets " $1"
11330     ac_need_defaults=false ;;
11331
11332  esac
11333  shift
11334done
11335
11336ac_configure_extra_args=
11337
11338if $ac_cs_silent; then
11339  exec 6>/dev/null
11340  ac_configure_extra_args="$ac_configure_extra_args --silent"
11341fi
11342
11343_ACEOF
11344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11345if \$ac_cs_recheck; then
11346  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11347  shift
11348  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11349  CONFIG_SHELL='$SHELL'
11350  export CONFIG_SHELL
11351  exec "\$@"
11352fi
11353
11354_ACEOF
11355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11356exec 5>>config.log
11357{
11358  echo
11359  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11360## Running $as_me. ##
11361_ASBOX
11362  $as_echo "$ac_log"
11363} >&5
11364
11365_ACEOF
11366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11367#
11368# INIT-COMMANDS
11369#
11370AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11371
11372_ACEOF
11373
11374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375
11376# Handling of arguments.
11377for ac_config_target in $ac_config_targets
11378do
11379  case $ac_config_target in
11380    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11381    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11382    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11383    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11384
11385  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11386  esac
11387done
11388
11389
11390# If the user did not use the arguments to specify the items to instantiate,
11391# then the envvar interface is used.  Set only those that are not.
11392# We use the long form for the default assignment because of an extremely
11393# bizarre bug on SunOS 4.1.3.
11394if $ac_need_defaults; then
11395  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11396  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11397  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11398fi
11399
11400# Have a temporary directory for convenience.  Make it in the build tree
11401# simply because there is no reason against having it here, and in addition,
11402# creating and moving files from /tmp can sometimes cause problems.
11403# Hook for its removal unless debugging.
11404# Note that there is a small window in which the directory will not be cleaned:
11405# after its creation but before its name has been assigned to `$tmp'.
11406$debug ||
11407{
11408  tmp= ac_tmp=
11409  trap 'exit_status=$?
11410  : "${ac_tmp:=$tmp}"
11411  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11412' 0
11413  trap 'as_fn_exit 1' 1 2 13 15
11414}
11415# Create a (secure) tmp directory for tmp files.
11416
11417{
11418  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11419  test -d "$tmp"
11420}  ||
11421{
11422  tmp=./conf$$-$RANDOM
11423  (umask 077 && mkdir "$tmp")
11424} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11425ac_tmp=$tmp
11426
11427# Set up the scripts for CONFIG_FILES section.
11428# No need to generate them if there are no CONFIG_FILES.
11429# This happens for instance with `./config.status config.h'.
11430if test -n "$CONFIG_FILES"; then
11431
11432
11433ac_cr=`echo X | tr X '\015'`
11434# On cygwin, bash can eat \r inside `` if the user requested igncr.
11435# But we know of no other shell where ac_cr would be empty at this
11436# point, so we can use a bashism as a fallback.
11437if test "x$ac_cr" = x; then
11438  eval ac_cr=\$\'\\r\'
11439fi
11440ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11441if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11442  ac_cs_awk_cr='\\r'
11443else
11444  ac_cs_awk_cr=$ac_cr
11445fi
11446
11447echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11448_ACEOF
11449
11450
11451{
11452  echo "cat >conf$$subs.awk <<_ACEOF" &&
11453  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11454  echo "_ACEOF"
11455} >conf$$subs.sh ||
11456  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11457ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11458ac_delim='%!_!# '
11459for ac_last_try in false false false false false :; do
11460  . ./conf$$subs.sh ||
11461    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11462
11463  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11464  if test $ac_delim_n = $ac_delim_num; then
11465    break
11466  elif $ac_last_try; then
11467    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11468  else
11469    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11470  fi
11471done
11472rm -f conf$$subs.sh
11473
11474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11475cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11476_ACEOF
11477sed -n '
11478h
11479s/^/S["/; s/!.*/"]=/
11480p
11481g
11482s/^[^!]*!//
11483:repl
11484t repl
11485s/'"$ac_delim"'$//
11486t delim
11487:nl
11488h
11489s/\(.\{148\}\)..*/\1/
11490t more1
11491s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11492p
11493n
11494b repl
11495:more1
11496s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11497p
11498g
11499s/.\{148\}//
11500t nl
11501:delim
11502h
11503s/\(.\{148\}\)..*/\1/
11504t more2
11505s/["\\]/\\&/g; s/^/"/; s/$/"/
11506p
11507b
11508:more2
11509s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11510p
11511g
11512s/.\{148\}//
11513t delim
11514' <conf$$subs.awk | sed '
11515/^[^""]/{
11516  N
11517  s/\n//
11518}
11519' >>$CONFIG_STATUS || ac_write_fail=1
11520rm -f conf$$subs.awk
11521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11522_ACAWK
11523cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11524  for (key in S) S_is_set[key] = 1
11525  FS = ""
11526
11527}
11528{
11529  line = $ 0
11530  nfields = split(line, field, "@")
11531  substed = 0
11532  len = length(field[1])
11533  for (i = 2; i < nfields; i++) {
11534    key = field[i]
11535    keylen = length(key)
11536    if (S_is_set[key]) {
11537      value = S[key]
11538      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11539      len += length(value) + length(field[++i])
11540      substed = 1
11541    } else
11542      len += 1 + keylen
11543  }
11544
11545  print line
11546}
11547
11548_ACAWK
11549_ACEOF
11550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11551if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11552  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11553else
11554  cat
11555fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11556  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11557_ACEOF
11558
11559# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11560# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11561# trailing colons and then remove the whole line if VPATH becomes empty
11562# (actually we leave an empty line to preserve line numbers).
11563if test "x$srcdir" = x.; then
11564  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11565h
11566s///
11567s/^/:/
11568s/[	 ]*$/:/
11569s/:\$(srcdir):/:/g
11570s/:\${srcdir}:/:/g
11571s/:@srcdir@:/:/g
11572s/^:*//
11573s/:*$//
11574x
11575s/\(=[	 ]*\).*/\1/
11576G
11577s/\n//
11578s/^[^=]*=[	 ]*$//
11579}'
11580fi
11581
11582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11583fi # test -n "$CONFIG_FILES"
11584
11585# Set up the scripts for CONFIG_HEADERS section.
11586# No need to generate them if there are no CONFIG_HEADERS.
11587# This happens for instance with `./config.status Makefile'.
11588if test -n "$CONFIG_HEADERS"; then
11589cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11590BEGIN {
11591_ACEOF
11592
11593# Transform confdefs.h into an awk script `defines.awk', embedded as
11594# here-document in config.status, that substitutes the proper values into
11595# config.h.in to produce config.h.
11596
11597# Create a delimiter string that does not exist in confdefs.h, to ease
11598# handling of long lines.
11599ac_delim='%!_!# '
11600for ac_last_try in false false :; do
11601  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11602  if test -z "$ac_tt"; then
11603    break
11604  elif $ac_last_try; then
11605    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11606  else
11607    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11608  fi
11609done
11610
11611# For the awk script, D is an array of macro values keyed by name,
11612# likewise P contains macro parameters if any.  Preserve backslash
11613# newline sequences.
11614
11615ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11616sed -n '
11617s/.\{148\}/&'"$ac_delim"'/g
11618t rset
11619:rset
11620s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11621t def
11622d
11623:def
11624s/\\$//
11625t bsnl
11626s/["\\]/\\&/g
11627s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11628D["\1"]=" \3"/p
11629s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11630d
11631:bsnl
11632s/["\\]/\\&/g
11633s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11634D["\1"]=" \3\\\\\\n"\\/p
11635t cont
11636s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11637t cont
11638d
11639:cont
11640n
11641s/.\{148\}/&'"$ac_delim"'/g
11642t clear
11643:clear
11644s/\\$//
11645t bsnlc
11646s/["\\]/\\&/g; s/^/"/; s/$/"/p
11647d
11648:bsnlc
11649s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11650b cont
11651' <confdefs.h | sed '
11652s/'"$ac_delim"'/"\\\
11653"/g' >>$CONFIG_STATUS || ac_write_fail=1
11654
11655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11656  for (key in D) D_is_set[key] = 1
11657  FS = ""
11658}
11659/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11660  line = \$ 0
11661  split(line, arg, " ")
11662  if (arg[1] == "#") {
11663    defundef = arg[2]
11664    mac1 = arg[3]
11665  } else {
11666    defundef = substr(arg[1], 2)
11667    mac1 = arg[2]
11668  }
11669  split(mac1, mac2, "(") #)
11670  macro = mac2[1]
11671  prefix = substr(line, 1, index(line, defundef) - 1)
11672  if (D_is_set[macro]) {
11673    # Preserve the white space surrounding the "#".
11674    print prefix "define", macro P[macro] D[macro]
11675    next
11676  } else {
11677    # Replace #undef with comments.  This is necessary, for example,
11678    # in the case of _POSIX_SOURCE, which is predefined and required
11679    # on some systems where configure will not decide to define it.
11680    if (defundef == "undef") {
11681      print "/*", prefix defundef, macro, "*/"
11682      next
11683    }
11684  }
11685}
11686{ print }
11687_ACAWK
11688_ACEOF
11689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11690  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11691fi # test -n "$CONFIG_HEADERS"
11692
11693
11694eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11695shift
11696for ac_tag
11697do
11698  case $ac_tag in
11699  :[FHLC]) ac_mode=$ac_tag; continue;;
11700  esac
11701  case $ac_mode$ac_tag in
11702  :[FHL]*:*);;
11703  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11704  :[FH]-) ac_tag=-:-;;
11705  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11706  esac
11707  ac_save_IFS=$IFS
11708  IFS=:
11709  set x $ac_tag
11710  IFS=$ac_save_IFS
11711  shift
11712  ac_file=$1
11713  shift
11714
11715  case $ac_mode in
11716  :L) ac_source=$1;;
11717  :[FH])
11718    ac_file_inputs=
11719    for ac_f
11720    do
11721      case $ac_f in
11722      -) ac_f="$ac_tmp/stdin";;
11723      *) # Look for the file first in the build tree, then in the source tree
11724	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11725	 # because $ac_f cannot contain `:'.
11726	 test -f "$ac_f" ||
11727	   case $ac_f in
11728	   [\\/$]*) false;;
11729	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11730	   esac ||
11731	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11732      esac
11733      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11734      as_fn_append ac_file_inputs " '$ac_f'"
11735    done
11736
11737    # Let's still pretend it is `configure' which instantiates (i.e., don't
11738    # use $as_me), people would be surprised to read:
11739    #    /* config.h.  Generated by config.status.  */
11740    configure_input='Generated from '`
11741	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11742	`' by configure.'
11743    if test x"$ac_file" != x-; then
11744      configure_input="$ac_file.  $configure_input"
11745      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11746$as_echo "$as_me: creating $ac_file" >&6;}
11747    fi
11748    # Neutralize special characters interpreted by sed in replacement strings.
11749    case $configure_input in #(
11750    *\&* | *\|* | *\\* )
11751       ac_sed_conf_input=`$as_echo "$configure_input" |
11752       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11753    *) ac_sed_conf_input=$configure_input;;
11754    esac
11755
11756    case $ac_tag in
11757    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11758      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11759    esac
11760    ;;
11761  esac
11762
11763  ac_dir=`$as_dirname -- "$ac_file" ||
11764$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11765	 X"$ac_file" : 'X\(//\)[^/]' \| \
11766	 X"$ac_file" : 'X\(//\)$' \| \
11767	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11768$as_echo X"$ac_file" |
11769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11770	    s//\1/
11771	    q
11772	  }
11773	  /^X\(\/\/\)[^/].*/{
11774	    s//\1/
11775	    q
11776	  }
11777	  /^X\(\/\/\)$/{
11778	    s//\1/
11779	    q
11780	  }
11781	  /^X\(\/\).*/{
11782	    s//\1/
11783	    q
11784	  }
11785	  s/.*/./; q'`
11786  as_dir="$ac_dir"; as_fn_mkdir_p
11787  ac_builddir=.
11788
11789case "$ac_dir" in
11790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11791*)
11792  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11793  # A ".." for each directory in $ac_dir_suffix.
11794  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11795  case $ac_top_builddir_sub in
11796  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11797  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11798  esac ;;
11799esac
11800ac_abs_top_builddir=$ac_pwd
11801ac_abs_builddir=$ac_pwd$ac_dir_suffix
11802# for backward compatibility:
11803ac_top_builddir=$ac_top_build_prefix
11804
11805case $srcdir in
11806  .)  # We are building in place.
11807    ac_srcdir=.
11808    ac_top_srcdir=$ac_top_builddir_sub
11809    ac_abs_top_srcdir=$ac_pwd ;;
11810  [\\/]* | ?:[\\/]* )  # Absolute name.
11811    ac_srcdir=$srcdir$ac_dir_suffix;
11812    ac_top_srcdir=$srcdir
11813    ac_abs_top_srcdir=$srcdir ;;
11814  *) # Relative name.
11815    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11816    ac_top_srcdir=$ac_top_build_prefix$srcdir
11817    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11818esac
11819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11820
11821
11822  case $ac_mode in
11823  :F)
11824  #
11825  # CONFIG_FILE
11826  #
11827
11828  case $INSTALL in
11829  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11830  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11831  esac
11832  ac_MKDIR_P=$MKDIR_P
11833  case $MKDIR_P in
11834  [\\/$]* | ?:[\\/]* ) ;;
11835  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11836  esac
11837_ACEOF
11838
11839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11840# If the template does not know about datarootdir, expand it.
11841# FIXME: This hack should be removed a few years after 2.60.
11842ac_datarootdir_hack=; ac_datarootdir_seen=
11843ac_sed_dataroot='
11844/datarootdir/ {
11845  p
11846  q
11847}
11848/@datadir@/p
11849/@docdir@/p
11850/@infodir@/p
11851/@localedir@/p
11852/@mandir@/p'
11853case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11854*datarootdir*) ac_datarootdir_seen=yes;;
11855*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11856  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11857$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11858_ACEOF
11859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11860  ac_datarootdir_hack='
11861  s&@datadir@&$datadir&g
11862  s&@docdir@&$docdir&g
11863  s&@infodir@&$infodir&g
11864  s&@localedir@&$localedir&g
11865  s&@mandir@&$mandir&g
11866  s&\\\${datarootdir}&$datarootdir&g' ;;
11867esac
11868_ACEOF
11869
11870# Neutralize VPATH when `$srcdir' = `.'.
11871# Shell code in configure.ac might set extrasub.
11872# FIXME: do we really want to maintain this feature?
11873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874ac_sed_extra="$ac_vpsub
11875$extrasub
11876_ACEOF
11877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11878:t
11879/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11880s|@configure_input@|$ac_sed_conf_input|;t t
11881s&@top_builddir@&$ac_top_builddir_sub&;t t
11882s&@top_build_prefix@&$ac_top_build_prefix&;t t
11883s&@srcdir@&$ac_srcdir&;t t
11884s&@abs_srcdir@&$ac_abs_srcdir&;t t
11885s&@top_srcdir@&$ac_top_srcdir&;t t
11886s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11887s&@builddir@&$ac_builddir&;t t
11888s&@abs_builddir@&$ac_abs_builddir&;t t
11889s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11890s&@INSTALL@&$ac_INSTALL&;t t
11891s&@MKDIR_P@&$ac_MKDIR_P&;t t
11892$ac_datarootdir_hack
11893"
11894eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11895  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11896
11897test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11898  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11899  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11900      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11901  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11902which seems to be undefined.  Please make sure it is defined" >&5
11903$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11904which seems to be undefined.  Please make sure it is defined" >&2;}
11905
11906  rm -f "$ac_tmp/stdin"
11907  case $ac_file in
11908  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11909  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11910  esac \
11911  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11912 ;;
11913  :H)
11914  #
11915  # CONFIG_HEADER
11916  #
11917  if test x"$ac_file" != x-; then
11918    {
11919      $as_echo "/* $configure_input  */" \
11920      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11921    } >"$ac_tmp/config.h" \
11922      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11923    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11924      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11925$as_echo "$as_me: $ac_file is unchanged" >&6;}
11926    else
11927      rm -f "$ac_file"
11928      mv "$ac_tmp/config.h" "$ac_file" \
11929	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11930    fi
11931  else
11932    $as_echo "/* $configure_input  */" \
11933      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11934      || as_fn_error $? "could not create -" "$LINENO" 5
11935  fi
11936# Compute "$ac_file"'s index in $config_headers.
11937_am_arg="$ac_file"
11938_am_stamp_count=1
11939for _am_header in $config_headers :; do
11940  case $_am_header in
11941    $_am_arg | $_am_arg:* )
11942      break ;;
11943    * )
11944      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11945  esac
11946done
11947echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11948$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11949	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11950	 X"$_am_arg" : 'X\(//\)$' \| \
11951	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11952$as_echo X"$_am_arg" |
11953    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11954	    s//\1/
11955	    q
11956	  }
11957	  /^X\(\/\/\)[^/].*/{
11958	    s//\1/
11959	    q
11960	  }
11961	  /^X\(\/\/\)$/{
11962	    s//\1/
11963	    q
11964	  }
11965	  /^X\(\/\).*/{
11966	    s//\1/
11967	    q
11968	  }
11969	  s/.*/./; q'`/stamp-h$_am_stamp_count
11970 ;;
11971
11972  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11973$as_echo "$as_me: executing $ac_file commands" >&6;}
11974 ;;
11975  esac
11976
11977
11978  case $ac_file$ac_mode in
11979    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11980  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11981  # are listed without --file.  Let's play safe and only enable the eval
11982  # if we detect the quoting.
11983  case $CONFIG_FILES in
11984  *\'*) eval set x "$CONFIG_FILES" ;;
11985  *)   set x $CONFIG_FILES ;;
11986  esac
11987  shift
11988  for mf
11989  do
11990    # Strip MF so we end up with the name of the file.
11991    mf=`echo "$mf" | sed -e 's/:.*$//'`
11992    # Check whether this is an Automake generated Makefile or not.
11993    # We used to match only the files named `Makefile.in', but
11994    # some people rename them; so instead we look at the file content.
11995    # Grep'ing the first line is not enough: some people post-process
11996    # each Makefile.in and add a new line on top of each file to say so.
11997    # Grep'ing the whole file is not good either: AIX grep has a line
11998    # limit of 2048, but all sed's we know have understand at least 4000.
11999    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12000      dirpart=`$as_dirname -- "$mf" ||
12001$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12002	 X"$mf" : 'X\(//\)[^/]' \| \
12003	 X"$mf" : 'X\(//\)$' \| \
12004	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12005$as_echo X"$mf" |
12006    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12007	    s//\1/
12008	    q
12009	  }
12010	  /^X\(\/\/\)[^/].*/{
12011	    s//\1/
12012	    q
12013	  }
12014	  /^X\(\/\/\)$/{
12015	    s//\1/
12016	    q
12017	  }
12018	  /^X\(\/\).*/{
12019	    s//\1/
12020	    q
12021	  }
12022	  s/.*/./; q'`
12023    else
12024      continue
12025    fi
12026    # Extract the definition of DEPDIR, am__include, and am__quote
12027    # from the Makefile without running `make'.
12028    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12029    test -z "$DEPDIR" && continue
12030    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12031    test -z "am__include" && continue
12032    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12033    # When using ansi2knr, U may be empty or an underscore; expand it
12034    U=`sed -n 's/^U = //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' -e 's/\$U/'"$U"'/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