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