configure revision 62aeb71d
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xsetroot 1.1.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='xsetroot'
563PACKAGE_TARNAME='xsetroot'
564PACKAGE_VERSION='1.1.1'
565PACKAGE_STRING='xsetroot 1.1.1'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569ac_unique_file="Makefile.am"
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584#  include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589#  include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='am__EXEEXT_FALSE
607am__EXEEXT_TRUE
608LTLIBOBJS
609LIBOBJS
610LINT_FALSE
611LINT_TRUE
612LINT_FLAGS
613LINT
614XSETROOT_LIBS
615XSETROOT_CFLAGS
616AM_BACKSLASH
617AM_DEFAULT_VERBOSITY
618MAN_SUBSTS
619XORG_MAN_PAGE
620ADMIN_MAN_DIR
621DRIVER_MAN_DIR
622MISC_MAN_DIR
623FILE_MAN_DIR
624LIB_MAN_DIR
625APP_MAN_DIR
626ADMIN_MAN_SUFFIX
627DRIVER_MAN_SUFFIX
628MISC_MAN_SUFFIX
629FILE_MAN_SUFFIX
630LIB_MAN_SUFFIX
631APP_MAN_SUFFIX
632SED
633host_os
634host_vendor
635host_cpu
636host
637build_os
638build_vendor
639build_cpu
640build
641INSTALL_CMD
642PKG_CONFIG
643CHANGELOG_CMD
644STRICT_CFLAGS
645CWARNFLAGS
646BASE_CFLAGS
647EGREP
648GREP
649CPP
650am__fastdepCC_FALSE
651am__fastdepCC_TRUE
652CCDEPMODE
653am__nodep
654AMDEPBACKSLASH
655AMDEP_FALSE
656AMDEP_TRUE
657am__quote
658am__include
659DEPDIR
660OBJEXT
661EXEEXT
662ac_ct_CC
663CPPFLAGS
664LDFLAGS
665CFLAGS
666CC
667MAINT
668MAINTAINER_MODE_FALSE
669MAINTAINER_MODE_TRUE
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676mkdir_p
677MKDIR_P
678INSTALL_STRIP_PROGRAM
679STRIP
680install_sh
681MAKEINFO
682AUTOHEADER
683AUTOMAKE
684AUTOCONF
685ACLOCAL
686VERSION
687PACKAGE
688CYGPATH_W
689am__isrc
690INSTALL_DATA
691INSTALL_SCRIPT
692INSTALL_PROGRAM
693target_alias
694host_alias
695build_alias
696LIBS
697ECHO_T
698ECHO_N
699ECHO_C
700DEFS
701mandir
702localedir
703libdir
704psdir
705pdfdir
706dvidir
707htmldir
708infodir
709docdir
710oldincludedir
711includedir
712localstatedir
713sharedstatedir
714sysconfdir
715datadir
716datarootdir
717libexecdir
718sbindir
719bindir
720program_transform_name
721prefix
722exec_prefix
723PACKAGE_URL
724PACKAGE_BUGREPORT
725PACKAGE_STRING
726PACKAGE_VERSION
727PACKAGE_TARNAME
728PACKAGE_NAME
729PATH_SEPARATOR
730SHELL'
731ac_subst_files=''
732ac_user_opts='
733enable_option_checking
734enable_maintainer_mode
735enable_dependency_tracking
736enable_selective_werror
737enable_strict_compilation
738enable_silent_rules
739with_lint
740'
741      ac_precious_vars='build_alias
742host_alias
743target_alias
744CC
745CFLAGS
746LDFLAGS
747LIBS
748CPPFLAGS
749CPP
750PKG_CONFIG
751XSETROOT_CFLAGS
752XSETROOT_LIBS
753LINT
754LINT_FLAGS'
755
756
757# Initialize some variables set by options.
758ac_init_help=
759ac_init_version=false
760ac_unrecognized_opts=
761ac_unrecognized_sep=
762# The variables have the same names as the options, with
763# dashes changed to underlines.
764cache_file=/dev/null
765exec_prefix=NONE
766no_create=
767no_recursion=
768prefix=NONE
769program_prefix=NONE
770program_suffix=NONE
771program_transform_name=s,x,x,
772silent=
773site=
774srcdir=
775verbose=
776x_includes=NONE
777x_libraries=NONE
778
779# Installation directory options.
780# These are left unexpanded so users can "make install exec_prefix=/foo"
781# and all the variables that are supposed to be based on exec_prefix
782# by default will actually change.
783# Use braces instead of parens because sh, perl, etc. also accept them.
784# (The list follows the same order as the GNU Coding Standards.)
785bindir='${exec_prefix}/bin'
786sbindir='${exec_prefix}/sbin'
787libexecdir='${exec_prefix}/libexec'
788datarootdir='${prefix}/share'
789datadir='${datarootdir}'
790sysconfdir='${prefix}/etc'
791sharedstatedir='${prefix}/com'
792localstatedir='${prefix}/var'
793includedir='${prefix}/include'
794oldincludedir='/usr/include'
795docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796infodir='${datarootdir}/info'
797htmldir='${docdir}'
798dvidir='${docdir}'
799pdfdir='${docdir}'
800psdir='${docdir}'
801libdir='${exec_prefix}/lib'
802localedir='${datarootdir}/locale'
803mandir='${datarootdir}/man'
804
805ac_prev=
806ac_dashdash=
807for ac_option
808do
809  # If the previous option needs an argument, assign it.
810  if test -n "$ac_prev"; then
811    eval $ac_prev=\$ac_option
812    ac_prev=
813    continue
814  fi
815
816  case $ac_option in
817  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818  *=)   ac_optarg= ;;
819  *)    ac_optarg=yes ;;
820  esac
821
822  # Accept the important Cygnus configure options, so we can diagnose typos.
823
824  case $ac_dashdash$ac_option in
825  --)
826    ac_dashdash=yes ;;
827
828  -bindir | --bindir | --bindi | --bind | --bin | --bi)
829    ac_prev=bindir ;;
830  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831    bindir=$ac_optarg ;;
832
833  -build | --build | --buil | --bui | --bu)
834    ac_prev=build_alias ;;
835  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836    build_alias=$ac_optarg ;;
837
838  -cache-file | --cache-file | --cache-fil | --cache-fi \
839  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840    ac_prev=cache_file ;;
841  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843    cache_file=$ac_optarg ;;
844
845  --config-cache | -C)
846    cache_file=config.cache ;;
847
848  -datadir | --datadir | --datadi | --datad)
849    ac_prev=datadir ;;
850  -datadir=* | --datadir=* | --datadi=* | --datad=*)
851    datadir=$ac_optarg ;;
852
853  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854  | --dataroo | --dataro | --datar)
855    ac_prev=datarootdir ;;
856  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858    datarootdir=$ac_optarg ;;
859
860  -disable-* | --disable-*)
861    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862    # Reject names that are not valid shell variable names.
863    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864      as_fn_error $? "invalid feature name: $ac_useropt"
865    ac_useropt_orig=$ac_useropt
866    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867    case $ac_user_opts in
868      *"
869"enable_$ac_useropt"
870"*) ;;
871      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872	 ac_unrecognized_sep=', ';;
873    esac
874    eval enable_$ac_useropt=no ;;
875
876  -docdir | --docdir | --docdi | --doc | --do)
877    ac_prev=docdir ;;
878  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879    docdir=$ac_optarg ;;
880
881  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882    ac_prev=dvidir ;;
883  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884    dvidir=$ac_optarg ;;
885
886  -enable-* | --enable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=\$ac_optarg ;;
901
902  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904  | --exec | --exe | --ex)
905    ac_prev=exec_prefix ;;
906  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908  | --exec=* | --exe=* | --ex=*)
909    exec_prefix=$ac_optarg ;;
910
911  -gas | --gas | --ga | --g)
912    # Obsolete; use --with-gas.
913    with_gas=yes ;;
914
915  -help | --help | --hel | --he | -h)
916    ac_init_help=long ;;
917  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918    ac_init_help=recursive ;;
919  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920    ac_init_help=short ;;
921
922  -host | --host | --hos | --ho)
923    ac_prev=host_alias ;;
924  -host=* | --host=* | --hos=* | --ho=*)
925    host_alias=$ac_optarg ;;
926
927  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928    ac_prev=htmldir ;;
929  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930  | --ht=*)
931    htmldir=$ac_optarg ;;
932
933  -includedir | --includedir | --includedi | --included | --include \
934  | --includ | --inclu | --incl | --inc)
935    ac_prev=includedir ;;
936  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937  | --includ=* | --inclu=* | --incl=* | --inc=*)
938    includedir=$ac_optarg ;;
939
940  -infodir | --infodir | --infodi | --infod | --info | --inf)
941    ac_prev=infodir ;;
942  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943    infodir=$ac_optarg ;;
944
945  -libdir | --libdir | --libdi | --libd)
946    ac_prev=libdir ;;
947  -libdir=* | --libdir=* | --libdi=* | --libd=*)
948    libdir=$ac_optarg ;;
949
950  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951  | --libexe | --libex | --libe)
952    ac_prev=libexecdir ;;
953  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954  | --libexe=* | --libex=* | --libe=*)
955    libexecdir=$ac_optarg ;;
956
957  -localedir | --localedir | --localedi | --localed | --locale)
958    ac_prev=localedir ;;
959  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960    localedir=$ac_optarg ;;
961
962  -localstatedir | --localstatedir | --localstatedi | --localstated \
963  | --localstate | --localstat | --localsta | --localst | --locals)
964    ac_prev=localstatedir ;;
965  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967    localstatedir=$ac_optarg ;;
968
969  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970    ac_prev=mandir ;;
971  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972    mandir=$ac_optarg ;;
973
974  -nfp | --nfp | --nf)
975    # Obsolete; use --without-fp.
976    with_fp=no ;;
977
978  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979  | --no-cr | --no-c | -n)
980    no_create=yes ;;
981
982  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984    no_recursion=yes ;;
985
986  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988  | --oldin | --oldi | --old | --ol | --o)
989    ac_prev=oldincludedir ;;
990  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993    oldincludedir=$ac_optarg ;;
994
995  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996    ac_prev=prefix ;;
997  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998    prefix=$ac_optarg ;;
999
1000  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001  | --program-pre | --program-pr | --program-p)
1002    ac_prev=program_prefix ;;
1003  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005    program_prefix=$ac_optarg ;;
1006
1007  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008  | --program-suf | --program-su | --program-s)
1009    ac_prev=program_suffix ;;
1010  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012    program_suffix=$ac_optarg ;;
1013
1014  -program-transform-name | --program-transform-name \
1015  | --program-transform-nam | --program-transform-na \
1016  | --program-transform-n | --program-transform- \
1017  | --program-transform | --program-transfor \
1018  | --program-transfo | --program-transf \
1019  | --program-trans | --program-tran \
1020  | --progr-tra | --program-tr | --program-t)
1021    ac_prev=program_transform_name ;;
1022  -program-transform-name=* | --program-transform-name=* \
1023  | --program-transform-nam=* | --program-transform-na=* \
1024  | --program-transform-n=* | --program-transform-=* \
1025  | --program-transform=* | --program-transfor=* \
1026  | --program-transfo=* | --program-transf=* \
1027  | --program-trans=* | --program-tran=* \
1028  | --progr-tra=* | --program-tr=* | --program-t=*)
1029    program_transform_name=$ac_optarg ;;
1030
1031  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032    ac_prev=pdfdir ;;
1033  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034    pdfdir=$ac_optarg ;;
1035
1036  -psdir | --psdir | --psdi | --psd | --ps)
1037    ac_prev=psdir ;;
1038  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039    psdir=$ac_optarg ;;
1040
1041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042  | -silent | --silent | --silen | --sile | --sil)
1043    silent=yes ;;
1044
1045  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046    ac_prev=sbindir ;;
1047  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048  | --sbi=* | --sb=*)
1049    sbindir=$ac_optarg ;;
1050
1051  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053  | --sharedst | --shareds | --shared | --share | --shar \
1054  | --sha | --sh)
1055    ac_prev=sharedstatedir ;;
1056  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059  | --sha=* | --sh=*)
1060    sharedstatedir=$ac_optarg ;;
1061
1062  -site | --site | --sit)
1063    ac_prev=site ;;
1064  -site=* | --site=* | --sit=*)
1065    site=$ac_optarg ;;
1066
1067  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068    ac_prev=srcdir ;;
1069  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070    srcdir=$ac_optarg ;;
1071
1072  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073  | --syscon | --sysco | --sysc | --sys | --sy)
1074    ac_prev=sysconfdir ;;
1075  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077    sysconfdir=$ac_optarg ;;
1078
1079  -target | --target | --targe | --targ | --tar | --ta | --t)
1080    ac_prev=target_alias ;;
1081  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082    target_alias=$ac_optarg ;;
1083
1084  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085    verbose=yes ;;
1086
1087  -version | --version | --versio | --versi | --vers | -V)
1088    ac_init_version=: ;;
1089
1090  -with-* | --with-*)
1091    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092    # Reject names that are not valid shell variable names.
1093    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094      as_fn_error $? "invalid package name: $ac_useropt"
1095    ac_useropt_orig=$ac_useropt
1096    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097    case $ac_user_opts in
1098      *"
1099"with_$ac_useropt"
1100"*) ;;
1101      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102	 ac_unrecognized_sep=', ';;
1103    esac
1104    eval with_$ac_useropt=\$ac_optarg ;;
1105
1106  -without-* | --without-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid package name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"with_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval with_$ac_useropt=no ;;
1121
1122  --x)
1123    # Obsolete; use --with-x.
1124    with_x=yes ;;
1125
1126  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127  | --x-incl | --x-inc | --x-in | --x-i)
1128    ac_prev=x_includes ;;
1129  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131    x_includes=$ac_optarg ;;
1132
1133  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135    ac_prev=x_libraries ;;
1136  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138    x_libraries=$ac_optarg ;;
1139
1140  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141Try \`$0 --help' for more information"
1142    ;;
1143
1144  *=*)
1145    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146    # Reject names that are not valid shell variable names.
1147    case $ac_envvar in #(
1148      '' | [0-9]* | *[!_$as_cr_alnum]* )
1149      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1150    esac
1151    eval $ac_envvar=\$ac_optarg
1152    export $ac_envvar ;;
1153
1154  *)
1155    # FIXME: should be removed in autoconf 3.0.
1156    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1160    ;;
1161
1162  esac
1163done
1164
1165if test -n "$ac_prev"; then
1166  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167  as_fn_error $? "missing argument to $ac_option"
1168fi
1169
1170if test -n "$ac_unrecognized_opts"; then
1171  case $enable_option_checking in
1172    no) ;;
1173    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175  esac
1176fi
1177
1178# Check all directory arguments for consistency.
1179for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180		datadir sysconfdir sharedstatedir localstatedir includedir \
1181		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182		libdir localedir mandir
1183do
1184  eval ac_val=\$$ac_var
1185  # Remove trailing slashes.
1186  case $ac_val in
1187    */ )
1188      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189      eval $ac_var=\$ac_val;;
1190  esac
1191  # Be sure to have absolute directory names.
1192  case $ac_val in
1193    [\\/$]* | ?:[\\/]* )  continue;;
1194    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195  esac
1196  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197done
1198
1199# There might be people who depend on the old broken behavior: `$host'
1200# used to hold the argument of --host etc.
1201# FIXME: To remove some day.
1202build=$build_alias
1203host=$host_alias
1204target=$target_alias
1205
1206# FIXME: To remove some day.
1207if test "x$host_alias" != x; then
1208  if test "x$build_alias" = x; then
1209    cross_compiling=maybe
1210    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211    If a cross compiler is detected then cross compile mode will be used" >&2
1212  elif test "x$build_alias" != "x$host_alias"; then
1213    cross_compiling=yes
1214  fi
1215fi
1216
1217ac_tool_prefix=
1218test -n "$host_alias" && ac_tool_prefix=$host_alias-
1219
1220test "$silent" = yes && exec 6>/dev/null
1221
1222
1223ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224ac_ls_di=`ls -di .` &&
1225ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226  as_fn_error $? "working directory cannot be determined"
1227test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228  as_fn_error $? "pwd does not report name of working directory"
1229
1230
1231# Find the source files, if location was not specified.
1232if test -z "$srcdir"; then
1233  ac_srcdir_defaulted=yes
1234  # Try the directory containing this script, then the parent directory.
1235  ac_confdir=`$as_dirname -- "$as_myself" ||
1236$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237	 X"$as_myself" : 'X\(//\)[^/]' \| \
1238	 X"$as_myself" : 'X\(//\)$' \| \
1239	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240$as_echo X"$as_myself" |
1241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\/\)[^/].*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  /^X\(\/\/\)$/{
1250	    s//\1/
1251	    q
1252	  }
1253	  /^X\(\/\).*/{
1254	    s//\1/
1255	    q
1256	  }
1257	  s/.*/./; q'`
1258  srcdir=$ac_confdir
1259  if test ! -r "$srcdir/$ac_unique_file"; then
1260    srcdir=..
1261  fi
1262else
1263  ac_srcdir_defaulted=no
1264fi
1265if test ! -r "$srcdir/$ac_unique_file"; then
1266  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1268fi
1269ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270ac_abs_confdir=`(
1271	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272	pwd)`
1273# When building in place, set srcdir=.
1274if test "$ac_abs_confdir" = "$ac_pwd"; then
1275  srcdir=.
1276fi
1277# Remove unnecessary trailing slashes from srcdir.
1278# Double slashes in file names in object file debugging info
1279# mess up M-x gdb in Emacs.
1280case $srcdir in
1281*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282esac
1283for ac_var in $ac_precious_vars; do
1284  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285  eval ac_env_${ac_var}_value=\$${ac_var}
1286  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288done
1289
1290#
1291# Report the --help message.
1292#
1293if test "$ac_init_help" = "long"; then
1294  # Omit some internal or obsolete options to make the list less imposing.
1295  # This message is too long to be a string in the A/UX 3.1 sh.
1296  cat <<_ACEOF
1297\`configure' configures xsetroot 1.1.1 to adapt to many kinds of systems.
1298
1299Usage: $0 [OPTION]... [VAR=VALUE]...
1300
1301To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302VAR=VALUE.  See below for descriptions of some of the useful variables.
1303
1304Defaults for the options are specified in brackets.
1305
1306Configuration:
1307  -h, --help              display this help and exit
1308      --help=short        display options specific to this package
1309      --help=recursive    display the short help of all the included packages
1310  -V, --version           display version information and exit
1311  -q, --quiet, --silent   do not print \`checking ...' messages
1312      --cache-file=FILE   cache test results in FILE [disabled]
1313  -C, --config-cache      alias for \`--cache-file=config.cache'
1314  -n, --no-create         do not create output files
1315      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1316
1317Installation directories:
1318  --prefix=PREFIX         install architecture-independent files in PREFIX
1319                          [$ac_default_prefix]
1320  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1321                          [PREFIX]
1322
1323By default, \`make install' will install all the files in
1324\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1325an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326for instance \`--prefix=\$HOME'.
1327
1328For better control, use the options below.
1329
1330Fine tuning of the installation directories:
1331  --bindir=DIR            user executables [EPREFIX/bin]
1332  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1333  --libexecdir=DIR        program executables [EPREFIX/libexec]
1334  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1335  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1336  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1337  --libdir=DIR            object code libraries [EPREFIX/lib]
1338  --includedir=DIR        C header files [PREFIX/include]
1339  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1340  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1341  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1342  --infodir=DIR           info documentation [DATAROOTDIR/info]
1343  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1344  --mandir=DIR            man documentation [DATAROOTDIR/man]
1345  --docdir=DIR            documentation root [DATAROOTDIR/doc/xsetroot]
1346  --htmldir=DIR           html documentation [DOCDIR]
1347  --dvidir=DIR            dvi documentation [DOCDIR]
1348  --pdfdir=DIR            pdf documentation [DOCDIR]
1349  --psdir=DIR             ps documentation [DOCDIR]
1350_ACEOF
1351
1352  cat <<\_ACEOF
1353
1354Program names:
1355  --program-prefix=PREFIX            prepend PREFIX to installed program names
1356  --program-suffix=SUFFIX            append SUFFIX to installed program names
1357  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1358
1359System types:
1360  --build=BUILD     configure for building on BUILD [guessed]
1361  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1362_ACEOF
1363fi
1364
1365if test -n "$ac_init_help"; then
1366  case $ac_init_help in
1367     short | recursive ) echo "Configuration of xsetroot 1.1.1:";;
1368   esac
1369  cat <<\_ACEOF
1370
1371Optional Features:
1372  --disable-option-checking  ignore unrecognized --enable/--with options
1373  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1374  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1375  --enable-maintainer-mode  enable make rules and dependencies not useful
1376			  (and sometimes confusing) to the casual installer
1377  --disable-dependency-tracking  speeds up one-time build
1378  --enable-dependency-tracking   do not reject slow dependency extractors
1379  --disable-selective-werror
1380                          Turn off selective compiler errors. (default:
1381                          enabled)
1382  --enable-strict-compilation
1383                          Enable all warnings from compiler and make them
1384                          errors (default: disabled)
1385  --enable-silent-rules          less verbose build output (undo: `make V=1')
1386  --disable-silent-rules         verbose build output (undo: `make V=0')
1387
1388Optional Packages:
1389  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391  --with-lint             Use a lint-style source code checker (default:
1392                          disabled)
1393
1394Some influential environment variables:
1395  CC          C compiler command
1396  CFLAGS      C compiler flags
1397  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1398              nonstandard directory <lib dir>
1399  LIBS        libraries to pass to the linker, e.g. -l<library>
1400  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401              you have headers in a nonstandard directory <include dir>
1402  CPP         C preprocessor
1403  PKG_CONFIG  path to pkg-config utility
1404  XSETROOT_CFLAGS
1405              C compiler flags for XSETROOT, overriding pkg-config
1406  XSETROOT_LIBS
1407              linker flags for XSETROOT, overriding pkg-config
1408  LINT        Path to a lint-style command
1409  LINT_FLAGS  Flags for the lint-style command
1410
1411Use these variables to override the choices made by `configure' or to help
1412it to find libraries and programs with nonstandard names/locations.
1413
1414Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1415_ACEOF
1416ac_status=$?
1417fi
1418
1419if test "$ac_init_help" = "recursive"; then
1420  # If there are subdirs, report their specific --help.
1421  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422    test -d "$ac_dir" ||
1423      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424      continue
1425    ac_builddir=.
1426
1427case "$ac_dir" in
1428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429*)
1430  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431  # A ".." for each directory in $ac_dir_suffix.
1432  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433  case $ac_top_builddir_sub in
1434  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436  esac ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
1442
1443case $srcdir in
1444  .)  # We are building in place.
1445    ac_srcdir=.
1446    ac_top_srcdir=$ac_top_builddir_sub
1447    ac_abs_top_srcdir=$ac_pwd ;;
1448  [\\/]* | ?:[\\/]* )  # Absolute name.
1449    ac_srcdir=$srcdir$ac_dir_suffix;
1450    ac_top_srcdir=$srcdir
1451    ac_abs_top_srcdir=$srcdir ;;
1452  *) # Relative name.
1453    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454    ac_top_srcdir=$ac_top_build_prefix$srcdir
1455    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456esac
1457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458
1459    cd "$ac_dir" || { ac_status=$?; continue; }
1460    # Check for guested configure.
1461    if test -f "$ac_srcdir/configure.gnu"; then
1462      echo &&
1463      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464    elif test -f "$ac_srcdir/configure"; then
1465      echo &&
1466      $SHELL "$ac_srcdir/configure" --help=recursive
1467    else
1468      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469    fi || ac_status=$?
1470    cd "$ac_pwd" || { ac_status=$?; break; }
1471  done
1472fi
1473
1474test -n "$ac_init_help" && exit $ac_status
1475if $ac_init_version; then
1476  cat <<\_ACEOF
1477xsetroot configure 1.1.1
1478generated by GNU Autoconf 2.68
1479
1480Copyright (C) 2010 Free Software Foundation, Inc.
1481This configure script is free software; the Free Software Foundation
1482gives unlimited permission to copy, distribute and modify it.
1483_ACEOF
1484  exit
1485fi
1486
1487## ------------------------ ##
1488## Autoconf initialization. ##
1489## ------------------------ ##
1490
1491# ac_fn_c_try_compile LINENO
1492# --------------------------
1493# Try to compile conftest.$ac_ext, and return whether this succeeded.
1494ac_fn_c_try_compile ()
1495{
1496  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497  rm -f conftest.$ac_objext
1498  if { { ac_try="$ac_compile"
1499case "(($ac_try" in
1500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501  *) ac_try_echo=$ac_try;;
1502esac
1503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504$as_echo "$ac_try_echo"; } >&5
1505  (eval "$ac_compile") 2>conftest.err
1506  ac_status=$?
1507  if test -s conftest.err; then
1508    grep -v '^ *+' conftest.err >conftest.er1
1509    cat conftest.er1 >&5
1510    mv -f conftest.er1 conftest.err
1511  fi
1512  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513  test $ac_status = 0; } && {
1514	 test -z "$ac_c_werror_flag" ||
1515	 test ! -s conftest.err
1516       } && test -s conftest.$ac_objext; then :
1517  ac_retval=0
1518else
1519  $as_echo "$as_me: failed program was:" >&5
1520sed 's/^/| /' conftest.$ac_ext >&5
1521
1522	ac_retval=1
1523fi
1524  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525  as_fn_set_status $ac_retval
1526
1527} # ac_fn_c_try_compile
1528
1529# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1530# ---------------------------------------------
1531# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1532# accordingly.
1533ac_fn_c_check_decl ()
1534{
1535  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536  as_decl_name=`echo $2|sed 's/ *(.*//'`
1537  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1539$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1540if eval \${$3+:} false; then :
1541  $as_echo_n "(cached) " >&6
1542else
1543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1544/* end confdefs.h.  */
1545$4
1546int
1547main ()
1548{
1549#ifndef $as_decl_name
1550#ifdef __cplusplus
1551  (void) $as_decl_use;
1552#else
1553  (void) $as_decl_name;
1554#endif
1555#endif
1556
1557  ;
1558  return 0;
1559}
1560_ACEOF
1561if ac_fn_c_try_compile "$LINENO"; then :
1562  eval "$3=yes"
1563else
1564  eval "$3=no"
1565fi
1566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567fi
1568eval ac_res=\$$3
1569	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570$as_echo "$ac_res" >&6; }
1571  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
1573} # ac_fn_c_check_decl
1574
1575# ac_fn_c_try_cpp LINENO
1576# ----------------------
1577# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_cpp ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  if { { ac_try="$ac_cpp conftest.$ac_ext"
1582case "(($ac_try" in
1583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584  *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1589  ac_status=$?
1590  if test -s conftest.err; then
1591    grep -v '^ *+' conftest.err >conftest.er1
1592    cat conftest.er1 >&5
1593    mv -f conftest.er1 conftest.err
1594  fi
1595  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596  test $ac_status = 0; } > conftest.i && {
1597	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1598	 test ! -s conftest.err
1599       }; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605    ac_retval=1
1606fi
1607  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608  as_fn_set_status $ac_retval
1609
1610} # ac_fn_c_try_cpp
1611
1612# ac_fn_c_try_run LINENO
1613# ----------------------
1614# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1615# that executables *can* be run.
1616ac_fn_c_try_run ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  if { { ac_try="$ac_link"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625$as_echo "$ac_try_echo"; } >&5
1626  (eval "$ac_link") 2>&5
1627  ac_status=$?
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1630  { { case "(($ac_try" in
1631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632  *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636  (eval "$ac_try") 2>&5
1637  ac_status=$?
1638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639  test $ac_status = 0; }; }; then :
1640  ac_retval=0
1641else
1642  $as_echo "$as_me: program exited with status $ac_status" >&5
1643       $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646       ac_retval=$ac_status
1647fi
1648  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_run
1653
1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655# -------------------------------------------------------
1656# Tests whether HEADER exists and can be compiled using the include files in
1657# INCLUDES, setting the cache variable VAR accordingly.
1658ac_fn_c_check_header_compile ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662$as_echo_n "checking for $2... " >&6; }
1663if eval \${$3+:} false; then :
1664  $as_echo_n "(cached) " >&6
1665else
1666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h.  */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672  eval "$3=yes"
1673else
1674  eval "$3=no"
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677fi
1678eval ac_res=\$$3
1679	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680$as_echo "$ac_res" >&6; }
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_compile
1684
1685# ac_fn_c_try_link LINENO
1686# -----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_link ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  rm -f conftest.$ac_objext conftest$ac_exeext
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>conftest.err
1700  ac_status=$?
1701  if test -s conftest.err; then
1702    grep -v '^ *+' conftest.err >conftest.er1
1703    cat conftest.er1 >&5
1704    mv -f conftest.er1 conftest.err
1705  fi
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; } && {
1708	 test -z "$ac_c_werror_flag" ||
1709	 test ! -s conftest.err
1710       } && test -s conftest$ac_exeext && {
1711	 test "$cross_compiling" = yes ||
1712	 $as_test_x conftest$ac_exeext
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719	ac_retval=1
1720fi
1721  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723  # interfere with the next link command; also delete a directory that is
1724  # left behind by Apple's compiler.  We do this before executing the actions.
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_link
1730cat >config.log <<_ACEOF
1731This file contains any messages produced by compilers while
1732running configure, to aid debugging if configure makes a mistake.
1733
1734It was created by xsetroot $as_me 1.1.1, which was
1735generated by GNU Autoconf 2.68.  Invocation command line was
1736
1737  $ $0 $@
1738
1739_ACEOF
1740exec 5>>config.log
1741{
1742cat <<_ASUNAME
1743## --------- ##
1744## Platform. ##
1745## --------- ##
1746
1747hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1748uname -m = `(uname -m) 2>/dev/null || echo unknown`
1749uname -r = `(uname -r) 2>/dev/null || echo unknown`
1750uname -s = `(uname -s) 2>/dev/null || echo unknown`
1751uname -v = `(uname -v) 2>/dev/null || echo unknown`
1752
1753/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1754/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1755
1756/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1757/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1758/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1759/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1760/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1761/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1762/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1763
1764_ASUNAME
1765
1766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769  IFS=$as_save_IFS
1770  test -z "$as_dir" && as_dir=.
1771    $as_echo "PATH: $as_dir"
1772  done
1773IFS=$as_save_IFS
1774
1775} >&5
1776
1777cat >&5 <<_ACEOF
1778
1779
1780## ----------- ##
1781## Core tests. ##
1782## ----------- ##
1783
1784_ACEOF
1785
1786
1787# Keep a trace of the command line.
1788# Strip out --no-create and --no-recursion so they do not pile up.
1789# Strip out --silent because we don't want to record it for future runs.
1790# Also quote any args containing shell meta-characters.
1791# Make two passes to allow for proper duplicate-argument suppression.
1792ac_configure_args=
1793ac_configure_args0=
1794ac_configure_args1=
1795ac_must_keep_next=false
1796for ac_pass in 1 2
1797do
1798  for ac_arg
1799  do
1800    case $ac_arg in
1801    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1802    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1803    | -silent | --silent | --silen | --sile | --sil)
1804      continue ;;
1805    *\'*)
1806      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1807    esac
1808    case $ac_pass in
1809    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1810    2)
1811      as_fn_append ac_configure_args1 " '$ac_arg'"
1812      if test $ac_must_keep_next = true; then
1813	ac_must_keep_next=false # Got value, back to normal.
1814      else
1815	case $ac_arg in
1816	  *=* | --config-cache | -C | -disable-* | --disable-* \
1817	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1818	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1819	  | -with-* | --with-* | -without-* | --without-* | --x)
1820	    case "$ac_configure_args0 " in
1821	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1822	    esac
1823	    ;;
1824	  -* ) ac_must_keep_next=true ;;
1825	esac
1826      fi
1827      as_fn_append ac_configure_args " '$ac_arg'"
1828      ;;
1829    esac
1830  done
1831done
1832{ ac_configure_args0=; unset ac_configure_args0;}
1833{ ac_configure_args1=; unset ac_configure_args1;}
1834
1835# When interrupted or exit'd, cleanup temporary files, and complete
1836# config.log.  We remove comments because anyway the quotes in there
1837# would cause problems or look ugly.
1838# WARNING: Use '\'' to represent an apostrophe within the trap.
1839# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1840trap 'exit_status=$?
1841  # Save into config.log some information that might help in debugging.
1842  {
1843    echo
1844
1845    $as_echo "## ---------------- ##
1846## Cache variables. ##
1847## ---------------- ##"
1848    echo
1849    # The following way of writing the cache mishandles newlines in values,
1850(
1851  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1852    eval ac_val=\$$ac_var
1853    case $ac_val in #(
1854    *${as_nl}*)
1855      case $ac_var in #(
1856      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1857$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1858      esac
1859      case $ac_var in #(
1860      _ | IFS | as_nl) ;; #(
1861      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1862      *) { eval $ac_var=; unset $ac_var;} ;;
1863      esac ;;
1864    esac
1865  done
1866  (set) 2>&1 |
1867    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868    *${as_nl}ac_space=\ *)
1869      sed -n \
1870	"s/'\''/'\''\\\\'\'''\''/g;
1871	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872      ;; #(
1873    *)
1874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1875      ;;
1876    esac |
1877    sort
1878)
1879    echo
1880
1881    $as_echo "## ----------------- ##
1882## Output variables. ##
1883## ----------------- ##"
1884    echo
1885    for ac_var in $ac_subst_vars
1886    do
1887      eval ac_val=\$$ac_var
1888      case $ac_val in
1889      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890      esac
1891      $as_echo "$ac_var='\''$ac_val'\''"
1892    done | sort
1893    echo
1894
1895    if test -n "$ac_subst_files"; then
1896      $as_echo "## ------------------- ##
1897## File substitutions. ##
1898## ------------------- ##"
1899      echo
1900      for ac_var in $ac_subst_files
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    fi
1910
1911    if test -s confdefs.h; then
1912      $as_echo "## ----------- ##
1913## confdefs.h. ##
1914## ----------- ##"
1915      echo
1916      cat confdefs.h
1917      echo
1918    fi
1919    test "$ac_signal" != 0 &&
1920      $as_echo "$as_me: caught signal $ac_signal"
1921    $as_echo "$as_me: exit $exit_status"
1922  } >&5
1923  rm -f core *.core core.conftest.* &&
1924    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925    exit $exit_status
1926' 0
1927for ac_signal in 1 2 13 15; do
1928  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1929done
1930ac_signal=0
1931
1932# confdefs.h avoids OS command line length limits that DEFS can exceed.
1933rm -f -r conftest* confdefs.h
1934
1935$as_echo "/* confdefs.h */" > confdefs.h
1936
1937# Predefined preprocessor variables.
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_NAME "$PACKAGE_NAME"
1941_ACEOF
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945_ACEOF
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_VERSION "$PACKAGE_VERSION"
1949_ACEOF
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_STRING "$PACKAGE_STRING"
1953_ACEOF
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1957_ACEOF
1958
1959cat >>confdefs.h <<_ACEOF
1960#define PACKAGE_URL "$PACKAGE_URL"
1961_ACEOF
1962
1963
1964# Let the site file select an alternate cache file if it wants to.
1965# Prefer an explicitly selected file to automatically selected ones.
1966ac_site_file1=NONE
1967ac_site_file2=NONE
1968if test -n "$CONFIG_SITE"; then
1969  # We do not want a PATH search for config.site.
1970  case $CONFIG_SITE in #((
1971    -*)  ac_site_file1=./$CONFIG_SITE;;
1972    */*) ac_site_file1=$CONFIG_SITE;;
1973    *)   ac_site_file1=./$CONFIG_SITE;;
1974  esac
1975elif test "x$prefix" != xNONE; then
1976  ac_site_file1=$prefix/share/config.site
1977  ac_site_file2=$prefix/etc/config.site
1978else
1979  ac_site_file1=$ac_default_prefix/share/config.site
1980  ac_site_file2=$ac_default_prefix/etc/config.site
1981fi
1982for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1983do
1984  test "x$ac_site_file" = xNONE && continue
1985  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1986    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1988    sed 's/^/| /' "$ac_site_file" >&5
1989    . "$ac_site_file" \
1990      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992as_fn_error $? "failed to load site script $ac_site_file
1993See \`config.log' for more details" "$LINENO" 5; }
1994  fi
1995done
1996
1997if test -r "$cache_file"; then
1998  # Some versions of bash will fail to source /dev/null (special files
1999  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2000  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003    case $cache_file in
2004      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005      *)                      . "./$cache_file";;
2006    esac
2007  fi
2008else
2009  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011  >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019  eval ac_new_set=\$ac_env_${ac_var}_set
2020  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021  eval ac_new_val=\$ac_env_${ac_var}_value
2022  case $ac_old_set,$ac_new_set in
2023    set,)
2024      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026      ac_cache_corrupted=: ;;
2027    ,set)
2028      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030      ac_cache_corrupted=: ;;
2031    ,);;
2032    *)
2033      if test "x$ac_old_val" != "x$ac_new_val"; then
2034	# differences in whitespace do not lead to failure.
2035	ac_old_val_w=`echo x $ac_old_val`
2036	ac_new_val_w=`echo x $ac_new_val`
2037	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040	  ac_cache_corrupted=:
2041	else
2042	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044	  eval $ac_var=\$ac_old_val
2045	fi
2046	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2047$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050      fi;;
2051  esac
2052  # Pass precious variables to config.status.
2053  if test "$ac_new_set" = set; then
2054    case $ac_new_val in
2055    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056    *) ac_arg=$ac_var=$ac_new_val ;;
2057    esac
2058    case " $ac_configure_args " in
2059      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2061    esac
2062  fi
2063done
2064if $ac_cache_corrupted; then
2065  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2070fi
2071## -------------------- ##
2072## Main body of script. ##
2073## -------------------- ##
2074
2075ac_ext=c
2076ac_cpp='$CPP $CPPFLAGS'
2077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079ac_compiler_gnu=$ac_cv_c_compiler_gnu
2080
2081
2082
2083ac_config_headers="$ac_config_headers config.h"
2084
2085
2086# Initialize Automake
2087am__api_version='1.11'
2088
2089ac_aux_dir=
2090for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2091  if test -f "$ac_dir/install-sh"; then
2092    ac_aux_dir=$ac_dir
2093    ac_install_sh="$ac_aux_dir/install-sh -c"
2094    break
2095  elif test -f "$ac_dir/install.sh"; then
2096    ac_aux_dir=$ac_dir
2097    ac_install_sh="$ac_aux_dir/install.sh -c"
2098    break
2099  elif test -f "$ac_dir/shtool"; then
2100    ac_aux_dir=$ac_dir
2101    ac_install_sh="$ac_aux_dir/shtool install -c"
2102    break
2103  fi
2104done
2105if test -z "$ac_aux_dir"; then
2106  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2107fi
2108
2109# These three variables are undocumented and unsupported,
2110# and are intended to be withdrawn in a future Autoconf release.
2111# They can cause serious problems if a builder's source tree is in a directory
2112# whose full name contains unusual characters.
2113ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2114ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2115ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2116
2117
2118# Find a good install program.  We prefer a C program (faster),
2119# so one script is as good as another.  But avoid the broken or
2120# incompatible versions:
2121# SysV /etc/install, /usr/sbin/install
2122# SunOS /usr/etc/install
2123# IRIX /sbin/install
2124# AIX /bin/install
2125# AmigaOS /C/install, which installs bootblocks on floppy discs
2126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2129# OS/2's system install, which has a completely different semantic
2130# ./install, which can be erroneously created by make from ./install.sh.
2131# Reject install programs that cannot install multiple files.
2132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2133$as_echo_n "checking for a BSD-compatible install... " >&6; }
2134if test -z "$INSTALL"; then
2135if ${ac_cv_path_install+:} false; then :
2136  $as_echo_n "(cached) " >&6
2137else
2138  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH
2140do
2141  IFS=$as_save_IFS
2142  test -z "$as_dir" && as_dir=.
2143    # Account for people who put trailing slashes in PATH elements.
2144case $as_dir/ in #((
2145  ./ | .// | /[cC]/* | \
2146  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2147  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2148  /usr/ucb/* ) ;;
2149  *)
2150    # OSF1 and SCO ODT 3.0 have their own names for install.
2151    # Don't use installbsd from OSF since it installs stuff as root
2152    # by default.
2153    for ac_prog in ginstall scoinst install; do
2154      for ac_exec_ext in '' $ac_executable_extensions; do
2155	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2156	  if test $ac_prog = install &&
2157	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2158	    # AIX install.  It has an incompatible calling convention.
2159	    :
2160	  elif test $ac_prog = install &&
2161	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162	    # program-specific install script used by HP pwplus--don't use.
2163	    :
2164	  else
2165	    rm -rf conftest.one conftest.two conftest.dir
2166	    echo one > conftest.one
2167	    echo two > conftest.two
2168	    mkdir conftest.dir
2169	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2170	      test -s conftest.one && test -s conftest.two &&
2171	      test -s conftest.dir/conftest.one &&
2172	      test -s conftest.dir/conftest.two
2173	    then
2174	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2175	      break 3
2176	    fi
2177	  fi
2178	fi
2179      done
2180    done
2181    ;;
2182esac
2183
2184  done
2185IFS=$as_save_IFS
2186
2187rm -rf conftest.one conftest.two conftest.dir
2188
2189fi
2190  if test "${ac_cv_path_install+set}" = set; then
2191    INSTALL=$ac_cv_path_install
2192  else
2193    # As a last resort, use the slow shell script.  Don't cache a
2194    # value for INSTALL within a source directory, because that will
2195    # break other packages using the cache if that directory is
2196    # removed, or if the value is a relative name.
2197    INSTALL=$ac_install_sh
2198  fi
2199fi
2200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2201$as_echo "$INSTALL" >&6; }
2202
2203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204# It thinks the first close brace ends the variable substitution.
2205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2206
2207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2208
2209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2210
2211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2212$as_echo_n "checking whether build environment is sane... " >&6; }
2213# Just in case
2214sleep 1
2215echo timestamp > conftest.file
2216# Reject unsafe characters in $srcdir or the absolute working directory
2217# name.  Accept space and tab only in the latter.
2218am_lf='
2219'
2220case `pwd` in
2221  *[\\\"\#\$\&\'\`$am_lf]*)
2222    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2223esac
2224case $srcdir in
2225  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2226    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2227esac
2228
2229# Do `set' in a subshell so we don't clobber the current shell's
2230# arguments.  Must try -L first in case configure is actually a
2231# symlink; some systems play weird games with the mod time of symlinks
2232# (eg FreeBSD returns the mod time of the symlink's containing
2233# directory).
2234if (
2235   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2236   if test "$*" = "X"; then
2237      # -L didn't work.
2238      set X `ls -t "$srcdir/configure" conftest.file`
2239   fi
2240   rm -f conftest.file
2241   if test "$*" != "X $srcdir/configure conftest.file" \
2242      && test "$*" != "X conftest.file $srcdir/configure"; then
2243
2244      # If neither matched, then we have a broken ls.  This can happen
2245      # if, for instance, CONFIG_SHELL is bash and it inherits a
2246      # broken ls alias from the environment.  This has actually
2247      # happened.  Such a system could not be considered "sane".
2248      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2249alias in your environment" "$LINENO" 5
2250   fi
2251
2252   test "$2" = conftest.file
2253   )
2254then
2255   # Ok.
2256   :
2257else
2258   as_fn_error $? "newly created file is older than distributed files!
2259Check your system clock" "$LINENO" 5
2260fi
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2262$as_echo "yes" >&6; }
2263test "$program_prefix" != NONE &&
2264  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2265# Use a double $ so make ignores it.
2266test "$program_suffix" != NONE &&
2267  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2268# Double any \ or $.
2269# By default was `s,x,x', remove it if useless.
2270ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2271program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2272
2273# expand $ac_aux_dir to an absolute path
2274am_aux_dir=`cd $ac_aux_dir && pwd`
2275
2276if test x"${MISSING+set}" != xset; then
2277  case $am_aux_dir in
2278  *\ * | *\	*)
2279    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2280  *)
2281    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2282  esac
2283fi
2284# Use eval to expand $SHELL
2285if eval "$MISSING --run true"; then
2286  am_missing_run="$MISSING --run "
2287else
2288  am_missing_run=
2289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2290$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2291fi
2292
2293if test x"${install_sh}" != xset; then
2294  case $am_aux_dir in
2295  *\ * | *\	*)
2296    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2297  *)
2298    install_sh="\${SHELL} $am_aux_dir/install-sh"
2299  esac
2300fi
2301
2302# Installed binaries are usually stripped using `strip' when the user
2303# run `make install-strip'.  However `strip' might not be the right
2304# tool to use in cross-compilation environments, therefore Automake
2305# will honor the `STRIP' environment variable to overrule this program.
2306if test "$cross_compiling" != no; then
2307  if test -n "$ac_tool_prefix"; then
2308  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309set dummy ${ac_tool_prefix}strip; ac_word=$2
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311$as_echo_n "checking for $ac_word... " >&6; }
2312if ${ac_cv_prog_STRIP+:} false; then :
2313  $as_echo_n "(cached) " >&6
2314else
2315  if test -n "$STRIP"; then
2316  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317else
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323    for ac_exec_ext in '' $ac_executable_extensions; do
2324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2327    break 2
2328  fi
2329done
2330  done
2331IFS=$as_save_IFS
2332
2333fi
2334fi
2335STRIP=$ac_cv_prog_STRIP
2336if test -n "$STRIP"; then
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2338$as_echo "$STRIP" >&6; }
2339else
2340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341$as_echo "no" >&6; }
2342fi
2343
2344
2345fi
2346if test -z "$ac_cv_prog_STRIP"; then
2347  ac_ct_STRIP=$STRIP
2348  # Extract the first word of "strip", so it can be a program name with args.
2349set dummy strip; ac_word=$2
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2351$as_echo_n "checking for $ac_word... " >&6; }
2352if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2353  $as_echo_n "(cached) " >&6
2354else
2355  if test -n "$ac_ct_STRIP"; then
2356  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363    for ac_exec_ext in '' $ac_executable_extensions; do
2364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365    ac_cv_prog_ac_ct_STRIP="strip"
2366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2367    break 2
2368  fi
2369done
2370  done
2371IFS=$as_save_IFS
2372
2373fi
2374fi
2375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2376if test -n "$ac_ct_STRIP"; then
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2378$as_echo "$ac_ct_STRIP" >&6; }
2379else
2380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2381$as_echo "no" >&6; }
2382fi
2383
2384  if test "x$ac_ct_STRIP" = x; then
2385    STRIP=":"
2386  else
2387    case $cross_compiling:$ac_tool_warned in
2388yes:)
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2391ac_tool_warned=yes ;;
2392esac
2393    STRIP=$ac_ct_STRIP
2394  fi
2395else
2396  STRIP="$ac_cv_prog_STRIP"
2397fi
2398
2399fi
2400INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2401
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2403$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2404if test -z "$MKDIR_P"; then
2405  if ${ac_cv_path_mkdir+:} false; then :
2406  $as_echo_n "(cached) " >&6
2407else
2408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413    for ac_prog in mkdir gmkdir; do
2414	 for ac_exec_ext in '' $ac_executable_extensions; do
2415	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2416	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2417	     'mkdir (GNU coreutils) '* | \
2418	     'mkdir (coreutils) '* | \
2419	     'mkdir (fileutils) '4.1*)
2420	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2421	       break 3;;
2422	   esac
2423	 done
2424       done
2425  done
2426IFS=$as_save_IFS
2427
2428fi
2429
2430  test -d ./--version && rmdir ./--version
2431  if test "${ac_cv_path_mkdir+set}" = set; then
2432    MKDIR_P="$ac_cv_path_mkdir -p"
2433  else
2434    # As a last resort, use the slow shell script.  Don't cache a
2435    # value for MKDIR_P within a source directory, because that will
2436    # break other packages using the cache if that directory is
2437    # removed, or if the value is a relative name.
2438    MKDIR_P="$ac_install_sh -d"
2439  fi
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2442$as_echo "$MKDIR_P" >&6; }
2443
2444mkdir_p="$MKDIR_P"
2445case $mkdir_p in
2446  [\\/$]* | ?:[\\/]*) ;;
2447  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2448esac
2449
2450for ac_prog in gawk mawk nawk awk
2451do
2452  # Extract the first word of "$ac_prog", so it can be a program name with args.
2453set dummy $ac_prog; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if ${ac_cv_prog_AWK+:} false; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  if test -n "$AWK"; then
2460  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    for ac_exec_ext in '' $ac_executable_extensions; do
2468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469    ac_cv_prog_AWK="$ac_prog"
2470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474  done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479AWK=$ac_cv_prog_AWK
2480if test -n "$AWK"; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2482$as_echo "$AWK" >&6; }
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488
2489  test -n "$AWK" && break
2490done
2491
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2493$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2494set x ${MAKE-make}
2495ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2496if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  cat >conftest.make <<\_ACEOF
2500SHELL = /bin/sh
2501all:
2502	@echo '@@@%%%=$(MAKE)=@@@%%%'
2503_ACEOF
2504# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2505case `${MAKE-make} -f conftest.make 2>/dev/null` in
2506  *@@@%%%=?*=@@@%%%*)
2507    eval ac_cv_prog_make_${ac_make}_set=yes;;
2508  *)
2509    eval ac_cv_prog_make_${ac_make}_set=no;;
2510esac
2511rm -f conftest.make
2512fi
2513if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2515$as_echo "yes" >&6; }
2516  SET_MAKE=
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519$as_echo "no" >&6; }
2520  SET_MAKE="MAKE=${MAKE-make}"
2521fi
2522
2523rm -rf .tst 2>/dev/null
2524mkdir .tst 2>/dev/null
2525if test -d .tst; then
2526  am__leading_dot=.
2527else
2528  am__leading_dot=_
2529fi
2530rmdir .tst 2>/dev/null
2531
2532if test "`cd $srcdir && pwd`" != "`pwd`"; then
2533  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2534  # is not polluted with repeated "-I."
2535  am__isrc=' -I$(srcdir)'
2536  # test to see if srcdir already configured
2537  if test -f $srcdir/config.status; then
2538    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2539  fi
2540fi
2541
2542# test whether we have cygpath
2543if test -z "$CYGPATH_W"; then
2544  if (cygpath --version) >/dev/null 2>/dev/null; then
2545    CYGPATH_W='cygpath -w'
2546  else
2547    CYGPATH_W=echo
2548  fi
2549fi
2550
2551
2552# Define the identity of the package.
2553 PACKAGE='xsetroot'
2554 VERSION='1.1.1'
2555
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE "$PACKAGE"
2559_ACEOF
2560
2561
2562cat >>confdefs.h <<_ACEOF
2563#define VERSION "$VERSION"
2564_ACEOF
2565
2566# Some tools Automake needs.
2567
2568ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2569
2570
2571AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2572
2573
2574AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2575
2576
2577AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2578
2579
2580MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2581
2582# We need awk for the "check" target.  The system "awk" is bad on
2583# some platforms.
2584# Always define AMTAR for backward compatibility.
2585
2586AMTAR=${AMTAR-"${am_missing_run}tar"}
2587
2588am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2589
2590
2591
2592
2593
2594
2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2596$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2597    # Check whether --enable-maintainer-mode was given.
2598if test "${enable_maintainer_mode+set}" = set; then :
2599  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2600else
2601  USE_MAINTAINER_MODE=no
2602fi
2603
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2605$as_echo "$USE_MAINTAINER_MODE" >&6; }
2606   if test $USE_MAINTAINER_MODE = yes; then
2607  MAINTAINER_MODE_TRUE=
2608  MAINTAINER_MODE_FALSE='#'
2609else
2610  MAINTAINER_MODE_TRUE='#'
2611  MAINTAINER_MODE_FALSE=
2612fi
2613
2614  MAINT=$MAINTAINER_MODE_TRUE
2615
2616
2617
2618# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630DEPDIR="${am__leading_dot}deps"
2631
2632ac_config_commands="$ac_config_commands depfiles"
2633
2634
2635am_make=${MAKE-make}
2636cat > confinc << 'END'
2637am__doit:
2638	@echo this is the am__doit target
2639.PHONY: am__doit
2640END
2641# If we don't find an include directive, just comment out the code.
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2643$as_echo_n "checking for style of include used by $am_make... " >&6; }
2644am__include="#"
2645am__quote=
2646_am_result=none
2647# First try GNU make style include.
2648echo "include confinc" > confmf
2649# Ignore all kinds of additional output from `make'.
2650case `$am_make -s -f confmf 2> /dev/null` in #(
2651*the\ am__doit\ target*)
2652  am__include=include
2653  am__quote=
2654  _am_result=GNU
2655  ;;
2656esac
2657# Now try BSD make style include.
2658if test "$am__include" = "#"; then
2659   echo '.include "confinc"' > confmf
2660   case `$am_make -s -f confmf 2> /dev/null` in #(
2661   *the\ am__doit\ target*)
2662     am__include=.include
2663     am__quote="\""
2664     _am_result=BSD
2665     ;;
2666   esac
2667fi
2668
2669
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2671$as_echo "$_am_result" >&6; }
2672rm -f confinc confmf
2673
2674# Check whether --enable-dependency-tracking was given.
2675if test "${enable_dependency_tracking+set}" = set; then :
2676  enableval=$enable_dependency_tracking;
2677fi
2678
2679if test "x$enable_dependency_tracking" != xno; then
2680  am_depcomp="$ac_aux_dir/depcomp"
2681  AMDEPBACKSLASH='\'
2682  am__nodep='_no'
2683fi
2684 if test "x$enable_dependency_tracking" != xno; then
2685  AMDEP_TRUE=
2686  AMDEP_FALSE='#'
2687else
2688  AMDEP_TRUE='#'
2689  AMDEP_FALSE=
2690fi
2691
2692
2693ac_ext=c
2694ac_cpp='$CPP $CPPFLAGS'
2695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697ac_compiler_gnu=$ac_cv_c_compiler_gnu
2698if test -n "$ac_tool_prefix"; then
2699  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2700set dummy ${ac_tool_prefix}gcc; ac_word=$2
2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702$as_echo_n "checking for $ac_word... " >&6; }
2703if ${ac_cv_prog_CC+:} false; then :
2704  $as_echo_n "(cached) " >&6
2705else
2706  if test -n "$CC"; then
2707  ac_cv_prog_CC="$CC" # Let the user override the test.
2708else
2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712  IFS=$as_save_IFS
2713  test -z "$as_dir" && as_dir=.
2714    for ac_exec_ext in '' $ac_executable_extensions; do
2715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718    break 2
2719  fi
2720done
2721  done
2722IFS=$as_save_IFS
2723
2724fi
2725fi
2726CC=$ac_cv_prog_CC
2727if test -n "$CC"; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729$as_echo "$CC" >&6; }
2730else
2731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732$as_echo "no" >&6; }
2733fi
2734
2735
2736fi
2737if test -z "$ac_cv_prog_CC"; then
2738  ac_ct_CC=$CC
2739  # Extract the first word of "gcc", so it can be a program name with args.
2740set dummy gcc; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_ac_ct_CC+:} false; then :
2744  $as_echo_n "(cached) " >&6
2745else
2746  if test -n "$ac_ct_CC"; then
2747  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752  IFS=$as_save_IFS
2753  test -z "$as_dir" && as_dir=.
2754    for ac_exec_ext in '' $ac_executable_extensions; do
2755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756    ac_cv_prog_ac_ct_CC="gcc"
2757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758    break 2
2759  fi
2760done
2761  done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766ac_ct_CC=$ac_cv_prog_ac_ct_CC
2767if test -n "$ac_ct_CC"; then
2768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2769$as_echo "$ac_ct_CC" >&6; }
2770else
2771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775  if test "x$ac_ct_CC" = x; then
2776    CC=""
2777  else
2778    case $cross_compiling:$ac_tool_warned in
2779yes:)
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782ac_tool_warned=yes ;;
2783esac
2784    CC=$ac_ct_CC
2785  fi
2786else
2787  CC="$ac_cv_prog_CC"
2788fi
2789
2790if test -z "$CC"; then
2791          if test -n "$ac_tool_prefix"; then
2792    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2793set dummy ${ac_tool_prefix}cc; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if ${ac_cv_prog_CC+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$CC"; then
2800  ac_cv_prog_CC="$CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809    ac_cv_prog_CC="${ac_tool_prefix}cc"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819CC=$ac_cv_prog_CC
2820if test -n "$CC"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2822$as_echo "$CC" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828
2829  fi
2830fi
2831if test -z "$CC"; then
2832  # Extract the first word of "cc", so it can be a program name with args.
2833set dummy cc; ac_word=$2
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835$as_echo_n "checking for $ac_word... " >&6; }
2836if ${ac_cv_prog_CC+:} false; then :
2837  $as_echo_n "(cached) " >&6
2838else
2839  if test -n "$CC"; then
2840  ac_cv_prog_CC="$CC" # Let the user override the test.
2841else
2842  ac_prog_rejected=no
2843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844for as_dir in $PATH
2845do
2846  IFS=$as_save_IFS
2847  test -z "$as_dir" && as_dir=.
2848    for ac_exec_ext in '' $ac_executable_extensions; do
2849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2851       ac_prog_rejected=yes
2852       continue
2853     fi
2854    ac_cv_prog_CC="cc"
2855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859  done
2860IFS=$as_save_IFS
2861
2862if test $ac_prog_rejected = yes; then
2863  # We found a bogon in the path, so make sure we never use it.
2864  set dummy $ac_cv_prog_CC
2865  shift
2866  if test $# != 0; then
2867    # We chose a different compiler from the bogus one.
2868    # However, it has the same basename, so the bogon will be chosen
2869    # first if we set CC to just the basename; use the full file name.
2870    shift
2871    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2872  fi
2873fi
2874fi
2875fi
2876CC=$ac_cv_prog_CC
2877if test -n "$CC"; then
2878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879$as_echo "$CC" >&6; }
2880else
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882$as_echo "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$CC"; then
2888  if test -n "$ac_tool_prefix"; then
2889  for ac_prog in cl.exe
2890  do
2891    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894$as_echo_n "checking for $ac_word... " >&6; }
2895if ${ac_cv_prog_CC+:} false; then :
2896  $as_echo_n "(cached) " >&6
2897else
2898  if test -n "$CC"; then
2899  ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904  IFS=$as_save_IFS
2905  test -z "$as_dir" && as_dir=.
2906    for ac_exec_ext in '' $ac_executable_extensions; do
2907  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2909    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910    break 2
2911  fi
2912done
2913  done
2914IFS=$as_save_IFS
2915
2916fi
2917fi
2918CC=$ac_cv_prog_CC
2919if test -n "$CC"; then
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921$as_echo "$CC" >&6; }
2922else
2923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
2925fi
2926
2927
2928    test -n "$CC" && break
2929  done
2930fi
2931if test -z "$CC"; then
2932  ac_ct_CC=$CC
2933  for ac_prog in cl.exe
2934do
2935  # Extract the first word of "$ac_prog", so it can be a program name with args.
2936set dummy $ac_prog; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_ac_ct_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$ac_ct_CC"; then
2943  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    ac_cv_prog_ac_ct_CC="$ac_prog"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962ac_ct_CC=$ac_cv_prog_ac_ct_CC
2963if test -n "$ac_ct_CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2965$as_echo "$ac_ct_CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972  test -n "$ac_ct_CC" && break
2973done
2974
2975  if test "x$ac_ct_CC" = x; then
2976    CC=""
2977  else
2978    case $cross_compiling:$ac_tool_warned in
2979yes:)
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2982ac_tool_warned=yes ;;
2983esac
2984    CC=$ac_ct_CC
2985  fi
2986fi
2987
2988fi
2989
2990
2991test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993as_fn_error $? "no acceptable C compiler found in \$PATH
2994See \`config.log' for more details" "$LINENO" 5; }
2995
2996# Provide some information about the compiler.
2997$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2998set X $ac_compile
2999ac_compiler=$2
3000for ac_option in --version -v -V -qversion; do
3001  { { ac_try="$ac_compiler $ac_option >&5"
3002case "(($ac_try" in
3003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004  *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3009  ac_status=$?
3010  if test -s conftest.err; then
3011    sed '10a\
3012... rest of stderr output deleted ...
3013         10q' conftest.err >conftest.er1
3014    cat conftest.er1 >&5
3015  fi
3016  rm -f conftest.er1 conftest.err
3017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018  test $ac_status = 0; }
3019done
3020
3021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h.  */
3023
3024int
3025main ()
3026{
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032ac_clean_files_save=$ac_clean_files
3033ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034# Try to create an executable without -o first, disregard a.out.
3035# It will help us diagnose broken compilers, and finding out an intuition
3036# of exeext.
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3038$as_echo_n "checking whether the C compiler works... " >&6; }
3039ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041# The possible output files:
3042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044ac_rmfiles=
3045for ac_file in $ac_files
3046do
3047  case $ac_file in
3048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050  esac
3051done
3052rm -f $ac_rmfiles
3053
3054if { { ac_try="$ac_link_default"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061  (eval "$ac_link_default") 2>&5
3062  ac_status=$?
3063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064  test $ac_status = 0; }; then :
3065  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3068# so that the user can short-circuit this test for compilers unknown to
3069# Autoconf.
3070for ac_file in $ac_files ''
3071do
3072  test -f "$ac_file" || continue
3073  case $ac_file in
3074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075	;;
3076    [ab].out )
3077	# We found the default executable, but exeext='' is most
3078	# certainly right.
3079	break;;
3080    *.* )
3081	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082	then :; else
3083	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084	fi
3085	# We set ac_cv_exeext here because the later test for it is not
3086	# safe: cross compilers may not add the suffix if given an `-o'
3087	# argument, so we may need to know it at that point already.
3088	# Even if this section looks crufty: it has the advantage of
3089	# actually working.
3090	break;;
3091    * )
3092	break;;
3093  esac
3094done
3095test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097else
3098  ac_file=''
3099fi
3100if test -z "$ac_file"; then :
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103$as_echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108as_fn_error 77 "C compiler cannot create executables
3109See \`config.log' for more details" "$LINENO" 5; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112$as_echo "yes" >&6; }
3113fi
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115$as_echo_n "checking for C compiler default output file name... " >&6; }
3116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3117$as_echo "$ac_file" >&6; }
3118ac_exeext=$ac_cv_exeext
3119
3120rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3121ac_clean_files=$ac_clean_files_save
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123$as_echo_n "checking for suffix of executables... " >&6; }
3124if { { ac_try="$ac_link"
3125case "(($ac_try" in
3126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127  *) ac_try_echo=$ac_try;;
3128esac
3129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130$as_echo "$ac_try_echo"; } >&5
3131  (eval "$ac_link") 2>&5
3132  ac_status=$?
3133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134  test $ac_status = 0; }; then :
3135  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3137# work properly (i.e., refer to `conftest.exe'), while it won't with
3138# `rm'.
3139for ac_file in conftest.exe conftest conftest.*; do
3140  test -f "$ac_file" || continue
3141  case $ac_file in
3142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144	  break;;
3145    * ) break;;
3146  esac
3147done
3148else
3149  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3152See \`config.log' for more details" "$LINENO" 5; }
3153fi
3154rm -f conftest conftest$ac_cv_exeext
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156$as_echo "$ac_cv_exeext" >&6; }
3157
3158rm -f conftest.$ac_ext
3159EXEEXT=$ac_cv_exeext
3160ac_exeext=$EXEEXT
3161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162/* end confdefs.h.  */
3163#include <stdio.h>
3164int
3165main ()
3166{
3167FILE *f = fopen ("conftest.out", "w");
3168 return ferror (f) || fclose (f) != 0;
3169
3170  ;
3171  return 0;
3172}
3173_ACEOF
3174ac_clean_files="$ac_clean_files conftest.out"
3175# Check that the compiler produces executables we can run.  If not, either
3176# the compiler is broken, or we cross compile.
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3178$as_echo_n "checking whether we are cross compiling... " >&6; }
3179if test "$cross_compiling" != yes; then
3180  { { ac_try="$ac_link"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186$as_echo "$ac_try_echo"; } >&5
3187  (eval "$ac_link") 2>&5
3188  ac_status=$?
3189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190  test $ac_status = 0; }
3191  if { ac_try='./conftest$ac_cv_exeext'
3192  { { case "(($ac_try" in
3193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194  *) ac_try_echo=$ac_try;;
3195esac
3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
3198  (eval "$ac_try") 2>&5
3199  ac_status=$?
3200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201  test $ac_status = 0; }; }; then
3202    cross_compiling=no
3203  else
3204    if test "$cross_compiling" = maybe; then
3205	cross_compiling=yes
3206    else
3207	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209as_fn_error $? "cannot run C compiled programs.
3210If you meant to cross compile, use \`--host'.
3211See \`config.log' for more details" "$LINENO" 5; }
3212    fi
3213  fi
3214fi
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3216$as_echo "$cross_compiling" >&6; }
3217
3218rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3219ac_clean_files=$ac_clean_files_save
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3221$as_echo_n "checking for suffix of object files... " >&6; }
3222if ${ac_cv_objext+:} false; then :
3223  $as_echo_n "(cached) " >&6
3224else
3225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226/* end confdefs.h.  */
3227
3228int
3229main ()
3230{
3231
3232  ;
3233  return 0;
3234}
3235_ACEOF
3236rm -f conftest.o conftest.obj
3237if { { ac_try="$ac_compile"
3238case "(($ac_try" in
3239  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240  *) ac_try_echo=$ac_try;;
3241esac
3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243$as_echo "$ac_try_echo"; } >&5
3244  (eval "$ac_compile") 2>&5
3245  ac_status=$?
3246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247  test $ac_status = 0; }; then :
3248  for ac_file in conftest.o conftest.obj conftest.*; do
3249  test -f "$ac_file" || continue;
3250  case $ac_file in
3251    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3252    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3253       break;;
3254  esac
3255done
3256else
3257  $as_echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "cannot compute suffix of object files: cannot compile
3263See \`config.log' for more details" "$LINENO" 5; }
3264fi
3265rm -f conftest.$ac_cv_objext conftest.$ac_ext
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3268$as_echo "$ac_cv_objext" >&6; }
3269OBJEXT=$ac_cv_objext
3270ac_objext=$OBJEXT
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3272$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3273if ${ac_cv_c_compiler_gnu+:} false; then :
3274  $as_echo_n "(cached) " >&6
3275else
3276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277/* end confdefs.h.  */
3278
3279int
3280main ()
3281{
3282#ifndef __GNUC__
3283       choke me
3284#endif
3285
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291  ac_compiler_gnu=yes
3292else
3293  ac_compiler_gnu=no
3294fi
3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296ac_cv_c_compiler_gnu=$ac_compiler_gnu
3297
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3300$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3301if test $ac_compiler_gnu = yes; then
3302  GCC=yes
3303else
3304  GCC=
3305fi
3306ac_test_CFLAGS=${CFLAGS+set}
3307ac_save_CFLAGS=$CFLAGS
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3309$as_echo_n "checking whether $CC accepts -g... " >&6; }
3310if ${ac_cv_prog_cc_g+:} false; then :
3311  $as_echo_n "(cached) " >&6
3312else
3313  ac_save_c_werror_flag=$ac_c_werror_flag
3314   ac_c_werror_flag=yes
3315   ac_cv_prog_cc_g=no
3316   CFLAGS="-g"
3317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h.  */
3319
3320int
3321main ()
3322{
3323
3324  ;
3325  return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329  ac_cv_prog_cc_g=yes
3330else
3331  CFLAGS=""
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
3345else
3346  ac_c_werror_flag=$ac_save_c_werror_flag
3347	 CFLAGS="-g"
3348	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349/* end confdefs.h.  */
3350
3351int
3352main ()
3353{
3354
3355  ;
3356  return 0;
3357}
3358_ACEOF
3359if ac_fn_c_try_compile "$LINENO"; then :
3360  ac_cv_prog_cc_g=yes
3361fi
3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363fi
3364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367   ac_c_werror_flag=$ac_save_c_werror_flag
3368fi
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3370$as_echo "$ac_cv_prog_cc_g" >&6; }
3371if test "$ac_test_CFLAGS" = set; then
3372  CFLAGS=$ac_save_CFLAGS
3373elif test $ac_cv_prog_cc_g = yes; then
3374  if test "$GCC" = yes; then
3375    CFLAGS="-g -O2"
3376  else
3377    CFLAGS="-g"
3378  fi
3379else
3380  if test "$GCC" = yes; then
3381    CFLAGS="-O2"
3382  else
3383    CFLAGS=
3384  fi
3385fi
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3387$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3388if ${ac_cv_prog_cc_c89+:} false; then :
3389  $as_echo_n "(cached) " >&6
3390else
3391  ac_cv_prog_cc_c89=no
3392ac_save_CC=$CC
3393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394/* end confdefs.h.  */
3395#include <stdarg.h>
3396#include <stdio.h>
3397#include <sys/types.h>
3398#include <sys/stat.h>
3399/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3400struct buf { int x; };
3401FILE * (*rcsopen) (struct buf *, struct stat *, int);
3402static char *e (p, i)
3403     char **p;
3404     int i;
3405{
3406  return p[i];
3407}
3408static char *f (char * (*g) (char **, int), char **p, ...)
3409{
3410  char *s;
3411  va_list v;
3412  va_start (v,p);
3413  s = g (p, va_arg (v,int));
3414  va_end (v);
3415  return s;
3416}
3417
3418/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3419   function prototypes and stuff, but not '\xHH' hex character constants.
3420   These don't provoke an error unfortunately, instead are silently treated
3421   as 'x'.  The following induces an error, until -std is added to get
3422   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3423   array size at least.  It's necessary to write '\x00'==0 to get something
3424   that's true only with -std.  */
3425int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426
3427/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3428   inside strings and character constants.  */
3429#define FOO(x) 'x'
3430int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431
3432int test (int i, double x);
3433struct s1 {int (*f) (int a);};
3434struct s2 {int (*f) (double a);};
3435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3436int argc;
3437char **argv;
3438int
3439main ()
3440{
3441return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3442  ;
3443  return 0;
3444}
3445_ACEOF
3446for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3447	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448do
3449  CC="$ac_save_CC $ac_arg"
3450  if ac_fn_c_try_compile "$LINENO"; then :
3451  ac_cv_prog_cc_c89=$ac_arg
3452fi
3453rm -f core conftest.err conftest.$ac_objext
3454  test "x$ac_cv_prog_cc_c89" != "xno" && break
3455done
3456rm -f conftest.$ac_ext
3457CC=$ac_save_CC
3458
3459fi
3460# AC_CACHE_VAL
3461case "x$ac_cv_prog_cc_c89" in
3462  x)
3463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3464$as_echo "none needed" >&6; } ;;
3465  xno)
3466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3467$as_echo "unsupported" >&6; } ;;
3468  *)
3469    CC="$CC $ac_cv_prog_cc_c89"
3470    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3471$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3472esac
3473if test "x$ac_cv_prog_cc_c89" != xno; then :
3474
3475fi
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483depcc="$CC"   am_compiler_list=
3484
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3486$as_echo_n "checking dependency style of $depcc... " >&6; }
3487if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3488  $as_echo_n "(cached) " >&6
3489else
3490  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491  # We make a subdir and do the tests there.  Otherwise we can end up
3492  # making bogus files that we don't know about and never remove.  For
3493  # instance it was reported that on HP-UX the gcc test will end up
3494  # making a dummy file named `D' -- because `-MD' means `put the output
3495  # in D'.
3496  rm -rf conftest.dir
3497  mkdir conftest.dir
3498  # Copy depcomp to subdir because otherwise we won't find it if we're
3499  # using a relative directory.
3500  cp "$am_depcomp" conftest.dir
3501  cd conftest.dir
3502  # We will build objects and dependencies in a subdirectory because
3503  # it helps to detect inapplicable dependency modes.  For instance
3504  # both Tru64's cc and ICC support -MD to output dependencies as a
3505  # side effect of compilation, but ICC will put the dependencies in
3506  # the current directory while Tru64 will put them in the object
3507  # directory.
3508  mkdir sub
3509
3510  am_cv_CC_dependencies_compiler_type=none
3511  if test "$am_compiler_list" = ""; then
3512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3513  fi
3514  am__universal=false
3515  case " $depcc " in #(
3516     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3517     esac
3518
3519  for depmode in $am_compiler_list; do
3520    # Setup a source with many dependencies, because some compilers
3521    # like to wrap large dependency lists on column 80 (with \), and
3522    # we should not choose a depcomp mode which is confused by this.
3523    #
3524    # We need to recreate these files for each test, as the compiler may
3525    # overwrite some of them when testing with obscure command lines.
3526    # This happens at least with the AIX C compiler.
3527    : > sub/conftest.c
3528    for i in 1 2 3 4 5 6; do
3529      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3530      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3531      # Solaris 8's {/usr,}/bin/sh.
3532      touch sub/conftst$i.h
3533    done
3534    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3535
3536    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3537    # mode.  It turns out that the SunPro C++ compiler does not properly
3538    # handle `-M -o', and we need to detect this.  Also, some Intel
3539    # versions had trouble with output in subdirs
3540    am__obj=sub/conftest.${OBJEXT-o}
3541    am__minus_obj="-o $am__obj"
3542    case $depmode in
3543    gcc)
3544      # This depmode causes a compiler race in universal mode.
3545      test "$am__universal" = false || continue
3546      ;;
3547    nosideeffect)
3548      # after this tag, mechanisms are not by side-effect, so they'll
3549      # only be used when explicitly requested
3550      if test "x$enable_dependency_tracking" = xyes; then
3551	continue
3552      else
3553	break
3554      fi
3555      ;;
3556    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3557      # This compiler won't grok `-c -o', but also, the minuso test has
3558      # not run yet.  These depmodes are late enough in the game, and
3559      # so weak that their functioning should not be impacted.
3560      am__obj=conftest.${OBJEXT-o}
3561      am__minus_obj=
3562      ;;
3563    none) break ;;
3564    esac
3565    if depmode=$depmode \
3566       source=sub/conftest.c object=$am__obj \
3567       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3569         >/dev/null 2>conftest.err &&
3570       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3571       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3572       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3573       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3574      # icc doesn't choke on unknown options, it will just issue warnings
3575      # or remarks (even with -Werror).  So we grep stderr for any message
3576      # that says an option was ignored or not supported.
3577      # When given -MP, icc 7.0 and 7.1 complain thusly:
3578      #   icc: Command line warning: ignoring option '-M'; no argument required
3579      # The diagnosis changed in icc 8.0:
3580      #   icc: Command line remark: option '-MP' not supported
3581      if (grep 'ignoring option' conftest.err ||
3582          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3583        am_cv_CC_dependencies_compiler_type=$depmode
3584        break
3585      fi
3586    fi
3587  done
3588
3589  cd ..
3590  rm -rf conftest.dir
3591else
3592  am_cv_CC_dependencies_compiler_type=none
3593fi
3594
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3597$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3598CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3599
3600 if
3601  test "x$enable_dependency_tracking" != xno \
3602  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3603  am__fastdepCC_TRUE=
3604  am__fastdepCC_FALSE='#'
3605else
3606  am__fastdepCC_TRUE='#'
3607  am__fastdepCC_FALSE=
3608fi
3609
3610
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3612$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3613if ${ac_cv_prog_cc_c99+:} false; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  ac_cv_prog_cc_c99=no
3617ac_save_CC=$CC
3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620#include <stdarg.h>
3621#include <stdbool.h>
3622#include <stdlib.h>
3623#include <wchar.h>
3624#include <stdio.h>
3625
3626// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3627#define debug(...) fprintf (stderr, __VA_ARGS__)
3628#define showlist(...) puts (#__VA_ARGS__)
3629#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3630static void
3631test_varargs_macros (void)
3632{
3633  int x = 1234;
3634  int y = 5678;
3635  debug ("Flag");
3636  debug ("X = %d\n", x);
3637  showlist (The first, second, and third items.);
3638  report (x>y, "x is %d but y is %d", x, y);
3639}
3640
3641// Check long long types.
3642#define BIG64 18446744073709551615ull
3643#define BIG32 4294967295ul
3644#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3645#if !BIG_OK
3646  your preprocessor is broken;
3647#endif
3648#if BIG_OK
3649#else
3650  your preprocessor is broken;
3651#endif
3652static long long int bignum = -9223372036854775807LL;
3653static unsigned long long int ubignum = BIG64;
3654
3655struct incomplete_array
3656{
3657  int datasize;
3658  double data[];
3659};
3660
3661struct named_init {
3662  int number;
3663  const wchar_t *name;
3664  double average;
3665};
3666
3667typedef const char *ccp;
3668
3669static inline int
3670test_restrict (ccp restrict text)
3671{
3672  // See if C++-style comments work.
3673  // Iterate through items via the restricted pointer.
3674  // Also check for declarations in for loops.
3675  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3676    continue;
3677  return 0;
3678}
3679
3680// Check varargs and va_copy.
3681static void
3682test_varargs (const char *format, ...)
3683{
3684  va_list args;
3685  va_start (args, format);
3686  va_list args_copy;
3687  va_copy (args_copy, args);
3688
3689  const char *str;
3690  int number;
3691  float fnumber;
3692
3693  while (*format)
3694    {
3695      switch (*format++)
3696	{
3697	case 's': // string
3698	  str = va_arg (args_copy, const char *);
3699	  break;
3700	case 'd': // int
3701	  number = va_arg (args_copy, int);
3702	  break;
3703	case 'f': // float
3704	  fnumber = va_arg (args_copy, double);
3705	  break;
3706	default:
3707	  break;
3708	}
3709    }
3710  va_end (args_copy);
3711  va_end (args);
3712}
3713
3714int
3715main ()
3716{
3717
3718  // Check bool.
3719  _Bool success = false;
3720
3721  // Check restrict.
3722  if (test_restrict ("String literal") == 0)
3723    success = true;
3724  char *restrict newvar = "Another string";
3725
3726  // Check varargs.
3727  test_varargs ("s, d' f .", "string", 65, 34.234);
3728  test_varargs_macros ();
3729
3730  // Check flexible array members.
3731  struct incomplete_array *ia =
3732    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3733  ia->datasize = 10;
3734  for (int i = 0; i < ia->datasize; ++i)
3735    ia->data[i] = i * 1.234;
3736
3737  // Check named initializers.
3738  struct named_init ni = {
3739    .number = 34,
3740    .name = L"Test wide string",
3741    .average = 543.34343,
3742  };
3743
3744  ni.number = 58;
3745
3746  int dynamic_array[ni.number];
3747  dynamic_array[ni.number - 1] = 543;
3748
3749  // work around unused variable warnings
3750  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3751	  || dynamic_array[ni.number - 1] != 543);
3752
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3758do
3759  CC="$ac_save_CC $ac_arg"
3760  if ac_fn_c_try_compile "$LINENO"; then :
3761  ac_cv_prog_cc_c99=$ac_arg
3762fi
3763rm -f core conftest.err conftest.$ac_objext
3764  test "x$ac_cv_prog_cc_c99" != "xno" && break
3765done
3766rm -f conftest.$ac_ext
3767CC=$ac_save_CC
3768
3769fi
3770# AC_CACHE_VAL
3771case "x$ac_cv_prog_cc_c99" in
3772  x)
3773    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774$as_echo "none needed" >&6; } ;;
3775  xno)
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3777$as_echo "unsupported" >&6; } ;;
3778  *)
3779    CC="$CC $ac_cv_prog_cc_c99"
3780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3781$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3782esac
3783if test "x$ac_cv_prog_cc_c99" != xno; then :
3784
3785fi
3786
3787
3788
3789ac_ext=c
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3795$as_echo_n "checking how to run the C preprocessor... " >&6; }
3796# On Suns, sometimes $CPP names a directory.
3797if test -n "$CPP" && test -d "$CPP"; then
3798  CPP=
3799fi
3800if test -z "$CPP"; then
3801  if ${ac_cv_prog_CPP+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804      # Double quotes because CPP needs to be expanded
3805    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3806    do
3807      ac_preproc_ok=false
3808for ac_c_preproc_warn_flag in '' yes
3809do
3810  # Use a header file that comes with gcc, so configuring glibc
3811  # with a fresh cross-compiler works.
3812  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3813  # <limits.h> exists even on freestanding compilers.
3814  # On the NeXT, cc -E runs the code through the compiler's parser,
3815  # not just through cpp. "Syntax error" is here to catch this case.
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818#ifdef __STDC__
3819# include <limits.h>
3820#else
3821# include <assert.h>
3822#endif
3823		     Syntax error
3824_ACEOF
3825if ac_fn_c_try_cpp "$LINENO"; then :
3826
3827else
3828  # Broken: fails on valid input.
3829continue
3830fi
3831rm -f conftest.err conftest.i conftest.$ac_ext
3832
3833  # OK, works on sane cases.  Now check whether nonexistent headers
3834  # can be detected and how.
3835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h.  */
3837#include <ac_nonexistent.h>
3838_ACEOF
3839if ac_fn_c_try_cpp "$LINENO"; then :
3840  # Broken: success on invalid input.
3841continue
3842else
3843  # Passes both tests.
3844ac_preproc_ok=:
3845break
3846fi
3847rm -f conftest.err conftest.i conftest.$ac_ext
3848
3849done
3850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851rm -f conftest.i conftest.err conftest.$ac_ext
3852if $ac_preproc_ok; then :
3853  break
3854fi
3855
3856    done
3857    ac_cv_prog_CPP=$CPP
3858
3859fi
3860  CPP=$ac_cv_prog_CPP
3861else
3862  ac_cv_prog_CPP=$CPP
3863fi
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3865$as_echo "$CPP" >&6; }
3866ac_preproc_ok=false
3867for ac_c_preproc_warn_flag in '' yes
3868do
3869  # Use a header file that comes with gcc, so configuring glibc
3870  # with a fresh cross-compiler works.
3871  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872  # <limits.h> exists even on freestanding compilers.
3873  # On the NeXT, cc -E runs the code through the compiler's parser,
3874  # not just through cpp. "Syntax error" is here to catch this case.
3875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h.  */
3877#ifdef __STDC__
3878# include <limits.h>
3879#else
3880# include <assert.h>
3881#endif
3882		     Syntax error
3883_ACEOF
3884if ac_fn_c_try_cpp "$LINENO"; then :
3885
3886else
3887  # Broken: fails on valid input.
3888continue
3889fi
3890rm -f conftest.err conftest.i conftest.$ac_ext
3891
3892  # OK, works on sane cases.  Now check whether nonexistent headers
3893  # can be detected and how.
3894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h.  */
3896#include <ac_nonexistent.h>
3897_ACEOF
3898if ac_fn_c_try_cpp "$LINENO"; then :
3899  # Broken: success on invalid input.
3900continue
3901else
3902  # Passes both tests.
3903ac_preproc_ok=:
3904break
3905fi
3906rm -f conftest.err conftest.i conftest.$ac_ext
3907
3908done
3909# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910rm -f conftest.i conftest.err conftest.$ac_ext
3911if $ac_preproc_ok; then :
3912
3913else
3914  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3917See \`config.log' for more details" "$LINENO" 5; }
3918fi
3919
3920ac_ext=c
3921ac_cpp='$CPP $CPPFLAGS'
3922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925
3926
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3928$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3929if ${ac_cv_path_GREP+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932  if test -z "$GREP"; then
3933  ac_path_GREP_found=false
3934  # Loop through the user's path and test for each of PROGNAME-LIST
3935  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937do
3938  IFS=$as_save_IFS
3939  test -z "$as_dir" && as_dir=.
3940    for ac_prog in grep ggrep; do
3941    for ac_exec_ext in '' $ac_executable_extensions; do
3942      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3943      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3944# Check for GNU ac_path_GREP and select it if it is found.
3945  # Check for GNU $ac_path_GREP
3946case `"$ac_path_GREP" --version 2>&1` in
3947*GNU*)
3948  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3949*)
3950  ac_count=0
3951  $as_echo_n 0123456789 >"conftest.in"
3952  while :
3953  do
3954    cat "conftest.in" "conftest.in" >"conftest.tmp"
3955    mv "conftest.tmp" "conftest.in"
3956    cp "conftest.in" "conftest.nl"
3957    $as_echo 'GREP' >> "conftest.nl"
3958    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960    as_fn_arith $ac_count + 1 && ac_count=$as_val
3961    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3962      # Best one so far, save it but keep looking for a better one
3963      ac_cv_path_GREP="$ac_path_GREP"
3964      ac_path_GREP_max=$ac_count
3965    fi
3966    # 10*(2^10) chars as input seems more than enough
3967    test $ac_count -gt 10 && break
3968  done
3969  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970esac
3971
3972      $ac_path_GREP_found && break 3
3973    done
3974  done
3975  done
3976IFS=$as_save_IFS
3977  if test -z "$ac_cv_path_GREP"; then
3978    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3979  fi
3980else
3981  ac_cv_path_GREP=$GREP
3982fi
3983
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3986$as_echo "$ac_cv_path_GREP" >&6; }
3987 GREP="$ac_cv_path_GREP"
3988
3989
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3991$as_echo_n "checking for egrep... " >&6; }
3992if ${ac_cv_path_EGREP+:} false; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3996   then ac_cv_path_EGREP="$GREP -E"
3997   else
3998     if test -z "$EGREP"; then
3999  ac_path_EGREP_found=false
4000  # Loop through the user's path and test for each of PROGNAME-LIST
4001  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003do
4004  IFS=$as_save_IFS
4005  test -z "$as_dir" && as_dir=.
4006    for ac_prog in egrep; do
4007    for ac_exec_ext in '' $ac_executable_extensions; do
4008      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4010# Check for GNU ac_path_EGREP and select it if it is found.
4011  # Check for GNU $ac_path_EGREP
4012case `"$ac_path_EGREP" --version 2>&1` in
4013*GNU*)
4014  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015*)
4016  ac_count=0
4017  $as_echo_n 0123456789 >"conftest.in"
4018  while :
4019  do
4020    cat "conftest.in" "conftest.in" >"conftest.tmp"
4021    mv "conftest.tmp" "conftest.in"
4022    cp "conftest.in" "conftest.nl"
4023    $as_echo 'EGREP' >> "conftest.nl"
4024    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026    as_fn_arith $ac_count + 1 && ac_count=$as_val
4027    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028      # Best one so far, save it but keep looking for a better one
4029      ac_cv_path_EGREP="$ac_path_EGREP"
4030      ac_path_EGREP_max=$ac_count
4031    fi
4032    # 10*(2^10) chars as input seems more than enough
4033    test $ac_count -gt 10 && break
4034  done
4035  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036esac
4037
4038      $ac_path_EGREP_found && break 3
4039    done
4040  done
4041  done
4042IFS=$as_save_IFS
4043  if test -z "$ac_cv_path_EGREP"; then
4044    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4045  fi
4046else
4047  ac_cv_path_EGREP=$EGREP
4048fi
4049
4050   fi
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4053$as_echo "$ac_cv_path_EGREP" >&6; }
4054 EGREP="$ac_cv_path_EGREP"
4055
4056
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4058$as_echo_n "checking for ANSI C header files... " >&6; }
4059if ${ac_cv_header_stdc+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h.  */
4064#include <stdlib.h>
4065#include <stdarg.h>
4066#include <string.h>
4067#include <float.h>
4068
4069int
4070main ()
4071{
4072
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077if ac_fn_c_try_compile "$LINENO"; then :
4078  ac_cv_header_stdc=yes
4079else
4080  ac_cv_header_stdc=no
4081fi
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083
4084if test $ac_cv_header_stdc = yes; then
4085  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088#include <string.h>
4089
4090_ACEOF
4091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092  $EGREP "memchr" >/dev/null 2>&1; then :
4093
4094else
4095  ac_cv_header_stdc=no
4096fi
4097rm -f conftest*
4098
4099fi
4100
4101if test $ac_cv_header_stdc = yes; then
4102  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104/* end confdefs.h.  */
4105#include <stdlib.h>
4106
4107_ACEOF
4108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109  $EGREP "free" >/dev/null 2>&1; then :
4110
4111else
4112  ac_cv_header_stdc=no
4113fi
4114rm -f conftest*
4115
4116fi
4117
4118if test $ac_cv_header_stdc = yes; then
4119  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120  if test "$cross_compiling" = yes; then :
4121  :
4122else
4123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h.  */
4125#include <ctype.h>
4126#include <stdlib.h>
4127#if ((' ' & 0x0FF) == 0x020)
4128# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4129# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4130#else
4131# define ISLOWER(c) \
4132		   (('a' <= (c) && (c) <= 'i') \
4133		     || ('j' <= (c) && (c) <= 'r') \
4134		     || ('s' <= (c) && (c) <= 'z'))
4135# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4136#endif
4137
4138#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4139int
4140main ()
4141{
4142  int i;
4143  for (i = 0; i < 256; i++)
4144    if (XOR (islower (i), ISLOWER (i))
4145	|| toupper (i) != TOUPPER (i))
4146      return 2;
4147  return 0;
4148}
4149_ACEOF
4150if ac_fn_c_try_run "$LINENO"; then :
4151
4152else
4153  ac_cv_header_stdc=no
4154fi
4155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4156  conftest.$ac_objext conftest.beam conftest.$ac_ext
4157fi
4158
4159fi
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4162$as_echo "$ac_cv_header_stdc" >&6; }
4163if test $ac_cv_header_stdc = yes; then
4164
4165$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4166
4167fi
4168
4169# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4171		  inttypes.h stdint.h unistd.h
4172do :
4173  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4174ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4175"
4176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4177  cat >>confdefs.h <<_ACEOF
4178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4179_ACEOF
4180
4181fi
4182
4183done
4184
4185
4186
4187
4188
4189
4190ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4191if test "x$ac_cv_have_decl___clang__" = xyes; then :
4192  CLANGCC="yes"
4193else
4194  CLANGCC="no"
4195fi
4196
4197ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4198if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4199  INTELCC="yes"
4200else
4201  INTELCC="no"
4202fi
4203
4204ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4205if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4206  SUNCC="yes"
4207else
4208  SUNCC="no"
4209fi
4210
4211
4212
4213
4214if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4215	if test -n "$ac_tool_prefix"; then
4216  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4217set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219$as_echo_n "checking for $ac_word... " >&6; }
4220if ${ac_cv_path_PKG_CONFIG+:} false; then :
4221  $as_echo_n "(cached) " >&6
4222else
4223  case $PKG_CONFIG in
4224  [\\/]* | ?:[\\/]*)
4225  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4226  ;;
4227  *)
4228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231  IFS=$as_save_IFS
4232  test -z "$as_dir" && as_dir=.
4233    for ac_exec_ext in '' $ac_executable_extensions; do
4234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237    break 2
4238  fi
4239done
4240  done
4241IFS=$as_save_IFS
4242
4243  ;;
4244esac
4245fi
4246PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4247if test -n "$PKG_CONFIG"; then
4248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4249$as_echo "$PKG_CONFIG" >&6; }
4250else
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252$as_echo "no" >&6; }
4253fi
4254
4255
4256fi
4257if test -z "$ac_cv_path_PKG_CONFIG"; then
4258  ac_pt_PKG_CONFIG=$PKG_CONFIG
4259  # Extract the first word of "pkg-config", so it can be a program name with args.
4260set dummy pkg-config; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  case $ac_pt_PKG_CONFIG in
4267  [\\/]* | ?:[\\/]*)
4268  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4269  ;;
4270  *)
4271  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280    break 2
4281  fi
4282done
4283  done
4284IFS=$as_save_IFS
4285
4286  ;;
4287esac
4288fi
4289ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4290if test -n "$ac_pt_PKG_CONFIG"; then
4291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4292$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4293else
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
4296fi
4297
4298  if test "x$ac_pt_PKG_CONFIG" = x; then
4299    PKG_CONFIG=""
4300  else
4301    case $cross_compiling:$ac_tool_warned in
4302yes:)
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305ac_tool_warned=yes ;;
4306esac
4307    PKG_CONFIG=$ac_pt_PKG_CONFIG
4308  fi
4309else
4310  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4311fi
4312
4313fi
4314if test -n "$PKG_CONFIG"; then
4315	_pkg_min_version=0.9.0
4316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4317$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4318	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320$as_echo "yes" >&6; }
4321	else
4322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323$as_echo "no" >&6; }
4324		PKG_CONFIG=""
4325	fi
4326
4327fi
4328# Make sure we can run config.sub.
4329$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4330  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4331
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4333$as_echo_n "checking build system type... " >&6; }
4334if ${ac_cv_build+:} false; then :
4335  $as_echo_n "(cached) " >&6
4336else
4337  ac_build_alias=$build_alias
4338test "x$ac_build_alias" = x &&
4339  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4340test "x$ac_build_alias" = x &&
4341  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4342ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4343  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4344
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4347$as_echo "$ac_cv_build" >&6; }
4348case $ac_cv_build in
4349*-*-*) ;;
4350*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4351esac
4352build=$ac_cv_build
4353ac_save_IFS=$IFS; IFS='-'
4354set x $ac_cv_build
4355shift
4356build_cpu=$1
4357build_vendor=$2
4358shift; shift
4359# Remember, the first character of IFS is used to create $*,
4360# except with old shells:
4361build_os=$*
4362IFS=$ac_save_IFS
4363case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4364
4365
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4367$as_echo_n "checking host system type... " >&6; }
4368if ${ac_cv_host+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  if test "x$host_alias" = x; then
4372  ac_cv_host=$ac_cv_build
4373else
4374  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4375    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4376fi
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4380$as_echo "$ac_cv_host" >&6; }
4381case $ac_cv_host in
4382*-*-*) ;;
4383*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4384esac
4385host=$ac_cv_host
4386ac_save_IFS=$IFS; IFS='-'
4387set x $ac_cv_host
4388shift
4389host_cpu=$1
4390host_vendor=$2
4391shift; shift
4392# Remember, the first character of IFS is used to create $*,
4393# except with old shells:
4394host_os=$*
4395IFS=$ac_save_IFS
4396case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4400$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4401if ${ac_cv_path_SED+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4405     for ac_i in 1 2 3 4 5 6 7; do
4406       ac_script="$ac_script$as_nl$ac_script"
4407     done
4408     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4409     { ac_script=; unset ac_script;}
4410     if test -z "$SED"; then
4411  ac_path_SED_found=false
4412  # Loop through the user's path and test for each of PROGNAME-LIST
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_prog in sed gsed; do
4419    for ac_exec_ext in '' $ac_executable_extensions; do
4420      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4421      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4422# Check for GNU ac_path_SED and select it if it is found.
4423  # Check for GNU $ac_path_SED
4424case `"$ac_path_SED" --version 2>&1` in
4425*GNU*)
4426  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4427*)
4428  ac_count=0
4429  $as_echo_n 0123456789 >"conftest.in"
4430  while :
4431  do
4432    cat "conftest.in" "conftest.in" >"conftest.tmp"
4433    mv "conftest.tmp" "conftest.in"
4434    cp "conftest.in" "conftest.nl"
4435    $as_echo '' >> "conftest.nl"
4436    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438    as_fn_arith $ac_count + 1 && ac_count=$as_val
4439    if test $ac_count -gt ${ac_path_SED_max-0}; then
4440      # Best one so far, save it but keep looking for a better one
4441      ac_cv_path_SED="$ac_path_SED"
4442      ac_path_SED_max=$ac_count
4443    fi
4444    # 10*(2^10) chars as input seems more than enough
4445    test $ac_count -gt 10 && break
4446  done
4447  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448esac
4449
4450      $ac_path_SED_found && break 3
4451    done
4452  done
4453  done
4454IFS=$as_save_IFS
4455  if test -z "$ac_cv_path_SED"; then
4456    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4457  fi
4458else
4459  ac_cv_path_SED=$SED
4460fi
4461
4462fi
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4464$as_echo "$ac_cv_path_SED" >&6; }
4465 SED="$ac_cv_path_SED"
4466  rm -f conftest.sed
4467
4468
4469
4470
4471
4472
4473# Check whether --enable-selective-werror was given.
4474if test "${enable_selective_werror+set}" = set; then :
4475  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4476else
4477  SELECTIVE_WERROR=yes
4478fi
4479
4480
4481
4482
4483
4484# -v is too short to test reliably with XORG_TESTSET_CFLAG
4485if test "x$SUNCC" = "xyes"; then
4486    BASE_CFLAGS="-v"
4487else
4488    BASE_CFLAGS=""
4489fi
4490
4491# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505xorg_testset_save_CFLAGS="$CFLAGS"
4506
4507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4512  $as_echo_n "(cached) " >&6
4513else
4514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h.  */
4516int i;
4517_ACEOF
4518if ac_fn_c_try_compile "$LINENO"; then :
4519  xorg_cv_cc_flag_unknown_warning_option=yes
4520else
4521  xorg_cv_cc_flag_unknown_warning_option=no
4522fi
4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524fi
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4528	CFLAGS="$xorg_testset_save_CFLAGS"
4529fi
4530
4531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4532	if test "x$xorg_testset_cc_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; }
4538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4539  $as_echo_n "(cached) " >&6
4540else
4541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h.  */
4543int i;
4544_ACEOF
4545if ac_fn_c_try_compile "$LINENO"; then :
4546  xorg_cv_cc_flag_unused_command_line_argument=yes
4547else
4548  xorg_cv_cc_flag_unused_command_line_argument=no
4549fi
4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551fi
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4555	CFLAGS="$xorg_testset_save_CFLAGS"
4556fi
4557
4558found="no"
4559
4560	if test $found = "no" ; then
4561		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4563		fi
4564
4565		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4567		fi
4568
4569		CFLAGS="$CFLAGS -Wall"
4570
4571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4572$as_echo_n "checking if $CC supports -Wall... " >&6; }
4573		cacheid=xorg_cv_cc_flag__Wall
4574		if eval \${$cacheid+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579int i;
4580int
4581main ()
4582{
4583
4584  ;
4585  return 0;
4586}
4587_ACEOF
4588if ac_fn_c_try_link "$LINENO"; then :
4589  eval $cacheid=yes
4590else
4591  eval $cacheid=no
4592fi
4593rm -f core conftest.err conftest.$ac_objext \
4594    conftest$ac_exeext conftest.$ac_ext
4595fi
4596
4597
4598		CFLAGS="$xorg_testset_save_CFLAGS"
4599
4600		eval supported=\$$cacheid
4601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4602$as_echo "$supported" >&6; }
4603		if test "$supported" = "yes" ; then
4604			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4605			found="yes"
4606		fi
4607	fi
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623xorg_testset_save_CFLAGS="$CFLAGS"
4624
4625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4630  $as_echo_n "(cached) " >&6
4631else
4632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h.  */
4634int i;
4635_ACEOF
4636if ac_fn_c_try_compile "$LINENO"; then :
4637  xorg_cv_cc_flag_unknown_warning_option=yes
4638else
4639  xorg_cv_cc_flag_unknown_warning_option=no
4640fi
4641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4646	CFLAGS="$xorg_testset_save_CFLAGS"
4647fi
4648
4649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652	fi
4653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660/* end confdefs.h.  */
4661int i;
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
4664  xorg_cv_cc_flag_unused_command_line_argument=yes
4665else
4666  xorg_cv_cc_flag_unused_command_line_argument=no
4667fi
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4673	CFLAGS="$xorg_testset_save_CFLAGS"
4674fi
4675
4676found="no"
4677
4678	if test $found = "no" ; then
4679		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4681		fi
4682
4683		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4685		fi
4686
4687		CFLAGS="$CFLAGS -Wpointer-arith"
4688
4689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4690$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4691		cacheid=xorg_cv_cc_flag__Wpointer_arith
4692		if eval \${$cacheid+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696/* end confdefs.h.  */
4697int i;
4698int
4699main ()
4700{
4701
4702  ;
4703  return 0;
4704}
4705_ACEOF
4706if ac_fn_c_try_link "$LINENO"; then :
4707  eval $cacheid=yes
4708else
4709  eval $cacheid=no
4710fi
4711rm -f core conftest.err conftest.$ac_objext \
4712    conftest$ac_exeext conftest.$ac_ext
4713fi
4714
4715
4716		CFLAGS="$xorg_testset_save_CFLAGS"
4717
4718		eval supported=\$$cacheid
4719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4720$as_echo "$supported" >&6; }
4721		if test "$supported" = "yes" ; then
4722			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4723			found="yes"
4724		fi
4725	fi
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741xorg_testset_save_CFLAGS="$CFLAGS"
4742
4743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752int i;
4753_ACEOF
4754if ac_fn_c_try_compile "$LINENO"; then :
4755  xorg_cv_cc_flag_unknown_warning_option=yes
4756else
4757  xorg_cv_cc_flag_unknown_warning_option=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4764	CFLAGS="$xorg_testset_save_CFLAGS"
4765fi
4766
4767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4770	fi
4771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4775  $as_echo_n "(cached) " >&6
4776else
4777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h.  */
4779int i;
4780_ACEOF
4781if ac_fn_c_try_compile "$LINENO"; then :
4782  xorg_cv_cc_flag_unused_command_line_argument=yes
4783else
4784  xorg_cv_cc_flag_unused_command_line_argument=no
4785fi
4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787fi
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4791	CFLAGS="$xorg_testset_save_CFLAGS"
4792fi
4793
4794found="no"
4795
4796	if test $found = "no" ; then
4797		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4799		fi
4800
4801		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4803		fi
4804
4805		CFLAGS="$CFLAGS -Wmissing-declarations"
4806
4807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4808$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4809		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4810		if eval \${$cacheid+:} false; then :
4811  $as_echo_n "(cached) " >&6
4812else
4813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814/* end confdefs.h.  */
4815int i;
4816int
4817main ()
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_link "$LINENO"; then :
4825  eval $cacheid=yes
4826else
4827  eval $cacheid=no
4828fi
4829rm -f core conftest.err conftest.$ac_objext \
4830    conftest$ac_exeext conftest.$ac_ext
4831fi
4832
4833
4834		CFLAGS="$xorg_testset_save_CFLAGS"
4835
4836		eval supported=\$$cacheid
4837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4838$as_echo "$supported" >&6; }
4839		if test "$supported" = "yes" ; then
4840			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4841			found="yes"
4842		fi
4843	fi
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859xorg_testset_save_CFLAGS="$CFLAGS"
4860
4861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870int i;
4871_ACEOF
4872if ac_fn_c_try_compile "$LINENO"; then :
4873  xorg_cv_cc_flag_unknown_warning_option=yes
4874else
4875  xorg_cv_cc_flag_unknown_warning_option=no
4876fi
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4882	CFLAGS="$xorg_testset_save_CFLAGS"
4883fi
4884
4885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4888	fi
4889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897int i;
4898_ACEOF
4899if ac_fn_c_try_compile "$LINENO"; then :
4900  xorg_cv_cc_flag_unused_command_line_argument=yes
4901else
4902  xorg_cv_cc_flag_unused_command_line_argument=no
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4909	CFLAGS="$xorg_testset_save_CFLAGS"
4910fi
4911
4912found="no"
4913
4914	if test $found = "no" ; then
4915		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917		fi
4918
4919		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4921		fi
4922
4923		CFLAGS="$CFLAGS -Wformat=2"
4924
4925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4926$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4927		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4928		if eval \${$cacheid+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934int
4935main ()
4936{
4937
4938  ;
4939  return 0;
4940}
4941_ACEOF
4942if ac_fn_c_try_link "$LINENO"; then :
4943  eval $cacheid=yes
4944else
4945  eval $cacheid=no
4946fi
4947rm -f core conftest.err conftest.$ac_objext \
4948    conftest$ac_exeext conftest.$ac_ext
4949fi
4950
4951
4952		CFLAGS="$xorg_testset_save_CFLAGS"
4953
4954		eval supported=\$$cacheid
4955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4956$as_echo "$supported" >&6; }
4957		if test "$supported" = "yes" ; then
4958			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4959			found="yes"
4960		fi
4961	fi
4962
4963	if test $found = "no" ; then
4964		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4966		fi
4967
4968		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4970		fi
4971
4972		CFLAGS="$CFLAGS -Wformat"
4973
4974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4975$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4976		cacheid=xorg_cv_cc_flag__Wformat
4977		if eval \${$cacheid+:} false; then :
4978  $as_echo_n "(cached) " >&6
4979else
4980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981/* end confdefs.h.  */
4982int i;
4983int
4984main ()
4985{
4986
4987  ;
4988  return 0;
4989}
4990_ACEOF
4991if ac_fn_c_try_link "$LINENO"; then :
4992  eval $cacheid=yes
4993else
4994  eval $cacheid=no
4995fi
4996rm -f core conftest.err conftest.$ac_objext \
4997    conftest$ac_exeext conftest.$ac_ext
4998fi
4999
5000
5001		CFLAGS="$xorg_testset_save_CFLAGS"
5002
5003		eval supported=\$$cacheid
5004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5005$as_echo "$supported" >&6; }
5006		if test "$supported" = "yes" ; then
5007			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5008			found="yes"
5009		fi
5010	fi
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028xorg_testset_save_CFLAGS="$CFLAGS"
5029
5030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039int i;
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042  xorg_cv_cc_flag_unknown_warning_option=yes
5043else
5044  xorg_cv_cc_flag_unknown_warning_option=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5051	CFLAGS="$xorg_testset_save_CFLAGS"
5052fi
5053
5054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5057	fi
5058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5062  $as_echo_n "(cached) " >&6
5063else
5064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065/* end confdefs.h.  */
5066int i;
5067_ACEOF
5068if ac_fn_c_try_compile "$LINENO"; then :
5069  xorg_cv_cc_flag_unused_command_line_argument=yes
5070else
5071  xorg_cv_cc_flag_unused_command_line_argument=no
5072fi
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5078	CFLAGS="$xorg_testset_save_CFLAGS"
5079fi
5080
5081found="no"
5082
5083	if test $found = "no" ; then
5084		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5086		fi
5087
5088		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090		fi
5091
5092		CFLAGS="$CFLAGS -Wstrict-prototypes"
5093
5094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5095$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5096		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5097		if eval \${$cacheid+:} false; then :
5098  $as_echo_n "(cached) " >&6
5099else
5100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h.  */
5102int i;
5103int
5104main ()
5105{
5106
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111if ac_fn_c_try_link "$LINENO"; then :
5112  eval $cacheid=yes
5113else
5114  eval $cacheid=no
5115fi
5116rm -f core conftest.err conftest.$ac_objext \
5117    conftest$ac_exeext conftest.$ac_ext
5118fi
5119
5120
5121		CFLAGS="$xorg_testset_save_CFLAGS"
5122
5123		eval supported=\$$cacheid
5124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5125$as_echo "$supported" >&6; }
5126		if test "$supported" = "yes" ; then
5127			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5128			found="yes"
5129		fi
5130	fi
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146xorg_testset_save_CFLAGS="$CFLAGS"
5147
5148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156/* end confdefs.h.  */
5157int i;
5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160  xorg_cv_cc_flag_unknown_warning_option=yes
5161else
5162  xorg_cv_cc_flag_unknown_warning_option=no
5163fi
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5169	CFLAGS="$xorg_testset_save_CFLAGS"
5170fi
5171
5172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5175	fi
5176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
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_cv_cc_flag_unused_command_line_argument=yes
5188else
5189  xorg_cv_cc_flag_unused_command_line_argument=no
5190fi
5191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5196	CFLAGS="$xorg_testset_save_CFLAGS"
5197fi
5198
5199found="no"
5200
5201	if test $found = "no" ; then
5202		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5204		fi
5205
5206		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208		fi
5209
5210		CFLAGS="$CFLAGS -Wmissing-prototypes"
5211
5212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5213$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5214		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5215		if eval \${$cacheid+:} false; then :
5216  $as_echo_n "(cached) " >&6
5217else
5218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h.  */
5220int i;
5221int
5222main ()
5223{
5224
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229if ac_fn_c_try_link "$LINENO"; then :
5230  eval $cacheid=yes
5231else
5232  eval $cacheid=no
5233fi
5234rm -f core conftest.err conftest.$ac_objext \
5235    conftest$ac_exeext conftest.$ac_ext
5236fi
5237
5238
5239		CFLAGS="$xorg_testset_save_CFLAGS"
5240
5241		eval supported=\$$cacheid
5242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5243$as_echo "$supported" >&6; }
5244		if test "$supported" = "yes" ; then
5245			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5246			found="yes"
5247		fi
5248	fi
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264xorg_testset_save_CFLAGS="$CFLAGS"
5265
5266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275int i;
5276_ACEOF
5277if ac_fn_c_try_compile "$LINENO"; then :
5278  xorg_cv_cc_flag_unknown_warning_option=yes
5279else
5280  xorg_cv_cc_flag_unknown_warning_option=no
5281fi
5282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283fi
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5287	CFLAGS="$xorg_testset_save_CFLAGS"
5288fi
5289
5290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5293	fi
5294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302int i;
5303_ACEOF
5304if ac_fn_c_try_compile "$LINENO"; then :
5305  xorg_cv_cc_flag_unused_command_line_argument=yes
5306else
5307  xorg_cv_cc_flag_unused_command_line_argument=no
5308fi
5309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5314	CFLAGS="$xorg_testset_save_CFLAGS"
5315fi
5316
5317found="no"
5318
5319	if test $found = "no" ; then
5320		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322		fi
5323
5324		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326		fi
5327
5328		CFLAGS="$CFLAGS -Wnested-externs"
5329
5330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5331$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5332		cacheid=xorg_cv_cc_flag__Wnested_externs
5333		if eval \${$cacheid+:} false; then :
5334  $as_echo_n "(cached) " >&6
5335else
5336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337/* end confdefs.h.  */
5338int i;
5339int
5340main ()
5341{
5342
5343  ;
5344  return 0;
5345}
5346_ACEOF
5347if ac_fn_c_try_link "$LINENO"; then :
5348  eval $cacheid=yes
5349else
5350  eval $cacheid=no
5351fi
5352rm -f core conftest.err conftest.$ac_objext \
5353    conftest$ac_exeext conftest.$ac_ext
5354fi
5355
5356
5357		CFLAGS="$xorg_testset_save_CFLAGS"
5358
5359		eval supported=\$$cacheid
5360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5361$as_echo "$supported" >&6; }
5362		if test "$supported" = "yes" ; then
5363			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5364			found="yes"
5365		fi
5366	fi
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382xorg_testset_save_CFLAGS="$CFLAGS"
5383
5384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394_ACEOF
5395if ac_fn_c_try_compile "$LINENO"; then :
5396  xorg_cv_cc_flag_unknown_warning_option=yes
5397else
5398  xorg_cv_cc_flag_unknown_warning_option=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5405	CFLAGS="$xorg_testset_save_CFLAGS"
5406fi
5407
5408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5411	fi
5412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420int i;
5421_ACEOF
5422if ac_fn_c_try_compile "$LINENO"; then :
5423  xorg_cv_cc_flag_unused_command_line_argument=yes
5424else
5425  xorg_cv_cc_flag_unused_command_line_argument=no
5426fi
5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5432	CFLAGS="$xorg_testset_save_CFLAGS"
5433fi
5434
5435found="no"
5436
5437	if test $found = "no" ; then
5438		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440		fi
5441
5442		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444		fi
5445
5446		CFLAGS="$CFLAGS -Wbad-function-cast"
5447
5448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5449$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5450		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5451		if eval \${$cacheid+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int i;
5457int
5458main ()
5459{
5460
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_link "$LINENO"; then :
5466  eval $cacheid=yes
5467else
5468  eval $cacheid=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext \
5471    conftest$ac_exeext conftest.$ac_ext
5472fi
5473
5474
5475		CFLAGS="$xorg_testset_save_CFLAGS"
5476
5477		eval supported=\$$cacheid
5478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5479$as_echo "$supported" >&6; }
5480		if test "$supported" = "yes" ; then
5481			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5482			found="yes"
5483		fi
5484	fi
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500xorg_testset_save_CFLAGS="$CFLAGS"
5501
5502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h.  */
5511int i;
5512_ACEOF
5513if ac_fn_c_try_compile "$LINENO"; then :
5514  xorg_cv_cc_flag_unknown_warning_option=yes
5515else
5516  xorg_cv_cc_flag_unknown_warning_option=no
5517fi
5518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519fi
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5523	CFLAGS="$xorg_testset_save_CFLAGS"
5524fi
5525
5526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5529	fi
5530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538int i;
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  xorg_cv_cc_flag_unused_command_line_argument=yes
5542else
5543  xorg_cv_cc_flag_unused_command_line_argument=no
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5550	CFLAGS="$xorg_testset_save_CFLAGS"
5551fi
5552
5553found="no"
5554
5555	if test $found = "no" ; then
5556		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5558		fi
5559
5560		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5562		fi
5563
5564		CFLAGS="$CFLAGS -Wold-style-definition"
5565
5566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5567$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5568		cacheid=xorg_cv_cc_flag__Wold_style_definition
5569		if eval \${$cacheid+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575int
5576main ()
5577{
5578
5579  ;
5580  return 0;
5581}
5582_ACEOF
5583if ac_fn_c_try_link "$LINENO"; then :
5584  eval $cacheid=yes
5585else
5586  eval $cacheid=no
5587fi
5588rm -f core conftest.err conftest.$ac_objext \
5589    conftest$ac_exeext conftest.$ac_ext
5590fi
5591
5592
5593		CFLAGS="$xorg_testset_save_CFLAGS"
5594
5595		eval supported=\$$cacheid
5596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5597$as_echo "$supported" >&6; }
5598		if test "$supported" = "yes" ; then
5599			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5600			found="yes"
5601		fi
5602	fi
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618xorg_testset_save_CFLAGS="$CFLAGS"
5619
5620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h.  */
5629int i;
5630_ACEOF
5631if ac_fn_c_try_compile "$LINENO"; then :
5632  xorg_cv_cc_flag_unknown_warning_option=yes
5633else
5634  xorg_cv_cc_flag_unknown_warning_option=no
5635fi
5636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637fi
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5641	CFLAGS="$xorg_testset_save_CFLAGS"
5642fi
5643
5644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5647	fi
5648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657_ACEOF
5658if ac_fn_c_try_compile "$LINENO"; then :
5659  xorg_cv_cc_flag_unused_command_line_argument=yes
5660else
5661  xorg_cv_cc_flag_unused_command_line_argument=no
5662fi
5663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664fi
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5668	CFLAGS="$xorg_testset_save_CFLAGS"
5669fi
5670
5671found="no"
5672
5673	if test $found = "no" ; then
5674		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5676		fi
5677
5678		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680		fi
5681
5682		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5683
5684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5685$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5686		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5687		if eval \${$cacheid+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692int i;
5693int
5694main ()
5695{
5696
5697  ;
5698  return 0;
5699}
5700_ACEOF
5701if ac_fn_c_try_link "$LINENO"; then :
5702  eval $cacheid=yes
5703else
5704  eval $cacheid=no
5705fi
5706rm -f core conftest.err conftest.$ac_objext \
5707    conftest$ac_exeext conftest.$ac_ext
5708fi
5709
5710
5711		CFLAGS="$xorg_testset_save_CFLAGS"
5712
5713		eval supported=\$$cacheid
5714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5715$as_echo "$supported" >&6; }
5716		if test "$supported" = "yes" ; then
5717			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5718			found="yes"
5719		fi
5720	fi
5721
5722
5723
5724
5725
5726# This chunk adds additional warnings that could catch undesired effects.
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5747  $as_echo_n "(cached) " >&6
5748else
5749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751int i;
5752_ACEOF
5753if ac_fn_c_try_compile "$LINENO"; then :
5754  xorg_cv_cc_flag_unknown_warning_option=yes
5755else
5756  xorg_cv_cc_flag_unknown_warning_option=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763	CFLAGS="$xorg_testset_save_CFLAGS"
5764fi
5765
5766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769	fi
5770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781  xorg_cv_cc_flag_unused_command_line_argument=yes
5782else
5783  xorg_cv_cc_flag_unused_command_line_argument=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793found="no"
5794
5795	if test $found = "no" ; then
5796		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798		fi
5799
5800		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802		fi
5803
5804		CFLAGS="$CFLAGS -Wunused"
5805
5806		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5807$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5808		cacheid=xorg_cv_cc_flag__Wunused
5809		if eval \${$cacheid+:} false; then :
5810  $as_echo_n "(cached) " >&6
5811else
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814int i;
5815int
5816main ()
5817{
5818
5819  ;
5820  return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_link "$LINENO"; then :
5824  eval $cacheid=yes
5825else
5826  eval $cacheid=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext \
5829    conftest$ac_exeext conftest.$ac_ext
5830fi
5831
5832
5833		CFLAGS="$xorg_testset_save_CFLAGS"
5834
5835		eval supported=\$$cacheid
5836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837$as_echo "$supported" >&6; }
5838		if test "$supported" = "yes" ; then
5839			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5840			found="yes"
5841		fi
5842	fi
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858xorg_testset_save_CFLAGS="$CFLAGS"
5859
5860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869int i;
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"; then :
5872  xorg_cv_cc_flag_unknown_warning_option=yes
5873else
5874  xorg_cv_cc_flag_unknown_warning_option=no
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881	CFLAGS="$xorg_testset_save_CFLAGS"
5882fi
5883
5884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887	fi
5888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899  xorg_cv_cc_flag_unused_command_line_argument=yes
5900else
5901  xorg_cv_cc_flag_unused_command_line_argument=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5908	CFLAGS="$xorg_testset_save_CFLAGS"
5909fi
5910
5911found="no"
5912
5913	if test $found = "no" ; then
5914		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916		fi
5917
5918		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920		fi
5921
5922		CFLAGS="$CFLAGS -Wuninitialized"
5923
5924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5925$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5926		cacheid=xorg_cv_cc_flag__Wuninitialized
5927		if eval \${$cacheid+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int i;
5933int
5934main ()
5935{
5936
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_link "$LINENO"; then :
5942  eval $cacheid=yes
5943else
5944  eval $cacheid=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext \
5947    conftest$ac_exeext conftest.$ac_ext
5948fi
5949
5950
5951		CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953		eval supported=\$$cacheid
5954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955$as_echo "$supported" >&6; }
5956		if test "$supported" = "yes" ; then
5957			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5958			found="yes"
5959		fi
5960	fi
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976xorg_testset_save_CFLAGS="$CFLAGS"
5977
5978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987int i;
5988_ACEOF
5989if ac_fn_c_try_compile "$LINENO"; then :
5990  xorg_cv_cc_flag_unknown_warning_option=yes
5991else
5992  xorg_cv_cc_flag_unknown_warning_option=no
5993fi
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5999	CFLAGS="$xorg_testset_save_CFLAGS"
6000fi
6001
6002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005	fi
6006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017  xorg_cv_cc_flag_unused_command_line_argument=yes
6018else
6019  xorg_cv_cc_flag_unused_command_line_argument=no
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6026	CFLAGS="$xorg_testset_save_CFLAGS"
6027fi
6028
6029found="no"
6030
6031	if test $found = "no" ; then
6032		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034		fi
6035
6036		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6038		fi
6039
6040		CFLAGS="$CFLAGS -Wshadow"
6041
6042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6043$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6044		cacheid=xorg_cv_cc_flag__Wshadow
6045		if eval \${$cacheid+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050int i;
6051int
6052main ()
6053{
6054
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059if ac_fn_c_try_link "$LINENO"; then :
6060  eval $cacheid=yes
6061else
6062  eval $cacheid=no
6063fi
6064rm -f core conftest.err conftest.$ac_objext \
6065    conftest$ac_exeext conftest.$ac_ext
6066fi
6067
6068
6069		CFLAGS="$xorg_testset_save_CFLAGS"
6070
6071		eval supported=\$$cacheid
6072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6073$as_echo "$supported" >&6; }
6074		if test "$supported" = "yes" ; then
6075			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6076			found="yes"
6077		fi
6078	fi
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094xorg_testset_save_CFLAGS="$CFLAGS"
6095
6096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6099$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6100if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6101  $as_echo_n "(cached) " >&6
6102else
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105int i;
6106_ACEOF
6107if ac_fn_c_try_compile "$LINENO"; then :
6108  xorg_cv_cc_flag_unknown_warning_option=yes
6109else
6110  xorg_cv_cc_flag_unknown_warning_option=no
6111fi
6112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6113fi
6114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6115$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6117	CFLAGS="$xorg_testset_save_CFLAGS"
6118fi
6119
6120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123	fi
6124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6126$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6127if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h.  */
6132int i;
6133_ACEOF
6134if ac_fn_c_try_compile "$LINENO"; then :
6135  xorg_cv_cc_flag_unused_command_line_argument=yes
6136else
6137  xorg_cv_cc_flag_unused_command_line_argument=no
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6142$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6143	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6144	CFLAGS="$xorg_testset_save_CFLAGS"
6145fi
6146
6147found="no"
6148
6149	if test $found = "no" ; then
6150		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6151			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6152		fi
6153
6154		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6156		fi
6157
6158		CFLAGS="$CFLAGS -Wcast-qual"
6159
6160		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6161$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6162		cacheid=xorg_cv_cc_flag__Wcast_qual
6163		if eval \${$cacheid+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169int
6170main ()
6171{
6172
6173  ;
6174  return 0;
6175}
6176_ACEOF
6177if ac_fn_c_try_link "$LINENO"; then :
6178  eval $cacheid=yes
6179else
6180  eval $cacheid=no
6181fi
6182rm -f core conftest.err conftest.$ac_objext \
6183    conftest$ac_exeext conftest.$ac_ext
6184fi
6185
6186
6187		CFLAGS="$xorg_testset_save_CFLAGS"
6188
6189		eval supported=\$$cacheid
6190		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6191$as_echo "$supported" >&6; }
6192		if test "$supported" = "yes" ; then
6193			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6194			found="yes"
6195		fi
6196	fi
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212xorg_testset_save_CFLAGS="$CFLAGS"
6213
6214if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6215	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6217$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6218if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223int i;
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226  xorg_cv_cc_flag_unknown_warning_option=yes
6227else
6228  xorg_cv_cc_flag_unknown_warning_option=no
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6233$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6235	CFLAGS="$xorg_testset_save_CFLAGS"
6236fi
6237
6238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6241	fi
6242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6243	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6244$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6245if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250int i;
6251_ACEOF
6252if ac_fn_c_try_compile "$LINENO"; then :
6253  xorg_cv_cc_flag_unused_command_line_argument=yes
6254else
6255  xorg_cv_cc_flag_unused_command_line_argument=no
6256fi
6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6260$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6262	CFLAGS="$xorg_testset_save_CFLAGS"
6263fi
6264
6265found="no"
6266
6267	if test $found = "no" ; then
6268		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6270		fi
6271
6272		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6274		fi
6275
6276		CFLAGS="$CFLAGS -Wmissing-noreturn"
6277
6278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6279$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6280		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6281		if eval \${$cacheid+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286int i;
6287int
6288main ()
6289{
6290
6291  ;
6292  return 0;
6293}
6294_ACEOF
6295if ac_fn_c_try_link "$LINENO"; then :
6296  eval $cacheid=yes
6297else
6298  eval $cacheid=no
6299fi
6300rm -f core conftest.err conftest.$ac_objext \
6301    conftest$ac_exeext conftest.$ac_ext
6302fi
6303
6304
6305		CFLAGS="$xorg_testset_save_CFLAGS"
6306
6307		eval supported=\$$cacheid
6308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6309$as_echo "$supported" >&6; }
6310		if test "$supported" = "yes" ; then
6311			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6312			found="yes"
6313		fi
6314	fi
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330xorg_testset_save_CFLAGS="$CFLAGS"
6331
6332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6333	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6335$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6336if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6337  $as_echo_n "(cached) " >&6
6338else
6339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h.  */
6341int i;
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"; then :
6344  xorg_cv_cc_flag_unknown_warning_option=yes
6345else
6346  xorg_cv_cc_flag_unknown_warning_option=no
6347fi
6348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349fi
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6351$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6353	CFLAGS="$xorg_testset_save_CFLAGS"
6354fi
6355
6356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6359	fi
6360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6362$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6363if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369_ACEOF
6370if ac_fn_c_try_compile "$LINENO"; then :
6371  xorg_cv_cc_flag_unused_command_line_argument=yes
6372else
6373  xorg_cv_cc_flag_unused_command_line_argument=no
6374fi
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380	CFLAGS="$xorg_testset_save_CFLAGS"
6381fi
6382
6383found="no"
6384
6385	if test $found = "no" ; then
6386		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388		fi
6389
6390		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392		fi
6393
6394		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6395
6396		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6397$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6398		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6399		if eval \${$cacheid+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405int
6406main ()
6407{
6408
6409  ;
6410  return 0;
6411}
6412_ACEOF
6413if ac_fn_c_try_link "$LINENO"; then :
6414  eval $cacheid=yes
6415else
6416  eval $cacheid=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext \
6419    conftest$ac_exeext conftest.$ac_ext
6420fi
6421
6422
6423		CFLAGS="$xorg_testset_save_CFLAGS"
6424
6425		eval supported=\$$cacheid
6426		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6427$as_echo "$supported" >&6; }
6428		if test "$supported" = "yes" ; then
6429			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6430			found="yes"
6431		fi
6432	fi
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448xorg_testset_save_CFLAGS="$CFLAGS"
6449
6450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6455  $as_echo_n "(cached) " >&6
6456else
6457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459int i;
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"; then :
6462  xorg_cv_cc_flag_unknown_warning_option=yes
6463else
6464  xorg_cv_cc_flag_unknown_warning_option=no
6465fi
6466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6467fi
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6471	CFLAGS="$xorg_testset_save_CFLAGS"
6472fi
6473
6474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477	fi
6478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486int i;
6487_ACEOF
6488if ac_fn_c_try_compile "$LINENO"; then :
6489  xorg_cv_cc_flag_unused_command_line_argument=yes
6490else
6491  xorg_cv_cc_flag_unused_command_line_argument=no
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494fi
6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6498	CFLAGS="$xorg_testset_save_CFLAGS"
6499fi
6500
6501found="no"
6502
6503	if test $found = "no" ; then
6504		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506		fi
6507
6508		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510		fi
6511
6512		CFLAGS="$CFLAGS -Wredundant-decls"
6513
6514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6515$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6516		cacheid=xorg_cv_cc_flag__Wredundant_decls
6517		if eval \${$cacheid+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523int
6524main ()
6525{
6526
6527  ;
6528  return 0;
6529}
6530_ACEOF
6531if ac_fn_c_try_link "$LINENO"; then :
6532  eval $cacheid=yes
6533else
6534  eval $cacheid=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext \
6537    conftest$ac_exeext conftest.$ac_ext
6538fi
6539
6540
6541		CFLAGS="$xorg_testset_save_CFLAGS"
6542
6543		eval supported=\$$cacheid
6544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6545$as_echo "$supported" >&6; }
6546		if test "$supported" = "yes" ; then
6547			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6548			found="yes"
6549		fi
6550	fi
6551
6552
6553
6554# These are currently disabled because they are noisy.  They will be enabled
6555# in the future once the codebase is sufficiently modernized to silence
6556# them.  For now, I don't want them to drown out the other warnings.
6557# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6558# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6559# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6560
6561# Turn some warnings into errors, so we don't accidently get successful builds
6562# when there are problems that should be fixed.
6563
6564if test "x$SELECTIVE_WERROR" = "xyes" ; then
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578xorg_testset_save_CFLAGS="$CFLAGS"
6579
6580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6585  $as_echo_n "(cached) " >&6
6586else
6587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h.  */
6589int i;
6590_ACEOF
6591if ac_fn_c_try_compile "$LINENO"; then :
6592  xorg_cv_cc_flag_unknown_warning_option=yes
6593else
6594  xorg_cv_cc_flag_unknown_warning_option=no
6595fi
6596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597fi
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6601	CFLAGS="$xorg_testset_save_CFLAGS"
6602fi
6603
6604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607	fi
6608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6612  $as_echo_n "(cached) " >&6
6613else
6614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6615/* end confdefs.h.  */
6616int i;
6617_ACEOF
6618if ac_fn_c_try_compile "$LINENO"; then :
6619  xorg_cv_cc_flag_unused_command_line_argument=yes
6620else
6621  xorg_cv_cc_flag_unused_command_line_argument=no
6622fi
6623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6628	CFLAGS="$xorg_testset_save_CFLAGS"
6629fi
6630
6631found="no"
6632
6633	if test $found = "no" ; then
6634		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6636		fi
6637
6638		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6640		fi
6641
6642		CFLAGS="$CFLAGS -Werror=implicit"
6643
6644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6645$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6646		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6647		if eval \${$cacheid+:} false; then :
6648  $as_echo_n "(cached) " >&6
6649else
6650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652int i;
6653int
6654main ()
6655{
6656
6657  ;
6658  return 0;
6659}
6660_ACEOF
6661if ac_fn_c_try_link "$LINENO"; then :
6662  eval $cacheid=yes
6663else
6664  eval $cacheid=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext \
6667    conftest$ac_exeext conftest.$ac_ext
6668fi
6669
6670
6671		CFLAGS="$xorg_testset_save_CFLAGS"
6672
6673		eval supported=\$$cacheid
6674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6675$as_echo "$supported" >&6; }
6676		if test "$supported" = "yes" ; then
6677			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6678			found="yes"
6679		fi
6680	fi
6681
6682	if test $found = "no" ; then
6683		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685		fi
6686
6687		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6689		fi
6690
6691		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6692
6693		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6694$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6695		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6696		if eval \${$cacheid+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702int
6703main ()
6704{
6705
6706  ;
6707  return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_link "$LINENO"; then :
6711  eval $cacheid=yes
6712else
6713  eval $cacheid=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext \
6716    conftest$ac_exeext conftest.$ac_ext
6717fi
6718
6719
6720		CFLAGS="$xorg_testset_save_CFLAGS"
6721
6722		eval supported=\$$cacheid
6723		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6724$as_echo "$supported" >&6; }
6725		if test "$supported" = "yes" ; then
6726			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6727			found="yes"
6728		fi
6729	fi
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745xorg_testset_save_CFLAGS="$CFLAGS"
6746
6747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6748	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h.  */
6756int i;
6757_ACEOF
6758if ac_fn_c_try_compile "$LINENO"; then :
6759  xorg_cv_cc_flag_unknown_warning_option=yes
6760else
6761  xorg_cv_cc_flag_unknown_warning_option=no
6762fi
6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764fi
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6767	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6768	CFLAGS="$xorg_testset_save_CFLAGS"
6769fi
6770
6771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6772	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6773		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6774	fi
6775	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unused_command_line_argument=yes
6787else
6788  xorg_cv_cc_flag_unused_command_line_argument=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6794	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798found="no"
6799
6800	if test $found = "no" ; then
6801		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6802			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6803		fi
6804
6805		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6806			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807		fi
6808
6809		CFLAGS="$CFLAGS -Werror=nonnull"
6810
6811		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6812$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6813		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6814		if eval \${$cacheid+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818/* end confdefs.h.  */
6819int i;
6820int
6821main ()
6822{
6823
6824  ;
6825  return 0;
6826}
6827_ACEOF
6828if ac_fn_c_try_link "$LINENO"; then :
6829  eval $cacheid=yes
6830else
6831  eval $cacheid=no
6832fi
6833rm -f core conftest.err conftest.$ac_objext \
6834    conftest$ac_exeext conftest.$ac_ext
6835fi
6836
6837
6838		CFLAGS="$xorg_testset_save_CFLAGS"
6839
6840		eval supported=\$$cacheid
6841		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6842$as_echo "$supported" >&6; }
6843		if test "$supported" = "yes" ; then
6844			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6845			found="yes"
6846		fi
6847	fi
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863xorg_testset_save_CFLAGS="$CFLAGS"
6864
6865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875_ACEOF
6876if ac_fn_c_try_compile "$LINENO"; then :
6877  xorg_cv_cc_flag_unknown_warning_option=yes
6878else
6879  xorg_cv_cc_flag_unknown_warning_option=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882fi
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6886	CFLAGS="$xorg_testset_save_CFLAGS"
6887fi
6888
6889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892	fi
6893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h.  */
6901int i;
6902_ACEOF
6903if ac_fn_c_try_compile "$LINENO"; then :
6904  xorg_cv_cc_flag_unused_command_line_argument=yes
6905else
6906  xorg_cv_cc_flag_unused_command_line_argument=no
6907fi
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909fi
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6913	CFLAGS="$xorg_testset_save_CFLAGS"
6914fi
6915
6916found="no"
6917
6918	if test $found = "no" ; then
6919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6921		fi
6922
6923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925		fi
6926
6927		CFLAGS="$CFLAGS -Werror=init-self"
6928
6929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6930$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6931		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6932		if eval \${$cacheid+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938int
6939main ()
6940{
6941
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946if ac_fn_c_try_link "$LINENO"; then :
6947  eval $cacheid=yes
6948else
6949  eval $cacheid=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext \
6952    conftest$ac_exeext conftest.$ac_ext
6953fi
6954
6955
6956		CFLAGS="$xorg_testset_save_CFLAGS"
6957
6958		eval supported=\$$cacheid
6959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6960$as_echo "$supported" >&6; }
6961		if test "$supported" = "yes" ; then
6962			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6963			found="yes"
6964		fi
6965	fi
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981xorg_testset_save_CFLAGS="$CFLAGS"
6982
6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6988  $as_echo_n "(cached) " >&6
6989else
6990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991/* end confdefs.h.  */
6992int i;
6993_ACEOF
6994if ac_fn_c_try_compile "$LINENO"; then :
6995  xorg_cv_cc_flag_unknown_warning_option=yes
6996else
6997  xorg_cv_cc_flag_unknown_warning_option=no
6998fi
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000fi
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7004	CFLAGS="$xorg_testset_save_CFLAGS"
7005fi
7006
7007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7010	fi
7011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  xorg_cv_cc_flag_unused_command_line_argument=yes
7023else
7024  xorg_cv_cc_flag_unused_command_line_argument=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027fi
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034found="no"
7035
7036	if test $found = "no" ; then
7037		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039		fi
7040
7041		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043		fi
7044
7045		CFLAGS="$CFLAGS -Werror=main"
7046
7047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7048$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7049		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7050		if eval \${$cacheid+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056int
7057main ()
7058{
7059
7060  ;
7061  return 0;
7062}
7063_ACEOF
7064if ac_fn_c_try_link "$LINENO"; then :
7065  eval $cacheid=yes
7066else
7067  eval $cacheid=no
7068fi
7069rm -f core conftest.err conftest.$ac_objext \
7070    conftest$ac_exeext conftest.$ac_ext
7071fi
7072
7073
7074		CFLAGS="$xorg_testset_save_CFLAGS"
7075
7076		eval supported=\$$cacheid
7077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7078$as_echo "$supported" >&6; }
7079		if test "$supported" = "yes" ; then
7080			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7081			found="yes"
7082		fi
7083	fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099xorg_testset_save_CFLAGS="$CFLAGS"
7100
7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109/* end confdefs.h.  */
7110int i;
7111_ACEOF
7112if ac_fn_c_try_compile "$LINENO"; then :
7113  xorg_cv_cc_flag_unknown_warning_option=yes
7114else
7115  xorg_cv_cc_flag_unknown_warning_option=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7122	CFLAGS="$xorg_testset_save_CFLAGS"
7123fi
7124
7125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128	fi
7129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138_ACEOF
7139if ac_fn_c_try_compile "$LINENO"; then :
7140  xorg_cv_cc_flag_unused_command_line_argument=yes
7141else
7142  xorg_cv_cc_flag_unused_command_line_argument=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145fi
7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7149	CFLAGS="$xorg_testset_save_CFLAGS"
7150fi
7151
7152found="no"
7153
7154	if test $found = "no" ; then
7155		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7157		fi
7158
7159		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7161		fi
7162
7163		CFLAGS="$CFLAGS -Werror=missing-braces"
7164
7165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7166$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7167		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7168		if eval \${$cacheid+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174int
7175main ()
7176{
7177
7178  ;
7179  return 0;
7180}
7181_ACEOF
7182if ac_fn_c_try_link "$LINENO"; then :
7183  eval $cacheid=yes
7184else
7185  eval $cacheid=no
7186fi
7187rm -f core conftest.err conftest.$ac_objext \
7188    conftest$ac_exeext conftest.$ac_ext
7189fi
7190
7191
7192		CFLAGS="$xorg_testset_save_CFLAGS"
7193
7194		eval supported=\$$cacheid
7195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7196$as_echo "$supported" >&6; }
7197		if test "$supported" = "yes" ; then
7198			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7199			found="yes"
7200		fi
7201	fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217xorg_testset_save_CFLAGS="$CFLAGS"
7218
7219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7224  $as_echo_n "(cached) " >&6
7225else
7226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227/* end confdefs.h.  */
7228int i;
7229_ACEOF
7230if ac_fn_c_try_compile "$LINENO"; then :
7231  xorg_cv_cc_flag_unknown_warning_option=yes
7232else
7233  xorg_cv_cc_flag_unknown_warning_option=no
7234fi
7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7236fi
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7240	CFLAGS="$xorg_testset_save_CFLAGS"
7241fi
7242
7243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246	fi
7247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256_ACEOF
7257if ac_fn_c_try_compile "$LINENO"; then :
7258  xorg_cv_cc_flag_unused_command_line_argument=yes
7259else
7260  xorg_cv_cc_flag_unused_command_line_argument=no
7261fi
7262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263fi
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7267	CFLAGS="$xorg_testset_save_CFLAGS"
7268fi
7269
7270found="no"
7271
7272	if test $found = "no" ; then
7273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7275		fi
7276
7277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279		fi
7280
7281		CFLAGS="$CFLAGS -Werror=sequence-point"
7282
7283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7284$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7285		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7286		if eval \${$cacheid+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292int
7293main ()
7294{
7295
7296  ;
7297  return 0;
7298}
7299_ACEOF
7300if ac_fn_c_try_link "$LINENO"; then :
7301  eval $cacheid=yes
7302else
7303  eval $cacheid=no
7304fi
7305rm -f core conftest.err conftest.$ac_objext \
7306    conftest$ac_exeext conftest.$ac_ext
7307fi
7308
7309
7310		CFLAGS="$xorg_testset_save_CFLAGS"
7311
7312		eval supported=\$$cacheid
7313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7314$as_echo "$supported" >&6; }
7315		if test "$supported" = "yes" ; then
7316			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7317			found="yes"
7318		fi
7319	fi
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335xorg_testset_save_CFLAGS="$CFLAGS"
7336
7337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7340$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7341if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346int i;
7347_ACEOF
7348if ac_fn_c_try_compile "$LINENO"; then :
7349  xorg_cv_cc_flag_unknown_warning_option=yes
7350else
7351  xorg_cv_cc_flag_unknown_warning_option=no
7352fi
7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354fi
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7356$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7357	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7358	CFLAGS="$xorg_testset_save_CFLAGS"
7359fi
7360
7361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7362	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364	fi
7365	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7367$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7368if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374_ACEOF
7375if ac_fn_c_try_compile "$LINENO"; then :
7376  xorg_cv_cc_flag_unused_command_line_argument=yes
7377else
7378  xorg_cv_cc_flag_unused_command_line_argument=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7383$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7385	CFLAGS="$xorg_testset_save_CFLAGS"
7386fi
7387
7388found="no"
7389
7390	if test $found = "no" ; then
7391		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7393		fi
7394
7395		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397		fi
7398
7399		CFLAGS="$CFLAGS -Werror=return-type"
7400
7401		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7402$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7403		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7404		if eval \${$cacheid+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410int
7411main ()
7412{
7413
7414  ;
7415  return 0;
7416}
7417_ACEOF
7418if ac_fn_c_try_link "$LINENO"; then :
7419  eval $cacheid=yes
7420else
7421  eval $cacheid=no
7422fi
7423rm -f core conftest.err conftest.$ac_objext \
7424    conftest$ac_exeext conftest.$ac_ext
7425fi
7426
7427
7428		CFLAGS="$xorg_testset_save_CFLAGS"
7429
7430		eval supported=\$$cacheid
7431		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432$as_echo "$supported" >&6; }
7433		if test "$supported" = "yes" ; then
7434			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7435			found="yes"
7436		fi
7437	fi
7438
7439	if test $found = "no" ; then
7440		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7441			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442		fi
7443
7444		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7445			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446		fi
7447
7448		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7449
7450		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7451$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7452		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7453		if eval \${$cacheid+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457/* end confdefs.h.  */
7458int i;
7459int
7460main ()
7461{
7462
7463  ;
7464  return 0;
7465}
7466_ACEOF
7467if ac_fn_c_try_link "$LINENO"; then :
7468  eval $cacheid=yes
7469else
7470  eval $cacheid=no
7471fi
7472rm -f core conftest.err conftest.$ac_objext \
7473    conftest$ac_exeext conftest.$ac_ext
7474fi
7475
7476
7477		CFLAGS="$xorg_testset_save_CFLAGS"
7478
7479		eval supported=\$$cacheid
7480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7481$as_echo "$supported" >&6; }
7482		if test "$supported" = "yes" ; then
7483			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7484			found="yes"
7485		fi
7486	fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502xorg_testset_save_CFLAGS="$CFLAGS"
7503
7504if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7505	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7507$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7508if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514_ACEOF
7515if ac_fn_c_try_compile "$LINENO"; then :
7516  xorg_cv_cc_flag_unknown_warning_option=yes
7517else
7518  xorg_cv_cc_flag_unknown_warning_option=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521fi
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7523$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7524	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7525	CFLAGS="$xorg_testset_save_CFLAGS"
7526fi
7527
7528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7529	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531	fi
7532	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7534$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7535if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540int i;
7541_ACEOF
7542if ac_fn_c_try_compile "$LINENO"; then :
7543  xorg_cv_cc_flag_unused_command_line_argument=yes
7544else
7545  xorg_cv_cc_flag_unused_command_line_argument=no
7546fi
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7550$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7551	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7552	CFLAGS="$xorg_testset_save_CFLAGS"
7553fi
7554
7555found="no"
7556
7557	if test $found = "no" ; then
7558		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560		fi
7561
7562		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7563			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7564		fi
7565
7566		CFLAGS="$CFLAGS -Werror=trigraphs"
7567
7568		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7569$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7570		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7571		if eval \${$cacheid+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577int
7578main ()
7579{
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_link "$LINENO"; then :
7586  eval $cacheid=yes
7587else
7588  eval $cacheid=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext \
7591    conftest$ac_exeext conftest.$ac_ext
7592fi
7593
7594
7595		CFLAGS="$xorg_testset_save_CFLAGS"
7596
7597		eval supported=\$$cacheid
7598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7599$as_echo "$supported" >&6; }
7600		if test "$supported" = "yes" ; then
7601			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7602			found="yes"
7603		fi
7604	fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620xorg_testset_save_CFLAGS="$CFLAGS"
7621
7622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632_ACEOF
7633if ac_fn_c_try_compile "$LINENO"; then :
7634  xorg_cv_cc_flag_unknown_warning_option=yes
7635else
7636  xorg_cv_cc_flag_unknown_warning_option=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639fi
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643	CFLAGS="$xorg_testset_save_CFLAGS"
7644fi
7645
7646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	fi
7650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659_ACEOF
7660if ac_fn_c_try_compile "$LINENO"; then :
7661  xorg_cv_cc_flag_unused_command_line_argument=yes
7662else
7663  xorg_cv_cc_flag_unused_command_line_argument=no
7664fi
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666fi
7667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7670	CFLAGS="$xorg_testset_save_CFLAGS"
7671fi
7672
7673found="no"
7674
7675	if test $found = "no" ; then
7676		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7678		fi
7679
7680		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7682		fi
7683
7684		CFLAGS="$CFLAGS -Werror=array-bounds"
7685
7686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7687$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7688		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7689		if eval \${$cacheid+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695int
7696main ()
7697{
7698
7699  ;
7700  return 0;
7701}
7702_ACEOF
7703if ac_fn_c_try_link "$LINENO"; then :
7704  eval $cacheid=yes
7705else
7706  eval $cacheid=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext \
7709    conftest$ac_exeext conftest.$ac_ext
7710fi
7711
7712
7713		CFLAGS="$xorg_testset_save_CFLAGS"
7714
7715		eval supported=\$$cacheid
7716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717$as_echo "$supported" >&6; }
7718		if test "$supported" = "yes" ; then
7719			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7720			found="yes"
7721		fi
7722	fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738xorg_testset_save_CFLAGS="$CFLAGS"
7739
7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7745  $as_echo_n "(cached) " >&6
7746else
7747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h.  */
7749int i;
7750_ACEOF
7751if ac_fn_c_try_compile "$LINENO"; then :
7752  xorg_cv_cc_flag_unknown_warning_option=yes
7753else
7754  xorg_cv_cc_flag_unknown_warning_option=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757fi
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761	CFLAGS="$xorg_testset_save_CFLAGS"
7762fi
7763
7764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767	fi
7768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777_ACEOF
7778if ac_fn_c_try_compile "$LINENO"; then :
7779  xorg_cv_cc_flag_unused_command_line_argument=yes
7780else
7781  xorg_cv_cc_flag_unused_command_line_argument=no
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784fi
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7788	CFLAGS="$xorg_testset_save_CFLAGS"
7789fi
7790
7791found="no"
7792
7793	if test $found = "no" ; then
7794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796		fi
7797
7798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7800		fi
7801
7802		CFLAGS="$CFLAGS -Werror=write-strings"
7803
7804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7805$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7806		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7807		if eval \${$cacheid+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813int
7814main ()
7815{
7816
7817  ;
7818  return 0;
7819}
7820_ACEOF
7821if ac_fn_c_try_link "$LINENO"; then :
7822  eval $cacheid=yes
7823else
7824  eval $cacheid=no
7825fi
7826rm -f core conftest.err conftest.$ac_objext \
7827    conftest$ac_exeext conftest.$ac_ext
7828fi
7829
7830
7831		CFLAGS="$xorg_testset_save_CFLAGS"
7832
7833		eval supported=\$$cacheid
7834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7835$as_echo "$supported" >&6; }
7836		if test "$supported" = "yes" ; then
7837			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7838			found="yes"
7839		fi
7840	fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856xorg_testset_save_CFLAGS="$CFLAGS"
7857
7858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7863  $as_echo_n "(cached) " >&6
7864else
7865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867int i;
7868_ACEOF
7869if ac_fn_c_try_compile "$LINENO"; then :
7870  xorg_cv_cc_flag_unknown_warning_option=yes
7871else
7872  xorg_cv_cc_flag_unknown_warning_option=no
7873fi
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875fi
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7879	CFLAGS="$xorg_testset_save_CFLAGS"
7880fi
7881
7882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885	fi
7886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h.  */
7894int i;
7895_ACEOF
7896if ac_fn_c_try_compile "$LINENO"; then :
7897  xorg_cv_cc_flag_unused_command_line_argument=yes
7898else
7899  xorg_cv_cc_flag_unused_command_line_argument=no
7900fi
7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902fi
7903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7906	CFLAGS="$xorg_testset_save_CFLAGS"
7907fi
7908
7909found="no"
7910
7911	if test $found = "no" ; then
7912		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914		fi
7915
7916		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7918		fi
7919
7920		CFLAGS="$CFLAGS -Werror=address"
7921
7922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7923$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7924		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7925		if eval \${$cacheid+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931int
7932main ()
7933{
7934
7935  ;
7936  return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_link "$LINENO"; then :
7940  eval $cacheid=yes
7941else
7942  eval $cacheid=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext \
7945    conftest$ac_exeext conftest.$ac_ext
7946fi
7947
7948
7949		CFLAGS="$xorg_testset_save_CFLAGS"
7950
7951		eval supported=\$$cacheid
7952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7953$as_echo "$supported" >&6; }
7954		if test "$supported" = "yes" ; then
7955			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7956			found="yes"
7957		fi
7958	fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974xorg_testset_save_CFLAGS="$CFLAGS"
7975
7976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h.  */
7985int i;
7986_ACEOF
7987if ac_fn_c_try_compile "$LINENO"; then :
7988  xorg_cv_cc_flag_unknown_warning_option=yes
7989else
7990  xorg_cv_cc_flag_unknown_warning_option=no
7991fi
7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7997	CFLAGS="$xorg_testset_save_CFLAGS"
7998fi
7999
8000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003	fi
8004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8008  $as_echo_n "(cached) " >&6
8009else
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012int i;
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"; then :
8015  xorg_cv_cc_flag_unused_command_line_argument=yes
8016else
8017  xorg_cv_cc_flag_unused_command_line_argument=no
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8024	CFLAGS="$xorg_testset_save_CFLAGS"
8025fi
8026
8027found="no"
8028
8029	if test $found = "no" ; then
8030		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8032		fi
8033
8034		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8036		fi
8037
8038		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8039
8040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8041$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8042		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8043		if eval \${$cacheid+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049int
8050main ()
8051{
8052
8053  ;
8054  return 0;
8055}
8056_ACEOF
8057if ac_fn_c_try_link "$LINENO"; then :
8058  eval $cacheid=yes
8059else
8060  eval $cacheid=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext \
8063    conftest$ac_exeext conftest.$ac_ext
8064fi
8065
8066
8067		CFLAGS="$xorg_testset_save_CFLAGS"
8068
8069		eval supported=\$$cacheid
8070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8071$as_echo "$supported" >&6; }
8072		if test "$supported" = "yes" ; then
8073			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8074			found="yes"
8075		fi
8076	fi
8077
8078	if test $found = "no" ; then
8079		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081		fi
8082
8083		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8085		fi
8086
8087		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8088
8089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8090$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8091		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8092		if eval \${$cacheid+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h.  */
8097int i;
8098int
8099main ()
8100{
8101
8102  ;
8103  return 0;
8104}
8105_ACEOF
8106if ac_fn_c_try_link "$LINENO"; then :
8107  eval $cacheid=yes
8108else
8109  eval $cacheid=no
8110fi
8111rm -f core conftest.err conftest.$ac_objext \
8112    conftest$ac_exeext conftest.$ac_ext
8113fi
8114
8115
8116		CFLAGS="$xorg_testset_save_CFLAGS"
8117
8118		eval supported=\$$cacheid
8119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8120$as_echo "$supported" >&6; }
8121		if test "$supported" = "yes" ; then
8122			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8123			found="yes"
8124		fi
8125	fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141xorg_testset_save_CFLAGS="$CFLAGS"
8142
8143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152int i;
8153_ACEOF
8154if ac_fn_c_try_compile "$LINENO"; then :
8155  xorg_cv_cc_flag_unknown_warning_option=yes
8156else
8157  xorg_cv_cc_flag_unknown_warning_option=no
8158fi
8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8164	CFLAGS="$xorg_testset_save_CFLAGS"
8165fi
8166
8167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170	fi
8171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180_ACEOF
8181if ac_fn_c_try_compile "$LINENO"; then :
8182  xorg_cv_cc_flag_unused_command_line_argument=yes
8183else
8184  xorg_cv_cc_flag_unused_command_line_argument=no
8185fi
8186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8191	CFLAGS="$xorg_testset_save_CFLAGS"
8192fi
8193
8194found="no"
8195
8196	if test $found = "no" ; then
8197		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199		fi
8200
8201		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203		fi
8204
8205		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8206
8207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8208$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8209		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8210		if eval \${$cacheid+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215int i;
8216int
8217main ()
8218{
8219
8220  ;
8221  return 0;
8222}
8223_ACEOF
8224if ac_fn_c_try_link "$LINENO"; then :
8225  eval $cacheid=yes
8226else
8227  eval $cacheid=no
8228fi
8229rm -f core conftest.err conftest.$ac_objext \
8230    conftest$ac_exeext conftest.$ac_ext
8231fi
8232
8233
8234		CFLAGS="$xorg_testset_save_CFLAGS"
8235
8236		eval supported=\$$cacheid
8237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8238$as_echo "$supported" >&6; }
8239		if test "$supported" = "yes" ; then
8240			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8241			found="yes"
8242		fi
8243	fi
8244
8245 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8246else
8247{ $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
8248$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;}
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262xorg_testset_save_CFLAGS="$CFLAGS"
8263
8264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273int i;
8274_ACEOF
8275if ac_fn_c_try_compile "$LINENO"; then :
8276  xorg_cv_cc_flag_unknown_warning_option=yes
8277else
8278  xorg_cv_cc_flag_unknown_warning_option=no
8279fi
8280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281fi
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8285	CFLAGS="$xorg_testset_save_CFLAGS"
8286fi
8287
8288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8291	fi
8292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8296  $as_echo_n "(cached) " >&6
8297else
8298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299/* end confdefs.h.  */
8300int i;
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303  xorg_cv_cc_flag_unused_command_line_argument=yes
8304else
8305  xorg_cv_cc_flag_unused_command_line_argument=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8312	CFLAGS="$xorg_testset_save_CFLAGS"
8313fi
8314
8315found="no"
8316
8317	if test $found = "no" ; then
8318		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320		fi
8321
8322		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324		fi
8325
8326		CFLAGS="$CFLAGS -Wimplicit"
8327
8328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8329$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8330		cacheid=xorg_cv_cc_flag__Wimplicit
8331		if eval \${$cacheid+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337int
8338main ()
8339{
8340
8341  ;
8342  return 0;
8343}
8344_ACEOF
8345if ac_fn_c_try_link "$LINENO"; then :
8346  eval $cacheid=yes
8347else
8348  eval $cacheid=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext \
8351    conftest$ac_exeext conftest.$ac_ext
8352fi
8353
8354
8355		CFLAGS="$xorg_testset_save_CFLAGS"
8356
8357		eval supported=\$$cacheid
8358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8359$as_echo "$supported" >&6; }
8360		if test "$supported" = "yes" ; then
8361			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8362			found="yes"
8363		fi
8364	fi
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380xorg_testset_save_CFLAGS="$CFLAGS"
8381
8382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392_ACEOF
8393if ac_fn_c_try_compile "$LINENO"; then :
8394  xorg_cv_cc_flag_unknown_warning_option=yes
8395else
8396  xorg_cv_cc_flag_unknown_warning_option=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399fi
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8403	CFLAGS="$xorg_testset_save_CFLAGS"
8404fi
8405
8406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409	fi
8410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8414  $as_echo_n "(cached) " >&6
8415else
8416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417/* end confdefs.h.  */
8418int i;
8419_ACEOF
8420if ac_fn_c_try_compile "$LINENO"; then :
8421  xorg_cv_cc_flag_unused_command_line_argument=yes
8422else
8423  xorg_cv_cc_flag_unused_command_line_argument=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426fi
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8430	CFLAGS="$xorg_testset_save_CFLAGS"
8431fi
8432
8433found="no"
8434
8435	if test $found = "no" ; then
8436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438		fi
8439
8440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442		fi
8443
8444		CFLAGS="$CFLAGS -Wnonnull"
8445
8446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8447$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8448		cacheid=xorg_cv_cc_flag__Wnonnull
8449		if eval \${$cacheid+:} false; then :
8450  $as_echo_n "(cached) " >&6
8451else
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455int
8456main ()
8457{
8458
8459  ;
8460  return 0;
8461}
8462_ACEOF
8463if ac_fn_c_try_link "$LINENO"; then :
8464  eval $cacheid=yes
8465else
8466  eval $cacheid=no
8467fi
8468rm -f core conftest.err conftest.$ac_objext \
8469    conftest$ac_exeext conftest.$ac_ext
8470fi
8471
8472
8473		CFLAGS="$xorg_testset_save_CFLAGS"
8474
8475		eval supported=\$$cacheid
8476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8477$as_echo "$supported" >&6; }
8478		if test "$supported" = "yes" ; then
8479			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8480			found="yes"
8481		fi
8482	fi
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498xorg_testset_save_CFLAGS="$CFLAGS"
8499
8500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510_ACEOF
8511if ac_fn_c_try_compile "$LINENO"; then :
8512  xorg_cv_cc_flag_unknown_warning_option=yes
8513else
8514  xorg_cv_cc_flag_unknown_warning_option=no
8515fi
8516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517fi
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8521	CFLAGS="$xorg_testset_save_CFLAGS"
8522fi
8523
8524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527	fi
8528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8532  $as_echo_n "(cached) " >&6
8533else
8534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535/* end confdefs.h.  */
8536int i;
8537_ACEOF
8538if ac_fn_c_try_compile "$LINENO"; then :
8539  xorg_cv_cc_flag_unused_command_line_argument=yes
8540else
8541  xorg_cv_cc_flag_unused_command_line_argument=no
8542fi
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8548	CFLAGS="$xorg_testset_save_CFLAGS"
8549fi
8550
8551found="no"
8552
8553	if test $found = "no" ; then
8554		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556		fi
8557
8558		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560		fi
8561
8562		CFLAGS="$CFLAGS -Winit-self"
8563
8564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8565$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8566		cacheid=xorg_cv_cc_flag__Winit_self
8567		if eval \${$cacheid+:} false; then :
8568  $as_echo_n "(cached) " >&6
8569else
8570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571/* end confdefs.h.  */
8572int i;
8573int
8574main ()
8575{
8576
8577  ;
8578  return 0;
8579}
8580_ACEOF
8581if ac_fn_c_try_link "$LINENO"; then :
8582  eval $cacheid=yes
8583else
8584  eval $cacheid=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext \
8587    conftest$ac_exeext conftest.$ac_ext
8588fi
8589
8590
8591		CFLAGS="$xorg_testset_save_CFLAGS"
8592
8593		eval supported=\$$cacheid
8594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8595$as_echo "$supported" >&6; }
8596		if test "$supported" = "yes" ; then
8597			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8598			found="yes"
8599		fi
8600	fi
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616xorg_testset_save_CFLAGS="$CFLAGS"
8617
8618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8623  $as_echo_n "(cached) " >&6
8624else
8625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626/* end confdefs.h.  */
8627int i;
8628_ACEOF
8629if ac_fn_c_try_compile "$LINENO"; then :
8630  xorg_cv_cc_flag_unknown_warning_option=yes
8631else
8632  xorg_cv_cc_flag_unknown_warning_option=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8639	CFLAGS="$xorg_testset_save_CFLAGS"
8640fi
8641
8642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645	fi
8646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8650  $as_echo_n "(cached) " >&6
8651else
8652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654int i;
8655_ACEOF
8656if ac_fn_c_try_compile "$LINENO"; then :
8657  xorg_cv_cc_flag_unused_command_line_argument=yes
8658else
8659  xorg_cv_cc_flag_unused_command_line_argument=no
8660fi
8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8666	CFLAGS="$xorg_testset_save_CFLAGS"
8667fi
8668
8669found="no"
8670
8671	if test $found = "no" ; then
8672		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8674		fi
8675
8676		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8678		fi
8679
8680		CFLAGS="$CFLAGS -Wmain"
8681
8682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8683$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8684		cacheid=xorg_cv_cc_flag__Wmain
8685		if eval \${$cacheid+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691int
8692main ()
8693{
8694
8695  ;
8696  return 0;
8697}
8698_ACEOF
8699if ac_fn_c_try_link "$LINENO"; then :
8700  eval $cacheid=yes
8701else
8702  eval $cacheid=no
8703fi
8704rm -f core conftest.err conftest.$ac_objext \
8705    conftest$ac_exeext conftest.$ac_ext
8706fi
8707
8708
8709		CFLAGS="$xorg_testset_save_CFLAGS"
8710
8711		eval supported=\$$cacheid
8712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8713$as_echo "$supported" >&6; }
8714		if test "$supported" = "yes" ; then
8715			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8716			found="yes"
8717		fi
8718	fi
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734xorg_testset_save_CFLAGS="$CFLAGS"
8735
8736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8741  $as_echo_n "(cached) " >&6
8742else
8743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744/* end confdefs.h.  */
8745int i;
8746_ACEOF
8747if ac_fn_c_try_compile "$LINENO"; then :
8748  xorg_cv_cc_flag_unknown_warning_option=yes
8749else
8750  xorg_cv_cc_flag_unknown_warning_option=no
8751fi
8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753fi
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8757	CFLAGS="$xorg_testset_save_CFLAGS"
8758fi
8759
8760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763	fi
8764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773_ACEOF
8774if ac_fn_c_try_compile "$LINENO"; then :
8775  xorg_cv_cc_flag_unused_command_line_argument=yes
8776else
8777  xorg_cv_cc_flag_unused_command_line_argument=no
8778fi
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8784	CFLAGS="$xorg_testset_save_CFLAGS"
8785fi
8786
8787found="no"
8788
8789	if test $found = "no" ; then
8790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8792		fi
8793
8794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8796		fi
8797
8798		CFLAGS="$CFLAGS -Wmissing-braces"
8799
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8801$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8802		cacheid=xorg_cv_cc_flag__Wmissing_braces
8803		if eval \${$cacheid+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809int
8810main ()
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"; then :
8818  eval $cacheid=yes
8819else
8820  eval $cacheid=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823    conftest$ac_exeext conftest.$ac_ext
8824fi
8825
8826
8827		CFLAGS="$xorg_testset_save_CFLAGS"
8828
8829		eval supported=\$$cacheid
8830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8831$as_echo "$supported" >&6; }
8832		if test "$supported" = "yes" ; then
8833			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8834			found="yes"
8835		fi
8836	fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852xorg_testset_save_CFLAGS="$CFLAGS"
8853
8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862/* end confdefs.h.  */
8863int i;
8864_ACEOF
8865if ac_fn_c_try_compile "$LINENO"; then :
8866  xorg_cv_cc_flag_unknown_warning_option=yes
8867else
8868  xorg_cv_cc_flag_unknown_warning_option=no
8869fi
8870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8875	CFLAGS="$xorg_testset_save_CFLAGS"
8876fi
8877
8878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881	fi
8882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891_ACEOF
8892if ac_fn_c_try_compile "$LINENO"; then :
8893  xorg_cv_cc_flag_unused_command_line_argument=yes
8894else
8895  xorg_cv_cc_flag_unused_command_line_argument=no
8896fi
8897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898fi
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8902	CFLAGS="$xorg_testset_save_CFLAGS"
8903fi
8904
8905found="no"
8906
8907	if test $found = "no" ; then
8908		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910		fi
8911
8912		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8914		fi
8915
8916		CFLAGS="$CFLAGS -Wsequence-point"
8917
8918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8919$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8920		cacheid=xorg_cv_cc_flag__Wsequence_point
8921		if eval \${$cacheid+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927int
8928main ()
8929{
8930
8931  ;
8932  return 0;
8933}
8934_ACEOF
8935if ac_fn_c_try_link "$LINENO"; then :
8936  eval $cacheid=yes
8937else
8938  eval $cacheid=no
8939fi
8940rm -f core conftest.err conftest.$ac_objext \
8941    conftest$ac_exeext conftest.$ac_ext
8942fi
8943
8944
8945		CFLAGS="$xorg_testset_save_CFLAGS"
8946
8947		eval supported=\$$cacheid
8948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8949$as_echo "$supported" >&6; }
8950		if test "$supported" = "yes" ; then
8951			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8952			found="yes"
8953		fi
8954	fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970xorg_testset_save_CFLAGS="$CFLAGS"
8971
8972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8977  $as_echo_n "(cached) " >&6
8978else
8979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h.  */
8981int i;
8982_ACEOF
8983if ac_fn_c_try_compile "$LINENO"; then :
8984  xorg_cv_cc_flag_unknown_warning_option=yes
8985else
8986  xorg_cv_cc_flag_unknown_warning_option=no
8987fi
8988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989fi
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993	CFLAGS="$xorg_testset_save_CFLAGS"
8994fi
8995
8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999	fi
9000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009_ACEOF
9010if ac_fn_c_try_compile "$LINENO"; then :
9011  xorg_cv_cc_flag_unused_command_line_argument=yes
9012else
9013  xorg_cv_cc_flag_unused_command_line_argument=no
9014fi
9015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016fi
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9019	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9020	CFLAGS="$xorg_testset_save_CFLAGS"
9021fi
9022
9023found="no"
9024
9025	if test $found = "no" ; then
9026		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028		fi
9029
9030		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9032		fi
9033
9034		CFLAGS="$CFLAGS -Wreturn-type"
9035
9036		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9037$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9038		cacheid=xorg_cv_cc_flag__Wreturn_type
9039		if eval \${$cacheid+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045int
9046main ()
9047{
9048
9049  ;
9050  return 0;
9051}
9052_ACEOF
9053if ac_fn_c_try_link "$LINENO"; then :
9054  eval $cacheid=yes
9055else
9056  eval $cacheid=no
9057fi
9058rm -f core conftest.err conftest.$ac_objext \
9059    conftest$ac_exeext conftest.$ac_ext
9060fi
9061
9062
9063		CFLAGS="$xorg_testset_save_CFLAGS"
9064
9065		eval supported=\$$cacheid
9066		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9067$as_echo "$supported" >&6; }
9068		if test "$supported" = "yes" ; then
9069			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9070			found="yes"
9071		fi
9072	fi
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088xorg_testset_save_CFLAGS="$CFLAGS"
9089
9090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9091	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100_ACEOF
9101if ac_fn_c_try_compile "$LINENO"; then :
9102  xorg_cv_cc_flag_unknown_warning_option=yes
9103else
9104  xorg_cv_cc_flag_unknown_warning_option=no
9105fi
9106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107fi
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9111	CFLAGS="$xorg_testset_save_CFLAGS"
9112fi
9113
9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117	fi
9118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127_ACEOF
9128if ac_fn_c_try_compile "$LINENO"; then :
9129  xorg_cv_cc_flag_unused_command_line_argument=yes
9130else
9131  xorg_cv_cc_flag_unused_command_line_argument=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134fi
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9137	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9138	CFLAGS="$xorg_testset_save_CFLAGS"
9139fi
9140
9141found="no"
9142
9143	if test $found = "no" ; then
9144		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146		fi
9147
9148		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9150		fi
9151
9152		CFLAGS="$CFLAGS -Wtrigraphs"
9153
9154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9155$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9156		cacheid=xorg_cv_cc_flag__Wtrigraphs
9157		if eval \${$cacheid+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163int
9164main ()
9165{
9166
9167  ;
9168  return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_link "$LINENO"; then :
9172  eval $cacheid=yes
9173else
9174  eval $cacheid=no
9175fi
9176rm -f core conftest.err conftest.$ac_objext \
9177    conftest$ac_exeext conftest.$ac_ext
9178fi
9179
9180
9181		CFLAGS="$xorg_testset_save_CFLAGS"
9182
9183		eval supported=\$$cacheid
9184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9185$as_echo "$supported" >&6; }
9186		if test "$supported" = "yes" ; then
9187			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9188			found="yes"
9189		fi
9190	fi
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206xorg_testset_save_CFLAGS="$CFLAGS"
9207
9208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9213  $as_echo_n "(cached) " >&6
9214else
9215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217int i;
9218_ACEOF
9219if ac_fn_c_try_compile "$LINENO"; then :
9220  xorg_cv_cc_flag_unknown_warning_option=yes
9221else
9222  xorg_cv_cc_flag_unknown_warning_option=no
9223fi
9224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225fi
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9229	CFLAGS="$xorg_testset_save_CFLAGS"
9230fi
9231
9232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235	fi
9236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245_ACEOF
9246if ac_fn_c_try_compile "$LINENO"; then :
9247  xorg_cv_cc_flag_unused_command_line_argument=yes
9248else
9249  xorg_cv_cc_flag_unused_command_line_argument=no
9250fi
9251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9256	CFLAGS="$xorg_testset_save_CFLAGS"
9257fi
9258
9259found="no"
9260
9261	if test $found = "no" ; then
9262		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9264		fi
9265
9266		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9268		fi
9269
9270		CFLAGS="$CFLAGS -Warray-bounds"
9271
9272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9273$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9274		cacheid=xorg_cv_cc_flag__Warray_bounds
9275		if eval \${$cacheid+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281int
9282main ()
9283{
9284
9285  ;
9286  return 0;
9287}
9288_ACEOF
9289if ac_fn_c_try_link "$LINENO"; then :
9290  eval $cacheid=yes
9291else
9292  eval $cacheid=no
9293fi
9294rm -f core conftest.err conftest.$ac_objext \
9295    conftest$ac_exeext conftest.$ac_ext
9296fi
9297
9298
9299		CFLAGS="$xorg_testset_save_CFLAGS"
9300
9301		eval supported=\$$cacheid
9302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9303$as_echo "$supported" >&6; }
9304		if test "$supported" = "yes" ; then
9305			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9306			found="yes"
9307		fi
9308	fi
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324xorg_testset_save_CFLAGS="$CFLAGS"
9325
9326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9331  $as_echo_n "(cached) " >&6
9332else
9333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335int i;
9336_ACEOF
9337if ac_fn_c_try_compile "$LINENO"; then :
9338  xorg_cv_cc_flag_unknown_warning_option=yes
9339else
9340  xorg_cv_cc_flag_unknown_warning_option=no
9341fi
9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9347	CFLAGS="$xorg_testset_save_CFLAGS"
9348fi
9349
9350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353	fi
9354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362int i;
9363_ACEOF
9364if ac_fn_c_try_compile "$LINENO"; then :
9365  xorg_cv_cc_flag_unused_command_line_argument=yes
9366else
9367  xorg_cv_cc_flag_unused_command_line_argument=no
9368fi
9369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370fi
9371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374	CFLAGS="$xorg_testset_save_CFLAGS"
9375fi
9376
9377found="no"
9378
9379	if test $found = "no" ; then
9380		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382		fi
9383
9384		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386		fi
9387
9388		CFLAGS="$CFLAGS -Wwrite-strings"
9389
9390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9391$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9392		cacheid=xorg_cv_cc_flag__Wwrite_strings
9393		if eval \${$cacheid+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399int
9400main ()
9401{
9402
9403  ;
9404  return 0;
9405}
9406_ACEOF
9407if ac_fn_c_try_link "$LINENO"; then :
9408  eval $cacheid=yes
9409else
9410  eval $cacheid=no
9411fi
9412rm -f core conftest.err conftest.$ac_objext \
9413    conftest$ac_exeext conftest.$ac_ext
9414fi
9415
9416
9417		CFLAGS="$xorg_testset_save_CFLAGS"
9418
9419		eval supported=\$$cacheid
9420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421$as_echo "$supported" >&6; }
9422		if test "$supported" = "yes" ; then
9423			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9424			found="yes"
9425		fi
9426	fi
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442xorg_testset_save_CFLAGS="$CFLAGS"
9443
9444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9449  $as_echo_n "(cached) " >&6
9450else
9451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452/* end confdefs.h.  */
9453int i;
9454_ACEOF
9455if ac_fn_c_try_compile "$LINENO"; then :
9456  xorg_cv_cc_flag_unknown_warning_option=yes
9457else
9458  xorg_cv_cc_flag_unknown_warning_option=no
9459fi
9460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9465	CFLAGS="$xorg_testset_save_CFLAGS"
9466fi
9467
9468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471	fi
9472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481_ACEOF
9482if ac_fn_c_try_compile "$LINENO"; then :
9483  xorg_cv_cc_flag_unused_command_line_argument=yes
9484else
9485  xorg_cv_cc_flag_unused_command_line_argument=no
9486fi
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9492	CFLAGS="$xorg_testset_save_CFLAGS"
9493fi
9494
9495found="no"
9496
9497	if test $found = "no" ; then
9498		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500		fi
9501
9502		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9504		fi
9505
9506		CFLAGS="$CFLAGS -Waddress"
9507
9508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9509$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9510		cacheid=xorg_cv_cc_flag__Waddress
9511		if eval \${$cacheid+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517int
9518main ()
9519{
9520
9521  ;
9522  return 0;
9523}
9524_ACEOF
9525if ac_fn_c_try_link "$LINENO"; then :
9526  eval $cacheid=yes
9527else
9528  eval $cacheid=no
9529fi
9530rm -f core conftest.err conftest.$ac_objext \
9531    conftest$ac_exeext conftest.$ac_ext
9532fi
9533
9534
9535		CFLAGS="$xorg_testset_save_CFLAGS"
9536
9537		eval supported=\$$cacheid
9538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9539$as_echo "$supported" >&6; }
9540		if test "$supported" = "yes" ; then
9541			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9542			found="yes"
9543		fi
9544	fi
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560xorg_testset_save_CFLAGS="$CFLAGS"
9561
9562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9567  $as_echo_n "(cached) " >&6
9568else
9569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h.  */
9571int i;
9572_ACEOF
9573if ac_fn_c_try_compile "$LINENO"; then :
9574  xorg_cv_cc_flag_unknown_warning_option=yes
9575else
9576  xorg_cv_cc_flag_unknown_warning_option=no
9577fi
9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579fi
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9583	CFLAGS="$xorg_testset_save_CFLAGS"
9584fi
9585
9586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589	fi
9590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599_ACEOF
9600if ac_fn_c_try_compile "$LINENO"; then :
9601  xorg_cv_cc_flag_unused_command_line_argument=yes
9602else
9603  xorg_cv_cc_flag_unused_command_line_argument=no
9604fi
9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606fi
9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613found="no"
9614
9615	if test $found = "no" ; then
9616		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618		fi
9619
9620		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622		fi
9623
9624		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9625
9626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9627$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9628		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9629		if eval \${$cacheid+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635int
9636main ()
9637{
9638
9639  ;
9640  return 0;
9641}
9642_ACEOF
9643if ac_fn_c_try_link "$LINENO"; then :
9644  eval $cacheid=yes
9645else
9646  eval $cacheid=no
9647fi
9648rm -f core conftest.err conftest.$ac_objext \
9649    conftest$ac_exeext conftest.$ac_ext
9650fi
9651
9652
9653		CFLAGS="$xorg_testset_save_CFLAGS"
9654
9655		eval supported=\$$cacheid
9656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9657$as_echo "$supported" >&6; }
9658		if test "$supported" = "yes" ; then
9659			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9660			found="yes"
9661		fi
9662	fi
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678xorg_testset_save_CFLAGS="$CFLAGS"
9679
9680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9685  $as_echo_n "(cached) " >&6
9686else
9687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688/* end confdefs.h.  */
9689int i;
9690_ACEOF
9691if ac_fn_c_try_compile "$LINENO"; then :
9692  xorg_cv_cc_flag_unknown_warning_option=yes
9693else
9694  xorg_cv_cc_flag_unknown_warning_option=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697fi
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9701	CFLAGS="$xorg_testset_save_CFLAGS"
9702fi
9703
9704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707	fi
9708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717_ACEOF
9718if ac_fn_c_try_compile "$LINENO"; then :
9719  xorg_cv_cc_flag_unused_command_line_argument=yes
9720else
9721  xorg_cv_cc_flag_unused_command_line_argument=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731found="no"
9732
9733	if test $found = "no" ; then
9734		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9736		fi
9737
9738		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740		fi
9741
9742		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9743
9744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9745$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9746		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9747		if eval \${$cacheid+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753int
9754main ()
9755{
9756
9757  ;
9758  return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_link "$LINENO"; then :
9762  eval $cacheid=yes
9763else
9764  eval $cacheid=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext \
9767    conftest$ac_exeext conftest.$ac_ext
9768fi
9769
9770
9771		CFLAGS="$xorg_testset_save_CFLAGS"
9772
9773		eval supported=\$$cacheid
9774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9775$as_echo "$supported" >&6; }
9776		if test "$supported" = "yes" ; then
9777			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9778			found="yes"
9779		fi
9780	fi
9781
9782
9783fi
9784
9785
9786
9787
9788
9789
9790
9791		CWARNFLAGS="$BASE_CFLAGS"
9792		if  test "x$GCC" = xyes ; then
9793		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9794		fi
9795
9796
9797
9798
9799
9800
9801
9802
9803# Check whether --enable-strict-compilation was given.
9804if test "${enable_strict_compilation+set}" = set; then :
9805  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9806else
9807  STRICT_COMPILE=no
9808fi
9809
9810
9811
9812
9813
9814
9815STRICT_CFLAGS=""
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829xorg_testset_save_CFLAGS="$CFLAGS"
9830
9831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h.  */
9840int i;
9841_ACEOF
9842if ac_fn_c_try_compile "$LINENO"; then :
9843  xorg_cv_cc_flag_unknown_warning_option=yes
9844else
9845  xorg_cv_cc_flag_unknown_warning_option=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848fi
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852	CFLAGS="$xorg_testset_save_CFLAGS"
9853fi
9854
9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858	fi
9859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868_ACEOF
9869if ac_fn_c_try_compile "$LINENO"; then :
9870  xorg_cv_cc_flag_unused_command_line_argument=yes
9871else
9872  xorg_cv_cc_flag_unused_command_line_argument=no
9873fi
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875fi
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9879	CFLAGS="$xorg_testset_save_CFLAGS"
9880fi
9881
9882found="no"
9883
9884	if test $found = "no" ; then
9885		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9887		fi
9888
9889		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891		fi
9892
9893		CFLAGS="$CFLAGS -pedantic"
9894
9895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9896$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9897		cacheid=xorg_cv_cc_flag__pedantic
9898		if eval \${$cacheid+:} false; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902/* end confdefs.h.  */
9903int i;
9904int
9905main ()
9906{
9907
9908  ;
9909  return 0;
9910}
9911_ACEOF
9912if ac_fn_c_try_link "$LINENO"; then :
9913  eval $cacheid=yes
9914else
9915  eval $cacheid=no
9916fi
9917rm -f core conftest.err conftest.$ac_objext \
9918    conftest$ac_exeext conftest.$ac_ext
9919fi
9920
9921
9922		CFLAGS="$xorg_testset_save_CFLAGS"
9923
9924		eval supported=\$$cacheid
9925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9926$as_echo "$supported" >&6; }
9927		if test "$supported" = "yes" ; then
9928			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9929			found="yes"
9930		fi
9931	fi
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947xorg_testset_save_CFLAGS="$CFLAGS"
9948
9949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959_ACEOF
9960if ac_fn_c_try_compile "$LINENO"; then :
9961  xorg_cv_cc_flag_unknown_warning_option=yes
9962else
9963  xorg_cv_cc_flag_unknown_warning_option=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9966fi
9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9970	CFLAGS="$xorg_testset_save_CFLAGS"
9971fi
9972
9973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976	fi
9977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986_ACEOF
9987if ac_fn_c_try_compile "$LINENO"; then :
9988  xorg_cv_cc_flag_unused_command_line_argument=yes
9989else
9990  xorg_cv_cc_flag_unused_command_line_argument=no
9991fi
9992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9997	CFLAGS="$xorg_testset_save_CFLAGS"
9998fi
9999
10000found="no"
10001
10002	if test $found = "no" ; then
10003		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005		fi
10006
10007		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10009		fi
10010
10011		CFLAGS="$CFLAGS -Werror"
10012
10013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10014$as_echo_n "checking if $CC supports -Werror... " >&6; }
10015		cacheid=xorg_cv_cc_flag__Werror
10016		if eval \${$cacheid+:} false; then :
10017  $as_echo_n "(cached) " >&6
10018else
10019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020/* end confdefs.h.  */
10021int i;
10022int
10023main ()
10024{
10025
10026  ;
10027  return 0;
10028}
10029_ACEOF
10030if ac_fn_c_try_link "$LINENO"; then :
10031  eval $cacheid=yes
10032else
10033  eval $cacheid=no
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036    conftest$ac_exeext conftest.$ac_ext
10037fi
10038
10039
10040		CFLAGS="$xorg_testset_save_CFLAGS"
10041
10042		eval supported=\$$cacheid
10043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10044$as_echo "$supported" >&6; }
10045		if test "$supported" = "yes" ; then
10046			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10047			found="yes"
10048		fi
10049	fi
10050
10051	if test $found = "no" ; then
10052		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054		fi
10055
10056		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10058		fi
10059
10060		CFLAGS="$CFLAGS -errwarn"
10061
10062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10063$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10064		cacheid=xorg_cv_cc_flag__errwarn
10065		if eval \${$cacheid+:} false; then :
10066  $as_echo_n "(cached) " >&6
10067else
10068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069/* end confdefs.h.  */
10070int i;
10071int
10072main ()
10073{
10074
10075  ;
10076  return 0;
10077}
10078_ACEOF
10079if ac_fn_c_try_link "$LINENO"; then :
10080  eval $cacheid=yes
10081else
10082  eval $cacheid=no
10083fi
10084rm -f core conftest.err conftest.$ac_objext \
10085    conftest$ac_exeext conftest.$ac_ext
10086fi
10087
10088
10089		CFLAGS="$xorg_testset_save_CFLAGS"
10090
10091		eval supported=\$$cacheid
10092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10093$as_echo "$supported" >&6; }
10094		if test "$supported" = "yes" ; then
10095			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10096			found="yes"
10097		fi
10098	fi
10099
10100
10101
10102# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10103# activate it with -Werror, so we add it here explicitly.
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117xorg_testset_save_CFLAGS="$CFLAGS"
10118
10119if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10120	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10121	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10122$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10123if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10124  $as_echo_n "(cached) " >&6
10125else
10126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127/* end confdefs.h.  */
10128int i;
10129_ACEOF
10130if ac_fn_c_try_compile "$LINENO"; then :
10131  xorg_cv_cc_flag_unknown_warning_option=yes
10132else
10133  xorg_cv_cc_flag_unknown_warning_option=no
10134fi
10135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10136fi
10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10138$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10139	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10140	CFLAGS="$xorg_testset_save_CFLAGS"
10141fi
10142
10143if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10144	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146	fi
10147	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10149$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10150if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156_ACEOF
10157if ac_fn_c_try_compile "$LINENO"; then :
10158  xorg_cv_cc_flag_unused_command_line_argument=yes
10159else
10160  xorg_cv_cc_flag_unused_command_line_argument=no
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163fi
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10165$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10166	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10167	CFLAGS="$xorg_testset_save_CFLAGS"
10168fi
10169
10170found="no"
10171
10172	if test $found = "no" ; then
10173		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10174			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175		fi
10176
10177		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10178			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179		fi
10180
10181		CFLAGS="$CFLAGS -Werror=attributes"
10182
10183		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10184$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10185		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10186		if eval \${$cacheid+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192int
10193main ()
10194{
10195
10196  ;
10197  return 0;
10198}
10199_ACEOF
10200if ac_fn_c_try_link "$LINENO"; then :
10201  eval $cacheid=yes
10202else
10203  eval $cacheid=no
10204fi
10205rm -f core conftest.err conftest.$ac_objext \
10206    conftest$ac_exeext conftest.$ac_ext
10207fi
10208
10209
10210		CFLAGS="$xorg_testset_save_CFLAGS"
10211
10212		eval supported=\$$cacheid
10213		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10214$as_echo "$supported" >&6; }
10215		if test "$supported" = "yes" ; then
10216			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10217			found="yes"
10218		fi
10219	fi
10220
10221
10222
10223if test "x$STRICT_COMPILE" = "xyes"; then
10224    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10225    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10226fi
10227
10228
10229
10230
10231
10232
10233cat >>confdefs.h <<_ACEOF
10234#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10235_ACEOF
10236
10237	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10238	if test "x$PVM" = "x"; then
10239		PVM="0"
10240	fi
10241
10242cat >>confdefs.h <<_ACEOF
10243#define PACKAGE_VERSION_MINOR $PVM
10244_ACEOF
10245
10246	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10247	if test "x$PVP" = "x"; then
10248		PVP="0"
10249	fi
10250
10251cat >>confdefs.h <<_ACEOF
10252#define PACKAGE_VERSION_PATCHLEVEL $PVP
10253_ACEOF
10254
10255
10256
10257CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10258mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10259|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10260echo 'git directory not found: installing possibly empty changelog.' >&2)"
10261
10262
10263
10264
10265macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10266INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10267mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10268|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10269echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10270
10271
10272
10273
10274
10275
10276if test x$APP_MAN_SUFFIX = x    ; then
10277    APP_MAN_SUFFIX=1
10278fi
10279if test x$APP_MAN_DIR = x    ; then
10280    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10281fi
10282
10283if test x$LIB_MAN_SUFFIX = x    ; then
10284    LIB_MAN_SUFFIX=3
10285fi
10286if test x$LIB_MAN_DIR = x    ; then
10287    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10288fi
10289
10290if test x$FILE_MAN_SUFFIX = x    ; then
10291    case $host_os in
10292	solaris*)	FILE_MAN_SUFFIX=4  ;;
10293	*)		FILE_MAN_SUFFIX=5  ;;
10294    esac
10295fi
10296if test x$FILE_MAN_DIR = x    ; then
10297    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10298fi
10299
10300if test x$MISC_MAN_SUFFIX = x    ; then
10301    case $host_os in
10302	solaris*)	MISC_MAN_SUFFIX=5  ;;
10303	*)		MISC_MAN_SUFFIX=7  ;;
10304    esac
10305fi
10306if test x$MISC_MAN_DIR = x    ; then
10307    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10308fi
10309
10310if test x$DRIVER_MAN_SUFFIX = x    ; then
10311    case $host_os in
10312	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10313	*)		DRIVER_MAN_SUFFIX=4  ;;
10314    esac
10315fi
10316if test x$DRIVER_MAN_DIR = x    ; then
10317    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10318fi
10319
10320if test x$ADMIN_MAN_SUFFIX = x    ; then
10321    case $host_os in
10322	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10323	*)		ADMIN_MAN_SUFFIX=8  ;;
10324    esac
10325fi
10326if test x$ADMIN_MAN_DIR = x    ; then
10327    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10328fi
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344XORG_MAN_PAGE="X Version 11"
10345
10346MAN_SUBSTS="\
10347	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10348	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10349	-e 's|__xservername__|Xorg|g' \
10350	-e 's|__xconfigfile__|xorg.conf|g' \
10351	-e 's|__projectroot__|\$(prefix)|g' \
10352	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10353	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10354	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10355	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10356	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10357	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10358	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10359
10360
10361
10362# Check whether --enable-silent-rules was given.
10363if test "${enable_silent_rules+set}" = set; then :
10364  enableval=$enable_silent_rules;
10365fi
10366
10367case $enable_silent_rules in
10368yes) AM_DEFAULT_VERBOSITY=0;;
10369no)  AM_DEFAULT_VERBOSITY=1;;
10370*)   AM_DEFAULT_VERBOSITY=0;;
10371esac
10372AM_BACKSLASH='\'
10373
10374
10375
10376# Checks for pkg-config packages
10377
10378pkg_failed=no
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSETROOT" >&5
10380$as_echo_n "checking for XSETROOT... " >&6; }
10381
10382if test -n "$XSETROOT_CFLAGS"; then
10383    pkg_cv_XSETROOT_CFLAGS="$XSETROOT_CFLAGS"
10384 elif test -n "$PKG_CONFIG"; then
10385    if test -n "$PKG_CONFIG" && \
10386    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.17\""; } >&5
10387  ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.17") 2>&5
10388  ac_status=$?
10389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390  test $ac_status = 0; }; then
10391  pkg_cv_XSETROOT_CFLAGS=`$PKG_CONFIG --cflags "xmuu x11 xbitmaps xcursor xproto >= 7.0.17" 2>/dev/null`
10392else
10393  pkg_failed=yes
10394fi
10395 else
10396    pkg_failed=untried
10397fi
10398if test -n "$XSETROOT_LIBS"; then
10399    pkg_cv_XSETROOT_LIBS="$XSETROOT_LIBS"
10400 elif test -n "$PKG_CONFIG"; then
10401    if test -n "$PKG_CONFIG" && \
10402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xmuu x11 xbitmaps xcursor xproto >= 7.0.17\""; } >&5
10403  ($PKG_CONFIG --exists --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.17") 2>&5
10404  ac_status=$?
10405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406  test $ac_status = 0; }; then
10407  pkg_cv_XSETROOT_LIBS=`$PKG_CONFIG --libs "xmuu x11 xbitmaps xcursor xproto >= 7.0.17" 2>/dev/null`
10408else
10409  pkg_failed=yes
10410fi
10411 else
10412    pkg_failed=untried
10413fi
10414
10415
10416
10417if test $pkg_failed = yes; then
10418
10419if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10420        _pkg_short_errors_supported=yes
10421else
10422        _pkg_short_errors_supported=no
10423fi
10424        if test $_pkg_short_errors_supported = yes; then
10425	        XSETROOT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.17" 2>&1`
10426        else
10427	        XSETROOT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xmuu x11 xbitmaps xcursor xproto >= 7.0.17" 2>&1`
10428        fi
10429	# Put the nasty error message in config.log where it belongs
10430	echo "$XSETROOT_PKG_ERRORS" >&5
10431
10432	as_fn_error $? "Package requirements (xmuu x11 xbitmaps xcursor xproto >= 7.0.17) were not met:
10433
10434$XSETROOT_PKG_ERRORS
10435
10436Consider adjusting the PKG_CONFIG_PATH environment variable if you
10437installed software in a non-standard prefix.
10438
10439Alternatively, you may set the environment variables XSETROOT_CFLAGS
10440and XSETROOT_LIBS to avoid the need to call pkg-config.
10441See the pkg-config man page for more details.
10442" "$LINENO" 5
10443elif test $pkg_failed = untried; then
10444	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10446as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10447is in your PATH or set the PKG_CONFIG environment variable to the full
10448path to pkg-config.
10449
10450Alternatively, you may set the environment variables XSETROOT_CFLAGS
10451and XSETROOT_LIBS to avoid the need to call pkg-config.
10452See the pkg-config man page for more details.
10453
10454To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10455See \`config.log' for more details" "$LINENO" 5; }
10456else
10457	XSETROOT_CFLAGS=$pkg_cv_XSETROOT_CFLAGS
10458	XSETROOT_LIBS=$pkg_cv_XSETROOT_LIBS
10459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10460$as_echo "yes" >&6; }
10461	:
10462fi
10463
10464
10465
10466
10467
10468
10469# Check whether --with-lint was given.
10470if test "${with_lint+set}" = set; then :
10471  withval=$with_lint; use_lint=$withval
10472else
10473  use_lint=no
10474fi
10475
10476
10477# Obtain platform specific info like program name and options
10478# The lint program on FreeBSD and NetBSD is different from the one on Solaris
10479case $host_os in
10480  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10481	lint_name=splint
10482	lint_options="-badflag"
10483	;;
10484  *freebsd* | *netbsd*)
10485	lint_name=lint
10486	lint_options="-u -b"
10487	;;
10488  *solaris*)
10489	lint_name=lint
10490	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10491	;;
10492esac
10493
10494# Test for the presence of the program (either guessed by the code or spelled out by the user)
10495if test "x$use_lint" = x"yes" ; then
10496   # Extract the first word of "$lint_name", so it can be a program name with args.
10497set dummy $lint_name; ac_word=$2
10498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499$as_echo_n "checking for $ac_word... " >&6; }
10500if ${ac_cv_path_LINT+:} false; then :
10501  $as_echo_n "(cached) " >&6
10502else
10503  case $LINT in
10504  [\\/]* | ?:[\\/]*)
10505  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10506  ;;
10507  *)
10508  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511  IFS=$as_save_IFS
10512  test -z "$as_dir" && as_dir=.
10513    for ac_exec_ext in '' $ac_executable_extensions; do
10514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10515    ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517    break 2
10518  fi
10519done
10520  done
10521IFS=$as_save_IFS
10522
10523  ;;
10524esac
10525fi
10526LINT=$ac_cv_path_LINT
10527if test -n "$LINT"; then
10528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10529$as_echo "$LINT" >&6; }
10530else
10531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
10533fi
10534
10535
10536   if test "x$LINT" = "x"; then
10537        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10538   fi
10539elif test "x$use_lint" = x"no" ; then
10540   if test "x$LINT" != "x"; then
10541      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10542$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10543   fi
10544else
10545   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10546fi
10547
10548# User supplied flags override default flags
10549if test "x$LINT_FLAGS" != "x"; then
10550   lint_options=$LINT_FLAGS
10551fi
10552
10553LINT_FLAGS=$lint_options
10554
10555 if test "x$LINT" != x; then
10556  LINT_TRUE=
10557  LINT_FALSE='#'
10558else
10559  LINT_TRUE='#'
10560  LINT_FALSE=
10561fi
10562
10563
10564
10565
10566ac_config_files="$ac_config_files Makefile man/Makefile"
10567
10568cat >confcache <<\_ACEOF
10569# This file is a shell script that caches the results of configure
10570# tests run on this system so they can be shared between configure
10571# scripts and configure runs, see configure's option --config-cache.
10572# It is not useful on other systems.  If it contains results you don't
10573# want to keep, you may remove or edit it.
10574#
10575# config.status only pays attention to the cache file if you give it
10576# the --recheck option to rerun configure.
10577#
10578# `ac_cv_env_foo' variables (set or unset) will be overridden when
10579# loading this file, other *unset* `ac_cv_foo' will be assigned the
10580# following values.
10581
10582_ACEOF
10583
10584# The following way of writing the cache mishandles newlines in values,
10585# but we know of no workaround that is simple, portable, and efficient.
10586# So, we kill variables containing newlines.
10587# Ultrix sh set writes to stderr and can't be redirected directly,
10588# and sets the high bit in the cache file unless we assign to the vars.
10589(
10590  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10591    eval ac_val=\$$ac_var
10592    case $ac_val in #(
10593    *${as_nl}*)
10594      case $ac_var in #(
10595      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10596$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10597      esac
10598      case $ac_var in #(
10599      _ | IFS | as_nl) ;; #(
10600      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10601      *) { eval $ac_var=; unset $ac_var;} ;;
10602      esac ;;
10603    esac
10604  done
10605
10606  (set) 2>&1 |
10607    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10608    *${as_nl}ac_space=\ *)
10609      # `set' does not quote correctly, so add quotes: double-quote
10610      # substitution turns \\\\ into \\, and sed turns \\ into \.
10611      sed -n \
10612	"s/'/'\\\\''/g;
10613	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10614      ;; #(
10615    *)
10616      # `set' quotes correctly as required by POSIX, so do not add quotes.
10617      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10618      ;;
10619    esac |
10620    sort
10621) |
10622  sed '
10623     /^ac_cv_env_/b end
10624     t clear
10625     :clear
10626     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10627     t end
10628     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10629     :end' >>confcache
10630if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10631  if test -w "$cache_file"; then
10632    if test "x$cache_file" != "x/dev/null"; then
10633      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10634$as_echo "$as_me: updating cache $cache_file" >&6;}
10635      if test ! -f "$cache_file" || test -h "$cache_file"; then
10636	cat confcache >"$cache_file"
10637      else
10638        case $cache_file in #(
10639        */* | ?:*)
10640	  mv -f confcache "$cache_file"$$ &&
10641	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10642        *)
10643	  mv -f confcache "$cache_file" ;;
10644	esac
10645      fi
10646    fi
10647  else
10648    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10649$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10650  fi
10651fi
10652rm -f confcache
10653
10654test "x$prefix" = xNONE && prefix=$ac_default_prefix
10655# Let make expand exec_prefix.
10656test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10657
10658DEFS=-DHAVE_CONFIG_H
10659
10660ac_libobjs=
10661ac_ltlibobjs=
10662U=
10663for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10664  # 1. Remove the extension, and $U if already installed.
10665  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10666  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10667  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10668  #    will be set to the directory where LIBOBJS objects are built.
10669  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10670  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10671done
10672LIBOBJS=$ac_libobjs
10673
10674LTLIBOBJS=$ac_ltlibobjs
10675
10676
10677 if test -n "$EXEEXT"; then
10678  am__EXEEXT_TRUE=
10679  am__EXEEXT_FALSE='#'
10680else
10681  am__EXEEXT_TRUE='#'
10682  am__EXEEXT_FALSE=
10683fi
10684
10685if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10686  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10687Usually this means the macro was only invoked conditionally." "$LINENO" 5
10688fi
10689if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10690  as_fn_error $? "conditional \"AMDEP\" was never defined.
10691Usually this means the macro was only invoked conditionally." "$LINENO" 5
10692fi
10693if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10694  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10695Usually this means the macro was only invoked conditionally." "$LINENO" 5
10696fi
10697if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10698  as_fn_error $? "conditional \"LINT\" was never defined.
10699Usually this means the macro was only invoked conditionally." "$LINENO" 5
10700fi
10701
10702: "${CONFIG_STATUS=./config.status}"
10703ac_write_fail=0
10704ac_clean_files_save=$ac_clean_files
10705ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10707$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10708as_write_fail=0
10709cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10710#! $SHELL
10711# Generated by $as_me.
10712# Run this file to recreate the current configuration.
10713# Compiler output produced by configure, useful for debugging
10714# configure, is in config.log if it exists.
10715
10716debug=false
10717ac_cs_recheck=false
10718ac_cs_silent=false
10719
10720SHELL=\${CONFIG_SHELL-$SHELL}
10721export SHELL
10722_ASEOF
10723cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10724## -------------------- ##
10725## M4sh Initialization. ##
10726## -------------------- ##
10727
10728# Be more Bourne compatible
10729DUALCASE=1; export DUALCASE # for MKS sh
10730if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10731  emulate sh
10732  NULLCMD=:
10733  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10734  # is contrary to our usage.  Disable this feature.
10735  alias -g '${1+"$@"}'='"$@"'
10736  setopt NO_GLOB_SUBST
10737else
10738  case `(set -o) 2>/dev/null` in #(
10739  *posix*) :
10740    set -o posix ;; #(
10741  *) :
10742     ;;
10743esac
10744fi
10745
10746
10747as_nl='
10748'
10749export as_nl
10750# Printing a long string crashes Solaris 7 /usr/bin/printf.
10751as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10753as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10754# Prefer a ksh shell builtin over an external printf program on Solaris,
10755# but without wasting forks for bash or zsh.
10756if test -z "$BASH_VERSION$ZSH_VERSION" \
10757    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10758  as_echo='print -r --'
10759  as_echo_n='print -rn --'
10760elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10761  as_echo='printf %s\n'
10762  as_echo_n='printf %s'
10763else
10764  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10765    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10766    as_echo_n='/usr/ucb/echo -n'
10767  else
10768    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10769    as_echo_n_body='eval
10770      arg=$1;
10771      case $arg in #(
10772      *"$as_nl"*)
10773	expr "X$arg" : "X\\(.*\\)$as_nl";
10774	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10775      esac;
10776      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10777    '
10778    export as_echo_n_body
10779    as_echo_n='sh -c $as_echo_n_body as_echo'
10780  fi
10781  export as_echo_body
10782  as_echo='sh -c $as_echo_body as_echo'
10783fi
10784
10785# The user is always right.
10786if test "${PATH_SEPARATOR+set}" != set; then
10787  PATH_SEPARATOR=:
10788  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10789    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10790      PATH_SEPARATOR=';'
10791  }
10792fi
10793
10794
10795# IFS
10796# We need space, tab and new line, in precisely that order.  Quoting is
10797# there to prevent editors from complaining about space-tab.
10798# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10799# splitting by setting IFS to empty value.)
10800IFS=" ""	$as_nl"
10801
10802# Find who we are.  Look in the path if we contain no directory separator.
10803as_myself=
10804case $0 in #((
10805  *[\\/]* ) as_myself=$0 ;;
10806  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807for as_dir in $PATH
10808do
10809  IFS=$as_save_IFS
10810  test -z "$as_dir" && as_dir=.
10811    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10812  done
10813IFS=$as_save_IFS
10814
10815     ;;
10816esac
10817# We did not find ourselves, most probably we were run as `sh COMMAND'
10818# in which case we are not to be found in the path.
10819if test "x$as_myself" = x; then
10820  as_myself=$0
10821fi
10822if test ! -f "$as_myself"; then
10823  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10824  exit 1
10825fi
10826
10827# Unset variables that we do not need and which cause bugs (e.g. in
10828# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10829# suppresses any "Segmentation fault" message there.  '((' could
10830# trigger a bug in pdksh 5.2.14.
10831for as_var in BASH_ENV ENV MAIL MAILPATH
10832do eval test x\${$as_var+set} = xset \
10833  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10834done
10835PS1='$ '
10836PS2='> '
10837PS4='+ '
10838
10839# NLS nuisances.
10840LC_ALL=C
10841export LC_ALL
10842LANGUAGE=C
10843export LANGUAGE
10844
10845# CDPATH.
10846(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10847
10848
10849# as_fn_error STATUS ERROR [LINENO LOG_FD]
10850# ----------------------------------------
10851# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10852# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10853# script with STATUS, using 1 if that was 0.
10854as_fn_error ()
10855{
10856  as_status=$1; test $as_status -eq 0 && as_status=1
10857  if test "$4"; then
10858    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10859    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10860  fi
10861  $as_echo "$as_me: error: $2" >&2
10862  as_fn_exit $as_status
10863} # as_fn_error
10864
10865
10866# as_fn_set_status STATUS
10867# -----------------------
10868# Set $? to STATUS, without forking.
10869as_fn_set_status ()
10870{
10871  return $1
10872} # as_fn_set_status
10873
10874# as_fn_exit STATUS
10875# -----------------
10876# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10877as_fn_exit ()
10878{
10879  set +e
10880  as_fn_set_status $1
10881  exit $1
10882} # as_fn_exit
10883
10884# as_fn_unset VAR
10885# ---------------
10886# Portably unset VAR.
10887as_fn_unset ()
10888{
10889  { eval $1=; unset $1;}
10890}
10891as_unset=as_fn_unset
10892# as_fn_append VAR VALUE
10893# ----------------------
10894# Append the text in VALUE to the end of the definition contained in VAR. Take
10895# advantage of any shell optimizations that allow amortized linear growth over
10896# repeated appends, instead of the typical quadratic growth present in naive
10897# implementations.
10898if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10899  eval 'as_fn_append ()
10900  {
10901    eval $1+=\$2
10902  }'
10903else
10904  as_fn_append ()
10905  {
10906    eval $1=\$$1\$2
10907  }
10908fi # as_fn_append
10909
10910# as_fn_arith ARG...
10911# ------------------
10912# Perform arithmetic evaluation on the ARGs, and store the result in the
10913# global $as_val. Take advantage of shells that can avoid forks. The arguments
10914# must be portable across $(()) and expr.
10915if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10916  eval 'as_fn_arith ()
10917  {
10918    as_val=$(( $* ))
10919  }'
10920else
10921  as_fn_arith ()
10922  {
10923    as_val=`expr "$@" || test $? -eq 1`
10924  }
10925fi # as_fn_arith
10926
10927
10928if expr a : '\(a\)' >/dev/null 2>&1 &&
10929   test "X`expr 00001 : '.*\(...\)'`" = X001; then
10930  as_expr=expr
10931else
10932  as_expr=false
10933fi
10934
10935if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10936  as_basename=basename
10937else
10938  as_basename=false
10939fi
10940
10941if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10942  as_dirname=dirname
10943else
10944  as_dirname=false
10945fi
10946
10947as_me=`$as_basename -- "$0" ||
10948$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10949	 X"$0" : 'X\(//\)$' \| \
10950	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10951$as_echo X/"$0" |
10952    sed '/^.*\/\([^/][^/]*\)\/*$/{
10953	    s//\1/
10954	    q
10955	  }
10956	  /^X\/\(\/\/\)$/{
10957	    s//\1/
10958	    q
10959	  }
10960	  /^X\/\(\/\).*/{
10961	    s//\1/
10962	    q
10963	  }
10964	  s/.*/./; q'`
10965
10966# Avoid depending upon Character Ranges.
10967as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10968as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10969as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10970as_cr_digits='0123456789'
10971as_cr_alnum=$as_cr_Letters$as_cr_digits
10972
10973ECHO_C= ECHO_N= ECHO_T=
10974case `echo -n x` in #(((((
10975-n*)
10976  case `echo 'xy\c'` in
10977  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
10978  xy)  ECHO_C='\c';;
10979  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
10980       ECHO_T='	';;
10981  esac;;
10982*)
10983  ECHO_N='-n';;
10984esac
10985
10986rm -f conf$$ conf$$.exe conf$$.file
10987if test -d conf$$.dir; then
10988  rm -f conf$$.dir/conf$$.file
10989else
10990  rm -f conf$$.dir
10991  mkdir conf$$.dir 2>/dev/null
10992fi
10993if (echo >conf$$.file) 2>/dev/null; then
10994  if ln -s conf$$.file conf$$ 2>/dev/null; then
10995    as_ln_s='ln -s'
10996    # ... but there are two gotchas:
10997    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10998    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10999    # In both cases, we have to default to `cp -p'.
11000    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11001      as_ln_s='cp -p'
11002  elif ln conf$$.file conf$$ 2>/dev/null; then
11003    as_ln_s=ln
11004  else
11005    as_ln_s='cp -p'
11006  fi
11007else
11008  as_ln_s='cp -p'
11009fi
11010rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11011rmdir conf$$.dir 2>/dev/null
11012
11013
11014# as_fn_mkdir_p
11015# -------------
11016# Create "$as_dir" as a directory, including parents if necessary.
11017as_fn_mkdir_p ()
11018{
11019
11020  case $as_dir in #(
11021  -*) as_dir=./$as_dir;;
11022  esac
11023  test -d "$as_dir" || eval $as_mkdir_p || {
11024    as_dirs=
11025    while :; do
11026      case $as_dir in #(
11027      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11028      *) as_qdir=$as_dir;;
11029      esac
11030      as_dirs="'$as_qdir' $as_dirs"
11031      as_dir=`$as_dirname -- "$as_dir" ||
11032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11033	 X"$as_dir" : 'X\(//\)[^/]' \| \
11034	 X"$as_dir" : 'X\(//\)$' \| \
11035	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11036$as_echo X"$as_dir" |
11037    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11038	    s//\1/
11039	    q
11040	  }
11041	  /^X\(\/\/\)[^/].*/{
11042	    s//\1/
11043	    q
11044	  }
11045	  /^X\(\/\/\)$/{
11046	    s//\1/
11047	    q
11048	  }
11049	  /^X\(\/\).*/{
11050	    s//\1/
11051	    q
11052	  }
11053	  s/.*/./; q'`
11054      test -d "$as_dir" && break
11055    done
11056    test -z "$as_dirs" || eval "mkdir $as_dirs"
11057  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11058
11059
11060} # as_fn_mkdir_p
11061if mkdir -p . 2>/dev/null; then
11062  as_mkdir_p='mkdir -p "$as_dir"'
11063else
11064  test -d ./-p && rmdir ./-p
11065  as_mkdir_p=false
11066fi
11067
11068if test -x / >/dev/null 2>&1; then
11069  as_test_x='test -x'
11070else
11071  if ls -dL / >/dev/null 2>&1; then
11072    as_ls_L_option=L
11073  else
11074    as_ls_L_option=
11075  fi
11076  as_test_x='
11077    eval sh -c '\''
11078      if test -d "$1"; then
11079	test -d "$1/.";
11080      else
11081	case $1 in #(
11082	-*)set "./$1";;
11083	esac;
11084	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11085	???[sx]*):;;*)false;;esac;fi
11086    '\'' sh
11087  '
11088fi
11089as_executable_p=$as_test_x
11090
11091# Sed expression to map a string onto a valid CPP name.
11092as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11093
11094# Sed expression to map a string onto a valid variable name.
11095as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11096
11097
11098exec 6>&1
11099## ----------------------------------- ##
11100## Main body of $CONFIG_STATUS script. ##
11101## ----------------------------------- ##
11102_ASEOF
11103test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11104
11105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11106# Save the log message, to keep $0 and so on meaningful, and to
11107# report actual input values of CONFIG_FILES etc. instead of their
11108# values after options handling.
11109ac_log="
11110This file was extended by xsetroot $as_me 1.1.1, which was
11111generated by GNU Autoconf 2.68.  Invocation command line was
11112
11113  CONFIG_FILES    = $CONFIG_FILES
11114  CONFIG_HEADERS  = $CONFIG_HEADERS
11115  CONFIG_LINKS    = $CONFIG_LINKS
11116  CONFIG_COMMANDS = $CONFIG_COMMANDS
11117  $ $0 $@
11118
11119on `(hostname || uname -n) 2>/dev/null | sed 1q`
11120"
11121
11122_ACEOF
11123
11124case $ac_config_files in *"
11125"*) set x $ac_config_files; shift; ac_config_files=$*;;
11126esac
11127
11128case $ac_config_headers in *"
11129"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11130esac
11131
11132
11133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11134# Files that config.status was made for.
11135config_files="$ac_config_files"
11136config_headers="$ac_config_headers"
11137config_commands="$ac_config_commands"
11138
11139_ACEOF
11140
11141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11142ac_cs_usage="\
11143\`$as_me' instantiates files and other configuration actions
11144from templates according to the current configuration.  Unless the files
11145and actions are specified as TAGs, all are instantiated by default.
11146
11147Usage: $0 [OPTION]... [TAG]...
11148
11149  -h, --help       print this help, then exit
11150  -V, --version    print version number and configuration settings, then exit
11151      --config     print configuration, then exit
11152  -q, --quiet, --silent
11153                   do not print progress messages
11154  -d, --debug      don't remove temporary files
11155      --recheck    update $as_me by reconfiguring in the same conditions
11156      --file=FILE[:TEMPLATE]
11157                   instantiate the configuration file FILE
11158      --header=FILE[:TEMPLATE]
11159                   instantiate the configuration header FILE
11160
11161Configuration files:
11162$config_files
11163
11164Configuration headers:
11165$config_headers
11166
11167Configuration commands:
11168$config_commands
11169
11170Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11171
11172_ACEOF
11173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11174ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11175ac_cs_version="\\
11176xsetroot config.status 1.1.1
11177configured by $0, generated by GNU Autoconf 2.68,
11178  with options \\"\$ac_cs_config\\"
11179
11180Copyright (C) 2010 Free Software Foundation, Inc.
11181This config.status script is free software; the Free Software Foundation
11182gives unlimited permission to copy, distribute and modify it."
11183
11184ac_pwd='$ac_pwd'
11185srcdir='$srcdir'
11186INSTALL='$INSTALL'
11187MKDIR_P='$MKDIR_P'
11188AWK='$AWK'
11189test -n "\$AWK" || AWK=awk
11190_ACEOF
11191
11192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11193# The default lists apply if the user does not specify any file.
11194ac_need_defaults=:
11195while test $# != 0
11196do
11197  case $1 in
11198  --*=?*)
11199    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11200    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11201    ac_shift=:
11202    ;;
11203  --*=)
11204    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11205    ac_optarg=
11206    ac_shift=:
11207    ;;
11208  *)
11209    ac_option=$1
11210    ac_optarg=$2
11211    ac_shift=shift
11212    ;;
11213  esac
11214
11215  case $ac_option in
11216  # Handling of the options.
11217  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11218    ac_cs_recheck=: ;;
11219  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11220    $as_echo "$ac_cs_version"; exit ;;
11221  --config | --confi | --conf | --con | --co | --c )
11222    $as_echo "$ac_cs_config"; exit ;;
11223  --debug | --debu | --deb | --de | --d | -d )
11224    debug=: ;;
11225  --file | --fil | --fi | --f )
11226    $ac_shift
11227    case $ac_optarg in
11228    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11229    '') as_fn_error $? "missing file argument" ;;
11230    esac
11231    as_fn_append CONFIG_FILES " '$ac_optarg'"
11232    ac_need_defaults=false;;
11233  --header | --heade | --head | --hea )
11234    $ac_shift
11235    case $ac_optarg in
11236    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11237    esac
11238    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11239    ac_need_defaults=false;;
11240  --he | --h)
11241    # Conflict between --help and --header
11242    as_fn_error $? "ambiguous option: \`$1'
11243Try \`$0 --help' for more information.";;
11244  --help | --hel | -h )
11245    $as_echo "$ac_cs_usage"; exit ;;
11246  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11247  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11248    ac_cs_silent=: ;;
11249
11250  # This is an error.
11251  -*) as_fn_error $? "unrecognized option: \`$1'
11252Try \`$0 --help' for more information." ;;
11253
11254  *) as_fn_append ac_config_targets " $1"
11255     ac_need_defaults=false ;;
11256
11257  esac
11258  shift
11259done
11260
11261ac_configure_extra_args=
11262
11263if $ac_cs_silent; then
11264  exec 6>/dev/null
11265  ac_configure_extra_args="$ac_configure_extra_args --silent"
11266fi
11267
11268_ACEOF
11269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11270if \$ac_cs_recheck; then
11271  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11272  shift
11273  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11274  CONFIG_SHELL='$SHELL'
11275  export CONFIG_SHELL
11276  exec "\$@"
11277fi
11278
11279_ACEOF
11280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11281exec 5>>config.log
11282{
11283  echo
11284  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11285## Running $as_me. ##
11286_ASBOX
11287  $as_echo "$ac_log"
11288} >&5
11289
11290_ACEOF
11291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11292#
11293# INIT-COMMANDS
11294#
11295AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11296
11297_ACEOF
11298
11299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11300
11301# Handling of arguments.
11302for ac_config_target in $ac_config_targets
11303do
11304  case $ac_config_target in
11305    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11306    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11307    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11308    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11309
11310  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11311  esac
11312done
11313
11314
11315# If the user did not use the arguments to specify the items to instantiate,
11316# then the envvar interface is used.  Set only those that are not.
11317# We use the long form for the default assignment because of an extremely
11318# bizarre bug on SunOS 4.1.3.
11319if $ac_need_defaults; then
11320  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11321  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11322  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11323fi
11324
11325# Have a temporary directory for convenience.  Make it in the build tree
11326# simply because there is no reason against having it here, and in addition,
11327# creating and moving files from /tmp can sometimes cause problems.
11328# Hook for its removal unless debugging.
11329# Note that there is a small window in which the directory will not be cleaned:
11330# after its creation but before its name has been assigned to `$tmp'.
11331$debug ||
11332{
11333  tmp= ac_tmp=
11334  trap 'exit_status=$?
11335  : "${ac_tmp:=$tmp}"
11336  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11337' 0
11338  trap 'as_fn_exit 1' 1 2 13 15
11339}
11340# Create a (secure) tmp directory for tmp files.
11341
11342{
11343  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11344  test -d "$tmp"
11345}  ||
11346{
11347  tmp=./conf$$-$RANDOM
11348  (umask 077 && mkdir "$tmp")
11349} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11350ac_tmp=$tmp
11351
11352# Set up the scripts for CONFIG_FILES section.
11353# No need to generate them if there are no CONFIG_FILES.
11354# This happens for instance with `./config.status config.h'.
11355if test -n "$CONFIG_FILES"; then
11356
11357
11358ac_cr=`echo X | tr X '\015'`
11359# On cygwin, bash can eat \r inside `` if the user requested igncr.
11360# But we know of no other shell where ac_cr would be empty at this
11361# point, so we can use a bashism as a fallback.
11362if test "x$ac_cr" = x; then
11363  eval ac_cr=\$\'\\r\'
11364fi
11365ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11366if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11367  ac_cs_awk_cr='\\r'
11368else
11369  ac_cs_awk_cr=$ac_cr
11370fi
11371
11372echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11373_ACEOF
11374
11375
11376{
11377  echo "cat >conf$$subs.awk <<_ACEOF" &&
11378  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11379  echo "_ACEOF"
11380} >conf$$subs.sh ||
11381  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11382ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11383ac_delim='%!_!# '
11384for ac_last_try in false false false false false :; do
11385  . ./conf$$subs.sh ||
11386    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11387
11388  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11389  if test $ac_delim_n = $ac_delim_num; then
11390    break
11391  elif $ac_last_try; then
11392    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11393  else
11394    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11395  fi
11396done
11397rm -f conf$$subs.sh
11398
11399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11400cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11401_ACEOF
11402sed -n '
11403h
11404s/^/S["/; s/!.*/"]=/
11405p
11406g
11407s/^[^!]*!//
11408:repl
11409t repl
11410s/'"$ac_delim"'$//
11411t delim
11412:nl
11413h
11414s/\(.\{148\}\)..*/\1/
11415t more1
11416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11417p
11418n
11419b repl
11420:more1
11421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11422p
11423g
11424s/.\{148\}//
11425t nl
11426:delim
11427h
11428s/\(.\{148\}\)..*/\1/
11429t more2
11430s/["\\]/\\&/g; s/^/"/; s/$/"/
11431p
11432b
11433:more2
11434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11435p
11436g
11437s/.\{148\}//
11438t delim
11439' <conf$$subs.awk | sed '
11440/^[^""]/{
11441  N
11442  s/\n//
11443}
11444' >>$CONFIG_STATUS || ac_write_fail=1
11445rm -f conf$$subs.awk
11446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11447_ACAWK
11448cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11449  for (key in S) S_is_set[key] = 1
11450  FS = ""
11451
11452}
11453{
11454  line = $ 0
11455  nfields = split(line, field, "@")
11456  substed = 0
11457  len = length(field[1])
11458  for (i = 2; i < nfields; i++) {
11459    key = field[i]
11460    keylen = length(key)
11461    if (S_is_set[key]) {
11462      value = S[key]
11463      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11464      len += length(value) + length(field[++i])
11465      substed = 1
11466    } else
11467      len += 1 + keylen
11468  }
11469
11470  print line
11471}
11472
11473_ACAWK
11474_ACEOF
11475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11476if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11477  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11478else
11479  cat
11480fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11481  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11482_ACEOF
11483
11484# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11485# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11486# trailing colons and then remove the whole line if VPATH becomes empty
11487# (actually we leave an empty line to preserve line numbers).
11488if test "x$srcdir" = x.; then
11489  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11490h
11491s///
11492s/^/:/
11493s/[	 ]*$/:/
11494s/:\$(srcdir):/:/g
11495s/:\${srcdir}:/:/g
11496s/:@srcdir@:/:/g
11497s/^:*//
11498s/:*$//
11499x
11500s/\(=[	 ]*\).*/\1/
11501G
11502s/\n//
11503s/^[^=]*=[	 ]*$//
11504}'
11505fi
11506
11507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11508fi # test -n "$CONFIG_FILES"
11509
11510# Set up the scripts for CONFIG_HEADERS section.
11511# No need to generate them if there are no CONFIG_HEADERS.
11512# This happens for instance with `./config.status Makefile'.
11513if test -n "$CONFIG_HEADERS"; then
11514cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11515BEGIN {
11516_ACEOF
11517
11518# Transform confdefs.h into an awk script `defines.awk', embedded as
11519# here-document in config.status, that substitutes the proper values into
11520# config.h.in to produce config.h.
11521
11522# Create a delimiter string that does not exist in confdefs.h, to ease
11523# handling of long lines.
11524ac_delim='%!_!# '
11525for ac_last_try in false false :; do
11526  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11527  if test -z "$ac_tt"; then
11528    break
11529  elif $ac_last_try; then
11530    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11531  else
11532    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11533  fi
11534done
11535
11536# For the awk script, D is an array of macro values keyed by name,
11537# likewise P contains macro parameters if any.  Preserve backslash
11538# newline sequences.
11539
11540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11541sed -n '
11542s/.\{148\}/&'"$ac_delim"'/g
11543t rset
11544:rset
11545s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11546t def
11547d
11548:def
11549s/\\$//
11550t bsnl
11551s/["\\]/\\&/g
11552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11553D["\1"]=" \3"/p
11554s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11555d
11556:bsnl
11557s/["\\]/\\&/g
11558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11559D["\1"]=" \3\\\\\\n"\\/p
11560t cont
11561s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11562t cont
11563d
11564:cont
11565n
11566s/.\{148\}/&'"$ac_delim"'/g
11567t clear
11568:clear
11569s/\\$//
11570t bsnlc
11571s/["\\]/\\&/g; s/^/"/; s/$/"/p
11572d
11573:bsnlc
11574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11575b cont
11576' <confdefs.h | sed '
11577s/'"$ac_delim"'/"\\\
11578"/g' >>$CONFIG_STATUS || ac_write_fail=1
11579
11580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11581  for (key in D) D_is_set[key] = 1
11582  FS = ""
11583}
11584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11585  line = \$ 0
11586  split(line, arg, " ")
11587  if (arg[1] == "#") {
11588    defundef = arg[2]
11589    mac1 = arg[3]
11590  } else {
11591    defundef = substr(arg[1], 2)
11592    mac1 = arg[2]
11593  }
11594  split(mac1, mac2, "(") #)
11595  macro = mac2[1]
11596  prefix = substr(line, 1, index(line, defundef) - 1)
11597  if (D_is_set[macro]) {
11598    # Preserve the white space surrounding the "#".
11599    print prefix "define", macro P[macro] D[macro]
11600    next
11601  } else {
11602    # Replace #undef with comments.  This is necessary, for example,
11603    # in the case of _POSIX_SOURCE, which is predefined and required
11604    # on some systems where configure will not decide to define it.
11605    if (defundef == "undef") {
11606      print "/*", prefix defundef, macro, "*/"
11607      next
11608    }
11609  }
11610}
11611{ print }
11612_ACAWK
11613_ACEOF
11614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11615  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11616fi # test -n "$CONFIG_HEADERS"
11617
11618
11619eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11620shift
11621for ac_tag
11622do
11623  case $ac_tag in
11624  :[FHLC]) ac_mode=$ac_tag; continue;;
11625  esac
11626  case $ac_mode$ac_tag in
11627  :[FHL]*:*);;
11628  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11629  :[FH]-) ac_tag=-:-;;
11630  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11631  esac
11632  ac_save_IFS=$IFS
11633  IFS=:
11634  set x $ac_tag
11635  IFS=$ac_save_IFS
11636  shift
11637  ac_file=$1
11638  shift
11639
11640  case $ac_mode in
11641  :L) ac_source=$1;;
11642  :[FH])
11643    ac_file_inputs=
11644    for ac_f
11645    do
11646      case $ac_f in
11647      -) ac_f="$ac_tmp/stdin";;
11648      *) # Look for the file first in the build tree, then in the source tree
11649	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11650	 # because $ac_f cannot contain `:'.
11651	 test -f "$ac_f" ||
11652	   case $ac_f in
11653	   [\\/$]*) false;;
11654	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11655	   esac ||
11656	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11657      esac
11658      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11659      as_fn_append ac_file_inputs " '$ac_f'"
11660    done
11661
11662    # Let's still pretend it is `configure' which instantiates (i.e., don't
11663    # use $as_me), people would be surprised to read:
11664    #    /* config.h.  Generated by config.status.  */
11665    configure_input='Generated from '`
11666	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11667	`' by configure.'
11668    if test x"$ac_file" != x-; then
11669      configure_input="$ac_file.  $configure_input"
11670      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11671$as_echo "$as_me: creating $ac_file" >&6;}
11672    fi
11673    # Neutralize special characters interpreted by sed in replacement strings.
11674    case $configure_input in #(
11675    *\&* | *\|* | *\\* )
11676       ac_sed_conf_input=`$as_echo "$configure_input" |
11677       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11678    *) ac_sed_conf_input=$configure_input;;
11679    esac
11680
11681    case $ac_tag in
11682    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11683      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11684    esac
11685    ;;
11686  esac
11687
11688  ac_dir=`$as_dirname -- "$ac_file" ||
11689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11690	 X"$ac_file" : 'X\(//\)[^/]' \| \
11691	 X"$ac_file" : 'X\(//\)$' \| \
11692	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11693$as_echo X"$ac_file" |
11694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11695	    s//\1/
11696	    q
11697	  }
11698	  /^X\(\/\/\)[^/].*/{
11699	    s//\1/
11700	    q
11701	  }
11702	  /^X\(\/\/\)$/{
11703	    s//\1/
11704	    q
11705	  }
11706	  /^X\(\/\).*/{
11707	    s//\1/
11708	    q
11709	  }
11710	  s/.*/./; q'`
11711  as_dir="$ac_dir"; as_fn_mkdir_p
11712  ac_builddir=.
11713
11714case "$ac_dir" in
11715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11716*)
11717  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11718  # A ".." for each directory in $ac_dir_suffix.
11719  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11720  case $ac_top_builddir_sub in
11721  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11722  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11723  esac ;;
11724esac
11725ac_abs_top_builddir=$ac_pwd
11726ac_abs_builddir=$ac_pwd$ac_dir_suffix
11727# for backward compatibility:
11728ac_top_builddir=$ac_top_build_prefix
11729
11730case $srcdir in
11731  .)  # We are building in place.
11732    ac_srcdir=.
11733    ac_top_srcdir=$ac_top_builddir_sub
11734    ac_abs_top_srcdir=$ac_pwd ;;
11735  [\\/]* | ?:[\\/]* )  # Absolute name.
11736    ac_srcdir=$srcdir$ac_dir_suffix;
11737    ac_top_srcdir=$srcdir
11738    ac_abs_top_srcdir=$srcdir ;;
11739  *) # Relative name.
11740    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11741    ac_top_srcdir=$ac_top_build_prefix$srcdir
11742    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11743esac
11744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11745
11746
11747  case $ac_mode in
11748  :F)
11749  #
11750  # CONFIG_FILE
11751  #
11752
11753  case $INSTALL in
11754  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11755  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11756  esac
11757  ac_MKDIR_P=$MKDIR_P
11758  case $MKDIR_P in
11759  [\\/$]* | ?:[\\/]* ) ;;
11760  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11761  esac
11762_ACEOF
11763
11764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11765# If the template does not know about datarootdir, expand it.
11766# FIXME: This hack should be removed a few years after 2.60.
11767ac_datarootdir_hack=; ac_datarootdir_seen=
11768ac_sed_dataroot='
11769/datarootdir/ {
11770  p
11771  q
11772}
11773/@datadir@/p
11774/@docdir@/p
11775/@infodir@/p
11776/@localedir@/p
11777/@mandir@/p'
11778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11779*datarootdir*) ac_datarootdir_seen=yes;;
11780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11781  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11783_ACEOF
11784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11785  ac_datarootdir_hack='
11786  s&@datadir@&$datadir&g
11787  s&@docdir@&$docdir&g
11788  s&@infodir@&$infodir&g
11789  s&@localedir@&$localedir&g
11790  s&@mandir@&$mandir&g
11791  s&\\\${datarootdir}&$datarootdir&g' ;;
11792esac
11793_ACEOF
11794
11795# Neutralize VPATH when `$srcdir' = `.'.
11796# Shell code in configure.ac might set extrasub.
11797# FIXME: do we really want to maintain this feature?
11798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799ac_sed_extra="$ac_vpsub
11800$extrasub
11801_ACEOF
11802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11803:t
11804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11805s|@configure_input@|$ac_sed_conf_input|;t t
11806s&@top_builddir@&$ac_top_builddir_sub&;t t
11807s&@top_build_prefix@&$ac_top_build_prefix&;t t
11808s&@srcdir@&$ac_srcdir&;t t
11809s&@abs_srcdir@&$ac_abs_srcdir&;t t
11810s&@top_srcdir@&$ac_top_srcdir&;t t
11811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11812s&@builddir@&$ac_builddir&;t t
11813s&@abs_builddir@&$ac_abs_builddir&;t t
11814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11815s&@INSTALL@&$ac_INSTALL&;t t
11816s&@MKDIR_P@&$ac_MKDIR_P&;t t
11817$ac_datarootdir_hack
11818"
11819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11820  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11821
11822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11823  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11824  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11825      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11826  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11827which seems to be undefined.  Please make sure it is defined" >&5
11828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11829which seems to be undefined.  Please make sure it is defined" >&2;}
11830
11831  rm -f "$ac_tmp/stdin"
11832  case $ac_file in
11833  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11834  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11835  esac \
11836  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11837 ;;
11838  :H)
11839  #
11840  # CONFIG_HEADER
11841  #
11842  if test x"$ac_file" != x-; then
11843    {
11844      $as_echo "/* $configure_input  */" \
11845      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11846    } >"$ac_tmp/config.h" \
11847      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11848    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11849      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11850$as_echo "$as_me: $ac_file is unchanged" >&6;}
11851    else
11852      rm -f "$ac_file"
11853      mv "$ac_tmp/config.h" "$ac_file" \
11854	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11855    fi
11856  else
11857    $as_echo "/* $configure_input  */" \
11858      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11859      || as_fn_error $? "could not create -" "$LINENO" 5
11860  fi
11861# Compute "$ac_file"'s index in $config_headers.
11862_am_arg="$ac_file"
11863_am_stamp_count=1
11864for _am_header in $config_headers :; do
11865  case $_am_header in
11866    $_am_arg | $_am_arg:* )
11867      break ;;
11868    * )
11869      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11870  esac
11871done
11872echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11873$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11874	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11875	 X"$_am_arg" : 'X\(//\)$' \| \
11876	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11877$as_echo X"$_am_arg" |
11878    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11879	    s//\1/
11880	    q
11881	  }
11882	  /^X\(\/\/\)[^/].*/{
11883	    s//\1/
11884	    q
11885	  }
11886	  /^X\(\/\/\)$/{
11887	    s//\1/
11888	    q
11889	  }
11890	  /^X\(\/\).*/{
11891	    s//\1/
11892	    q
11893	  }
11894	  s/.*/./; q'`/stamp-h$_am_stamp_count
11895 ;;
11896
11897  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11898$as_echo "$as_me: executing $ac_file commands" >&6;}
11899 ;;
11900  esac
11901
11902
11903  case $ac_file$ac_mode in
11904    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11905  # Autoconf 2.62 quotes --file arguments for eval, but not when files
11906  # are listed without --file.  Let's play safe and only enable the eval
11907  # if we detect the quoting.
11908  case $CONFIG_FILES in
11909  *\'*) eval set x "$CONFIG_FILES" ;;
11910  *)   set x $CONFIG_FILES ;;
11911  esac
11912  shift
11913  for mf
11914  do
11915    # Strip MF so we end up with the name of the file.
11916    mf=`echo "$mf" | sed -e 's/:.*$//'`
11917    # Check whether this is an Automake generated Makefile or not.
11918    # We used to match only the files named `Makefile.in', but
11919    # some people rename them; so instead we look at the file content.
11920    # Grep'ing the first line is not enough: some people post-process
11921    # each Makefile.in and add a new line on top of each file to say so.
11922    # Grep'ing the whole file is not good either: AIX grep has a line
11923    # limit of 2048, but all sed's we know have understand at least 4000.
11924    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11925      dirpart=`$as_dirname -- "$mf" ||
11926$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11927	 X"$mf" : 'X\(//\)[^/]' \| \
11928	 X"$mf" : 'X\(//\)$' \| \
11929	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11930$as_echo X"$mf" |
11931    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11932	    s//\1/
11933	    q
11934	  }
11935	  /^X\(\/\/\)[^/].*/{
11936	    s//\1/
11937	    q
11938	  }
11939	  /^X\(\/\/\)$/{
11940	    s//\1/
11941	    q
11942	  }
11943	  /^X\(\/\).*/{
11944	    s//\1/
11945	    q
11946	  }
11947	  s/.*/./; q'`
11948    else
11949      continue
11950    fi
11951    # Extract the definition of DEPDIR, am__include, and am__quote
11952    # from the Makefile without running `make'.
11953    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11954    test -z "$DEPDIR" && continue
11955    am__include=`sed -n 's/^am__include = //p' < "$mf"`
11956    test -z "am__include" && continue
11957    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11958    # When using ansi2knr, U may be empty or an underscore; expand it
11959    U=`sed -n 's/^U = //p' < "$mf"`
11960    # Find all dependency output files, they are included files with
11961    # $(DEPDIR) in their names.  We invoke sed twice because it is the
11962    # simplest approach to changing $(DEPDIR) to its actual value in the
11963    # expansion.
11964    for file in `sed -n "
11965      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11966	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11967      # Make sure the directory exists.
11968      test -f "$dirpart/$file" && continue
11969      fdir=`$as_dirname -- "$file" ||
11970$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971	 X"$file" : 'X\(//\)[^/]' \| \
11972	 X"$file" : 'X\(//\)$' \| \
11973	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11974$as_echo X"$file" |
11975    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11976	    s//\1/
11977	    q
11978	  }
11979	  /^X\(\/\/\)[^/].*/{
11980	    s//\1/
11981	    q
11982	  }
11983	  /^X\(\/\/\)$/{
11984	    s//\1/
11985	    q
11986	  }
11987	  /^X\(\/\).*/{
11988	    s//\1/
11989	    q
11990	  }
11991	  s/.*/./; q'`
11992      as_dir=$dirpart/$fdir; as_fn_mkdir_p
11993      # echo "creating $dirpart/$file"
11994      echo '# dummy' > "$dirpart/$file"
11995    done
11996  done
11997}
11998 ;;
11999
12000  esac
12001done # for ac_tag
12002
12003
12004as_fn_exit 0
12005_ACEOF
12006ac_clean_files=$ac_clean_files_save
12007
12008test $ac_write_fail = 0 ||
12009  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12010
12011
12012# configure is writing to config.log, and then calls config.status.
12013# config.status does its own redirection, appending to config.log.
12014# Unfortunately, on DOS this fails, as config.log is still kept open
12015# by configure, so config.status won't be able to write to it; its
12016# output is simply discarded.  So we exec the FD to /dev/null,
12017# effectively closing config.log, so it can be properly (re)opened and
12018# appended to by config.status.  When coming back to configure, we
12019# need to make the FD available again.
12020if test "$no_create" != yes; then
12021  ac_cs_success=:
12022  ac_config_status_args=
12023  test "$silent" = yes &&
12024    ac_config_status_args="$ac_config_status_args --quiet"
12025  exec 5>/dev/null
12026  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12027  exec 5>>config.log
12028  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12029  # would make configure fail if this is the last instruction.
12030  $ac_cs_success || as_fn_exit 1
12031fi
12032if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12034$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12035fi
12036
12037