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