configure revision c2535118
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for twm 1.0.8.
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='twm'
563PACKAGE_TARNAME='twm'
564PACKAGE_VERSION='1.0.8'
565PACKAGE_STRING='twm 1.0.8'
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
610TWM_LIBS
611TWM_CFLAGS
612LEXLIB
613LEX_OUTPUT_ROOT
614LEX
615YACC_INST
616YFLAGS
617YACC
618MAN_SUBSTS
619XORG_MAN_PAGE
620ADMIN_MAN_DIR
621DRIVER_MAN_DIR
622MISC_MAN_DIR
623FILE_MAN_DIR
624LIB_MAN_DIR
625APP_MAN_DIR
626ADMIN_MAN_SUFFIX
627DRIVER_MAN_SUFFIX
628MISC_MAN_SUFFIX
629FILE_MAN_SUFFIX
630LIB_MAN_SUFFIX
631APP_MAN_SUFFIX
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641INSTALL_CMD
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
650AM_BACKSLASH
651AM_DEFAULT_VERBOSITY
652AM_DEFAULT_V
653AM_V
654am__fastdepCC_FALSE
655am__fastdepCC_TRUE
656CCDEPMODE
657am__nodep
658AMDEPBACKSLASH
659AMDEP_FALSE
660AMDEP_TRUE
661am__quote
662am__include
663DEPDIR
664am__untar
665am__tar
666AMTAR
667am__leading_dot
668SET_MAKE
669AWK
670mkdir_p
671MKDIR_P
672INSTALL_STRIP_PROGRAM
673STRIP
674install_sh
675MAKEINFO
676AUTOHEADER
677AUTOMAKE
678AUTOCONF
679ACLOCAL
680VERSION
681PACKAGE
682CYGPATH_W
683am__isrc
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687EGREP
688GREP
689CPP
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files=''
736ac_user_opts='
737enable_option_checking
738enable_dependency_tracking
739enable_silent_rules
740enable_maintainer_mode
741enable_selective_werror
742enable_strict_compilation
743'
744      ac_precious_vars='build_alias
745host_alias
746target_alias
747CC
748CFLAGS
749LDFLAGS
750LIBS
751CPPFLAGS
752CPP
753PKG_CONFIG
754YACC
755YFLAGS
756TWM_CFLAGS
757TWM_LIBS'
758
759
760# Initialize some variables set by options.
761ac_init_help=
762ac_init_version=false
763ac_unrecognized_opts=
764ac_unrecognized_sep=
765# The variables have the same names as the options, with
766# dashes changed to underlines.
767cache_file=/dev/null
768exec_prefix=NONE
769no_create=
770no_recursion=
771prefix=NONE
772program_prefix=NONE
773program_suffix=NONE
774program_transform_name=s,x,x,
775silent=
776site=
777srcdir=
778verbose=
779x_includes=NONE
780x_libraries=NONE
781
782# Installation directory options.
783# These are left unexpanded so users can "make install exec_prefix=/foo"
784# and all the variables that are supposed to be based on exec_prefix
785# by default will actually change.
786# Use braces instead of parens because sh, perl, etc. also accept them.
787# (The list follows the same order as the GNU Coding Standards.)
788bindir='${exec_prefix}/bin'
789sbindir='${exec_prefix}/sbin'
790libexecdir='${exec_prefix}/libexec'
791datarootdir='${prefix}/share'
792datadir='${datarootdir}'
793sysconfdir='${prefix}/etc'
794sharedstatedir='${prefix}/com'
795localstatedir='${prefix}/var'
796includedir='${prefix}/include'
797oldincludedir='/usr/include'
798docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799infodir='${datarootdir}/info'
800htmldir='${docdir}'
801dvidir='${docdir}'
802pdfdir='${docdir}'
803psdir='${docdir}'
804libdir='${exec_prefix}/lib'
805localedir='${datarootdir}/locale'
806mandir='${datarootdir}/man'
807
808ac_prev=
809ac_dashdash=
810for ac_option
811do
812  # If the previous option needs an argument, assign it.
813  if test -n "$ac_prev"; then
814    eval $ac_prev=\$ac_option
815    ac_prev=
816    continue
817  fi
818
819  case $ac_option in
820  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821  *=)   ac_optarg= ;;
822  *)    ac_optarg=yes ;;
823  esac
824
825  # Accept the important Cygnus configure options, so we can diagnose typos.
826
827  case $ac_dashdash$ac_option in
828  --)
829    ac_dashdash=yes ;;
830
831  -bindir | --bindir | --bindi | --bind | --bin | --bi)
832    ac_prev=bindir ;;
833  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834    bindir=$ac_optarg ;;
835
836  -build | --build | --buil | --bui | --bu)
837    ac_prev=build_alias ;;
838  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839    build_alias=$ac_optarg ;;
840
841  -cache-file | --cache-file | --cache-fil | --cache-fi \
842  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843    ac_prev=cache_file ;;
844  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846    cache_file=$ac_optarg ;;
847
848  --config-cache | -C)
849    cache_file=config.cache ;;
850
851  -datadir | --datadir | --datadi | --datad)
852    ac_prev=datadir ;;
853  -datadir=* | --datadir=* | --datadi=* | --datad=*)
854    datadir=$ac_optarg ;;
855
856  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857  | --dataroo | --dataro | --datar)
858    ac_prev=datarootdir ;;
859  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861    datarootdir=$ac_optarg ;;
862
863  -disable-* | --disable-*)
864    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865    # Reject names that are not valid shell variable names.
866    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867      as_fn_error $? "invalid feature name: $ac_useropt"
868    ac_useropt_orig=$ac_useropt
869    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870    case $ac_user_opts in
871      *"
872"enable_$ac_useropt"
873"*) ;;
874      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875	 ac_unrecognized_sep=', ';;
876    esac
877    eval enable_$ac_useropt=no ;;
878
879  -docdir | --docdir | --docdi | --doc | --do)
880    ac_prev=docdir ;;
881  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882    docdir=$ac_optarg ;;
883
884  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885    ac_prev=dvidir ;;
886  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887    dvidir=$ac_optarg ;;
888
889  -enable-* | --enable-*)
890    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891    # Reject names that are not valid shell variable names.
892    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893      as_fn_error $? "invalid feature name: $ac_useropt"
894    ac_useropt_orig=$ac_useropt
895    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896    case $ac_user_opts in
897      *"
898"enable_$ac_useropt"
899"*) ;;
900      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901	 ac_unrecognized_sep=', ';;
902    esac
903    eval enable_$ac_useropt=\$ac_optarg ;;
904
905  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907  | --exec | --exe | --ex)
908    ac_prev=exec_prefix ;;
909  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911  | --exec=* | --exe=* | --ex=*)
912    exec_prefix=$ac_optarg ;;
913
914  -gas | --gas | --ga | --g)
915    # Obsolete; use --with-gas.
916    with_gas=yes ;;
917
918  -help | --help | --hel | --he | -h)
919    ac_init_help=long ;;
920  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921    ac_init_help=recursive ;;
922  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923    ac_init_help=short ;;
924
925  -host | --host | --hos | --ho)
926    ac_prev=host_alias ;;
927  -host=* | --host=* | --hos=* | --ho=*)
928    host_alias=$ac_optarg ;;
929
930  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931    ac_prev=htmldir ;;
932  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933  | --ht=*)
934    htmldir=$ac_optarg ;;
935
936  -includedir | --includedir | --includedi | --included | --include \
937  | --includ | --inclu | --incl | --inc)
938    ac_prev=includedir ;;
939  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940  | --includ=* | --inclu=* | --incl=* | --inc=*)
941    includedir=$ac_optarg ;;
942
943  -infodir | --infodir | --infodi | --infod | --info | --inf)
944    ac_prev=infodir ;;
945  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946    infodir=$ac_optarg ;;
947
948  -libdir | --libdir | --libdi | --libd)
949    ac_prev=libdir ;;
950  -libdir=* | --libdir=* | --libdi=* | --libd=*)
951    libdir=$ac_optarg ;;
952
953  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954  | --libexe | --libex | --libe)
955    ac_prev=libexecdir ;;
956  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957  | --libexe=* | --libex=* | --libe=*)
958    libexecdir=$ac_optarg ;;
959
960  -localedir | --localedir | --localedi | --localed | --locale)
961    ac_prev=localedir ;;
962  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963    localedir=$ac_optarg ;;
964
965  -localstatedir | --localstatedir | --localstatedi | --localstated \
966  | --localstate | --localstat | --localsta | --localst | --locals)
967    ac_prev=localstatedir ;;
968  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970    localstatedir=$ac_optarg ;;
971
972  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973    ac_prev=mandir ;;
974  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975    mandir=$ac_optarg ;;
976
977  -nfp | --nfp | --nf)
978    # Obsolete; use --without-fp.
979    with_fp=no ;;
980
981  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982  | --no-cr | --no-c | -n)
983    no_create=yes ;;
984
985  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987    no_recursion=yes ;;
988
989  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991  | --oldin | --oldi | --old | --ol | --o)
992    ac_prev=oldincludedir ;;
993  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996    oldincludedir=$ac_optarg ;;
997
998  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999    ac_prev=prefix ;;
1000  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001    prefix=$ac_optarg ;;
1002
1003  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004  | --program-pre | --program-pr | --program-p)
1005    ac_prev=program_prefix ;;
1006  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008    program_prefix=$ac_optarg ;;
1009
1010  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011  | --program-suf | --program-su | --program-s)
1012    ac_prev=program_suffix ;;
1013  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015    program_suffix=$ac_optarg ;;
1016
1017  -program-transform-name | --program-transform-name \
1018  | --program-transform-nam | --program-transform-na \
1019  | --program-transform-n | --program-transform- \
1020  | --program-transform | --program-transfor \
1021  | --program-transfo | --program-transf \
1022  | --program-trans | --program-tran \
1023  | --progr-tra | --program-tr | --program-t)
1024    ac_prev=program_transform_name ;;
1025  -program-transform-name=* | --program-transform-name=* \
1026  | --program-transform-nam=* | --program-transform-na=* \
1027  | --program-transform-n=* | --program-transform-=* \
1028  | --program-transform=* | --program-transfor=* \
1029  | --program-transfo=* | --program-transf=* \
1030  | --program-trans=* | --program-tran=* \
1031  | --progr-tra=* | --program-tr=* | --program-t=*)
1032    program_transform_name=$ac_optarg ;;
1033
1034  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035    ac_prev=pdfdir ;;
1036  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037    pdfdir=$ac_optarg ;;
1038
1039  -psdir | --psdir | --psdi | --psd | --ps)
1040    ac_prev=psdir ;;
1041  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042    psdir=$ac_optarg ;;
1043
1044  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045  | -silent | --silent | --silen | --sile | --sil)
1046    silent=yes ;;
1047
1048  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049    ac_prev=sbindir ;;
1050  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051  | --sbi=* | --sb=*)
1052    sbindir=$ac_optarg ;;
1053
1054  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056  | --sharedst | --shareds | --shared | --share | --shar \
1057  | --sha | --sh)
1058    ac_prev=sharedstatedir ;;
1059  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062  | --sha=* | --sh=*)
1063    sharedstatedir=$ac_optarg ;;
1064
1065  -site | --site | --sit)
1066    ac_prev=site ;;
1067  -site=* | --site=* | --sit=*)
1068    site=$ac_optarg ;;
1069
1070  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071    ac_prev=srcdir ;;
1072  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073    srcdir=$ac_optarg ;;
1074
1075  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076  | --syscon | --sysco | --sysc | --sys | --sy)
1077    ac_prev=sysconfdir ;;
1078  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080    sysconfdir=$ac_optarg ;;
1081
1082  -target | --target | --targe | --targ | --tar | --ta | --t)
1083    ac_prev=target_alias ;;
1084  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085    target_alias=$ac_optarg ;;
1086
1087  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088    verbose=yes ;;
1089
1090  -version | --version | --versio | --versi | --vers | -V)
1091    ac_init_version=: ;;
1092
1093  -with-* | --with-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error $? "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=\$ac_optarg ;;
1108
1109  -without-* | --without-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=no ;;
1124
1125  --x)
1126    # Obsolete; use --with-x.
1127    with_x=yes ;;
1128
1129  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130  | --x-incl | --x-inc | --x-in | --x-i)
1131    ac_prev=x_includes ;;
1132  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134    x_includes=$ac_optarg ;;
1135
1136  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138    ac_prev=x_libraries ;;
1139  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141    x_libraries=$ac_optarg ;;
1142
1143  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144Try \`$0 --help' for more information"
1145    ;;
1146
1147  *=*)
1148    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149    # Reject names that are not valid shell variable names.
1150    case $ac_envvar in #(
1151      '' | [0-9]* | *[!_$as_cr_alnum]* )
1152      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153    esac
1154    eval $ac_envvar=\$ac_optarg
1155    export $ac_envvar ;;
1156
1157  *)
1158    # FIXME: should be removed in autoconf 3.0.
1159    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163    ;;
1164
1165  esac
1166done
1167
1168if test -n "$ac_prev"; then
1169  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170  as_fn_error $? "missing argument to $ac_option"
1171fi
1172
1173if test -n "$ac_unrecognized_opts"; then
1174  case $enable_option_checking in
1175    no) ;;
1176    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178  esac
1179fi
1180
1181# Check all directory arguments for consistency.
1182for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183		datadir sysconfdir sharedstatedir localstatedir includedir \
1184		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185		libdir localedir mandir
1186do
1187  eval ac_val=\$$ac_var
1188  # Remove trailing slashes.
1189  case $ac_val in
1190    */ )
1191      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192      eval $ac_var=\$ac_val;;
1193  esac
1194  # Be sure to have absolute directory names.
1195  case $ac_val in
1196    [\\/$]* | ?:[\\/]* )  continue;;
1197    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198  esac
1199  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200done
1201
1202# There might be people who depend on the old broken behavior: `$host'
1203# used to hold the argument of --host etc.
1204# FIXME: To remove some day.
1205build=$build_alias
1206host=$host_alias
1207target=$target_alias
1208
1209# FIXME: To remove some day.
1210if test "x$host_alias" != x; then
1211  if test "x$build_alias" = x; then
1212    cross_compiling=maybe
1213    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214    If a cross compiler is detected then cross compile mode will be used" >&2
1215  elif test "x$build_alias" != "x$host_alias"; then
1216    cross_compiling=yes
1217  fi
1218fi
1219
1220ac_tool_prefix=
1221test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223test "$silent" = yes && exec 6>/dev/null
1224
1225
1226ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227ac_ls_di=`ls -di .` &&
1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229  as_fn_error $? "working directory cannot be determined"
1230test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231  as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234# Find the source files, if location was not specified.
1235if test -z "$srcdir"; then
1236  ac_srcdir_defaulted=yes
1237  # Try the directory containing this script, then the parent directory.
1238  ac_confdir=`$as_dirname -- "$as_myself" ||
1239$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240	 X"$as_myself" : 'X\(//\)[^/]' \| \
1241	 X"$as_myself" : 'X\(//\)$' \| \
1242	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243$as_echo X"$as_myself" |
1244    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\/\)[^/].*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  /^X\(\/\/\)$/{
1253	    s//\1/
1254	    q
1255	  }
1256	  /^X\(\/\).*/{
1257	    s//\1/
1258	    q
1259	  }
1260	  s/.*/./; q'`
1261  srcdir=$ac_confdir
1262  if test ! -r "$srcdir/$ac_unique_file"; then
1263    srcdir=..
1264  fi
1265else
1266  ac_srcdir_defaulted=no
1267fi
1268if test ! -r "$srcdir/$ac_unique_file"; then
1269  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271fi
1272ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273ac_abs_confdir=`(
1274	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275	pwd)`
1276# When building in place, set srcdir=.
1277if test "$ac_abs_confdir" = "$ac_pwd"; then
1278  srcdir=.
1279fi
1280# Remove unnecessary trailing slashes from srcdir.
1281# Double slashes in file names in object file debugging info
1282# mess up M-x gdb in Emacs.
1283case $srcdir in
1284*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285esac
1286for ac_var in $ac_precious_vars; do
1287  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288  eval ac_env_${ac_var}_value=\$${ac_var}
1289  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291done
1292
1293#
1294# Report the --help message.
1295#
1296if test "$ac_init_help" = "long"; then
1297  # Omit some internal or obsolete options to make the list less imposing.
1298  # This message is too long to be a string in the A/UX 3.1 sh.
1299  cat <<_ACEOF
1300\`configure' configures twm 1.0.8 to adapt to many kinds of systems.
1301
1302Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307Defaults for the options are specified in brackets.
1308
1309Configuration:
1310  -h, --help              display this help and exit
1311      --help=short        display options specific to this package
1312      --help=recursive    display the short help of all the included packages
1313  -V, --version           display version information and exit
1314  -q, --quiet, --silent   do not print \`checking ...' messages
1315      --cache-file=FILE   cache test results in FILE [disabled]
1316  -C, --config-cache      alias for \`--cache-file=config.cache'
1317  -n, --no-create         do not create output files
1318      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320Installation directories:
1321  --prefix=PREFIX         install architecture-independent files in PREFIX
1322                          [$ac_default_prefix]
1323  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                          [PREFIX]
1325
1326By default, \`make install' will install all the files in
1327\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329for instance \`--prefix=\$HOME'.
1330
1331For better control, use the options below.
1332
1333Fine tuning of the installation directories:
1334  --bindir=DIR            user executables [EPREFIX/bin]
1335  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336  --libexecdir=DIR        program executables [EPREFIX/libexec]
1337  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340  --libdir=DIR            object code libraries [EPREFIX/lib]
1341  --includedir=DIR        C header files [PREFIX/include]
1342  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345  --infodir=DIR           info documentation [DATAROOTDIR/info]
1346  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347  --mandir=DIR            man documentation [DATAROOTDIR/man]
1348  --docdir=DIR            documentation root [DATAROOTDIR/doc/twm]
1349  --htmldir=DIR           html documentation [DOCDIR]
1350  --dvidir=DIR            dvi documentation [DOCDIR]
1351  --pdfdir=DIR            pdf documentation [DOCDIR]
1352  --psdir=DIR             ps documentation [DOCDIR]
1353_ACEOF
1354
1355  cat <<\_ACEOF
1356
1357Program names:
1358  --program-prefix=PREFIX            prepend PREFIX to installed program names
1359  --program-suffix=SUFFIX            append SUFFIX to installed program names
1360  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361
1362System types:
1363  --build=BUILD     configure for building on BUILD [guessed]
1364  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365_ACEOF
1366fi
1367
1368if test -n "$ac_init_help"; then
1369  case $ac_init_help in
1370     short | recursive ) echo "Configuration of twm 1.0.8:";;
1371   esac
1372  cat <<\_ACEOF
1373
1374Optional Features:
1375  --disable-option-checking  ignore unrecognized --enable/--with options
1376  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378  --enable-dependency-tracking
1379                          do not reject slow dependency extractors
1380  --disable-dependency-tracking
1381                          speeds up one-time build
1382  --enable-silent-rules   less verbose build output (undo: "make V=1")
1383  --disable-silent-rules  verbose build output (undo: "make V=0")
1384  --enable-maintainer-mode
1385                          enable make rules and dependencies not useful (and
1386                          sometimes confusing) to the casual installer
1387  --disable-selective-werror
1388                          Turn off selective compiler errors. (default:
1389                          enabled)
1390  --enable-strict-compilation
1391                          Enable all warnings from compiler and make them
1392                          errors (default: disabled)
1393
1394Some influential environment variables:
1395  CC          C compiler command
1396  CFLAGS      C compiler flags
1397  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398              nonstandard directory <lib dir>
1399  LIBS        libraries to pass to the linker, e.g. -l<library>
1400  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401              you have headers in a nonstandard directory <include dir>
1402  CPP         C preprocessor
1403  PKG_CONFIG  path to pkg-config utility
1404  YACC        The `Yet Another Compiler Compiler' implementation to use.
1405              Defaults to the first program found out of: `bison -y', `byacc',
1406              `yacc'.
1407  YFLAGS      The list of arguments that will be passed by default to $YACC.
1408              This script will default YFLAGS to the empty string to avoid a
1409              default value of `-d' given by some make applications.
1410  TWM_CFLAGS  C compiler flags for TWM, overriding pkg-config
1411  TWM_LIBS    linker flags for TWM, overriding pkg-config
1412
1413Use these variables to override the choices made by `configure' or to help
1414it to find libraries and programs with nonstandard names/locations.
1415
1416Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1417_ACEOF
1418ac_status=$?
1419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422  # If there are subdirs, report their specific --help.
1423  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424    test -d "$ac_dir" ||
1425      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426      continue
1427    ac_builddir=.
1428
1429case "$ac_dir" in
1430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431*)
1432  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433  # A ".." for each directory in $ac_dir_suffix.
1434  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435  case $ac_top_builddir_sub in
1436  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438  esac ;;
1439esac
1440ac_abs_top_builddir=$ac_pwd
1441ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442# for backward compatibility:
1443ac_top_builddir=$ac_top_build_prefix
1444
1445case $srcdir in
1446  .)  # We are building in place.
1447    ac_srcdir=.
1448    ac_top_srcdir=$ac_top_builddir_sub
1449    ac_abs_top_srcdir=$ac_pwd ;;
1450  [\\/]* | ?:[\\/]* )  # Absolute name.
1451    ac_srcdir=$srcdir$ac_dir_suffix;
1452    ac_top_srcdir=$srcdir
1453    ac_abs_top_srcdir=$srcdir ;;
1454  *) # Relative name.
1455    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456    ac_top_srcdir=$ac_top_build_prefix$srcdir
1457    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458esac
1459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461    cd "$ac_dir" || { ac_status=$?; continue; }
1462    # Check for guested configure.
1463    if test -f "$ac_srcdir/configure.gnu"; then
1464      echo &&
1465      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466    elif test -f "$ac_srcdir/configure"; then
1467      echo &&
1468      $SHELL "$ac_srcdir/configure" --help=recursive
1469    else
1470      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471    fi || ac_status=$?
1472    cd "$ac_pwd" || { ac_status=$?; break; }
1473  done
1474fi
1475
1476test -n "$ac_init_help" && exit $ac_status
1477if $ac_init_version; then
1478  cat <<\_ACEOF
1479twm configure 1.0.8
1480generated by GNU Autoconf 2.68
1481
1482Copyright (C) 2010 Free Software Foundation, Inc.
1483This configure script is free software; the Free Software Foundation
1484gives unlimited permission to copy, distribute and modify it.
1485_ACEOF
1486  exit
1487fi
1488
1489## ------------------------ ##
1490## Autoconf initialization. ##
1491## ------------------------ ##
1492
1493# ac_fn_c_try_compile LINENO
1494# --------------------------
1495# Try to compile conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_compile ()
1497{
1498  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499  rm -f conftest.$ac_objext
1500  if { { ac_try="$ac_compile"
1501case "(($ac_try" in
1502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503  *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507  (eval "$ac_compile") 2>conftest.err
1508  ac_status=$?
1509  if test -s conftest.err; then
1510    grep -v '^ *+' conftest.err >conftest.er1
1511    cat conftest.er1 >&5
1512    mv -f conftest.er1 conftest.err
1513  fi
1514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515  test $ac_status = 0; } && {
1516	 test -z "$ac_c_werror_flag" ||
1517	 test ! -s conftest.err
1518       } && test -s conftest.$ac_objext; then :
1519  ac_retval=0
1520else
1521  $as_echo "$as_me: failed program was:" >&5
1522sed 's/^/| /' conftest.$ac_ext >&5
1523
1524	ac_retval=1
1525fi
1526  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527  as_fn_set_status $ac_retval
1528
1529} # ac_fn_c_try_compile
1530
1531# ac_fn_c_try_cpp LINENO
1532# ----------------------
1533# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1534ac_fn_c_try_cpp ()
1535{
1536  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537  if { { ac_try="$ac_cpp conftest.$ac_ext"
1538case "(($ac_try" in
1539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540  *) ac_try_echo=$ac_try;;
1541esac
1542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543$as_echo "$ac_try_echo"; } >&5
1544  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1545  ac_status=$?
1546  if test -s conftest.err; then
1547    grep -v '^ *+' conftest.err >conftest.er1
1548    cat conftest.er1 >&5
1549    mv -f conftest.er1 conftest.err
1550  fi
1551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552  test $ac_status = 0; } > conftest.i && {
1553	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1554	 test ! -s conftest.err
1555       }; then :
1556  ac_retval=0
1557else
1558  $as_echo "$as_me: failed program was:" >&5
1559sed 's/^/| /' conftest.$ac_ext >&5
1560
1561    ac_retval=1
1562fi
1563  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564  as_fn_set_status $ac_retval
1565
1566} # ac_fn_c_try_cpp
1567
1568# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1569# -------------------------------------------------------
1570# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1571# the include files in INCLUDES and setting the cache variable VAR
1572# accordingly.
1573ac_fn_c_check_header_mongrel ()
1574{
1575  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576  if eval \${$3+:} false; then :
1577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1578$as_echo_n "checking for $2... " >&6; }
1579if eval \${$3+:} false; then :
1580  $as_echo_n "(cached) " >&6
1581fi
1582eval ac_res=\$$3
1583	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1584$as_echo "$ac_res" >&6; }
1585else
1586  # Is the header compilable?
1587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1588$as_echo_n "checking $2 usability... " >&6; }
1589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1590/* end confdefs.h.  */
1591$4
1592#include <$2>
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595  ac_header_compiler=yes
1596else
1597  ac_header_compiler=no
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1601$as_echo "$ac_header_compiler" >&6; }
1602
1603# Is the header present?
1604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1605$as_echo_n "checking $2 presence... " >&6; }
1606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h.  */
1608#include <$2>
1609_ACEOF
1610if ac_fn_c_try_cpp "$LINENO"; then :
1611  ac_header_preproc=yes
1612else
1613  ac_header_preproc=no
1614fi
1615rm -f conftest.err conftest.i conftest.$ac_ext
1616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1617$as_echo "$ac_header_preproc" >&6; }
1618
1619# So?  What about this header?
1620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1621  yes:no: )
1622    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1623$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1625$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626    ;;
1627  no:yes:* )
1628    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1629$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1630    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1631$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1632    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1633$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1634    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1635$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1636    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1637$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1638( $as_echo "## ---------------------------------------------------------------------- ##
1639## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1640## ---------------------------------------------------------------------- ##"
1641     ) | sed "s/^/$as_me: WARNING:     /" >&2
1642    ;;
1643esac
1644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645$as_echo_n "checking for $2... " >&6; }
1646if eval \${$3+:} false; then :
1647  $as_echo_n "(cached) " >&6
1648else
1649  eval "$3=\$ac_header_compiler"
1650fi
1651eval ac_res=\$$3
1652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654fi
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_header_mongrel
1658
1659# ac_fn_c_try_run LINENO
1660# ----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662# that executables *can* be run.
1663ac_fn_c_try_run ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669  *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673  (eval "$ac_link") 2>&5
1674  ac_status=$?
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677  { { case "(($ac_try" in
1678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679  *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683  (eval "$ac_try") 2>&5
1684  ac_status=$?
1685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686  test $ac_status = 0; }; }; then :
1687  ac_retval=0
1688else
1689  $as_echo "$as_me: program exited with status $ac_status" >&5
1690       $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693       ac_retval=$ac_status
1694fi
1695  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_run
1700
1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702# -------------------------------------------------------
1703# Tests whether HEADER exists and can be compiled using the include files in
1704# INCLUDES, setting the cache variable VAR accordingly.
1705ac_fn_c_check_header_compile ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if eval \${$3+:} false; then :
1711  $as_echo_n "(cached) " >&6
1712else
1713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714/* end confdefs.h.  */
1715$4
1716#include <$2>
1717_ACEOF
1718if ac_fn_c_try_compile "$LINENO"; then :
1719  eval "$3=yes"
1720else
1721  eval "$3=no"
1722fi
1723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724fi
1725eval ac_res=\$$3
1726	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730} # ac_fn_c_check_header_compile
1731
1732# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1733# ---------------------------------------------
1734# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1735# accordingly.
1736ac_fn_c_check_decl ()
1737{
1738  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739  as_decl_name=`echo $2|sed 's/ *(.*//'`
1740  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1742$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1743if eval \${$3+:} false; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749int
1750main ()
1751{
1752#ifndef $as_decl_name
1753#ifdef __cplusplus
1754  (void) $as_decl_use;
1755#else
1756  (void) $as_decl_name;
1757#endif
1758#endif
1759
1760  ;
1761  return 0;
1762}
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765  eval "$3=yes"
1766else
1767  eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_decl
1777
1778# ac_fn_c_try_link LINENO
1779# -----------------------
1780# Try to link conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_link ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  rm -f conftest.$ac_objext conftest$ac_exeext
1785  if { { ac_try="$ac_link"
1786case "(($ac_try" in
1787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788  *) ac_try_echo=$ac_try;;
1789esac
1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791$as_echo "$ac_try_echo"; } >&5
1792  (eval "$ac_link") 2>conftest.err
1793  ac_status=$?
1794  if test -s conftest.err; then
1795    grep -v '^ *+' conftest.err >conftest.er1
1796    cat conftest.er1 >&5
1797    mv -f conftest.er1 conftest.err
1798  fi
1799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800  test $ac_status = 0; } && {
1801	 test -z "$ac_c_werror_flag" ||
1802	 test ! -s conftest.err
1803       } && test -s conftest$ac_exeext && {
1804	 test "$cross_compiling" = yes ||
1805	 $as_test_x conftest$ac_exeext
1806       }; then :
1807  ac_retval=0
1808else
1809  $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812	ac_retval=1
1813fi
1814  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1815  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1816  # interfere with the next link command; also delete a directory that is
1817  # left behind by Apple's compiler.  We do this before executing the actions.
1818  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820  as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_link
1823
1824# ac_fn_c_check_func LINENO FUNC VAR
1825# ----------------------------------
1826# Tests whether FUNC exists, setting the cache variable VAR accordingly
1827ac_fn_c_check_func ()
1828{
1829  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if eval \${$3+:} false; then :
1833  $as_echo_n "(cached) " >&6
1834else
1835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h.  */
1837/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1839#define $2 innocuous_$2
1840
1841/* System header to define __stub macros and hopefully few prototypes,
1842    which can conflict with char $2 (); below.
1843    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844    <limits.h> exists even on freestanding compilers.  */
1845
1846#ifdef __STDC__
1847# include <limits.h>
1848#else
1849# include <assert.h>
1850#endif
1851
1852#undef $2
1853
1854/* Override any GCC internal prototype to avoid an error.
1855   Use char because int might match the return type of a GCC
1856   builtin and then its argument prototype would still apply.  */
1857#ifdef __cplusplus
1858extern "C"
1859#endif
1860char $2 ();
1861/* The GNU C library defines this for functions which it implements
1862    to always fail with ENOSYS.  Some functions are actually named
1863    something starting with __ and the normal name is an alias.  */
1864#if defined __stub_$2 || defined __stub___$2
1865choke me
1866#endif
1867
1868int
1869main ()
1870{
1871return $2 ();
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_link "$LINENO"; then :
1877  eval "$3=yes"
1878else
1879  eval "$3=no"
1880fi
1881rm -f core conftest.err conftest.$ac_objext \
1882    conftest$ac_exeext conftest.$ac_ext
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} # ac_fn_c_check_func
1890cat >config.log <<_ACEOF
1891This file contains any messages produced by compilers while
1892running configure, to aid debugging if configure makes a mistake.
1893
1894It was created by twm $as_me 1.0.8, which was
1895generated by GNU Autoconf 2.68.  Invocation command line was
1896
1897  $ $0 $@
1898
1899_ACEOF
1900exec 5>>config.log
1901{
1902cat <<_ASUNAME
1903## --------- ##
1904## Platform. ##
1905## --------- ##
1906
1907hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1908uname -m = `(uname -m) 2>/dev/null || echo unknown`
1909uname -r = `(uname -r) 2>/dev/null || echo unknown`
1910uname -s = `(uname -s) 2>/dev/null || echo unknown`
1911uname -v = `(uname -v) 2>/dev/null || echo unknown`
1912
1913/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1914/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1915
1916/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1917/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1918/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1919/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1920/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1921/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1922/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1923
1924_ASUNAME
1925
1926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927for as_dir in $PATH
1928do
1929  IFS=$as_save_IFS
1930  test -z "$as_dir" && as_dir=.
1931    $as_echo "PATH: $as_dir"
1932  done
1933IFS=$as_save_IFS
1934
1935} >&5
1936
1937cat >&5 <<_ACEOF
1938
1939
1940## ----------- ##
1941## Core tests. ##
1942## ----------- ##
1943
1944_ACEOF
1945
1946
1947# Keep a trace of the command line.
1948# Strip out --no-create and --no-recursion so they do not pile up.
1949# Strip out --silent because we don't want to record it for future runs.
1950# Also quote any args containing shell meta-characters.
1951# Make two passes to allow for proper duplicate-argument suppression.
1952ac_configure_args=
1953ac_configure_args0=
1954ac_configure_args1=
1955ac_must_keep_next=false
1956for ac_pass in 1 2
1957do
1958  for ac_arg
1959  do
1960    case $ac_arg in
1961    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1962    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1963    | -silent | --silent | --silen | --sile | --sil)
1964      continue ;;
1965    *\'*)
1966      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967    esac
1968    case $ac_pass in
1969    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1970    2)
1971      as_fn_append ac_configure_args1 " '$ac_arg'"
1972      if test $ac_must_keep_next = true; then
1973	ac_must_keep_next=false # Got value, back to normal.
1974      else
1975	case $ac_arg in
1976	  *=* | --config-cache | -C | -disable-* | --disable-* \
1977	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1978	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1979	  | -with-* | --with-* | -without-* | --without-* | --x)
1980	    case "$ac_configure_args0 " in
1981	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982	    esac
1983	    ;;
1984	  -* ) ac_must_keep_next=true ;;
1985	esac
1986      fi
1987      as_fn_append ac_configure_args " '$ac_arg'"
1988      ;;
1989    esac
1990  done
1991done
1992{ ac_configure_args0=; unset ac_configure_args0;}
1993{ ac_configure_args1=; unset ac_configure_args1;}
1994
1995# When interrupted or exit'd, cleanup temporary files, and complete
1996# config.log.  We remove comments because anyway the quotes in there
1997# would cause problems or look ugly.
1998# WARNING: Use '\'' to represent an apostrophe within the trap.
1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2000trap 'exit_status=$?
2001  # Save into config.log some information that might help in debugging.
2002  {
2003    echo
2004
2005    $as_echo "## ---------------- ##
2006## Cache variables. ##
2007## ---------------- ##"
2008    echo
2009    # The following way of writing the cache mishandles newlines in values,
2010(
2011  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012    eval ac_val=\$$ac_var
2013    case $ac_val in #(
2014    *${as_nl}*)
2015      case $ac_var in #(
2016      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018      esac
2019      case $ac_var in #(
2020      _ | IFS | as_nl) ;; #(
2021      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022      *) { eval $ac_var=; unset $ac_var;} ;;
2023      esac ;;
2024    esac
2025  done
2026  (set) 2>&1 |
2027    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028    *${as_nl}ac_space=\ *)
2029      sed -n \
2030	"s/'\''/'\''\\\\'\'''\''/g;
2031	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032      ;; #(
2033    *)
2034      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2035      ;;
2036    esac |
2037    sort
2038)
2039    echo
2040
2041    $as_echo "## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##"
2044    echo
2045    for ac_var in $ac_subst_vars
2046    do
2047      eval ac_val=\$$ac_var
2048      case $ac_val in
2049      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050      esac
2051      $as_echo "$ac_var='\''$ac_val'\''"
2052    done | sort
2053    echo
2054
2055    if test -n "$ac_subst_files"; then
2056      $as_echo "## ------------------- ##
2057## File substitutions. ##
2058## ------------------- ##"
2059      echo
2060      for ac_var in $ac_subst_files
2061      do
2062	eval ac_val=\$$ac_var
2063	case $ac_val in
2064	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065	esac
2066	$as_echo "$ac_var='\''$ac_val'\''"
2067      done | sort
2068      echo
2069    fi
2070
2071    if test -s confdefs.h; then
2072      $as_echo "## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##"
2075      echo
2076      cat confdefs.h
2077      echo
2078    fi
2079    test "$ac_signal" != 0 &&
2080      $as_echo "$as_me: caught signal $ac_signal"
2081    $as_echo "$as_me: exit $exit_status"
2082  } >&5
2083  rm -f core *.core core.conftest.* &&
2084    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085    exit $exit_status
2086' 0
2087for ac_signal in 1 2 13 15; do
2088  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089done
2090ac_signal=0
2091
2092# confdefs.h avoids OS command line length limits that DEFS can exceed.
2093rm -f -r conftest* confdefs.h
2094
2095$as_echo "/* confdefs.h */" > confdefs.h
2096
2097# Predefined preprocessor variables.
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_NAME "$PACKAGE_NAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_VERSION "$PACKAGE_VERSION"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_STRING "$PACKAGE_STRING"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117_ACEOF
2118
2119cat >>confdefs.h <<_ACEOF
2120#define PACKAGE_URL "$PACKAGE_URL"
2121_ACEOF
2122
2123
2124# Let the site file select an alternate cache file if it wants to.
2125# Prefer an explicitly selected file to automatically selected ones.
2126ac_site_file1=NONE
2127ac_site_file2=NONE
2128if test -n "$CONFIG_SITE"; then
2129  # We do not want a PATH search for config.site.
2130  case $CONFIG_SITE in #((
2131    -*)  ac_site_file1=./$CONFIG_SITE;;
2132    */*) ac_site_file1=$CONFIG_SITE;;
2133    *)   ac_site_file1=./$CONFIG_SITE;;
2134  esac
2135elif test "x$prefix" != xNONE; then
2136  ac_site_file1=$prefix/share/config.site
2137  ac_site_file2=$prefix/etc/config.site
2138else
2139  ac_site_file1=$ac_default_prefix/share/config.site
2140  ac_site_file2=$ac_default_prefix/etc/config.site
2141fi
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144  test "x$ac_site_file" = xNONE && continue
2145  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2146    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2148    sed 's/^/| /' "$ac_site_file" >&5
2149    . "$ac_site_file" \
2150      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152as_fn_error $? "failed to load site script $ac_site_file
2153See \`config.log' for more details" "$LINENO" 5; }
2154  fi
2155done
2156
2157if test -r "$cache_file"; then
2158  # Some versions of bash will fail to source /dev/null (special files
2159  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2160  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2161    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162$as_echo "$as_me: loading cache $cache_file" >&6;}
2163    case $cache_file in
2164      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165      *)                      . "./$cache_file";;
2166    esac
2167  fi
2168else
2169  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
2171  >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
2177for ac_var in $ac_precious_vars; do
2178  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179  eval ac_new_set=\$ac_env_${ac_var}_set
2180  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181  eval ac_new_val=\$ac_env_${ac_var}_value
2182  case $ac_old_set,$ac_new_set in
2183    set,)
2184      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2186      ac_cache_corrupted=: ;;
2187    ,set)
2188      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2190      ac_cache_corrupted=: ;;
2191    ,);;
2192    *)
2193      if test "x$ac_old_val" != "x$ac_new_val"; then
2194	# differences in whitespace do not lead to failure.
2195	ac_old_val_w=`echo x $ac_old_val`
2196	ac_new_val_w=`echo x $ac_new_val`
2197	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200	  ac_cache_corrupted=:
2201	else
2202	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204	  eval $ac_var=\$ac_old_val
2205	fi
2206	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2207$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2208	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2209$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2210      fi;;
2211  esac
2212  # Pass precious variables to config.status.
2213  if test "$ac_new_set" = set; then
2214    case $ac_new_val in
2215    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2216    *) ac_arg=$ac_var=$ac_new_val ;;
2217    esac
2218    case " $ac_configure_args " in
2219      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2220      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221    esac
2222  fi
2223done
2224if $ac_cache_corrupted; then
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2230fi
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
2234
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
2241
2242
2243ac_config_headers="$ac_config_headers config.h"
2244
2245# expand $ac_aux_dir to an absolute path
2246am_aux_dir=`cd $ac_aux_dir && pwd`
2247
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253if test -n "$ac_tool_prefix"; then
2254  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2255set dummy ${ac_tool_prefix}gcc; ac_word=$2
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if ${ac_cv_prog_CC+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  if test -n "$CC"; then
2262  ac_cv_prog_CC="$CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269    for ac_exec_ext in '' $ac_executable_extensions; do
2270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276  done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281CC=$ac_cv_prog_CC
2282if test -n "$CC"; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2284$as_echo "$CC" >&6; }
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290
2291fi
2292if test -z "$ac_cv_prog_CC"; then
2293  ac_ct_CC=$CC
2294  # Extract the first word of "gcc", so it can be a program name with args.
2295set dummy gcc; ac_word=$2
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297$as_echo_n "checking for $ac_word... " >&6; }
2298if ${ac_cv_prog_ac_ct_CC+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300else
2301  if test -n "$ac_ct_CC"; then
2302  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309    for ac_exec_ext in '' $ac_executable_extensions; do
2310  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2311    ac_cv_prog_ac_ct_CC="gcc"
2312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313    break 2
2314  fi
2315done
2316  done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321ac_ct_CC=$ac_cv_prog_ac_ct_CC
2322if test -n "$ac_ct_CC"; then
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2324$as_echo "$ac_ct_CC" >&6; }
2325else
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327$as_echo "no" >&6; }
2328fi
2329
2330  if test "x$ac_ct_CC" = x; then
2331    CC=""
2332  else
2333    case $cross_compiling:$ac_tool_warned in
2334yes:)
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2337ac_tool_warned=yes ;;
2338esac
2339    CC=$ac_ct_CC
2340  fi
2341else
2342  CC="$ac_cv_prog_CC"
2343fi
2344
2345if test -z "$CC"; then
2346          if test -n "$ac_tool_prefix"; then
2347    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2348set dummy ${ac_tool_prefix}cc; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if ${ac_cv_prog_CC+:} false; then :
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$CC"; then
2355  ac_cv_prog_CC="$CC" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362    for ac_exec_ext in '' $ac_executable_extensions; do
2363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364    ac_cv_prog_CC="${ac_tool_prefix}cc"
2365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369  done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2377$as_echo "$CC" >&6; }
2378else
2379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383
2384  fi
2385fi
2386if test -z "$CC"; then
2387  # Extract the first word of "cc", so it can be a program name with args.
2388set dummy cc; ac_word=$2
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390$as_echo_n "checking for $ac_word... " >&6; }
2391if ${ac_cv_prog_CC+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  if test -n "$CC"; then
2395  ac_cv_prog_CC="$CC" # Let the user override the test.
2396else
2397  ac_prog_rejected=no
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403    for ac_exec_ext in '' $ac_executable_extensions; do
2404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2406       ac_prog_rejected=yes
2407       continue
2408     fi
2409    ac_cv_prog_CC="cc"
2410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2411    break 2
2412  fi
2413done
2414  done
2415IFS=$as_save_IFS
2416
2417if test $ac_prog_rejected = yes; then
2418  # We found a bogon in the path, so make sure we never use it.
2419  set dummy $ac_cv_prog_CC
2420  shift
2421  if test $# != 0; then
2422    # We chose a different compiler from the bogus one.
2423    # However, it has the same basename, so the bogon will be chosen
2424    # first if we set CC to just the basename; use the full file name.
2425    shift
2426    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2427  fi
2428fi
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
2433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2434$as_echo "$CC" >&6; }
2435else
2436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2437$as_echo "no" >&6; }
2438fi
2439
2440
2441fi
2442if test -z "$CC"; then
2443  if test -n "$ac_tool_prefix"; then
2444  for ac_prog in cl.exe
2445  do
2446    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449$as_echo_n "checking for $ac_word... " >&6; }
2450if ${ac_cv_prog_CC+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  if test -n "$CC"; then
2454  ac_cv_prog_CC="$CC" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461    for ac_exec_ext in '' $ac_executable_extensions; do
2462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2463    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2465    break 2
2466  fi
2467done
2468  done
2469IFS=$as_save_IFS
2470
2471fi
2472fi
2473CC=$ac_cv_prog_CC
2474if test -n "$CC"; then
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2476$as_echo "$CC" >&6; }
2477else
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2479$as_echo "no" >&6; }
2480fi
2481
2482
2483    test -n "$CC" && break
2484  done
2485fi
2486if test -z "$CC"; then
2487  ac_ct_CC=$CC
2488  for ac_prog in cl.exe
2489do
2490  # Extract the first word of "$ac_prog", so it can be a program name with args.
2491set dummy $ac_prog; ac_word=$2
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493$as_echo_n "checking for $ac_word... " >&6; }
2494if ${ac_cv_prog_ac_ct_CC+:} false; then :
2495  $as_echo_n "(cached) " >&6
2496else
2497  if test -n "$ac_ct_CC"; then
2498  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2499else
2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501for as_dir in $PATH
2502do
2503  IFS=$as_save_IFS
2504  test -z "$as_dir" && as_dir=.
2505    for ac_exec_ext in '' $ac_executable_extensions; do
2506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507    ac_cv_prog_ac_ct_CC="$ac_prog"
2508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509    break 2
2510  fi
2511done
2512  done
2513IFS=$as_save_IFS
2514
2515fi
2516fi
2517ac_ct_CC=$ac_cv_prog_ac_ct_CC
2518if test -n "$ac_ct_CC"; then
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2520$as_echo "$ac_ct_CC" >&6; }
2521else
2522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523$as_echo "no" >&6; }
2524fi
2525
2526
2527  test -n "$ac_ct_CC" && break
2528done
2529
2530  if test "x$ac_ct_CC" = x; then
2531    CC=""
2532  else
2533    case $cross_compiling:$ac_tool_warned in
2534yes:)
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2537ac_tool_warned=yes ;;
2538esac
2539    CC=$ac_ct_CC
2540  fi
2541fi
2542
2543fi
2544
2545
2546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548as_fn_error $? "no acceptable C compiler found in \$PATH
2549See \`config.log' for more details" "$LINENO" 5; }
2550
2551# Provide some information about the compiler.
2552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2553set X $ac_compile
2554ac_compiler=$2
2555for ac_option in --version -v -V -qversion; do
2556  { { ac_try="$ac_compiler $ac_option >&5"
2557case "(($ac_try" in
2558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559  *) ac_try_echo=$ac_try;;
2560esac
2561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562$as_echo "$ac_try_echo"; } >&5
2563  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2564  ac_status=$?
2565  if test -s conftest.err; then
2566    sed '10a\
2567... rest of stderr output deleted ...
2568         10q' conftest.err >conftest.er1
2569    cat conftest.er1 >&5
2570  fi
2571  rm -f conftest.er1 conftest.err
2572  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573  test $ac_status = 0; }
2574done
2575
2576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577/* end confdefs.h.  */
2578
2579int
2580main ()
2581{
2582
2583  ;
2584  return 0;
2585}
2586_ACEOF
2587ac_clean_files_save=$ac_clean_files
2588ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2589# Try to create an executable without -o first, disregard a.out.
2590# It will help us diagnose broken compilers, and finding out an intuition
2591# of exeext.
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2593$as_echo_n "checking whether the C compiler works... " >&6; }
2594ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2595
2596# The possible output files:
2597ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2598
2599ac_rmfiles=
2600for ac_file in $ac_files
2601do
2602  case $ac_file in
2603    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2604    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2605  esac
2606done
2607rm -f $ac_rmfiles
2608
2609if { { ac_try="$ac_link_default"
2610case "(($ac_try" in
2611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612  *) ac_try_echo=$ac_try;;
2613esac
2614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2615$as_echo "$ac_try_echo"; } >&5
2616  (eval "$ac_link_default") 2>&5
2617  ac_status=$?
2618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2619  test $ac_status = 0; }; then :
2620  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2621# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2622# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2623# so that the user can short-circuit this test for compilers unknown to
2624# Autoconf.
2625for ac_file in $ac_files ''
2626do
2627  test -f "$ac_file" || continue
2628  case $ac_file in
2629    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2630	;;
2631    [ab].out )
2632	# We found the default executable, but exeext='' is most
2633	# certainly right.
2634	break;;
2635    *.* )
2636	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2637	then :; else
2638	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639	fi
2640	# We set ac_cv_exeext here because the later test for it is not
2641	# safe: cross compilers may not add the suffix if given an `-o'
2642	# argument, so we may need to know it at that point already.
2643	# Even if this section looks crufty: it has the advantage of
2644	# actually working.
2645	break;;
2646    * )
2647	break;;
2648  esac
2649done
2650test "$ac_cv_exeext" = no && ac_cv_exeext=
2651
2652else
2653  ac_file=''
2654fi
2655if test -z "$ac_file"; then :
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657$as_echo "no" >&6; }
2658$as_echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2663as_fn_error 77 "C compiler cannot create executables
2664See \`config.log' for more details" "$LINENO" 5; }
2665else
2666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667$as_echo "yes" >&6; }
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2670$as_echo_n "checking for C compiler default output file name... " >&6; }
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2672$as_echo "$ac_file" >&6; }
2673ac_exeext=$ac_cv_exeext
2674
2675rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2676ac_clean_files=$ac_clean_files_save
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2678$as_echo_n "checking for suffix of executables... " >&6; }
2679if { { ac_try="$ac_link"
2680case "(($ac_try" in
2681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682  *) ac_try_echo=$ac_try;;
2683esac
2684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685$as_echo "$ac_try_echo"; } >&5
2686  (eval "$ac_link") 2>&5
2687  ac_status=$?
2688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689  test $ac_status = 0; }; then :
2690  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2691# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2692# work properly (i.e., refer to `conftest.exe'), while it won't with
2693# `rm'.
2694for ac_file in conftest.exe conftest conftest.*; do
2695  test -f "$ac_file" || continue
2696  case $ac_file in
2697    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2698    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2699	  break;;
2700    * ) break;;
2701  esac
2702done
2703else
2704  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2707See \`config.log' for more details" "$LINENO" 5; }
2708fi
2709rm -f conftest conftest$ac_cv_exeext
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2711$as_echo "$ac_cv_exeext" >&6; }
2712
2713rm -f conftest.$ac_ext
2714EXEEXT=$ac_cv_exeext
2715ac_exeext=$EXEEXT
2716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717/* end confdefs.h.  */
2718#include <stdio.h>
2719int
2720main ()
2721{
2722FILE *f = fopen ("conftest.out", "w");
2723 return ferror (f) || fclose (f) != 0;
2724
2725  ;
2726  return 0;
2727}
2728_ACEOF
2729ac_clean_files="$ac_clean_files conftest.out"
2730# Check that the compiler produces executables we can run.  If not, either
2731# the compiler is broken, or we cross compile.
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2733$as_echo_n "checking whether we are cross compiling... " >&6; }
2734if test "$cross_compiling" != yes; then
2735  { { ac_try="$ac_link"
2736case "(($ac_try" in
2737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738  *) ac_try_echo=$ac_try;;
2739esac
2740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2741$as_echo "$ac_try_echo"; } >&5
2742  (eval "$ac_link") 2>&5
2743  ac_status=$?
2744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2745  test $ac_status = 0; }
2746  if { ac_try='./conftest$ac_cv_exeext'
2747  { { case "(($ac_try" in
2748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749  *) ac_try_echo=$ac_try;;
2750esac
2751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752$as_echo "$ac_try_echo"; } >&5
2753  (eval "$ac_try") 2>&5
2754  ac_status=$?
2755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756  test $ac_status = 0; }; }; then
2757    cross_compiling=no
2758  else
2759    if test "$cross_compiling" = maybe; then
2760	cross_compiling=yes
2761    else
2762	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2764as_fn_error $? "cannot run C compiled programs.
2765If you meant to cross compile, use \`--host'.
2766See \`config.log' for more details" "$LINENO" 5; }
2767    fi
2768  fi
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2771$as_echo "$cross_compiling" >&6; }
2772
2773rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2774ac_clean_files=$ac_clean_files_save
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2776$as_echo_n "checking for suffix of object files... " >&6; }
2777if ${ac_cv_objext+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781/* end confdefs.h.  */
2782
2783int
2784main ()
2785{
2786
2787  ;
2788  return 0;
2789}
2790_ACEOF
2791rm -f conftest.o conftest.obj
2792if { { ac_try="$ac_compile"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2798$as_echo "$ac_try_echo"; } >&5
2799  (eval "$ac_compile") 2>&5
2800  ac_status=$?
2801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2802  test $ac_status = 0; }; then :
2803  for ac_file in conftest.o conftest.obj conftest.*; do
2804  test -f "$ac_file" || continue;
2805  case $ac_file in
2806    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2807    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808       break;;
2809  esac
2810done
2811else
2812  $as_echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817as_fn_error $? "cannot compute suffix of object files: cannot compile
2818See \`config.log' for more details" "$LINENO" 5; }
2819fi
2820rm -f conftest.$ac_cv_objext conftest.$ac_ext
2821fi
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2823$as_echo "$ac_cv_objext" >&6; }
2824OBJEXT=$ac_cv_objext
2825ac_objext=$OBJEXT
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2827$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2828if ${ac_cv_c_compiler_gnu+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h.  */
2833
2834int
2835main ()
2836{
2837#ifndef __GNUC__
2838       choke me
2839#endif
2840
2841  ;
2842  return 0;
2843}
2844_ACEOF
2845if ac_fn_c_try_compile "$LINENO"; then :
2846  ac_compiler_gnu=yes
2847else
2848  ac_compiler_gnu=no
2849fi
2850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852
2853fi
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2855$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2856if test $ac_compiler_gnu = yes; then
2857  GCC=yes
2858else
2859  GCC=
2860fi
2861ac_test_CFLAGS=${CFLAGS+set}
2862ac_save_CFLAGS=$CFLAGS
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2864$as_echo_n "checking whether $CC accepts -g... " >&6; }
2865if ${ac_cv_prog_cc_g+:} false; then :
2866  $as_echo_n "(cached) " >&6
2867else
2868  ac_save_c_werror_flag=$ac_c_werror_flag
2869   ac_c_werror_flag=yes
2870   ac_cv_prog_cc_g=no
2871   CFLAGS="-g"
2872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h.  */
2874
2875int
2876main ()
2877{
2878
2879  ;
2880  return 0;
2881}
2882_ACEOF
2883if ac_fn_c_try_compile "$LINENO"; then :
2884  ac_cv_prog_cc_g=yes
2885else
2886  CFLAGS=""
2887      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898if ac_fn_c_try_compile "$LINENO"; then :
2899
2900else
2901  ac_c_werror_flag=$ac_save_c_werror_flag
2902	 CFLAGS="-g"
2903	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904/* end confdefs.h.  */
2905
2906int
2907main ()
2908{
2909
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914if ac_fn_c_try_compile "$LINENO"; then :
2915  ac_cv_prog_cc_g=yes
2916fi
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918fi
2919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920fi
2921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922   ac_c_werror_flag=$ac_save_c_werror_flag
2923fi
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2925$as_echo "$ac_cv_prog_cc_g" >&6; }
2926if test "$ac_test_CFLAGS" = set; then
2927  CFLAGS=$ac_save_CFLAGS
2928elif test $ac_cv_prog_cc_g = yes; then
2929  if test "$GCC" = yes; then
2930    CFLAGS="-g -O2"
2931  else
2932    CFLAGS="-g"
2933  fi
2934else
2935  if test "$GCC" = yes; then
2936    CFLAGS="-O2"
2937  else
2938    CFLAGS=
2939  fi
2940fi
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2942$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2943if ${ac_cv_prog_cc_c89+:} false; then :
2944  $as_echo_n "(cached) " >&6
2945else
2946  ac_cv_prog_cc_c89=no
2947ac_save_CC=$CC
2948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h.  */
2950#include <stdarg.h>
2951#include <stdio.h>
2952#include <sys/types.h>
2953#include <sys/stat.h>
2954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2955struct buf { int x; };
2956FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957static char *e (p, i)
2958     char **p;
2959     int i;
2960{
2961  return p[i];
2962}
2963static char *f (char * (*g) (char **, int), char **p, ...)
2964{
2965  char *s;
2966  va_list v;
2967  va_start (v,p);
2968  s = g (p, va_arg (v,int));
2969  va_end (v);
2970  return s;
2971}
2972
2973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2974   function prototypes and stuff, but not '\xHH' hex character constants.
2975   These don't provoke an error unfortunately, instead are silently treated
2976   as 'x'.  The following induces an error, until -std is added to get
2977   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2978   array size at least.  It's necessary to write '\x00'==0 to get something
2979   that's true only with -std.  */
2980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
2982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983   inside strings and character constants.  */
2984#define FOO(x) 'x'
2985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
2987int test (int i, double x);
2988struct s1 {int (*f) (int a);};
2989struct s2 {int (*f) (double a);};
2990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991int argc;
2992char **argv;
2993int
2994main ()
2995{
2996return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2997  ;
2998  return 0;
2999}
3000_ACEOF
3001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003do
3004  CC="$ac_save_CC $ac_arg"
3005  if ac_fn_c_try_compile "$LINENO"; then :
3006  ac_cv_prog_cc_c89=$ac_arg
3007fi
3008rm -f core conftest.err conftest.$ac_objext
3009  test "x$ac_cv_prog_cc_c89" != "xno" && break
3010done
3011rm -f conftest.$ac_ext
3012CC=$ac_save_CC
3013
3014fi
3015# AC_CACHE_VAL
3016case "x$ac_cv_prog_cc_c89" in
3017  x)
3018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3019$as_echo "none needed" >&6; } ;;
3020  xno)
3021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3022$as_echo "unsupported" >&6; } ;;
3023  *)
3024    CC="$CC $ac_cv_prog_cc_c89"
3025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3027esac
3028if test "x$ac_cv_prog_cc_c89" != xno; then :
3029
3030fi
3031
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038ac_ext=c
3039ac_cpp='$CPP $CPPFLAGS'
3040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3044$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3045if ${am_cv_prog_cc_c_o+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049/* end confdefs.h.  */
3050
3051int
3052main ()
3053{
3054
3055  ;
3056  return 0;
3057}
3058_ACEOF
3059  # Make sure it works both with $CC and with simple cc.
3060  # Following AC_PROG_CC_C_O, we do the test twice because some
3061  # compilers refuse to overwrite an existing .o file with -o,
3062  # though they will create one.
3063  am_cv_prog_cc_c_o=yes
3064  for am_i in 1 2; do
3065    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3066   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } \
3070         && test -f conftest2.$ac_objext; then
3071      : OK
3072    else
3073      am_cv_prog_cc_c_o=no
3074      break
3075    fi
3076  done
3077  rm -f core conftest*
3078  unset am_i
3079fi
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3081$as_echo "$am_cv_prog_cc_c_o" >&6; }
3082if test "$am_cv_prog_cc_c_o" != yes; then
3083   # Losing compiler, so override with the script.
3084   # FIXME: It is wrong to rewrite CC.
3085   # But if we don't then we get into trouble of one sort or another.
3086   # A longer-term fix would be to have automake use am__CC in this case,
3087   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3088   CC="$am_aux_dir/compile $CC"
3089fi
3090ac_ext=c
3091ac_cpp='$CPP $CPPFLAGS'
3092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096
3097
3098ac_ext=c
3099ac_cpp='$CPP $CPPFLAGS'
3100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3104$as_echo_n "checking how to run the C preprocessor... " >&6; }
3105# On Suns, sometimes $CPP names a directory.
3106if test -n "$CPP" && test -d "$CPP"; then
3107  CPP=
3108fi
3109if test -z "$CPP"; then
3110  if ${ac_cv_prog_CPP+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113      # Double quotes because CPP needs to be expanded
3114    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3115    do
3116      ac_preproc_ok=false
3117for ac_c_preproc_warn_flag in '' yes
3118do
3119  # Use a header file that comes with gcc, so configuring glibc
3120  # with a fresh cross-compiler works.
3121  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3122  # <limits.h> exists even on freestanding compilers.
3123  # On the NeXT, cc -E runs the code through the compiler's parser,
3124  # not just through cpp. "Syntax error" is here to catch this case.
3125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127#ifdef __STDC__
3128# include <limits.h>
3129#else
3130# include <assert.h>
3131#endif
3132		     Syntax error
3133_ACEOF
3134if ac_fn_c_try_cpp "$LINENO"; then :
3135
3136else
3137  # Broken: fails on valid input.
3138continue
3139fi
3140rm -f conftest.err conftest.i conftest.$ac_ext
3141
3142  # OK, works on sane cases.  Now check whether nonexistent headers
3143  # can be detected and how.
3144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145/* end confdefs.h.  */
3146#include <ac_nonexistent.h>
3147_ACEOF
3148if ac_fn_c_try_cpp "$LINENO"; then :
3149  # Broken: success on invalid input.
3150continue
3151else
3152  # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
3156rm -f conftest.err conftest.i conftest.$ac_ext
3157
3158done
3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160rm -f conftest.i conftest.err conftest.$ac_ext
3161if $ac_preproc_ok; then :
3162  break
3163fi
3164
3165    done
3166    ac_cv_prog_CPP=$CPP
3167
3168fi
3169  CPP=$ac_cv_prog_CPP
3170else
3171  ac_cv_prog_CPP=$CPP
3172fi
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3174$as_echo "$CPP" >&6; }
3175ac_preproc_ok=false
3176for ac_c_preproc_warn_flag in '' yes
3177do
3178  # Use a header file that comes with gcc, so configuring glibc
3179  # with a fresh cross-compiler works.
3180  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181  # <limits.h> exists even on freestanding compilers.
3182  # On the NeXT, cc -E runs the code through the compiler's parser,
3183  # not just through cpp. "Syntax error" is here to catch this case.
3184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185/* end confdefs.h.  */
3186#ifdef __STDC__
3187# include <limits.h>
3188#else
3189# include <assert.h>
3190#endif
3191		     Syntax error
3192_ACEOF
3193if ac_fn_c_try_cpp "$LINENO"; then :
3194
3195else
3196  # Broken: fails on valid input.
3197continue
3198fi
3199rm -f conftest.err conftest.i conftest.$ac_ext
3200
3201  # OK, works on sane cases.  Now check whether nonexistent headers
3202  # can be detected and how.
3203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204/* end confdefs.h.  */
3205#include <ac_nonexistent.h>
3206_ACEOF
3207if ac_fn_c_try_cpp "$LINENO"; then :
3208  # Broken: success on invalid input.
3209continue
3210else
3211  # Passes both tests.
3212ac_preproc_ok=:
3213break
3214fi
3215rm -f conftest.err conftest.i conftest.$ac_ext
3216
3217done
3218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3219rm -f conftest.i conftest.err conftest.$ac_ext
3220if $ac_preproc_ok; then :
3221
3222else
3223  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3226See \`config.log' for more details" "$LINENO" 5; }
3227fi
3228
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
3235
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3237$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3238if ${ac_cv_path_GREP+:} false; then :
3239  $as_echo_n "(cached) " >&6
3240else
3241  if test -z "$GREP"; then
3242  ac_path_GREP_found=false
3243  # Loop through the user's path and test for each of PROGNAME-LIST
3244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249    for ac_prog in grep ggrep; do
3250    for ac_exec_ext in '' $ac_executable_extensions; do
3251      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3252      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3253# Check for GNU ac_path_GREP and select it if it is found.
3254  # Check for GNU $ac_path_GREP
3255case `"$ac_path_GREP" --version 2>&1` in
3256*GNU*)
3257  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3258*)
3259  ac_count=0
3260  $as_echo_n 0123456789 >"conftest.in"
3261  while :
3262  do
3263    cat "conftest.in" "conftest.in" >"conftest.tmp"
3264    mv "conftest.tmp" "conftest.in"
3265    cp "conftest.in" "conftest.nl"
3266    $as_echo 'GREP' >> "conftest.nl"
3267    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3268    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3269    as_fn_arith $ac_count + 1 && ac_count=$as_val
3270    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3271      # Best one so far, save it but keep looking for a better one
3272      ac_cv_path_GREP="$ac_path_GREP"
3273      ac_path_GREP_max=$ac_count
3274    fi
3275    # 10*(2^10) chars as input seems more than enough
3276    test $ac_count -gt 10 && break
3277  done
3278  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3279esac
3280
3281      $ac_path_GREP_found && break 3
3282    done
3283  done
3284  done
3285IFS=$as_save_IFS
3286  if test -z "$ac_cv_path_GREP"; then
3287    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3288  fi
3289else
3290  ac_cv_path_GREP=$GREP
3291fi
3292
3293fi
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3295$as_echo "$ac_cv_path_GREP" >&6; }
3296 GREP="$ac_cv_path_GREP"
3297
3298
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3300$as_echo_n "checking for egrep... " >&6; }
3301if ${ac_cv_path_EGREP+:} false; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3305   then ac_cv_path_EGREP="$GREP -E"
3306   else
3307     if test -z "$EGREP"; then
3308  ac_path_EGREP_found=false
3309  # Loop through the user's path and test for each of PROGNAME-LIST
3310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315    for ac_prog in egrep; do
3316    for ac_exec_ext in '' $ac_executable_extensions; do
3317      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3318      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3319# Check for GNU ac_path_EGREP and select it if it is found.
3320  # Check for GNU $ac_path_EGREP
3321case `"$ac_path_EGREP" --version 2>&1` in
3322*GNU*)
3323  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3324*)
3325  ac_count=0
3326  $as_echo_n 0123456789 >"conftest.in"
3327  while :
3328  do
3329    cat "conftest.in" "conftest.in" >"conftest.tmp"
3330    mv "conftest.tmp" "conftest.in"
3331    cp "conftest.in" "conftest.nl"
3332    $as_echo 'EGREP' >> "conftest.nl"
3333    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335    as_fn_arith $ac_count + 1 && ac_count=$as_val
3336    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3337      # Best one so far, save it but keep looking for a better one
3338      ac_cv_path_EGREP="$ac_path_EGREP"
3339      ac_path_EGREP_max=$ac_count
3340    fi
3341    # 10*(2^10) chars as input seems more than enough
3342    test $ac_count -gt 10 && break
3343  done
3344  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345esac
3346
3347      $ac_path_EGREP_found && break 3
3348    done
3349  done
3350  done
3351IFS=$as_save_IFS
3352  if test -z "$ac_cv_path_EGREP"; then
3353    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3354  fi
3355else
3356  ac_cv_path_EGREP=$EGREP
3357fi
3358
3359   fi
3360fi
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3362$as_echo "$ac_cv_path_EGREP" >&6; }
3363 EGREP="$ac_cv_path_EGREP"
3364
3365
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3367$as_echo_n "checking for ANSI C header files... " >&6; }
3368if ${ac_cv_header_stdc+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373#include <stdlib.h>
3374#include <stdarg.h>
3375#include <string.h>
3376#include <float.h>
3377
3378int
3379main ()
3380{
3381
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386if ac_fn_c_try_compile "$LINENO"; then :
3387  ac_cv_header_stdc=yes
3388else
3389  ac_cv_header_stdc=no
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392
3393if test $ac_cv_header_stdc = yes; then
3394  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396/* end confdefs.h.  */
3397#include <string.h>
3398
3399_ACEOF
3400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401  $EGREP "memchr" >/dev/null 2>&1; then :
3402
3403else
3404  ac_cv_header_stdc=no
3405fi
3406rm -f conftest*
3407
3408fi
3409
3410if test $ac_cv_header_stdc = yes; then
3411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h.  */
3414#include <stdlib.h>
3415
3416_ACEOF
3417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3418  $EGREP "free" >/dev/null 2>&1; then :
3419
3420else
3421  ac_cv_header_stdc=no
3422fi
3423rm -f conftest*
3424
3425fi
3426
3427if test $ac_cv_header_stdc = yes; then
3428  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3429  if test "$cross_compiling" = yes; then :
3430  :
3431else
3432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <ctype.h>
3435#include <stdlib.h>
3436#if ((' ' & 0x0FF) == 0x020)
3437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3439#else
3440# define ISLOWER(c) \
3441		   (('a' <= (c) && (c) <= 'i') \
3442		     || ('j' <= (c) && (c) <= 'r') \
3443		     || ('s' <= (c) && (c) <= 'z'))
3444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3445#endif
3446
3447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3448int
3449main ()
3450{
3451  int i;
3452  for (i = 0; i < 256; i++)
3453    if (XOR (islower (i), ISLOWER (i))
3454	|| toupper (i) != TOUPPER (i))
3455      return 2;
3456  return 0;
3457}
3458_ACEOF
3459if ac_fn_c_try_run "$LINENO"; then :
3460
3461else
3462  ac_cv_header_stdc=no
3463fi
3464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3465  conftest.$ac_objext conftest.beam conftest.$ac_ext
3466fi
3467
3468fi
3469fi
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3471$as_echo "$ac_cv_header_stdc" >&6; }
3472if test $ac_cv_header_stdc = yes; then
3473
3474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3475
3476fi
3477
3478# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3479for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3480		  inttypes.h stdint.h unistd.h
3481do :
3482  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3484"
3485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3486  cat >>confdefs.h <<_ACEOF
3487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3488_ACEOF
3489
3490fi
3491
3492done
3493
3494
3495
3496  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3497if test "x$ac_cv_header_minix_config_h" = xyes; then :
3498  MINIX=yes
3499else
3500  MINIX=
3501fi
3502
3503
3504  if test "$MINIX" = yes; then
3505
3506$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3507
3508
3509$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3510
3511
3512$as_echo "#define _MINIX 1" >>confdefs.h
3513
3514  fi
3515
3516
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3518$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3519if ${ac_cv_safe_to_define___extensions__+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525#	  define __EXTENSIONS__ 1
3526	  $ac_includes_default
3527int
3528main ()
3529{
3530
3531  ;
3532  return 0;
3533}
3534_ACEOF
3535if ac_fn_c_try_compile "$LINENO"; then :
3536  ac_cv_safe_to_define___extensions__=yes
3537else
3538  ac_cv_safe_to_define___extensions__=no
3539fi
3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3543$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3544  test $ac_cv_safe_to_define___extensions__ = yes &&
3545    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3546
3547  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3548
3549  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3550
3551  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3552
3553  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3554
3555
3556
3557# Initialize Automake
3558am__api_version='1.14'
3559
3560ac_aux_dir=
3561for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3562  if test -f "$ac_dir/install-sh"; then
3563    ac_aux_dir=$ac_dir
3564    ac_install_sh="$ac_aux_dir/install-sh -c"
3565    break
3566  elif test -f "$ac_dir/install.sh"; then
3567    ac_aux_dir=$ac_dir
3568    ac_install_sh="$ac_aux_dir/install.sh -c"
3569    break
3570  elif test -f "$ac_dir/shtool"; then
3571    ac_aux_dir=$ac_dir
3572    ac_install_sh="$ac_aux_dir/shtool install -c"
3573    break
3574  fi
3575done
3576if test -z "$ac_aux_dir"; then
3577  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3578fi
3579
3580# These three variables are undocumented and unsupported,
3581# and are intended to be withdrawn in a future Autoconf release.
3582# They can cause serious problems if a builder's source tree is in a directory
3583# whose full name contains unusual characters.
3584ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3585ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3586ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3587
3588
3589# Find a good install program.  We prefer a C program (faster),
3590# so one script is as good as another.  But avoid the broken or
3591# incompatible versions:
3592# SysV /etc/install, /usr/sbin/install
3593# SunOS /usr/etc/install
3594# IRIX /sbin/install
3595# AIX /bin/install
3596# AmigaOS /C/install, which installs bootblocks on floppy discs
3597# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3598# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3599# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3600# OS/2's system install, which has a completely different semantic
3601# ./install, which can be erroneously created by make from ./install.sh.
3602# Reject install programs that cannot install multiple files.
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3604$as_echo_n "checking for a BSD-compatible install... " >&6; }
3605if test -z "$INSTALL"; then
3606if ${ac_cv_path_install+:} false; then :
3607  $as_echo_n "(cached) " >&6
3608else
3609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610for as_dir in $PATH
3611do
3612  IFS=$as_save_IFS
3613  test -z "$as_dir" && as_dir=.
3614    # Account for people who put trailing slashes in PATH elements.
3615case $as_dir/ in #((
3616  ./ | .// | /[cC]/* | \
3617  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3618  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3619  /usr/ucb/* ) ;;
3620  *)
3621    # OSF1 and SCO ODT 3.0 have their own names for install.
3622    # Don't use installbsd from OSF since it installs stuff as root
3623    # by default.
3624    for ac_prog in ginstall scoinst install; do
3625      for ac_exec_ext in '' $ac_executable_extensions; do
3626	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3627	  if test $ac_prog = install &&
3628	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3629	    # AIX install.  It has an incompatible calling convention.
3630	    :
3631	  elif test $ac_prog = install &&
3632	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3633	    # program-specific install script used by HP pwplus--don't use.
3634	    :
3635	  else
3636	    rm -rf conftest.one conftest.two conftest.dir
3637	    echo one > conftest.one
3638	    echo two > conftest.two
3639	    mkdir conftest.dir
3640	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3641	      test -s conftest.one && test -s conftest.two &&
3642	      test -s conftest.dir/conftest.one &&
3643	      test -s conftest.dir/conftest.two
3644	    then
3645	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3646	      break 3
3647	    fi
3648	  fi
3649	fi
3650      done
3651    done
3652    ;;
3653esac
3654
3655  done
3656IFS=$as_save_IFS
3657
3658rm -rf conftest.one conftest.two conftest.dir
3659
3660fi
3661  if test "${ac_cv_path_install+set}" = set; then
3662    INSTALL=$ac_cv_path_install
3663  else
3664    # As a last resort, use the slow shell script.  Don't cache a
3665    # value for INSTALL within a source directory, because that will
3666    # break other packages using the cache if that directory is
3667    # removed, or if the value is a relative name.
3668    INSTALL=$ac_install_sh
3669  fi
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3672$as_echo "$INSTALL" >&6; }
3673
3674# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3675# It thinks the first close brace ends the variable substitution.
3676test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3677
3678test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3679
3680test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3681
3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3683$as_echo_n "checking whether build environment is sane... " >&6; }
3684# Reject unsafe characters in $srcdir or the absolute working directory
3685# name.  Accept space and tab only in the latter.
3686am_lf='
3687'
3688case `pwd` in
3689  *[\\\"\#\$\&\'\`$am_lf]*)
3690    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3691esac
3692case $srcdir in
3693  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3694    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3695esac
3696
3697# Do 'set' in a subshell so we don't clobber the current shell's
3698# arguments.  Must try -L first in case configure is actually a
3699# symlink; some systems play weird games with the mod time of symlinks
3700# (eg FreeBSD returns the mod time of the symlink's containing
3701# directory).
3702if (
3703   am_has_slept=no
3704   for am_try in 1 2; do
3705     echo "timestamp, slept: $am_has_slept" > conftest.file
3706     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3707     if test "$*" = "X"; then
3708	# -L didn't work.
3709	set X `ls -t "$srcdir/configure" conftest.file`
3710     fi
3711     if test "$*" != "X $srcdir/configure conftest.file" \
3712	&& test "$*" != "X conftest.file $srcdir/configure"; then
3713
3714	# If neither matched, then we have a broken ls.  This can happen
3715	# if, for instance, CONFIG_SHELL is bash and it inherits a
3716	# broken ls alias from the environment.  This has actually
3717	# happened.  Such a system could not be considered "sane".
3718	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3719  alias in your environment" "$LINENO" 5
3720     fi
3721     if test "$2" = conftest.file || test $am_try -eq 2; then
3722       break
3723     fi
3724     # Just in case.
3725     sleep 1
3726     am_has_slept=yes
3727   done
3728   test "$2" = conftest.file
3729   )
3730then
3731   # Ok.
3732   :
3733else
3734   as_fn_error $? "newly created file is older than distributed files!
3735Check your system clock" "$LINENO" 5
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738$as_echo "yes" >&6; }
3739# If we didn't sleep, we still need to ensure time stamps of config.status and
3740# generated files are strictly newer.
3741am_sleep_pid=
3742if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3743  ( sleep 1 ) &
3744  am_sleep_pid=$!
3745fi
3746
3747rm -f conftest.file
3748
3749test "$program_prefix" != NONE &&
3750  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3751# Use a double $ so make ignores it.
3752test "$program_suffix" != NONE &&
3753  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3754# Double any \ or $.
3755# By default was `s,x,x', remove it if useless.
3756ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3757program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3758
3759if test x"${MISSING+set}" != xset; then
3760  case $am_aux_dir in
3761  *\ * | *\	*)
3762    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3763  *)
3764    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3765  esac
3766fi
3767# Use eval to expand $SHELL
3768if eval "$MISSING --is-lightweight"; then
3769  am_missing_run="$MISSING "
3770else
3771  am_missing_run=
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3773$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3774fi
3775
3776if test x"${install_sh}" != xset; then
3777  case $am_aux_dir in
3778  *\ * | *\	*)
3779    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3780  *)
3781    install_sh="\${SHELL} $am_aux_dir/install-sh"
3782  esac
3783fi
3784
3785# Installed binaries are usually stripped using 'strip' when the user
3786# run "make install-strip".  However 'strip' might not be the right
3787# tool to use in cross-compilation environments, therefore Automake
3788# will honor the 'STRIP' environment variable to overrule this program.
3789if test "$cross_compiling" != no; then
3790  if test -n "$ac_tool_prefix"; then
3791  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3792set dummy ${ac_tool_prefix}strip; ac_word=$2
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794$as_echo_n "checking for $ac_word... " >&6; }
3795if ${ac_cv_prog_STRIP+:} false; then :
3796  $as_echo_n "(cached) " >&6
3797else
3798  if test -n "$STRIP"; then
3799  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806    for ac_exec_ext in '' $ac_executable_extensions; do
3807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813  done
3814IFS=$as_save_IFS
3815
3816fi
3817fi
3818STRIP=$ac_cv_prog_STRIP
3819if test -n "$STRIP"; then
3820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3821$as_echo "$STRIP" >&6; }
3822else
3823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828fi
3829if test -z "$ac_cv_prog_STRIP"; then
3830  ac_ct_STRIP=$STRIP
3831  # Extract the first word of "strip", so it can be a program name with args.
3832set dummy strip; ac_word=$2
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834$as_echo_n "checking for $ac_word... " >&6; }
3835if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3836  $as_echo_n "(cached) " >&6
3837else
3838  if test -n "$ac_ct_STRIP"; then
3839  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846    for ac_exec_ext in '' $ac_executable_extensions; do
3847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848    ac_cv_prog_ac_ct_STRIP="strip"
3849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853  done
3854IFS=$as_save_IFS
3855
3856fi
3857fi
3858ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3859if test -n "$ac_ct_STRIP"; then
3860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3861$as_echo "$ac_ct_STRIP" >&6; }
3862else
3863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
3866
3867  if test "x$ac_ct_STRIP" = x; then
3868    STRIP=":"
3869  else
3870    case $cross_compiling:$ac_tool_warned in
3871yes:)
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874ac_tool_warned=yes ;;
3875esac
3876    STRIP=$ac_ct_STRIP
3877  fi
3878else
3879  STRIP="$ac_cv_prog_STRIP"
3880fi
3881
3882fi
3883INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3886$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3887if test -z "$MKDIR_P"; then
3888  if ${ac_cv_path_mkdir+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3893do
3894  IFS=$as_save_IFS
3895  test -z "$as_dir" && as_dir=.
3896    for ac_prog in mkdir gmkdir; do
3897	 for ac_exec_ext in '' $ac_executable_extensions; do
3898	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3899	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3900	     'mkdir (GNU coreutils) '* | \
3901	     'mkdir (coreutils) '* | \
3902	     'mkdir (fileutils) '4.1*)
3903	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3904	       break 3;;
3905	   esac
3906	 done
3907       done
3908  done
3909IFS=$as_save_IFS
3910
3911fi
3912
3913  test -d ./--version && rmdir ./--version
3914  if test "${ac_cv_path_mkdir+set}" = set; then
3915    MKDIR_P="$ac_cv_path_mkdir -p"
3916  else
3917    # As a last resort, use the slow shell script.  Don't cache a
3918    # value for MKDIR_P within a source directory, because that will
3919    # break other packages using the cache if that directory is
3920    # removed, or if the value is a relative name.
3921    MKDIR_P="$ac_install_sh -d"
3922  fi
3923fi
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3925$as_echo "$MKDIR_P" >&6; }
3926
3927for ac_prog in gawk mawk nawk awk
3928do
3929  # Extract the first word of "$ac_prog", so it can be a program name with args.
3930set dummy $ac_prog; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
3933if ${ac_cv_prog_AWK+:} false; then :
3934  $as_echo_n "(cached) " >&6
3935else
3936  if test -n "$AWK"; then
3937  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3938else
3939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942  IFS=$as_save_IFS
3943  test -z "$as_dir" && as_dir=.
3944    for ac_exec_ext in '' $ac_executable_extensions; do
3945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946    ac_cv_prog_AWK="$ac_prog"
3947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948    break 2
3949  fi
3950done
3951  done
3952IFS=$as_save_IFS
3953
3954fi
3955fi
3956AWK=$ac_cv_prog_AWK
3957if test -n "$AWK"; then
3958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959$as_echo "$AWK" >&6; }
3960else
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962$as_echo "no" >&6; }
3963fi
3964
3965
3966  test -n "$AWK" && break
3967done
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3971set x ${MAKE-make}
3972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3974  $as_echo_n "(cached) " >&6
3975else
3976  cat >conftest.make <<\_ACEOF
3977SHELL = /bin/sh
3978all:
3979	@echo '@@@%%%=$(MAKE)=@@@%%%'
3980_ACEOF
3981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3982case `${MAKE-make} -f conftest.make 2>/dev/null` in
3983  *@@@%%%=?*=@@@%%%*)
3984    eval ac_cv_prog_make_${ac_make}_set=yes;;
3985  *)
3986    eval ac_cv_prog_make_${ac_make}_set=no;;
3987esac
3988rm -f conftest.make
3989fi
3990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992$as_echo "yes" >&6; }
3993  SET_MAKE=
3994else
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997  SET_MAKE="MAKE=${MAKE-make}"
3998fi
3999
4000rm -rf .tst 2>/dev/null
4001mkdir .tst 2>/dev/null
4002if test -d .tst; then
4003  am__leading_dot=.
4004else
4005  am__leading_dot=_
4006fi
4007rmdir .tst 2>/dev/null
4008
4009DEPDIR="${am__leading_dot}deps"
4010
4011ac_config_commands="$ac_config_commands depfiles"
4012
4013
4014am_make=${MAKE-make}
4015cat > confinc << 'END'
4016am__doit:
4017	@echo this is the am__doit target
4018.PHONY: am__doit
4019END
4020# If we don't find an include directive, just comment out the code.
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4022$as_echo_n "checking for style of include used by $am_make... " >&6; }
4023am__include="#"
4024am__quote=
4025_am_result=none
4026# First try GNU make style include.
4027echo "include confinc" > confmf
4028# Ignore all kinds of additional output from 'make'.
4029case `$am_make -s -f confmf 2> /dev/null` in #(
4030*the\ am__doit\ target*)
4031  am__include=include
4032  am__quote=
4033  _am_result=GNU
4034  ;;
4035esac
4036# Now try BSD make style include.
4037if test "$am__include" = "#"; then
4038   echo '.include "confinc"' > confmf
4039   case `$am_make -s -f confmf 2> /dev/null` in #(
4040   *the\ am__doit\ target*)
4041     am__include=.include
4042     am__quote="\""
4043     _am_result=BSD
4044     ;;
4045   esac
4046fi
4047
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4050$as_echo "$_am_result" >&6; }
4051rm -f confinc confmf
4052
4053# Check whether --enable-dependency-tracking was given.
4054if test "${enable_dependency_tracking+set}" = set; then :
4055  enableval=$enable_dependency_tracking;
4056fi
4057
4058if test "x$enable_dependency_tracking" != xno; then
4059  am_depcomp="$ac_aux_dir/depcomp"
4060  AMDEPBACKSLASH='\'
4061  am__nodep='_no'
4062fi
4063 if test "x$enable_dependency_tracking" != xno; then
4064  AMDEP_TRUE=
4065  AMDEP_FALSE='#'
4066else
4067  AMDEP_TRUE='#'
4068  AMDEP_FALSE=
4069fi
4070
4071
4072# Check whether --enable-silent-rules was given.
4073if test "${enable_silent_rules+set}" = set; then :
4074  enableval=$enable_silent_rules;
4075fi
4076
4077case $enable_silent_rules in # (((
4078  yes) AM_DEFAULT_VERBOSITY=0;;
4079   no) AM_DEFAULT_VERBOSITY=1;;
4080    *) AM_DEFAULT_VERBOSITY=1;;
4081esac
4082am_make=${MAKE-make}
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4084$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4085if ${am_cv_make_support_nested_variables+:} false; then :
4086  $as_echo_n "(cached) " >&6
4087else
4088  if $as_echo 'TRUE=$(BAR$(V))
4089BAR0=false
4090BAR1=true
4091V=1
4092am__doit:
4093	@$(TRUE)
4094.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4095  am_cv_make_support_nested_variables=yes
4096else
4097  am_cv_make_support_nested_variables=no
4098fi
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4101$as_echo "$am_cv_make_support_nested_variables" >&6; }
4102if test $am_cv_make_support_nested_variables = yes; then
4103    AM_V='$(V)'
4104  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4105else
4106  AM_V=$AM_DEFAULT_VERBOSITY
4107  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4108fi
4109AM_BACKSLASH='\'
4110
4111if test "`cd $srcdir && pwd`" != "`pwd`"; then
4112  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4113  # is not polluted with repeated "-I."
4114  am__isrc=' -I$(srcdir)'
4115  # test to see if srcdir already configured
4116  if test -f $srcdir/config.status; then
4117    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4118  fi
4119fi
4120
4121# test whether we have cygpath
4122if test -z "$CYGPATH_W"; then
4123  if (cygpath --version) >/dev/null 2>/dev/null; then
4124    CYGPATH_W='cygpath -w'
4125  else
4126    CYGPATH_W=echo
4127  fi
4128fi
4129
4130
4131# Define the identity of the package.
4132 PACKAGE='twm'
4133 VERSION='1.0.8'
4134
4135
4136cat >>confdefs.h <<_ACEOF
4137#define PACKAGE "$PACKAGE"
4138_ACEOF
4139
4140
4141cat >>confdefs.h <<_ACEOF
4142#define VERSION "$VERSION"
4143_ACEOF
4144
4145# Some tools Automake needs.
4146
4147ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4148
4149
4150AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4151
4152
4153AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4154
4155
4156AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4157
4158
4159MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4160
4161# For better backward compatibility.  To be removed once Automake 1.9.x
4162# dies out for good.  For more background, see:
4163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4165mkdir_p='$(MKDIR_P)'
4166
4167# We need awk for the "check" target.  The system "awk" is bad on
4168# some platforms.
4169# Always define AMTAR for backward compatibility.  Yes, it's still used
4170# in the wild :-(  We should find a proper way to deprecate it ...
4171AMTAR='$${TAR-tar}'
4172
4173
4174# We'll loop over all known methods to create a tar archive until one works.
4175_am_tools='gnutar  pax cpio none'
4176
4177am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4178
4179
4180
4181
4182
4183depcc="$CC"   am_compiler_list=
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186$as_echo_n "checking dependency style of $depcc... " >&6; }
4187if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4188  $as_echo_n "(cached) " >&6
4189else
4190  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191  # We make a subdir and do the tests there.  Otherwise we can end up
4192  # making bogus files that we don't know about and never remove.  For
4193  # instance it was reported that on HP-UX the gcc test will end up
4194  # making a dummy file named 'D' -- because '-MD' means "put the output
4195  # in D".
4196  rm -rf conftest.dir
4197  mkdir conftest.dir
4198  # Copy depcomp to subdir because otherwise we won't find it if we're
4199  # using a relative directory.
4200  cp "$am_depcomp" conftest.dir
4201  cd conftest.dir
4202  # We will build objects and dependencies in a subdirectory because
4203  # it helps to detect inapplicable dependency modes.  For instance
4204  # both Tru64's cc and ICC support -MD to output dependencies as a
4205  # side effect of compilation, but ICC will put the dependencies in
4206  # the current directory while Tru64 will put them in the object
4207  # directory.
4208  mkdir sub
4209
4210  am_cv_CC_dependencies_compiler_type=none
4211  if test "$am_compiler_list" = ""; then
4212     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4213  fi
4214  am__universal=false
4215  case " $depcc " in #(
4216     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4217     esac
4218
4219  for depmode in $am_compiler_list; do
4220    # Setup a source with many dependencies, because some compilers
4221    # like to wrap large dependency lists on column 80 (with \), and
4222    # we should not choose a depcomp mode which is confused by this.
4223    #
4224    # We need to recreate these files for each test, as the compiler may
4225    # overwrite some of them when testing with obscure command lines.
4226    # This happens at least with the AIX C compiler.
4227    : > sub/conftest.c
4228    for i in 1 2 3 4 5 6; do
4229      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4231      # Solaris 10 /bin/sh.
4232      echo '/* dummy */' > sub/conftst$i.h
4233    done
4234    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235
4236    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4237    # mode.  It turns out that the SunPro C++ compiler does not properly
4238    # handle '-M -o', and we need to detect this.  Also, some Intel
4239    # versions had trouble with output in subdirs.
4240    am__obj=sub/conftest.${OBJEXT-o}
4241    am__minus_obj="-o $am__obj"
4242    case $depmode in
4243    gcc)
4244      # This depmode causes a compiler race in universal mode.
4245      test "$am__universal" = false || continue
4246      ;;
4247    nosideeffect)
4248      # After this tag, mechanisms are not by side-effect, so they'll
4249      # only be used when explicitly requested.
4250      if test "x$enable_dependency_tracking" = xyes; then
4251	continue
4252      else
4253	break
4254      fi
4255      ;;
4256    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257      # This compiler won't grok '-c -o', but also, the minuso test has
4258      # not run yet.  These depmodes are late enough in the game, and
4259      # so weak that their functioning should not be impacted.
4260      am__obj=conftest.${OBJEXT-o}
4261      am__minus_obj=
4262      ;;
4263    none) break ;;
4264    esac
4265    if depmode=$depmode \
4266       source=sub/conftest.c object=$am__obj \
4267       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269         >/dev/null 2>conftest.err &&
4270       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274      # icc doesn't choke on unknown options, it will just issue warnings
4275      # or remarks (even with -Werror).  So we grep stderr for any message
4276      # that says an option was ignored or not supported.
4277      # When given -MP, icc 7.0 and 7.1 complain thusly:
4278      #   icc: Command line warning: ignoring option '-M'; no argument required
4279      # The diagnosis changed in icc 8.0:
4280      #   icc: Command line remark: option '-MP' not supported
4281      if (grep 'ignoring option' conftest.err ||
4282          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283        am_cv_CC_dependencies_compiler_type=$depmode
4284        break
4285      fi
4286    fi
4287  done
4288
4289  cd ..
4290  rm -rf conftest.dir
4291else
4292  am_cv_CC_dependencies_compiler_type=none
4293fi
4294
4295fi
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4297$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4299
4300 if
4301  test "x$enable_dependency_tracking" != xno \
4302  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4303  am__fastdepCC_TRUE=
4304  am__fastdepCC_FALSE='#'
4305else
4306  am__fastdepCC_TRUE='#'
4307  am__fastdepCC_FALSE=
4308fi
4309
4310
4311
4312# POSIX will say in a future version that running "rm -f" with no argument
4313# is OK; and we want to be able to make that assumption in our Makefile
4314# recipes.  So use an aggressive probe to check that the usage we want is
4315# actually supported "in the wild" to an acceptable degree.
4316# See automake bug#10828.
4317# To make any issue more visible, cause the running configure to be aborted
4318# by default if the 'rm' program in use doesn't match our expectations; the
4319# user can still override this though.
4320if rm -f && rm -fr && rm -rf; then : OK; else
4321  cat >&2 <<'END'
4322Oops!
4323
4324Your 'rm' program seems unable to run without file operands specified
4325on the command line, even when the '-f' option is present.  This is contrary
4326to the behaviour of most rm programs out there, and not conforming with
4327the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4328
4329Please tell bug-automake@gnu.org about your system, including the value
4330of your $PATH and any error possibly output before this message.  This
4331can help us improve future automake versions.
4332
4333END
4334  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4335    echo 'Configuration will proceed anyway, since you have set the' >&2
4336    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4337    echo >&2
4338  else
4339    cat >&2 <<'END'
4340Aborting the configuration process, to ensure you take notice of the issue.
4341
4342You can download and install GNU coreutils to get an 'rm' implementation
4343that behaves properly: <http://www.gnu.org/software/coreutils/>.
4344
4345If you want to complete the configuration process using your problematic
4346'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4347to "yes", and re-run configure.
4348
4349END
4350    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4351  fi
4352fi
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4355$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4356    # Check whether --enable-maintainer-mode was given.
4357if test "${enable_maintainer_mode+set}" = set; then :
4358  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4359else
4360  USE_MAINTAINER_MODE=no
4361fi
4362
4363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4364$as_echo "$USE_MAINTAINER_MODE" >&6; }
4365   if test $USE_MAINTAINER_MODE = yes; then
4366  MAINTAINER_MODE_TRUE=
4367  MAINTAINER_MODE_FALSE='#'
4368else
4369  MAINTAINER_MODE_TRUE='#'
4370  MAINTAINER_MODE_FALSE=
4371fi
4372
4373  MAINT=$MAINTAINER_MODE_TRUE
4374
4375
4376
4377# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4390$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4391if ${ac_cv_prog_cc_c99+:} false; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  ac_cv_prog_cc_c99=no
4395ac_save_CC=$CC
4396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397/* end confdefs.h.  */
4398#include <stdarg.h>
4399#include <stdbool.h>
4400#include <stdlib.h>
4401#include <wchar.h>
4402#include <stdio.h>
4403
4404// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4405#define debug(...) fprintf (stderr, __VA_ARGS__)
4406#define showlist(...) puts (#__VA_ARGS__)
4407#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4408static void
4409test_varargs_macros (void)
4410{
4411  int x = 1234;
4412  int y = 5678;
4413  debug ("Flag");
4414  debug ("X = %d\n", x);
4415  showlist (The first, second, and third items.);
4416  report (x>y, "x is %d but y is %d", x, y);
4417}
4418
4419// Check long long types.
4420#define BIG64 18446744073709551615ull
4421#define BIG32 4294967295ul
4422#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4423#if !BIG_OK
4424  your preprocessor is broken;
4425#endif
4426#if BIG_OK
4427#else
4428  your preprocessor is broken;
4429#endif
4430static long long int bignum = -9223372036854775807LL;
4431static unsigned long long int ubignum = BIG64;
4432
4433struct incomplete_array
4434{
4435  int datasize;
4436  double data[];
4437};
4438
4439struct named_init {
4440  int number;
4441  const wchar_t *name;
4442  double average;
4443};
4444
4445typedef const char *ccp;
4446
4447static inline int
4448test_restrict (ccp restrict text)
4449{
4450  // See if C++-style comments work.
4451  // Iterate through items via the restricted pointer.
4452  // Also check for declarations in for loops.
4453  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4454    continue;
4455  return 0;
4456}
4457
4458// Check varargs and va_copy.
4459static void
4460test_varargs (const char *format, ...)
4461{
4462  va_list args;
4463  va_start (args, format);
4464  va_list args_copy;
4465  va_copy (args_copy, args);
4466
4467  const char *str;
4468  int number;
4469  float fnumber;
4470
4471  while (*format)
4472    {
4473      switch (*format++)
4474	{
4475	case 's': // string
4476	  str = va_arg (args_copy, const char *);
4477	  break;
4478	case 'd': // int
4479	  number = va_arg (args_copy, int);
4480	  break;
4481	case 'f': // float
4482	  fnumber = va_arg (args_copy, double);
4483	  break;
4484	default:
4485	  break;
4486	}
4487    }
4488  va_end (args_copy);
4489  va_end (args);
4490}
4491
4492int
4493main ()
4494{
4495
4496  // Check bool.
4497  _Bool success = false;
4498
4499  // Check restrict.
4500  if (test_restrict ("String literal") == 0)
4501    success = true;
4502  char *restrict newvar = "Another string";
4503
4504  // Check varargs.
4505  test_varargs ("s, d' f .", "string", 65, 34.234);
4506  test_varargs_macros ();
4507
4508  // Check flexible array members.
4509  struct incomplete_array *ia =
4510    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4511  ia->datasize = 10;
4512  for (int i = 0; i < ia->datasize; ++i)
4513    ia->data[i] = i * 1.234;
4514
4515  // Check named initializers.
4516  struct named_init ni = {
4517    .number = 34,
4518    .name = L"Test wide string",
4519    .average = 543.34343,
4520  };
4521
4522  ni.number = 58;
4523
4524  int dynamic_array[ni.number];
4525  dynamic_array[ni.number - 1] = 543;
4526
4527  // work around unused variable warnings
4528  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4529	  || dynamic_array[ni.number - 1] != 543);
4530
4531  ;
4532  return 0;
4533}
4534_ACEOF
4535for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4536do
4537  CC="$ac_save_CC $ac_arg"
4538  if ac_fn_c_try_compile "$LINENO"; then :
4539  ac_cv_prog_cc_c99=$ac_arg
4540fi
4541rm -f core conftest.err conftest.$ac_objext
4542  test "x$ac_cv_prog_cc_c99" != "xno" && break
4543done
4544rm -f conftest.$ac_ext
4545CC=$ac_save_CC
4546
4547fi
4548# AC_CACHE_VAL
4549case "x$ac_cv_prog_cc_c99" in
4550  x)
4551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4552$as_echo "none needed" >&6; } ;;
4553  xno)
4554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4555$as_echo "unsupported" >&6; } ;;
4556  *)
4557    CC="$CC $ac_cv_prog_cc_c99"
4558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4559$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4560esac
4561if test "x$ac_cv_prog_cc_c99" != xno; then :
4562
4563fi
4564
4565
4566
4567
4568
4569
4570ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4571if test "x$ac_cv_have_decl___clang__" = xyes; then :
4572  CLANGCC="yes"
4573else
4574  CLANGCC="no"
4575fi
4576
4577ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4578if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4579  INTELCC="yes"
4580else
4581  INTELCC="no"
4582fi
4583
4584ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4585if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4586  SUNCC="yes"
4587else
4588  SUNCC="no"
4589fi
4590
4591
4592
4593
4594if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4595	if test -n "$ac_tool_prefix"; then
4596  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4597set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599$as_echo_n "checking for $ac_word... " >&6; }
4600if ${ac_cv_path_PKG_CONFIG+:} false; then :
4601  $as_echo_n "(cached) " >&6
4602else
4603  case $PKG_CONFIG in
4604  [\\/]* | ?:[\\/]*)
4605  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4606  ;;
4607  *)
4608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611  IFS=$as_save_IFS
4612  test -z "$as_dir" && as_dir=.
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617    break 2
4618  fi
4619done
4620  done
4621IFS=$as_save_IFS
4622
4623  ;;
4624esac
4625fi
4626PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4627if test -n "$PKG_CONFIG"; then
4628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4629$as_echo "$PKG_CONFIG" >&6; }
4630else
4631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632$as_echo "no" >&6; }
4633fi
4634
4635
4636fi
4637if test -z "$ac_cv_path_PKG_CONFIG"; then
4638  ac_pt_PKG_CONFIG=$PKG_CONFIG
4639  # Extract the first word of "pkg-config", so it can be a program name with args.
4640set dummy pkg-config; ac_word=$2
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642$as_echo_n "checking for $ac_word... " >&6; }
4643if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  case $ac_pt_PKG_CONFIG in
4647  [\\/]* | ?:[\\/]*)
4648  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4649  ;;
4650  *)
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_exec_ext in '' $ac_executable_extensions; do
4657  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663  done
4664IFS=$as_save_IFS
4665
4666  ;;
4667esac
4668fi
4669ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4670if test -n "$ac_pt_PKG_CONFIG"; then
4671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4672$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4673else
4674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
4677
4678  if test "x$ac_pt_PKG_CONFIG" = x; then
4679    PKG_CONFIG=""
4680  else
4681    case $cross_compiling:$ac_tool_warned in
4682yes:)
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685ac_tool_warned=yes ;;
4686esac
4687    PKG_CONFIG=$ac_pt_PKG_CONFIG
4688  fi
4689else
4690  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4691fi
4692
4693fi
4694if test -n "$PKG_CONFIG"; then
4695	_pkg_min_version=0.9.0
4696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4697$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4698	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700$as_echo "yes" >&6; }
4701	else
4702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703$as_echo "no" >&6; }
4704		PKG_CONFIG=""
4705	fi
4706
4707fi
4708# Make sure we can run config.sub.
4709$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4710  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4711
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4713$as_echo_n "checking build system type... " >&6; }
4714if ${ac_cv_build+:} false; then :
4715  $as_echo_n "(cached) " >&6
4716else
4717  ac_build_alias=$build_alias
4718test "x$ac_build_alias" = x &&
4719  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4720test "x$ac_build_alias" = x &&
4721  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4722ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4723  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4724
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4727$as_echo "$ac_cv_build" >&6; }
4728case $ac_cv_build in
4729*-*-*) ;;
4730*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4731esac
4732build=$ac_cv_build
4733ac_save_IFS=$IFS; IFS='-'
4734set x $ac_cv_build
4735shift
4736build_cpu=$1
4737build_vendor=$2
4738shift; shift
4739# Remember, the first character of IFS is used to create $*,
4740# except with old shells:
4741build_os=$*
4742IFS=$ac_save_IFS
4743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4744
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4747$as_echo_n "checking host system type... " >&6; }
4748if ${ac_cv_host+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  if test "x$host_alias" = x; then
4752  ac_cv_host=$ac_cv_build
4753else
4754  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4755    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4756fi
4757
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4760$as_echo "$ac_cv_host" >&6; }
4761case $ac_cv_host in
4762*-*-*) ;;
4763*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4764esac
4765host=$ac_cv_host
4766ac_save_IFS=$IFS; IFS='-'
4767set x $ac_cv_host
4768shift
4769host_cpu=$1
4770host_vendor=$2
4771shift; shift
4772# Remember, the first character of IFS is used to create $*,
4773# except with old shells:
4774host_os=$*
4775IFS=$ac_save_IFS
4776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4777
4778
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4780$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4781if ${ac_cv_path_SED+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4785     for ac_i in 1 2 3 4 5 6 7; do
4786       ac_script="$ac_script$as_nl$ac_script"
4787     done
4788     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4789     { ac_script=; unset ac_script;}
4790     if test -z "$SED"; then
4791  ac_path_SED_found=false
4792  # Loop through the user's path and test for each of PROGNAME-LIST
4793  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796  IFS=$as_save_IFS
4797  test -z "$as_dir" && as_dir=.
4798    for ac_prog in sed gsed; do
4799    for ac_exec_ext in '' $ac_executable_extensions; do
4800      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4801      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4802# Check for GNU ac_path_SED and select it if it is found.
4803  # Check for GNU $ac_path_SED
4804case `"$ac_path_SED" --version 2>&1` in
4805*GNU*)
4806  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4807*)
4808  ac_count=0
4809  $as_echo_n 0123456789 >"conftest.in"
4810  while :
4811  do
4812    cat "conftest.in" "conftest.in" >"conftest.tmp"
4813    mv "conftest.tmp" "conftest.in"
4814    cp "conftest.in" "conftest.nl"
4815    $as_echo '' >> "conftest.nl"
4816    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818    as_fn_arith $ac_count + 1 && ac_count=$as_val
4819    if test $ac_count -gt ${ac_path_SED_max-0}; then
4820      # Best one so far, save it but keep looking for a better one
4821      ac_cv_path_SED="$ac_path_SED"
4822      ac_path_SED_max=$ac_count
4823    fi
4824    # 10*(2^10) chars as input seems more than enough
4825    test $ac_count -gt 10 && break
4826  done
4827  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4828esac
4829
4830      $ac_path_SED_found && break 3
4831    done
4832  done
4833  done
4834IFS=$as_save_IFS
4835  if test -z "$ac_cv_path_SED"; then
4836    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4837  fi
4838else
4839  ac_cv_path_SED=$SED
4840fi
4841
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4844$as_echo "$ac_cv_path_SED" >&6; }
4845 SED="$ac_cv_path_SED"
4846  rm -f conftest.sed
4847
4848
4849
4850
4851
4852
4853# Check whether --enable-selective-werror was given.
4854if test "${enable_selective_werror+set}" = set; then :
4855  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4856else
4857  SELECTIVE_WERROR=yes
4858fi
4859
4860
4861
4862
4863
4864# -v is too short to test reliably with XORG_TESTSET_CFLAG
4865if test "x$SUNCC" = "xyes"; then
4866    BASE_CFLAGS="-v"
4867else
4868    BASE_CFLAGS=""
4869fi
4870
4871# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885xorg_testset_save_CFLAGS="$CFLAGS"
4886
4887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4892  $as_echo_n "(cached) " >&6
4893else
4894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895/* end confdefs.h.  */
4896int i;
4897_ACEOF
4898if ac_fn_c_try_compile "$LINENO"; then :
4899  xorg_cv_cc_flag_unknown_warning_option=yes
4900else
4901  xorg_cv_cc_flag_unknown_warning_option=no
4902fi
4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904fi
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4908	CFLAGS="$xorg_testset_save_CFLAGS"
4909fi
4910
4911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914	fi
4915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922/* end confdefs.h.  */
4923int i;
4924_ACEOF
4925if ac_fn_c_try_compile "$LINENO"; then :
4926  xorg_cv_cc_flag_unused_command_line_argument=yes
4927else
4928  xorg_cv_cc_flag_unused_command_line_argument=no
4929fi
4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4935	CFLAGS="$xorg_testset_save_CFLAGS"
4936fi
4937
4938found="no"
4939
4940	if test $found = "no" ; then
4941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943		fi
4944
4945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4947		fi
4948
4949		CFLAGS="$CFLAGS -Wall"
4950
4951		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4952$as_echo_n "checking if $CC supports -Wall... " >&6; }
4953		cacheid=xorg_cv_cc_flag__Wall
4954		if eval \${$cacheid+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h.  */
4959int i;
4960int
4961main ()
4962{
4963
4964  ;
4965  return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_link "$LINENO"; then :
4969  eval $cacheid=yes
4970else
4971  eval $cacheid=no
4972fi
4973rm -f core conftest.err conftest.$ac_objext \
4974    conftest$ac_exeext conftest.$ac_ext
4975fi
4976
4977
4978		CFLAGS="$xorg_testset_save_CFLAGS"
4979
4980		eval supported=\$$cacheid
4981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4982$as_echo "$supported" >&6; }
4983		if test "$supported" = "yes" ; then
4984			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4985			found="yes"
4986		fi
4987	fi
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003xorg_testset_save_CFLAGS="$CFLAGS"
5004
5005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5010  $as_echo_n "(cached) " >&6
5011else
5012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013/* end confdefs.h.  */
5014int i;
5015_ACEOF
5016if ac_fn_c_try_compile "$LINENO"; then :
5017  xorg_cv_cc_flag_unknown_warning_option=yes
5018else
5019  xorg_cv_cc_flag_unknown_warning_option=no
5020fi
5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022fi
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5026	CFLAGS="$xorg_testset_save_CFLAGS"
5027fi
5028
5029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032	fi
5033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041int i;
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"; then :
5044  xorg_cv_cc_flag_unused_command_line_argument=yes
5045else
5046  xorg_cv_cc_flag_unused_command_line_argument=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5053	CFLAGS="$xorg_testset_save_CFLAGS"
5054fi
5055
5056found="no"
5057
5058	if test $found = "no" ; then
5059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061		fi
5062
5063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5065		fi
5066
5067		CFLAGS="$CFLAGS -Wpointer-arith"
5068
5069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5070$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5071		cacheid=xorg_cv_cc_flag__Wpointer_arith
5072		if eval \${$cacheid+:} false; then :
5073  $as_echo_n "(cached) " >&6
5074else
5075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077int i;
5078int
5079main ()
5080{
5081
5082  ;
5083  return 0;
5084}
5085_ACEOF
5086if ac_fn_c_try_link "$LINENO"; then :
5087  eval $cacheid=yes
5088else
5089  eval $cacheid=no
5090fi
5091rm -f core conftest.err conftest.$ac_objext \
5092    conftest$ac_exeext conftest.$ac_ext
5093fi
5094
5095
5096		CFLAGS="$xorg_testset_save_CFLAGS"
5097
5098		eval supported=\$$cacheid
5099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5100$as_echo "$supported" >&6; }
5101		if test "$supported" = "yes" ; then
5102			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5103			found="yes"
5104		fi
5105	fi
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121xorg_testset_save_CFLAGS="$CFLAGS"
5122
5123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h.  */
5132int i;
5133_ACEOF
5134if ac_fn_c_try_compile "$LINENO"; then :
5135  xorg_cv_cc_flag_unknown_warning_option=yes
5136else
5137  xorg_cv_cc_flag_unknown_warning_option=no
5138fi
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5144	CFLAGS="$xorg_testset_save_CFLAGS"
5145fi
5146
5147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150	fi
5151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158/* end confdefs.h.  */
5159int i;
5160_ACEOF
5161if ac_fn_c_try_compile "$LINENO"; then :
5162  xorg_cv_cc_flag_unused_command_line_argument=yes
5163else
5164  xorg_cv_cc_flag_unused_command_line_argument=no
5165fi
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167fi
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5171	CFLAGS="$xorg_testset_save_CFLAGS"
5172fi
5173
5174found="no"
5175
5176	if test $found = "no" ; then
5177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5179		fi
5180
5181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5183		fi
5184
5185		CFLAGS="$CFLAGS -Wmissing-declarations"
5186
5187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5188$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5189		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5190		if eval \${$cacheid+:} false; then :
5191  $as_echo_n "(cached) " >&6
5192else
5193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194/* end confdefs.h.  */
5195int i;
5196int
5197main ()
5198{
5199
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204if ac_fn_c_try_link "$LINENO"; then :
5205  eval $cacheid=yes
5206else
5207  eval $cacheid=no
5208fi
5209rm -f core conftest.err conftest.$ac_objext \
5210    conftest$ac_exeext conftest.$ac_ext
5211fi
5212
5213
5214		CFLAGS="$xorg_testset_save_CFLAGS"
5215
5216		eval supported=\$$cacheid
5217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5218$as_echo "$supported" >&6; }
5219		if test "$supported" = "yes" ; then
5220			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5221			found="yes"
5222		fi
5223	fi
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239xorg_testset_save_CFLAGS="$CFLAGS"
5240
5241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5242	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250int i;
5251_ACEOF
5252if ac_fn_c_try_compile "$LINENO"; then :
5253  xorg_cv_cc_flag_unknown_warning_option=yes
5254else
5255  xorg_cv_cc_flag_unknown_warning_option=no
5256fi
5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5261	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5262	CFLAGS="$xorg_testset_save_CFLAGS"
5263fi
5264
5265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5266	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5267		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268	fi
5269	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5273  $as_echo_n "(cached) " >&6
5274else
5275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276/* end confdefs.h.  */
5277int i;
5278_ACEOF
5279if ac_fn_c_try_compile "$LINENO"; then :
5280  xorg_cv_cc_flag_unused_command_line_argument=yes
5281else
5282  xorg_cv_cc_flag_unused_command_line_argument=no
5283fi
5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289	CFLAGS="$xorg_testset_save_CFLAGS"
5290fi
5291
5292found="no"
5293
5294	if test $found = "no" ; then
5295		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297		fi
5298
5299		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301		fi
5302
5303		CFLAGS="$CFLAGS -Wformat=2"
5304
5305		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5306$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5307		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5308		if eval \${$cacheid+:} false; then :
5309  $as_echo_n "(cached) " >&6
5310else
5311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312/* end confdefs.h.  */
5313int i;
5314int
5315main ()
5316{
5317
5318  ;
5319  return 0;
5320}
5321_ACEOF
5322if ac_fn_c_try_link "$LINENO"; then :
5323  eval $cacheid=yes
5324else
5325  eval $cacheid=no
5326fi
5327rm -f core conftest.err conftest.$ac_objext \
5328    conftest$ac_exeext conftest.$ac_ext
5329fi
5330
5331
5332		CFLAGS="$xorg_testset_save_CFLAGS"
5333
5334		eval supported=\$$cacheid
5335		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5336$as_echo "$supported" >&6; }
5337		if test "$supported" = "yes" ; then
5338			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5339			found="yes"
5340		fi
5341	fi
5342
5343	if test $found = "no" ; then
5344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346		fi
5347
5348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350		fi
5351
5352		CFLAGS="$CFLAGS -Wformat"
5353
5354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5355$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5356		cacheid=xorg_cv_cc_flag__Wformat
5357		if eval \${$cacheid+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362int i;
5363int
5364main ()
5365{
5366
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371if ac_fn_c_try_link "$LINENO"; then :
5372  eval $cacheid=yes
5373else
5374  eval $cacheid=no
5375fi
5376rm -f core conftest.err conftest.$ac_objext \
5377    conftest$ac_exeext conftest.$ac_ext
5378fi
5379
5380
5381		CFLAGS="$xorg_testset_save_CFLAGS"
5382
5383		eval supported=\$$cacheid
5384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385$as_echo "$supported" >&6; }
5386		if test "$supported" = "yes" ; then
5387			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5388			found="yes"
5389		fi
5390	fi
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408xorg_testset_save_CFLAGS="$CFLAGS"
5409
5410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5415  $as_echo_n "(cached) " >&6
5416else
5417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418/* end confdefs.h.  */
5419int i;
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422  xorg_cv_cc_flag_unknown_warning_option=yes
5423else
5424  xorg_cv_cc_flag_unknown_warning_option=no
5425fi
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427fi
5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5431	CFLAGS="$xorg_testset_save_CFLAGS"
5432fi
5433
5434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437	fi
5438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445/* end confdefs.h.  */
5446int i;
5447_ACEOF
5448if ac_fn_c_try_compile "$LINENO"; then :
5449  xorg_cv_cc_flag_unused_command_line_argument=yes
5450else
5451  xorg_cv_cc_flag_unused_command_line_argument=no
5452fi
5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454fi
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5458	CFLAGS="$xorg_testset_save_CFLAGS"
5459fi
5460
5461found="no"
5462
5463	if test $found = "no" ; then
5464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466		fi
5467
5468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5470		fi
5471
5472		CFLAGS="$CFLAGS -Wstrict-prototypes"
5473
5474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5475$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5476		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5477		if eval \${$cacheid+:} false; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h.  */
5482int i;
5483int
5484main ()
5485{
5486
5487  ;
5488  return 0;
5489}
5490_ACEOF
5491if ac_fn_c_try_link "$LINENO"; then :
5492  eval $cacheid=yes
5493else
5494  eval $cacheid=no
5495fi
5496rm -f core conftest.err conftest.$ac_objext \
5497    conftest$ac_exeext conftest.$ac_ext
5498fi
5499
5500
5501		CFLAGS="$xorg_testset_save_CFLAGS"
5502
5503		eval supported=\$$cacheid
5504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5505$as_echo "$supported" >&6; }
5506		if test "$supported" = "yes" ; then
5507			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5508			found="yes"
5509		fi
5510	fi
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526xorg_testset_save_CFLAGS="$CFLAGS"
5527
5528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5533  $as_echo_n "(cached) " >&6
5534else
5535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536/* end confdefs.h.  */
5537int i;
5538_ACEOF
5539if ac_fn_c_try_compile "$LINENO"; then :
5540  xorg_cv_cc_flag_unknown_warning_option=yes
5541else
5542  xorg_cv_cc_flag_unknown_warning_option=no
5543fi
5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5549	CFLAGS="$xorg_testset_save_CFLAGS"
5550fi
5551
5552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555	fi
5556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5560  $as_echo_n "(cached) " >&6
5561else
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564int i;
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567  xorg_cv_cc_flag_unused_command_line_argument=yes
5568else
5569  xorg_cv_cc_flag_unused_command_line_argument=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5576	CFLAGS="$xorg_testset_save_CFLAGS"
5577fi
5578
5579found="no"
5580
5581	if test $found = "no" ; then
5582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584		fi
5585
5586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5588		fi
5589
5590		CFLAGS="$CFLAGS -Wmissing-prototypes"
5591
5592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5593$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5594		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5595		if eval \${$cacheid+:} false; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5599/* end confdefs.h.  */
5600int i;
5601int
5602main ()
5603{
5604
5605  ;
5606  return 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_link "$LINENO"; then :
5610  eval $cacheid=yes
5611else
5612  eval $cacheid=no
5613fi
5614rm -f core conftest.err conftest.$ac_objext \
5615    conftest$ac_exeext conftest.$ac_ext
5616fi
5617
5618
5619		CFLAGS="$xorg_testset_save_CFLAGS"
5620
5621		eval supported=\$$cacheid
5622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5623$as_echo "$supported" >&6; }
5624		if test "$supported" = "yes" ; then
5625			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5626			found="yes"
5627		fi
5628	fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644xorg_testset_save_CFLAGS="$CFLAGS"
5645
5646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5651  $as_echo_n "(cached) " >&6
5652else
5653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658  xorg_cv_cc_flag_unknown_warning_option=yes
5659else
5660  xorg_cv_cc_flag_unknown_warning_option=no
5661fi
5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663fi
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5667	CFLAGS="$xorg_testset_save_CFLAGS"
5668fi
5669
5670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673	fi
5674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5678  $as_echo_n "(cached) " >&6
5679else
5680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681/* end confdefs.h.  */
5682int i;
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"; then :
5685  xorg_cv_cc_flag_unused_command_line_argument=yes
5686else
5687  xorg_cv_cc_flag_unused_command_line_argument=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690fi
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694	CFLAGS="$xorg_testset_save_CFLAGS"
5695fi
5696
5697found="no"
5698
5699	if test $found = "no" ; then
5700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702		fi
5703
5704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706		fi
5707
5708		CFLAGS="$CFLAGS -Wnested-externs"
5709
5710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5711$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5712		cacheid=xorg_cv_cc_flag__Wnested_externs
5713		if eval \${$cacheid+:} false; then :
5714  $as_echo_n "(cached) " >&6
5715else
5716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717/* end confdefs.h.  */
5718int i;
5719int
5720main ()
5721{
5722
5723  ;
5724  return 0;
5725}
5726_ACEOF
5727if ac_fn_c_try_link "$LINENO"; then :
5728  eval $cacheid=yes
5729else
5730  eval $cacheid=no
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733    conftest$ac_exeext conftest.$ac_ext
5734fi
5735
5736
5737		CFLAGS="$xorg_testset_save_CFLAGS"
5738
5739		eval supported=\$$cacheid
5740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5741$as_echo "$supported" >&6; }
5742		if test "$supported" = "yes" ; then
5743			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5744			found="yes"
5745		fi
5746	fi
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762xorg_testset_save_CFLAGS="$CFLAGS"
5763
5764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773int i;
5774_ACEOF
5775if ac_fn_c_try_compile "$LINENO"; then :
5776  xorg_cv_cc_flag_unknown_warning_option=yes
5777else
5778  xorg_cv_cc_flag_unknown_warning_option=no
5779fi
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781fi
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785	CFLAGS="$xorg_testset_save_CFLAGS"
5786fi
5787
5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791	fi
5792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h.  */
5800int i;
5801_ACEOF
5802if ac_fn_c_try_compile "$LINENO"; then :
5803  xorg_cv_cc_flag_unused_command_line_argument=yes
5804else
5805  xorg_cv_cc_flag_unused_command_line_argument=no
5806fi
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5812	CFLAGS="$xorg_testset_save_CFLAGS"
5813fi
5814
5815found="no"
5816
5817	if test $found = "no" ; then
5818		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820		fi
5821
5822		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824		fi
5825
5826		CFLAGS="$CFLAGS -Wbad-function-cast"
5827
5828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5829$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5830		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5831		if eval \${$cacheid+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837int
5838main ()
5839{
5840
5841  ;
5842  return 0;
5843}
5844_ACEOF
5845if ac_fn_c_try_link "$LINENO"; then :
5846  eval $cacheid=yes
5847else
5848  eval $cacheid=no
5849fi
5850rm -f core conftest.err conftest.$ac_objext \
5851    conftest$ac_exeext conftest.$ac_ext
5852fi
5853
5854
5855		CFLAGS="$xorg_testset_save_CFLAGS"
5856
5857		eval supported=\$$cacheid
5858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5859$as_echo "$supported" >&6; }
5860		if test "$supported" = "yes" ; then
5861			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5862			found="yes"
5863		fi
5864	fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880xorg_testset_save_CFLAGS="$CFLAGS"
5881
5882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891int i;
5892_ACEOF
5893if ac_fn_c_try_compile "$LINENO"; then :
5894  xorg_cv_cc_flag_unknown_warning_option=yes
5895else
5896  xorg_cv_cc_flag_unknown_warning_option=no
5897fi
5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5903	CFLAGS="$xorg_testset_save_CFLAGS"
5904fi
5905
5906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909	fi
5910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917/* end confdefs.h.  */
5918int i;
5919_ACEOF
5920if ac_fn_c_try_compile "$LINENO"; then :
5921  xorg_cv_cc_flag_unused_command_line_argument=yes
5922else
5923  xorg_cv_cc_flag_unused_command_line_argument=no
5924fi
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5930	CFLAGS="$xorg_testset_save_CFLAGS"
5931fi
5932
5933found="no"
5934
5935	if test $found = "no" ; then
5936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938		fi
5939
5940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942		fi
5943
5944		CFLAGS="$CFLAGS -Wold-style-definition"
5945
5946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5947$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5948		cacheid=xorg_cv_cc_flag__Wold_style_definition
5949		if eval \${$cacheid+:} false; then :
5950  $as_echo_n "(cached) " >&6
5951else
5952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953/* end confdefs.h.  */
5954int i;
5955int
5956main ()
5957{
5958
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963if ac_fn_c_try_link "$LINENO"; then :
5964  eval $cacheid=yes
5965else
5966  eval $cacheid=no
5967fi
5968rm -f core conftest.err conftest.$ac_objext \
5969    conftest$ac_exeext conftest.$ac_ext
5970fi
5971
5972
5973		CFLAGS="$xorg_testset_save_CFLAGS"
5974
5975		eval supported=\$$cacheid
5976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5977$as_echo "$supported" >&6; }
5978		if test "$supported" = "yes" ; then
5979			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5980			found="yes"
5981		fi
5982	fi
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998xorg_testset_save_CFLAGS="$CFLAGS"
5999
6000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012  xorg_cv_cc_flag_unknown_warning_option=yes
6013else
6014  xorg_cv_cc_flag_unknown_warning_option=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027	fi
6028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036int i;
6037_ACEOF
6038if ac_fn_c_try_compile "$LINENO"; then :
6039  xorg_cv_cc_flag_unused_command_line_argument=yes
6040else
6041  xorg_cv_cc_flag_unused_command_line_argument=no
6042fi
6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044fi
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6048	CFLAGS="$xorg_testset_save_CFLAGS"
6049fi
6050
6051found="no"
6052
6053	if test $found = "no" ; then
6054		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6056		fi
6057
6058		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6060		fi
6061
6062		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6063
6064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6065$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6066		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6067		if eval \${$cacheid+:} false; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072int i;
6073int
6074main ()
6075{
6076
6077  ;
6078  return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_link "$LINENO"; then :
6082  eval $cacheid=yes
6083else
6084  eval $cacheid=no
6085fi
6086rm -f core conftest.err conftest.$ac_objext \
6087    conftest$ac_exeext conftest.$ac_ext
6088fi
6089
6090
6091		CFLAGS="$xorg_testset_save_CFLAGS"
6092
6093		eval supported=\$$cacheid
6094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6095$as_echo "$supported" >&6; }
6096		if test "$supported" = "yes" ; then
6097			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6098			found="yes"
6099		fi
6100	fi
6101
6102
6103
6104
6105
6106# This chunk adds additional warnings that could catch undesired effects.
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120xorg_testset_save_CFLAGS="$CFLAGS"
6121
6122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132_ACEOF
6133if ac_fn_c_try_compile "$LINENO"; then :
6134  xorg_cv_cc_flag_unknown_warning_option=yes
6135else
6136  xorg_cv_cc_flag_unknown_warning_option=no
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6143	CFLAGS="$xorg_testset_save_CFLAGS"
6144fi
6145
6146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6149	fi
6150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h.  */
6158int i;
6159_ACEOF
6160if ac_fn_c_try_compile "$LINENO"; then :
6161  xorg_cv_cc_flag_unused_command_line_argument=yes
6162else
6163  xorg_cv_cc_flag_unused_command_line_argument=no
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166fi
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6170	CFLAGS="$xorg_testset_save_CFLAGS"
6171fi
6172
6173found="no"
6174
6175	if test $found = "no" ; then
6176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6178		fi
6179
6180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6182		fi
6183
6184		CFLAGS="$CFLAGS -Wunused"
6185
6186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6187$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6188		cacheid=xorg_cv_cc_flag__Wunused
6189		if eval \${$cacheid+:} false; then :
6190  $as_echo_n "(cached) " >&6
6191else
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194int i;
6195int
6196main ()
6197{
6198
6199  ;
6200  return 0;
6201}
6202_ACEOF
6203if ac_fn_c_try_link "$LINENO"; then :
6204  eval $cacheid=yes
6205else
6206  eval $cacheid=no
6207fi
6208rm -f core conftest.err conftest.$ac_objext \
6209    conftest$ac_exeext conftest.$ac_ext
6210fi
6211
6212
6213		CFLAGS="$xorg_testset_save_CFLAGS"
6214
6215		eval supported=\$$cacheid
6216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6217$as_echo "$supported" >&6; }
6218		if test "$supported" = "yes" ; then
6219			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6220			found="yes"
6221		fi
6222	fi
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238xorg_testset_save_CFLAGS="$CFLAGS"
6239
6240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250_ACEOF
6251if ac_fn_c_try_compile "$LINENO"; then :
6252  xorg_cv_cc_flag_unknown_warning_option=yes
6253else
6254  xorg_cv_cc_flag_unknown_warning_option=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6261	CFLAGS="$xorg_testset_save_CFLAGS"
6262fi
6263
6264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267	fi
6268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275/* end confdefs.h.  */
6276int i;
6277_ACEOF
6278if ac_fn_c_try_compile "$LINENO"; then :
6279  xorg_cv_cc_flag_unused_command_line_argument=yes
6280else
6281  xorg_cv_cc_flag_unused_command_line_argument=no
6282fi
6283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284fi
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6288	CFLAGS="$xorg_testset_save_CFLAGS"
6289fi
6290
6291found="no"
6292
6293	if test $found = "no" ; then
6294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6296		fi
6297
6298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6300		fi
6301
6302		CFLAGS="$CFLAGS -Wuninitialized"
6303
6304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6305$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6306		cacheid=xorg_cv_cc_flag__Wuninitialized
6307		if eval \${$cacheid+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312int i;
6313int
6314main ()
6315{
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321if ac_fn_c_try_link "$LINENO"; then :
6322  eval $cacheid=yes
6323else
6324  eval $cacheid=no
6325fi
6326rm -f core conftest.err conftest.$ac_objext \
6327    conftest$ac_exeext conftest.$ac_ext
6328fi
6329
6330
6331		CFLAGS="$xorg_testset_save_CFLAGS"
6332
6333		eval supported=\$$cacheid
6334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6335$as_echo "$supported" >&6; }
6336		if test "$supported" = "yes" ; then
6337			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6338			found="yes"
6339		fi
6340	fi
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356xorg_testset_save_CFLAGS="$CFLAGS"
6357
6358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370  xorg_cv_cc_flag_unknown_warning_option=yes
6371else
6372  xorg_cv_cc_flag_unknown_warning_option=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6385	fi
6386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6390  $as_echo_n "(cached) " >&6
6391else
6392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h.  */
6394int i;
6395_ACEOF
6396if ac_fn_c_try_compile "$LINENO"; then :
6397  xorg_cv_cc_flag_unused_command_line_argument=yes
6398else
6399  xorg_cv_cc_flag_unused_command_line_argument=no
6400fi
6401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402fi
6403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6406	CFLAGS="$xorg_testset_save_CFLAGS"
6407fi
6408
6409found="no"
6410
6411	if test $found = "no" ; then
6412		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6414		fi
6415
6416		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418		fi
6419
6420		CFLAGS="$CFLAGS -Wshadow"
6421
6422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6423$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6424		cacheid=xorg_cv_cc_flag__Wshadow
6425		if eval \${$cacheid+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430int i;
6431int
6432main ()
6433{
6434
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439if ac_fn_c_try_link "$LINENO"; then :
6440  eval $cacheid=yes
6441else
6442  eval $cacheid=no
6443fi
6444rm -f core conftest.err conftest.$ac_objext \
6445    conftest$ac_exeext conftest.$ac_ext
6446fi
6447
6448
6449		CFLAGS="$xorg_testset_save_CFLAGS"
6450
6451		eval supported=\$$cacheid
6452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6453$as_echo "$supported" >&6; }
6454		if test "$supported" = "yes" ; then
6455			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6456			found="yes"
6457		fi
6458	fi
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474xorg_testset_save_CFLAGS="$CFLAGS"
6475
6476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485int i;
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488  xorg_cv_cc_flag_unknown_warning_option=yes
6489else
6490  xorg_cv_cc_flag_unknown_warning_option=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6497	CFLAGS="$xorg_testset_save_CFLAGS"
6498fi
6499
6500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503	fi
6504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6508  $as_echo_n "(cached) " >&6
6509else
6510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h.  */
6512int i;
6513_ACEOF
6514if ac_fn_c_try_compile "$LINENO"; then :
6515  xorg_cv_cc_flag_unused_command_line_argument=yes
6516else
6517  xorg_cv_cc_flag_unused_command_line_argument=no
6518fi
6519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6524	CFLAGS="$xorg_testset_save_CFLAGS"
6525fi
6526
6527found="no"
6528
6529	if test $found = "no" ; then
6530		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6532		fi
6533
6534		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6536		fi
6537
6538		CFLAGS="$CFLAGS -Wcast-qual"
6539
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6541$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6542		cacheid=xorg_cv_cc_flag__Wcast_qual
6543		if eval \${$cacheid+:} false; then :
6544  $as_echo_n "(cached) " >&6
6545else
6546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548int i;
6549int
6550main ()
6551{
6552
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557if ac_fn_c_try_link "$LINENO"; then :
6558  eval $cacheid=yes
6559else
6560  eval $cacheid=no
6561fi
6562rm -f core conftest.err conftest.$ac_objext \
6563    conftest$ac_exeext conftest.$ac_ext
6564fi
6565
6566
6567		CFLAGS="$xorg_testset_save_CFLAGS"
6568
6569		eval supported=\$$cacheid
6570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6571$as_echo "$supported" >&6; }
6572		if test "$supported" = "yes" ; then
6573			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6574			found="yes"
6575		fi
6576	fi
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592xorg_testset_save_CFLAGS="$CFLAGS"
6593
6594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"; then :
6606  xorg_cv_cc_flag_unknown_warning_option=yes
6607else
6608  xorg_cv_cc_flag_unknown_warning_option=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	fi
6622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6626  $as_echo_n "(cached) " >&6
6627else
6628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629/* end confdefs.h.  */
6630int i;
6631_ACEOF
6632if ac_fn_c_try_compile "$LINENO"; then :
6633  xorg_cv_cc_flag_unused_command_line_argument=yes
6634else
6635  xorg_cv_cc_flag_unused_command_line_argument=no
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638fi
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6642	CFLAGS="$xorg_testset_save_CFLAGS"
6643fi
6644
6645found="no"
6646
6647	if test $found = "no" ; then
6648		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650		fi
6651
6652		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6654		fi
6655
6656		CFLAGS="$CFLAGS -Wmissing-noreturn"
6657
6658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6659$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6660		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6661		if eval \${$cacheid+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666int i;
6667int
6668main ()
6669{
6670
6671  ;
6672  return 0;
6673}
6674_ACEOF
6675if ac_fn_c_try_link "$LINENO"; then :
6676  eval $cacheid=yes
6677else
6678  eval $cacheid=no
6679fi
6680rm -f core conftest.err conftest.$ac_objext \
6681    conftest$ac_exeext conftest.$ac_ext
6682fi
6683
6684
6685		CFLAGS="$xorg_testset_save_CFLAGS"
6686
6687		eval supported=\$$cacheid
6688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6689$as_echo "$supported" >&6; }
6690		if test "$supported" = "yes" ; then
6691			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6692			found="yes"
6693		fi
6694	fi
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710xorg_testset_save_CFLAGS="$CFLAGS"
6711
6712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724  xorg_cv_cc_flag_unknown_warning_option=yes
6725else
6726  xorg_cv_cc_flag_unknown_warning_option=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6733	CFLAGS="$xorg_testset_save_CFLAGS"
6734fi
6735
6736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739	fi
6740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6744  $as_echo_n "(cached) " >&6
6745else
6746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747/* end confdefs.h.  */
6748int i;
6749_ACEOF
6750if ac_fn_c_try_compile "$LINENO"; then :
6751  xorg_cv_cc_flag_unused_command_line_argument=yes
6752else
6753  xorg_cv_cc_flag_unused_command_line_argument=no
6754fi
6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756fi
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6760	CFLAGS="$xorg_testset_save_CFLAGS"
6761fi
6762
6763found="no"
6764
6765	if test $found = "no" ; then
6766		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768		fi
6769
6770		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6772		fi
6773
6774		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6775
6776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6777$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6778		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6779		if eval \${$cacheid+:} false; then :
6780  $as_echo_n "(cached) " >&6
6781else
6782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783/* end confdefs.h.  */
6784int i;
6785int
6786main ()
6787{
6788
6789  ;
6790  return 0;
6791}
6792_ACEOF
6793if ac_fn_c_try_link "$LINENO"; then :
6794  eval $cacheid=yes
6795else
6796  eval $cacheid=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext \
6799    conftest$ac_exeext conftest.$ac_ext
6800fi
6801
6802
6803		CFLAGS="$xorg_testset_save_CFLAGS"
6804
6805		eval supported=\$$cacheid
6806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6807$as_echo "$supported" >&6; }
6808		if test "$supported" = "yes" ; then
6809			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6810			found="yes"
6811		fi
6812	fi
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828xorg_testset_save_CFLAGS="$CFLAGS"
6829
6830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839int i;
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842  xorg_cv_cc_flag_unknown_warning_option=yes
6843else
6844  xorg_cv_cc_flag_unknown_warning_option=no
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6851	CFLAGS="$xorg_testset_save_CFLAGS"
6852fi
6853
6854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857	fi
6858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6865/* end confdefs.h.  */
6866int i;
6867_ACEOF
6868if ac_fn_c_try_compile "$LINENO"; then :
6869  xorg_cv_cc_flag_unused_command_line_argument=yes
6870else
6871  xorg_cv_cc_flag_unused_command_line_argument=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6878	CFLAGS="$xorg_testset_save_CFLAGS"
6879fi
6880
6881found="no"
6882
6883	if test $found = "no" ; then
6884		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886		fi
6887
6888		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890		fi
6891
6892		CFLAGS="$CFLAGS -Wredundant-decls"
6893
6894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6895$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6896		cacheid=xorg_cv_cc_flag__Wredundant_decls
6897		if eval \${$cacheid+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901/* end confdefs.h.  */
6902int i;
6903int
6904main ()
6905{
6906
6907  ;
6908  return 0;
6909}
6910_ACEOF
6911if ac_fn_c_try_link "$LINENO"; then :
6912  eval $cacheid=yes
6913else
6914  eval $cacheid=no
6915fi
6916rm -f core conftest.err conftest.$ac_objext \
6917    conftest$ac_exeext conftest.$ac_ext
6918fi
6919
6920
6921		CFLAGS="$xorg_testset_save_CFLAGS"
6922
6923		eval supported=\$$cacheid
6924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6925$as_echo "$supported" >&6; }
6926		if test "$supported" = "yes" ; then
6927			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6928			found="yes"
6929		fi
6930	fi
6931
6932
6933
6934# These are currently disabled because they are noisy.  They will be enabled
6935# in the future once the codebase is sufficiently modernized to silence
6936# them.  For now, I don't want them to drown out the other warnings.
6937# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6938# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6939# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6940
6941# Turn some warnings into errors, so we don't accidently get successful builds
6942# when there are problems that should be fixed.
6943
6944if test "x$SELECTIVE_WERROR" = "xyes" ; then
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958xorg_testset_save_CFLAGS="$CFLAGS"
6959
6960if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6961	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6963$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6964if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969int i;
6970_ACEOF
6971if ac_fn_c_try_compile "$LINENO"; then :
6972  xorg_cv_cc_flag_unknown_warning_option=yes
6973else
6974  xorg_cv_cc_flag_unknown_warning_option=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6979$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6980	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6981	CFLAGS="$xorg_testset_save_CFLAGS"
6982fi
6983
6984if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6985	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987	fi
6988	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6990$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6991if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6992  $as_echo_n "(cached) " >&6
6993else
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996int i;
6997_ACEOF
6998if ac_fn_c_try_compile "$LINENO"; then :
6999  xorg_cv_cc_flag_unused_command_line_argument=yes
7000else
7001  xorg_cv_cc_flag_unused_command_line_argument=no
7002fi
7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7006$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7007	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7008	CFLAGS="$xorg_testset_save_CFLAGS"
7009fi
7010
7011found="no"
7012
7013	if test $found = "no" ; then
7014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016		fi
7017
7018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7020		fi
7021
7022		CFLAGS="$CFLAGS -Werror=implicit"
7023
7024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7025$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7026		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7027		if eval \${$cacheid+:} false; then :
7028  $as_echo_n "(cached) " >&6
7029else
7030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h.  */
7032int i;
7033int
7034main ()
7035{
7036
7037  ;
7038  return 0;
7039}
7040_ACEOF
7041if ac_fn_c_try_link "$LINENO"; then :
7042  eval $cacheid=yes
7043else
7044  eval $cacheid=no
7045fi
7046rm -f core conftest.err conftest.$ac_objext \
7047    conftest$ac_exeext conftest.$ac_ext
7048fi
7049
7050
7051		CFLAGS="$xorg_testset_save_CFLAGS"
7052
7053		eval supported=\$$cacheid
7054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7055$as_echo "$supported" >&6; }
7056		if test "$supported" = "yes" ; then
7057			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7058			found="yes"
7059		fi
7060	fi
7061
7062	if test $found = "no" ; then
7063		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7064			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7065		fi
7066
7067		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7068			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7069		fi
7070
7071		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7072
7073		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7074$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7075		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7076		if eval \${$cacheid+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082int
7083main ()
7084{
7085
7086  ;
7087  return 0;
7088}
7089_ACEOF
7090if ac_fn_c_try_link "$LINENO"; then :
7091  eval $cacheid=yes
7092else
7093  eval $cacheid=no
7094fi
7095rm -f core conftest.err conftest.$ac_objext \
7096    conftest$ac_exeext conftest.$ac_ext
7097fi
7098
7099
7100		CFLAGS="$xorg_testset_save_CFLAGS"
7101
7102		eval supported=\$$cacheid
7103		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7104$as_echo "$supported" >&6; }
7105		if test "$supported" = "yes" ; then
7106			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7107			found="yes"
7108		fi
7109	fi
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125xorg_testset_save_CFLAGS="$CFLAGS"
7126
7127if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7128	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7130$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7131if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137_ACEOF
7138if ac_fn_c_try_compile "$LINENO"; then :
7139  xorg_cv_cc_flag_unknown_warning_option=yes
7140else
7141  xorg_cv_cc_flag_unknown_warning_option=no
7142fi
7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7146$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7148	CFLAGS="$xorg_testset_save_CFLAGS"
7149fi
7150
7151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154	fi
7155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7157$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7158if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163int i;
7164_ACEOF
7165if ac_fn_c_try_compile "$LINENO"; then :
7166  xorg_cv_cc_flag_unused_command_line_argument=yes
7167else
7168  xorg_cv_cc_flag_unused_command_line_argument=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175	CFLAGS="$xorg_testset_save_CFLAGS"
7176fi
7177
7178found="no"
7179
7180	if test $found = "no" ; then
7181		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183		fi
7184
7185		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187		fi
7188
7189		CFLAGS="$CFLAGS -Werror=nonnull"
7190
7191		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7192$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7193		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7194		if eval \${$cacheid+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199int i;
7200int
7201main ()
7202{
7203
7204  ;
7205  return 0;
7206}
7207_ACEOF
7208if ac_fn_c_try_link "$LINENO"; then :
7209  eval $cacheid=yes
7210else
7211  eval $cacheid=no
7212fi
7213rm -f core conftest.err conftest.$ac_objext \
7214    conftest$ac_exeext conftest.$ac_ext
7215fi
7216
7217
7218		CFLAGS="$xorg_testset_save_CFLAGS"
7219
7220		eval supported=\$$cacheid
7221		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7222$as_echo "$supported" >&6; }
7223		if test "$supported" = "yes" ; then
7224			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7225			found="yes"
7226		fi
7227	fi
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243xorg_testset_save_CFLAGS="$CFLAGS"
7244
7245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254int i;
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257  xorg_cv_cc_flag_unknown_warning_option=yes
7258else
7259  xorg_cv_cc_flag_unknown_warning_option=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272	fi
7273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7277  $as_echo_n "(cached) " >&6
7278else
7279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281int i;
7282_ACEOF
7283if ac_fn_c_try_compile "$LINENO"; then :
7284  xorg_cv_cc_flag_unused_command_line_argument=yes
7285else
7286  xorg_cv_cc_flag_unused_command_line_argument=no
7287fi
7288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7293	CFLAGS="$xorg_testset_save_CFLAGS"
7294fi
7295
7296found="no"
7297
7298	if test $found = "no" ; then
7299		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7301		fi
7302
7303		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7305		fi
7306
7307		CFLAGS="$CFLAGS -Werror=init-self"
7308
7309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7310$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7311		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7312		if eval \${$cacheid+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318int
7319main ()
7320{
7321
7322  ;
7323  return 0;
7324}
7325_ACEOF
7326if ac_fn_c_try_link "$LINENO"; then :
7327  eval $cacheid=yes
7328else
7329  eval $cacheid=no
7330fi
7331rm -f core conftest.err conftest.$ac_objext \
7332    conftest$ac_exeext conftest.$ac_ext
7333fi
7334
7335
7336		CFLAGS="$xorg_testset_save_CFLAGS"
7337
7338		eval supported=\$$cacheid
7339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7340$as_echo "$supported" >&6; }
7341		if test "$supported" = "yes" ; then
7342			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7343			found="yes"
7344		fi
7345	fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361xorg_testset_save_CFLAGS="$CFLAGS"
7362
7363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"; then :
7375  xorg_cv_cc_flag_unknown_warning_option=yes
7376else
7377  xorg_cv_cc_flag_unknown_warning_option=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7384	CFLAGS="$xorg_testset_save_CFLAGS"
7385fi
7386
7387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390	fi
7391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h.  */
7399int i;
7400_ACEOF
7401if ac_fn_c_try_compile "$LINENO"; then :
7402  xorg_cv_cc_flag_unused_command_line_argument=yes
7403else
7404  xorg_cv_cc_flag_unused_command_line_argument=no
7405fi
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407fi
7408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7411	CFLAGS="$xorg_testset_save_CFLAGS"
7412fi
7413
7414found="no"
7415
7416	if test $found = "no" ; then
7417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7419		fi
7420
7421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7423		fi
7424
7425		CFLAGS="$CFLAGS -Werror=main"
7426
7427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7428$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7429		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7430		if eval \${$cacheid+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435int i;
7436int
7437main ()
7438{
7439
7440  ;
7441  return 0;
7442}
7443_ACEOF
7444if ac_fn_c_try_link "$LINENO"; then :
7445  eval $cacheid=yes
7446else
7447  eval $cacheid=no
7448fi
7449rm -f core conftest.err conftest.$ac_objext \
7450    conftest$ac_exeext conftest.$ac_ext
7451fi
7452
7453
7454		CFLAGS="$xorg_testset_save_CFLAGS"
7455
7456		eval supported=\$$cacheid
7457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7458$as_echo "$supported" >&6; }
7459		if test "$supported" = "yes" ; then
7460			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7461			found="yes"
7462		fi
7463	fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479xorg_testset_save_CFLAGS="$CFLAGS"
7480
7481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491_ACEOF
7492if ac_fn_c_try_compile "$LINENO"; then :
7493  xorg_cv_cc_flag_unknown_warning_option=yes
7494else
7495  xorg_cv_cc_flag_unknown_warning_option=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7502	CFLAGS="$xorg_testset_save_CFLAGS"
7503fi
7504
7505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508	fi
7509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516/* end confdefs.h.  */
7517int i;
7518_ACEOF
7519if ac_fn_c_try_compile "$LINENO"; then :
7520  xorg_cv_cc_flag_unused_command_line_argument=yes
7521else
7522  xorg_cv_cc_flag_unused_command_line_argument=no
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525fi
7526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7529	CFLAGS="$xorg_testset_save_CFLAGS"
7530fi
7531
7532found="no"
7533
7534	if test $found = "no" ; then
7535		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7537		fi
7538
7539		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541		fi
7542
7543		CFLAGS="$CFLAGS -Werror=missing-braces"
7544
7545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7546$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7547		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7548		if eval \${$cacheid+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553int i;
7554int
7555main ()
7556{
7557
7558  ;
7559  return 0;
7560}
7561_ACEOF
7562if ac_fn_c_try_link "$LINENO"; then :
7563  eval $cacheid=yes
7564else
7565  eval $cacheid=no
7566fi
7567rm -f core conftest.err conftest.$ac_objext \
7568    conftest$ac_exeext conftest.$ac_ext
7569fi
7570
7571
7572		CFLAGS="$xorg_testset_save_CFLAGS"
7573
7574		eval supported=\$$cacheid
7575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7576$as_echo "$supported" >&6; }
7577		if test "$supported" = "yes" ; then
7578			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7579			found="yes"
7580		fi
7581	fi
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597xorg_testset_save_CFLAGS="$CFLAGS"
7598
7599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611  xorg_cv_cc_flag_unknown_warning_option=yes
7612else
7613  xorg_cv_cc_flag_unknown_warning_option=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626	fi
7627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7631  $as_echo_n "(cached) " >&6
7632else
7633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634/* end confdefs.h.  */
7635int i;
7636_ACEOF
7637if ac_fn_c_try_compile "$LINENO"; then :
7638  xorg_cv_cc_flag_unused_command_line_argument=yes
7639else
7640  xorg_cv_cc_flag_unused_command_line_argument=no
7641fi
7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7647	CFLAGS="$xorg_testset_save_CFLAGS"
7648fi
7649
7650found="no"
7651
7652	if test $found = "no" ; then
7653		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655		fi
7656
7657		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659		fi
7660
7661		CFLAGS="$CFLAGS -Werror=sequence-point"
7662
7663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7664$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7665		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7666		if eval \${$cacheid+:} false; then :
7667  $as_echo_n "(cached) " >&6
7668else
7669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670/* end confdefs.h.  */
7671int i;
7672int
7673main ()
7674{
7675
7676  ;
7677  return 0;
7678}
7679_ACEOF
7680if ac_fn_c_try_link "$LINENO"; then :
7681  eval $cacheid=yes
7682else
7683  eval $cacheid=no
7684fi
7685rm -f core conftest.err conftest.$ac_objext \
7686    conftest$ac_exeext conftest.$ac_ext
7687fi
7688
7689
7690		CFLAGS="$xorg_testset_save_CFLAGS"
7691
7692		eval supported=\$$cacheid
7693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7694$as_echo "$supported" >&6; }
7695		if test "$supported" = "yes" ; then
7696			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7697			found="yes"
7698		fi
7699	fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715xorg_testset_save_CFLAGS="$CFLAGS"
7716
7717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"; then :
7729  xorg_cv_cc_flag_unknown_warning_option=yes
7730else
7731  xorg_cv_cc_flag_unknown_warning_option=no
7732fi
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7738	CFLAGS="$xorg_testset_save_CFLAGS"
7739fi
7740
7741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7744	fi
7745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7749  $as_echo_n "(cached) " >&6
7750else
7751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752/* end confdefs.h.  */
7753int i;
7754_ACEOF
7755if ac_fn_c_try_compile "$LINENO"; then :
7756  xorg_cv_cc_flag_unused_command_line_argument=yes
7757else
7758  xorg_cv_cc_flag_unused_command_line_argument=no
7759fi
7760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761fi
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7765	CFLAGS="$xorg_testset_save_CFLAGS"
7766fi
7767
7768found="no"
7769
7770	if test $found = "no" ; then
7771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773		fi
7774
7775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7777		fi
7778
7779		CFLAGS="$CFLAGS -Werror=return-type"
7780
7781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7782$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7783		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7784		if eval \${$cacheid+:} false; then :
7785  $as_echo_n "(cached) " >&6
7786else
7787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h.  */
7789int i;
7790int
7791main ()
7792{
7793
7794  ;
7795  return 0;
7796}
7797_ACEOF
7798if ac_fn_c_try_link "$LINENO"; then :
7799  eval $cacheid=yes
7800else
7801  eval $cacheid=no
7802fi
7803rm -f core conftest.err conftest.$ac_objext \
7804    conftest$ac_exeext conftest.$ac_ext
7805fi
7806
7807
7808		CFLAGS="$xorg_testset_save_CFLAGS"
7809
7810		eval supported=\$$cacheid
7811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7812$as_echo "$supported" >&6; }
7813		if test "$supported" = "yes" ; then
7814			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7815			found="yes"
7816		fi
7817	fi
7818
7819	if test $found = "no" ; then
7820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822		fi
7823
7824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826		fi
7827
7828		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7829
7830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7831$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7832		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7833		if eval \${$cacheid+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839int
7840main ()
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"; then :
7848  eval $cacheid=yes
7849else
7850  eval $cacheid=no
7851fi
7852rm -f core conftest.err conftest.$ac_objext \
7853    conftest$ac_exeext conftest.$ac_ext
7854fi
7855
7856
7857		CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859		eval supported=\$$cacheid
7860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861$as_echo "$supported" >&6; }
7862		if test "$supported" = "yes" ; then
7863			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7864			found="yes"
7865		fi
7866	fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882xorg_testset_save_CFLAGS="$CFLAGS"
7883
7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893int i;
7894_ACEOF
7895if ac_fn_c_try_compile "$LINENO"; then :
7896  xorg_cv_cc_flag_unknown_warning_option=yes
7897else
7898  xorg_cv_cc_flag_unknown_warning_option=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	fi
7912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923  xorg_cv_cc_flag_unused_command_line_argument=yes
7924else
7925  xorg_cv_cc_flag_unused_command_line_argument=no
7926fi
7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7932	CFLAGS="$xorg_testset_save_CFLAGS"
7933fi
7934
7935found="no"
7936
7937	if test $found = "no" ; then
7938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940		fi
7941
7942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7944		fi
7945
7946		CFLAGS="$CFLAGS -Werror=trigraphs"
7947
7948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7949$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7950		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7951		if eval \${$cacheid+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957int
7958main ()
7959{
7960
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_link "$LINENO"; then :
7966  eval $cacheid=yes
7967else
7968  eval $cacheid=no
7969fi
7970rm -f core conftest.err conftest.$ac_objext \
7971    conftest$ac_exeext conftest.$ac_ext
7972fi
7973
7974
7975		CFLAGS="$xorg_testset_save_CFLAGS"
7976
7977		eval supported=\$$cacheid
7978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7979$as_echo "$supported" >&6; }
7980		if test "$supported" = "yes" ; then
7981			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7982			found="yes"
7983		fi
7984	fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000xorg_testset_save_CFLAGS="$CFLAGS"
8001
8002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011int i;
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014  xorg_cv_cc_flag_unknown_warning_option=yes
8015else
8016  xorg_cv_cc_flag_unknown_warning_option=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8023	CFLAGS="$xorg_testset_save_CFLAGS"
8024fi
8025
8026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029	fi
8030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038int i;
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"; then :
8041  xorg_cv_cc_flag_unused_command_line_argument=yes
8042else
8043  xorg_cv_cc_flag_unused_command_line_argument=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046fi
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8050	CFLAGS="$xorg_testset_save_CFLAGS"
8051fi
8052
8053found="no"
8054
8055	if test $found = "no" ; then
8056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058		fi
8059
8060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8062		fi
8063
8064		CFLAGS="$CFLAGS -Werror=array-bounds"
8065
8066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8067$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8068		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8069		if eval \${$cacheid+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074int i;
8075int
8076main ()
8077{
8078
8079  ;
8080  return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_link "$LINENO"; then :
8084  eval $cacheid=yes
8085else
8086  eval $cacheid=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext \
8089    conftest$ac_exeext conftest.$ac_ext
8090fi
8091
8092
8093		CFLAGS="$xorg_testset_save_CFLAGS"
8094
8095		eval supported=\$$cacheid
8096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8097$as_echo "$supported" >&6; }
8098		if test "$supported" = "yes" ; then
8099			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8100			found="yes"
8101		fi
8102	fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118xorg_testset_save_CFLAGS="$CFLAGS"
8119
8120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129int i;
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132  xorg_cv_cc_flag_unknown_warning_option=yes
8133else
8134  xorg_cv_cc_flag_unknown_warning_option=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8141	CFLAGS="$xorg_testset_save_CFLAGS"
8142fi
8143
8144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147	fi
8148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156int i;
8157_ACEOF
8158if ac_fn_c_try_compile "$LINENO"; then :
8159  xorg_cv_cc_flag_unused_command_line_argument=yes
8160else
8161  xorg_cv_cc_flag_unused_command_line_argument=no
8162fi
8163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8168	CFLAGS="$xorg_testset_save_CFLAGS"
8169fi
8170
8171found="no"
8172
8173	if test $found = "no" ; then
8174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176		fi
8177
8178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180		fi
8181
8182		CFLAGS="$CFLAGS -Werror=write-strings"
8183
8184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8185$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8186		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8187		if eval \${$cacheid+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191/* end confdefs.h.  */
8192int i;
8193int
8194main ()
8195{
8196
8197  ;
8198  return 0;
8199}
8200_ACEOF
8201if ac_fn_c_try_link "$LINENO"; then :
8202  eval $cacheid=yes
8203else
8204  eval $cacheid=no
8205fi
8206rm -f core conftest.err conftest.$ac_objext \
8207    conftest$ac_exeext conftest.$ac_ext
8208fi
8209
8210
8211		CFLAGS="$xorg_testset_save_CFLAGS"
8212
8213		eval supported=\$$cacheid
8214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8215$as_echo "$supported" >&6; }
8216		if test "$supported" = "yes" ; then
8217			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8218			found="yes"
8219		fi
8220	fi
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236xorg_testset_save_CFLAGS="$CFLAGS"
8237
8238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248_ACEOF
8249if ac_fn_c_try_compile "$LINENO"; then :
8250  xorg_cv_cc_flag_unknown_warning_option=yes
8251else
8252  xorg_cv_cc_flag_unknown_warning_option=no
8253fi
8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8259	CFLAGS="$xorg_testset_save_CFLAGS"
8260fi
8261
8262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265	fi
8266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8270  $as_echo_n "(cached) " >&6
8271else
8272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273/* end confdefs.h.  */
8274int i;
8275_ACEOF
8276if ac_fn_c_try_compile "$LINENO"; then :
8277  xorg_cv_cc_flag_unused_command_line_argument=yes
8278else
8279  xorg_cv_cc_flag_unused_command_line_argument=no
8280fi
8281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8286	CFLAGS="$xorg_testset_save_CFLAGS"
8287fi
8288
8289found="no"
8290
8291	if test $found = "no" ; then
8292		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294		fi
8295
8296		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298		fi
8299
8300		CFLAGS="$CFLAGS -Werror=address"
8301
8302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8303$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8304		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8305		if eval \${$cacheid+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309/* end confdefs.h.  */
8310int i;
8311int
8312main ()
8313{
8314
8315  ;
8316  return 0;
8317}
8318_ACEOF
8319if ac_fn_c_try_link "$LINENO"; then :
8320  eval $cacheid=yes
8321else
8322  eval $cacheid=no
8323fi
8324rm -f core conftest.err conftest.$ac_objext \
8325    conftest$ac_exeext conftest.$ac_ext
8326fi
8327
8328
8329		CFLAGS="$xorg_testset_save_CFLAGS"
8330
8331		eval supported=\$$cacheid
8332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8333$as_echo "$supported" >&6; }
8334		if test "$supported" = "yes" ; then
8335			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8336			found="yes"
8337		fi
8338	fi
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354xorg_testset_save_CFLAGS="$CFLAGS"
8355
8356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365int i;
8366_ACEOF
8367if ac_fn_c_try_compile "$LINENO"; then :
8368  xorg_cv_cc_flag_unknown_warning_option=yes
8369else
8370  xorg_cv_cc_flag_unknown_warning_option=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373fi
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8377	CFLAGS="$xorg_testset_save_CFLAGS"
8378fi
8379
8380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383	fi
8384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8388  $as_echo_n "(cached) " >&6
8389else
8390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391/* end confdefs.h.  */
8392int i;
8393_ACEOF
8394if ac_fn_c_try_compile "$LINENO"; then :
8395  xorg_cv_cc_flag_unused_command_line_argument=yes
8396else
8397  xorg_cv_cc_flag_unused_command_line_argument=no
8398fi
8399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400fi
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8404	CFLAGS="$xorg_testset_save_CFLAGS"
8405fi
8406
8407found="no"
8408
8409	if test $found = "no" ; then
8410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412		fi
8413
8414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416		fi
8417
8418		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8419
8420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8421$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8422		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8423		if eval \${$cacheid+:} false; then :
8424  $as_echo_n "(cached) " >&6
8425else
8426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427/* end confdefs.h.  */
8428int i;
8429int
8430main ()
8431{
8432
8433  ;
8434  return 0;
8435}
8436_ACEOF
8437if ac_fn_c_try_link "$LINENO"; then :
8438  eval $cacheid=yes
8439else
8440  eval $cacheid=no
8441fi
8442rm -f core conftest.err conftest.$ac_objext \
8443    conftest$ac_exeext conftest.$ac_ext
8444fi
8445
8446
8447		CFLAGS="$xorg_testset_save_CFLAGS"
8448
8449		eval supported=\$$cacheid
8450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8451$as_echo "$supported" >&6; }
8452		if test "$supported" = "yes" ; then
8453			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8454			found="yes"
8455		fi
8456	fi
8457
8458	if test $found = "no" ; then
8459		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8460			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461		fi
8462
8463		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8464			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8465		fi
8466
8467		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8468
8469		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8470$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8471		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8472		if eval \${$cacheid+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h.  */
8477int i;
8478int
8479main ()
8480{
8481
8482  ;
8483  return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_link "$LINENO"; then :
8487  eval $cacheid=yes
8488else
8489  eval $cacheid=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext \
8492    conftest$ac_exeext conftest.$ac_ext
8493fi
8494
8495
8496		CFLAGS="$xorg_testset_save_CFLAGS"
8497
8498		eval supported=\$$cacheid
8499		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8500$as_echo "$supported" >&6; }
8501		if test "$supported" = "yes" ; then
8502			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8503			found="yes"
8504		fi
8505	fi
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521xorg_testset_save_CFLAGS="$CFLAGS"
8522
8523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  xorg_cv_cc_flag_unknown_warning_option=yes
8536else
8537  xorg_cv_cc_flag_unknown_warning_option=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550	fi
8551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8555  $as_echo_n "(cached) " >&6
8556else
8557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558/* end confdefs.h.  */
8559int i;
8560_ACEOF
8561if ac_fn_c_try_compile "$LINENO"; then :
8562  xorg_cv_cc_flag_unused_command_line_argument=yes
8563else
8564  xorg_cv_cc_flag_unused_command_line_argument=no
8565fi
8566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8567fi
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8571	CFLAGS="$xorg_testset_save_CFLAGS"
8572fi
8573
8574found="no"
8575
8576	if test $found = "no" ; then
8577		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8579		fi
8580
8581		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8583		fi
8584
8585		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8586
8587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8588$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8589		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8590		if eval \${$cacheid+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596int
8597main ()
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"; then :
8605  eval $cacheid=yes
8606else
8607  eval $cacheid=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext \
8610    conftest$ac_exeext conftest.$ac_ext
8611fi
8612
8613
8614		CFLAGS="$xorg_testset_save_CFLAGS"
8615
8616		eval supported=\$$cacheid
8617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8618$as_echo "$supported" >&6; }
8619		if test "$supported" = "yes" ; then
8620			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8621			found="yes"
8622		fi
8623	fi
8624
8625 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8626else
8627{ $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
8628$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;}
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642xorg_testset_save_CFLAGS="$CFLAGS"
8643
8644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8649  $as_echo_n "(cached) " >&6
8650else
8651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652/* end confdefs.h.  */
8653int i;
8654_ACEOF
8655if ac_fn_c_try_compile "$LINENO"; then :
8656  xorg_cv_cc_flag_unknown_warning_option=yes
8657else
8658  xorg_cv_cc_flag_unknown_warning_option=no
8659fi
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661fi
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8665	CFLAGS="$xorg_testset_save_CFLAGS"
8666fi
8667
8668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8671	fi
8672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680int i;
8681_ACEOF
8682if ac_fn_c_try_compile "$LINENO"; then :
8683  xorg_cv_cc_flag_unused_command_line_argument=yes
8684else
8685  xorg_cv_cc_flag_unused_command_line_argument=no
8686fi
8687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688fi
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8692	CFLAGS="$xorg_testset_save_CFLAGS"
8693fi
8694
8695found="no"
8696
8697	if test $found = "no" ; then
8698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700		fi
8701
8702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8704		fi
8705
8706		CFLAGS="$CFLAGS -Wimplicit"
8707
8708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8709$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8710		cacheid=xorg_cv_cc_flag__Wimplicit
8711		if eval \${$cacheid+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717int
8718main ()
8719{
8720
8721  ;
8722  return 0;
8723}
8724_ACEOF
8725if ac_fn_c_try_link "$LINENO"; then :
8726  eval $cacheid=yes
8727else
8728  eval $cacheid=no
8729fi
8730rm -f core conftest.err conftest.$ac_objext \
8731    conftest$ac_exeext conftest.$ac_ext
8732fi
8733
8734
8735		CFLAGS="$xorg_testset_save_CFLAGS"
8736
8737		eval supported=\$$cacheid
8738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8739$as_echo "$supported" >&6; }
8740		if test "$supported" = "yes" ; then
8741			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8742			found="yes"
8743		fi
8744	fi
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760xorg_testset_save_CFLAGS="$CFLAGS"
8761
8762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int i;
8772_ACEOF
8773if ac_fn_c_try_compile "$LINENO"; then :
8774  xorg_cv_cc_flag_unknown_warning_option=yes
8775else
8776  xorg_cv_cc_flag_unknown_warning_option=no
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8783	CFLAGS="$xorg_testset_save_CFLAGS"
8784fi
8785
8786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789	fi
8790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8794  $as_echo_n "(cached) " >&6
8795else
8796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h.  */
8798int i;
8799_ACEOF
8800if ac_fn_c_try_compile "$LINENO"; then :
8801  xorg_cv_cc_flag_unused_command_line_argument=yes
8802else
8803  xorg_cv_cc_flag_unused_command_line_argument=no
8804fi
8805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806fi
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810	CFLAGS="$xorg_testset_save_CFLAGS"
8811fi
8812
8813found="no"
8814
8815	if test $found = "no" ; then
8816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818		fi
8819
8820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822		fi
8823
8824		CFLAGS="$CFLAGS -Wnonnull"
8825
8826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8827$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8828		cacheid=xorg_cv_cc_flag__Wnonnull
8829		if eval \${$cacheid+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834int i;
8835int
8836main ()
8837{
8838
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843if ac_fn_c_try_link "$LINENO"; then :
8844  eval $cacheid=yes
8845else
8846  eval $cacheid=no
8847fi
8848rm -f core conftest.err conftest.$ac_objext \
8849    conftest$ac_exeext conftest.$ac_ext
8850fi
8851
8852
8853		CFLAGS="$xorg_testset_save_CFLAGS"
8854
8855		eval supported=\$$cacheid
8856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8857$as_echo "$supported" >&6; }
8858		if test "$supported" = "yes" ; then
8859			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8860			found="yes"
8861		fi
8862	fi
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878xorg_testset_save_CFLAGS="$CFLAGS"
8879
8880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h.  */
8889int i;
8890_ACEOF
8891if ac_fn_c_try_compile "$LINENO"; then :
8892  xorg_cv_cc_flag_unknown_warning_option=yes
8893else
8894  xorg_cv_cc_flag_unknown_warning_option=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8901	CFLAGS="$xorg_testset_save_CFLAGS"
8902fi
8903
8904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907	fi
8908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8912  $as_echo_n "(cached) " >&6
8913else
8914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915/* end confdefs.h.  */
8916int i;
8917_ACEOF
8918if ac_fn_c_try_compile "$LINENO"; then :
8919  xorg_cv_cc_flag_unused_command_line_argument=yes
8920else
8921  xorg_cv_cc_flag_unused_command_line_argument=no
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924fi
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8928	CFLAGS="$xorg_testset_save_CFLAGS"
8929fi
8930
8931found="no"
8932
8933	if test $found = "no" ; then
8934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8936		fi
8937
8938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8940		fi
8941
8942		CFLAGS="$CFLAGS -Winit-self"
8943
8944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8945$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8946		cacheid=xorg_cv_cc_flag__Winit_self
8947		if eval \${$cacheid+:} false; then :
8948  $as_echo_n "(cached) " >&6
8949else
8950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951/* end confdefs.h.  */
8952int i;
8953int
8954main ()
8955{
8956
8957  ;
8958  return 0;
8959}
8960_ACEOF
8961if ac_fn_c_try_link "$LINENO"; then :
8962  eval $cacheid=yes
8963else
8964  eval $cacheid=no
8965fi
8966rm -f core conftest.err conftest.$ac_objext \
8967    conftest$ac_exeext conftest.$ac_ext
8968fi
8969
8970
8971		CFLAGS="$xorg_testset_save_CFLAGS"
8972
8973		eval supported=\$$cacheid
8974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8975$as_echo "$supported" >&6; }
8976		if test "$supported" = "yes" ; then
8977			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8978			found="yes"
8979		fi
8980	fi
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996xorg_testset_save_CFLAGS="$CFLAGS"
8997
8998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"; then :
9010  xorg_cv_cc_flag_unknown_warning_option=yes
9011else
9012  xorg_cv_cc_flag_unknown_warning_option=no
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9019	CFLAGS="$xorg_testset_save_CFLAGS"
9020fi
9021
9022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025	fi
9026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9030  $as_echo_n "(cached) " >&6
9031else
9032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033/* end confdefs.h.  */
9034int i;
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"; then :
9037  xorg_cv_cc_flag_unused_command_line_argument=yes
9038else
9039  xorg_cv_cc_flag_unused_command_line_argument=no
9040fi
9041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042fi
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9046	CFLAGS="$xorg_testset_save_CFLAGS"
9047fi
9048
9049found="no"
9050
9051	if test $found = "no" ; then
9052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9054		fi
9055
9056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9058		fi
9059
9060		CFLAGS="$CFLAGS -Wmain"
9061
9062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9063$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9064		cacheid=xorg_cv_cc_flag__Wmain
9065		if eval \${$cacheid+:} false; then :
9066  $as_echo_n "(cached) " >&6
9067else
9068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h.  */
9070int i;
9071int
9072main ()
9073{
9074
9075  ;
9076  return 0;
9077}
9078_ACEOF
9079if ac_fn_c_try_link "$LINENO"; then :
9080  eval $cacheid=yes
9081else
9082  eval $cacheid=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085    conftest$ac_exeext conftest.$ac_ext
9086fi
9087
9088
9089		CFLAGS="$xorg_testset_save_CFLAGS"
9090
9091		eval supported=\$$cacheid
9092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9093$as_echo "$supported" >&6; }
9094		if test "$supported" = "yes" ; then
9095			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9096			found="yes"
9097		fi
9098	fi
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114xorg_testset_save_CFLAGS="$CFLAGS"
9115
9116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128  xorg_cv_cc_flag_unknown_warning_option=yes
9129else
9130  xorg_cv_cc_flag_unknown_warning_option=no
9131fi
9132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133fi
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9137	CFLAGS="$xorg_testset_save_CFLAGS"
9138fi
9139
9140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143	fi
9144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9148  $as_echo_n "(cached) " >&6
9149else
9150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151/* end confdefs.h.  */
9152int i;
9153_ACEOF
9154if ac_fn_c_try_compile "$LINENO"; then :
9155  xorg_cv_cc_flag_unused_command_line_argument=yes
9156else
9157  xorg_cv_cc_flag_unused_command_line_argument=no
9158fi
9159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160fi
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9164	CFLAGS="$xorg_testset_save_CFLAGS"
9165fi
9166
9167found="no"
9168
9169	if test $found = "no" ; then
9170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172		fi
9173
9174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9176		fi
9177
9178		CFLAGS="$CFLAGS -Wmissing-braces"
9179
9180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9181$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9182		cacheid=xorg_cv_cc_flag__Wmissing_braces
9183		if eval \${$cacheid+:} false; then :
9184  $as_echo_n "(cached) " >&6
9185else
9186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h.  */
9188int i;
9189int
9190main ()
9191{
9192
9193  ;
9194  return 0;
9195}
9196_ACEOF
9197if ac_fn_c_try_link "$LINENO"; then :
9198  eval $cacheid=yes
9199else
9200  eval $cacheid=no
9201fi
9202rm -f core conftest.err conftest.$ac_objext \
9203    conftest$ac_exeext conftest.$ac_ext
9204fi
9205
9206
9207		CFLAGS="$xorg_testset_save_CFLAGS"
9208
9209		eval supported=\$$cacheid
9210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9211$as_echo "$supported" >&6; }
9212		if test "$supported" = "yes" ; then
9213			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9214			found="yes"
9215		fi
9216	fi
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232xorg_testset_save_CFLAGS="$CFLAGS"
9233
9234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9235	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9237$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9238if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  xorg_cv_cc_flag_unknown_warning_option=yes
9247else
9248  xorg_cv_cc_flag_unknown_warning_option=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9253$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9254	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9259	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9260		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261	fi
9262	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9264$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9265if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9266  $as_echo_n "(cached) " >&6
9267else
9268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269/* end confdefs.h.  */
9270int i;
9271_ACEOF
9272if ac_fn_c_try_compile "$LINENO"; then :
9273  xorg_cv_cc_flag_unused_command_line_argument=yes
9274else
9275  xorg_cv_cc_flag_unused_command_line_argument=no
9276fi
9277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278fi
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9280$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9281	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9282	CFLAGS="$xorg_testset_save_CFLAGS"
9283fi
9284
9285found="no"
9286
9287	if test $found = "no" ; then
9288		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9289			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9290		fi
9291
9292		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9293			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9294		fi
9295
9296		CFLAGS="$CFLAGS -Wsequence-point"
9297
9298		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9299$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9300		cacheid=xorg_cv_cc_flag__Wsequence_point
9301		if eval \${$cacheid+:} false; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307int
9308main ()
9309{
9310
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_link "$LINENO"; then :
9316  eval $cacheid=yes
9317else
9318  eval $cacheid=no
9319fi
9320rm -f core conftest.err conftest.$ac_objext \
9321    conftest$ac_exeext conftest.$ac_ext
9322fi
9323
9324
9325		CFLAGS="$xorg_testset_save_CFLAGS"
9326
9327		eval supported=\$$cacheid
9328		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9329$as_echo "$supported" >&6; }
9330		if test "$supported" = "yes" ; then
9331			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9332			found="yes"
9333		fi
9334	fi
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350xorg_testset_save_CFLAGS="$CFLAGS"
9351
9352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9357  $as_echo_n "(cached) " >&6
9358else
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361int i;
9362_ACEOF
9363if ac_fn_c_try_compile "$LINENO"; then :
9364  xorg_cv_cc_flag_unknown_warning_option=yes
9365else
9366  xorg_cv_cc_flag_unknown_warning_option=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9373	CFLAGS="$xorg_testset_save_CFLAGS"
9374fi
9375
9376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379	fi
9380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9384  $as_echo_n "(cached) " >&6
9385else
9386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h.  */
9388int i;
9389_ACEOF
9390if ac_fn_c_try_compile "$LINENO"; then :
9391  xorg_cv_cc_flag_unused_command_line_argument=yes
9392else
9393  xorg_cv_cc_flag_unused_command_line_argument=no
9394fi
9395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9396fi
9397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9400	CFLAGS="$xorg_testset_save_CFLAGS"
9401fi
9402
9403found="no"
9404
9405	if test $found = "no" ; then
9406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408		fi
9409
9410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9412		fi
9413
9414		CFLAGS="$CFLAGS -Wreturn-type"
9415
9416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9417$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9418		cacheid=xorg_cv_cc_flag__Wreturn_type
9419		if eval \${$cacheid+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h.  */
9424int i;
9425int
9426main ()
9427{
9428
9429  ;
9430  return 0;
9431}
9432_ACEOF
9433if ac_fn_c_try_link "$LINENO"; then :
9434  eval $cacheid=yes
9435else
9436  eval $cacheid=no
9437fi
9438rm -f core conftest.err conftest.$ac_objext \
9439    conftest$ac_exeext conftest.$ac_ext
9440fi
9441
9442
9443		CFLAGS="$xorg_testset_save_CFLAGS"
9444
9445		eval supported=\$$cacheid
9446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9447$as_echo "$supported" >&6; }
9448		if test "$supported" = "yes" ; then
9449			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9450			found="yes"
9451		fi
9452	fi
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468xorg_testset_save_CFLAGS="$CFLAGS"
9469
9470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9471	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int i;
9480_ACEOF
9481if ac_fn_c_try_compile "$LINENO"; then :
9482  xorg_cv_cc_flag_unknown_warning_option=yes
9483else
9484  xorg_cv_cc_flag_unknown_warning_option=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9491	CFLAGS="$xorg_testset_save_CFLAGS"
9492fi
9493
9494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497	fi
9498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9502  $as_echo_n "(cached) " >&6
9503else
9504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505/* end confdefs.h.  */
9506int i;
9507_ACEOF
9508if ac_fn_c_try_compile "$LINENO"; then :
9509  xorg_cv_cc_flag_unused_command_line_argument=yes
9510else
9511  xorg_cv_cc_flag_unused_command_line_argument=no
9512fi
9513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9517	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9518	CFLAGS="$xorg_testset_save_CFLAGS"
9519fi
9520
9521found="no"
9522
9523	if test $found = "no" ; then
9524		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9525			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9526		fi
9527
9528		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9529			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9530		fi
9531
9532		CFLAGS="$CFLAGS -Wtrigraphs"
9533
9534		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9535$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9536		cacheid=xorg_cv_cc_flag__Wtrigraphs
9537		if eval \${$cacheid+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int i;
9543int
9544main ()
9545{
9546
9547  ;
9548  return 0;
9549}
9550_ACEOF
9551if ac_fn_c_try_link "$LINENO"; then :
9552  eval $cacheid=yes
9553else
9554  eval $cacheid=no
9555fi
9556rm -f core conftest.err conftest.$ac_objext \
9557    conftest$ac_exeext conftest.$ac_ext
9558fi
9559
9560
9561		CFLAGS="$xorg_testset_save_CFLAGS"
9562
9563		eval supported=\$$cacheid
9564		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9565$as_echo "$supported" >&6; }
9566		if test "$supported" = "yes" ; then
9567			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9568			found="yes"
9569		fi
9570	fi
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586xorg_testset_save_CFLAGS="$CFLAGS"
9587
9588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598_ACEOF
9599if ac_fn_c_try_compile "$LINENO"; then :
9600  xorg_cv_cc_flag_unknown_warning_option=yes
9601else
9602  xorg_cv_cc_flag_unknown_warning_option=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9609	CFLAGS="$xorg_testset_save_CFLAGS"
9610fi
9611
9612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615	fi
9616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9620  $as_echo_n "(cached) " >&6
9621else
9622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624int i;
9625_ACEOF
9626if ac_fn_c_try_compile "$LINENO"; then :
9627  xorg_cv_cc_flag_unused_command_line_argument=yes
9628else
9629  xorg_cv_cc_flag_unused_command_line_argument=no
9630fi
9631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632fi
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9636	CFLAGS="$xorg_testset_save_CFLAGS"
9637fi
9638
9639found="no"
9640
9641	if test $found = "no" ; then
9642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9644		fi
9645
9646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9648		fi
9649
9650		CFLAGS="$CFLAGS -Warray-bounds"
9651
9652		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9653$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9654		cacheid=xorg_cv_cc_flag__Warray_bounds
9655		if eval \${$cacheid+:} false; then :
9656  $as_echo_n "(cached) " >&6
9657else
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660int i;
9661int
9662main ()
9663{
9664
9665  ;
9666  return 0;
9667}
9668_ACEOF
9669if ac_fn_c_try_link "$LINENO"; then :
9670  eval $cacheid=yes
9671else
9672  eval $cacheid=no
9673fi
9674rm -f core conftest.err conftest.$ac_objext \
9675    conftest$ac_exeext conftest.$ac_ext
9676fi
9677
9678
9679		CFLAGS="$xorg_testset_save_CFLAGS"
9680
9681		eval supported=\$$cacheid
9682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9683$as_echo "$supported" >&6; }
9684		if test "$supported" = "yes" ; then
9685			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9686			found="yes"
9687		fi
9688	fi
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704xorg_testset_save_CFLAGS="$CFLAGS"
9705
9706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9711  $as_echo_n "(cached) " >&6
9712else
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int i;
9716_ACEOF
9717if ac_fn_c_try_compile "$LINENO"; then :
9718  xorg_cv_cc_flag_unknown_warning_option=yes
9719else
9720  xorg_cv_cc_flag_unknown_warning_option=no
9721fi
9722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9727	CFLAGS="$xorg_testset_save_CFLAGS"
9728fi
9729
9730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733	fi
9734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9738  $as_echo_n "(cached) " >&6
9739else
9740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741/* end confdefs.h.  */
9742int i;
9743_ACEOF
9744if ac_fn_c_try_compile "$LINENO"; then :
9745  xorg_cv_cc_flag_unused_command_line_argument=yes
9746else
9747  xorg_cv_cc_flag_unused_command_line_argument=no
9748fi
9749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9750fi
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9754	CFLAGS="$xorg_testset_save_CFLAGS"
9755fi
9756
9757found="no"
9758
9759	if test $found = "no" ; then
9760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9762		fi
9763
9764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9766		fi
9767
9768		CFLAGS="$CFLAGS -Wwrite-strings"
9769
9770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9771$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9772		cacheid=xorg_cv_cc_flag__Wwrite_strings
9773		if eval \${$cacheid+:} false; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779int
9780main ()
9781{
9782
9783  ;
9784  return 0;
9785}
9786_ACEOF
9787if ac_fn_c_try_link "$LINENO"; then :
9788  eval $cacheid=yes
9789else
9790  eval $cacheid=no
9791fi
9792rm -f core conftest.err conftest.$ac_objext \
9793    conftest$ac_exeext conftest.$ac_ext
9794fi
9795
9796
9797		CFLAGS="$xorg_testset_save_CFLAGS"
9798
9799		eval supported=\$$cacheid
9800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9801$as_echo "$supported" >&6; }
9802		if test "$supported" = "yes" ; then
9803			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9804			found="yes"
9805		fi
9806	fi
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822xorg_testset_save_CFLAGS="$CFLAGS"
9823
9824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"; then :
9836  xorg_cv_cc_flag_unknown_warning_option=yes
9837else
9838  xorg_cv_cc_flag_unknown_warning_option=no
9839fi
9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9845	CFLAGS="$xorg_testset_save_CFLAGS"
9846fi
9847
9848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851	fi
9852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9856  $as_echo_n "(cached) " >&6
9857else
9858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859/* end confdefs.h.  */
9860int i;
9861_ACEOF
9862if ac_fn_c_try_compile "$LINENO"; then :
9863  xorg_cv_cc_flag_unused_command_line_argument=yes
9864else
9865  xorg_cv_cc_flag_unused_command_line_argument=no
9866fi
9867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9868fi
9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9872	CFLAGS="$xorg_testset_save_CFLAGS"
9873fi
9874
9875found="no"
9876
9877	if test $found = "no" ; then
9878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880		fi
9881
9882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9884		fi
9885
9886		CFLAGS="$CFLAGS -Waddress"
9887
9888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9889$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9890		cacheid=xorg_cv_cc_flag__Waddress
9891		if eval \${$cacheid+:} false; then :
9892  $as_echo_n "(cached) " >&6
9893else
9894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896int i;
9897int
9898main ()
9899{
9900
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905if ac_fn_c_try_link "$LINENO"; then :
9906  eval $cacheid=yes
9907else
9908  eval $cacheid=no
9909fi
9910rm -f core conftest.err conftest.$ac_objext \
9911    conftest$ac_exeext conftest.$ac_ext
9912fi
9913
9914
9915		CFLAGS="$xorg_testset_save_CFLAGS"
9916
9917		eval supported=\$$cacheid
9918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9919$as_echo "$supported" >&6; }
9920		if test "$supported" = "yes" ; then
9921			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9922			found="yes"
9923		fi
9924	fi
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940xorg_testset_save_CFLAGS="$CFLAGS"
9941
9942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"; then :
9954  xorg_cv_cc_flag_unknown_warning_option=yes
9955else
9956  xorg_cv_cc_flag_unknown_warning_option=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9963	CFLAGS="$xorg_testset_save_CFLAGS"
9964fi
9965
9966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9969	fi
9970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9974  $as_echo_n "(cached) " >&6
9975else
9976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977/* end confdefs.h.  */
9978int i;
9979_ACEOF
9980if ac_fn_c_try_compile "$LINENO"; then :
9981  xorg_cv_cc_flag_unused_command_line_argument=yes
9982else
9983  xorg_cv_cc_flag_unused_command_line_argument=no
9984fi
9985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9986fi
9987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9990	CFLAGS="$xorg_testset_save_CFLAGS"
9991fi
9992
9993found="no"
9994
9995	if test $found = "no" ; then
9996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9998		fi
9999
10000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10002		fi
10003
10004		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10005
10006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10007$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10008		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10009		if eval \${$cacheid+:} false; then :
10010  $as_echo_n "(cached) " >&6
10011else
10012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h.  */
10014int i;
10015int
10016main ()
10017{
10018
10019  ;
10020  return 0;
10021}
10022_ACEOF
10023if ac_fn_c_try_link "$LINENO"; then :
10024  eval $cacheid=yes
10025else
10026  eval $cacheid=no
10027fi
10028rm -f core conftest.err conftest.$ac_objext \
10029    conftest$ac_exeext conftest.$ac_ext
10030fi
10031
10032
10033		CFLAGS="$xorg_testset_save_CFLAGS"
10034
10035		eval supported=\$$cacheid
10036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10037$as_echo "$supported" >&6; }
10038		if test "$supported" = "yes" ; then
10039			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10040			found="yes"
10041		fi
10042	fi
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058xorg_testset_save_CFLAGS="$CFLAGS"
10059
10060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070_ACEOF
10071if ac_fn_c_try_compile "$LINENO"; then :
10072  xorg_cv_cc_flag_unknown_warning_option=yes
10073else
10074  xorg_cv_cc_flag_unknown_warning_option=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077fi
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10081	CFLAGS="$xorg_testset_save_CFLAGS"
10082fi
10083
10084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10087	fi
10088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10092  $as_echo_n "(cached) " >&6
10093else
10094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095/* end confdefs.h.  */
10096int i;
10097_ACEOF
10098if ac_fn_c_try_compile "$LINENO"; then :
10099  xorg_cv_cc_flag_unused_command_line_argument=yes
10100else
10101  xorg_cv_cc_flag_unused_command_line_argument=no
10102fi
10103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104fi
10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10108	CFLAGS="$xorg_testset_save_CFLAGS"
10109fi
10110
10111found="no"
10112
10113	if test $found = "no" ; then
10114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10116		fi
10117
10118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120		fi
10121
10122		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10123
10124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10125$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10126		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10127		if eval \${$cacheid+:} false; then :
10128  $as_echo_n "(cached) " >&6
10129else
10130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131/* end confdefs.h.  */
10132int i;
10133int
10134main ()
10135{
10136
10137  ;
10138  return 0;
10139}
10140_ACEOF
10141if ac_fn_c_try_link "$LINENO"; then :
10142  eval $cacheid=yes
10143else
10144  eval $cacheid=no
10145fi
10146rm -f core conftest.err conftest.$ac_objext \
10147    conftest$ac_exeext conftest.$ac_ext
10148fi
10149
10150
10151		CFLAGS="$xorg_testset_save_CFLAGS"
10152
10153		eval supported=\$$cacheid
10154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10155$as_echo "$supported" >&6; }
10156		if test "$supported" = "yes" ; then
10157			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10158			found="yes"
10159		fi
10160	fi
10161
10162
10163fi
10164
10165
10166
10167
10168
10169
10170
10171		CWARNFLAGS="$BASE_CFLAGS"
10172		if  test "x$GCC" = xyes ; then
10173		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10174		fi
10175
10176
10177
10178
10179
10180
10181
10182
10183# Check whether --enable-strict-compilation was given.
10184if test "${enable_strict_compilation+set}" = set; then :
10185  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10186else
10187  STRICT_COMPILE=no
10188fi
10189
10190
10191
10192
10193
10194
10195STRICT_CFLAGS=""
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209xorg_testset_save_CFLAGS="$CFLAGS"
10210
10211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"; then :
10223  xorg_cv_cc_flag_unknown_warning_option=yes
10224else
10225  xorg_cv_cc_flag_unknown_warning_option=no
10226fi
10227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10232	CFLAGS="$xorg_testset_save_CFLAGS"
10233fi
10234
10235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238	fi
10239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10243  $as_echo_n "(cached) " >&6
10244else
10245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247int i;
10248_ACEOF
10249if ac_fn_c_try_compile "$LINENO"; then :
10250  xorg_cv_cc_flag_unused_command_line_argument=yes
10251else
10252  xorg_cv_cc_flag_unused_command_line_argument=no
10253fi
10254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255fi
10256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10259	CFLAGS="$xorg_testset_save_CFLAGS"
10260fi
10261
10262found="no"
10263
10264	if test $found = "no" ; then
10265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267		fi
10268
10269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10271		fi
10272
10273		CFLAGS="$CFLAGS -pedantic"
10274
10275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10276$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10277		cacheid=xorg_cv_cc_flag__pedantic
10278		if eval \${$cacheid+:} false; then :
10279  $as_echo_n "(cached) " >&6
10280else
10281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h.  */
10283int i;
10284int
10285main ()
10286{
10287
10288  ;
10289  return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"; then :
10293  eval $cacheid=yes
10294else
10295  eval $cacheid=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext \
10298    conftest$ac_exeext conftest.$ac_ext
10299fi
10300
10301
10302		CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304		eval supported=\$$cacheid
10305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306$as_echo "$supported" >&6; }
10307		if test "$supported" = "yes" ; then
10308			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10309			found="yes"
10310		fi
10311	fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327xorg_testset_save_CFLAGS="$CFLAGS"
10328
10329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338int i;
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"; then :
10341  xorg_cv_cc_flag_unknown_warning_option=yes
10342else
10343  xorg_cv_cc_flag_unknown_warning_option=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10350	CFLAGS="$xorg_testset_save_CFLAGS"
10351fi
10352
10353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356	fi
10357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10361  $as_echo_n "(cached) " >&6
10362else
10363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364/* end confdefs.h.  */
10365int i;
10366_ACEOF
10367if ac_fn_c_try_compile "$LINENO"; then :
10368  xorg_cv_cc_flag_unused_command_line_argument=yes
10369else
10370  xorg_cv_cc_flag_unused_command_line_argument=no
10371fi
10372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10373fi
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10377	CFLAGS="$xorg_testset_save_CFLAGS"
10378fi
10379
10380found="no"
10381
10382	if test $found = "no" ; then
10383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385		fi
10386
10387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389		fi
10390
10391		CFLAGS="$CFLAGS -Werror"
10392
10393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10394$as_echo_n "checking if $CC supports -Werror... " >&6; }
10395		cacheid=xorg_cv_cc_flag__Werror
10396		if eval \${$cacheid+:} false; then :
10397  $as_echo_n "(cached) " >&6
10398else
10399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400/* end confdefs.h.  */
10401int i;
10402int
10403main ()
10404{
10405
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410if ac_fn_c_try_link "$LINENO"; then :
10411  eval $cacheid=yes
10412else
10413  eval $cacheid=no
10414fi
10415rm -f core conftest.err conftest.$ac_objext \
10416    conftest$ac_exeext conftest.$ac_ext
10417fi
10418
10419
10420		CFLAGS="$xorg_testset_save_CFLAGS"
10421
10422		eval supported=\$$cacheid
10423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10424$as_echo "$supported" >&6; }
10425		if test "$supported" = "yes" ; then
10426			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10427			found="yes"
10428		fi
10429	fi
10430
10431	if test $found = "no" ; then
10432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10434		fi
10435
10436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10438		fi
10439
10440		CFLAGS="$CFLAGS -errwarn"
10441
10442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10443$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10444		cacheid=xorg_cv_cc_flag__errwarn
10445		if eval \${$cacheid+:} false; then :
10446  $as_echo_n "(cached) " >&6
10447else
10448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451int
10452main ()
10453{
10454
10455  ;
10456  return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"; then :
10460  eval $cacheid=yes
10461else
10462  eval $cacheid=no
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465    conftest$ac_exeext conftest.$ac_ext
10466fi
10467
10468
10469		CFLAGS="$xorg_testset_save_CFLAGS"
10470
10471		eval supported=\$$cacheid
10472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10473$as_echo "$supported" >&6; }
10474		if test "$supported" = "yes" ; then
10475			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10476			found="yes"
10477		fi
10478	fi
10479
10480
10481
10482# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10483# activate it with -Werror, so we add it here explicitly.
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497xorg_testset_save_CFLAGS="$CFLAGS"
10498
10499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10504  $as_echo_n "(cached) " >&6
10505else
10506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507/* end confdefs.h.  */
10508int i;
10509_ACEOF
10510if ac_fn_c_try_compile "$LINENO"; then :
10511  xorg_cv_cc_flag_unknown_warning_option=yes
10512else
10513  xorg_cv_cc_flag_unknown_warning_option=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516fi
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10520	CFLAGS="$xorg_testset_save_CFLAGS"
10521fi
10522
10523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526	fi
10527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10531  $as_echo_n "(cached) " >&6
10532else
10533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535int i;
10536_ACEOF
10537if ac_fn_c_try_compile "$LINENO"; then :
10538  xorg_cv_cc_flag_unused_command_line_argument=yes
10539else
10540  xorg_cv_cc_flag_unused_command_line_argument=no
10541fi
10542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543fi
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10547	CFLAGS="$xorg_testset_save_CFLAGS"
10548fi
10549
10550found="no"
10551
10552	if test $found = "no" ; then
10553		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10555		fi
10556
10557		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10559		fi
10560
10561		CFLAGS="$CFLAGS -Werror=attributes"
10562
10563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10564$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10565		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10566		if eval \${$cacheid+:} false; then :
10567  $as_echo_n "(cached) " >&6
10568else
10569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h.  */
10571int i;
10572int
10573main ()
10574{
10575
10576  ;
10577  return 0;
10578}
10579_ACEOF
10580if ac_fn_c_try_link "$LINENO"; then :
10581  eval $cacheid=yes
10582else
10583  eval $cacheid=no
10584fi
10585rm -f core conftest.err conftest.$ac_objext \
10586    conftest$ac_exeext conftest.$ac_ext
10587fi
10588
10589
10590		CFLAGS="$xorg_testset_save_CFLAGS"
10591
10592		eval supported=\$$cacheid
10593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10594$as_echo "$supported" >&6; }
10595		if test "$supported" = "yes" ; then
10596			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10597			found="yes"
10598		fi
10599	fi
10600
10601
10602
10603if test "x$STRICT_COMPILE" = "xyes"; then
10604    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10605    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10606fi
10607
10608
10609
10610
10611
10612
10613cat >>confdefs.h <<_ACEOF
10614#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10615_ACEOF
10616
10617	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10618	if test "x$PVM" = "x"; then
10619		PVM="0"
10620	fi
10621
10622cat >>confdefs.h <<_ACEOF
10623#define PACKAGE_VERSION_MINOR $PVM
10624_ACEOF
10625
10626	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10627	if test "x$PVP" = "x"; then
10628		PVP="0"
10629	fi
10630
10631cat >>confdefs.h <<_ACEOF
10632#define PACKAGE_VERSION_PATCHLEVEL $PVP
10633_ACEOF
10634
10635
10636
10637CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10638mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10639|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10640echo 'git directory not found: installing possibly empty changelog.' >&2)"
10641
10642
10643
10644
10645macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10646INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10647mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10648|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10649echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10650
10651
10652
10653
10654
10655
10656if test x$APP_MAN_SUFFIX = x    ; then
10657    APP_MAN_SUFFIX=1
10658fi
10659if test x$APP_MAN_DIR = x    ; then
10660    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10661fi
10662
10663if test x$LIB_MAN_SUFFIX = x    ; then
10664    LIB_MAN_SUFFIX=3
10665fi
10666if test x$LIB_MAN_DIR = x    ; then
10667    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10668fi
10669
10670if test x$FILE_MAN_SUFFIX = x    ; then
10671    case $host_os in
10672	solaris*)	FILE_MAN_SUFFIX=4  ;;
10673	*)		FILE_MAN_SUFFIX=5  ;;
10674    esac
10675fi
10676if test x$FILE_MAN_DIR = x    ; then
10677    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10678fi
10679
10680if test x$MISC_MAN_SUFFIX = x    ; then
10681    case $host_os in
10682	solaris*)	MISC_MAN_SUFFIX=5  ;;
10683	*)		MISC_MAN_SUFFIX=7  ;;
10684    esac
10685fi
10686if test x$MISC_MAN_DIR = x    ; then
10687    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10688fi
10689
10690if test x$DRIVER_MAN_SUFFIX = x    ; then
10691    case $host_os in
10692	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10693	*)		DRIVER_MAN_SUFFIX=4  ;;
10694    esac
10695fi
10696if test x$DRIVER_MAN_DIR = x    ; then
10697    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10698fi
10699
10700if test x$ADMIN_MAN_SUFFIX = x    ; then
10701    case $host_os in
10702	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10703	*)		ADMIN_MAN_SUFFIX=8  ;;
10704    esac
10705fi
10706if test x$ADMIN_MAN_DIR = x    ; then
10707    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10708fi
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724XORG_MAN_PAGE="X Version 11"
10725
10726MAN_SUBSTS="\
10727	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10728	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10729	-e 's|__xservername__|Xorg|g' \
10730	-e 's|__xconfigfile__|xorg.conf|g' \
10731	-e 's|__projectroot__|\$(prefix)|g' \
10732	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10733	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10734	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10735	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10736	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10737	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10738	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10739
10740
10741
10742# Check whether --enable-silent-rules was given.
10743if test "${enable_silent_rules+set}" = set; then :
10744  enableval=$enable_silent_rules;
10745fi
10746
10747case $enable_silent_rules in # (((
10748  yes) AM_DEFAULT_VERBOSITY=0;;
10749   no) AM_DEFAULT_VERBOSITY=1;;
10750    *) AM_DEFAULT_VERBOSITY=0;;
10751esac
10752am_make=${MAKE-make}
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10754$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10755if ${am_cv_make_support_nested_variables+:} false; then :
10756  $as_echo_n "(cached) " >&6
10757else
10758  if $as_echo 'TRUE=$(BAR$(V))
10759BAR0=false
10760BAR1=true
10761V=1
10762am__doit:
10763	@$(TRUE)
10764.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10765  am_cv_make_support_nested_variables=yes
10766else
10767  am_cv_make_support_nested_variables=no
10768fi
10769fi
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10771$as_echo "$am_cv_make_support_nested_variables" >&6; }
10772if test $am_cv_make_support_nested_variables = yes; then
10773    AM_V='$(V)'
10774  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10775else
10776  AM_V=$AM_DEFAULT_VERBOSITY
10777  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10778fi
10779AM_BACKSLASH='\'
10780
10781
10782
10783for ac_prog in 'bison -y' byacc
10784do
10785  # Extract the first word of "$ac_prog", so it can be a program name with args.
10786set dummy $ac_prog; ac_word=$2
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10788$as_echo_n "checking for $ac_word... " >&6; }
10789if ${ac_cv_prog_YACC+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  if test -n "$YACC"; then
10793  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10794else
10795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796for as_dir in $PATH
10797do
10798  IFS=$as_save_IFS
10799  test -z "$as_dir" && as_dir=.
10800    for ac_exec_ext in '' $ac_executable_extensions; do
10801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802    ac_cv_prog_YACC="$ac_prog"
10803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10804    break 2
10805  fi
10806done
10807  done
10808IFS=$as_save_IFS
10809
10810fi
10811fi
10812YACC=$ac_cv_prog_YACC
10813if test -n "$YACC"; then
10814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10815$as_echo "$YACC" >&6; }
10816else
10817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10818$as_echo "no" >&6; }
10819fi
10820
10821
10822  test -n "$YACC" && break
10823done
10824test -n "$YACC" || YACC="yacc"
10825
10826# Extract the first word of "$YACC", so it can be a program name with args.
10827set dummy $YACC; ac_word=$2
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10829$as_echo_n "checking for $ac_word... " >&6; }
10830if ${ac_cv_path_YACC_INST+:} false; then :
10831  $as_echo_n "(cached) " >&6
10832else
10833  case $YACC_INST in
10834  [\\/]* | ?:[\\/]*)
10835  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10836  ;;
10837  *)
10838  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841  IFS=$as_save_IFS
10842  test -z "$as_dir" && as_dir=.
10843    for ac_exec_ext in '' $ac_executable_extensions; do
10844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847    break 2
10848  fi
10849done
10850  done
10851IFS=$as_save_IFS
10852
10853  ;;
10854esac
10855fi
10856YACC_INST=$ac_cv_path_YACC_INST
10857if test -n "$YACC_INST"; then
10858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10859$as_echo "$YACC_INST" >&6; }
10860else
10861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862$as_echo "no" >&6; }
10863fi
10864
10865
10866if test ! -f "$srcdir/gram.c"; then
10867   if test -z "$YACC_INST"; then
10868      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10869   fi
10870fi
10871for ac_prog in flex lex
10872do
10873  # Extract the first word of "$ac_prog", so it can be a program name with args.
10874set dummy $ac_prog; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if ${ac_cv_prog_LEX+:} false; then :
10878  $as_echo_n "(cached) " >&6
10879else
10880  if test -n "$LEX"; then
10881  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886  IFS=$as_save_IFS
10887  test -z "$as_dir" && as_dir=.
10888    for ac_exec_ext in '' $ac_executable_extensions; do
10889  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890    ac_cv_prog_LEX="$ac_prog"
10891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892    break 2
10893  fi
10894done
10895  done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900LEX=$ac_cv_prog_LEX
10901if test -n "$LEX"; then
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10903$as_echo "$LEX" >&6; }
10904else
10905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910  test -n "$LEX" && break
10911done
10912test -n "$LEX" || LEX=":"
10913
10914if test "x$LEX" != "x:"; then
10915  cat >conftest.l <<_ACEOF
10916%%
10917a { ECHO; }
10918b { REJECT; }
10919c { yymore (); }
10920d { yyless (1); }
10921e { yyless (input () != 0); }
10922f { unput (yytext[0]); }
10923. { BEGIN INITIAL; }
10924%%
10925#ifdef YYTEXT_POINTER
10926extern char *yytext;
10927#endif
10928int
10929main (void)
10930{
10931  return ! yylex () + ! yywrap ();
10932}
10933_ACEOF
10934{ { ac_try="$LEX conftest.l"
10935case "(($ac_try" in
10936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937  *) ac_try_echo=$ac_try;;
10938esac
10939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10940$as_echo "$ac_try_echo"; } >&5
10941  (eval "$LEX conftest.l") 2>&5
10942  ac_status=$?
10943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10944  test $ac_status = 0; }
10945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10946$as_echo_n "checking lex output file root... " >&6; }
10947if ${ac_cv_prog_lex_root+:} false; then :
10948  $as_echo_n "(cached) " >&6
10949else
10950
10951if test -f lex.yy.c; then
10952  ac_cv_prog_lex_root=lex.yy
10953elif test -f lexyy.c; then
10954  ac_cv_prog_lex_root=lexyy
10955else
10956  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
10957fi
10958fi
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10960$as_echo "$ac_cv_prog_lex_root" >&6; }
10961LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10962
10963if test -z "${LEXLIB+set}"; then
10964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10965$as_echo_n "checking lex library... " >&6; }
10966if ${ac_cv_lib_lex+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969
10970    ac_save_LIBS=$LIBS
10971    ac_cv_lib_lex='none needed'
10972    for ac_lib in '' -lfl -ll; do
10973      LIBS="$ac_lib $ac_save_LIBS"
10974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976`cat $LEX_OUTPUT_ROOT.c`
10977_ACEOF
10978if ac_fn_c_try_link "$LINENO"; then :
10979  ac_cv_lib_lex=$ac_lib
10980fi
10981rm -f core conftest.err conftest.$ac_objext \
10982    conftest$ac_exeext conftest.$ac_ext
10983      test "$ac_cv_lib_lex" != 'none needed' && break
10984    done
10985    LIBS=$ac_save_LIBS
10986
10987fi
10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10989$as_echo "$ac_cv_lib_lex" >&6; }
10990  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10991fi
10992
10993
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10995$as_echo_n "checking whether yytext is a pointer... " >&6; }
10996if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
10997  $as_echo_n "(cached) " >&6
10998else
10999  # POSIX says lex can declare yytext either as a pointer or an array; the
11000# default is implementation-dependent.  Figure out which it is, since
11001# not all implementations provide the %pointer and %array declarations.
11002ac_cv_prog_lex_yytext_pointer=no
11003ac_save_LIBS=$LIBS
11004LIBS="$LEXLIB $ac_save_LIBS"
11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006/* end confdefs.h.  */
11007
11008  #define YYTEXT_POINTER 1
11009`cat $LEX_OUTPUT_ROOT.c`
11010_ACEOF
11011if ac_fn_c_try_link "$LINENO"; then :
11012  ac_cv_prog_lex_yytext_pointer=yes
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015    conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_save_LIBS
11017
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11020$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11021if test $ac_cv_prog_lex_yytext_pointer = yes; then
11022
11023$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11024
11025fi
11026rm -f conftest.l $LEX_OUTPUT_ROOT.c
11027
11028fi
11029
11030for ac_func in mkstemp
11031do :
11032  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11033if test "x$ac_cv_func_mkstemp" = xyes; then :
11034  cat >>confdefs.h <<_ACEOF
11035#define HAVE_MKSTEMP 1
11036_ACEOF
11037
11038fi
11039done
11040
11041
11042# Checks for pkg-config packages
11043
11044pkg_failed=no
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5
11046$as_echo_n "checking for TWM... " >&6; }
11047
11048if test -n "$TWM_CFLAGS"; then
11049    pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11050 elif test -n "$PKG_CONFIG"; then
11051    if test -n "$PKG_CONFIG" && \
11052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11053  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11054  ac_status=$?
11055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11056  test $ac_status = 0; }; then
11057  pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11058else
11059  pkg_failed=yes
11060fi
11061 else
11062    pkg_failed=untried
11063fi
11064if test -n "$TWM_LIBS"; then
11065    pkg_cv_TWM_LIBS="$TWM_LIBS"
11066 elif test -n "$PKG_CONFIG"; then
11067    if test -n "$PKG_CONFIG" && \
11068    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11069  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11070  ac_status=$?
11071  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072  test $ac_status = 0; }; then
11073  pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11074else
11075  pkg_failed=yes
11076fi
11077 else
11078    pkg_failed=untried
11079fi
11080
11081
11082
11083if test $pkg_failed = yes; then
11084
11085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11086        _pkg_short_errors_supported=yes
11087else
11088        _pkg_short_errors_supported=no
11089fi
11090        if test $_pkg_short_errors_supported = yes; then
11091	        TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11092        else
11093	        TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11094        fi
11095	# Put the nasty error message in config.log where it belongs
11096	echo "$TWM_PKG_ERRORS" >&5
11097
11098	as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11099
11100$TWM_PKG_ERRORS
11101
11102Consider adjusting the PKG_CONFIG_PATH environment variable if you
11103installed software in a non-standard prefix.
11104
11105Alternatively, you may set the environment variables TWM_CFLAGS
11106and TWM_LIBS to avoid the need to call pkg-config.
11107See the pkg-config man page for more details.
11108" "$LINENO" 5
11109elif test $pkg_failed = untried; then
11110	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11112as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11113is in your PATH or set the PKG_CONFIG environment variable to the full
11114path to pkg-config.
11115
11116Alternatively, you may set the environment variables TWM_CFLAGS
11117and TWM_LIBS to avoid the need to call pkg-config.
11118See the pkg-config man page for more details.
11119
11120To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11121See \`config.log' for more details" "$LINENO" 5; }
11122else
11123	TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11124	TWM_LIBS=$pkg_cv_TWM_LIBS
11125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11126$as_echo "yes" >&6; }
11127	:
11128fi
11129
11130ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11131
11132cat >confcache <<\_ACEOF
11133# This file is a shell script that caches the results of configure
11134# tests run on this system so they can be shared between configure
11135# scripts and configure runs, see configure's option --config-cache.
11136# It is not useful on other systems.  If it contains results you don't
11137# want to keep, you may remove or edit it.
11138#
11139# config.status only pays attention to the cache file if you give it
11140# the --recheck option to rerun configure.
11141#
11142# `ac_cv_env_foo' variables (set or unset) will be overridden when
11143# loading this file, other *unset* `ac_cv_foo' will be assigned the
11144# following values.
11145
11146_ACEOF
11147
11148# The following way of writing the cache mishandles newlines in values,
11149# but we know of no workaround that is simple, portable, and efficient.
11150# So, we kill variables containing newlines.
11151# Ultrix sh set writes to stderr and can't be redirected directly,
11152# and sets the high bit in the cache file unless we assign to the vars.
11153(
11154  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11155    eval ac_val=\$$ac_var
11156    case $ac_val in #(
11157    *${as_nl}*)
11158      case $ac_var in #(
11159      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11160$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11161      esac
11162      case $ac_var in #(
11163      _ | IFS | as_nl) ;; #(
11164      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11165      *) { eval $ac_var=; unset $ac_var;} ;;
11166      esac ;;
11167    esac
11168  done
11169
11170  (set) 2>&1 |
11171    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11172    *${as_nl}ac_space=\ *)
11173      # `set' does not quote correctly, so add quotes: double-quote
11174      # substitution turns \\\\ into \\, and sed turns \\ into \.
11175      sed -n \
11176	"s/'/'\\\\''/g;
11177	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11178      ;; #(
11179    *)
11180      # `set' quotes correctly as required by POSIX, so do not add quotes.
11181      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11182      ;;
11183    esac |
11184    sort
11185) |
11186  sed '
11187     /^ac_cv_env_/b end
11188     t clear
11189     :clear
11190     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11191     t end
11192     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11193     :end' >>confcache
11194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11195  if test -w "$cache_file"; then
11196    if test "x$cache_file" != "x/dev/null"; then
11197      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11198$as_echo "$as_me: updating cache $cache_file" >&6;}
11199      if test ! -f "$cache_file" || test -h "$cache_file"; then
11200	cat confcache >"$cache_file"
11201      else
11202        case $cache_file in #(
11203        */* | ?:*)
11204	  mv -f confcache "$cache_file"$$ &&
11205	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11206        *)
11207	  mv -f confcache "$cache_file" ;;
11208	esac
11209      fi
11210    fi
11211  else
11212    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11213$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11214  fi
11215fi
11216rm -f confcache
11217
11218test "x$prefix" = xNONE && prefix=$ac_default_prefix
11219# Let make expand exec_prefix.
11220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11221
11222DEFS=-DHAVE_CONFIG_H
11223
11224ac_libobjs=
11225ac_ltlibobjs=
11226U=
11227for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11228  # 1. Remove the extension, and $U if already installed.
11229  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11230  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11231  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11232  #    will be set to the directory where LIBOBJS objects are built.
11233  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11234  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11235done
11236LIBOBJS=$ac_libobjs
11237
11238LTLIBOBJS=$ac_ltlibobjs
11239
11240
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11242$as_echo_n "checking that generated files are newer than configure... " >&6; }
11243   if test -n "$am_sleep_pid"; then
11244     # Hide warnings about reused PIDs.
11245     wait $am_sleep_pid 2>/dev/null
11246   fi
11247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11248$as_echo "done" >&6; }
11249if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11250  as_fn_error $? "conditional \"AMDEP\" was never defined.
11251Usually this means the macro was only invoked conditionally." "$LINENO" 5
11252fi
11253if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11254  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11255Usually this means the macro was only invoked conditionally." "$LINENO" 5
11256fi
11257 if test -n "$EXEEXT"; then
11258  am__EXEEXT_TRUE=
11259  am__EXEEXT_FALSE='#'
11260else
11261  am__EXEEXT_TRUE='#'
11262  am__EXEEXT_FALSE=
11263fi
11264
11265if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11266  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11267Usually this means the macro was only invoked conditionally." "$LINENO" 5
11268fi
11269
11270: "${CONFIG_STATUS=./config.status}"
11271ac_write_fail=0
11272ac_clean_files_save=$ac_clean_files
11273ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11275$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11276as_write_fail=0
11277cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11278#! $SHELL
11279# Generated by $as_me.
11280# Run this file to recreate the current configuration.
11281# Compiler output produced by configure, useful for debugging
11282# configure, is in config.log if it exists.
11283
11284debug=false
11285ac_cs_recheck=false
11286ac_cs_silent=false
11287
11288SHELL=\${CONFIG_SHELL-$SHELL}
11289export SHELL
11290_ASEOF
11291cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11292## -------------------- ##
11293## M4sh Initialization. ##
11294## -------------------- ##
11295
11296# Be more Bourne compatible
11297DUALCASE=1; export DUALCASE # for MKS sh
11298if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11299  emulate sh
11300  NULLCMD=:
11301  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11302  # is contrary to our usage.  Disable this feature.
11303  alias -g '${1+"$@"}'='"$@"'
11304  setopt NO_GLOB_SUBST
11305else
11306  case `(set -o) 2>/dev/null` in #(
11307  *posix*) :
11308    set -o posix ;; #(
11309  *) :
11310     ;;
11311esac
11312fi
11313
11314
11315as_nl='
11316'
11317export as_nl
11318# Printing a long string crashes Solaris 7 /usr/bin/printf.
11319as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11320as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11321as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11322# Prefer a ksh shell builtin over an external printf program on Solaris,
11323# but without wasting forks for bash or zsh.
11324if test -z "$BASH_VERSION$ZSH_VERSION" \
11325    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11326  as_echo='print -r --'
11327  as_echo_n='print -rn --'
11328elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11329  as_echo='printf %s\n'
11330  as_echo_n='printf %s'
11331else
11332  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11333    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11334    as_echo_n='/usr/ucb/echo -n'
11335  else
11336    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11337    as_echo_n_body='eval
11338      arg=$1;
11339      case $arg in #(
11340      *"$as_nl"*)
11341	expr "X$arg" : "X\\(.*\\)$as_nl";
11342	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11343      esac;
11344      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11345    '
11346    export as_echo_n_body
11347    as_echo_n='sh -c $as_echo_n_body as_echo'
11348  fi
11349  export as_echo_body
11350  as_echo='sh -c $as_echo_body as_echo'
11351fi
11352
11353# The user is always right.
11354if test "${PATH_SEPARATOR+set}" != set; then
11355  PATH_SEPARATOR=:
11356  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11357    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11358      PATH_SEPARATOR=';'
11359  }
11360fi
11361
11362
11363# IFS
11364# We need space, tab and new line, in precisely that order.  Quoting is
11365# there to prevent editors from complaining about space-tab.
11366# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11367# splitting by setting IFS to empty value.)
11368IFS=" ""	$as_nl"
11369
11370# Find who we are.  Look in the path if we contain no directory separator.
11371as_myself=
11372case $0 in #((
11373  *[\\/]* ) as_myself=$0 ;;
11374  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375for as_dir in $PATH
11376do
11377  IFS=$as_save_IFS
11378  test -z "$as_dir" && as_dir=.
11379    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11380  done
11381IFS=$as_save_IFS
11382
11383     ;;
11384esac
11385# We did not find ourselves, most probably we were run as `sh COMMAND'
11386# in which case we are not to be found in the path.
11387if test "x$as_myself" = x; then
11388  as_myself=$0
11389fi
11390if test ! -f "$as_myself"; then
11391  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11392  exit 1
11393fi
11394
11395# Unset variables that we do not need and which cause bugs (e.g. in
11396# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11397# suppresses any "Segmentation fault" message there.  '((' could
11398# trigger a bug in pdksh 5.2.14.
11399for as_var in BASH_ENV ENV MAIL MAILPATH
11400do eval test x\${$as_var+set} = xset \
11401  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11402done
11403PS1='$ '
11404PS2='> '
11405PS4='+ '
11406
11407# NLS nuisances.
11408LC_ALL=C
11409export LC_ALL
11410LANGUAGE=C
11411export LANGUAGE
11412
11413# CDPATH.
11414(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11415
11416
11417# as_fn_error STATUS ERROR [LINENO LOG_FD]
11418# ----------------------------------------
11419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11421# script with STATUS, using 1 if that was 0.
11422as_fn_error ()
11423{
11424  as_status=$1; test $as_status -eq 0 && as_status=1
11425  if test "$4"; then
11426    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11427    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11428  fi
11429  $as_echo "$as_me: error: $2" >&2
11430  as_fn_exit $as_status
11431} # as_fn_error
11432
11433
11434# as_fn_set_status STATUS
11435# -----------------------
11436# Set $? to STATUS, without forking.
11437as_fn_set_status ()
11438{
11439  return $1
11440} # as_fn_set_status
11441
11442# as_fn_exit STATUS
11443# -----------------
11444# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11445as_fn_exit ()
11446{
11447  set +e
11448  as_fn_set_status $1
11449  exit $1
11450} # as_fn_exit
11451
11452# as_fn_unset VAR
11453# ---------------
11454# Portably unset VAR.
11455as_fn_unset ()
11456{
11457  { eval $1=; unset $1;}
11458}
11459as_unset=as_fn_unset
11460# as_fn_append VAR VALUE
11461# ----------------------
11462# Append the text in VALUE to the end of the definition contained in VAR. Take
11463# advantage of any shell optimizations that allow amortized linear growth over
11464# repeated appends, instead of the typical quadratic growth present in naive
11465# implementations.
11466if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11467  eval 'as_fn_append ()
11468  {
11469    eval $1+=\$2
11470  }'
11471else
11472  as_fn_append ()
11473  {
11474    eval $1=\$$1\$2
11475  }
11476fi # as_fn_append
11477
11478# as_fn_arith ARG...
11479# ------------------
11480# Perform arithmetic evaluation on the ARGs, and store the result in the
11481# global $as_val. Take advantage of shells that can avoid forks. The arguments
11482# must be portable across $(()) and expr.
11483if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11484  eval 'as_fn_arith ()
11485  {
11486    as_val=$(( $* ))
11487  }'
11488else
11489  as_fn_arith ()
11490  {
11491    as_val=`expr "$@" || test $? -eq 1`
11492  }
11493fi # as_fn_arith
11494
11495
11496if expr a : '\(a\)' >/dev/null 2>&1 &&
11497   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11498  as_expr=expr
11499else
11500  as_expr=false
11501fi
11502
11503if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11504  as_basename=basename
11505else
11506  as_basename=false
11507fi
11508
11509if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11510  as_dirname=dirname
11511else
11512  as_dirname=false
11513fi
11514
11515as_me=`$as_basename -- "$0" ||
11516$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11517	 X"$0" : 'X\(//\)$' \| \
11518	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11519$as_echo X/"$0" |
11520    sed '/^.*\/\([^/][^/]*\)\/*$/{
11521	    s//\1/
11522	    q
11523	  }
11524	  /^X\/\(\/\/\)$/{
11525	    s//\1/
11526	    q
11527	  }
11528	  /^X\/\(\/\).*/{
11529	    s//\1/
11530	    q
11531	  }
11532	  s/.*/./; q'`
11533
11534# Avoid depending upon Character Ranges.
11535as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11536as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11537as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11538as_cr_digits='0123456789'
11539as_cr_alnum=$as_cr_Letters$as_cr_digits
11540
11541ECHO_C= ECHO_N= ECHO_T=
11542case `echo -n x` in #(((((
11543-n*)
11544  case `echo 'xy\c'` in
11545  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11546  xy)  ECHO_C='\c';;
11547  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11548       ECHO_T='	';;
11549  esac;;
11550*)
11551  ECHO_N='-n';;
11552esac
11553
11554rm -f conf$$ conf$$.exe conf$$.file
11555if test -d conf$$.dir; then
11556  rm -f conf$$.dir/conf$$.file
11557else
11558  rm -f conf$$.dir
11559  mkdir conf$$.dir 2>/dev/null
11560fi
11561if (echo >conf$$.file) 2>/dev/null; then
11562  if ln -s conf$$.file conf$$ 2>/dev/null; then
11563    as_ln_s='ln -s'
11564    # ... but there are two gotchas:
11565    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11566    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11567    # In both cases, we have to default to `cp -p'.
11568    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11569      as_ln_s='cp -p'
11570  elif ln conf$$.file conf$$ 2>/dev/null; then
11571    as_ln_s=ln
11572  else
11573    as_ln_s='cp -p'
11574  fi
11575else
11576  as_ln_s='cp -p'
11577fi
11578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11579rmdir conf$$.dir 2>/dev/null
11580
11581
11582# as_fn_mkdir_p
11583# -------------
11584# Create "$as_dir" as a directory, including parents if necessary.
11585as_fn_mkdir_p ()
11586{
11587
11588  case $as_dir in #(
11589  -*) as_dir=./$as_dir;;
11590  esac
11591  test -d "$as_dir" || eval $as_mkdir_p || {
11592    as_dirs=
11593    while :; do
11594      case $as_dir in #(
11595      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11596      *) as_qdir=$as_dir;;
11597      esac
11598      as_dirs="'$as_qdir' $as_dirs"
11599      as_dir=`$as_dirname -- "$as_dir" ||
11600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11601	 X"$as_dir" : 'X\(//\)[^/]' \| \
11602	 X"$as_dir" : 'X\(//\)$' \| \
11603	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11604$as_echo X"$as_dir" |
11605    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11606	    s//\1/
11607	    q
11608	  }
11609	  /^X\(\/\/\)[^/].*/{
11610	    s//\1/
11611	    q
11612	  }
11613	  /^X\(\/\/\)$/{
11614	    s//\1/
11615	    q
11616	  }
11617	  /^X\(\/\).*/{
11618	    s//\1/
11619	    q
11620	  }
11621	  s/.*/./; q'`
11622      test -d "$as_dir" && break
11623    done
11624    test -z "$as_dirs" || eval "mkdir $as_dirs"
11625  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11626
11627
11628} # as_fn_mkdir_p
11629if mkdir -p . 2>/dev/null; then
11630  as_mkdir_p='mkdir -p "$as_dir"'
11631else
11632  test -d ./-p && rmdir ./-p
11633  as_mkdir_p=false
11634fi
11635
11636if test -x / >/dev/null 2>&1; then
11637  as_test_x='test -x'
11638else
11639  if ls -dL / >/dev/null 2>&1; then
11640    as_ls_L_option=L
11641  else
11642    as_ls_L_option=
11643  fi
11644  as_test_x='
11645    eval sh -c '\''
11646      if test -d "$1"; then
11647	test -d "$1/.";
11648      else
11649	case $1 in #(
11650	-*)set "./$1";;
11651	esac;
11652	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11653	???[sx]*):;;*)false;;esac;fi
11654    '\'' sh
11655  '
11656fi
11657as_executable_p=$as_test_x
11658
11659# Sed expression to map a string onto a valid CPP name.
11660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11661
11662# Sed expression to map a string onto a valid variable name.
11663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11664
11665
11666exec 6>&1
11667## ----------------------------------- ##
11668## Main body of $CONFIG_STATUS script. ##
11669## ----------------------------------- ##
11670_ASEOF
11671test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11672
11673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11674# Save the log message, to keep $0 and so on meaningful, and to
11675# report actual input values of CONFIG_FILES etc. instead of their
11676# values after options handling.
11677ac_log="
11678This file was extended by twm $as_me 1.0.8, which was
11679generated by GNU Autoconf 2.68.  Invocation command line was
11680
11681  CONFIG_FILES    = $CONFIG_FILES
11682  CONFIG_HEADERS  = $CONFIG_HEADERS
11683  CONFIG_LINKS    = $CONFIG_LINKS
11684  CONFIG_COMMANDS = $CONFIG_COMMANDS
11685  $ $0 $@
11686
11687on `(hostname || uname -n) 2>/dev/null | sed 1q`
11688"
11689
11690_ACEOF
11691
11692case $ac_config_files in *"
11693"*) set x $ac_config_files; shift; ac_config_files=$*;;
11694esac
11695
11696case $ac_config_headers in *"
11697"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11698esac
11699
11700
11701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11702# Files that config.status was made for.
11703config_files="$ac_config_files"
11704config_headers="$ac_config_headers"
11705config_commands="$ac_config_commands"
11706
11707_ACEOF
11708
11709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11710ac_cs_usage="\
11711\`$as_me' instantiates files and other configuration actions
11712from templates according to the current configuration.  Unless the files
11713and actions are specified as TAGs, all are instantiated by default.
11714
11715Usage: $0 [OPTION]... [TAG]...
11716
11717  -h, --help       print this help, then exit
11718  -V, --version    print version number and configuration settings, then exit
11719      --config     print configuration, then exit
11720  -q, --quiet, --silent
11721                   do not print progress messages
11722  -d, --debug      don't remove temporary files
11723      --recheck    update $as_me by reconfiguring in the same conditions
11724      --file=FILE[:TEMPLATE]
11725                   instantiate the configuration file FILE
11726      --header=FILE[:TEMPLATE]
11727                   instantiate the configuration header FILE
11728
11729Configuration files:
11730$config_files
11731
11732Configuration headers:
11733$config_headers
11734
11735Configuration commands:
11736$config_commands
11737
11738Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11739
11740_ACEOF
11741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11742ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11743ac_cs_version="\\
11744twm config.status 1.0.8
11745configured by $0, generated by GNU Autoconf 2.68,
11746  with options \\"\$ac_cs_config\\"
11747
11748Copyright (C) 2010 Free Software Foundation, Inc.
11749This config.status script is free software; the Free Software Foundation
11750gives unlimited permission to copy, distribute and modify it."
11751
11752ac_pwd='$ac_pwd'
11753srcdir='$srcdir'
11754INSTALL='$INSTALL'
11755MKDIR_P='$MKDIR_P'
11756AWK='$AWK'
11757test -n "\$AWK" || AWK=awk
11758_ACEOF
11759
11760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11761# The default lists apply if the user does not specify any file.
11762ac_need_defaults=:
11763while test $# != 0
11764do
11765  case $1 in
11766  --*=?*)
11767    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11768    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11769    ac_shift=:
11770    ;;
11771  --*=)
11772    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11773    ac_optarg=
11774    ac_shift=:
11775    ;;
11776  *)
11777    ac_option=$1
11778    ac_optarg=$2
11779    ac_shift=shift
11780    ;;
11781  esac
11782
11783  case $ac_option in
11784  # Handling of the options.
11785  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11786    ac_cs_recheck=: ;;
11787  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11788    $as_echo "$ac_cs_version"; exit ;;
11789  --config | --confi | --conf | --con | --co | --c )
11790    $as_echo "$ac_cs_config"; exit ;;
11791  --debug | --debu | --deb | --de | --d | -d )
11792    debug=: ;;
11793  --file | --fil | --fi | --f )
11794    $ac_shift
11795    case $ac_optarg in
11796    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11797    '') as_fn_error $? "missing file argument" ;;
11798    esac
11799    as_fn_append CONFIG_FILES " '$ac_optarg'"
11800    ac_need_defaults=false;;
11801  --header | --heade | --head | --hea )
11802    $ac_shift
11803    case $ac_optarg in
11804    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11805    esac
11806    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11807    ac_need_defaults=false;;
11808  --he | --h)
11809    # Conflict between --help and --header
11810    as_fn_error $? "ambiguous option: \`$1'
11811Try \`$0 --help' for more information.";;
11812  --help | --hel | -h )
11813    $as_echo "$ac_cs_usage"; exit ;;
11814  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11815  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11816    ac_cs_silent=: ;;
11817
11818  # This is an error.
11819  -*) as_fn_error $? "unrecognized option: \`$1'
11820Try \`$0 --help' for more information." ;;
11821
11822  *) as_fn_append ac_config_targets " $1"
11823     ac_need_defaults=false ;;
11824
11825  esac
11826  shift
11827done
11828
11829ac_configure_extra_args=
11830
11831if $ac_cs_silent; then
11832  exec 6>/dev/null
11833  ac_configure_extra_args="$ac_configure_extra_args --silent"
11834fi
11835
11836_ACEOF
11837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11838if \$ac_cs_recheck; then
11839  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11840  shift
11841  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11842  CONFIG_SHELL='$SHELL'
11843  export CONFIG_SHELL
11844  exec "\$@"
11845fi
11846
11847_ACEOF
11848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11849exec 5>>config.log
11850{
11851  echo
11852  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11853## Running $as_me. ##
11854_ASBOX
11855  $as_echo "$ac_log"
11856} >&5
11857
11858_ACEOF
11859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11860#
11861# INIT-COMMANDS
11862#
11863AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11864
11865_ACEOF
11866
11867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11868
11869# Handling of arguments.
11870for ac_config_target in $ac_config_targets
11871do
11872  case $ac_config_target in
11873    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11874    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11875    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11876    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11877    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11878
11879  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11880  esac
11881done
11882
11883
11884# If the user did not use the arguments to specify the items to instantiate,
11885# then the envvar interface is used.  Set only those that are not.
11886# We use the long form for the default assignment because of an extremely
11887# bizarre bug on SunOS 4.1.3.
11888if $ac_need_defaults; then
11889  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11890  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11891  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11892fi
11893
11894# Have a temporary directory for convenience.  Make it in the build tree
11895# simply because there is no reason against having it here, and in addition,
11896# creating and moving files from /tmp can sometimes cause problems.
11897# Hook for its removal unless debugging.
11898# Note that there is a small window in which the directory will not be cleaned:
11899# after its creation but before its name has been assigned to `$tmp'.
11900$debug ||
11901{
11902  tmp= ac_tmp=
11903  trap 'exit_status=$?
11904  : "${ac_tmp:=$tmp}"
11905  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11906' 0
11907  trap 'as_fn_exit 1' 1 2 13 15
11908}
11909# Create a (secure) tmp directory for tmp files.
11910
11911{
11912  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11913  test -d "$tmp"
11914}  ||
11915{
11916  tmp=./conf$$-$RANDOM
11917  (umask 077 && mkdir "$tmp")
11918} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11919ac_tmp=$tmp
11920
11921# Set up the scripts for CONFIG_FILES section.
11922# No need to generate them if there are no CONFIG_FILES.
11923# This happens for instance with `./config.status config.h'.
11924if test -n "$CONFIG_FILES"; then
11925
11926
11927ac_cr=`echo X | tr X '\015'`
11928# On cygwin, bash can eat \r inside `` if the user requested igncr.
11929# But we know of no other shell where ac_cr would be empty at this
11930# point, so we can use a bashism as a fallback.
11931if test "x$ac_cr" = x; then
11932  eval ac_cr=\$\'\\r\'
11933fi
11934ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11935if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11936  ac_cs_awk_cr='\\r'
11937else
11938  ac_cs_awk_cr=$ac_cr
11939fi
11940
11941echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11942_ACEOF
11943
11944
11945{
11946  echo "cat >conf$$subs.awk <<_ACEOF" &&
11947  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11948  echo "_ACEOF"
11949} >conf$$subs.sh ||
11950  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11951ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11952ac_delim='%!_!# '
11953for ac_last_try in false false false false false :; do
11954  . ./conf$$subs.sh ||
11955    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11956
11957  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11958  if test $ac_delim_n = $ac_delim_num; then
11959    break
11960  elif $ac_last_try; then
11961    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11962  else
11963    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11964  fi
11965done
11966rm -f conf$$subs.sh
11967
11968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11970_ACEOF
11971sed -n '
11972h
11973s/^/S["/; s/!.*/"]=/
11974p
11975g
11976s/^[^!]*!//
11977:repl
11978t repl
11979s/'"$ac_delim"'$//
11980t delim
11981:nl
11982h
11983s/\(.\{148\}\)..*/\1/
11984t more1
11985s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11986p
11987n
11988b repl
11989:more1
11990s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11991p
11992g
11993s/.\{148\}//
11994t nl
11995:delim
11996h
11997s/\(.\{148\}\)..*/\1/
11998t more2
11999s/["\\]/\\&/g; s/^/"/; s/$/"/
12000p
12001b
12002:more2
12003s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12004p
12005g
12006s/.\{148\}//
12007t delim
12008' <conf$$subs.awk | sed '
12009/^[^""]/{
12010  N
12011  s/\n//
12012}
12013' >>$CONFIG_STATUS || ac_write_fail=1
12014rm -f conf$$subs.awk
12015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12016_ACAWK
12017cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12018  for (key in S) S_is_set[key] = 1
12019  FS = ""
12020
12021}
12022{
12023  line = $ 0
12024  nfields = split(line, field, "@")
12025  substed = 0
12026  len = length(field[1])
12027  for (i = 2; i < nfields; i++) {
12028    key = field[i]
12029    keylen = length(key)
12030    if (S_is_set[key]) {
12031      value = S[key]
12032      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12033      len += length(value) + length(field[++i])
12034      substed = 1
12035    } else
12036      len += 1 + keylen
12037  }
12038
12039  print line
12040}
12041
12042_ACAWK
12043_ACEOF
12044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12046  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12047else
12048  cat
12049fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12050  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12051_ACEOF
12052
12053# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12054# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12055# trailing colons and then remove the whole line if VPATH becomes empty
12056# (actually we leave an empty line to preserve line numbers).
12057if test "x$srcdir" = x.; then
12058  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12059h
12060s///
12061s/^/:/
12062s/[	 ]*$/:/
12063s/:\$(srcdir):/:/g
12064s/:\${srcdir}:/:/g
12065s/:@srcdir@:/:/g
12066s/^:*//
12067s/:*$//
12068x
12069s/\(=[	 ]*\).*/\1/
12070G
12071s/\n//
12072s/^[^=]*=[	 ]*$//
12073}'
12074fi
12075
12076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12077fi # test -n "$CONFIG_FILES"
12078
12079# Set up the scripts for CONFIG_HEADERS section.
12080# No need to generate them if there are no CONFIG_HEADERS.
12081# This happens for instance with `./config.status Makefile'.
12082if test -n "$CONFIG_HEADERS"; then
12083cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12084BEGIN {
12085_ACEOF
12086
12087# Transform confdefs.h into an awk script `defines.awk', embedded as
12088# here-document in config.status, that substitutes the proper values into
12089# config.h.in to produce config.h.
12090
12091# Create a delimiter string that does not exist in confdefs.h, to ease
12092# handling of long lines.
12093ac_delim='%!_!# '
12094for ac_last_try in false false :; do
12095  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12096  if test -z "$ac_tt"; then
12097    break
12098  elif $ac_last_try; then
12099    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12100  else
12101    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12102  fi
12103done
12104
12105# For the awk script, D is an array of macro values keyed by name,
12106# likewise P contains macro parameters if any.  Preserve backslash
12107# newline sequences.
12108
12109ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12110sed -n '
12111s/.\{148\}/&'"$ac_delim"'/g
12112t rset
12113:rset
12114s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12115t def
12116d
12117:def
12118s/\\$//
12119t bsnl
12120s/["\\]/\\&/g
12121s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12122D["\1"]=" \3"/p
12123s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12124d
12125:bsnl
12126s/["\\]/\\&/g
12127s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12128D["\1"]=" \3\\\\\\n"\\/p
12129t cont
12130s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12131t cont
12132d
12133:cont
12134n
12135s/.\{148\}/&'"$ac_delim"'/g
12136t clear
12137:clear
12138s/\\$//
12139t bsnlc
12140s/["\\]/\\&/g; s/^/"/; s/$/"/p
12141d
12142:bsnlc
12143s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12144b cont
12145' <confdefs.h | sed '
12146s/'"$ac_delim"'/"\\\
12147"/g' >>$CONFIG_STATUS || ac_write_fail=1
12148
12149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12150  for (key in D) D_is_set[key] = 1
12151  FS = ""
12152}
12153/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12154  line = \$ 0
12155  split(line, arg, " ")
12156  if (arg[1] == "#") {
12157    defundef = arg[2]
12158    mac1 = arg[3]
12159  } else {
12160    defundef = substr(arg[1], 2)
12161    mac1 = arg[2]
12162  }
12163  split(mac1, mac2, "(") #)
12164  macro = mac2[1]
12165  prefix = substr(line, 1, index(line, defundef) - 1)
12166  if (D_is_set[macro]) {
12167    # Preserve the white space surrounding the "#".
12168    print prefix "define", macro P[macro] D[macro]
12169    next
12170  } else {
12171    # Replace #undef with comments.  This is necessary, for example,
12172    # in the case of _POSIX_SOURCE, which is predefined and required
12173    # on some systems where configure will not decide to define it.
12174    if (defundef == "undef") {
12175      print "/*", prefix defundef, macro, "*/"
12176      next
12177    }
12178  }
12179}
12180{ print }
12181_ACAWK
12182_ACEOF
12183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12184  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12185fi # test -n "$CONFIG_HEADERS"
12186
12187
12188eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12189shift
12190for ac_tag
12191do
12192  case $ac_tag in
12193  :[FHLC]) ac_mode=$ac_tag; continue;;
12194  esac
12195  case $ac_mode$ac_tag in
12196  :[FHL]*:*);;
12197  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12198  :[FH]-) ac_tag=-:-;;
12199  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12200  esac
12201  ac_save_IFS=$IFS
12202  IFS=:
12203  set x $ac_tag
12204  IFS=$ac_save_IFS
12205  shift
12206  ac_file=$1
12207  shift
12208
12209  case $ac_mode in
12210  :L) ac_source=$1;;
12211  :[FH])
12212    ac_file_inputs=
12213    for ac_f
12214    do
12215      case $ac_f in
12216      -) ac_f="$ac_tmp/stdin";;
12217      *) # Look for the file first in the build tree, then in the source tree
12218	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12219	 # because $ac_f cannot contain `:'.
12220	 test -f "$ac_f" ||
12221	   case $ac_f in
12222	   [\\/$]*) false;;
12223	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12224	   esac ||
12225	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12226      esac
12227      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12228      as_fn_append ac_file_inputs " '$ac_f'"
12229    done
12230
12231    # Let's still pretend it is `configure' which instantiates (i.e., don't
12232    # use $as_me), people would be surprised to read:
12233    #    /* config.h.  Generated by config.status.  */
12234    configure_input='Generated from '`
12235	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12236	`' by configure.'
12237    if test x"$ac_file" != x-; then
12238      configure_input="$ac_file.  $configure_input"
12239      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12240$as_echo "$as_me: creating $ac_file" >&6;}
12241    fi
12242    # Neutralize special characters interpreted by sed in replacement strings.
12243    case $configure_input in #(
12244    *\&* | *\|* | *\\* )
12245       ac_sed_conf_input=`$as_echo "$configure_input" |
12246       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12247    *) ac_sed_conf_input=$configure_input;;
12248    esac
12249
12250    case $ac_tag in
12251    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12252      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12253    esac
12254    ;;
12255  esac
12256
12257  ac_dir=`$as_dirname -- "$ac_file" ||
12258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12259	 X"$ac_file" : 'X\(//\)[^/]' \| \
12260	 X"$ac_file" : 'X\(//\)$' \| \
12261	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12262$as_echo X"$ac_file" |
12263    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12264	    s//\1/
12265	    q
12266	  }
12267	  /^X\(\/\/\)[^/].*/{
12268	    s//\1/
12269	    q
12270	  }
12271	  /^X\(\/\/\)$/{
12272	    s//\1/
12273	    q
12274	  }
12275	  /^X\(\/\).*/{
12276	    s//\1/
12277	    q
12278	  }
12279	  s/.*/./; q'`
12280  as_dir="$ac_dir"; as_fn_mkdir_p
12281  ac_builddir=.
12282
12283case "$ac_dir" in
12284.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12285*)
12286  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12287  # A ".." for each directory in $ac_dir_suffix.
12288  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12289  case $ac_top_builddir_sub in
12290  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12291  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12292  esac ;;
12293esac
12294ac_abs_top_builddir=$ac_pwd
12295ac_abs_builddir=$ac_pwd$ac_dir_suffix
12296# for backward compatibility:
12297ac_top_builddir=$ac_top_build_prefix
12298
12299case $srcdir in
12300  .)  # We are building in place.
12301    ac_srcdir=.
12302    ac_top_srcdir=$ac_top_builddir_sub
12303    ac_abs_top_srcdir=$ac_pwd ;;
12304  [\\/]* | ?:[\\/]* )  # Absolute name.
12305    ac_srcdir=$srcdir$ac_dir_suffix;
12306    ac_top_srcdir=$srcdir
12307    ac_abs_top_srcdir=$srcdir ;;
12308  *) # Relative name.
12309    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12310    ac_top_srcdir=$ac_top_build_prefix$srcdir
12311    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12312esac
12313ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12314
12315
12316  case $ac_mode in
12317  :F)
12318  #
12319  # CONFIG_FILE
12320  #
12321
12322  case $INSTALL in
12323  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12324  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12325  esac
12326  ac_MKDIR_P=$MKDIR_P
12327  case $MKDIR_P in
12328  [\\/$]* | ?:[\\/]* ) ;;
12329  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12330  esac
12331_ACEOF
12332
12333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334# If the template does not know about datarootdir, expand it.
12335# FIXME: This hack should be removed a few years after 2.60.
12336ac_datarootdir_hack=; ac_datarootdir_seen=
12337ac_sed_dataroot='
12338/datarootdir/ {
12339  p
12340  q
12341}
12342/@datadir@/p
12343/@docdir@/p
12344/@infodir@/p
12345/@localedir@/p
12346/@mandir@/p'
12347case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12348*datarootdir*) ac_datarootdir_seen=yes;;
12349*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12350  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12351$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12352_ACEOF
12353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12354  ac_datarootdir_hack='
12355  s&@datadir@&$datadir&g
12356  s&@docdir@&$docdir&g
12357  s&@infodir@&$infodir&g
12358  s&@localedir@&$localedir&g
12359  s&@mandir@&$mandir&g
12360  s&\\\${datarootdir}&$datarootdir&g' ;;
12361esac
12362_ACEOF
12363
12364# Neutralize VPATH when `$srcdir' = `.'.
12365# Shell code in configure.ac might set extrasub.
12366# FIXME: do we really want to maintain this feature?
12367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12368ac_sed_extra="$ac_vpsub
12369$extrasub
12370_ACEOF
12371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12372:t
12373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12374s|@configure_input@|$ac_sed_conf_input|;t t
12375s&@top_builddir@&$ac_top_builddir_sub&;t t
12376s&@top_build_prefix@&$ac_top_build_prefix&;t t
12377s&@srcdir@&$ac_srcdir&;t t
12378s&@abs_srcdir@&$ac_abs_srcdir&;t t
12379s&@top_srcdir@&$ac_top_srcdir&;t t
12380s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12381s&@builddir@&$ac_builddir&;t t
12382s&@abs_builddir@&$ac_abs_builddir&;t t
12383s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12384s&@INSTALL@&$ac_INSTALL&;t t
12385s&@MKDIR_P@&$ac_MKDIR_P&;t t
12386$ac_datarootdir_hack
12387"
12388eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12389  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12390
12391test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12392  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12393  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12394      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12396which seems to be undefined.  Please make sure it is defined" >&5
12397$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12398which seems to be undefined.  Please make sure it is defined" >&2;}
12399
12400  rm -f "$ac_tmp/stdin"
12401  case $ac_file in
12402  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12403  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12404  esac \
12405  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12406 ;;
12407  :H)
12408  #
12409  # CONFIG_HEADER
12410  #
12411  if test x"$ac_file" != x-; then
12412    {
12413      $as_echo "/* $configure_input  */" \
12414      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12415    } >"$ac_tmp/config.h" \
12416      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12417    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12418      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12419$as_echo "$as_me: $ac_file is unchanged" >&6;}
12420    else
12421      rm -f "$ac_file"
12422      mv "$ac_tmp/config.h" "$ac_file" \
12423	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12424    fi
12425  else
12426    $as_echo "/* $configure_input  */" \
12427      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12428      || as_fn_error $? "could not create -" "$LINENO" 5
12429  fi
12430# Compute "$ac_file"'s index in $config_headers.
12431_am_arg="$ac_file"
12432_am_stamp_count=1
12433for _am_header in $config_headers :; do
12434  case $_am_header in
12435    $_am_arg | $_am_arg:* )
12436      break ;;
12437    * )
12438      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12439  esac
12440done
12441echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12442$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12443	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12444	 X"$_am_arg" : 'X\(//\)$' \| \
12445	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12446$as_echo X"$_am_arg" |
12447    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12448	    s//\1/
12449	    q
12450	  }
12451	  /^X\(\/\/\)[^/].*/{
12452	    s//\1/
12453	    q
12454	  }
12455	  /^X\(\/\/\)$/{
12456	    s//\1/
12457	    q
12458	  }
12459	  /^X\(\/\).*/{
12460	    s//\1/
12461	    q
12462	  }
12463	  s/.*/./; q'`/stamp-h$_am_stamp_count
12464 ;;
12465
12466  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12467$as_echo "$as_me: executing $ac_file commands" >&6;}
12468 ;;
12469  esac
12470
12471
12472  case $ac_file$ac_mode in
12473    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12474  # Older Autoconf quotes --file arguments for eval, but not when files
12475  # are listed without --file.  Let's play safe and only enable the eval
12476  # if we detect the quoting.
12477  case $CONFIG_FILES in
12478  *\'*) eval set x "$CONFIG_FILES" ;;
12479  *)   set x $CONFIG_FILES ;;
12480  esac
12481  shift
12482  for mf
12483  do
12484    # Strip MF so we end up with the name of the file.
12485    mf=`echo "$mf" | sed -e 's/:.*$//'`
12486    # Check whether this is an Automake generated Makefile or not.
12487    # We used to match only the files named 'Makefile.in', but
12488    # some people rename them; so instead we look at the file content.
12489    # Grep'ing the first line is not enough: some people post-process
12490    # each Makefile.in and add a new line on top of each file to say so.
12491    # Grep'ing the whole file is not good either: AIX grep has a line
12492    # limit of 2048, but all sed's we know have understand at least 4000.
12493    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12494      dirpart=`$as_dirname -- "$mf" ||
12495$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12496	 X"$mf" : 'X\(//\)[^/]' \| \
12497	 X"$mf" : 'X\(//\)$' \| \
12498	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12499$as_echo X"$mf" |
12500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12501	    s//\1/
12502	    q
12503	  }
12504	  /^X\(\/\/\)[^/].*/{
12505	    s//\1/
12506	    q
12507	  }
12508	  /^X\(\/\/\)$/{
12509	    s//\1/
12510	    q
12511	  }
12512	  /^X\(\/\).*/{
12513	    s//\1/
12514	    q
12515	  }
12516	  s/.*/./; q'`
12517    else
12518      continue
12519    fi
12520    # Extract the definition of DEPDIR, am__include, and am__quote
12521    # from the Makefile without running 'make'.
12522    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12523    test -z "$DEPDIR" && continue
12524    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12525    test -z "$am__include" && continue
12526    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12527    # Find all dependency output files, they are included files with
12528    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12529    # simplest approach to changing $(DEPDIR) to its actual value in the
12530    # expansion.
12531    for file in `sed -n "
12532      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12533	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12534      # Make sure the directory exists.
12535      test -f "$dirpart/$file" && continue
12536      fdir=`$as_dirname -- "$file" ||
12537$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12538	 X"$file" : 'X\(//\)[^/]' \| \
12539	 X"$file" : 'X\(//\)$' \| \
12540	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12541$as_echo X"$file" |
12542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12543	    s//\1/
12544	    q
12545	  }
12546	  /^X\(\/\/\)[^/].*/{
12547	    s//\1/
12548	    q
12549	  }
12550	  /^X\(\/\/\)$/{
12551	    s//\1/
12552	    q
12553	  }
12554	  /^X\(\/\).*/{
12555	    s//\1/
12556	    q
12557	  }
12558	  s/.*/./; q'`
12559      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12560      # echo "creating $dirpart/$file"
12561      echo '# dummy' > "$dirpart/$file"
12562    done
12563  done
12564}
12565 ;;
12566
12567  esac
12568done # for ac_tag
12569
12570
12571as_fn_exit 0
12572_ACEOF
12573ac_clean_files=$ac_clean_files_save
12574
12575test $ac_write_fail = 0 ||
12576  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12577
12578
12579# configure is writing to config.log, and then calls config.status.
12580# config.status does its own redirection, appending to config.log.
12581# Unfortunately, on DOS this fails, as config.log is still kept open
12582# by configure, so config.status won't be able to write to it; its
12583# output is simply discarded.  So we exec the FD to /dev/null,
12584# effectively closing config.log, so it can be properly (re)opened and
12585# appended to by config.status.  When coming back to configure, we
12586# need to make the FD available again.
12587if test "$no_create" != yes; then
12588  ac_cs_success=:
12589  ac_config_status_args=
12590  test "$silent" = yes &&
12591    ac_config_status_args="$ac_config_status_args --quiet"
12592  exec 5>/dev/null
12593  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12594  exec 5>>config.log
12595  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12596  # would make configure fail if this is the last instruction.
12597  $ac_cs_success || as_fn_exit 1
12598fi
12599if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12601$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12602fi
12603
12604