configure revision 40a76396
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xset 1.2.3.
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='xset'
563PACKAGE_TARNAME='xset'
564PACKAGE_VERSION='1.2.3'
565PACKAGE_STRING='xset 1.2.3'
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
610SET_FONTCACHE_LIBS
611SET_FONTCACHE_CFLAGS
612SET_XF86MISC_LIBS
613SET_XF86MISC_CFLAGS
614SET_XKB_LIBS
615SET_XKB_CFLAGS
616SET_XEXT_LIBS
617SET_XEXT_CFLAGS
618SET_X11_LIBS
619SET_X11_CFLAGS
620XSET_LIBS
621XSET_CFLAGS
622MAN_SUBSTS
623XORG_MAN_PAGE
624ADMIN_MAN_DIR
625DRIVER_MAN_DIR
626MISC_MAN_DIR
627FILE_MAN_DIR
628LIB_MAN_DIR
629APP_MAN_DIR
630ADMIN_MAN_SUFFIX
631DRIVER_MAN_SUFFIX
632MISC_MAN_SUFFIX
633FILE_MAN_SUFFIX
634LIB_MAN_SUFFIX
635APP_MAN_SUFFIX
636SED
637host_os
638host_vendor
639host_cpu
640host
641build_os
642build_vendor
643build_cpu
644build
645INSTALL_CMD
646PKG_CONFIG
647CHANGELOG_CMD
648STRICT_CFLAGS
649CWARNFLAGS
650BASE_CFLAGS
651MAINT
652MAINTAINER_MODE_FALSE
653MAINTAINER_MODE_TRUE
654AM_BACKSLASH
655AM_DEFAULT_VERBOSITY
656AM_DEFAULT_V
657AM_V
658am__fastdepCC_FALSE
659am__fastdepCC_TRUE
660CCDEPMODE
661am__nodep
662AMDEPBACKSLASH
663AMDEP_FALSE
664AMDEP_TRUE
665am__quote
666am__include
667DEPDIR
668am__untar
669am__tar
670AMTAR
671am__leading_dot
672SET_MAKE
673AWK
674mkdir_p
675MKDIR_P
676INSTALL_STRIP_PROGRAM
677STRIP
678install_sh
679MAKEINFO
680AUTOHEADER
681AUTOMAKE
682AUTOCONF
683ACLOCAL
684VERSION
685PACKAGE
686CYGPATH_W
687am__isrc
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691EGREP
692GREP
693CPP
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files=''
740ac_user_opts='
741enable_option_checking
742enable_dependency_tracking
743enable_silent_rules
744enable_maintainer_mode
745enable_selective_werror
746enable_strict_compilation
747with_xf86misc
748with_fontcache
749'
750      ac_precious_vars='build_alias
751host_alias
752target_alias
753CC
754CFLAGS
755LDFLAGS
756LIBS
757CPPFLAGS
758CPP
759PKG_CONFIG
760XSET_CFLAGS
761XSET_LIBS
762SET_X11_CFLAGS
763SET_X11_LIBS
764SET_XEXT_CFLAGS
765SET_XEXT_LIBS
766SET_XKB_CFLAGS
767SET_XKB_LIBS
768SET_XF86MISC_CFLAGS
769SET_XF86MISC_LIBS
770SET_FONTCACHE_CFLAGS
771SET_FONTCACHE_LIBS'
772
773
774# Initialize some variables set by options.
775ac_init_help=
776ac_init_version=false
777ac_unrecognized_opts=
778ac_unrecognized_sep=
779# The variables have the same names as the options, with
780# dashes changed to underlines.
781cache_file=/dev/null
782exec_prefix=NONE
783no_create=
784no_recursion=
785prefix=NONE
786program_prefix=NONE
787program_suffix=NONE
788program_transform_name=s,x,x,
789silent=
790site=
791srcdir=
792verbose=
793x_includes=NONE
794x_libraries=NONE
795
796# Installation directory options.
797# These are left unexpanded so users can "make install exec_prefix=/foo"
798# and all the variables that are supposed to be based on exec_prefix
799# by default will actually change.
800# Use braces instead of parens because sh, perl, etc. also accept them.
801# (The list follows the same order as the GNU Coding Standards.)
802bindir='${exec_prefix}/bin'
803sbindir='${exec_prefix}/sbin'
804libexecdir='${exec_prefix}/libexec'
805datarootdir='${prefix}/share'
806datadir='${datarootdir}'
807sysconfdir='${prefix}/etc'
808sharedstatedir='${prefix}/com'
809localstatedir='${prefix}/var'
810includedir='${prefix}/include'
811oldincludedir='/usr/include'
812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813infodir='${datarootdir}/info'
814htmldir='${docdir}'
815dvidir='${docdir}'
816pdfdir='${docdir}'
817psdir='${docdir}'
818libdir='${exec_prefix}/lib'
819localedir='${datarootdir}/locale'
820mandir='${datarootdir}/man'
821
822ac_prev=
823ac_dashdash=
824for ac_option
825do
826  # If the previous option needs an argument, assign it.
827  if test -n "$ac_prev"; then
828    eval $ac_prev=\$ac_option
829    ac_prev=
830    continue
831  fi
832
833  case $ac_option in
834  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835  *=)   ac_optarg= ;;
836  *)    ac_optarg=yes ;;
837  esac
838
839  # Accept the important Cygnus configure options, so we can diagnose typos.
840
841  case $ac_dashdash$ac_option in
842  --)
843    ac_dashdash=yes ;;
844
845  -bindir | --bindir | --bindi | --bind | --bin | --bi)
846    ac_prev=bindir ;;
847  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848    bindir=$ac_optarg ;;
849
850  -build | --build | --buil | --bui | --bu)
851    ac_prev=build_alias ;;
852  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853    build_alias=$ac_optarg ;;
854
855  -cache-file | --cache-file | --cache-fil | --cache-fi \
856  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857    ac_prev=cache_file ;;
858  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860    cache_file=$ac_optarg ;;
861
862  --config-cache | -C)
863    cache_file=config.cache ;;
864
865  -datadir | --datadir | --datadi | --datad)
866    ac_prev=datadir ;;
867  -datadir=* | --datadir=* | --datadi=* | --datad=*)
868    datadir=$ac_optarg ;;
869
870  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871  | --dataroo | --dataro | --datar)
872    ac_prev=datarootdir ;;
873  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875    datarootdir=$ac_optarg ;;
876
877  -disable-* | --disable-*)
878    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879    # Reject names that are not valid shell variable names.
880    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881      as_fn_error $? "invalid feature name: $ac_useropt"
882    ac_useropt_orig=$ac_useropt
883    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884    case $ac_user_opts in
885      *"
886"enable_$ac_useropt"
887"*) ;;
888      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889	 ac_unrecognized_sep=', ';;
890    esac
891    eval enable_$ac_useropt=no ;;
892
893  -docdir | --docdir | --docdi | --doc | --do)
894    ac_prev=docdir ;;
895  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896    docdir=$ac_optarg ;;
897
898  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899    ac_prev=dvidir ;;
900  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901    dvidir=$ac_optarg ;;
902
903  -enable-* | --enable-*)
904    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905    # Reject names that are not valid shell variable names.
906    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907      as_fn_error $? "invalid feature name: $ac_useropt"
908    ac_useropt_orig=$ac_useropt
909    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910    case $ac_user_opts in
911      *"
912"enable_$ac_useropt"
913"*) ;;
914      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915	 ac_unrecognized_sep=', ';;
916    esac
917    eval enable_$ac_useropt=\$ac_optarg ;;
918
919  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921  | --exec | --exe | --ex)
922    ac_prev=exec_prefix ;;
923  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925  | --exec=* | --exe=* | --ex=*)
926    exec_prefix=$ac_optarg ;;
927
928  -gas | --gas | --ga | --g)
929    # Obsolete; use --with-gas.
930    with_gas=yes ;;
931
932  -help | --help | --hel | --he | -h)
933    ac_init_help=long ;;
934  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935    ac_init_help=recursive ;;
936  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937    ac_init_help=short ;;
938
939  -host | --host | --hos | --ho)
940    ac_prev=host_alias ;;
941  -host=* | --host=* | --hos=* | --ho=*)
942    host_alias=$ac_optarg ;;
943
944  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945    ac_prev=htmldir ;;
946  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947  | --ht=*)
948    htmldir=$ac_optarg ;;
949
950  -includedir | --includedir | --includedi | --included | --include \
951  | --includ | --inclu | --incl | --inc)
952    ac_prev=includedir ;;
953  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954  | --includ=* | --inclu=* | --incl=* | --inc=*)
955    includedir=$ac_optarg ;;
956
957  -infodir | --infodir | --infodi | --infod | --info | --inf)
958    ac_prev=infodir ;;
959  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960    infodir=$ac_optarg ;;
961
962  -libdir | --libdir | --libdi | --libd)
963    ac_prev=libdir ;;
964  -libdir=* | --libdir=* | --libdi=* | --libd=*)
965    libdir=$ac_optarg ;;
966
967  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968  | --libexe | --libex | --libe)
969    ac_prev=libexecdir ;;
970  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971  | --libexe=* | --libex=* | --libe=*)
972    libexecdir=$ac_optarg ;;
973
974  -localedir | --localedir | --localedi | --localed | --locale)
975    ac_prev=localedir ;;
976  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977    localedir=$ac_optarg ;;
978
979  -localstatedir | --localstatedir | --localstatedi | --localstated \
980  | --localstate | --localstat | --localsta | --localst | --locals)
981    ac_prev=localstatedir ;;
982  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984    localstatedir=$ac_optarg ;;
985
986  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987    ac_prev=mandir ;;
988  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989    mandir=$ac_optarg ;;
990
991  -nfp | --nfp | --nf)
992    # Obsolete; use --without-fp.
993    with_fp=no ;;
994
995  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996  | --no-cr | --no-c | -n)
997    no_create=yes ;;
998
999  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001    no_recursion=yes ;;
1002
1003  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005  | --oldin | --oldi | --old | --ol | --o)
1006    ac_prev=oldincludedir ;;
1007  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010    oldincludedir=$ac_optarg ;;
1011
1012  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013    ac_prev=prefix ;;
1014  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015    prefix=$ac_optarg ;;
1016
1017  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018  | --program-pre | --program-pr | --program-p)
1019    ac_prev=program_prefix ;;
1020  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022    program_prefix=$ac_optarg ;;
1023
1024  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025  | --program-suf | --program-su | --program-s)
1026    ac_prev=program_suffix ;;
1027  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029    program_suffix=$ac_optarg ;;
1030
1031  -program-transform-name | --program-transform-name \
1032  | --program-transform-nam | --program-transform-na \
1033  | --program-transform-n | --program-transform- \
1034  | --program-transform | --program-transfor \
1035  | --program-transfo | --program-transf \
1036  | --program-trans | --program-tran \
1037  | --progr-tra | --program-tr | --program-t)
1038    ac_prev=program_transform_name ;;
1039  -program-transform-name=* | --program-transform-name=* \
1040  | --program-transform-nam=* | --program-transform-na=* \
1041  | --program-transform-n=* | --program-transform-=* \
1042  | --program-transform=* | --program-transfor=* \
1043  | --program-transfo=* | --program-transf=* \
1044  | --program-trans=* | --program-tran=* \
1045  | --progr-tra=* | --program-tr=* | --program-t=*)
1046    program_transform_name=$ac_optarg ;;
1047
1048  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049    ac_prev=pdfdir ;;
1050  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051    pdfdir=$ac_optarg ;;
1052
1053  -psdir | --psdir | --psdi | --psd | --ps)
1054    ac_prev=psdir ;;
1055  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056    psdir=$ac_optarg ;;
1057
1058  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059  | -silent | --silent | --silen | --sile | --sil)
1060    silent=yes ;;
1061
1062  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063    ac_prev=sbindir ;;
1064  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065  | --sbi=* | --sb=*)
1066    sbindir=$ac_optarg ;;
1067
1068  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070  | --sharedst | --shareds | --shared | --share | --shar \
1071  | --sha | --sh)
1072    ac_prev=sharedstatedir ;;
1073  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076  | --sha=* | --sh=*)
1077    sharedstatedir=$ac_optarg ;;
1078
1079  -site | --site | --sit)
1080    ac_prev=site ;;
1081  -site=* | --site=* | --sit=*)
1082    site=$ac_optarg ;;
1083
1084  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085    ac_prev=srcdir ;;
1086  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087    srcdir=$ac_optarg ;;
1088
1089  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090  | --syscon | --sysco | --sysc | --sys | --sy)
1091    ac_prev=sysconfdir ;;
1092  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094    sysconfdir=$ac_optarg ;;
1095
1096  -target | --target | --targe | --targ | --tar | --ta | --t)
1097    ac_prev=target_alias ;;
1098  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099    target_alias=$ac_optarg ;;
1100
1101  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102    verbose=yes ;;
1103
1104  -version | --version | --versio | --versi | --vers | -V)
1105    ac_init_version=: ;;
1106
1107  -with-* | --with-*)
1108    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109    # Reject names that are not valid shell variable names.
1110    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111      as_fn_error $? "invalid package name: $ac_useropt"
1112    ac_useropt_orig=$ac_useropt
1113    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114    case $ac_user_opts in
1115      *"
1116"with_$ac_useropt"
1117"*) ;;
1118      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119	 ac_unrecognized_sep=', ';;
1120    esac
1121    eval with_$ac_useropt=\$ac_optarg ;;
1122
1123  -without-* | --without-*)
1124    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125    # Reject names that are not valid shell variable names.
1126    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127      as_fn_error $? "invalid package name: $ac_useropt"
1128    ac_useropt_orig=$ac_useropt
1129    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130    case $ac_user_opts in
1131      *"
1132"with_$ac_useropt"
1133"*) ;;
1134      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135	 ac_unrecognized_sep=', ';;
1136    esac
1137    eval with_$ac_useropt=no ;;
1138
1139  --x)
1140    # Obsolete; use --with-x.
1141    with_x=yes ;;
1142
1143  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144  | --x-incl | --x-inc | --x-in | --x-i)
1145    ac_prev=x_includes ;;
1146  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148    x_includes=$ac_optarg ;;
1149
1150  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152    ac_prev=x_libraries ;;
1153  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155    x_libraries=$ac_optarg ;;
1156
1157  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158Try \`$0 --help' for more information"
1159    ;;
1160
1161  *=*)
1162    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163    # Reject names that are not valid shell variable names.
1164    case $ac_envvar in #(
1165      '' | [0-9]* | *[!_$as_cr_alnum]* )
1166      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1167    esac
1168    eval $ac_envvar=\$ac_optarg
1169    export $ac_envvar ;;
1170
1171  *)
1172    # FIXME: should be removed in autoconf 3.0.
1173    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1177    ;;
1178
1179  esac
1180done
1181
1182if test -n "$ac_prev"; then
1183  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184  as_fn_error $? "missing argument to $ac_option"
1185fi
1186
1187if test -n "$ac_unrecognized_opts"; then
1188  case $enable_option_checking in
1189    no) ;;
1190    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1192  esac
1193fi
1194
1195# Check all directory arguments for consistency.
1196for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197		datadir sysconfdir sharedstatedir localstatedir includedir \
1198		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199		libdir localedir mandir
1200do
1201  eval ac_val=\$$ac_var
1202  # Remove trailing slashes.
1203  case $ac_val in
1204    */ )
1205      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206      eval $ac_var=\$ac_val;;
1207  esac
1208  # Be sure to have absolute directory names.
1209  case $ac_val in
1210    [\\/$]* | ?:[\\/]* )  continue;;
1211    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1212  esac
1213  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225  if test "x$build_alias" = x; then
1226    cross_compiling=maybe
1227    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1228    If a cross compiler is detected then cross compile mode will be used" >&2
1229  elif test "x$build_alias" != "x$host_alias"; then
1230    cross_compiling=yes
1231  fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243  as_fn_error $? "working directory cannot be determined"
1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245  as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250  ac_srcdir_defaulted=yes
1251  # Try the directory containing this script, then the parent directory.
1252  ac_confdir=`$as_dirname -- "$as_myself" ||
1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254	 X"$as_myself" : 'X\(//\)[^/]' \| \
1255	 X"$as_myself" : 'X\(//\)$' \| \
1256	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257$as_echo X"$as_myself" |
1258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)[^/].*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\).*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  s/.*/./; q'`
1275  srcdir=$ac_confdir
1276  if test ! -r "$srcdir/$ac_unique_file"; then
1277    srcdir=..
1278  fi
1279else
1280  ac_srcdir_defaulted=no
1281fi
1282if test ! -r "$srcdir/$ac_unique_file"; then
1283  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285fi
1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287ac_abs_confdir=`(
1288	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289	pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292  srcdir=.
1293fi
1294# Remove unnecessary trailing slashes from srcdir.
1295# Double slashes in file names in object file debugging info
1296# mess up M-x gdb in Emacs.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for ac_var in $ac_precious_vars; do
1301  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_env_${ac_var}_value=\$${ac_var}
1303  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305done
1306
1307#
1308# Report the --help message.
1309#
1310if test "$ac_init_help" = "long"; then
1311  # Omit some internal or obsolete options to make the list less imposing.
1312  # This message is too long to be a string in the A/UX 3.1 sh.
1313  cat <<_ACEOF
1314\`configure' configures xset 1.2.3 to adapt to many kinds of systems.
1315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
1324  -h, --help              display this help and exit
1325      --help=short        display options specific to this package
1326      --help=recursive    display the short help of all the included packages
1327  -V, --version           display version information and exit
1328  -q, --quiet, --silent   do not print \`checking ...' messages
1329      --cache-file=FILE   cache test results in FILE [disabled]
1330  -C, --config-cache      alias for \`--cache-file=config.cache'
1331  -n, --no-create         do not create output files
1332      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334Installation directories:
1335  --prefix=PREFIX         install architecture-independent files in PREFIX
1336                          [$ac_default_prefix]
1337  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                          [PREFIX]
1339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
1348  --bindir=DIR            user executables [EPREFIX/bin]
1349  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350  --libexecdir=DIR        program executables [EPREFIX/libexec]
1351  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354  --libdir=DIR            object code libraries [EPREFIX/lib]
1355  --includedir=DIR        C header files [PREFIX/include]
1356  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359  --infodir=DIR           info documentation [DATAROOTDIR/info]
1360  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361  --mandir=DIR            man documentation [DATAROOTDIR/man]
1362  --docdir=DIR            documentation root [DATAROOTDIR/doc/xset]
1363  --htmldir=DIR           html documentation [DOCDIR]
1364  --dvidir=DIR            dvi documentation [DOCDIR]
1365  --pdfdir=DIR            pdf documentation [DOCDIR]
1366  --psdir=DIR             ps documentation [DOCDIR]
1367_ACEOF
1368
1369  cat <<\_ACEOF
1370
1371Program names:
1372  --program-prefix=PREFIX            prepend PREFIX to installed program names
1373  --program-suffix=SUFFIX            append SUFFIX to installed program names
1374  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376System types:
1377  --build=BUILD     configure for building on BUILD [guessed]
1378  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383  case $ac_init_help in
1384     short | recursive ) echo "Configuration of xset 1.2.3:";;
1385   esac
1386  cat <<\_ACEOF
1387
1388Optional Features:
1389  --disable-option-checking  ignore unrecognized --enable/--with options
1390  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392  --enable-dependency-tracking
1393                          do not reject slow dependency extractors
1394  --disable-dependency-tracking
1395                          speeds up one-time build
1396  --enable-silent-rules   less verbose build output (undo: "make V=1")
1397  --disable-silent-rules  verbose build output (undo: "make V=0")
1398  --enable-maintainer-mode
1399                          enable make rules and dependencies not useful (and
1400                          sometimes confusing) to the casual installer
1401  --disable-selective-werror
1402                          Turn off selective compiler errors. (default:
1403                          enabled)
1404  --enable-strict-compilation
1405                          Enable all warnings from compiler and make them
1406                          errors (default: disabled)
1407
1408Optional Packages:
1409  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411  --without-xf86misc      Disable xf86misc support.
1412  --without-fontcache     Disable fontcache support.
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  XSET_CFLAGS C compiler flags for XSET, overriding pkg-config
1425  XSET_LIBS   linker flags for XSET, overriding pkg-config
1426  SET_X11_CFLAGS
1427              C compiler flags for SET_X11, overriding pkg-config
1428  SET_X11_LIBS
1429              linker flags for SET_X11, overriding pkg-config
1430  SET_XEXT_CFLAGS
1431              C compiler flags for SET_XEXT, overriding pkg-config
1432  SET_XEXT_LIBS
1433              linker flags for SET_XEXT, overriding pkg-config
1434  SET_XKB_CFLAGS
1435              C compiler flags for SET_XKB, overriding pkg-config
1436  SET_XKB_LIBS
1437              linker flags for SET_XKB, overriding pkg-config
1438  SET_XF86MISC_CFLAGS
1439              C compiler flags for SET_XF86MISC, overriding pkg-config
1440  SET_XF86MISC_LIBS
1441              linker flags for SET_XF86MISC, overriding pkg-config
1442  SET_FONTCACHE_CFLAGS
1443              C compiler flags for SET_FONTCACHE, overriding pkg-config
1444  SET_FONTCACHE_LIBS
1445              linker flags for SET_FONTCACHE, overriding pkg-config
1446
1447Use these variables to override the choices made by `configure' or to help
1448it to find libraries and programs with nonstandard names/locations.
1449
1450Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456  # If there are subdirs, report their specific --help.
1457  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458    test -d "$ac_dir" ||
1459      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460      continue
1461    ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467  # A ".." for each directory in $ac_dir_suffix.
1468  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469  case $ac_top_builddir_sub in
1470  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472  esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480  .)  # We are building in place.
1481    ac_srcdir=.
1482    ac_top_srcdir=$ac_top_builddir_sub
1483    ac_abs_top_srcdir=$ac_pwd ;;
1484  [\\/]* | ?:[\\/]* )  # Absolute name.
1485    ac_srcdir=$srcdir$ac_dir_suffix;
1486    ac_top_srcdir=$srcdir
1487    ac_abs_top_srcdir=$srcdir ;;
1488  *) # Relative name.
1489    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495    cd "$ac_dir" || { ac_status=$?; continue; }
1496    # Check for guested configure.
1497    if test -f "$ac_srcdir/configure.gnu"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500    elif test -f "$ac_srcdir/configure"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure" --help=recursive
1503    else
1504      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505    fi || ac_status=$?
1506    cd "$ac_pwd" || { ac_status=$?; break; }
1507  done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512  cat <<\_ACEOF
1513xset configure 1.2.3
1514generated by GNU Autoconf 2.68
1515
1516Copyright (C) 2010 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  rm -f conftest.$ac_objext
1534  if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_compile") 2>conftest.err
1542  ac_status=$?
1543  if test -s conftest.err; then
1544    grep -v '^ *+' conftest.err >conftest.er1
1545    cat conftest.er1 >&5
1546    mv -f conftest.er1 conftest.err
1547  fi
1548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549  test $ac_status = 0; } && {
1550	 test -z "$ac_c_werror_flag" ||
1551	 test ! -s conftest.err
1552       } && test -s conftest.$ac_objext; then :
1553  ac_retval=0
1554else
1555  $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558	ac_retval=1
1559fi
1560  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561  as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_try_cpp LINENO
1566# ----------------------
1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_cpp ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  if { { ac_try="$ac_cpp conftest.$ac_ext"
1572case "(($ac_try" in
1573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574  *) ac_try_echo=$ac_try;;
1575esac
1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577$as_echo "$ac_try_echo"; } >&5
1578  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579  ac_status=$?
1580  if test -s conftest.err; then
1581    grep -v '^ *+' conftest.err >conftest.er1
1582    cat conftest.er1 >&5
1583    mv -f conftest.er1 conftest.err
1584  fi
1585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586  test $ac_status = 0; } > conftest.i && {
1587	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588	 test ! -s conftest.err
1589       }; then :
1590  ac_retval=0
1591else
1592  $as_echo "$as_me: failed program was:" >&5
1593sed 's/^/| /' conftest.$ac_ext >&5
1594
1595    ac_retval=1
1596fi
1597  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598  as_fn_set_status $ac_retval
1599
1600} # ac_fn_c_try_cpp
1601
1602# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603# -------------------------------------------------------
1604# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605# the include files in INCLUDES and setting the cache variable VAR
1606# accordingly.
1607ac_fn_c_check_header_mongrel ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  if eval \${$3+:} false; then :
1611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612$as_echo_n "checking for $2... " >&6; }
1613if eval \${$3+:} false; then :
1614  $as_echo_n "(cached) " >&6
1615fi
1616eval ac_res=\$$3
1617	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618$as_echo "$ac_res" >&6; }
1619else
1620  # Is the header compilable?
1621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622$as_echo_n "checking $2 usability... " >&6; }
1623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h.  */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629  ac_header_compiler=yes
1630else
1631  ac_header_compiler=no
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635$as_echo "$ac_header_compiler" >&6; }
1636
1637# Is the header present?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639$as_echo_n "checking $2 presence... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641/* end confdefs.h.  */
1642#include <$2>
1643_ACEOF
1644if ac_fn_c_try_cpp "$LINENO"; then :
1645  ac_header_preproc=yes
1646else
1647  ac_header_preproc=no
1648fi
1649rm -f conftest.err conftest.i conftest.$ac_ext
1650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651$as_echo "$ac_header_preproc" >&6; }
1652
1653# So?  What about this header?
1654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655  yes:no: )
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1660    ;;
1661  no:yes:* )
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1665$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1669$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672( $as_echo "## ---------------------------------------------------------------------- ##
1673## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1674## ---------------------------------------------------------------------- ##"
1675     ) | sed "s/^/$as_me: WARNING:     /" >&2
1676    ;;
1677esac
1678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
1680if eval \${$3+:} false; then :
1681  $as_echo_n "(cached) " >&6
1682else
1683  eval "$3=\$ac_header_compiler"
1684fi
1685eval ac_res=\$$3
1686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688fi
1689  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691} # ac_fn_c_check_header_mongrel
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711  { { case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_try") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; }; }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: program exited with status $ac_status" >&5
1724       $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727       ac_retval=$ac_status
1728fi
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753  eval "$3=yes"
1754else
1755  eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1767# ---------------------------------------------
1768# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1769# accordingly.
1770ac_fn_c_check_decl ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  as_decl_name=`echo $2|sed 's/ *(.*//'`
1774  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1776$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1777if eval \${$3+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$4
1783int
1784main ()
1785{
1786#ifndef $as_decl_name
1787#ifdef __cplusplus
1788  (void) $as_decl_use;
1789#else
1790  (void) $as_decl_name;
1791#endif
1792#endif
1793
1794  ;
1795  return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799  eval "$3=yes"
1800else
1801  eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_decl
1811
1812# ac_fn_c_try_link LINENO
1813# -----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded.
1815ac_fn_c_try_link ()
1816{
1817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818  rm -f conftest.$ac_objext conftest$ac_exeext
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>conftest.err
1827  ac_status=$?
1828  if test -s conftest.err; then
1829    grep -v '^ *+' conftest.err >conftest.er1
1830    cat conftest.er1 >&5
1831    mv -f conftest.er1 conftest.err
1832  fi
1833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834  test $ac_status = 0; } && {
1835	 test -z "$ac_c_werror_flag" ||
1836	 test ! -s conftest.err
1837       } && test -s conftest$ac_exeext && {
1838	 test "$cross_compiling" = yes ||
1839	 $as_test_x conftest$ac_exeext
1840       }; then :
1841  ac_retval=0
1842else
1843  $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846	ac_retval=1
1847fi
1848  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1849  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1850  # interfere with the next link command; also delete a directory that is
1851  # left behind by Apple's compiler.  We do this before executing the actions.
1852  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854  as_fn_set_status $ac_retval
1855
1856} # ac_fn_c_try_link
1857
1858# ac_fn_c_check_func LINENO FUNC VAR
1859# ----------------------------------
1860# Tests whether FUNC exists, setting the cache variable VAR accordingly
1861ac_fn_c_check_func ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870/* end confdefs.h.  */
1871/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1873#define $2 innocuous_$2
1874
1875/* System header to define __stub macros and hopefully few prototypes,
1876    which can conflict with char $2 (); below.
1877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878    <limits.h> exists even on freestanding compilers.  */
1879
1880#ifdef __STDC__
1881# include <limits.h>
1882#else
1883# include <assert.h>
1884#endif
1885
1886#undef $2
1887
1888/* Override any GCC internal prototype to avoid an error.
1889   Use char because int might match the return type of a GCC
1890   builtin and then its argument prototype would still apply.  */
1891#ifdef __cplusplus
1892extern "C"
1893#endif
1894char $2 ();
1895/* The GNU C library defines this for functions which it implements
1896    to always fail with ENOSYS.  Some functions are actually named
1897    something starting with __ and the normal name is an alias.  */
1898#if defined __stub_$2 || defined __stub___$2
1899choke me
1900#endif
1901
1902int
1903main ()
1904{
1905return $2 ();
1906  ;
1907  return 0;
1908}
1909_ACEOF
1910if ac_fn_c_try_link "$LINENO"; then :
1911  eval "$3=yes"
1912else
1913  eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext \
1916    conftest$ac_exeext conftest.$ac_ext
1917fi
1918eval ac_res=\$$3
1919	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923} # ac_fn_c_check_func
1924cat >config.log <<_ACEOF
1925This file contains any messages produced by compilers while
1926running configure, to aid debugging if configure makes a mistake.
1927
1928It was created by xset $as_me 1.2.3, which was
1929generated by GNU Autoconf 2.68.  Invocation command line was
1930
1931  $ $0 $@
1932
1933_ACEOF
1934exec 5>>config.log
1935{
1936cat <<_ASUNAME
1937## --------- ##
1938## Platform. ##
1939## --------- ##
1940
1941hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1942uname -m = `(uname -m) 2>/dev/null || echo unknown`
1943uname -r = `(uname -r) 2>/dev/null || echo unknown`
1944uname -s = `(uname -s) 2>/dev/null || echo unknown`
1945uname -v = `(uname -v) 2>/dev/null || echo unknown`
1946
1947/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1948/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1949
1950/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1951/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1952/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1953/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1954/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1955/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1956/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1957
1958_ASUNAME
1959
1960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961for as_dir in $PATH
1962do
1963  IFS=$as_save_IFS
1964  test -z "$as_dir" && as_dir=.
1965    $as_echo "PATH: $as_dir"
1966  done
1967IFS=$as_save_IFS
1968
1969} >&5
1970
1971cat >&5 <<_ACEOF
1972
1973
1974## ----------- ##
1975## Core tests. ##
1976## ----------- ##
1977
1978_ACEOF
1979
1980
1981# Keep a trace of the command line.
1982# Strip out --no-create and --no-recursion so they do not pile up.
1983# Strip out --silent because we don't want to record it for future runs.
1984# Also quote any args containing shell meta-characters.
1985# Make two passes to allow for proper duplicate-argument suppression.
1986ac_configure_args=
1987ac_configure_args0=
1988ac_configure_args1=
1989ac_must_keep_next=false
1990for ac_pass in 1 2
1991do
1992  for ac_arg
1993  do
1994    case $ac_arg in
1995    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1996    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1997    | -silent | --silent | --silen | --sile | --sil)
1998      continue ;;
1999    *\'*)
2000      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2001    esac
2002    case $ac_pass in
2003    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2004    2)
2005      as_fn_append ac_configure_args1 " '$ac_arg'"
2006      if test $ac_must_keep_next = true; then
2007	ac_must_keep_next=false # Got value, back to normal.
2008      else
2009	case $ac_arg in
2010	  *=* | --config-cache | -C | -disable-* | --disable-* \
2011	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2012	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2013	  | -with-* | --with-* | -without-* | --without-* | --x)
2014	    case "$ac_configure_args0 " in
2015	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2016	    esac
2017	    ;;
2018	  -* ) ac_must_keep_next=true ;;
2019	esac
2020      fi
2021      as_fn_append ac_configure_args " '$ac_arg'"
2022      ;;
2023    esac
2024  done
2025done
2026{ ac_configure_args0=; unset ac_configure_args0;}
2027{ ac_configure_args1=; unset ac_configure_args1;}
2028
2029# When interrupted or exit'd, cleanup temporary files, and complete
2030# config.log.  We remove comments because anyway the quotes in there
2031# would cause problems or look ugly.
2032# WARNING: Use '\'' to represent an apostrophe within the trap.
2033# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2034trap 'exit_status=$?
2035  # Save into config.log some information that might help in debugging.
2036  {
2037    echo
2038
2039    $as_echo "## ---------------- ##
2040## Cache variables. ##
2041## ---------------- ##"
2042    echo
2043    # The following way of writing the cache mishandles newlines in values,
2044(
2045  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2046    eval ac_val=\$$ac_var
2047    case $ac_val in #(
2048    *${as_nl}*)
2049      case $ac_var in #(
2050      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2051$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2052      esac
2053      case $ac_var in #(
2054      _ | IFS | as_nl) ;; #(
2055      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2056      *) { eval $ac_var=; unset $ac_var;} ;;
2057      esac ;;
2058    esac
2059  done
2060  (set) 2>&1 |
2061    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2062    *${as_nl}ac_space=\ *)
2063      sed -n \
2064	"s/'\''/'\''\\\\'\'''\''/g;
2065	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2066      ;; #(
2067    *)
2068      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2069      ;;
2070    esac |
2071    sort
2072)
2073    echo
2074
2075    $as_echo "## ----------------- ##
2076## Output variables. ##
2077## ----------------- ##"
2078    echo
2079    for ac_var in $ac_subst_vars
2080    do
2081      eval ac_val=\$$ac_var
2082      case $ac_val in
2083      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084      esac
2085      $as_echo "$ac_var='\''$ac_val'\''"
2086    done | sort
2087    echo
2088
2089    if test -n "$ac_subst_files"; then
2090      $as_echo "## ------------------- ##
2091## File substitutions. ##
2092## ------------------- ##"
2093      echo
2094      for ac_var in $ac_subst_files
2095      do
2096	eval ac_val=\$$ac_var
2097	case $ac_val in
2098	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099	esac
2100	$as_echo "$ac_var='\''$ac_val'\''"
2101      done | sort
2102      echo
2103    fi
2104
2105    if test -s confdefs.h; then
2106      $as_echo "## ----------- ##
2107## confdefs.h. ##
2108## ----------- ##"
2109      echo
2110      cat confdefs.h
2111      echo
2112    fi
2113    test "$ac_signal" != 0 &&
2114      $as_echo "$as_me: caught signal $ac_signal"
2115    $as_echo "$as_me: exit $exit_status"
2116  } >&5
2117  rm -f core *.core core.conftest.* &&
2118    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119    exit $exit_status
2120' 0
2121for ac_signal in 1 2 13 15; do
2122  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
2157
2158# Let the site file select an alternate cache file if it wants to.
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
2163  # We do not want a PATH search for config.site.
2164  case $CONFIG_SITE in #((
2165    -*)  ac_site_file1=./$CONFIG_SITE;;
2166    */*) ac_site_file1=$CONFIG_SITE;;
2167    *)   ac_site_file1=./$CONFIG_SITE;;
2168  esac
2169elif test "x$prefix" != xNONE; then
2170  ac_site_file1=$prefix/share/config.site
2171  ac_site_file2=$prefix/etc/config.site
2172else
2173  ac_site_file1=$ac_default_prefix/share/config.site
2174  ac_site_file2=$ac_default_prefix/etc/config.site
2175fi
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178  test "x$ac_site_file" = xNONE && continue
2179  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2180    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182    sed 's/^/| /' "$ac_site_file" >&5
2183    . "$ac_site_file" \
2184      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2186as_fn_error $? "failed to load site script $ac_site_file
2187See \`config.log' for more details" "$LINENO" 5; }
2188  fi
2189done
2190
2191if test -r "$cache_file"; then
2192  # Some versions of bash will fail to source /dev/null (special files
2193  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2194  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196$as_echo "$as_me: loading cache $cache_file" >&6;}
2197    case $cache_file in
2198      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199      *)                      . "./$cache_file";;
2200    esac
2201  fi
2202else
2203  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204$as_echo "$as_me: creating cache $cache_file" >&6;}
2205  >$cache_file
2206fi
2207
2208# Check that the precious variables saved in the cache have kept the same
2209# value.
2210ac_cache_corrupted=false
2211for ac_var in $ac_precious_vars; do
2212  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213  eval ac_new_set=\$ac_env_${ac_var}_set
2214  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215  eval ac_new_val=\$ac_env_${ac_var}_value
2216  case $ac_old_set,$ac_new_set in
2217    set,)
2218      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220      ac_cache_corrupted=: ;;
2221    ,set)
2222      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224      ac_cache_corrupted=: ;;
2225    ,);;
2226    *)
2227      if test "x$ac_old_val" != "x$ac_new_val"; then
2228	# differences in whitespace do not lead to failure.
2229	ac_old_val_w=`echo x $ac_old_val`
2230	ac_new_val_w=`echo x $ac_new_val`
2231	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234	  ac_cache_corrupted=:
2235	else
2236	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238	  eval $ac_var=\$ac_old_val
2239	fi
2240	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2241$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2242	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2243$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2244      fi;;
2245  esac
2246  # Pass precious variables to config.status.
2247  if test "$ac_new_set" = set; then
2248    case $ac_new_val in
2249    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250    *) ac_arg=$ac_var=$ac_new_val ;;
2251    esac
2252    case " $ac_configure_args " in
2253      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2254      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2255    esac
2256  fi
2257done
2258if $ac_cache_corrupted; then
2259  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2264fi
2265## -------------------- ##
2266## Main body of script. ##
2267## -------------------- ##
2268
2269ac_ext=c
2270ac_cpp='$CPP $CPPFLAGS'
2271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273ac_compiler_gnu=$ac_cv_c_compiler_gnu
2274
2275
2276
2277ac_config_headers="$ac_config_headers config.h"
2278
2279# expand $ac_aux_dir to an absolute path
2280am_aux_dir=`cd $ac_aux_dir && pwd`
2281
2282ac_ext=c
2283ac_cpp='$CPP $CPPFLAGS'
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287if test -n "$ac_tool_prefix"; then
2288  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2289set dummy ${ac_tool_prefix}gcc; ac_word=$2
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2291$as_echo_n "checking for $ac_word... " >&6; }
2292if ${ac_cv_prog_CC+:} false; then :
2293  $as_echo_n "(cached) " >&6
2294else
2295  if test -n "$CC"; then
2296  ac_cv_prog_CC="$CC" # Let the user override the test.
2297else
2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299for as_dir in $PATH
2300do
2301  IFS=$as_save_IFS
2302  test -z "$as_dir" && as_dir=.
2303    for ac_exec_ext in '' $ac_executable_extensions; do
2304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307    break 2
2308  fi
2309done
2310  done
2311IFS=$as_save_IFS
2312
2313fi
2314fi
2315CC=$ac_cv_prog_CC
2316if test -n "$CC"; then
2317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2318$as_echo "$CC" >&6; }
2319else
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2321$as_echo "no" >&6; }
2322fi
2323
2324
2325fi
2326if test -z "$ac_cv_prog_CC"; then
2327  ac_ct_CC=$CC
2328  # Extract the first word of "gcc", so it can be a program name with args.
2329set dummy gcc; ac_word=$2
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2331$as_echo_n "checking for $ac_word... " >&6; }
2332if ${ac_cv_prog_ac_ct_CC+:} false; then :
2333  $as_echo_n "(cached) " >&6
2334else
2335  if test -n "$ac_ct_CC"; then
2336  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2337else
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341  IFS=$as_save_IFS
2342  test -z "$as_dir" && as_dir=.
2343    for ac_exec_ext in '' $ac_executable_extensions; do
2344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2345    ac_cv_prog_ac_ct_CC="gcc"
2346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2347    break 2
2348  fi
2349done
2350  done
2351IFS=$as_save_IFS
2352
2353fi
2354fi
2355ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356if test -n "$ac_ct_CC"; then
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2358$as_echo "$ac_ct_CC" >&6; }
2359else
2360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2361$as_echo "no" >&6; }
2362fi
2363
2364  if test "x$ac_ct_CC" = x; then
2365    CC=""
2366  else
2367    case $cross_compiling:$ac_tool_warned in
2368yes:)
2369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2371ac_tool_warned=yes ;;
2372esac
2373    CC=$ac_ct_CC
2374  fi
2375else
2376  CC="$ac_cv_prog_CC"
2377fi
2378
2379if test -z "$CC"; then
2380          if test -n "$ac_tool_prefix"; then
2381    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2382set dummy ${ac_tool_prefix}cc; ac_word=$2
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384$as_echo_n "checking for $ac_word... " >&6; }
2385if ${ac_cv_prog_CC+:} false; then :
2386  $as_echo_n "(cached) " >&6
2387else
2388  if test -n "$CC"; then
2389  ac_cv_prog_CC="$CC" # Let the user override the test.
2390else
2391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392for as_dir in $PATH
2393do
2394  IFS=$as_save_IFS
2395  test -z "$as_dir" && as_dir=.
2396    for ac_exec_ext in '' $ac_executable_extensions; do
2397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398    ac_cv_prog_CC="${ac_tool_prefix}cc"
2399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400    break 2
2401  fi
2402done
2403  done
2404IFS=$as_save_IFS
2405
2406fi
2407fi
2408CC=$ac_cv_prog_CC
2409if test -n "$CC"; then
2410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411$as_echo "$CC" >&6; }
2412else
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414$as_echo "no" >&6; }
2415fi
2416
2417
2418  fi
2419fi
2420if test -z "$CC"; then
2421  # Extract the first word of "cc", so it can be a program name with args.
2422set dummy cc; ac_word=$2
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424$as_echo_n "checking for $ac_word... " >&6; }
2425if ${ac_cv_prog_CC+:} false; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428  if test -n "$CC"; then
2429  ac_cv_prog_CC="$CC" # Let the user override the test.
2430else
2431  ac_prog_rejected=no
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    for ac_exec_ext in '' $ac_executable_extensions; do
2438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2440       ac_prog_rejected=yes
2441       continue
2442     fi
2443    ac_cv_prog_CC="cc"
2444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445    break 2
2446  fi
2447done
2448  done
2449IFS=$as_save_IFS
2450
2451if test $ac_prog_rejected = yes; then
2452  # We found a bogon in the path, so make sure we never use it.
2453  set dummy $ac_cv_prog_CC
2454  shift
2455  if test $# != 0; then
2456    # We chose a different compiler from the bogus one.
2457    # However, it has the same basename, so the bogon will be chosen
2458    # first if we set CC to just the basename; use the full file name.
2459    shift
2460    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2461  fi
2462fi
2463fi
2464fi
2465CC=$ac_cv_prog_CC
2466if test -n "$CC"; then
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2468$as_echo "$CC" >&6; }
2469else
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2471$as_echo "no" >&6; }
2472fi
2473
2474
2475fi
2476if test -z "$CC"; then
2477  if test -n "$ac_tool_prefix"; then
2478  for ac_prog in cl.exe
2479  do
2480    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2483$as_echo_n "checking for $ac_word... " >&6; }
2484if ${ac_cv_prog_CC+:} false; then :
2485  $as_echo_n "(cached) " >&6
2486else
2487  if test -n "$CC"; then
2488  ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495    for ac_exec_ext in '' $ac_executable_extensions; do
2496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502  done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2510$as_echo "$CC" >&6; }
2511else
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2513$as_echo "no" >&6; }
2514fi
2515
2516
2517    test -n "$CC" && break
2518  done
2519fi
2520if test -z "$CC"; then
2521  ac_ct_CC=$CC
2522  for ac_prog in cl.exe
2523do
2524  # Extract the first word of "$ac_prog", so it can be a program name with args.
2525set dummy $ac_prog; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
2528if ${ac_cv_prog_ac_ct_CC+:} false; then :
2529  $as_echo_n "(cached) " >&6
2530else
2531  if test -n "$ac_ct_CC"; then
2532  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537  IFS=$as_save_IFS
2538  test -z "$as_dir" && as_dir=.
2539    for ac_exec_ext in '' $ac_executable_extensions; do
2540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541    ac_cv_prog_ac_ct_CC="$ac_prog"
2542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543    break 2
2544  fi
2545done
2546  done
2547IFS=$as_save_IFS
2548
2549fi
2550fi
2551ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552if test -n "$ac_ct_CC"; then
2553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2554$as_echo "$ac_ct_CC" >&6; }
2555else
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
2558fi
2559
2560
2561  test -n "$ac_ct_CC" && break
2562done
2563
2564  if test "x$ac_ct_CC" = x; then
2565    CC=""
2566  else
2567    case $cross_compiling:$ac_tool_warned in
2568yes:)
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571ac_tool_warned=yes ;;
2572esac
2573    CC=$ac_ct_CC
2574  fi
2575fi
2576
2577fi
2578
2579
2580test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582as_fn_error $? "no acceptable C compiler found in \$PATH
2583See \`config.log' for more details" "$LINENO" 5; }
2584
2585# Provide some information about the compiler.
2586$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2587set X $ac_compile
2588ac_compiler=$2
2589for ac_option in --version -v -V -qversion; do
2590  { { ac_try="$ac_compiler $ac_option >&5"
2591case "(($ac_try" in
2592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593  *) ac_try_echo=$ac_try;;
2594esac
2595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2596$as_echo "$ac_try_echo"; } >&5
2597  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2598  ac_status=$?
2599  if test -s conftest.err; then
2600    sed '10a\
2601... rest of stderr output deleted ...
2602         10q' conftest.err >conftest.er1
2603    cat conftest.er1 >&5
2604  fi
2605  rm -f conftest.er1 conftest.err
2606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2607  test $ac_status = 0; }
2608done
2609
2610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h.  */
2612
2613int
2614main ()
2615{
2616
2617  ;
2618  return 0;
2619}
2620_ACEOF
2621ac_clean_files_save=$ac_clean_files
2622ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2623# Try to create an executable without -o first, disregard a.out.
2624# It will help us diagnose broken compilers, and finding out an intuition
2625# of exeext.
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2627$as_echo_n "checking whether the C compiler works... " >&6; }
2628ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629
2630# The possible output files:
2631ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2632
2633ac_rmfiles=
2634for ac_file in $ac_files
2635do
2636  case $ac_file in
2637    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2638    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2639  esac
2640done
2641rm -f $ac_rmfiles
2642
2643if { { ac_try="$ac_link_default"
2644case "(($ac_try" in
2645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646  *) ac_try_echo=$ac_try;;
2647esac
2648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649$as_echo "$ac_try_echo"; } >&5
2650  (eval "$ac_link_default") 2>&5
2651  ac_status=$?
2652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653  test $ac_status = 0; }; then :
2654  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2655# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2656# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2657# so that the user can short-circuit this test for compilers unknown to
2658# Autoconf.
2659for ac_file in $ac_files ''
2660do
2661  test -f "$ac_file" || continue
2662  case $ac_file in
2663    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2664	;;
2665    [ab].out )
2666	# We found the default executable, but exeext='' is most
2667	# certainly right.
2668	break;;
2669    *.* )
2670	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2671	then :; else
2672	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673	fi
2674	# We set ac_cv_exeext here because the later test for it is not
2675	# safe: cross compilers may not add the suffix if given an `-o'
2676	# argument, so we may need to know it at that point already.
2677	# Even if this section looks crufty: it has the advantage of
2678	# actually working.
2679	break;;
2680    * )
2681	break;;
2682  esac
2683done
2684test "$ac_cv_exeext" = no && ac_cv_exeext=
2685
2686else
2687  ac_file=''
2688fi
2689if test -z "$ac_file"; then :
2690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692$as_echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697as_fn_error 77 "C compiler cannot create executables
2698See \`config.log' for more details" "$LINENO" 5; }
2699else
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2701$as_echo "yes" >&6; }
2702fi
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2704$as_echo_n "checking for C compiler default output file name... " >&6; }
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2706$as_echo "$ac_file" >&6; }
2707ac_exeext=$ac_cv_exeext
2708
2709rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2710ac_clean_files=$ac_clean_files_save
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2712$as_echo_n "checking for suffix of executables... " >&6; }
2713if { { ac_try="$ac_link"
2714case "(($ac_try" in
2715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716  *) ac_try_echo=$ac_try;;
2717esac
2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719$as_echo "$ac_try_echo"; } >&5
2720  (eval "$ac_link") 2>&5
2721  ac_status=$?
2722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723  test $ac_status = 0; }; then :
2724  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2725# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2726# work properly (i.e., refer to `conftest.exe'), while it won't with
2727# `rm'.
2728for ac_file in conftest.exe conftest conftest.*; do
2729  test -f "$ac_file" || continue
2730  case $ac_file in
2731    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2732    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2733	  break;;
2734    * ) break;;
2735  esac
2736done
2737else
2738  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2741See \`config.log' for more details" "$LINENO" 5; }
2742fi
2743rm -f conftest conftest$ac_cv_exeext
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2745$as_echo "$ac_cv_exeext" >&6; }
2746
2747rm -f conftest.$ac_ext
2748EXEEXT=$ac_cv_exeext
2749ac_exeext=$EXEEXT
2750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751/* end confdefs.h.  */
2752#include <stdio.h>
2753int
2754main ()
2755{
2756FILE *f = fopen ("conftest.out", "w");
2757 return ferror (f) || fclose (f) != 0;
2758
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763ac_clean_files="$ac_clean_files conftest.out"
2764# Check that the compiler produces executables we can run.  If not, either
2765# the compiler is broken, or we cross compile.
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2767$as_echo_n "checking whether we are cross compiling... " >&6; }
2768if test "$cross_compiling" != yes; then
2769  { { ac_try="$ac_link"
2770case "(($ac_try" in
2771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772  *) ac_try_echo=$ac_try;;
2773esac
2774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775$as_echo "$ac_try_echo"; } >&5
2776  (eval "$ac_link") 2>&5
2777  ac_status=$?
2778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779  test $ac_status = 0; }
2780  if { ac_try='./conftest$ac_cv_exeext'
2781  { { case "(($ac_try" in
2782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783  *) ac_try_echo=$ac_try;;
2784esac
2785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2786$as_echo "$ac_try_echo"; } >&5
2787  (eval "$ac_try") 2>&5
2788  ac_status=$?
2789  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2790  test $ac_status = 0; }; }; then
2791    cross_compiling=no
2792  else
2793    if test "$cross_compiling" = maybe; then
2794	cross_compiling=yes
2795    else
2796	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2798as_fn_error $? "cannot run C compiled programs.
2799If you meant to cross compile, use \`--host'.
2800See \`config.log' for more details" "$LINENO" 5; }
2801    fi
2802  fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2805$as_echo "$cross_compiling" >&6; }
2806
2807rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2808ac_clean_files=$ac_clean_files_save
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2810$as_echo_n "checking for suffix of object files... " >&6; }
2811if ${ac_cv_objext+:} false; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h.  */
2816
2817int
2818main ()
2819{
2820
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825rm -f conftest.o conftest.obj
2826if { { ac_try="$ac_compile"
2827case "(($ac_try" in
2828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829  *) ac_try_echo=$ac_try;;
2830esac
2831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2832$as_echo "$ac_try_echo"; } >&5
2833  (eval "$ac_compile") 2>&5
2834  ac_status=$?
2835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836  test $ac_status = 0; }; then :
2837  for ac_file in conftest.o conftest.obj conftest.*; do
2838  test -f "$ac_file" || continue;
2839  case $ac_file in
2840    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2841    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2842       break;;
2843  esac
2844done
2845else
2846  $as_echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851as_fn_error $? "cannot compute suffix of object files: cannot compile
2852See \`config.log' for more details" "$LINENO" 5; }
2853fi
2854rm -f conftest.$ac_cv_objext conftest.$ac_ext
2855fi
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2857$as_echo "$ac_cv_objext" >&6; }
2858OBJEXT=$ac_cv_objext
2859ac_objext=$OBJEXT
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2861$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2862if ${ac_cv_c_compiler_gnu+:} false; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h.  */
2867
2868int
2869main ()
2870{
2871#ifndef __GNUC__
2872       choke me
2873#endif
2874
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879if ac_fn_c_try_compile "$LINENO"; then :
2880  ac_compiler_gnu=yes
2881else
2882  ac_compiler_gnu=no
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885ac_cv_c_compiler_gnu=$ac_compiler_gnu
2886
2887fi
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2889$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2890if test $ac_compiler_gnu = yes; then
2891  GCC=yes
2892else
2893  GCC=
2894fi
2895ac_test_CFLAGS=${CFLAGS+set}
2896ac_save_CFLAGS=$CFLAGS
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2898$as_echo_n "checking whether $CC accepts -g... " >&6; }
2899if ${ac_cv_prog_cc_g+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  ac_save_c_werror_flag=$ac_c_werror_flag
2903   ac_c_werror_flag=yes
2904   ac_cv_prog_cc_g=no
2905   CFLAGS="-g"
2906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h.  */
2908
2909int
2910main ()
2911{
2912
2913  ;
2914  return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918  ac_cv_prog_cc_g=yes
2919else
2920  CFLAGS=""
2921      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h.  */
2923
2924int
2925main ()
2926{
2927
2928  ;
2929  return 0;
2930}
2931_ACEOF
2932if ac_fn_c_try_compile "$LINENO"; then :
2933
2934else
2935  ac_c_werror_flag=$ac_save_c_werror_flag
2936	 CFLAGS="-g"
2937	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938/* end confdefs.h.  */
2939
2940int
2941main ()
2942{
2943
2944  ;
2945  return 0;
2946}
2947_ACEOF
2948if ac_fn_c_try_compile "$LINENO"; then :
2949  ac_cv_prog_cc_g=yes
2950fi
2951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952fi
2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954fi
2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956   ac_c_werror_flag=$ac_save_c_werror_flag
2957fi
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2959$as_echo "$ac_cv_prog_cc_g" >&6; }
2960if test "$ac_test_CFLAGS" = set; then
2961  CFLAGS=$ac_save_CFLAGS
2962elif test $ac_cv_prog_cc_g = yes; then
2963  if test "$GCC" = yes; then
2964    CFLAGS="-g -O2"
2965  else
2966    CFLAGS="-g"
2967  fi
2968else
2969  if test "$GCC" = yes; then
2970    CFLAGS="-O2"
2971  else
2972    CFLAGS=
2973  fi
2974fi
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2976$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2977if ${ac_cv_prog_cc_c89+:} false; then :
2978  $as_echo_n "(cached) " >&6
2979else
2980  ac_cv_prog_cc_c89=no
2981ac_save_CC=$CC
2982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2983/* end confdefs.h.  */
2984#include <stdarg.h>
2985#include <stdio.h>
2986#include <sys/types.h>
2987#include <sys/stat.h>
2988/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2989struct buf { int x; };
2990FILE * (*rcsopen) (struct buf *, struct stat *, int);
2991static char *e (p, i)
2992     char **p;
2993     int i;
2994{
2995  return p[i];
2996}
2997static char *f (char * (*g) (char **, int), char **p, ...)
2998{
2999  char *s;
3000  va_list v;
3001  va_start (v,p);
3002  s = g (p, va_arg (v,int));
3003  va_end (v);
3004  return s;
3005}
3006
3007/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3008   function prototypes and stuff, but not '\xHH' hex character constants.
3009   These don't provoke an error unfortunately, instead are silently treated
3010   as 'x'.  The following induces an error, until -std is added to get
3011   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3012   array size at least.  It's necessary to write '\x00'==0 to get something
3013   that's true only with -std.  */
3014int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3015
3016/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3017   inside strings and character constants.  */
3018#define FOO(x) 'x'
3019int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3020
3021int test (int i, double x);
3022struct s1 {int (*f) (int a);};
3023struct s2 {int (*f) (double a);};
3024int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3025int argc;
3026char **argv;
3027int
3028main ()
3029{
3030return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3036	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3037do
3038  CC="$ac_save_CC $ac_arg"
3039  if ac_fn_c_try_compile "$LINENO"; then :
3040  ac_cv_prog_cc_c89=$ac_arg
3041fi
3042rm -f core conftest.err conftest.$ac_objext
3043  test "x$ac_cv_prog_cc_c89" != "xno" && break
3044done
3045rm -f conftest.$ac_ext
3046CC=$ac_save_CC
3047
3048fi
3049# AC_CACHE_VAL
3050case "x$ac_cv_prog_cc_c89" in
3051  x)
3052    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3053$as_echo "none needed" >&6; } ;;
3054  xno)
3055    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3056$as_echo "unsupported" >&6; } ;;
3057  *)
3058    CC="$CC $ac_cv_prog_cc_c89"
3059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3060$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3061esac
3062if test "x$ac_cv_prog_cc_c89" != xno; then :
3063
3064fi
3065
3066ac_ext=c
3067ac_cpp='$CPP $CPPFLAGS'
3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071
3072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3078$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3079if ${am_cv_prog_cc_c_o+:} false; then :
3080  $as_echo_n "(cached) " >&6
3081else
3082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h.  */
3084
3085int
3086main ()
3087{
3088
3089  ;
3090  return 0;
3091}
3092_ACEOF
3093  # Make sure it works both with $CC and with simple cc.
3094  # Following AC_PROG_CC_C_O, we do the test twice because some
3095  # compilers refuse to overwrite an existing .o file with -o,
3096  # though they will create one.
3097  am_cv_prog_cc_c_o=yes
3098  for am_i in 1 2; do
3099    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3100   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } \
3104         && test -f conftest2.$ac_objext; then
3105      : OK
3106    else
3107      am_cv_prog_cc_c_o=no
3108      break
3109    fi
3110  done
3111  rm -f core conftest*
3112  unset am_i
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3115$as_echo "$am_cv_prog_cc_c_o" >&6; }
3116if test "$am_cv_prog_cc_c_o" != yes; then
3117   # Losing compiler, so override with the script.
3118   # FIXME: It is wrong to rewrite CC.
3119   # But if we don't then we get into trouble of one sort or another.
3120   # A longer-term fix would be to have automake use am__CC in this case,
3121   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3122   CC="$am_aux_dir/compile $CC"
3123fi
3124ac_ext=c
3125ac_cpp='$CPP $CPPFLAGS'
3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131
3132ac_ext=c
3133ac_cpp='$CPP $CPPFLAGS'
3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3138$as_echo_n "checking how to run the C preprocessor... " >&6; }
3139# On Suns, sometimes $CPP names a directory.
3140if test -n "$CPP" && test -d "$CPP"; then
3141  CPP=
3142fi
3143if test -z "$CPP"; then
3144  if ${ac_cv_prog_CPP+:} false; then :
3145  $as_echo_n "(cached) " >&6
3146else
3147      # Double quotes because CPP needs to be expanded
3148    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3149    do
3150      ac_preproc_ok=false
3151for ac_c_preproc_warn_flag in '' yes
3152do
3153  # Use a header file that comes with gcc, so configuring glibc
3154  # with a fresh cross-compiler works.
3155  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156  # <limits.h> exists even on freestanding compilers.
3157  # On the NeXT, cc -E runs the code through the compiler's parser,
3158  # not just through cpp. "Syntax error" is here to catch this case.
3159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h.  */
3161#ifdef __STDC__
3162# include <limits.h>
3163#else
3164# include <assert.h>
3165#endif
3166		     Syntax error
3167_ACEOF
3168if ac_fn_c_try_cpp "$LINENO"; then :
3169
3170else
3171  # Broken: fails on valid input.
3172continue
3173fi
3174rm -f conftest.err conftest.i conftest.$ac_ext
3175
3176  # OK, works on sane cases.  Now check whether nonexistent headers
3177  # can be detected and how.
3178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179/* end confdefs.h.  */
3180#include <ac_nonexistent.h>
3181_ACEOF
3182if ac_fn_c_try_cpp "$LINENO"; then :
3183  # Broken: success on invalid input.
3184continue
3185else
3186  # Passes both tests.
3187ac_preproc_ok=:
3188break
3189fi
3190rm -f conftest.err conftest.i conftest.$ac_ext
3191
3192done
3193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3194rm -f conftest.i conftest.err conftest.$ac_ext
3195if $ac_preproc_ok; then :
3196  break
3197fi
3198
3199    done
3200    ac_cv_prog_CPP=$CPP
3201
3202fi
3203  CPP=$ac_cv_prog_CPP
3204else
3205  ac_cv_prog_CPP=$CPP
3206fi
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3208$as_echo "$CPP" >&6; }
3209ac_preproc_ok=false
3210for ac_c_preproc_warn_flag in '' yes
3211do
3212  # Use a header file that comes with gcc, so configuring glibc
3213  # with a fresh cross-compiler works.
3214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215  # <limits.h> exists even on freestanding compilers.
3216  # On the NeXT, cc -E runs the code through the compiler's parser,
3217  # not just through cpp. "Syntax error" is here to catch this case.
3218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219/* end confdefs.h.  */
3220#ifdef __STDC__
3221# include <limits.h>
3222#else
3223# include <assert.h>
3224#endif
3225		     Syntax error
3226_ACEOF
3227if ac_fn_c_try_cpp "$LINENO"; then :
3228
3229else
3230  # Broken: fails on valid input.
3231continue
3232fi
3233rm -f conftest.err conftest.i conftest.$ac_ext
3234
3235  # OK, works on sane cases.  Now check whether nonexistent headers
3236  # can be detected and how.
3237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238/* end confdefs.h.  */
3239#include <ac_nonexistent.h>
3240_ACEOF
3241if ac_fn_c_try_cpp "$LINENO"; then :
3242  # Broken: success on invalid input.
3243continue
3244else
3245  # Passes both tests.
3246ac_preproc_ok=:
3247break
3248fi
3249rm -f conftest.err conftest.i conftest.$ac_ext
3250
3251done
3252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253rm -f conftest.i conftest.err conftest.$ac_ext
3254if $ac_preproc_ok; then :
3255
3256else
3257  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3260See \`config.log' for more details" "$LINENO" 5; }
3261fi
3262
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3271$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3272if ${ac_cv_path_GREP+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  if test -z "$GREP"; then
3276  ac_path_GREP_found=false
3277  # Loop through the user's path and test for each of PROGNAME-LIST
3278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283    for ac_prog in grep ggrep; do
3284    for ac_exec_ext in '' $ac_executable_extensions; do
3285      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287# Check for GNU ac_path_GREP and select it if it is found.
3288  # Check for GNU $ac_path_GREP
3289case `"$ac_path_GREP" --version 2>&1` in
3290*GNU*)
3291  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3292*)
3293  ac_count=0
3294  $as_echo_n 0123456789 >"conftest.in"
3295  while :
3296  do
3297    cat "conftest.in" "conftest.in" >"conftest.tmp"
3298    mv "conftest.tmp" "conftest.in"
3299    cp "conftest.in" "conftest.nl"
3300    $as_echo 'GREP' >> "conftest.nl"
3301    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303    as_fn_arith $ac_count + 1 && ac_count=$as_val
3304    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305      # Best one so far, save it but keep looking for a better one
3306      ac_cv_path_GREP="$ac_path_GREP"
3307      ac_path_GREP_max=$ac_count
3308    fi
3309    # 10*(2^10) chars as input seems more than enough
3310    test $ac_count -gt 10 && break
3311  done
3312  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3313esac
3314
3315      $ac_path_GREP_found && break 3
3316    done
3317  done
3318  done
3319IFS=$as_save_IFS
3320  if test -z "$ac_cv_path_GREP"; then
3321    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3322  fi
3323else
3324  ac_cv_path_GREP=$GREP
3325fi
3326
3327fi
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3329$as_echo "$ac_cv_path_GREP" >&6; }
3330 GREP="$ac_cv_path_GREP"
3331
3332
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3334$as_echo_n "checking for egrep... " >&6; }
3335if ${ac_cv_path_EGREP+:} false; then :
3336  $as_echo_n "(cached) " >&6
3337else
3338  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3339   then ac_cv_path_EGREP="$GREP -E"
3340   else
3341     if test -z "$EGREP"; then
3342  ac_path_EGREP_found=false
3343  # Loop through the user's path and test for each of PROGNAME-LIST
3344  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3346do
3347  IFS=$as_save_IFS
3348  test -z "$as_dir" && as_dir=.
3349    for ac_prog in egrep; do
3350    for ac_exec_ext in '' $ac_executable_extensions; do
3351      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3352      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3353# Check for GNU ac_path_EGREP and select it if it is found.
3354  # Check for GNU $ac_path_EGREP
3355case `"$ac_path_EGREP" --version 2>&1` in
3356*GNU*)
3357  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3358*)
3359  ac_count=0
3360  $as_echo_n 0123456789 >"conftest.in"
3361  while :
3362  do
3363    cat "conftest.in" "conftest.in" >"conftest.tmp"
3364    mv "conftest.tmp" "conftest.in"
3365    cp "conftest.in" "conftest.nl"
3366    $as_echo 'EGREP' >> "conftest.nl"
3367    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3369    as_fn_arith $ac_count + 1 && ac_count=$as_val
3370    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3371      # Best one so far, save it but keep looking for a better one
3372      ac_cv_path_EGREP="$ac_path_EGREP"
3373      ac_path_EGREP_max=$ac_count
3374    fi
3375    # 10*(2^10) chars as input seems more than enough
3376    test $ac_count -gt 10 && break
3377  done
3378  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379esac
3380
3381      $ac_path_EGREP_found && break 3
3382    done
3383  done
3384  done
3385IFS=$as_save_IFS
3386  if test -z "$ac_cv_path_EGREP"; then
3387    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3388  fi
3389else
3390  ac_cv_path_EGREP=$EGREP
3391fi
3392
3393   fi
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3396$as_echo "$ac_cv_path_EGREP" >&6; }
3397 EGREP="$ac_cv_path_EGREP"
3398
3399
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3401$as_echo_n "checking for ANSI C header files... " >&6; }
3402if ${ac_cv_header_stdc+:} false; then :
3403  $as_echo_n "(cached) " >&6
3404else
3405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406/* end confdefs.h.  */
3407#include <stdlib.h>
3408#include <stdarg.h>
3409#include <string.h>
3410#include <float.h>
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420if ac_fn_c_try_compile "$LINENO"; then :
3421  ac_cv_header_stdc=yes
3422else
3423  ac_cv_header_stdc=no
3424fi
3425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426
3427if test $ac_cv_header_stdc = yes; then
3428  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h.  */
3431#include <string.h>
3432
3433_ACEOF
3434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3435  $EGREP "memchr" >/dev/null 2>&1; then :
3436
3437else
3438  ac_cv_header_stdc=no
3439fi
3440rm -f conftest*
3441
3442fi
3443
3444if test $ac_cv_header_stdc = yes; then
3445  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447/* end confdefs.h.  */
3448#include <stdlib.h>
3449
3450_ACEOF
3451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452  $EGREP "free" >/dev/null 2>&1; then :
3453
3454else
3455  ac_cv_header_stdc=no
3456fi
3457rm -f conftest*
3458
3459fi
3460
3461if test $ac_cv_header_stdc = yes; then
3462  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3463  if test "$cross_compiling" = yes; then :
3464  :
3465else
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468#include <ctype.h>
3469#include <stdlib.h>
3470#if ((' ' & 0x0FF) == 0x020)
3471# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3472# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3473#else
3474# define ISLOWER(c) \
3475		   (('a' <= (c) && (c) <= 'i') \
3476		     || ('j' <= (c) && (c) <= 'r') \
3477		     || ('s' <= (c) && (c) <= 'z'))
3478# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3479#endif
3480
3481#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482int
3483main ()
3484{
3485  int i;
3486  for (i = 0; i < 256; i++)
3487    if (XOR (islower (i), ISLOWER (i))
3488	|| toupper (i) != TOUPPER (i))
3489      return 2;
3490  return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_run "$LINENO"; then :
3494
3495else
3496  ac_cv_header_stdc=no
3497fi
3498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3499  conftest.$ac_objext conftest.beam conftest.$ac_ext
3500fi
3501
3502fi
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3505$as_echo "$ac_cv_header_stdc" >&6; }
3506if test $ac_cv_header_stdc = yes; then
3507
3508$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3509
3510fi
3511
3512# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3514		  inttypes.h stdint.h unistd.h
3515do :
3516  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3517ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3518"
3519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3520  cat >>confdefs.h <<_ACEOF
3521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3522_ACEOF
3523
3524fi
3525
3526done
3527
3528
3529
3530  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3531if test "x$ac_cv_header_minix_config_h" = xyes; then :
3532  MINIX=yes
3533else
3534  MINIX=
3535fi
3536
3537
3538  if test "$MINIX" = yes; then
3539
3540$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3541
3542
3543$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3544
3545
3546$as_echo "#define _MINIX 1" >>confdefs.h
3547
3548  fi
3549
3550
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3552$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3553if ${ac_cv_safe_to_define___extensions__+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558
3559#	  define __EXTENSIONS__ 1
3560	  $ac_includes_default
3561int
3562main ()
3563{
3564
3565  ;
3566  return 0;
3567}
3568_ACEOF
3569if ac_fn_c_try_compile "$LINENO"; then :
3570  ac_cv_safe_to_define___extensions__=yes
3571else
3572  ac_cv_safe_to_define___extensions__=no
3573fi
3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3577$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3578  test $ac_cv_safe_to_define___extensions__ = yes &&
3579    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3580
3581  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3582
3583  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3584
3585  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3586
3587  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3588
3589
3590
3591# Initialize Automake
3592am__api_version='1.14'
3593
3594ac_aux_dir=
3595for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3596  if test -f "$ac_dir/install-sh"; then
3597    ac_aux_dir=$ac_dir
3598    ac_install_sh="$ac_aux_dir/install-sh -c"
3599    break
3600  elif test -f "$ac_dir/install.sh"; then
3601    ac_aux_dir=$ac_dir
3602    ac_install_sh="$ac_aux_dir/install.sh -c"
3603    break
3604  elif test -f "$ac_dir/shtool"; then
3605    ac_aux_dir=$ac_dir
3606    ac_install_sh="$ac_aux_dir/shtool install -c"
3607    break
3608  fi
3609done
3610if test -z "$ac_aux_dir"; then
3611  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3612fi
3613
3614# These three variables are undocumented and unsupported,
3615# and are intended to be withdrawn in a future Autoconf release.
3616# They can cause serious problems if a builder's source tree is in a directory
3617# whose full name contains unusual characters.
3618ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3619ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3620ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3621
3622
3623# Find a good install program.  We prefer a C program (faster),
3624# so one script is as good as another.  But avoid the broken or
3625# incompatible versions:
3626# SysV /etc/install, /usr/sbin/install
3627# SunOS /usr/etc/install
3628# IRIX /sbin/install
3629# AIX /bin/install
3630# AmigaOS /C/install, which installs bootblocks on floppy discs
3631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634# OS/2's system install, which has a completely different semantic
3635# ./install, which can be erroneously created by make from ./install.sh.
3636# Reject install programs that cannot install multiple files.
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638$as_echo_n "checking for a BSD-compatible install... " >&6; }
3639if test -z "$INSTALL"; then
3640if ${ac_cv_path_install+:} false; then :
3641  $as_echo_n "(cached) " >&6
3642else
3643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648    # Account for people who put trailing slashes in PATH elements.
3649case $as_dir/ in #((
3650  ./ | .// | /[cC]/* | \
3651  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3653  /usr/ucb/* ) ;;
3654  *)
3655    # OSF1 and SCO ODT 3.0 have their own names for install.
3656    # Don't use installbsd from OSF since it installs stuff as root
3657    # by default.
3658    for ac_prog in ginstall scoinst install; do
3659      for ac_exec_ext in '' $ac_executable_extensions; do
3660	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3661	  if test $ac_prog = install &&
3662	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663	    # AIX install.  It has an incompatible calling convention.
3664	    :
3665	  elif test $ac_prog = install &&
3666	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667	    # program-specific install script used by HP pwplus--don't use.
3668	    :
3669	  else
3670	    rm -rf conftest.one conftest.two conftest.dir
3671	    echo one > conftest.one
3672	    echo two > conftest.two
3673	    mkdir conftest.dir
3674	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675	      test -s conftest.one && test -s conftest.two &&
3676	      test -s conftest.dir/conftest.one &&
3677	      test -s conftest.dir/conftest.two
3678	    then
3679	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3680	      break 3
3681	    fi
3682	  fi
3683	fi
3684      done
3685    done
3686    ;;
3687esac
3688
3689  done
3690IFS=$as_save_IFS
3691
3692rm -rf conftest.one conftest.two conftest.dir
3693
3694fi
3695  if test "${ac_cv_path_install+set}" = set; then
3696    INSTALL=$ac_cv_path_install
3697  else
3698    # As a last resort, use the slow shell script.  Don't cache a
3699    # value for INSTALL within a source directory, because that will
3700    # break other packages using the cache if that directory is
3701    # removed, or if the value is a relative name.
3702    INSTALL=$ac_install_sh
3703  fi
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706$as_echo "$INSTALL" >&6; }
3707
3708# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709# It thinks the first close brace ends the variable substitution.
3710test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711
3712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3713
3714test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717$as_echo_n "checking whether build environment is sane... " >&6; }
3718# Reject unsafe characters in $srcdir or the absolute working directory
3719# name.  Accept space and tab only in the latter.
3720am_lf='
3721'
3722case `pwd` in
3723  *[\\\"\#\$\&\'\`$am_lf]*)
3724    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3725esac
3726case $srcdir in
3727  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3728    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3729esac
3730
3731# Do 'set' in a subshell so we don't clobber the current shell's
3732# arguments.  Must try -L first in case configure is actually a
3733# symlink; some systems play weird games with the mod time of symlinks
3734# (eg FreeBSD returns the mod time of the symlink's containing
3735# directory).
3736if (
3737   am_has_slept=no
3738   for am_try in 1 2; do
3739     echo "timestamp, slept: $am_has_slept" > conftest.file
3740     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741     if test "$*" = "X"; then
3742	# -L didn't work.
3743	set X `ls -t "$srcdir/configure" conftest.file`
3744     fi
3745     if test "$*" != "X $srcdir/configure conftest.file" \
3746	&& test "$*" != "X conftest.file $srcdir/configure"; then
3747
3748	# If neither matched, then we have a broken ls.  This can happen
3749	# if, for instance, CONFIG_SHELL is bash and it inherits a
3750	# broken ls alias from the environment.  This has actually
3751	# happened.  Such a system could not be considered "sane".
3752	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3753  alias in your environment" "$LINENO" 5
3754     fi
3755     if test "$2" = conftest.file || test $am_try -eq 2; then
3756       break
3757     fi
3758     # Just in case.
3759     sleep 1
3760     am_has_slept=yes
3761   done
3762   test "$2" = conftest.file
3763   )
3764then
3765   # Ok.
3766   :
3767else
3768   as_fn_error $? "newly created file is older than distributed files!
3769Check your system clock" "$LINENO" 5
3770fi
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
3773# If we didn't sleep, we still need to ensure time stamps of config.status and
3774# generated files are strictly newer.
3775am_sleep_pid=
3776if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3777  ( sleep 1 ) &
3778  am_sleep_pid=$!
3779fi
3780
3781rm -f conftest.file
3782
3783test "$program_prefix" != NONE &&
3784  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3785# Use a double $ so make ignores it.
3786test "$program_suffix" != NONE &&
3787  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3788# Double any \ or $.
3789# By default was `s,x,x', remove it if useless.
3790ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3791program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3792
3793if test x"${MISSING+set}" != xset; then
3794  case $am_aux_dir in
3795  *\ * | *\	*)
3796    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3797  *)
3798    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3799  esac
3800fi
3801# Use eval to expand $SHELL
3802if eval "$MISSING --is-lightweight"; then
3803  am_missing_run="$MISSING "
3804else
3805  am_missing_run=
3806  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3807$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3808fi
3809
3810if test x"${install_sh}" != xset; then
3811  case $am_aux_dir in
3812  *\ * | *\	*)
3813    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3814  *)
3815    install_sh="\${SHELL} $am_aux_dir/install-sh"
3816  esac
3817fi
3818
3819# Installed binaries are usually stripped using 'strip' when the user
3820# run "make install-strip".  However 'strip' might not be the right
3821# tool to use in cross-compilation environments, therefore Automake
3822# will honor the 'STRIP' environment variable to overrule this program.
3823if test "$cross_compiling" != no; then
3824  if test -n "$ac_tool_prefix"; then
3825  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3826set dummy ${ac_tool_prefix}strip; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
3829if ${ac_cv_prog_STRIP+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  if test -n "$STRIP"; then
3833  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838  IFS=$as_save_IFS
3839  test -z "$as_dir" && as_dir=.
3840    for ac_exec_ext in '' $ac_executable_extensions; do
3841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844    break 2
3845  fi
3846done
3847  done
3848IFS=$as_save_IFS
3849
3850fi
3851fi
3852STRIP=$ac_cv_prog_STRIP
3853if test -n "$STRIP"; then
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3855$as_echo "$STRIP" >&6; }
3856else
3857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
3860
3861
3862fi
3863if test -z "$ac_cv_prog_STRIP"; then
3864  ac_ct_STRIP=$STRIP
3865  # Extract the first word of "strip", so it can be a program name with args.
3866set dummy strip; ac_word=$2
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868$as_echo_n "checking for $ac_word... " >&6; }
3869if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872  if test -n "$ac_ct_STRIP"; then
3873  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878  IFS=$as_save_IFS
3879  test -z "$as_dir" && as_dir=.
3880    for ac_exec_ext in '' $ac_executable_extensions; do
3881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882    ac_cv_prog_ac_ct_STRIP="strip"
3883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884    break 2
3885  fi
3886done
3887  done
3888IFS=$as_save_IFS
3889
3890fi
3891fi
3892ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3893if test -n "$ac_ct_STRIP"; then
3894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3895$as_echo "$ac_ct_STRIP" >&6; }
3896else
3897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898$as_echo "no" >&6; }
3899fi
3900
3901  if test "x$ac_ct_STRIP" = x; then
3902    STRIP=":"
3903  else
3904    case $cross_compiling:$ac_tool_warned in
3905yes:)
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908ac_tool_warned=yes ;;
3909esac
3910    STRIP=$ac_ct_STRIP
3911  fi
3912else
3913  STRIP="$ac_cv_prog_STRIP"
3914fi
3915
3916fi
3917INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3918
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3920$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3921if test -z "$MKDIR_P"; then
3922  if ${ac_cv_path_mkdir+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3927do
3928  IFS=$as_save_IFS
3929  test -z "$as_dir" && as_dir=.
3930    for ac_prog in mkdir gmkdir; do
3931	 for ac_exec_ext in '' $ac_executable_extensions; do
3932	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3933	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3934	     'mkdir (GNU coreutils) '* | \
3935	     'mkdir (coreutils) '* | \
3936	     'mkdir (fileutils) '4.1*)
3937	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3938	       break 3;;
3939	   esac
3940	 done
3941       done
3942  done
3943IFS=$as_save_IFS
3944
3945fi
3946
3947  test -d ./--version && rmdir ./--version
3948  if test "${ac_cv_path_mkdir+set}" = set; then
3949    MKDIR_P="$ac_cv_path_mkdir -p"
3950  else
3951    # As a last resort, use the slow shell script.  Don't cache a
3952    # value for MKDIR_P within a source directory, because that will
3953    # break other packages using the cache if that directory is
3954    # removed, or if the value is a relative name.
3955    MKDIR_P="$ac_install_sh -d"
3956  fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3959$as_echo "$MKDIR_P" >&6; }
3960
3961for ac_prog in gawk mawk nawk awk
3962do
3963  # Extract the first word of "$ac_prog", so it can be a program name with args.
3964set dummy $ac_prog; ac_word=$2
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
3967if ${ac_cv_prog_AWK+:} false; then :
3968  $as_echo_n "(cached) " >&6
3969else
3970  if test -n "$AWK"; then
3971  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978    for ac_exec_ext in '' $ac_executable_extensions; do
3979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980    ac_cv_prog_AWK="$ac_prog"
3981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982    break 2
3983  fi
3984done
3985  done
3986IFS=$as_save_IFS
3987
3988fi
3989fi
3990AWK=$ac_cv_prog_AWK
3991if test -n "$AWK"; then
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3993$as_echo "$AWK" >&6; }
3994else
3995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
3997fi
3998
3999
4000  test -n "$AWK" && break
4001done
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4004$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4005set x ${MAKE-make}
4006ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4007if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4008  $as_echo_n "(cached) " >&6
4009else
4010  cat >conftest.make <<\_ACEOF
4011SHELL = /bin/sh
4012all:
4013	@echo '@@@%%%=$(MAKE)=@@@%%%'
4014_ACEOF
4015# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4016case `${MAKE-make} -f conftest.make 2>/dev/null` in
4017  *@@@%%%=?*=@@@%%%*)
4018    eval ac_cv_prog_make_${ac_make}_set=yes;;
4019  *)
4020    eval ac_cv_prog_make_${ac_make}_set=no;;
4021esac
4022rm -f conftest.make
4023fi
4024if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026$as_echo "yes" >&6; }
4027  SET_MAKE=
4028else
4029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
4031  SET_MAKE="MAKE=${MAKE-make}"
4032fi
4033
4034rm -rf .tst 2>/dev/null
4035mkdir .tst 2>/dev/null
4036if test -d .tst; then
4037  am__leading_dot=.
4038else
4039  am__leading_dot=_
4040fi
4041rmdir .tst 2>/dev/null
4042
4043DEPDIR="${am__leading_dot}deps"
4044
4045ac_config_commands="$ac_config_commands depfiles"
4046
4047
4048am_make=${MAKE-make}
4049cat > confinc << 'END'
4050am__doit:
4051	@echo this is the am__doit target
4052.PHONY: am__doit
4053END
4054# If we don't find an include directive, just comment out the code.
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056$as_echo_n "checking for style of include used by $am_make... " >&6; }
4057am__include="#"
4058am__quote=
4059_am_result=none
4060# First try GNU make style include.
4061echo "include confinc" > confmf
4062# Ignore all kinds of additional output from 'make'.
4063case `$am_make -s -f confmf 2> /dev/null` in #(
4064*the\ am__doit\ target*)
4065  am__include=include
4066  am__quote=
4067  _am_result=GNU
4068  ;;
4069esac
4070# Now try BSD make style include.
4071if test "$am__include" = "#"; then
4072   echo '.include "confinc"' > confmf
4073   case `$am_make -s -f confmf 2> /dev/null` in #(
4074   *the\ am__doit\ target*)
4075     am__include=.include
4076     am__quote="\""
4077     _am_result=BSD
4078     ;;
4079   esac
4080fi
4081
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084$as_echo "$_am_result" >&6; }
4085rm -f confinc confmf
4086
4087# Check whether --enable-dependency-tracking was given.
4088if test "${enable_dependency_tracking+set}" = set; then :
4089  enableval=$enable_dependency_tracking;
4090fi
4091
4092if test "x$enable_dependency_tracking" != xno; then
4093  am_depcomp="$ac_aux_dir/depcomp"
4094  AMDEPBACKSLASH='\'
4095  am__nodep='_no'
4096fi
4097 if test "x$enable_dependency_tracking" != xno; then
4098  AMDEP_TRUE=
4099  AMDEP_FALSE='#'
4100else
4101  AMDEP_TRUE='#'
4102  AMDEP_FALSE=
4103fi
4104
4105
4106# Check whether --enable-silent-rules was given.
4107if test "${enable_silent_rules+set}" = set; then :
4108  enableval=$enable_silent_rules;
4109fi
4110
4111case $enable_silent_rules in # (((
4112  yes) AM_DEFAULT_VERBOSITY=0;;
4113   no) AM_DEFAULT_VERBOSITY=1;;
4114    *) AM_DEFAULT_VERBOSITY=1;;
4115esac
4116am_make=${MAKE-make}
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4118$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4119if ${am_cv_make_support_nested_variables+:} false; then :
4120  $as_echo_n "(cached) " >&6
4121else
4122  if $as_echo 'TRUE=$(BAR$(V))
4123BAR0=false
4124BAR1=true
4125V=1
4126am__doit:
4127	@$(TRUE)
4128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4129  am_cv_make_support_nested_variables=yes
4130else
4131  am_cv_make_support_nested_variables=no
4132fi
4133fi
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4135$as_echo "$am_cv_make_support_nested_variables" >&6; }
4136if test $am_cv_make_support_nested_variables = yes; then
4137    AM_V='$(V)'
4138  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4139else
4140  AM_V=$AM_DEFAULT_VERBOSITY
4141  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4142fi
4143AM_BACKSLASH='\'
4144
4145if test "`cd $srcdir && pwd`" != "`pwd`"; then
4146  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4147  # is not polluted with repeated "-I."
4148  am__isrc=' -I$(srcdir)'
4149  # test to see if srcdir already configured
4150  if test -f $srcdir/config.status; then
4151    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4152  fi
4153fi
4154
4155# test whether we have cygpath
4156if test -z "$CYGPATH_W"; then
4157  if (cygpath --version) >/dev/null 2>/dev/null; then
4158    CYGPATH_W='cygpath -w'
4159  else
4160    CYGPATH_W=echo
4161  fi
4162fi
4163
4164
4165# Define the identity of the package.
4166 PACKAGE='xset'
4167 VERSION='1.2.3'
4168
4169
4170cat >>confdefs.h <<_ACEOF
4171#define PACKAGE "$PACKAGE"
4172_ACEOF
4173
4174
4175cat >>confdefs.h <<_ACEOF
4176#define VERSION "$VERSION"
4177_ACEOF
4178
4179# Some tools Automake needs.
4180
4181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182
4183
4184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4185
4186
4187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188
4189
4190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4191
4192
4193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4194
4195# For better backward compatibility.  To be removed once Automake 1.9.x
4196# dies out for good.  For more background, see:
4197# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4198# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4199mkdir_p='$(MKDIR_P)'
4200
4201# We need awk for the "check" target.  The system "awk" is bad on
4202# some platforms.
4203# Always define AMTAR for backward compatibility.  Yes, it's still used
4204# in the wild :-(  We should find a proper way to deprecate it ...
4205AMTAR='$${TAR-tar}'
4206
4207
4208# We'll loop over all known methods to create a tar archive until one works.
4209_am_tools='gnutar  pax cpio none'
4210
4211am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4212
4213
4214
4215
4216
4217depcc="$CC"   am_compiler_list=
4218
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220$as_echo_n "checking dependency style of $depcc... " >&6; }
4221if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225  # We make a subdir and do the tests there.  Otherwise we can end up
4226  # making bogus files that we don't know about and never remove.  For
4227  # instance it was reported that on HP-UX the gcc test will end up
4228  # making a dummy file named 'D' -- because '-MD' means "put the output
4229  # in D".
4230  rm -rf conftest.dir
4231  mkdir conftest.dir
4232  # Copy depcomp to subdir because otherwise we won't find it if we're
4233  # using a relative directory.
4234  cp "$am_depcomp" conftest.dir
4235  cd conftest.dir
4236  # We will build objects and dependencies in a subdirectory because
4237  # it helps to detect inapplicable dependency modes.  For instance
4238  # both Tru64's cc and ICC support -MD to output dependencies as a
4239  # side effect of compilation, but ICC will put the dependencies in
4240  # the current directory while Tru64 will put them in the object
4241  # directory.
4242  mkdir sub
4243
4244  am_cv_CC_dependencies_compiler_type=none
4245  if test "$am_compiler_list" = ""; then
4246     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247  fi
4248  am__universal=false
4249  case " $depcc " in #(
4250     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4251     esac
4252
4253  for depmode in $am_compiler_list; do
4254    # Setup a source with many dependencies, because some compilers
4255    # like to wrap large dependency lists on column 80 (with \), and
4256    # we should not choose a depcomp mode which is confused by this.
4257    #
4258    # We need to recreate these files for each test, as the compiler may
4259    # overwrite some of them when testing with obscure command lines.
4260    # This happens at least with the AIX C compiler.
4261    : > sub/conftest.c
4262    for i in 1 2 3 4 5 6; do
4263      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4264      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265      # Solaris 10 /bin/sh.
4266      echo '/* dummy */' > sub/conftst$i.h
4267    done
4268    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269
4270    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271    # mode.  It turns out that the SunPro C++ compiler does not properly
4272    # handle '-M -o', and we need to detect this.  Also, some Intel
4273    # versions had trouble with output in subdirs.
4274    am__obj=sub/conftest.${OBJEXT-o}
4275    am__minus_obj="-o $am__obj"
4276    case $depmode in
4277    gcc)
4278      # This depmode causes a compiler race in universal mode.
4279      test "$am__universal" = false || continue
4280      ;;
4281    nosideeffect)
4282      # After this tag, mechanisms are not by side-effect, so they'll
4283      # only be used when explicitly requested.
4284      if test "x$enable_dependency_tracking" = xyes; then
4285	continue
4286      else
4287	break
4288      fi
4289      ;;
4290    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4291      # This compiler won't grok '-c -o', but also, the minuso test has
4292      # not run yet.  These depmodes are late enough in the game, and
4293      # so weak that their functioning should not be impacted.
4294      am__obj=conftest.${OBJEXT-o}
4295      am__minus_obj=
4296      ;;
4297    none) break ;;
4298    esac
4299    if depmode=$depmode \
4300       source=sub/conftest.c object=$am__obj \
4301       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4302       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4303         >/dev/null 2>conftest.err &&
4304       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4305       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4306       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4307       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4308      # icc doesn't choke on unknown options, it will just issue warnings
4309      # or remarks (even with -Werror).  So we grep stderr for any message
4310      # that says an option was ignored or not supported.
4311      # When given -MP, icc 7.0 and 7.1 complain thusly:
4312      #   icc: Command line warning: ignoring option '-M'; no argument required
4313      # The diagnosis changed in icc 8.0:
4314      #   icc: Command line remark: option '-MP' not supported
4315      if (grep 'ignoring option' conftest.err ||
4316          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4317        am_cv_CC_dependencies_compiler_type=$depmode
4318        break
4319      fi
4320    fi
4321  done
4322
4323  cd ..
4324  rm -rf conftest.dir
4325else
4326  am_cv_CC_dependencies_compiler_type=none
4327fi
4328
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4333
4334 if
4335  test "x$enable_dependency_tracking" != xno \
4336  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4337  am__fastdepCC_TRUE=
4338  am__fastdepCC_FALSE='#'
4339else
4340  am__fastdepCC_TRUE='#'
4341  am__fastdepCC_FALSE=
4342fi
4343
4344
4345
4346# POSIX will say in a future version that running "rm -f" with no argument
4347# is OK; and we want to be able to make that assumption in our Makefile
4348# recipes.  So use an aggressive probe to check that the usage we want is
4349# actually supported "in the wild" to an acceptable degree.
4350# See automake bug#10828.
4351# To make any issue more visible, cause the running configure to be aborted
4352# by default if the 'rm' program in use doesn't match our expectations; the
4353# user can still override this though.
4354if rm -f && rm -fr && rm -rf; then : OK; else
4355  cat >&2 <<'END'
4356Oops!
4357
4358Your 'rm' program seems unable to run without file operands specified
4359on the command line, even when the '-f' option is present.  This is contrary
4360to the behaviour of most rm programs out there, and not conforming with
4361the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4362
4363Please tell bug-automake@gnu.org about your system, including the value
4364of your $PATH and any error possibly output before this message.  This
4365can help us improve future automake versions.
4366
4367END
4368  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4369    echo 'Configuration will proceed anyway, since you have set the' >&2
4370    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4371    echo >&2
4372  else
4373    cat >&2 <<'END'
4374Aborting the configuration process, to ensure you take notice of the issue.
4375
4376You can download and install GNU coreutils to get an 'rm' implementation
4377that behaves properly: <http://www.gnu.org/software/coreutils/>.
4378
4379If you want to complete the configuration process using your problematic
4380'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4381to "yes", and re-run configure.
4382
4383END
4384    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4385  fi
4386fi
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4389$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4390    # Check whether --enable-maintainer-mode was given.
4391if test "${enable_maintainer_mode+set}" = set; then :
4392  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4393else
4394  USE_MAINTAINER_MODE=no
4395fi
4396
4397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4398$as_echo "$USE_MAINTAINER_MODE" >&6; }
4399   if test $USE_MAINTAINER_MODE = yes; then
4400  MAINTAINER_MODE_TRUE=
4401  MAINTAINER_MODE_FALSE='#'
4402else
4403  MAINTAINER_MODE_TRUE='#'
4404  MAINTAINER_MODE_FALSE=
4405fi
4406
4407  MAINT=$MAINTAINER_MODE_TRUE
4408
4409
4410
4411# Require xorg-macros: XORG_MANPAGE_SECTIONS
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4424$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4425if ${ac_cv_prog_cc_c99+:} false; then :
4426  $as_echo_n "(cached) " >&6
4427else
4428  ac_cv_prog_cc_c99=no
4429ac_save_CC=$CC
4430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431/* end confdefs.h.  */
4432#include <stdarg.h>
4433#include <stdbool.h>
4434#include <stdlib.h>
4435#include <wchar.h>
4436#include <stdio.h>
4437
4438// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4439#define debug(...) fprintf (stderr, __VA_ARGS__)
4440#define showlist(...) puts (#__VA_ARGS__)
4441#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4442static void
4443test_varargs_macros (void)
4444{
4445  int x = 1234;
4446  int y = 5678;
4447  debug ("Flag");
4448  debug ("X = %d\n", x);
4449  showlist (The first, second, and third items.);
4450  report (x>y, "x is %d but y is %d", x, y);
4451}
4452
4453// Check long long types.
4454#define BIG64 18446744073709551615ull
4455#define BIG32 4294967295ul
4456#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4457#if !BIG_OK
4458  your preprocessor is broken;
4459#endif
4460#if BIG_OK
4461#else
4462  your preprocessor is broken;
4463#endif
4464static long long int bignum = -9223372036854775807LL;
4465static unsigned long long int ubignum = BIG64;
4466
4467struct incomplete_array
4468{
4469  int datasize;
4470  double data[];
4471};
4472
4473struct named_init {
4474  int number;
4475  const wchar_t *name;
4476  double average;
4477};
4478
4479typedef const char *ccp;
4480
4481static inline int
4482test_restrict (ccp restrict text)
4483{
4484  // See if C++-style comments work.
4485  // Iterate through items via the restricted pointer.
4486  // Also check for declarations in for loops.
4487  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4488    continue;
4489  return 0;
4490}
4491
4492// Check varargs and va_copy.
4493static void
4494test_varargs (const char *format, ...)
4495{
4496  va_list args;
4497  va_start (args, format);
4498  va_list args_copy;
4499  va_copy (args_copy, args);
4500
4501  const char *str;
4502  int number;
4503  float fnumber;
4504
4505  while (*format)
4506    {
4507      switch (*format++)
4508	{
4509	case 's': // string
4510	  str = va_arg (args_copy, const char *);
4511	  break;
4512	case 'd': // int
4513	  number = va_arg (args_copy, int);
4514	  break;
4515	case 'f': // float
4516	  fnumber = va_arg (args_copy, double);
4517	  break;
4518	default:
4519	  break;
4520	}
4521    }
4522  va_end (args_copy);
4523  va_end (args);
4524}
4525
4526int
4527main ()
4528{
4529
4530  // Check bool.
4531  _Bool success = false;
4532
4533  // Check restrict.
4534  if (test_restrict ("String literal") == 0)
4535    success = true;
4536  char *restrict newvar = "Another string";
4537
4538  // Check varargs.
4539  test_varargs ("s, d' f .", "string", 65, 34.234);
4540  test_varargs_macros ();
4541
4542  // Check flexible array members.
4543  struct incomplete_array *ia =
4544    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4545  ia->datasize = 10;
4546  for (int i = 0; i < ia->datasize; ++i)
4547    ia->data[i] = i * 1.234;
4548
4549  // Check named initializers.
4550  struct named_init ni = {
4551    .number = 34,
4552    .name = L"Test wide string",
4553    .average = 543.34343,
4554  };
4555
4556  ni.number = 58;
4557
4558  int dynamic_array[ni.number];
4559  dynamic_array[ni.number - 1] = 543;
4560
4561  // work around unused variable warnings
4562  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4563	  || dynamic_array[ni.number - 1] != 543);
4564
4565  ;
4566  return 0;
4567}
4568_ACEOF
4569for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4570do
4571  CC="$ac_save_CC $ac_arg"
4572  if ac_fn_c_try_compile "$LINENO"; then :
4573  ac_cv_prog_cc_c99=$ac_arg
4574fi
4575rm -f core conftest.err conftest.$ac_objext
4576  test "x$ac_cv_prog_cc_c99" != "xno" && break
4577done
4578rm -f conftest.$ac_ext
4579CC=$ac_save_CC
4580
4581fi
4582# AC_CACHE_VAL
4583case "x$ac_cv_prog_cc_c99" in
4584  x)
4585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4586$as_echo "none needed" >&6; } ;;
4587  xno)
4588    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4589$as_echo "unsupported" >&6; } ;;
4590  *)
4591    CC="$CC $ac_cv_prog_cc_c99"
4592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4593$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4594esac
4595if test "x$ac_cv_prog_cc_c99" != xno; then :
4596
4597fi
4598
4599
4600
4601
4602
4603
4604ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4605if test "x$ac_cv_have_decl___clang__" = xyes; then :
4606  CLANGCC="yes"
4607else
4608  CLANGCC="no"
4609fi
4610
4611ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4612if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4613  INTELCC="yes"
4614else
4615  INTELCC="no"
4616fi
4617
4618ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4619if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4620  SUNCC="yes"
4621else
4622  SUNCC="no"
4623fi
4624
4625
4626
4627
4628if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4629	if test -n "$ac_tool_prefix"; then
4630  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4631set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633$as_echo_n "checking for $ac_word... " >&6; }
4634if ${ac_cv_path_PKG_CONFIG+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  case $PKG_CONFIG in
4638  [\\/]* | ?:[\\/]*)
4639  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4640  ;;
4641  *)
4642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645  IFS=$as_save_IFS
4646  test -z "$as_dir" && as_dir=.
4647    for ac_exec_ext in '' $ac_executable_extensions; do
4648  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4650    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651    break 2
4652  fi
4653done
4654  done
4655IFS=$as_save_IFS
4656
4657  ;;
4658esac
4659fi
4660PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4661if test -n "$PKG_CONFIG"; then
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4663$as_echo "$PKG_CONFIG" >&6; }
4664else
4665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666$as_echo "no" >&6; }
4667fi
4668
4669
4670fi
4671if test -z "$ac_cv_path_PKG_CONFIG"; then
4672  ac_pt_PKG_CONFIG=$PKG_CONFIG
4673  # Extract the first word of "pkg-config", so it can be a program name with args.
4674set dummy pkg-config; ac_word=$2
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676$as_echo_n "checking for $ac_word... " >&6; }
4677if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4678  $as_echo_n "(cached) " >&6
4679else
4680  case $ac_pt_PKG_CONFIG in
4681  [\\/]* | ?:[\\/]*)
4682  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4683  ;;
4684  *)
4685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686for as_dir in $PATH
4687do
4688  IFS=$as_save_IFS
4689  test -z "$as_dir" && as_dir=.
4690    for ac_exec_ext in '' $ac_executable_extensions; do
4691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694    break 2
4695  fi
4696done
4697  done
4698IFS=$as_save_IFS
4699
4700  ;;
4701esac
4702fi
4703ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4704if test -n "$ac_pt_PKG_CONFIG"; then
4705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4706$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4707else
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709$as_echo "no" >&6; }
4710fi
4711
4712  if test "x$ac_pt_PKG_CONFIG" = x; then
4713    PKG_CONFIG=""
4714  else
4715    case $cross_compiling:$ac_tool_warned in
4716yes:)
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721    PKG_CONFIG=$ac_pt_PKG_CONFIG
4722  fi
4723else
4724  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4725fi
4726
4727fi
4728if test -n "$PKG_CONFIG"; then
4729	_pkg_min_version=0.9.0
4730	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4731$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4732	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4733		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4734$as_echo "yes" >&6; }
4735	else
4736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737$as_echo "no" >&6; }
4738		PKG_CONFIG=""
4739	fi
4740
4741fi
4742# Make sure we can run config.sub.
4743$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747$as_echo_n "checking build system type... " >&6; }
4748if ${ac_cv_build+:} false; then :
4749  $as_echo_n "(cached) " >&6
4750else
4751  ac_build_alias=$build_alias
4752test "x$ac_build_alias" = x &&
4753  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754test "x$ac_build_alias" = x &&
4755  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761$as_echo "$ac_cv_build" >&6; }
4762case $ac_cv_build in
4763*-*-*) ;;
4764*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765esac
4766build=$ac_cv_build
4767ac_save_IFS=$IFS; IFS='-'
4768set x $ac_cv_build
4769shift
4770build_cpu=$1
4771build_vendor=$2
4772shift; shift
4773# Remember, the first character of IFS is used to create $*,
4774# except with old shells:
4775build_os=$*
4776IFS=$ac_save_IFS
4777case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781$as_echo_n "checking host system type... " >&6; }
4782if ${ac_cv_host+:} false; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785  if test "x$host_alias" = x; then
4786  ac_cv_host=$ac_cv_build
4787else
4788  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790fi
4791
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794$as_echo "$ac_cv_host" >&6; }
4795case $ac_cv_host in
4796*-*-*) ;;
4797*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798esac
4799host=$ac_cv_host
4800ac_save_IFS=$IFS; IFS='-'
4801set x $ac_cv_host
4802shift
4803host_cpu=$1
4804host_vendor=$2
4805shift; shift
4806# Remember, the first character of IFS is used to create $*,
4807# except with old shells:
4808host_os=$*
4809IFS=$ac_save_IFS
4810case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815if ${ac_cv_path_SED+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819     for ac_i in 1 2 3 4 5 6 7; do
4820       ac_script="$ac_script$as_nl$ac_script"
4821     done
4822     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823     { ac_script=; unset ac_script;}
4824     if test -z "$SED"; then
4825  ac_path_SED_found=false
4826  # Loop through the user's path and test for each of PROGNAME-LIST
4827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828for as_dir in $PATH
4829do
4830  IFS=$as_save_IFS
4831  test -z "$as_dir" && as_dir=.
4832    for ac_prog in sed gsed; do
4833    for ac_exec_ext in '' $ac_executable_extensions; do
4834      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4836# Check for GNU ac_path_SED and select it if it is found.
4837  # Check for GNU $ac_path_SED
4838case `"$ac_path_SED" --version 2>&1` in
4839*GNU*)
4840  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841*)
4842  ac_count=0
4843  $as_echo_n 0123456789 >"conftest.in"
4844  while :
4845  do
4846    cat "conftest.in" "conftest.in" >"conftest.tmp"
4847    mv "conftest.tmp" "conftest.in"
4848    cp "conftest.in" "conftest.nl"
4849    $as_echo '' >> "conftest.nl"
4850    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852    as_fn_arith $ac_count + 1 && ac_count=$as_val
4853    if test $ac_count -gt ${ac_path_SED_max-0}; then
4854      # Best one so far, save it but keep looking for a better one
4855      ac_cv_path_SED="$ac_path_SED"
4856      ac_path_SED_max=$ac_count
4857    fi
4858    # 10*(2^10) chars as input seems more than enough
4859    test $ac_count -gt 10 && break
4860  done
4861  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862esac
4863
4864      $ac_path_SED_found && break 3
4865    done
4866  done
4867  done
4868IFS=$as_save_IFS
4869  if test -z "$ac_cv_path_SED"; then
4870    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871  fi
4872else
4873  ac_cv_path_SED=$SED
4874fi
4875
4876fi
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878$as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880  rm -f conftest.sed
4881
4882
4883
4884
4885
4886
4887# Check whether --enable-selective-werror was given.
4888if test "${enable_selective_werror+set}" = set; then :
4889  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4890else
4891  SELECTIVE_WERROR=yes
4892fi
4893
4894
4895
4896
4897
4898# -v is too short to test reliably with XORG_TESTSET_CFLAG
4899if test "x$SUNCC" = "xyes"; then
4900    BASE_CFLAGS="-v"
4901else
4902    BASE_CFLAGS=""
4903fi
4904
4905# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919xorg_testset_save_CFLAGS="$CFLAGS"
4920
4921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930int i;
4931_ACEOF
4932if ac_fn_c_try_compile "$LINENO"; then :
4933  xorg_cv_cc_flag_unknown_warning_option=yes
4934else
4935  xorg_cv_cc_flag_unknown_warning_option=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4942	CFLAGS="$xorg_testset_save_CFLAGS"
4943fi
4944
4945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948	fi
4949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957int i;
4958_ACEOF
4959if ac_fn_c_try_compile "$LINENO"; then :
4960  xorg_cv_cc_flag_unused_command_line_argument=yes
4961else
4962  xorg_cv_cc_flag_unused_command_line_argument=no
4963fi
4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4969	CFLAGS="$xorg_testset_save_CFLAGS"
4970fi
4971
4972found="no"
4973
4974	if test $found = "no" ; then
4975		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977		fi
4978
4979		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4981		fi
4982
4983		CFLAGS="$CFLAGS -Wall"
4984
4985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4986$as_echo_n "checking if $CC supports -Wall... " >&6; }
4987		cacheid=xorg_cv_cc_flag__Wall
4988		if eval \${$cacheid+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993int i;
4994int
4995main ()
4996{
4997
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_link "$LINENO"; then :
5003  eval $cacheid=yes
5004else
5005  eval $cacheid=no
5006fi
5007rm -f core conftest.err conftest.$ac_objext \
5008    conftest$ac_exeext conftest.$ac_ext
5009fi
5010
5011
5012		CFLAGS="$xorg_testset_save_CFLAGS"
5013
5014		eval supported=\$$cacheid
5015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5016$as_echo "$supported" >&6; }
5017		if test "$supported" = "yes" ; then
5018			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5019			found="yes"
5020		fi
5021	fi
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037xorg_testset_save_CFLAGS="$CFLAGS"
5038
5039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051  xorg_cv_cc_flag_unknown_warning_option=yes
5052else
5053  xorg_cv_cc_flag_unknown_warning_option=no
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5060	CFLAGS="$xorg_testset_save_CFLAGS"
5061fi
5062
5063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5066	fi
5067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075int i;
5076_ACEOF
5077if ac_fn_c_try_compile "$LINENO"; then :
5078  xorg_cv_cc_flag_unused_command_line_argument=yes
5079else
5080  xorg_cv_cc_flag_unused_command_line_argument=no
5081fi
5082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083fi
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5087	CFLAGS="$xorg_testset_save_CFLAGS"
5088fi
5089
5090found="no"
5091
5092	if test $found = "no" ; then
5093		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095		fi
5096
5097		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5099		fi
5100
5101		CFLAGS="$CFLAGS -Wpointer-arith"
5102
5103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5104$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5105		cacheid=xorg_cv_cc_flag__Wpointer_arith
5106		if eval \${$cacheid+:} false; then :
5107  $as_echo_n "(cached) " >&6
5108else
5109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110/* end confdefs.h.  */
5111int i;
5112int
5113main ()
5114{
5115
5116  ;
5117  return 0;
5118}
5119_ACEOF
5120if ac_fn_c_try_link "$LINENO"; then :
5121  eval $cacheid=yes
5122else
5123  eval $cacheid=no
5124fi
5125rm -f core conftest.err conftest.$ac_objext \
5126    conftest$ac_exeext conftest.$ac_ext
5127fi
5128
5129
5130		CFLAGS="$xorg_testset_save_CFLAGS"
5131
5132		eval supported=\$$cacheid
5133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5134$as_echo "$supported" >&6; }
5135		if test "$supported" = "yes" ; then
5136			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5137			found="yes"
5138		fi
5139	fi
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155xorg_testset_save_CFLAGS="$CFLAGS"
5156
5157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166int i;
5167_ACEOF
5168if ac_fn_c_try_compile "$LINENO"; then :
5169  xorg_cv_cc_flag_unknown_warning_option=yes
5170else
5171  xorg_cv_cc_flag_unknown_warning_option=no
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5178	CFLAGS="$xorg_testset_save_CFLAGS"
5179fi
5180
5181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184	fi
5185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5189  $as_echo_n "(cached) " >&6
5190else
5191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h.  */
5193int i;
5194_ACEOF
5195if ac_fn_c_try_compile "$LINENO"; then :
5196  xorg_cv_cc_flag_unused_command_line_argument=yes
5197else
5198  xorg_cv_cc_flag_unused_command_line_argument=no
5199fi
5200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201fi
5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5205	CFLAGS="$xorg_testset_save_CFLAGS"
5206fi
5207
5208found="no"
5209
5210	if test $found = "no" ; then
5211		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213		fi
5214
5215		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217		fi
5218
5219		CFLAGS="$CFLAGS -Wmissing-declarations"
5220
5221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5222$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5223		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5224		if eval \${$cacheid+:} false; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228/* end confdefs.h.  */
5229int i;
5230int
5231main ()
5232{
5233
5234  ;
5235  return 0;
5236}
5237_ACEOF
5238if ac_fn_c_try_link "$LINENO"; then :
5239  eval $cacheid=yes
5240else
5241  eval $cacheid=no
5242fi
5243rm -f core conftest.err conftest.$ac_objext \
5244    conftest$ac_exeext conftest.$ac_ext
5245fi
5246
5247
5248		CFLAGS="$xorg_testset_save_CFLAGS"
5249
5250		eval supported=\$$cacheid
5251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5252$as_echo "$supported" >&6; }
5253		if test "$supported" = "yes" ; then
5254			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5255			found="yes"
5256		fi
5257	fi
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273xorg_testset_save_CFLAGS="$CFLAGS"
5274
5275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284int i;
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287  xorg_cv_cc_flag_unknown_warning_option=yes
5288else
5289  xorg_cv_cc_flag_unknown_warning_option=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5302	fi
5303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5307  $as_echo_n "(cached) " >&6
5308else
5309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h.  */
5311int i;
5312_ACEOF
5313if ac_fn_c_try_compile "$LINENO"; then :
5314  xorg_cv_cc_flag_unused_command_line_argument=yes
5315else
5316  xorg_cv_cc_flag_unused_command_line_argument=no
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5323	CFLAGS="$xorg_testset_save_CFLAGS"
5324fi
5325
5326found="no"
5327
5328	if test $found = "no" ; then
5329		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5331		fi
5332
5333		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335		fi
5336
5337		CFLAGS="$CFLAGS -Wformat=2"
5338
5339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5340$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5341		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5342		if eval \${$cacheid+:} false; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347int i;
5348int
5349main ()
5350{
5351
5352  ;
5353  return 0;
5354}
5355_ACEOF
5356if ac_fn_c_try_link "$LINENO"; then :
5357  eval $cacheid=yes
5358else
5359  eval $cacheid=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext \
5362    conftest$ac_exeext conftest.$ac_ext
5363fi
5364
5365
5366		CFLAGS="$xorg_testset_save_CFLAGS"
5367
5368		eval supported=\$$cacheid
5369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5370$as_echo "$supported" >&6; }
5371		if test "$supported" = "yes" ; then
5372			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5373			found="yes"
5374		fi
5375	fi
5376
5377	if test $found = "no" ; then
5378		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5380		fi
5381
5382		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5384		fi
5385
5386		CFLAGS="$CFLAGS -Wformat"
5387
5388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5389$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5390		cacheid=xorg_cv_cc_flag__Wformat
5391		if eval \${$cacheid+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396int i;
5397int
5398main ()
5399{
5400
5401  ;
5402  return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_link "$LINENO"; then :
5406  eval $cacheid=yes
5407else
5408  eval $cacheid=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext \
5411    conftest$ac_exeext conftest.$ac_ext
5412fi
5413
5414
5415		CFLAGS="$xorg_testset_save_CFLAGS"
5416
5417		eval supported=\$$cacheid
5418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5419$as_echo "$supported" >&6; }
5420		if test "$supported" = "yes" ; then
5421			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5422			found="yes"
5423		fi
5424	fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453int i;
5454_ACEOF
5455if ac_fn_c_try_compile "$LINENO"; then :
5456  xorg_cv_cc_flag_unknown_warning_option=yes
5457else
5458  xorg_cv_cc_flag_unknown_warning_option=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5465	CFLAGS="$xorg_testset_save_CFLAGS"
5466fi
5467
5468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471	fi
5472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481_ACEOF
5482if ac_fn_c_try_compile "$LINENO"; then :
5483  xorg_cv_cc_flag_unused_command_line_argument=yes
5484else
5485  xorg_cv_cc_flag_unused_command_line_argument=no
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488fi
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5492	CFLAGS="$xorg_testset_save_CFLAGS"
5493fi
5494
5495found="no"
5496
5497	if test $found = "no" ; then
5498		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500		fi
5501
5502		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5504		fi
5505
5506		CFLAGS="$CFLAGS -Wstrict-prototypes"
5507
5508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5509$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5510		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5511		if eval \${$cacheid+:} false; then :
5512  $as_echo_n "(cached) " >&6
5513else
5514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516int i;
5517int
5518main ()
5519{
5520
5521  ;
5522  return 0;
5523}
5524_ACEOF
5525if ac_fn_c_try_link "$LINENO"; then :
5526  eval $cacheid=yes
5527else
5528  eval $cacheid=no
5529fi
5530rm -f core conftest.err conftest.$ac_objext \
5531    conftest$ac_exeext conftest.$ac_ext
5532fi
5533
5534
5535		CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537		eval supported=\$$cacheid
5538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539$as_echo "$supported" >&6; }
5540		if test "$supported" = "yes" ; then
5541			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5542			found="yes"
5543		fi
5544	fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574  xorg_cv_cc_flag_unknown_warning_option=yes
5575else
5576  xorg_cv_cc_flag_unknown_warning_option=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5583	CFLAGS="$xorg_testset_save_CFLAGS"
5584fi
5585
5586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589	fi
5590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h.  */
5598int i;
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601  xorg_cv_cc_flag_unused_command_line_argument=yes
5602else
5603  xorg_cv_cc_flag_unused_command_line_argument=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5610	CFLAGS="$xorg_testset_save_CFLAGS"
5611fi
5612
5613found="no"
5614
5615	if test $found = "no" ; then
5616		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618		fi
5619
5620		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5622		fi
5623
5624		CFLAGS="$CFLAGS -Wmissing-prototypes"
5625
5626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5627$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5628		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5629		if eval \${$cacheid+:} false; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h.  */
5634int i;
5635int
5636main ()
5637{
5638
5639  ;
5640  return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_link "$LINENO"; then :
5644  eval $cacheid=yes
5645else
5646  eval $cacheid=no
5647fi
5648rm -f core conftest.err conftest.$ac_objext \
5649    conftest$ac_exeext conftest.$ac_ext
5650fi
5651
5652
5653		CFLAGS="$xorg_testset_save_CFLAGS"
5654
5655		eval supported=\$$cacheid
5656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5657$as_echo "$supported" >&6; }
5658		if test "$supported" = "yes" ; then
5659			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5660			found="yes"
5661		fi
5662	fi
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678xorg_testset_save_CFLAGS="$CFLAGS"
5679
5680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689int i;
5690_ACEOF
5691if ac_fn_c_try_compile "$LINENO"; then :
5692  xorg_cv_cc_flag_unknown_warning_option=yes
5693else
5694  xorg_cv_cc_flag_unknown_warning_option=no
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5701	CFLAGS="$xorg_testset_save_CFLAGS"
5702fi
5703
5704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707	fi
5708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5712  $as_echo_n "(cached) " >&6
5713else
5714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h.  */
5716int i;
5717_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then :
5719  xorg_cv_cc_flag_unused_command_line_argument=yes
5720else
5721  xorg_cv_cc_flag_unused_command_line_argument=no
5722fi
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5728	CFLAGS="$xorg_testset_save_CFLAGS"
5729fi
5730
5731found="no"
5732
5733	if test $found = "no" ; then
5734		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736		fi
5737
5738		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740		fi
5741
5742		CFLAGS="$CFLAGS -Wnested-externs"
5743
5744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5745$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5746		cacheid=xorg_cv_cc_flag__Wnested_externs
5747		if eval \${$cacheid+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751/* end confdefs.h.  */
5752int i;
5753int
5754main ()
5755{
5756
5757  ;
5758  return 0;
5759}
5760_ACEOF
5761if ac_fn_c_try_link "$LINENO"; then :
5762  eval $cacheid=yes
5763else
5764  eval $cacheid=no
5765fi
5766rm -f core conftest.err conftest.$ac_objext \
5767    conftest$ac_exeext conftest.$ac_ext
5768fi
5769
5770
5771		CFLAGS="$xorg_testset_save_CFLAGS"
5772
5773		eval supported=\$$cacheid
5774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5775$as_echo "$supported" >&6; }
5776		if test "$supported" = "yes" ; then
5777			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5778			found="yes"
5779		fi
5780	fi
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796xorg_testset_save_CFLAGS="$CFLAGS"
5797
5798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807int i;
5808_ACEOF
5809if ac_fn_c_try_compile "$LINENO"; then :
5810  xorg_cv_cc_flag_unknown_warning_option=yes
5811else
5812  xorg_cv_cc_flag_unknown_warning_option=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5819	CFLAGS="$xorg_testset_save_CFLAGS"
5820fi
5821
5822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5825	fi
5826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834int i;
5835_ACEOF
5836if ac_fn_c_try_compile "$LINENO"; then :
5837  xorg_cv_cc_flag_unused_command_line_argument=yes
5838else
5839  xorg_cv_cc_flag_unused_command_line_argument=no
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842fi
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5846	CFLAGS="$xorg_testset_save_CFLAGS"
5847fi
5848
5849found="no"
5850
5851	if test $found = "no" ; then
5852		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854		fi
5855
5856		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5858		fi
5859
5860		CFLAGS="$CFLAGS -Wbad-function-cast"
5861
5862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5863$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5864		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5865		if eval \${$cacheid+:} false; then :
5866  $as_echo_n "(cached) " >&6
5867else
5868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h.  */
5870int i;
5871int
5872main ()
5873{
5874
5875  ;
5876  return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"; then :
5880  eval $cacheid=yes
5881else
5882  eval $cacheid=no
5883fi
5884rm -f core conftest.err conftest.$ac_objext \
5885    conftest$ac_exeext conftest.$ac_ext
5886fi
5887
5888
5889		CFLAGS="$xorg_testset_save_CFLAGS"
5890
5891		eval supported=\$$cacheid
5892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5893$as_echo "$supported" >&6; }
5894		if test "$supported" = "yes" ; then
5895			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5896			found="yes"
5897		fi
5898	fi
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914xorg_testset_save_CFLAGS="$CFLAGS"
5915
5916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"; then :
5928  xorg_cv_cc_flag_unknown_warning_option=yes
5929else
5930  xorg_cv_cc_flag_unknown_warning_option=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5937	CFLAGS="$xorg_testset_save_CFLAGS"
5938fi
5939
5940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943	fi
5944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951/* end confdefs.h.  */
5952int i;
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then :
5955  xorg_cv_cc_flag_unused_command_line_argument=yes
5956else
5957  xorg_cv_cc_flag_unused_command_line_argument=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5964	CFLAGS="$xorg_testset_save_CFLAGS"
5965fi
5966
5967found="no"
5968
5969	if test $found = "no" ; then
5970		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5972		fi
5973
5974		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976		fi
5977
5978		CFLAGS="$CFLAGS -Wold-style-definition"
5979
5980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5981$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5982		cacheid=xorg_cv_cc_flag__Wold_style_definition
5983		if eval \${$cacheid+:} false; then :
5984  $as_echo_n "(cached) " >&6
5985else
5986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987/* end confdefs.h.  */
5988int i;
5989int
5990main ()
5991{
5992
5993  ;
5994  return 0;
5995}
5996_ACEOF
5997if ac_fn_c_try_link "$LINENO"; then :
5998  eval $cacheid=yes
5999else
6000  eval $cacheid=no
6001fi
6002rm -f core conftest.err conftest.$ac_objext \
6003    conftest$ac_exeext conftest.$ac_ext
6004fi
6005
6006
6007		CFLAGS="$xorg_testset_save_CFLAGS"
6008
6009		eval supported=\$$cacheid
6010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6011$as_echo "$supported" >&6; }
6012		if test "$supported" = "yes" ; then
6013			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6014			found="yes"
6015		fi
6016	fi
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032xorg_testset_save_CFLAGS="$CFLAGS"
6033
6034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6039  $as_echo_n "(cached) " >&6
6040else
6041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h.  */
6043int i;
6044_ACEOF
6045if ac_fn_c_try_compile "$LINENO"; then :
6046  xorg_cv_cc_flag_unknown_warning_option=yes
6047else
6048  xorg_cv_cc_flag_unknown_warning_option=no
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051fi
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6055	CFLAGS="$xorg_testset_save_CFLAGS"
6056fi
6057
6058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061	fi
6062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6066  $as_echo_n "(cached) " >&6
6067else
6068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h.  */
6070int i;
6071_ACEOF
6072if ac_fn_c_try_compile "$LINENO"; then :
6073  xorg_cv_cc_flag_unused_command_line_argument=yes
6074else
6075  xorg_cv_cc_flag_unused_command_line_argument=no
6076fi
6077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6082	CFLAGS="$xorg_testset_save_CFLAGS"
6083fi
6084
6085found="no"
6086
6087	if test $found = "no" ; then
6088		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6090		fi
6091
6092		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6094		fi
6095
6096		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6097
6098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6099$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6100		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6101		if eval \${$cacheid+:} false; then :
6102  $as_echo_n "(cached) " >&6
6103else
6104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105/* end confdefs.h.  */
6106int i;
6107int
6108main ()
6109{
6110
6111  ;
6112  return 0;
6113}
6114_ACEOF
6115if ac_fn_c_try_link "$LINENO"; then :
6116  eval $cacheid=yes
6117else
6118  eval $cacheid=no
6119fi
6120rm -f core conftest.err conftest.$ac_objext \
6121    conftest$ac_exeext conftest.$ac_ext
6122fi
6123
6124
6125		CFLAGS="$xorg_testset_save_CFLAGS"
6126
6127		eval supported=\$$cacheid
6128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6129$as_echo "$supported" >&6; }
6130		if test "$supported" = "yes" ; then
6131			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6132			found="yes"
6133		fi
6134	fi
6135
6136
6137
6138
6139
6140# This chunk adds additional warnings that could catch undesired effects.
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154xorg_testset_save_CFLAGS="$CFLAGS"
6155
6156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165int i;
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"; then :
6168  xorg_cv_cc_flag_unknown_warning_option=yes
6169else
6170  xorg_cv_cc_flag_unknown_warning_option=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173fi
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6177	CFLAGS="$xorg_testset_save_CFLAGS"
6178fi
6179
6180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183	fi
6184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192int i;
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195  xorg_cv_cc_flag_unused_command_line_argument=yes
6196else
6197  xorg_cv_cc_flag_unused_command_line_argument=no
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200fi
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6204	CFLAGS="$xorg_testset_save_CFLAGS"
6205fi
6206
6207found="no"
6208
6209	if test $found = "no" ; then
6210		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212		fi
6213
6214		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216		fi
6217
6218		CFLAGS="$CFLAGS -Wunused"
6219
6220		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6221$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6222		cacheid=xorg_cv_cc_flag__Wunused
6223		if eval \${$cacheid+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229int
6230main ()
6231{
6232
6233  ;
6234  return 0;
6235}
6236_ACEOF
6237if ac_fn_c_try_link "$LINENO"; then :
6238  eval $cacheid=yes
6239else
6240  eval $cacheid=no
6241fi
6242rm -f core conftest.err conftest.$ac_objext \
6243    conftest$ac_exeext conftest.$ac_ext
6244fi
6245
6246
6247		CFLAGS="$xorg_testset_save_CFLAGS"
6248
6249		eval supported=\$$cacheid
6250		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6251$as_echo "$supported" >&6; }
6252		if test "$supported" = "yes" ; then
6253			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6254			found="yes"
6255		fi
6256	fi
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272xorg_testset_save_CFLAGS="$CFLAGS"
6273
6274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6275	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283int i;
6284_ACEOF
6285if ac_fn_c_try_compile "$LINENO"; then :
6286  xorg_cv_cc_flag_unknown_warning_option=yes
6287else
6288  xorg_cv_cc_flag_unknown_warning_option=no
6289fi
6290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291fi
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6294	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6295	CFLAGS="$xorg_testset_save_CFLAGS"
6296fi
6297
6298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6299	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6300		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301	fi
6302	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int i;
6311_ACEOF
6312if ac_fn_c_try_compile "$LINENO"; then :
6313  xorg_cv_cc_flag_unused_command_line_argument=yes
6314else
6315  xorg_cv_cc_flag_unused_command_line_argument=no
6316fi
6317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318fi
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322	CFLAGS="$xorg_testset_save_CFLAGS"
6323fi
6324
6325found="no"
6326
6327	if test $found = "no" ; then
6328		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330		fi
6331
6332		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334		fi
6335
6336		CFLAGS="$CFLAGS -Wuninitialized"
6337
6338		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6339$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6340		cacheid=xorg_cv_cc_flag__Wuninitialized
6341		if eval \${$cacheid+:} false; then :
6342  $as_echo_n "(cached) " >&6
6343else
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346int i;
6347int
6348main ()
6349{
6350
6351  ;
6352  return 0;
6353}
6354_ACEOF
6355if ac_fn_c_try_link "$LINENO"; then :
6356  eval $cacheid=yes
6357else
6358  eval $cacheid=no
6359fi
6360rm -f core conftest.err conftest.$ac_objext \
6361    conftest$ac_exeext conftest.$ac_ext
6362fi
6363
6364
6365		CFLAGS="$xorg_testset_save_CFLAGS"
6366
6367		eval supported=\$$cacheid
6368		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6369$as_echo "$supported" >&6; }
6370		if test "$supported" = "yes" ; then
6371			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6372			found="yes"
6373		fi
6374	fi
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390xorg_testset_save_CFLAGS="$CFLAGS"
6391
6392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6393	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6395$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6396if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402_ACEOF
6403if ac_fn_c_try_compile "$LINENO"; then :
6404  xorg_cv_cc_flag_unknown_warning_option=yes
6405else
6406  xorg_cv_cc_flag_unknown_warning_option=no
6407fi
6408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409fi
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6411$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6412	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6413	CFLAGS="$xorg_testset_save_CFLAGS"
6414fi
6415
6416if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6417	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6418		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419	fi
6420	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6422$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6423if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h.  */
6428int i;
6429_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then :
6431  xorg_cv_cc_flag_unused_command_line_argument=yes
6432else
6433  xorg_cv_cc_flag_unused_command_line_argument=no
6434fi
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6438$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6439	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6440	CFLAGS="$xorg_testset_save_CFLAGS"
6441fi
6442
6443found="no"
6444
6445	if test $found = "no" ; then
6446		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448		fi
6449
6450		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6452		fi
6453
6454		CFLAGS="$CFLAGS -Wshadow"
6455
6456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6457$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6458		cacheid=xorg_cv_cc_flag__Wshadow
6459		if eval \${$cacheid+:} false; then :
6460  $as_echo_n "(cached) " >&6
6461else
6462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464int i;
6465int
6466main ()
6467{
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_link "$LINENO"; then :
6474  eval $cacheid=yes
6475else
6476  eval $cacheid=no
6477fi
6478rm -f core conftest.err conftest.$ac_objext \
6479    conftest$ac_exeext conftest.$ac_ext
6480fi
6481
6482
6483		CFLAGS="$xorg_testset_save_CFLAGS"
6484
6485		eval supported=\$$cacheid
6486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6487$as_echo "$supported" >&6; }
6488		if test "$supported" = "yes" ; then
6489			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6490			found="yes"
6491		fi
6492	fi
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508xorg_testset_save_CFLAGS="$CFLAGS"
6509
6510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520_ACEOF
6521if ac_fn_c_try_compile "$LINENO"; then :
6522  xorg_cv_cc_flag_unknown_warning_option=yes
6523else
6524  xorg_cv_cc_flag_unknown_warning_option=no
6525fi
6526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527fi
6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531	CFLAGS="$xorg_testset_save_CFLAGS"
6532fi
6533
6534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537	fi
6538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546int i;
6547_ACEOF
6548if ac_fn_c_try_compile "$LINENO"; then :
6549  xorg_cv_cc_flag_unused_command_line_argument=yes
6550else
6551  xorg_cv_cc_flag_unused_command_line_argument=no
6552fi
6553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6558	CFLAGS="$xorg_testset_save_CFLAGS"
6559fi
6560
6561found="no"
6562
6563	if test $found = "no" ; then
6564		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566		fi
6567
6568		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6570		fi
6571
6572		CFLAGS="$CFLAGS -Wcast-qual"
6573
6574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6575$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6576		cacheid=xorg_cv_cc_flag__Wcast_qual
6577		if eval \${$cacheid+:} false; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582int i;
6583int
6584main ()
6585{
6586
6587  ;
6588  return 0;
6589}
6590_ACEOF
6591if ac_fn_c_try_link "$LINENO"; then :
6592  eval $cacheid=yes
6593else
6594  eval $cacheid=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext \
6597    conftest$ac_exeext conftest.$ac_ext
6598fi
6599
6600
6601		CFLAGS="$xorg_testset_save_CFLAGS"
6602
6603		eval supported=\$$cacheid
6604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6605$as_echo "$supported" >&6; }
6606		if test "$supported" = "yes" ; then
6607			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6608			found="yes"
6609		fi
6610	fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626xorg_testset_save_CFLAGS="$CFLAGS"
6627
6628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6629	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638_ACEOF
6639if ac_fn_c_try_compile "$LINENO"; then :
6640  xorg_cv_cc_flag_unknown_warning_option=yes
6641else
6642  xorg_cv_cc_flag_unknown_warning_option=no
6643fi
6644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645fi
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6648	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6649	CFLAGS="$xorg_testset_save_CFLAGS"
6650fi
6651
6652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6653	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6654		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6655	fi
6656	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665_ACEOF
6666if ac_fn_c_try_compile "$LINENO"; then :
6667  xorg_cv_cc_flag_unused_command_line_argument=yes
6668else
6669  xorg_cv_cc_flag_unused_command_line_argument=no
6670fi
6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672fi
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6675	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6676	CFLAGS="$xorg_testset_save_CFLAGS"
6677fi
6678
6679found="no"
6680
6681	if test $found = "no" ; then
6682		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6683			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684		fi
6685
6686		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6687			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6688		fi
6689
6690		CFLAGS="$CFLAGS -Wmissing-noreturn"
6691
6692		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6693$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6694		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6695		if eval \${$cacheid+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701int
6702main ()
6703{
6704
6705  ;
6706  return 0;
6707}
6708_ACEOF
6709if ac_fn_c_try_link "$LINENO"; then :
6710  eval $cacheid=yes
6711else
6712  eval $cacheid=no
6713fi
6714rm -f core conftest.err conftest.$ac_objext \
6715    conftest$ac_exeext conftest.$ac_ext
6716fi
6717
6718
6719		CFLAGS="$xorg_testset_save_CFLAGS"
6720
6721		eval supported=\$$cacheid
6722		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6723$as_echo "$supported" >&6; }
6724		if test "$supported" = "yes" ; then
6725			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6726			found="yes"
6727		fi
6728	fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744xorg_testset_save_CFLAGS="$CFLAGS"
6745
6746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6747	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758  xorg_cv_cc_flag_unknown_warning_option=yes
6759else
6760  xorg_cv_cc_flag_unknown_warning_option=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6773	fi
6774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6778  $as_echo_n "(cached) " >&6
6779else
6780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h.  */
6782int i;
6783_ACEOF
6784if ac_fn_c_try_compile "$LINENO"; then :
6785  xorg_cv_cc_flag_unused_command_line_argument=yes
6786else
6787  xorg_cv_cc_flag_unused_command_line_argument=no
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790fi
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6794	CFLAGS="$xorg_testset_save_CFLAGS"
6795fi
6796
6797found="no"
6798
6799	if test $found = "no" ; then
6800		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802		fi
6803
6804		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6806		fi
6807
6808		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6809
6810		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6811$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6812		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6813		if eval \${$cacheid+:} false; then :
6814  $as_echo_n "(cached) " >&6
6815else
6816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818int i;
6819int
6820main ()
6821{
6822
6823  ;
6824  return 0;
6825}
6826_ACEOF
6827if ac_fn_c_try_link "$LINENO"; then :
6828  eval $cacheid=yes
6829else
6830  eval $cacheid=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext \
6833    conftest$ac_exeext conftest.$ac_ext
6834fi
6835
6836
6837		CFLAGS="$xorg_testset_save_CFLAGS"
6838
6839		eval supported=\$$cacheid
6840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6841$as_echo "$supported" >&6; }
6842		if test "$supported" = "yes" ; then
6843			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6844			found="yes"
6845		fi
6846	fi
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862xorg_testset_save_CFLAGS="$CFLAGS"
6863
6864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6866	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6869  $as_echo_n "(cached) " >&6
6870else
6871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872/* end confdefs.h.  */
6873int i;
6874_ACEOF
6875if ac_fn_c_try_compile "$LINENO"; then :
6876  xorg_cv_cc_flag_unknown_warning_option=yes
6877else
6878  xorg_cv_cc_flag_unknown_warning_option=no
6879fi
6880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881fi
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6884	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6885	CFLAGS="$xorg_testset_save_CFLAGS"
6886fi
6887
6888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6889	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891	fi
6892	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6896  $as_echo_n "(cached) " >&6
6897else
6898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h.  */
6900int i;
6901_ACEOF
6902if ac_fn_c_try_compile "$LINENO"; then :
6903  xorg_cv_cc_flag_unused_command_line_argument=yes
6904else
6905  xorg_cv_cc_flag_unused_command_line_argument=no
6906fi
6907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908fi
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6911	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6912	CFLAGS="$xorg_testset_save_CFLAGS"
6913fi
6914
6915found="no"
6916
6917	if test $found = "no" ; then
6918		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6919			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920		fi
6921
6922		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6923			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6924		fi
6925
6926		CFLAGS="$CFLAGS -Wredundant-decls"
6927
6928		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6929$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6930		cacheid=xorg_cv_cc_flag__Wredundant_decls
6931		if eval \${$cacheid+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935/* end confdefs.h.  */
6936int i;
6937int
6938main ()
6939{
6940
6941  ;
6942  return 0;
6943}
6944_ACEOF
6945if ac_fn_c_try_link "$LINENO"; then :
6946  eval $cacheid=yes
6947else
6948  eval $cacheid=no
6949fi
6950rm -f core conftest.err conftest.$ac_objext \
6951    conftest$ac_exeext conftest.$ac_ext
6952fi
6953
6954
6955		CFLAGS="$xorg_testset_save_CFLAGS"
6956
6957		eval supported=\$$cacheid
6958		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6959$as_echo "$supported" >&6; }
6960		if test "$supported" = "yes" ; then
6961			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6962			found="yes"
6963		fi
6964	fi
6965
6966
6967
6968# These are currently disabled because they are noisy.  They will be enabled
6969# in the future once the codebase is sufficiently modernized to silence
6970# them.  For now, I don't want them to drown out the other warnings.
6971# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6972# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6973# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6974
6975# Turn some warnings into errors, so we don't accidently get successful builds
6976# when there are problems that should be fixed.
6977
6978if test "x$SELECTIVE_WERROR" = "xyes" ; then
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992xorg_testset_save_CFLAGS="$CFLAGS"
6993
6994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6995	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6997$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6998if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002/* end confdefs.h.  */
7003int i;
7004_ACEOF
7005if ac_fn_c_try_compile "$LINENO"; then :
7006  xorg_cv_cc_flag_unknown_warning_option=yes
7007else
7008  xorg_cv_cc_flag_unknown_warning_option=no
7009fi
7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7011fi
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7013$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7015	CFLAGS="$xorg_testset_save_CFLAGS"
7016fi
7017
7018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7021	fi
7022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7024$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7025if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h.  */
7030int i;
7031_ACEOF
7032if ac_fn_c_try_compile "$LINENO"; then :
7033  xorg_cv_cc_flag_unused_command_line_argument=yes
7034else
7035  xorg_cv_cc_flag_unused_command_line_argument=no
7036fi
7037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7040$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7041	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7042	CFLAGS="$xorg_testset_save_CFLAGS"
7043fi
7044
7045found="no"
7046
7047	if test $found = "no" ; then
7048		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7049			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050		fi
7051
7052		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7053			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7054		fi
7055
7056		CFLAGS="$CFLAGS -Werror=implicit"
7057
7058		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7059$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7060		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7061		if eval \${$cacheid+:} false; then :
7062  $as_echo_n "(cached) " >&6
7063else
7064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h.  */
7066int i;
7067int
7068main ()
7069{
7070
7071  ;
7072  return 0;
7073}
7074_ACEOF
7075if ac_fn_c_try_link "$LINENO"; then :
7076  eval $cacheid=yes
7077else
7078  eval $cacheid=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext \
7081    conftest$ac_exeext conftest.$ac_ext
7082fi
7083
7084
7085		CFLAGS="$xorg_testset_save_CFLAGS"
7086
7087		eval supported=\$$cacheid
7088		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7089$as_echo "$supported" >&6; }
7090		if test "$supported" = "yes" ; then
7091			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7092			found="yes"
7093		fi
7094	fi
7095
7096	if test $found = "no" ; then
7097		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099		fi
7100
7101		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103		fi
7104
7105		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7106
7107		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7108$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7109		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7110		if eval \${$cacheid+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116int
7117main ()
7118{
7119
7120  ;
7121  return 0;
7122}
7123_ACEOF
7124if ac_fn_c_try_link "$LINENO"; then :
7125  eval $cacheid=yes
7126else
7127  eval $cacheid=no
7128fi
7129rm -f core conftest.err conftest.$ac_objext \
7130    conftest$ac_exeext conftest.$ac_ext
7131fi
7132
7133
7134		CFLAGS="$xorg_testset_save_CFLAGS"
7135
7136		eval supported=\$$cacheid
7137		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7138$as_echo "$supported" >&6; }
7139		if test "$supported" = "yes" ; then
7140			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7141			found="yes"
7142		fi
7143	fi
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159xorg_testset_save_CFLAGS="$CFLAGS"
7160
7161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171_ACEOF
7172if ac_fn_c_try_compile "$LINENO"; then :
7173  xorg_cv_cc_flag_unknown_warning_option=yes
7174else
7175  xorg_cv_cc_flag_unknown_warning_option=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7182	CFLAGS="$xorg_testset_save_CFLAGS"
7183fi
7184
7185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188	fi
7189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197int i;
7198_ACEOF
7199if ac_fn_c_try_compile "$LINENO"; then :
7200  xorg_cv_cc_flag_unused_command_line_argument=yes
7201else
7202  xorg_cv_cc_flag_unused_command_line_argument=no
7203fi
7204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205fi
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7208	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7209	CFLAGS="$xorg_testset_save_CFLAGS"
7210fi
7211
7212found="no"
7213
7214	if test $found = "no" ; then
7215		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217		fi
7218
7219		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7220			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7221		fi
7222
7223		CFLAGS="$CFLAGS -Werror=nonnull"
7224
7225		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7226$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7227		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7228		if eval \${$cacheid+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233int i;
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  eval $cacheid=yes
7244else
7245  eval $cacheid=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249fi
7250
7251
7252		CFLAGS="$xorg_testset_save_CFLAGS"
7253
7254		eval supported=\$$cacheid
7255		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256$as_echo "$supported" >&6; }
7257		if test "$supported" = "yes" ; then
7258			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7259			found="yes"
7260		fi
7261	fi
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277xorg_testset_save_CFLAGS="$CFLAGS"
7278
7279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7280	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289_ACEOF
7290if ac_fn_c_try_compile "$LINENO"; then :
7291  xorg_cv_cc_flag_unknown_warning_option=yes
7292else
7293  xorg_cv_cc_flag_unknown_warning_option=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296fi
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7299	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7300	CFLAGS="$xorg_testset_save_CFLAGS"
7301fi
7302
7303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7304	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7305		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306	fi
7307	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315int i;
7316_ACEOF
7317if ac_fn_c_try_compile "$LINENO"; then :
7318  xorg_cv_cc_flag_unused_command_line_argument=yes
7319else
7320  xorg_cv_cc_flag_unused_command_line_argument=no
7321fi
7322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323fi
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7326	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7327	CFLAGS="$xorg_testset_save_CFLAGS"
7328fi
7329
7330found="no"
7331
7332	if test $found = "no" ; then
7333		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7334			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335		fi
7336
7337		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7338			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339		fi
7340
7341		CFLAGS="$CFLAGS -Werror=init-self"
7342
7343		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7344$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7345		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7346		if eval \${$cacheid+:} false; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h.  */
7351int i;
7352int
7353main ()
7354{
7355
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"; then :
7361  eval $cacheid=yes
7362else
7363  eval $cacheid=no
7364fi
7365rm -f core conftest.err conftest.$ac_objext \
7366    conftest$ac_exeext conftest.$ac_ext
7367fi
7368
7369
7370		CFLAGS="$xorg_testset_save_CFLAGS"
7371
7372		eval supported=\$$cacheid
7373		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7374$as_echo "$supported" >&6; }
7375		if test "$supported" = "yes" ; then
7376			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7377			found="yes"
7378		fi
7379	fi
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395xorg_testset_save_CFLAGS="$CFLAGS"
7396
7397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7398	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7400$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7401if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"; then :
7409  xorg_cv_cc_flag_unknown_warning_option=yes
7410else
7411  xorg_cv_cc_flag_unknown_warning_option=no
7412fi
7413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414fi
7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7416$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7418	CFLAGS="$xorg_testset_save_CFLAGS"
7419fi
7420
7421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424	fi
7425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7427$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7428if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433int i;
7434_ACEOF
7435if ac_fn_c_try_compile "$LINENO"; then :
7436  xorg_cv_cc_flag_unused_command_line_argument=yes
7437else
7438  xorg_cv_cc_flag_unused_command_line_argument=no
7439fi
7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441fi
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7443$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7445	CFLAGS="$xorg_testset_save_CFLAGS"
7446fi
7447
7448found="no"
7449
7450	if test $found = "no" ; then
7451		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453		fi
7454
7455		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7457		fi
7458
7459		CFLAGS="$CFLAGS -Werror=main"
7460
7461		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7462$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7463		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7464		if eval \${$cacheid+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h.  */
7469int i;
7470int
7471main ()
7472{
7473
7474  ;
7475  return 0;
7476}
7477_ACEOF
7478if ac_fn_c_try_link "$LINENO"; then :
7479  eval $cacheid=yes
7480else
7481  eval $cacheid=no
7482fi
7483rm -f core conftest.err conftest.$ac_objext \
7484    conftest$ac_exeext conftest.$ac_ext
7485fi
7486
7487
7488		CFLAGS="$xorg_testset_save_CFLAGS"
7489
7490		eval supported=\$$cacheid
7491		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7492$as_echo "$supported" >&6; }
7493		if test "$supported" = "yes" ; then
7494			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7495			found="yes"
7496		fi
7497	fi
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513xorg_testset_save_CFLAGS="$CFLAGS"
7514
7515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7516	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7518$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7519if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525_ACEOF
7526if ac_fn_c_try_compile "$LINENO"; then :
7527  xorg_cv_cc_flag_unknown_warning_option=yes
7528else
7529  xorg_cv_cc_flag_unknown_warning_option=no
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532fi
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7534$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7535	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7536	CFLAGS="$xorg_testset_save_CFLAGS"
7537fi
7538
7539if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7540	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7541		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542	fi
7543	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7545$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7546if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551int i;
7552_ACEOF
7553if ac_fn_c_try_compile "$LINENO"; then :
7554  xorg_cv_cc_flag_unused_command_line_argument=yes
7555else
7556  xorg_cv_cc_flag_unused_command_line_argument=no
7557fi
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559fi
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7561$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7563	CFLAGS="$xorg_testset_save_CFLAGS"
7564fi
7565
7566found="no"
7567
7568	if test $found = "no" ; then
7569		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571		fi
7572
7573		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7575		fi
7576
7577		CFLAGS="$CFLAGS -Werror=missing-braces"
7578
7579		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7580$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7581		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7582		if eval \${$cacheid+:} false; then :
7583  $as_echo_n "(cached) " >&6
7584else
7585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586/* end confdefs.h.  */
7587int i;
7588int
7589main ()
7590{
7591
7592  ;
7593  return 0;
7594}
7595_ACEOF
7596if ac_fn_c_try_link "$LINENO"; then :
7597  eval $cacheid=yes
7598else
7599  eval $cacheid=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext \
7602    conftest$ac_exeext conftest.$ac_ext
7603fi
7604
7605
7606		CFLAGS="$xorg_testset_save_CFLAGS"
7607
7608		eval supported=\$$cacheid
7609		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7610$as_echo "$supported" >&6; }
7611		if test "$supported" = "yes" ; then
7612			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7613			found="yes"
7614		fi
7615	fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631xorg_testset_save_CFLAGS="$CFLAGS"
7632
7633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7634	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7636$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7637if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643_ACEOF
7644if ac_fn_c_try_compile "$LINENO"; then :
7645  xorg_cv_cc_flag_unknown_warning_option=yes
7646else
7647  xorg_cv_cc_flag_unknown_warning_option=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650fi
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7652$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7653	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7654	CFLAGS="$xorg_testset_save_CFLAGS"
7655fi
7656
7657if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7658	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7659		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7660	fi
7661	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7663$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7664if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669int i;
7670_ACEOF
7671if ac_fn_c_try_compile "$LINENO"; then :
7672  xorg_cv_cc_flag_unused_command_line_argument=yes
7673else
7674  xorg_cv_cc_flag_unused_command_line_argument=no
7675fi
7676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677fi
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7679$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7680	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7681	CFLAGS="$xorg_testset_save_CFLAGS"
7682fi
7683
7684found="no"
7685
7686	if test $found = "no" ; then
7687		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7688			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689		fi
7690
7691		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7692			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7693		fi
7694
7695		CFLAGS="$CFLAGS -Werror=sequence-point"
7696
7697		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7698$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7699		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7700		if eval \${$cacheid+:} false; then :
7701  $as_echo_n "(cached) " >&6
7702else
7703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704/* end confdefs.h.  */
7705int i;
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_link "$LINENO"; then :
7715  eval $cacheid=yes
7716else
7717  eval $cacheid=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext \
7720    conftest$ac_exeext conftest.$ac_ext
7721fi
7722
7723
7724		CFLAGS="$xorg_testset_save_CFLAGS"
7725
7726		eval supported=\$$cacheid
7727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7728$as_echo "$supported" >&6; }
7729		if test "$supported" = "yes" ; then
7730			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7731			found="yes"
7732		fi
7733	fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749xorg_testset_save_CFLAGS="$CFLAGS"
7750
7751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7754$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7755if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7756  $as_echo_n "(cached) " >&6
7757else
7758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h.  */
7760int i;
7761_ACEOF
7762if ac_fn_c_try_compile "$LINENO"; then :
7763  xorg_cv_cc_flag_unknown_warning_option=yes
7764else
7765  xorg_cv_cc_flag_unknown_warning_option=no
7766fi
7767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768fi
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7770$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7772	CFLAGS="$xorg_testset_save_CFLAGS"
7773fi
7774
7775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7778	fi
7779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7780	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7781$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7782if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h.  */
7787int i;
7788_ACEOF
7789if ac_fn_c_try_compile "$LINENO"; then :
7790  xorg_cv_cc_flag_unused_command_line_argument=yes
7791else
7792  xorg_cv_cc_flag_unused_command_line_argument=no
7793fi
7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795fi
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7797$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7798	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7799	CFLAGS="$xorg_testset_save_CFLAGS"
7800fi
7801
7802found="no"
7803
7804	if test $found = "no" ; then
7805		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7806			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807		fi
7808
7809		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7811		fi
7812
7813		CFLAGS="$CFLAGS -Werror=return-type"
7814
7815		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7816$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7817		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7818		if eval \${$cacheid+:} false; then :
7819  $as_echo_n "(cached) " >&6
7820else
7821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h.  */
7823int i;
7824int
7825main ()
7826{
7827
7828  ;
7829  return 0;
7830}
7831_ACEOF
7832if ac_fn_c_try_link "$LINENO"; then :
7833  eval $cacheid=yes
7834else
7835  eval $cacheid=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext \
7838    conftest$ac_exeext conftest.$ac_ext
7839fi
7840
7841
7842		CFLAGS="$xorg_testset_save_CFLAGS"
7843
7844		eval supported=\$$cacheid
7845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7846$as_echo "$supported" >&6; }
7847		if test "$supported" = "yes" ; then
7848			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7849			found="yes"
7850		fi
7851	fi
7852
7853	if test $found = "no" ; then
7854		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856		fi
7857
7858		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7860		fi
7861
7862		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7863
7864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7865$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7866		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7867		if eval \${$cacheid+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872int i;
7873int
7874main ()
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882  eval $cacheid=yes
7883else
7884  eval $cacheid=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887    conftest$ac_exeext conftest.$ac_ext
7888fi
7889
7890
7891		CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893		eval supported=\$$cacheid
7894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895$as_echo "$supported" >&6; }
7896		if test "$supported" = "yes" ; then
7897			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7898			found="yes"
7899		fi
7900	fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928_ACEOF
7929if ac_fn_c_try_compile "$LINENO"; then :
7930  xorg_cv_cc_flag_unknown_warning_option=yes
7931else
7932  xorg_cv_cc_flag_unknown_warning_option=no
7933fi
7934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7939	CFLAGS="$xorg_testset_save_CFLAGS"
7940fi
7941
7942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945	fi
7946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954int i;
7955_ACEOF
7956if ac_fn_c_try_compile "$LINENO"; then :
7957  xorg_cv_cc_flag_unused_command_line_argument=yes
7958else
7959  xorg_cv_cc_flag_unused_command_line_argument=no
7960fi
7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962fi
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7966	CFLAGS="$xorg_testset_save_CFLAGS"
7967fi
7968
7969found="no"
7970
7971	if test $found = "no" ; then
7972		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974		fi
7975
7976		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7978		fi
7979
7980		CFLAGS="$CFLAGS -Werror=trigraphs"
7981
7982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7983$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7984		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7985		if eval \${$cacheid+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h.  */
7990int i;
7991int
7992main ()
7993{
7994
7995  ;
7996  return 0;
7997}
7998_ACEOF
7999if ac_fn_c_try_link "$LINENO"; then :
8000  eval $cacheid=yes
8001else
8002  eval $cacheid=no
8003fi
8004rm -f core conftest.err conftest.$ac_objext \
8005    conftest$ac_exeext conftest.$ac_ext
8006fi
8007
8008
8009		CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011		eval supported=\$$cacheid
8012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013$as_echo "$supported" >&6; }
8014		if test "$supported" = "yes" ; then
8015			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8016			found="yes"
8017		fi
8018	fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034xorg_testset_save_CFLAGS="$CFLAGS"
8035
8036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046_ACEOF
8047if ac_fn_c_try_compile "$LINENO"; then :
8048  xorg_cv_cc_flag_unknown_warning_option=yes
8049else
8050  xorg_cv_cc_flag_unknown_warning_option=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053fi
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8057	CFLAGS="$xorg_testset_save_CFLAGS"
8058fi
8059
8060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063	fi
8064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072int i;
8073_ACEOF
8074if ac_fn_c_try_compile "$LINENO"; then :
8075  xorg_cv_cc_flag_unused_command_line_argument=yes
8076else
8077  xorg_cv_cc_flag_unused_command_line_argument=no
8078fi
8079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084	CFLAGS="$xorg_testset_save_CFLAGS"
8085fi
8086
8087found="no"
8088
8089	if test $found = "no" ; then
8090		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092		fi
8093
8094		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096		fi
8097
8098		CFLAGS="$CFLAGS -Werror=array-bounds"
8099
8100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8101$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8102		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8103		if eval \${$cacheid+:} false; then :
8104  $as_echo_n "(cached) " >&6
8105else
8106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h.  */
8108int i;
8109int
8110main ()
8111{
8112
8113  ;
8114  return 0;
8115}
8116_ACEOF
8117if ac_fn_c_try_link "$LINENO"; then :
8118  eval $cacheid=yes
8119else
8120  eval $cacheid=no
8121fi
8122rm -f core conftest.err conftest.$ac_objext \
8123    conftest$ac_exeext conftest.$ac_ext
8124fi
8125
8126
8127		CFLAGS="$xorg_testset_save_CFLAGS"
8128
8129		eval supported=\$$cacheid
8130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8131$as_echo "$supported" >&6; }
8132		if test "$supported" = "yes" ; then
8133			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8134			found="yes"
8135		fi
8136	fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152xorg_testset_save_CFLAGS="$CFLAGS"
8153
8154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164_ACEOF
8165if ac_fn_c_try_compile "$LINENO"; then :
8166  xorg_cv_cc_flag_unknown_warning_option=yes
8167else
8168  xorg_cv_cc_flag_unknown_warning_option=no
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171fi
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8175	CFLAGS="$xorg_testset_save_CFLAGS"
8176fi
8177
8178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8181	fi
8182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8186  $as_echo_n "(cached) " >&6
8187else
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190int i;
8191_ACEOF
8192if ac_fn_c_try_compile "$LINENO"; then :
8193  xorg_cv_cc_flag_unused_command_line_argument=yes
8194else
8195  xorg_cv_cc_flag_unused_command_line_argument=no
8196fi
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8202	CFLAGS="$xorg_testset_save_CFLAGS"
8203fi
8204
8205found="no"
8206
8207	if test $found = "no" ; then
8208		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210		fi
8211
8212		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8214		fi
8215
8216		CFLAGS="$CFLAGS -Werror=write-strings"
8217
8218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8219$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8220		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8221		if eval \${$cacheid+:} false; then :
8222  $as_echo_n "(cached) " >&6
8223else
8224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h.  */
8226int i;
8227int
8228main ()
8229{
8230
8231  ;
8232  return 0;
8233}
8234_ACEOF
8235if ac_fn_c_try_link "$LINENO"; then :
8236  eval $cacheid=yes
8237else
8238  eval $cacheid=no
8239fi
8240rm -f core conftest.err conftest.$ac_objext \
8241    conftest$ac_exeext conftest.$ac_ext
8242fi
8243
8244
8245		CFLAGS="$xorg_testset_save_CFLAGS"
8246
8247		eval supported=\$$cacheid
8248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8249$as_echo "$supported" >&6; }
8250		if test "$supported" = "yes" ; then
8251			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8252			found="yes"
8253		fi
8254	fi
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270xorg_testset_save_CFLAGS="$CFLAGS"
8271
8272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8273	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8275$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8276if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282_ACEOF
8283if ac_fn_c_try_compile "$LINENO"; then :
8284  xorg_cv_cc_flag_unknown_warning_option=yes
8285else
8286  xorg_cv_cc_flag_unknown_warning_option=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8289fi
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8291$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8292	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8293	CFLAGS="$xorg_testset_save_CFLAGS"
8294fi
8295
8296if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8297	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8298		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8299	fi
8300	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8301	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8302$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8303if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308int i;
8309_ACEOF
8310if ac_fn_c_try_compile "$LINENO"; then :
8311  xorg_cv_cc_flag_unused_command_line_argument=yes
8312else
8313  xorg_cv_cc_flag_unused_command_line_argument=no
8314fi
8315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316fi
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8318$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8319	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8320	CFLAGS="$xorg_testset_save_CFLAGS"
8321fi
8322
8323found="no"
8324
8325	if test $found = "no" ; then
8326		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8327			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328		fi
8329
8330		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8331			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8332		fi
8333
8334		CFLAGS="$CFLAGS -Werror=address"
8335
8336		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8337$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8338		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8339		if eval \${$cacheid+:} false; then :
8340  $as_echo_n "(cached) " >&6
8341else
8342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343/* end confdefs.h.  */
8344int i;
8345int
8346main ()
8347{
8348
8349  ;
8350  return 0;
8351}
8352_ACEOF
8353if ac_fn_c_try_link "$LINENO"; then :
8354  eval $cacheid=yes
8355else
8356  eval $cacheid=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext \
8359    conftest$ac_exeext conftest.$ac_ext
8360fi
8361
8362
8363		CFLAGS="$xorg_testset_save_CFLAGS"
8364
8365		eval supported=\$$cacheid
8366		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8367$as_echo "$supported" >&6; }
8368		if test "$supported" = "yes" ; then
8369			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8370			found="yes"
8371		fi
8372	fi
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388xorg_testset_save_CFLAGS="$CFLAGS"
8389
8390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8393$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8394if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8395  $as_echo_n "(cached) " >&6
8396else
8397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399int i;
8400_ACEOF
8401if ac_fn_c_try_compile "$LINENO"; then :
8402  xorg_cv_cc_flag_unknown_warning_option=yes
8403else
8404  xorg_cv_cc_flag_unknown_warning_option=no
8405fi
8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407fi
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8409$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8410	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8411	CFLAGS="$xorg_testset_save_CFLAGS"
8412fi
8413
8414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8415	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8416		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417	fi
8418	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8420$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8421if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h.  */
8426int i;
8427_ACEOF
8428if ac_fn_c_try_compile "$LINENO"; then :
8429  xorg_cv_cc_flag_unused_command_line_argument=yes
8430else
8431  xorg_cv_cc_flag_unused_command_line_argument=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8436$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8437	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8438	CFLAGS="$xorg_testset_save_CFLAGS"
8439fi
8440
8441found="no"
8442
8443	if test $found = "no" ; then
8444		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8445			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446		fi
8447
8448		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8449			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8450		fi
8451
8452		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8453
8454		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8455$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8456		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8457		if eval \${$cacheid+:} false; then :
8458  $as_echo_n "(cached) " >&6
8459else
8460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462int i;
8463int
8464main ()
8465{
8466
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_link "$LINENO"; then :
8472  eval $cacheid=yes
8473else
8474  eval $cacheid=no
8475fi
8476rm -f core conftest.err conftest.$ac_objext \
8477    conftest$ac_exeext conftest.$ac_ext
8478fi
8479
8480
8481		CFLAGS="$xorg_testset_save_CFLAGS"
8482
8483		eval supported=\$$cacheid
8484		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8485$as_echo "$supported" >&6; }
8486		if test "$supported" = "yes" ; then
8487			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8488			found="yes"
8489		fi
8490	fi
8491
8492	if test $found = "no" ; then
8493		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8495		fi
8496
8497		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499		fi
8500
8501		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8502
8503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8504$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8505		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8506		if eval \${$cacheid+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512int
8513main ()
8514{
8515
8516  ;
8517  return 0;
8518}
8519_ACEOF
8520if ac_fn_c_try_link "$LINENO"; then :
8521  eval $cacheid=yes
8522else
8523  eval $cacheid=no
8524fi
8525rm -f core conftest.err conftest.$ac_objext \
8526    conftest$ac_exeext conftest.$ac_ext
8527fi
8528
8529
8530		CFLAGS="$xorg_testset_save_CFLAGS"
8531
8532		eval supported=\$$cacheid
8533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8534$as_echo "$supported" >&6; }
8535		if test "$supported" = "yes" ; then
8536			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8537			found="yes"
8538		fi
8539	fi
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555xorg_testset_save_CFLAGS="$CFLAGS"
8556
8557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565/* end confdefs.h.  */
8566int i;
8567_ACEOF
8568if ac_fn_c_try_compile "$LINENO"; then :
8569  xorg_cv_cc_flag_unknown_warning_option=yes
8570else
8571  xorg_cv_cc_flag_unknown_warning_option=no
8572fi
8573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574fi
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8578	CFLAGS="$xorg_testset_save_CFLAGS"
8579fi
8580
8581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8584	fi
8585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592/* end confdefs.h.  */
8593int i;
8594_ACEOF
8595if ac_fn_c_try_compile "$LINENO"; then :
8596  xorg_cv_cc_flag_unused_command_line_argument=yes
8597else
8598  xorg_cv_cc_flag_unused_command_line_argument=no
8599fi
8600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601fi
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8605	CFLAGS="$xorg_testset_save_CFLAGS"
8606fi
8607
8608found="no"
8609
8610	if test $found = "no" ; then
8611		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8613		fi
8614
8615		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617		fi
8618
8619		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8620
8621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8622$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8623		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8624		if eval \${$cacheid+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h.  */
8629int i;
8630int
8631main ()
8632{
8633
8634  ;
8635  return 0;
8636}
8637_ACEOF
8638if ac_fn_c_try_link "$LINENO"; then :
8639  eval $cacheid=yes
8640else
8641  eval $cacheid=no
8642fi
8643rm -f core conftest.err conftest.$ac_objext \
8644    conftest$ac_exeext conftest.$ac_ext
8645fi
8646
8647
8648		CFLAGS="$xorg_testset_save_CFLAGS"
8649
8650		eval supported=\$$cacheid
8651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8652$as_echo "$supported" >&6; }
8653		if test "$supported" = "yes" ; then
8654			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8655			found="yes"
8656		fi
8657	fi
8658
8659 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8660else
8661{ $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
8662$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;}
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676xorg_testset_save_CFLAGS="$CFLAGS"
8677
8678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687int i;
8688_ACEOF
8689if ac_fn_c_try_compile "$LINENO"; then :
8690  xorg_cv_cc_flag_unknown_warning_option=yes
8691else
8692  xorg_cv_cc_flag_unknown_warning_option=no
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695fi
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8699	CFLAGS="$xorg_testset_save_CFLAGS"
8700fi
8701
8702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705	fi
8706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714int i;
8715_ACEOF
8716if ac_fn_c_try_compile "$LINENO"; then :
8717  xorg_cv_cc_flag_unused_command_line_argument=yes
8718else
8719  xorg_cv_cc_flag_unused_command_line_argument=no
8720fi
8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722fi
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8726	CFLAGS="$xorg_testset_save_CFLAGS"
8727fi
8728
8729found="no"
8730
8731	if test $found = "no" ; then
8732		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734		fi
8735
8736		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8738		fi
8739
8740		CFLAGS="$CFLAGS -Wimplicit"
8741
8742		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8743$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8744		cacheid=xorg_cv_cc_flag__Wimplicit
8745		if eval \${$cacheid+:} false; then :
8746  $as_echo_n "(cached) " >&6
8747else
8748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h.  */
8750int i;
8751int
8752main ()
8753{
8754
8755  ;
8756  return 0;
8757}
8758_ACEOF
8759if ac_fn_c_try_link "$LINENO"; then :
8760  eval $cacheid=yes
8761else
8762  eval $cacheid=no
8763fi
8764rm -f core conftest.err conftest.$ac_objext \
8765    conftest$ac_exeext conftest.$ac_ext
8766fi
8767
8768
8769		CFLAGS="$xorg_testset_save_CFLAGS"
8770
8771		eval supported=\$$cacheid
8772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8773$as_echo "$supported" >&6; }
8774		if test "$supported" = "yes" ; then
8775			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8776			found="yes"
8777		fi
8778	fi
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794xorg_testset_save_CFLAGS="$CFLAGS"
8795
8796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h.  */
8805int i;
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"; then :
8808  xorg_cv_cc_flag_unknown_warning_option=yes
8809else
8810  xorg_cv_cc_flag_unknown_warning_option=no
8811fi
8812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8817	CFLAGS="$xorg_testset_save_CFLAGS"
8818fi
8819
8820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823	fi
8824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h.  */
8832int i;
8833_ACEOF
8834if ac_fn_c_try_compile "$LINENO"; then :
8835  xorg_cv_cc_flag_unused_command_line_argument=yes
8836else
8837  xorg_cv_cc_flag_unused_command_line_argument=no
8838fi
8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840fi
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844	CFLAGS="$xorg_testset_save_CFLAGS"
8845fi
8846
8847found="no"
8848
8849	if test $found = "no" ; then
8850		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852		fi
8853
8854		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856		fi
8857
8858		CFLAGS="$CFLAGS -Wnonnull"
8859
8860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8861$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8862		cacheid=xorg_cv_cc_flag__Wnonnull
8863		if eval \${$cacheid+:} false; then :
8864  $as_echo_n "(cached) " >&6
8865else
8866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867/* end confdefs.h.  */
8868int i;
8869int
8870main ()
8871{
8872
8873  ;
8874  return 0;
8875}
8876_ACEOF
8877if ac_fn_c_try_link "$LINENO"; then :
8878  eval $cacheid=yes
8879else
8880  eval $cacheid=no
8881fi
8882rm -f core conftest.err conftest.$ac_objext \
8883    conftest$ac_exeext conftest.$ac_ext
8884fi
8885
8886
8887		CFLAGS="$xorg_testset_save_CFLAGS"
8888
8889		eval supported=\$$cacheid
8890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8891$as_echo "$supported" >&6; }
8892		if test "$supported" = "yes" ; then
8893			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8894			found="yes"
8895		fi
8896	fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912xorg_testset_save_CFLAGS="$CFLAGS"
8913
8914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923int i;
8924_ACEOF
8925if ac_fn_c_try_compile "$LINENO"; then :
8926  xorg_cv_cc_flag_unknown_warning_option=yes
8927else
8928  xorg_cv_cc_flag_unknown_warning_option=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931fi
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8935	CFLAGS="$xorg_testset_save_CFLAGS"
8936fi
8937
8938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941	fi
8942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950int i;
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"; then :
8953  xorg_cv_cc_flag_unused_command_line_argument=yes
8954else
8955  xorg_cv_cc_flag_unused_command_line_argument=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8962	CFLAGS="$xorg_testset_save_CFLAGS"
8963fi
8964
8965found="no"
8966
8967	if test $found = "no" ; then
8968		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970		fi
8971
8972		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8974		fi
8975
8976		CFLAGS="$CFLAGS -Winit-self"
8977
8978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8979$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8980		cacheid=xorg_cv_cc_flag__Winit_self
8981		if eval \${$cacheid+:} false; then :
8982  $as_echo_n "(cached) " >&6
8983else
8984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985/* end confdefs.h.  */
8986int i;
8987int
8988main ()
8989{
8990
8991  ;
8992  return 0;
8993}
8994_ACEOF
8995if ac_fn_c_try_link "$LINENO"; then :
8996  eval $cacheid=yes
8997else
8998  eval $cacheid=no
8999fi
9000rm -f core conftest.err conftest.$ac_objext \
9001    conftest$ac_exeext conftest.$ac_ext
9002fi
9003
9004
9005		CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007		eval supported=\$$cacheid
9008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009$as_echo "$supported" >&6; }
9010		if test "$supported" = "yes" ; then
9011			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9012			found="yes"
9013		fi
9014	fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042_ACEOF
9043if ac_fn_c_try_compile "$LINENO"; then :
9044  xorg_cv_cc_flag_unknown_warning_option=yes
9045else
9046  xorg_cv_cc_flag_unknown_warning_option=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9052	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9053	CFLAGS="$xorg_testset_save_CFLAGS"
9054fi
9055
9056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9057	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9058		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059	fi
9060	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068int i;
9069_ACEOF
9070if ac_fn_c_try_compile "$LINENO"; then :
9071  xorg_cv_cc_flag_unused_command_line_argument=yes
9072else
9073  xorg_cv_cc_flag_unused_command_line_argument=no
9074fi
9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076fi
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9079	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9080	CFLAGS="$xorg_testset_save_CFLAGS"
9081fi
9082
9083found="no"
9084
9085	if test $found = "no" ; then
9086		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9087			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088		fi
9089
9090		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9091			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9092		fi
9093
9094		CFLAGS="$CFLAGS -Wmain"
9095
9096		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9097$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9098		cacheid=xorg_cv_cc_flag__Wmain
9099		if eval \${$cacheid+:} false; then :
9100  $as_echo_n "(cached) " >&6
9101else
9102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103/* end confdefs.h.  */
9104int i;
9105int
9106main ()
9107{
9108
9109  ;
9110  return 0;
9111}
9112_ACEOF
9113if ac_fn_c_try_link "$LINENO"; then :
9114  eval $cacheid=yes
9115else
9116  eval $cacheid=no
9117fi
9118rm -f core conftest.err conftest.$ac_objext \
9119    conftest$ac_exeext conftest.$ac_ext
9120fi
9121
9122
9123		CFLAGS="$xorg_testset_save_CFLAGS"
9124
9125		eval supported=\$$cacheid
9126		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9127$as_echo "$supported" >&6; }
9128		if test "$supported" = "yes" ; then
9129			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9130			found="yes"
9131		fi
9132	fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148xorg_testset_save_CFLAGS="$CFLAGS"
9149
9150if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9151	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9153$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9154if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160_ACEOF
9161if ac_fn_c_try_compile "$LINENO"; then :
9162  xorg_cv_cc_flag_unknown_warning_option=yes
9163else
9164  xorg_cv_cc_flag_unknown_warning_option=no
9165fi
9166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167fi
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9169$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9170	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9171	CFLAGS="$xorg_testset_save_CFLAGS"
9172fi
9173
9174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9175	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9176		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177	fi
9178	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9180$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9181if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186int i;
9187_ACEOF
9188if ac_fn_c_try_compile "$LINENO"; then :
9189  xorg_cv_cc_flag_unused_command_line_argument=yes
9190else
9191  xorg_cv_cc_flag_unused_command_line_argument=no
9192fi
9193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194fi
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9196$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9197	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9198	CFLAGS="$xorg_testset_save_CFLAGS"
9199fi
9200
9201found="no"
9202
9203	if test $found = "no" ; then
9204		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9205			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206		fi
9207
9208		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9209			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210		fi
9211
9212		CFLAGS="$CFLAGS -Wmissing-braces"
9213
9214		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9215$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9216		cacheid=xorg_cv_cc_flag__Wmissing_braces
9217		if eval \${$cacheid+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222int i;
9223int
9224main ()
9225{
9226
9227  ;
9228  return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_link "$LINENO"; then :
9232  eval $cacheid=yes
9233else
9234  eval $cacheid=no
9235fi
9236rm -f core conftest.err conftest.$ac_objext \
9237    conftest$ac_exeext conftest.$ac_ext
9238fi
9239
9240
9241		CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243		eval supported=\$$cacheid
9244		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245$as_echo "$supported" >&6; }
9246		if test "$supported" = "yes" ; then
9247			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9248			found="yes"
9249		fi
9250	fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278_ACEOF
9279if ac_fn_c_try_compile "$LINENO"; then :
9280  xorg_cv_cc_flag_unknown_warning_option=yes
9281else
9282  xorg_cv_cc_flag_unknown_warning_option=no
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285fi
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9287$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9288	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9289	CFLAGS="$xorg_testset_save_CFLAGS"
9290fi
9291
9292if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9293	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295	fi
9296	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9298$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9299if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305_ACEOF
9306if ac_fn_c_try_compile "$LINENO"; then :
9307  xorg_cv_cc_flag_unused_command_line_argument=yes
9308else
9309  xorg_cv_cc_flag_unused_command_line_argument=no
9310fi
9311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312fi
9313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9314$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9316	CFLAGS="$xorg_testset_save_CFLAGS"
9317fi
9318
9319found="no"
9320
9321	if test $found = "no" ; then
9322		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324		fi
9325
9326		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328		fi
9329
9330		CFLAGS="$CFLAGS -Wsequence-point"
9331
9332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9333$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9334		cacheid=xorg_cv_cc_flag__Wsequence_point
9335		if eval \${$cacheid+:} false; then :
9336  $as_echo_n "(cached) " >&6
9337else
9338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h.  */
9340int i;
9341int
9342main ()
9343{
9344
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349if ac_fn_c_try_link "$LINENO"; then :
9350  eval $cacheid=yes
9351else
9352  eval $cacheid=no
9353fi
9354rm -f core conftest.err conftest.$ac_objext \
9355    conftest$ac_exeext conftest.$ac_ext
9356fi
9357
9358
9359		CFLAGS="$xorg_testset_save_CFLAGS"
9360
9361		eval supported=\$$cacheid
9362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9363$as_echo "$supported" >&6; }
9364		if test "$supported" = "yes" ; then
9365			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9366			found="yes"
9367		fi
9368	fi
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384xorg_testset_save_CFLAGS="$CFLAGS"
9385
9386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9387	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9388	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9389$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9390if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396_ACEOF
9397if ac_fn_c_try_compile "$LINENO"; then :
9398  xorg_cv_cc_flag_unknown_warning_option=yes
9399else
9400  xorg_cv_cc_flag_unknown_warning_option=no
9401fi
9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403fi
9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9405$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9406	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9407	CFLAGS="$xorg_testset_save_CFLAGS"
9408fi
9409
9410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9411	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9412		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413	fi
9414	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9416$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9417if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423_ACEOF
9424if ac_fn_c_try_compile "$LINENO"; then :
9425  xorg_cv_cc_flag_unused_command_line_argument=yes
9426else
9427  xorg_cv_cc_flag_unused_command_line_argument=no
9428fi
9429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430fi
9431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9432$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9433	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9434	CFLAGS="$xorg_testset_save_CFLAGS"
9435fi
9436
9437found="no"
9438
9439	if test $found = "no" ; then
9440		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442		fi
9443
9444		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9446		fi
9447
9448		CFLAGS="$CFLAGS -Wreturn-type"
9449
9450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9451$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9452		cacheid=xorg_cv_cc_flag__Wreturn_type
9453		if eval \${$cacheid+:} false; then :
9454  $as_echo_n "(cached) " >&6
9455else
9456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457/* end confdefs.h.  */
9458int i;
9459int
9460main ()
9461{
9462
9463  ;
9464  return 0;
9465}
9466_ACEOF
9467if ac_fn_c_try_link "$LINENO"; then :
9468  eval $cacheid=yes
9469else
9470  eval $cacheid=no
9471fi
9472rm -f core conftest.err conftest.$ac_objext \
9473    conftest$ac_exeext conftest.$ac_ext
9474fi
9475
9476
9477		CFLAGS="$xorg_testset_save_CFLAGS"
9478
9479		eval supported=\$$cacheid
9480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9481$as_echo "$supported" >&6; }
9482		if test "$supported" = "yes" ; then
9483			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9484			found="yes"
9485		fi
9486	fi
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502xorg_testset_save_CFLAGS="$CFLAGS"
9503
9504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514_ACEOF
9515if ac_fn_c_try_compile "$LINENO"; then :
9516  xorg_cv_cc_flag_unknown_warning_option=yes
9517else
9518  xorg_cv_cc_flag_unknown_warning_option=no
9519fi
9520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521fi
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9525	CFLAGS="$xorg_testset_save_CFLAGS"
9526fi
9527
9528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531	fi
9532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541_ACEOF
9542if ac_fn_c_try_compile "$LINENO"; then :
9543  xorg_cv_cc_flag_unused_command_line_argument=yes
9544else
9545  xorg_cv_cc_flag_unused_command_line_argument=no
9546fi
9547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548fi
9549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9552	CFLAGS="$xorg_testset_save_CFLAGS"
9553fi
9554
9555found="no"
9556
9557	if test $found = "no" ; then
9558		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560		fi
9561
9562		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9564		fi
9565
9566		CFLAGS="$CFLAGS -Wtrigraphs"
9567
9568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9569$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9570		cacheid=xorg_cv_cc_flag__Wtrigraphs
9571		if eval \${$cacheid+:} false; then :
9572  $as_echo_n "(cached) " >&6
9573else
9574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575/* end confdefs.h.  */
9576int i;
9577int
9578main ()
9579{
9580
9581  ;
9582  return 0;
9583}
9584_ACEOF
9585if ac_fn_c_try_link "$LINENO"; then :
9586  eval $cacheid=yes
9587else
9588  eval $cacheid=no
9589fi
9590rm -f core conftest.err conftest.$ac_objext \
9591    conftest$ac_exeext conftest.$ac_ext
9592fi
9593
9594
9595		CFLAGS="$xorg_testset_save_CFLAGS"
9596
9597		eval supported=\$$cacheid
9598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9599$as_echo "$supported" >&6; }
9600		if test "$supported" = "yes" ; then
9601			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9602			found="yes"
9603		fi
9604	fi
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620xorg_testset_save_CFLAGS="$CFLAGS"
9621
9622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632_ACEOF
9633if ac_fn_c_try_compile "$LINENO"; then :
9634  xorg_cv_cc_flag_unknown_warning_option=yes
9635else
9636  xorg_cv_cc_flag_unknown_warning_option=no
9637fi
9638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639fi
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643	CFLAGS="$xorg_testset_save_CFLAGS"
9644fi
9645
9646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649	fi
9650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659_ACEOF
9660if ac_fn_c_try_compile "$LINENO"; then :
9661  xorg_cv_cc_flag_unused_command_line_argument=yes
9662else
9663  xorg_cv_cc_flag_unused_command_line_argument=no
9664fi
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9670	CFLAGS="$xorg_testset_save_CFLAGS"
9671fi
9672
9673found="no"
9674
9675	if test $found = "no" ; then
9676		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678		fi
9679
9680		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9682		fi
9683
9684		CFLAGS="$CFLAGS -Warray-bounds"
9685
9686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9687$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9688		cacheid=xorg_cv_cc_flag__Warray_bounds
9689		if eval \${$cacheid+:} false; then :
9690  $as_echo_n "(cached) " >&6
9691else
9692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695int
9696main ()
9697{
9698
9699  ;
9700  return 0;
9701}
9702_ACEOF
9703if ac_fn_c_try_link "$LINENO"; then :
9704  eval $cacheid=yes
9705else
9706  eval $cacheid=no
9707fi
9708rm -f core conftest.err conftest.$ac_objext \
9709    conftest$ac_exeext conftest.$ac_ext
9710fi
9711
9712
9713		CFLAGS="$xorg_testset_save_CFLAGS"
9714
9715		eval supported=\$$cacheid
9716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9717$as_echo "$supported" >&6; }
9718		if test "$supported" = "yes" ; then
9719			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9720			found="yes"
9721		fi
9722	fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738xorg_testset_save_CFLAGS="$CFLAGS"
9739
9740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750_ACEOF
9751if ac_fn_c_try_compile "$LINENO"; then :
9752  xorg_cv_cc_flag_unknown_warning_option=yes
9753else
9754  xorg_cv_cc_flag_unknown_warning_option=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757fi
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9761	CFLAGS="$xorg_testset_save_CFLAGS"
9762fi
9763
9764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767	fi
9768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777_ACEOF
9778if ac_fn_c_try_compile "$LINENO"; then :
9779  xorg_cv_cc_flag_unused_command_line_argument=yes
9780else
9781  xorg_cv_cc_flag_unused_command_line_argument=no
9782fi
9783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9788	CFLAGS="$xorg_testset_save_CFLAGS"
9789fi
9790
9791found="no"
9792
9793	if test $found = "no" ; then
9794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796		fi
9797
9798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9800		fi
9801
9802		CFLAGS="$CFLAGS -Wwrite-strings"
9803
9804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9805$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9806		cacheid=xorg_cv_cc_flag__Wwrite_strings
9807		if eval \${$cacheid+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h.  */
9812int i;
9813int
9814main ()
9815{
9816
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_link "$LINENO"; then :
9822  eval $cacheid=yes
9823else
9824  eval $cacheid=no
9825fi
9826rm -f core conftest.err conftest.$ac_objext \
9827    conftest$ac_exeext conftest.$ac_ext
9828fi
9829
9830
9831		CFLAGS="$xorg_testset_save_CFLAGS"
9832
9833		eval supported=\$$cacheid
9834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9835$as_echo "$supported" >&6; }
9836		if test "$supported" = "yes" ; then
9837			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9838			found="yes"
9839		fi
9840	fi
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856xorg_testset_save_CFLAGS="$CFLAGS"
9857
9858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868_ACEOF
9869if ac_fn_c_try_compile "$LINENO"; then :
9870  xorg_cv_cc_flag_unknown_warning_option=yes
9871else
9872  xorg_cv_cc_flag_unknown_warning_option=no
9873fi
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875fi
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9879	CFLAGS="$xorg_testset_save_CFLAGS"
9880fi
9881
9882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885	fi
9886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895_ACEOF
9896if ac_fn_c_try_compile "$LINENO"; then :
9897  xorg_cv_cc_flag_unused_command_line_argument=yes
9898else
9899  xorg_cv_cc_flag_unused_command_line_argument=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902fi
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9906	CFLAGS="$xorg_testset_save_CFLAGS"
9907fi
9908
9909found="no"
9910
9911	if test $found = "no" ; then
9912		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914		fi
9915
9916		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9918		fi
9919
9920		CFLAGS="$CFLAGS -Waddress"
9921
9922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9923$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9924		cacheid=xorg_cv_cc_flag__Waddress
9925		if eval \${$cacheid+:} false; then :
9926  $as_echo_n "(cached) " >&6
9927else
9928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930int i;
9931int
9932main ()
9933{
9934
9935  ;
9936  return 0;
9937}
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940  eval $cacheid=yes
9941else
9942  eval $cacheid=no
9943fi
9944rm -f core conftest.err conftest.$ac_objext \
9945    conftest$ac_exeext conftest.$ac_ext
9946fi
9947
9948
9949		CFLAGS="$xorg_testset_save_CFLAGS"
9950
9951		eval supported=\$$cacheid
9952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9953$as_echo "$supported" >&6; }
9954		if test "$supported" = "yes" ; then
9955			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9956			found="yes"
9957		fi
9958	fi
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974xorg_testset_save_CFLAGS="$CFLAGS"
9975
9976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986_ACEOF
9987if ac_fn_c_try_compile "$LINENO"; then :
9988  xorg_cv_cc_flag_unknown_warning_option=yes
9989else
9990  xorg_cv_cc_flag_unknown_warning_option=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9997	CFLAGS="$xorg_testset_save_CFLAGS"
9998fi
9999
10000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003	fi
10004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10008  $as_echo_n "(cached) " >&6
10009else
10010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011/* end confdefs.h.  */
10012int i;
10013_ACEOF
10014if ac_fn_c_try_compile "$LINENO"; then :
10015  xorg_cv_cc_flag_unused_command_line_argument=yes
10016else
10017  xorg_cv_cc_flag_unused_command_line_argument=no
10018fi
10019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020fi
10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10024	CFLAGS="$xorg_testset_save_CFLAGS"
10025fi
10026
10027found="no"
10028
10029	if test $found = "no" ; then
10030		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032		fi
10033
10034		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10036		fi
10037
10038		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10039
10040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10041$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10042		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10043		if eval \${$cacheid+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048int i;
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058  eval $cacheid=yes
10059else
10060  eval $cacheid=no
10061fi
10062rm -f core conftest.err conftest.$ac_objext \
10063    conftest$ac_exeext conftest.$ac_ext
10064fi
10065
10066
10067		CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069		eval supported=\$$cacheid
10070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071$as_echo "$supported" >&6; }
10072		if test "$supported" = "yes" ; then
10073			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10074			found="yes"
10075		fi
10076	fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092xorg_testset_save_CFLAGS="$CFLAGS"
10093
10094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10099  $as_echo_n "(cached) " >&6
10100else
10101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102/* end confdefs.h.  */
10103int i;
10104_ACEOF
10105if ac_fn_c_try_compile "$LINENO"; then :
10106  xorg_cv_cc_flag_unknown_warning_option=yes
10107else
10108  xorg_cv_cc_flag_unknown_warning_option=no
10109fi
10110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111fi
10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10115	CFLAGS="$xorg_testset_save_CFLAGS"
10116fi
10117
10118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121	fi
10122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10126  $as_echo_n "(cached) " >&6
10127else
10128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130int i;
10131_ACEOF
10132if ac_fn_c_try_compile "$LINENO"; then :
10133  xorg_cv_cc_flag_unused_command_line_argument=yes
10134else
10135  xorg_cv_cc_flag_unused_command_line_argument=no
10136fi
10137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10138fi
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10142	CFLAGS="$xorg_testset_save_CFLAGS"
10143fi
10144
10145found="no"
10146
10147	if test $found = "no" ; then
10148		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150		fi
10151
10152		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10154		fi
10155
10156		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10157
10158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10159$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10160		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10161		if eval \${$cacheid+:} false; then :
10162  $as_echo_n "(cached) " >&6
10163else
10164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10165/* end confdefs.h.  */
10166int i;
10167int
10168main ()
10169{
10170
10171  ;
10172  return 0;
10173}
10174_ACEOF
10175if ac_fn_c_try_link "$LINENO"; then :
10176  eval $cacheid=yes
10177else
10178  eval $cacheid=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext \
10181    conftest$ac_exeext conftest.$ac_ext
10182fi
10183
10184
10185		CFLAGS="$xorg_testset_save_CFLAGS"
10186
10187		eval supported=\$$cacheid
10188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10189$as_echo "$supported" >&6; }
10190		if test "$supported" = "yes" ; then
10191			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10192			found="yes"
10193		fi
10194	fi
10195
10196
10197fi
10198
10199
10200
10201
10202
10203
10204
10205		CWARNFLAGS="$BASE_CFLAGS"
10206		if  test "x$GCC" = xyes ; then
10207		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10208		fi
10209
10210
10211
10212
10213
10214
10215
10216
10217# Check whether --enable-strict-compilation was given.
10218if test "${enable_strict_compilation+set}" = set; then :
10219  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10220else
10221  STRICT_COMPILE=no
10222fi
10223
10224
10225
10226
10227
10228
10229STRICT_CFLAGS=""
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243xorg_testset_save_CFLAGS="$CFLAGS"
10244
10245if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10246	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10248$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10249if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255_ACEOF
10256if ac_fn_c_try_compile "$LINENO"; then :
10257  xorg_cv_cc_flag_unknown_warning_option=yes
10258else
10259  xorg_cv_cc_flag_unknown_warning_option=no
10260fi
10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10264$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10265	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10266	CFLAGS="$xorg_testset_save_CFLAGS"
10267fi
10268
10269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10270	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272	fi
10273	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10274	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10275$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10276if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10277  $as_echo_n "(cached) " >&6
10278else
10279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281int i;
10282_ACEOF
10283if ac_fn_c_try_compile "$LINENO"; then :
10284  xorg_cv_cc_flag_unused_command_line_argument=yes
10285else
10286  xorg_cv_cc_flag_unused_command_line_argument=no
10287fi
10288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289fi
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10291$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10292	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10293	CFLAGS="$xorg_testset_save_CFLAGS"
10294fi
10295
10296found="no"
10297
10298	if test $found = "no" ; then
10299		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10300			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301		fi
10302
10303		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10304			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10305		fi
10306
10307		CFLAGS="$CFLAGS -pedantic"
10308
10309		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10310$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10311		cacheid=xorg_cv_cc_flag__pedantic
10312		if eval \${$cacheid+:} false; then :
10313  $as_echo_n "(cached) " >&6
10314else
10315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317int i;
10318int
10319main ()
10320{
10321
10322  ;
10323  return 0;
10324}
10325_ACEOF
10326if ac_fn_c_try_link "$LINENO"; then :
10327  eval $cacheid=yes
10328else
10329  eval $cacheid=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext \
10332    conftest$ac_exeext conftest.$ac_ext
10333fi
10334
10335
10336		CFLAGS="$xorg_testset_save_CFLAGS"
10337
10338		eval supported=\$$cacheid
10339		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10340$as_echo "$supported" >&6; }
10341		if test "$supported" = "yes" ; then
10342			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10343			found="yes"
10344		fi
10345	fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361xorg_testset_save_CFLAGS="$CFLAGS"
10362
10363if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10364	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10366$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10367if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10368  $as_echo_n "(cached) " >&6
10369else
10370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371/* end confdefs.h.  */
10372int i;
10373_ACEOF
10374if ac_fn_c_try_compile "$LINENO"; then :
10375  xorg_cv_cc_flag_unknown_warning_option=yes
10376else
10377  xorg_cv_cc_flag_unknown_warning_option=no
10378fi
10379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10380fi
10381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10382$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10384	CFLAGS="$xorg_testset_save_CFLAGS"
10385fi
10386
10387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390	fi
10391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10393$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10394if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10395  $as_echo_n "(cached) " >&6
10396else
10397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398/* end confdefs.h.  */
10399int i;
10400_ACEOF
10401if ac_fn_c_try_compile "$LINENO"; then :
10402  xorg_cv_cc_flag_unused_command_line_argument=yes
10403else
10404  xorg_cv_cc_flag_unused_command_line_argument=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407fi
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10409$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10411	CFLAGS="$xorg_testset_save_CFLAGS"
10412fi
10413
10414found="no"
10415
10416	if test $found = "no" ; then
10417		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10419		fi
10420
10421		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10423		fi
10424
10425		CFLAGS="$CFLAGS -Werror"
10426
10427		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10428$as_echo_n "checking if $CC supports -Werror... " >&6; }
10429		cacheid=xorg_cv_cc_flag__Werror
10430		if eval \${$cacheid+:} false; then :
10431  $as_echo_n "(cached) " >&6
10432else
10433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434/* end confdefs.h.  */
10435int i;
10436int
10437main ()
10438{
10439
10440  ;
10441  return 0;
10442}
10443_ACEOF
10444if ac_fn_c_try_link "$LINENO"; then :
10445  eval $cacheid=yes
10446else
10447  eval $cacheid=no
10448fi
10449rm -f core conftest.err conftest.$ac_objext \
10450    conftest$ac_exeext conftest.$ac_ext
10451fi
10452
10453
10454		CFLAGS="$xorg_testset_save_CFLAGS"
10455
10456		eval supported=\$$cacheid
10457		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10458$as_echo "$supported" >&6; }
10459		if test "$supported" = "yes" ; then
10460			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10461			found="yes"
10462		fi
10463	fi
10464
10465	if test $found = "no" ; then
10466		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468		fi
10469
10470		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472		fi
10473
10474		CFLAGS="$CFLAGS -errwarn"
10475
10476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10477$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10478		cacheid=xorg_cv_cc_flag__errwarn
10479		if eval \${$cacheid+:} false; then :
10480  $as_echo_n "(cached) " >&6
10481else
10482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h.  */
10484int i;
10485int
10486main ()
10487{
10488
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493if ac_fn_c_try_link "$LINENO"; then :
10494  eval $cacheid=yes
10495else
10496  eval $cacheid=no
10497fi
10498rm -f core conftest.err conftest.$ac_objext \
10499    conftest$ac_exeext conftest.$ac_ext
10500fi
10501
10502
10503		CFLAGS="$xorg_testset_save_CFLAGS"
10504
10505		eval supported=\$$cacheid
10506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10507$as_echo "$supported" >&6; }
10508		if test "$supported" = "yes" ; then
10509			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10510			found="yes"
10511		fi
10512	fi
10513
10514
10515
10516# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10517# activate it with -Werror, so we add it here explicitly.
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531xorg_testset_save_CFLAGS="$CFLAGS"
10532
10533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10538  $as_echo_n "(cached) " >&6
10539else
10540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541/* end confdefs.h.  */
10542int i;
10543_ACEOF
10544if ac_fn_c_try_compile "$LINENO"; then :
10545  xorg_cv_cc_flag_unknown_warning_option=yes
10546else
10547  xorg_cv_cc_flag_unknown_warning_option=no
10548fi
10549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10550fi
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10554	CFLAGS="$xorg_testset_save_CFLAGS"
10555fi
10556
10557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560	fi
10561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10565  $as_echo_n "(cached) " >&6
10566else
10567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568/* end confdefs.h.  */
10569int i;
10570_ACEOF
10571if ac_fn_c_try_compile "$LINENO"; then :
10572  xorg_cv_cc_flag_unused_command_line_argument=yes
10573else
10574  xorg_cv_cc_flag_unused_command_line_argument=no
10575fi
10576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577fi
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10581	CFLAGS="$xorg_testset_save_CFLAGS"
10582fi
10583
10584found="no"
10585
10586	if test $found = "no" ; then
10587		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589		fi
10590
10591		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10593		fi
10594
10595		CFLAGS="$CFLAGS -Werror=attributes"
10596
10597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10598$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10599		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10600		if eval \${$cacheid+:} false; then :
10601  $as_echo_n "(cached) " >&6
10602else
10603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604/* end confdefs.h.  */
10605int i;
10606int
10607main ()
10608{
10609
10610  ;
10611  return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"; then :
10615  eval $cacheid=yes
10616else
10617  eval $cacheid=no
10618fi
10619rm -f core conftest.err conftest.$ac_objext \
10620    conftest$ac_exeext conftest.$ac_ext
10621fi
10622
10623
10624		CFLAGS="$xorg_testset_save_CFLAGS"
10625
10626		eval supported=\$$cacheid
10627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10628$as_echo "$supported" >&6; }
10629		if test "$supported" = "yes" ; then
10630			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10631			found="yes"
10632		fi
10633	fi
10634
10635
10636
10637if test "x$STRICT_COMPILE" = "xyes"; then
10638    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10639    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10640fi
10641
10642
10643
10644
10645
10646
10647cat >>confdefs.h <<_ACEOF
10648#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10649_ACEOF
10650
10651	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10652	if test "x$PVM" = "x"; then
10653		PVM="0"
10654	fi
10655
10656cat >>confdefs.h <<_ACEOF
10657#define PACKAGE_VERSION_MINOR $PVM
10658_ACEOF
10659
10660	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10661	if test "x$PVP" = "x"; then
10662		PVP="0"
10663	fi
10664
10665cat >>confdefs.h <<_ACEOF
10666#define PACKAGE_VERSION_PATCHLEVEL $PVP
10667_ACEOF
10668
10669
10670
10671CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10672mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10673|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10674echo 'git directory not found: installing possibly empty changelog.' >&2)"
10675
10676
10677
10678
10679macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10680INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10681mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10682|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10683echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10684
10685
10686
10687
10688
10689
10690if test x$APP_MAN_SUFFIX = x    ; then
10691    APP_MAN_SUFFIX=1
10692fi
10693if test x$APP_MAN_DIR = x    ; then
10694    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10695fi
10696
10697if test x$LIB_MAN_SUFFIX = x    ; then
10698    LIB_MAN_SUFFIX=3
10699fi
10700if test x$LIB_MAN_DIR = x    ; then
10701    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10702fi
10703
10704if test x$FILE_MAN_SUFFIX = x    ; then
10705    case $host_os in
10706	solaris*)	FILE_MAN_SUFFIX=4  ;;
10707	*)		FILE_MAN_SUFFIX=5  ;;
10708    esac
10709fi
10710if test x$FILE_MAN_DIR = x    ; then
10711    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10712fi
10713
10714if test x$MISC_MAN_SUFFIX = x    ; then
10715    case $host_os in
10716	solaris*)	MISC_MAN_SUFFIX=5  ;;
10717	*)		MISC_MAN_SUFFIX=7  ;;
10718    esac
10719fi
10720if test x$MISC_MAN_DIR = x    ; then
10721    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10722fi
10723
10724if test x$DRIVER_MAN_SUFFIX = x    ; then
10725    case $host_os in
10726	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10727	*)		DRIVER_MAN_SUFFIX=4  ;;
10728    esac
10729fi
10730if test x$DRIVER_MAN_DIR = x    ; then
10731    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10732fi
10733
10734if test x$ADMIN_MAN_SUFFIX = x    ; then
10735    case $host_os in
10736	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10737	*)		ADMIN_MAN_SUFFIX=8  ;;
10738    esac
10739fi
10740if test x$ADMIN_MAN_DIR = x    ; then
10741    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10742fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758XORG_MAN_PAGE="X Version 11"
10759
10760MAN_SUBSTS="\
10761	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10762	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10763	-e 's|__xservername__|Xorg|g' \
10764	-e 's|__xconfigfile__|xorg.conf|g' \
10765	-e 's|__projectroot__|\$(prefix)|g' \
10766	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10767	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10768	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10769	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10770	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10771	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10772	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10773
10774
10775
10776# Check whether --enable-silent-rules was given.
10777if test "${enable_silent_rules+set}" = set; then :
10778  enableval=$enable_silent_rules;
10779fi
10780
10781case $enable_silent_rules in # (((
10782  yes) AM_DEFAULT_VERBOSITY=0;;
10783   no) AM_DEFAULT_VERBOSITY=1;;
10784    *) AM_DEFAULT_VERBOSITY=0;;
10785esac
10786am_make=${MAKE-make}
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10788$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10789if ${am_cv_make_support_nested_variables+:} false; then :
10790  $as_echo_n "(cached) " >&6
10791else
10792  if $as_echo 'TRUE=$(BAR$(V))
10793BAR0=false
10794BAR1=true
10795V=1
10796am__doit:
10797	@$(TRUE)
10798.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10799  am_cv_make_support_nested_variables=yes
10800else
10801  am_cv_make_support_nested_variables=no
10802fi
10803fi
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10805$as_echo "$am_cv_make_support_nested_variables" >&6; }
10806if test $am_cv_make_support_nested_variables = yes; then
10807    AM_V='$(V)'
10808  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10809else
10810  AM_V=$AM_DEFAULT_VERBOSITY
10811  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10812fi
10813AM_BACKSLASH='\'
10814
10815
10816
10817# Checks for system functions
10818for ac_func in usleep
10819do :
10820  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
10821if test "x$ac_cv_func_usleep" = xyes; then :
10822  cat >>confdefs.h <<_ACEOF
10823#define HAVE_USLEEP 1
10824_ACEOF
10825
10826fi
10827done
10828
10829
10830# Checks for pkg-config packages
10831
10832pkg_failed=no
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSET" >&5
10834$as_echo_n "checking for XSET... " >&6; }
10835
10836if test -n "$XSET_CFLAGS"; then
10837    pkg_cv_XSET_CFLAGS="$XSET_CFLAGS"
10838 elif test -n "$PKG_CONFIG"; then
10839    if test -n "$PKG_CONFIG" && \
10840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10841  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10842  ac_status=$?
10843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844  test $ac_status = 0; }; then
10845  pkg_cv_XSET_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xmuu" 2>/dev/null`
10846else
10847  pkg_failed=yes
10848fi
10849 else
10850    pkg_failed=untried
10851fi
10852if test -n "$XSET_LIBS"; then
10853    pkg_cv_XSET_LIBS="$XSET_LIBS"
10854 elif test -n "$PKG_CONFIG"; then
10855    if test -n "$PKG_CONFIG" && \
10856    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xmuu\""; } >&5
10857  ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xmuu") 2>&5
10858  ac_status=$?
10859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10860  test $ac_status = 0; }; then
10861  pkg_cv_XSET_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xmuu" 2>/dev/null`
10862else
10863  pkg_failed=yes
10864fi
10865 else
10866    pkg_failed=untried
10867fi
10868
10869
10870
10871if test $pkg_failed = yes; then
10872
10873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10874        _pkg_short_errors_supported=yes
10875else
10876        _pkg_short_errors_supported=no
10877fi
10878        if test $_pkg_short_errors_supported = yes; then
10879	        XSET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
10880        else
10881	        XSET_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.17 xmuu" 2>&1`
10882        fi
10883	# Put the nasty error message in config.log where it belongs
10884	echo "$XSET_PKG_ERRORS" >&5
10885
10886	as_fn_error $? "Package requirements (xproto >= 7.0.17 xmuu) were not met:
10887
10888$XSET_PKG_ERRORS
10889
10890Consider adjusting the PKG_CONFIG_PATH environment variable if you
10891installed software in a non-standard prefix.
10892
10893Alternatively, you may set the environment variables XSET_CFLAGS
10894and XSET_LIBS to avoid the need to call pkg-config.
10895See the pkg-config man page for more details.
10896" "$LINENO" 5
10897elif test $pkg_failed = untried; then
10898	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10900as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10901is in your PATH or set the PKG_CONFIG environment variable to the full
10902path to pkg-config.
10903
10904Alternatively, you may set the environment variables XSET_CFLAGS
10905and XSET_LIBS to avoid the need to call pkg-config.
10906See the pkg-config man page for more details.
10907
10908To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10909See \`config.log' for more details" "$LINENO" 5; }
10910else
10911	XSET_CFLAGS=$pkg_cv_XSET_CFLAGS
10912	XSET_LIBS=$pkg_cv_XSET_LIBS
10913        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10914$as_echo "yes" >&6; }
10915	:
10916fi
10917
10918# This is used below to allow <X11/Xlib.h> to be found
10919
10920pkg_failed=no
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_X11" >&5
10922$as_echo_n "checking for SET_X11... " >&6; }
10923
10924if test -n "$SET_X11_CFLAGS"; then
10925    pkg_cv_SET_X11_CFLAGS="$SET_X11_CFLAGS"
10926 elif test -n "$PKG_CONFIG"; then
10927    if test -n "$PKG_CONFIG" && \
10928    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10929  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10930  ac_status=$?
10931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10932  test $ac_status = 0; }; then
10933  pkg_cv_SET_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
10934else
10935  pkg_failed=yes
10936fi
10937 else
10938    pkg_failed=untried
10939fi
10940if test -n "$SET_X11_LIBS"; then
10941    pkg_cv_SET_X11_LIBS="$SET_X11_LIBS"
10942 elif test -n "$PKG_CONFIG"; then
10943    if test -n "$PKG_CONFIG" && \
10944    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10945  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10946  ac_status=$?
10947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10948  test $ac_status = 0; }; then
10949  pkg_cv_SET_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
10950else
10951  pkg_failed=yes
10952fi
10953 else
10954    pkg_failed=untried
10955fi
10956
10957
10958
10959if test $pkg_failed = yes; then
10960
10961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10962        _pkg_short_errors_supported=yes
10963else
10964        _pkg_short_errors_supported=no
10965fi
10966        if test $_pkg_short_errors_supported = yes; then
10967	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
10968        else
10969	        SET_X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
10970        fi
10971	# Put the nasty error message in config.log where it belongs
10972	echo "$SET_X11_PKG_ERRORS" >&5
10973
10974	as_fn_error $? "Package requirements (x11) were not met:
10975
10976$SET_X11_PKG_ERRORS
10977
10978Consider adjusting the PKG_CONFIG_PATH environment variable if you
10979installed software in a non-standard prefix.
10980
10981Alternatively, you may set the environment variables SET_X11_CFLAGS
10982and SET_X11_LIBS to avoid the need to call pkg-config.
10983See the pkg-config man page for more details.
10984" "$LINENO" 5
10985elif test $pkg_failed = untried; then
10986	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10988as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10989is in your PATH or set the PKG_CONFIG environment variable to the full
10990path to pkg-config.
10991
10992Alternatively, you may set the environment variables SET_X11_CFLAGS
10993and SET_X11_LIBS to avoid the need to call pkg-config.
10994See the pkg-config man page for more details.
10995
10996To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10997See \`config.log' for more details" "$LINENO" 5; }
10998else
10999	SET_X11_CFLAGS=$pkg_cv_SET_X11_CFLAGS
11000	SET_X11_LIBS=$pkg_cv_SET_X11_LIBS
11001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11002$as_echo "yes" >&6; }
11003	:
11004fi
11005
11006
11007pkg_failed=no
11008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XEXT" >&5
11009$as_echo_n "checking for SET_XEXT... " >&6; }
11010
11011if test -n "$SET_XEXT_CFLAGS"; then
11012    pkg_cv_SET_XEXT_CFLAGS="$SET_XEXT_CFLAGS"
11013 elif test -n "$PKG_CONFIG"; then
11014    if test -n "$PKG_CONFIG" && \
11015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11016  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11017  ac_status=$?
11018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019  test $ac_status = 0; }; then
11020  pkg_cv_SET_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xext" 2>/dev/null`
11021else
11022  pkg_failed=yes
11023fi
11024 else
11025    pkg_failed=untried
11026fi
11027if test -n "$SET_XEXT_LIBS"; then
11028    pkg_cv_SET_XEXT_LIBS="$SET_XEXT_LIBS"
11029 elif test -n "$PKG_CONFIG"; then
11030    if test -n "$PKG_CONFIG" && \
11031    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xext\""; } >&5
11032  ($PKG_CONFIG --exists --print-errors "xext") 2>&5
11033  ac_status=$?
11034  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11035  test $ac_status = 0; }; then
11036  pkg_cv_SET_XEXT_LIBS=`$PKG_CONFIG --libs "xext" 2>/dev/null`
11037else
11038  pkg_failed=yes
11039fi
11040 else
11041    pkg_failed=untried
11042fi
11043
11044
11045
11046if test $pkg_failed = yes; then
11047
11048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11049        _pkg_short_errors_supported=yes
11050else
11051        _pkg_short_errors_supported=no
11052fi
11053        if test $_pkg_short_errors_supported = yes; then
11054	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xext" 2>&1`
11055        else
11056	        SET_XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xext" 2>&1`
11057        fi
11058	# Put the nasty error message in config.log where it belongs
11059	echo "$SET_XEXT_PKG_ERRORS" >&5
11060
11061	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063                echo "not found"
11064elif test $pkg_failed = untried; then
11065	echo "not found"
11066else
11067	SET_XEXT_CFLAGS=$pkg_cv_SET_XEXT_CFLAGS
11068	SET_XEXT_LIBS=$pkg_cv_SET_XEXT_LIBS
11069        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070$as_echo "yes" >&6; }
11071	SAVE_CPPFLAGS="$CPPFLAGS"
11072	CPPFLAGS="$CPPFLAGS $SET_XEXT_CFLAGS $SET_X11_CFLAGS"
11073	for ac_header in X11/extensions/dpms.h X11/extensions/MITMisc.h
11074do :
11075  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11076ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11077"
11078if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11079  cat >>confdefs.h <<_ACEOF
11080#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11081_ACEOF
11082
11083fi
11084
11085done
11086
11087	CPPFLAGS="$SAVE_CPPFLAGS"
11088fi
11089
11090
11091pkg_failed=no
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XKB" >&5
11093$as_echo_n "checking for SET_XKB... " >&6; }
11094
11095if test -n "$SET_XKB_CFLAGS"; then
11096    pkg_cv_SET_XKB_CFLAGS="$SET_XKB_CFLAGS"
11097 elif test -n "$PKG_CONFIG"; then
11098    if test -n "$PKG_CONFIG" && \
11099    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11100  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11101  ac_status=$?
11102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11103  test $ac_status = 0; }; then
11104  pkg_cv_SET_XKB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
11105else
11106  pkg_failed=yes
11107fi
11108 else
11109    pkg_failed=untried
11110fi
11111if test -n "$SET_XKB_LIBS"; then
11112    pkg_cv_SET_XKB_LIBS="$SET_XKB_LIBS"
11113 elif test -n "$PKG_CONFIG"; then
11114    if test -n "$PKG_CONFIG" && \
11115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
11116  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
11117  ac_status=$?
11118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11119  test $ac_status = 0; }; then
11120  pkg_cv_SET_XKB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
11121else
11122  pkg_failed=yes
11123fi
11124 else
11125    pkg_failed=untried
11126fi
11127
11128
11129
11130if test $pkg_failed = yes; then
11131
11132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11133        _pkg_short_errors_supported=yes
11134else
11135        _pkg_short_errors_supported=no
11136fi
11137        if test $_pkg_short_errors_supported = yes; then
11138	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
11139        else
11140	        SET_XKB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
11141        fi
11142	# Put the nasty error message in config.log where it belongs
11143	echo "$SET_XKB_PKG_ERRORS" >&5
11144
11145	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147                echo "not found"
11148elif test $pkg_failed = untried; then
11149	echo "not found"
11150else
11151	SET_XKB_CFLAGS=$pkg_cv_SET_XKB_CFLAGS
11152	SET_XKB_LIBS=$pkg_cv_SET_XKB_LIBS
11153        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154$as_echo "yes" >&6; }
11155	SAVE_CPPFLAGS="$CPPFLAGS"
11156	CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
11157	for ac_header in X11/XKBlib.h
11158do :
11159  ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
11160"
11161if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
11162  cat >>confdefs.h <<_ACEOF
11163#define HAVE_X11_XKBLIB_H 1
11164_ACEOF
11165
11166fi
11167
11168done
11169
11170	CPPFLAGS="$SAVE_CPPFLAGS"
11171fi
11172
11173
11174# Check whether --with-xf86misc was given.
11175if test "${with_xf86misc+set}" = set; then :
11176  withval=$with_xf86misc; USE_XF86MISC="$withval"
11177else
11178  USE_XF86MISC="yes"
11179fi
11180
11181if test "x$USE_XF86MISC" != "xno" ; then
11182
11183pkg_failed=no
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_XF86MISC" >&5
11185$as_echo_n "checking for SET_XF86MISC... " >&6; }
11186
11187if test -n "$SET_XF86MISC_CFLAGS"; then
11188    pkg_cv_SET_XF86MISC_CFLAGS="$SET_XF86MISC_CFLAGS"
11189 elif test -n "$PKG_CONFIG"; then
11190    if test -n "$PKG_CONFIG" && \
11191    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11192  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11193  ac_status=$?
11194  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11195  test $ac_status = 0; }; then
11196  pkg_cv_SET_XF86MISC_CFLAGS=`$PKG_CONFIG --cflags "xxf86misc" 2>/dev/null`
11197else
11198  pkg_failed=yes
11199fi
11200 else
11201    pkg_failed=untried
11202fi
11203if test -n "$SET_XF86MISC_LIBS"; then
11204    pkg_cv_SET_XF86MISC_LIBS="$SET_XF86MISC_LIBS"
11205 elif test -n "$PKG_CONFIG"; then
11206    if test -n "$PKG_CONFIG" && \
11207    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86misc\""; } >&5
11208  ($PKG_CONFIG --exists --print-errors "xxf86misc") 2>&5
11209  ac_status=$?
11210  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11211  test $ac_status = 0; }; then
11212  pkg_cv_SET_XF86MISC_LIBS=`$PKG_CONFIG --libs "xxf86misc" 2>/dev/null`
11213else
11214  pkg_failed=yes
11215fi
11216 else
11217    pkg_failed=untried
11218fi
11219
11220
11221
11222if test $pkg_failed = yes; then
11223
11224if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11225        _pkg_short_errors_supported=yes
11226else
11227        _pkg_short_errors_supported=no
11228fi
11229        if test $_pkg_short_errors_supported = yes; then
11230	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xxf86misc" 2>&1`
11231        else
11232	        SET_XF86MISC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xxf86misc" 2>&1`
11233        fi
11234	# Put the nasty error message in config.log where it belongs
11235	echo "$SET_XF86MISC_PKG_ERRORS" >&5
11236
11237	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
11239                echo "not found"
11240elif test $pkg_failed = untried; then
11241	echo "not found"
11242else
11243	SET_XF86MISC_CFLAGS=$pkg_cv_SET_XF86MISC_CFLAGS
11244	SET_XF86MISC_LIBS=$pkg_cv_SET_XF86MISC_LIBS
11245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11246$as_echo "yes" >&6; }
11247	SAVE_CPPFLAGS="$CPPFLAGS"
11248		CPPFLAGS="$CPPFLAGS $SET_XF86MISC_CFLAGS $SET_X11_CFLAGS"
11249		for ac_header in X11/extensions/xf86misc.h X11/extensions/xf86mscstr.h
11250do :
11251  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11253#include <X11/Xproto.h>
11254"
11255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11256  cat >>confdefs.h <<_ACEOF
11257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258_ACEOF
11259
11260fi
11261
11262done
11263
11264		CPPFLAGS="$SAVE_CPPFLAGS"
11265fi
11266else
11267        echo "without xf86misc"
11268fi
11269
11270
11271# Check whether --with-fontcache was given.
11272if test "${with_fontcache+set}" = set; then :
11273  withval=$with_fontcache; USE_XFONTCACHE="$withval"
11274else
11275  USE_XFONTCACHE="yes"
11276fi
11277
11278if test "x$USE_XFONTCACHE" != "xno" ; then
11279
11280pkg_failed=no
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SET_FONTCACHE" >&5
11282$as_echo_n "checking for SET_FONTCACHE... " >&6; }
11283
11284if test -n "$SET_FONTCACHE_CFLAGS"; then
11285    pkg_cv_SET_FONTCACHE_CFLAGS="$SET_FONTCACHE_CFLAGS"
11286 elif test -n "$PKG_CONFIG"; then
11287    if test -n "$PKG_CONFIG" && \
11288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11289  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11290  ac_status=$?
11291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292  test $ac_status = 0; }; then
11293  pkg_cv_SET_FONTCACHE_CFLAGS=`$PKG_CONFIG --cflags "xfontcache" 2>/dev/null`
11294else
11295  pkg_failed=yes
11296fi
11297 else
11298    pkg_failed=untried
11299fi
11300if test -n "$SET_FONTCACHE_LIBS"; then
11301    pkg_cv_SET_FONTCACHE_LIBS="$SET_FONTCACHE_LIBS"
11302 elif test -n "$PKG_CONFIG"; then
11303    if test -n "$PKG_CONFIG" && \
11304    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfontcache\""; } >&5
11305  ($PKG_CONFIG --exists --print-errors "xfontcache") 2>&5
11306  ac_status=$?
11307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11308  test $ac_status = 0; }; then
11309  pkg_cv_SET_FONTCACHE_LIBS=`$PKG_CONFIG --libs "xfontcache" 2>/dev/null`
11310else
11311  pkg_failed=yes
11312fi
11313 else
11314    pkg_failed=untried
11315fi
11316
11317
11318
11319if test $pkg_failed = yes; then
11320
11321if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11322        _pkg_short_errors_supported=yes
11323else
11324        _pkg_short_errors_supported=no
11325fi
11326        if test $_pkg_short_errors_supported = yes; then
11327	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfontcache" 2>&1`
11328        else
11329	        SET_FONTCACHE_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfontcache" 2>&1`
11330        fi
11331	# Put the nasty error message in config.log where it belongs
11332	echo "$SET_FONTCACHE_PKG_ERRORS" >&5
11333
11334	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335$as_echo "no" >&6; }
11336                echo "not found"
11337elif test $pkg_failed = untried; then
11338	echo "not found"
11339else
11340	SET_FONTCACHE_CFLAGS=$pkg_cv_SET_FONTCACHE_CFLAGS
11341	SET_FONTCACHE_LIBS=$pkg_cv_SET_FONTCACHE_LIBS
11342        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11343$as_echo "yes" >&6; }
11344	SAVE_CPPFLAGS="$CPPFLAGS"
11345		CPPFLAGS="$CPPFLAGS $SET_FONTCACHE_CFLAGS $SET_X11_CFLAGS"
11346		for ac_header in X11/extensions/fontcache.h X11/extensions/fontcacheP.h
11347do :
11348  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <X11/Xlib.h>
11350"
11351if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11352  cat >>confdefs.h <<_ACEOF
11353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11354_ACEOF
11355
11356fi
11357
11358done
11359
11360		CPPFLAGS="$SAVE_CPPFLAGS"
11361fi
11362else
11363	echo "without fontcache"
11364fi
11365
11366XSET_CFLAGS="$XSET_CFLAGS $SET_XEXT_CFLAGS $SET_XKB_CFLAGS $SET_XF86MISC_CFLAGS $SET_FONTCACHE_CFLAGS"
11367XSET_LIBS="$XSET_LIBS $SET_XEXT_LIBS $SET_XKB_LIBS $SET_XF86MISC_LIBS $SET_FONTCACHE_LIBS"
11368
11369
11370ac_config_files="$ac_config_files Makefile man/Makefile"
11371
11372cat >confcache <<\_ACEOF
11373# This file is a shell script that caches the results of configure
11374# tests run on this system so they can be shared between configure
11375# scripts and configure runs, see configure's option --config-cache.
11376# It is not useful on other systems.  If it contains results you don't
11377# want to keep, you may remove or edit it.
11378#
11379# config.status only pays attention to the cache file if you give it
11380# the --recheck option to rerun configure.
11381#
11382# `ac_cv_env_foo' variables (set or unset) will be overridden when
11383# loading this file, other *unset* `ac_cv_foo' will be assigned the
11384# following values.
11385
11386_ACEOF
11387
11388# The following way of writing the cache mishandles newlines in values,
11389# but we know of no workaround that is simple, portable, and efficient.
11390# So, we kill variables containing newlines.
11391# Ultrix sh set writes to stderr and can't be redirected directly,
11392# and sets the high bit in the cache file unless we assign to the vars.
11393(
11394  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11395    eval ac_val=\$$ac_var
11396    case $ac_val in #(
11397    *${as_nl}*)
11398      case $ac_var in #(
11399      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11401      esac
11402      case $ac_var in #(
11403      _ | IFS | as_nl) ;; #(
11404      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11405      *) { eval $ac_var=; unset $ac_var;} ;;
11406      esac ;;
11407    esac
11408  done
11409
11410  (set) 2>&1 |
11411    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11412    *${as_nl}ac_space=\ *)
11413      # `set' does not quote correctly, so add quotes: double-quote
11414      # substitution turns \\\\ into \\, and sed turns \\ into \.
11415      sed -n \
11416	"s/'/'\\\\''/g;
11417	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11418      ;; #(
11419    *)
11420      # `set' quotes correctly as required by POSIX, so do not add quotes.
11421      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11422      ;;
11423    esac |
11424    sort
11425) |
11426  sed '
11427     /^ac_cv_env_/b end
11428     t clear
11429     :clear
11430     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11431     t end
11432     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11433     :end' >>confcache
11434if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11435  if test -w "$cache_file"; then
11436    if test "x$cache_file" != "x/dev/null"; then
11437      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11438$as_echo "$as_me: updating cache $cache_file" >&6;}
11439      if test ! -f "$cache_file" || test -h "$cache_file"; then
11440	cat confcache >"$cache_file"
11441      else
11442        case $cache_file in #(
11443        */* | ?:*)
11444	  mv -f confcache "$cache_file"$$ &&
11445	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11446        *)
11447	  mv -f confcache "$cache_file" ;;
11448	esac
11449      fi
11450    fi
11451  else
11452    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11453$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11454  fi
11455fi
11456rm -f confcache
11457
11458test "x$prefix" = xNONE && prefix=$ac_default_prefix
11459# Let make expand exec_prefix.
11460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11461
11462DEFS=-DHAVE_CONFIG_H
11463
11464ac_libobjs=
11465ac_ltlibobjs=
11466U=
11467for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11468  # 1. Remove the extension, and $U if already installed.
11469  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11470  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11471  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11472  #    will be set to the directory where LIBOBJS objects are built.
11473  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11474  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11475done
11476LIBOBJS=$ac_libobjs
11477
11478LTLIBOBJS=$ac_ltlibobjs
11479
11480
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11482$as_echo_n "checking that generated files are newer than configure... " >&6; }
11483   if test -n "$am_sleep_pid"; then
11484     # Hide warnings about reused PIDs.
11485     wait $am_sleep_pid 2>/dev/null
11486   fi
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11488$as_echo "done" >&6; }
11489if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11490  as_fn_error $? "conditional \"AMDEP\" was never defined.
11491Usually this means the macro was only invoked conditionally." "$LINENO" 5
11492fi
11493if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11494  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11495Usually this means the macro was only invoked conditionally." "$LINENO" 5
11496fi
11497 if test -n "$EXEEXT"; then
11498  am__EXEEXT_TRUE=
11499  am__EXEEXT_FALSE='#'
11500else
11501  am__EXEEXT_TRUE='#'
11502  am__EXEEXT_FALSE=
11503fi
11504
11505if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11506  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11507Usually this means the macro was only invoked conditionally." "$LINENO" 5
11508fi
11509
11510: "${CONFIG_STATUS=./config.status}"
11511ac_write_fail=0
11512ac_clean_files_save=$ac_clean_files
11513ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11515$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11516as_write_fail=0
11517cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11518#! $SHELL
11519# Generated by $as_me.
11520# Run this file to recreate the current configuration.
11521# Compiler output produced by configure, useful for debugging
11522# configure, is in config.log if it exists.
11523
11524debug=false
11525ac_cs_recheck=false
11526ac_cs_silent=false
11527
11528SHELL=\${CONFIG_SHELL-$SHELL}
11529export SHELL
11530_ASEOF
11531cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11532## -------------------- ##
11533## M4sh Initialization. ##
11534## -------------------- ##
11535
11536# Be more Bourne compatible
11537DUALCASE=1; export DUALCASE # for MKS sh
11538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11539  emulate sh
11540  NULLCMD=:
11541  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11542  # is contrary to our usage.  Disable this feature.
11543  alias -g '${1+"$@"}'='"$@"'
11544  setopt NO_GLOB_SUBST
11545else
11546  case `(set -o) 2>/dev/null` in #(
11547  *posix*) :
11548    set -o posix ;; #(
11549  *) :
11550     ;;
11551esac
11552fi
11553
11554
11555as_nl='
11556'
11557export as_nl
11558# Printing a long string crashes Solaris 7 /usr/bin/printf.
11559as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11562# Prefer a ksh shell builtin over an external printf program on Solaris,
11563# but without wasting forks for bash or zsh.
11564if test -z "$BASH_VERSION$ZSH_VERSION" \
11565    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11566  as_echo='print -r --'
11567  as_echo_n='print -rn --'
11568elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11569  as_echo='printf %s\n'
11570  as_echo_n='printf %s'
11571else
11572  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11573    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11574    as_echo_n='/usr/ucb/echo -n'
11575  else
11576    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11577    as_echo_n_body='eval
11578      arg=$1;
11579      case $arg in #(
11580      *"$as_nl"*)
11581	expr "X$arg" : "X\\(.*\\)$as_nl";
11582	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11583      esac;
11584      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11585    '
11586    export as_echo_n_body
11587    as_echo_n='sh -c $as_echo_n_body as_echo'
11588  fi
11589  export as_echo_body
11590  as_echo='sh -c $as_echo_body as_echo'
11591fi
11592
11593# The user is always right.
11594if test "${PATH_SEPARATOR+set}" != set; then
11595  PATH_SEPARATOR=:
11596  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11597    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11598      PATH_SEPARATOR=';'
11599  }
11600fi
11601
11602
11603# IFS
11604# We need space, tab and new line, in precisely that order.  Quoting is
11605# there to prevent editors from complaining about space-tab.
11606# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11607# splitting by setting IFS to empty value.)
11608IFS=" ""	$as_nl"
11609
11610# Find who we are.  Look in the path if we contain no directory separator.
11611as_myself=
11612case $0 in #((
11613  *[\\/]* ) as_myself=$0 ;;
11614  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615for as_dir in $PATH
11616do
11617  IFS=$as_save_IFS
11618  test -z "$as_dir" && as_dir=.
11619    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11620  done
11621IFS=$as_save_IFS
11622
11623     ;;
11624esac
11625# We did not find ourselves, most probably we were run as `sh COMMAND'
11626# in which case we are not to be found in the path.
11627if test "x$as_myself" = x; then
11628  as_myself=$0
11629fi
11630if test ! -f "$as_myself"; then
11631  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11632  exit 1
11633fi
11634
11635# Unset variables that we do not need and which cause bugs (e.g. in
11636# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11637# suppresses any "Segmentation fault" message there.  '((' could
11638# trigger a bug in pdksh 5.2.14.
11639for as_var in BASH_ENV ENV MAIL MAILPATH
11640do eval test x\${$as_var+set} = xset \
11641  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11642done
11643PS1='$ '
11644PS2='> '
11645PS4='+ '
11646
11647# NLS nuisances.
11648LC_ALL=C
11649export LC_ALL
11650LANGUAGE=C
11651export LANGUAGE
11652
11653# CDPATH.
11654(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11655
11656
11657# as_fn_error STATUS ERROR [LINENO LOG_FD]
11658# ----------------------------------------
11659# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11660# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11661# script with STATUS, using 1 if that was 0.
11662as_fn_error ()
11663{
11664  as_status=$1; test $as_status -eq 0 && as_status=1
11665  if test "$4"; then
11666    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11667    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11668  fi
11669  $as_echo "$as_me: error: $2" >&2
11670  as_fn_exit $as_status
11671} # as_fn_error
11672
11673
11674# as_fn_set_status STATUS
11675# -----------------------
11676# Set $? to STATUS, without forking.
11677as_fn_set_status ()
11678{
11679  return $1
11680} # as_fn_set_status
11681
11682# as_fn_exit STATUS
11683# -----------------
11684# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11685as_fn_exit ()
11686{
11687  set +e
11688  as_fn_set_status $1
11689  exit $1
11690} # as_fn_exit
11691
11692# as_fn_unset VAR
11693# ---------------
11694# Portably unset VAR.
11695as_fn_unset ()
11696{
11697  { eval $1=; unset $1;}
11698}
11699as_unset=as_fn_unset
11700# as_fn_append VAR VALUE
11701# ----------------------
11702# Append the text in VALUE to the end of the definition contained in VAR. Take
11703# advantage of any shell optimizations that allow amortized linear growth over
11704# repeated appends, instead of the typical quadratic growth present in naive
11705# implementations.
11706if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11707  eval 'as_fn_append ()
11708  {
11709    eval $1+=\$2
11710  }'
11711else
11712  as_fn_append ()
11713  {
11714    eval $1=\$$1\$2
11715  }
11716fi # as_fn_append
11717
11718# as_fn_arith ARG...
11719# ------------------
11720# Perform arithmetic evaluation on the ARGs, and store the result in the
11721# global $as_val. Take advantage of shells that can avoid forks. The arguments
11722# must be portable across $(()) and expr.
11723if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11724  eval 'as_fn_arith ()
11725  {
11726    as_val=$(( $* ))
11727  }'
11728else
11729  as_fn_arith ()
11730  {
11731    as_val=`expr "$@" || test $? -eq 1`
11732  }
11733fi # as_fn_arith
11734
11735
11736if expr a : '\(a\)' >/dev/null 2>&1 &&
11737   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11738  as_expr=expr
11739else
11740  as_expr=false
11741fi
11742
11743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11744  as_basename=basename
11745else
11746  as_basename=false
11747fi
11748
11749if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11750  as_dirname=dirname
11751else
11752  as_dirname=false
11753fi
11754
11755as_me=`$as_basename -- "$0" ||
11756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11757	 X"$0" : 'X\(//\)$' \| \
11758	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11759$as_echo X/"$0" |
11760    sed '/^.*\/\([^/][^/]*\)\/*$/{
11761	    s//\1/
11762	    q
11763	  }
11764	  /^X\/\(\/\/\)$/{
11765	    s//\1/
11766	    q
11767	  }
11768	  /^X\/\(\/\).*/{
11769	    s//\1/
11770	    q
11771	  }
11772	  s/.*/./; q'`
11773
11774# Avoid depending upon Character Ranges.
11775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11778as_cr_digits='0123456789'
11779as_cr_alnum=$as_cr_Letters$as_cr_digits
11780
11781ECHO_C= ECHO_N= ECHO_T=
11782case `echo -n x` in #(((((
11783-n*)
11784  case `echo 'xy\c'` in
11785  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11786  xy)  ECHO_C='\c';;
11787  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11788       ECHO_T='	';;
11789  esac;;
11790*)
11791  ECHO_N='-n';;
11792esac
11793
11794rm -f conf$$ conf$$.exe conf$$.file
11795if test -d conf$$.dir; then
11796  rm -f conf$$.dir/conf$$.file
11797else
11798  rm -f conf$$.dir
11799  mkdir conf$$.dir 2>/dev/null
11800fi
11801if (echo >conf$$.file) 2>/dev/null; then
11802  if ln -s conf$$.file conf$$ 2>/dev/null; then
11803    as_ln_s='ln -s'
11804    # ... but there are two gotchas:
11805    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11806    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11807    # In both cases, we have to default to `cp -p'.
11808    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11809      as_ln_s='cp -p'
11810  elif ln conf$$.file conf$$ 2>/dev/null; then
11811    as_ln_s=ln
11812  else
11813    as_ln_s='cp -p'
11814  fi
11815else
11816  as_ln_s='cp -p'
11817fi
11818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11819rmdir conf$$.dir 2>/dev/null
11820
11821
11822# as_fn_mkdir_p
11823# -------------
11824# Create "$as_dir" as a directory, including parents if necessary.
11825as_fn_mkdir_p ()
11826{
11827
11828  case $as_dir in #(
11829  -*) as_dir=./$as_dir;;
11830  esac
11831  test -d "$as_dir" || eval $as_mkdir_p || {
11832    as_dirs=
11833    while :; do
11834      case $as_dir in #(
11835      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11836      *) as_qdir=$as_dir;;
11837      esac
11838      as_dirs="'$as_qdir' $as_dirs"
11839      as_dir=`$as_dirname -- "$as_dir" ||
11840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11841	 X"$as_dir" : 'X\(//\)[^/]' \| \
11842	 X"$as_dir" : 'X\(//\)$' \| \
11843	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11844$as_echo X"$as_dir" |
11845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11846	    s//\1/
11847	    q
11848	  }
11849	  /^X\(\/\/\)[^/].*/{
11850	    s//\1/
11851	    q
11852	  }
11853	  /^X\(\/\/\)$/{
11854	    s//\1/
11855	    q
11856	  }
11857	  /^X\(\/\).*/{
11858	    s//\1/
11859	    q
11860	  }
11861	  s/.*/./; q'`
11862      test -d "$as_dir" && break
11863    done
11864    test -z "$as_dirs" || eval "mkdir $as_dirs"
11865  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11866
11867
11868} # as_fn_mkdir_p
11869if mkdir -p . 2>/dev/null; then
11870  as_mkdir_p='mkdir -p "$as_dir"'
11871else
11872  test -d ./-p && rmdir ./-p
11873  as_mkdir_p=false
11874fi
11875
11876if test -x / >/dev/null 2>&1; then
11877  as_test_x='test -x'
11878else
11879  if ls -dL / >/dev/null 2>&1; then
11880    as_ls_L_option=L
11881  else
11882    as_ls_L_option=
11883  fi
11884  as_test_x='
11885    eval sh -c '\''
11886      if test -d "$1"; then
11887	test -d "$1/.";
11888      else
11889	case $1 in #(
11890	-*)set "./$1";;
11891	esac;
11892	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11893	???[sx]*):;;*)false;;esac;fi
11894    '\'' sh
11895  '
11896fi
11897as_executable_p=$as_test_x
11898
11899# Sed expression to map a string onto a valid CPP name.
11900as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11901
11902# Sed expression to map a string onto a valid variable name.
11903as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11904
11905
11906exec 6>&1
11907## ----------------------------------- ##
11908## Main body of $CONFIG_STATUS script. ##
11909## ----------------------------------- ##
11910_ASEOF
11911test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11912
11913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11914# Save the log message, to keep $0 and so on meaningful, and to
11915# report actual input values of CONFIG_FILES etc. instead of their
11916# values after options handling.
11917ac_log="
11918This file was extended by xset $as_me 1.2.3, which was
11919generated by GNU Autoconf 2.68.  Invocation command line was
11920
11921  CONFIG_FILES    = $CONFIG_FILES
11922  CONFIG_HEADERS  = $CONFIG_HEADERS
11923  CONFIG_LINKS    = $CONFIG_LINKS
11924  CONFIG_COMMANDS = $CONFIG_COMMANDS
11925  $ $0 $@
11926
11927on `(hostname || uname -n) 2>/dev/null | sed 1q`
11928"
11929
11930_ACEOF
11931
11932case $ac_config_files in *"
11933"*) set x $ac_config_files; shift; ac_config_files=$*;;
11934esac
11935
11936case $ac_config_headers in *"
11937"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11938esac
11939
11940
11941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942# Files that config.status was made for.
11943config_files="$ac_config_files"
11944config_headers="$ac_config_headers"
11945config_commands="$ac_config_commands"
11946
11947_ACEOF
11948
11949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11950ac_cs_usage="\
11951\`$as_me' instantiates files and other configuration actions
11952from templates according to the current configuration.  Unless the files
11953and actions are specified as TAGs, all are instantiated by default.
11954
11955Usage: $0 [OPTION]... [TAG]...
11956
11957  -h, --help       print this help, then exit
11958  -V, --version    print version number and configuration settings, then exit
11959      --config     print configuration, then exit
11960  -q, --quiet, --silent
11961                   do not print progress messages
11962  -d, --debug      don't remove temporary files
11963      --recheck    update $as_me by reconfiguring in the same conditions
11964      --file=FILE[:TEMPLATE]
11965                   instantiate the configuration file FILE
11966      --header=FILE[:TEMPLATE]
11967                   instantiate the configuration header FILE
11968
11969Configuration files:
11970$config_files
11971
11972Configuration headers:
11973$config_headers
11974
11975Configuration commands:
11976$config_commands
11977
11978Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11979
11980_ACEOF
11981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11983ac_cs_version="\\
11984xset config.status 1.2.3
11985configured by $0, generated by GNU Autoconf 2.68,
11986  with options \\"\$ac_cs_config\\"
11987
11988Copyright (C) 2010 Free Software Foundation, Inc.
11989This config.status script is free software; the Free Software Foundation
11990gives unlimited permission to copy, distribute and modify it."
11991
11992ac_pwd='$ac_pwd'
11993srcdir='$srcdir'
11994INSTALL='$INSTALL'
11995MKDIR_P='$MKDIR_P'
11996AWK='$AWK'
11997test -n "\$AWK" || AWK=awk
11998_ACEOF
11999
12000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12001# The default lists apply if the user does not specify any file.
12002ac_need_defaults=:
12003while test $# != 0
12004do
12005  case $1 in
12006  --*=?*)
12007    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12008    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12009    ac_shift=:
12010    ;;
12011  --*=)
12012    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12013    ac_optarg=
12014    ac_shift=:
12015    ;;
12016  *)
12017    ac_option=$1
12018    ac_optarg=$2
12019    ac_shift=shift
12020    ;;
12021  esac
12022
12023  case $ac_option in
12024  # Handling of the options.
12025  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12026    ac_cs_recheck=: ;;
12027  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12028    $as_echo "$ac_cs_version"; exit ;;
12029  --config | --confi | --conf | --con | --co | --c )
12030    $as_echo "$ac_cs_config"; exit ;;
12031  --debug | --debu | --deb | --de | --d | -d )
12032    debug=: ;;
12033  --file | --fil | --fi | --f )
12034    $ac_shift
12035    case $ac_optarg in
12036    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12037    '') as_fn_error $? "missing file argument" ;;
12038    esac
12039    as_fn_append CONFIG_FILES " '$ac_optarg'"
12040    ac_need_defaults=false;;
12041  --header | --heade | --head | --hea )
12042    $ac_shift
12043    case $ac_optarg in
12044    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12045    esac
12046    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12047    ac_need_defaults=false;;
12048  --he | --h)
12049    # Conflict between --help and --header
12050    as_fn_error $? "ambiguous option: \`$1'
12051Try \`$0 --help' for more information.";;
12052  --help | --hel | -h )
12053    $as_echo "$ac_cs_usage"; exit ;;
12054  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12055  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12056    ac_cs_silent=: ;;
12057
12058  # This is an error.
12059  -*) as_fn_error $? "unrecognized option: \`$1'
12060Try \`$0 --help' for more information." ;;
12061
12062  *) as_fn_append ac_config_targets " $1"
12063     ac_need_defaults=false ;;
12064
12065  esac
12066  shift
12067done
12068
12069ac_configure_extra_args=
12070
12071if $ac_cs_silent; then
12072  exec 6>/dev/null
12073  ac_configure_extra_args="$ac_configure_extra_args --silent"
12074fi
12075
12076_ACEOF
12077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12078if \$ac_cs_recheck; then
12079  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12080  shift
12081  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12082  CONFIG_SHELL='$SHELL'
12083  export CONFIG_SHELL
12084  exec "\$@"
12085fi
12086
12087_ACEOF
12088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12089exec 5>>config.log
12090{
12091  echo
12092  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12093## Running $as_me. ##
12094_ASBOX
12095  $as_echo "$ac_log"
12096} >&5
12097
12098_ACEOF
12099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12100#
12101# INIT-COMMANDS
12102#
12103AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12104
12105_ACEOF
12106
12107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108
12109# Handling of arguments.
12110for ac_config_target in $ac_config_targets
12111do
12112  case $ac_config_target in
12113    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12114    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12115    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12116    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12117
12118  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12119  esac
12120done
12121
12122
12123# If the user did not use the arguments to specify the items to instantiate,
12124# then the envvar interface is used.  Set only those that are not.
12125# We use the long form for the default assignment because of an extremely
12126# bizarre bug on SunOS 4.1.3.
12127if $ac_need_defaults; then
12128  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12129  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12130  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12131fi
12132
12133# Have a temporary directory for convenience.  Make it in the build tree
12134# simply because there is no reason against having it here, and in addition,
12135# creating and moving files from /tmp can sometimes cause problems.
12136# Hook for its removal unless debugging.
12137# Note that there is a small window in which the directory will not be cleaned:
12138# after its creation but before its name has been assigned to `$tmp'.
12139$debug ||
12140{
12141  tmp= ac_tmp=
12142  trap 'exit_status=$?
12143  : "${ac_tmp:=$tmp}"
12144  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12145' 0
12146  trap 'as_fn_exit 1' 1 2 13 15
12147}
12148# Create a (secure) tmp directory for tmp files.
12149
12150{
12151  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12152  test -d "$tmp"
12153}  ||
12154{
12155  tmp=./conf$$-$RANDOM
12156  (umask 077 && mkdir "$tmp")
12157} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12158ac_tmp=$tmp
12159
12160# Set up the scripts for CONFIG_FILES section.
12161# No need to generate them if there are no CONFIG_FILES.
12162# This happens for instance with `./config.status config.h'.
12163if test -n "$CONFIG_FILES"; then
12164
12165
12166ac_cr=`echo X | tr X '\015'`
12167# On cygwin, bash can eat \r inside `` if the user requested igncr.
12168# But we know of no other shell where ac_cr would be empty at this
12169# point, so we can use a bashism as a fallback.
12170if test "x$ac_cr" = x; then
12171  eval ac_cr=\$\'\\r\'
12172fi
12173ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12174if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12175  ac_cs_awk_cr='\\r'
12176else
12177  ac_cs_awk_cr=$ac_cr
12178fi
12179
12180echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12181_ACEOF
12182
12183
12184{
12185  echo "cat >conf$$subs.awk <<_ACEOF" &&
12186  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12187  echo "_ACEOF"
12188} >conf$$subs.sh ||
12189  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12190ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12191ac_delim='%!_!# '
12192for ac_last_try in false false false false false :; do
12193  . ./conf$$subs.sh ||
12194    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12195
12196  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12197  if test $ac_delim_n = $ac_delim_num; then
12198    break
12199  elif $ac_last_try; then
12200    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12201  else
12202    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12203  fi
12204done
12205rm -f conf$$subs.sh
12206
12207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12208cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12209_ACEOF
12210sed -n '
12211h
12212s/^/S["/; s/!.*/"]=/
12213p
12214g
12215s/^[^!]*!//
12216:repl
12217t repl
12218s/'"$ac_delim"'$//
12219t delim
12220:nl
12221h
12222s/\(.\{148\}\)..*/\1/
12223t more1
12224s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12225p
12226n
12227b repl
12228:more1
12229s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12230p
12231g
12232s/.\{148\}//
12233t nl
12234:delim
12235h
12236s/\(.\{148\}\)..*/\1/
12237t more2
12238s/["\\]/\\&/g; s/^/"/; s/$/"/
12239p
12240b
12241:more2
12242s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12243p
12244g
12245s/.\{148\}//
12246t delim
12247' <conf$$subs.awk | sed '
12248/^[^""]/{
12249  N
12250  s/\n//
12251}
12252' >>$CONFIG_STATUS || ac_write_fail=1
12253rm -f conf$$subs.awk
12254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12255_ACAWK
12256cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12257  for (key in S) S_is_set[key] = 1
12258  FS = ""
12259
12260}
12261{
12262  line = $ 0
12263  nfields = split(line, field, "@")
12264  substed = 0
12265  len = length(field[1])
12266  for (i = 2; i < nfields; i++) {
12267    key = field[i]
12268    keylen = length(key)
12269    if (S_is_set[key]) {
12270      value = S[key]
12271      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12272      len += length(value) + length(field[++i])
12273      substed = 1
12274    } else
12275      len += 1 + keylen
12276  }
12277
12278  print line
12279}
12280
12281_ACAWK
12282_ACEOF
12283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12284if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12285  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12286else
12287  cat
12288fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12289  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12290_ACEOF
12291
12292# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12293# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12294# trailing colons and then remove the whole line if VPATH becomes empty
12295# (actually we leave an empty line to preserve line numbers).
12296if test "x$srcdir" = x.; then
12297  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12298h
12299s///
12300s/^/:/
12301s/[	 ]*$/:/
12302s/:\$(srcdir):/:/g
12303s/:\${srcdir}:/:/g
12304s/:@srcdir@:/:/g
12305s/^:*//
12306s/:*$//
12307x
12308s/\(=[	 ]*\).*/\1/
12309G
12310s/\n//
12311s/^[^=]*=[	 ]*$//
12312}'
12313fi
12314
12315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316fi # test -n "$CONFIG_FILES"
12317
12318# Set up the scripts for CONFIG_HEADERS section.
12319# No need to generate them if there are no CONFIG_HEADERS.
12320# This happens for instance with `./config.status Makefile'.
12321if test -n "$CONFIG_HEADERS"; then
12322cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12323BEGIN {
12324_ACEOF
12325
12326# Transform confdefs.h into an awk script `defines.awk', embedded as
12327# here-document in config.status, that substitutes the proper values into
12328# config.h.in to produce config.h.
12329
12330# Create a delimiter string that does not exist in confdefs.h, to ease
12331# handling of long lines.
12332ac_delim='%!_!# '
12333for ac_last_try in false false :; do
12334  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12335  if test -z "$ac_tt"; then
12336    break
12337  elif $ac_last_try; then
12338    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12339  else
12340    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12341  fi
12342done
12343
12344# For the awk script, D is an array of macro values keyed by name,
12345# likewise P contains macro parameters if any.  Preserve backslash
12346# newline sequences.
12347
12348ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12349sed -n '
12350s/.\{148\}/&'"$ac_delim"'/g
12351t rset
12352:rset
12353s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12354t def
12355d
12356:def
12357s/\\$//
12358t bsnl
12359s/["\\]/\\&/g
12360s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12361D["\1"]=" \3"/p
12362s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12363d
12364:bsnl
12365s/["\\]/\\&/g
12366s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12367D["\1"]=" \3\\\\\\n"\\/p
12368t cont
12369s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12370t cont
12371d
12372:cont
12373n
12374s/.\{148\}/&'"$ac_delim"'/g
12375t clear
12376:clear
12377s/\\$//
12378t bsnlc
12379s/["\\]/\\&/g; s/^/"/; s/$/"/p
12380d
12381:bsnlc
12382s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12383b cont
12384' <confdefs.h | sed '
12385s/'"$ac_delim"'/"\\\
12386"/g' >>$CONFIG_STATUS || ac_write_fail=1
12387
12388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12389  for (key in D) D_is_set[key] = 1
12390  FS = ""
12391}
12392/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12393  line = \$ 0
12394  split(line, arg, " ")
12395  if (arg[1] == "#") {
12396    defundef = arg[2]
12397    mac1 = arg[3]
12398  } else {
12399    defundef = substr(arg[1], 2)
12400    mac1 = arg[2]
12401  }
12402  split(mac1, mac2, "(") #)
12403  macro = mac2[1]
12404  prefix = substr(line, 1, index(line, defundef) - 1)
12405  if (D_is_set[macro]) {
12406    # Preserve the white space surrounding the "#".
12407    print prefix "define", macro P[macro] D[macro]
12408    next
12409  } else {
12410    # Replace #undef with comments.  This is necessary, for example,
12411    # in the case of _POSIX_SOURCE, which is predefined and required
12412    # on some systems where configure will not decide to define it.
12413    if (defundef == "undef") {
12414      print "/*", prefix defundef, macro, "*/"
12415      next
12416    }
12417  }
12418}
12419{ print }
12420_ACAWK
12421_ACEOF
12422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12423  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12424fi # test -n "$CONFIG_HEADERS"
12425
12426
12427eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12428shift
12429for ac_tag
12430do
12431  case $ac_tag in
12432  :[FHLC]) ac_mode=$ac_tag; continue;;
12433  esac
12434  case $ac_mode$ac_tag in
12435  :[FHL]*:*);;
12436  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12437  :[FH]-) ac_tag=-:-;;
12438  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12439  esac
12440  ac_save_IFS=$IFS
12441  IFS=:
12442  set x $ac_tag
12443  IFS=$ac_save_IFS
12444  shift
12445  ac_file=$1
12446  shift
12447
12448  case $ac_mode in
12449  :L) ac_source=$1;;
12450  :[FH])
12451    ac_file_inputs=
12452    for ac_f
12453    do
12454      case $ac_f in
12455      -) ac_f="$ac_tmp/stdin";;
12456      *) # Look for the file first in the build tree, then in the source tree
12457	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12458	 # because $ac_f cannot contain `:'.
12459	 test -f "$ac_f" ||
12460	   case $ac_f in
12461	   [\\/$]*) false;;
12462	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12463	   esac ||
12464	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12465      esac
12466      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12467      as_fn_append ac_file_inputs " '$ac_f'"
12468    done
12469
12470    # Let's still pretend it is `configure' which instantiates (i.e., don't
12471    # use $as_me), people would be surprised to read:
12472    #    /* config.h.  Generated by config.status.  */
12473    configure_input='Generated from '`
12474	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12475	`' by configure.'
12476    if test x"$ac_file" != x-; then
12477      configure_input="$ac_file.  $configure_input"
12478      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12479$as_echo "$as_me: creating $ac_file" >&6;}
12480    fi
12481    # Neutralize special characters interpreted by sed in replacement strings.
12482    case $configure_input in #(
12483    *\&* | *\|* | *\\* )
12484       ac_sed_conf_input=`$as_echo "$configure_input" |
12485       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12486    *) ac_sed_conf_input=$configure_input;;
12487    esac
12488
12489    case $ac_tag in
12490    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12491      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12492    esac
12493    ;;
12494  esac
12495
12496  ac_dir=`$as_dirname -- "$ac_file" ||
12497$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12498	 X"$ac_file" : 'X\(//\)[^/]' \| \
12499	 X"$ac_file" : 'X\(//\)$' \| \
12500	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12501$as_echo X"$ac_file" |
12502    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12503	    s//\1/
12504	    q
12505	  }
12506	  /^X\(\/\/\)[^/].*/{
12507	    s//\1/
12508	    q
12509	  }
12510	  /^X\(\/\/\)$/{
12511	    s//\1/
12512	    q
12513	  }
12514	  /^X\(\/\).*/{
12515	    s//\1/
12516	    q
12517	  }
12518	  s/.*/./; q'`
12519  as_dir="$ac_dir"; as_fn_mkdir_p
12520  ac_builddir=.
12521
12522case "$ac_dir" in
12523.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12524*)
12525  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12526  # A ".." for each directory in $ac_dir_suffix.
12527  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12528  case $ac_top_builddir_sub in
12529  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12530  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12531  esac ;;
12532esac
12533ac_abs_top_builddir=$ac_pwd
12534ac_abs_builddir=$ac_pwd$ac_dir_suffix
12535# for backward compatibility:
12536ac_top_builddir=$ac_top_build_prefix
12537
12538case $srcdir in
12539  .)  # We are building in place.
12540    ac_srcdir=.
12541    ac_top_srcdir=$ac_top_builddir_sub
12542    ac_abs_top_srcdir=$ac_pwd ;;
12543  [\\/]* | ?:[\\/]* )  # Absolute name.
12544    ac_srcdir=$srcdir$ac_dir_suffix;
12545    ac_top_srcdir=$srcdir
12546    ac_abs_top_srcdir=$srcdir ;;
12547  *) # Relative name.
12548    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12549    ac_top_srcdir=$ac_top_build_prefix$srcdir
12550    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12551esac
12552ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12553
12554
12555  case $ac_mode in
12556  :F)
12557  #
12558  # CONFIG_FILE
12559  #
12560
12561  case $INSTALL in
12562  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12563  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12564  esac
12565  ac_MKDIR_P=$MKDIR_P
12566  case $MKDIR_P in
12567  [\\/$]* | ?:[\\/]* ) ;;
12568  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12569  esac
12570_ACEOF
12571
12572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12573# If the template does not know about datarootdir, expand it.
12574# FIXME: This hack should be removed a few years after 2.60.
12575ac_datarootdir_hack=; ac_datarootdir_seen=
12576ac_sed_dataroot='
12577/datarootdir/ {
12578  p
12579  q
12580}
12581/@datadir@/p
12582/@docdir@/p
12583/@infodir@/p
12584/@localedir@/p
12585/@mandir@/p'
12586case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12587*datarootdir*) ac_datarootdir_seen=yes;;
12588*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12590$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12591_ACEOF
12592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12593  ac_datarootdir_hack='
12594  s&@datadir@&$datadir&g
12595  s&@docdir@&$docdir&g
12596  s&@infodir@&$infodir&g
12597  s&@localedir@&$localedir&g
12598  s&@mandir@&$mandir&g
12599  s&\\\${datarootdir}&$datarootdir&g' ;;
12600esac
12601_ACEOF
12602
12603# Neutralize VPATH when `$srcdir' = `.'.
12604# Shell code in configure.ac might set extrasub.
12605# FIXME: do we really want to maintain this feature?
12606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12607ac_sed_extra="$ac_vpsub
12608$extrasub
12609_ACEOF
12610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12611:t
12612/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12613s|@configure_input@|$ac_sed_conf_input|;t t
12614s&@top_builddir@&$ac_top_builddir_sub&;t t
12615s&@top_build_prefix@&$ac_top_build_prefix&;t t
12616s&@srcdir@&$ac_srcdir&;t t
12617s&@abs_srcdir@&$ac_abs_srcdir&;t t
12618s&@top_srcdir@&$ac_top_srcdir&;t t
12619s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12620s&@builddir@&$ac_builddir&;t t
12621s&@abs_builddir@&$ac_abs_builddir&;t t
12622s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12623s&@INSTALL@&$ac_INSTALL&;t t
12624s&@MKDIR_P@&$ac_MKDIR_P&;t t
12625$ac_datarootdir_hack
12626"
12627eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12628  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12629
12630test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12631  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12632  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12633      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12634  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12635which seems to be undefined.  Please make sure it is defined" >&5
12636$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12637which seems to be undefined.  Please make sure it is defined" >&2;}
12638
12639  rm -f "$ac_tmp/stdin"
12640  case $ac_file in
12641  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12642  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12643  esac \
12644  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12645 ;;
12646  :H)
12647  #
12648  # CONFIG_HEADER
12649  #
12650  if test x"$ac_file" != x-; then
12651    {
12652      $as_echo "/* $configure_input  */" \
12653      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12654    } >"$ac_tmp/config.h" \
12655      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12656    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12657      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12658$as_echo "$as_me: $ac_file is unchanged" >&6;}
12659    else
12660      rm -f "$ac_file"
12661      mv "$ac_tmp/config.h" "$ac_file" \
12662	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12663    fi
12664  else
12665    $as_echo "/* $configure_input  */" \
12666      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12667      || as_fn_error $? "could not create -" "$LINENO" 5
12668  fi
12669# Compute "$ac_file"'s index in $config_headers.
12670_am_arg="$ac_file"
12671_am_stamp_count=1
12672for _am_header in $config_headers :; do
12673  case $_am_header in
12674    $_am_arg | $_am_arg:* )
12675      break ;;
12676    * )
12677      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12678  esac
12679done
12680echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12681$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12683	 X"$_am_arg" : 'X\(//\)$' \| \
12684	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12685$as_echo X"$_am_arg" |
12686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12687	    s//\1/
12688	    q
12689	  }
12690	  /^X\(\/\/\)[^/].*/{
12691	    s//\1/
12692	    q
12693	  }
12694	  /^X\(\/\/\)$/{
12695	    s//\1/
12696	    q
12697	  }
12698	  /^X\(\/\).*/{
12699	    s//\1/
12700	    q
12701	  }
12702	  s/.*/./; q'`/stamp-h$_am_stamp_count
12703 ;;
12704
12705  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12706$as_echo "$as_me: executing $ac_file commands" >&6;}
12707 ;;
12708  esac
12709
12710
12711  case $ac_file$ac_mode in
12712    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12713  # Older Autoconf quotes --file arguments for eval, but not when files
12714  # are listed without --file.  Let's play safe and only enable the eval
12715  # if we detect the quoting.
12716  case $CONFIG_FILES in
12717  *\'*) eval set x "$CONFIG_FILES" ;;
12718  *)   set x $CONFIG_FILES ;;
12719  esac
12720  shift
12721  for mf
12722  do
12723    # Strip MF so we end up with the name of the file.
12724    mf=`echo "$mf" | sed -e 's/:.*$//'`
12725    # Check whether this is an Automake generated Makefile or not.
12726    # We used to match only the files named 'Makefile.in', but
12727    # some people rename them; so instead we look at the file content.
12728    # Grep'ing the first line is not enough: some people post-process
12729    # each Makefile.in and add a new line on top of each file to say so.
12730    # Grep'ing the whole file is not good either: AIX grep has a line
12731    # limit of 2048, but all sed's we know have understand at least 4000.
12732    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12733      dirpart=`$as_dirname -- "$mf" ||
12734$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12735	 X"$mf" : 'X\(//\)[^/]' \| \
12736	 X"$mf" : 'X\(//\)$' \| \
12737	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12738$as_echo X"$mf" |
12739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12740	    s//\1/
12741	    q
12742	  }
12743	  /^X\(\/\/\)[^/].*/{
12744	    s//\1/
12745	    q
12746	  }
12747	  /^X\(\/\/\)$/{
12748	    s//\1/
12749	    q
12750	  }
12751	  /^X\(\/\).*/{
12752	    s//\1/
12753	    q
12754	  }
12755	  s/.*/./; q'`
12756    else
12757      continue
12758    fi
12759    # Extract the definition of DEPDIR, am__include, and am__quote
12760    # from the Makefile without running 'make'.
12761    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12762    test -z "$DEPDIR" && continue
12763    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12764    test -z "$am__include" && continue
12765    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12766    # Find all dependency output files, they are included files with
12767    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12768    # simplest approach to changing $(DEPDIR) to its actual value in the
12769    # expansion.
12770    for file in `sed -n "
12771      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12772	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12773      # Make sure the directory exists.
12774      test -f "$dirpart/$file" && continue
12775      fdir=`$as_dirname -- "$file" ||
12776$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777	 X"$file" : 'X\(//\)[^/]' \| \
12778	 X"$file" : 'X\(//\)$' \| \
12779	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12780$as_echo X"$file" |
12781    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12782	    s//\1/
12783	    q
12784	  }
12785	  /^X\(\/\/\)[^/].*/{
12786	    s//\1/
12787	    q
12788	  }
12789	  /^X\(\/\/\)$/{
12790	    s//\1/
12791	    q
12792	  }
12793	  /^X\(\/\).*/{
12794	    s//\1/
12795	    q
12796	  }
12797	  s/.*/./; q'`
12798      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12799      # echo "creating $dirpart/$file"
12800      echo '# dummy' > "$dirpart/$file"
12801    done
12802  done
12803}
12804 ;;
12805
12806  esac
12807done # for ac_tag
12808
12809
12810as_fn_exit 0
12811_ACEOF
12812ac_clean_files=$ac_clean_files_save
12813
12814test $ac_write_fail = 0 ||
12815  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12816
12817
12818# configure is writing to config.log, and then calls config.status.
12819# config.status does its own redirection, appending to config.log.
12820# Unfortunately, on DOS this fails, as config.log is still kept open
12821# by configure, so config.status won't be able to write to it; its
12822# output is simply discarded.  So we exec the FD to /dev/null,
12823# effectively closing config.log, so it can be properly (re)opened and
12824# appended to by config.status.  When coming back to configure, we
12825# need to make the FD available again.
12826if test "$no_create" != yes; then
12827  ac_cs_success=:
12828  ac_config_status_args=
12829  test "$silent" = yes &&
12830    ac_config_status_args="$ac_config_status_args --quiet"
12831  exec 5>/dev/null
12832  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12833  exec 5>>config.log
12834  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12835  # would make configure fail if this is the last instruction.
12836  $ac_cs_success || as_fn_exit 1
12837fi
12838if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12839  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12840$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12841fi
12842
12843