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