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