configure revision a9ba4257
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xgc 1.0.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xgc'
583PACKAGE_TARNAME='xgc'
584PACKAGE_VERSION='1.0.5'
585PACKAGE_STRING='xgc 1.0.5'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630appdefaultdir
631XGC_LIBS
632XGC_CFLAGS
633YACC_INST
634YFLAGS
635YACC
636LEXLIB
637LEX_OUTPUT_ROOT
638LEX
639MAN_SUBSTS
640XORG_MAN_PAGE
641ADMIN_MAN_DIR
642DRIVER_MAN_DIR
643MISC_MAN_DIR
644FILE_MAN_DIR
645LIB_MAN_DIR
646APP_MAN_DIR
647ADMIN_MAN_SUFFIX
648DRIVER_MAN_SUFFIX
649MISC_MAN_SUFFIX
650FILE_MAN_SUFFIX
651LIB_MAN_SUFFIX
652APP_MAN_SUFFIX
653SED
654host_os
655host_vendor
656host_cpu
657host
658build_os
659build_vendor
660build_cpu
661build
662INSTALL_CMD
663PKG_CONFIG
664CHANGELOG_CMD
665STRICT_CFLAGS
666CWARNFLAGS
667BASE_CFLAGS
668EGREP
669GREP
670CPP
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681OBJEXT
682EXEEXT
683ac_ct_CC
684CPPFLAGS
685LDFLAGS
686CFLAGS
687CC
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692am__untar
693am__tar
694AMTAR
695am__leading_dot
696SET_MAKE
697AWK
698mkdir_p
699MKDIR_P
700INSTALL_STRIP_PROGRAM
701STRIP
702install_sh
703MAKEINFO
704AUTOHEADER
705AUTOMAKE
706AUTOCONF
707ACLOCAL
708VERSION
709PACKAGE
710CYGPATH_W
711am__isrc
712INSTALL_DATA
713INSTALL_SCRIPT
714INSTALL_PROGRAM
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
753ac_subst_files=''
754ac_user_opts='
755enable_option_checking
756enable_silent_rules
757enable_dependency_tracking
758enable_selective_werror
759enable_strict_compilation
760with_appdefaultdir
761'
762      ac_precious_vars='build_alias
763host_alias
764target_alias
765CC
766CFLAGS
767LDFLAGS
768LIBS
769CPPFLAGS
770CPP
771PKG_CONFIG
772YACC
773YFLAGS
774XGC_CFLAGS
775XGC_LIBS'
776
777
778# Initialize some variables set by options.
779ac_init_help=
780ac_init_version=false
781ac_unrecognized_opts=
782ac_unrecognized_sep=
783# The variables have the same names as the options, with
784# dashes changed to underlines.
785cache_file=/dev/null
786exec_prefix=NONE
787no_create=
788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
796verbose=
797x_includes=NONE
798x_libraries=NONE
799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
805# (The list follows the same order as the GNU Coding Standards.)
806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
814includedir='${prefix}/include'
815oldincludedir='/usr/include'
816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
825
826ac_prev=
827ac_dashdash=
828for ac_option
829do
830  # If the previous option needs an argument, assign it.
831  if test -n "$ac_prev"; then
832    eval $ac_prev=\$ac_option
833    ac_prev=
834    continue
835  fi
836
837  case $ac_option in
838  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839  *=)   ac_optarg= ;;
840  *)    ac_optarg=yes ;;
841  esac
842
843  # Accept the important Cygnus configure options, so we can diagnose typos.
844
845  case $ac_dashdash$ac_option in
846  --)
847    ac_dashdash=yes ;;
848
849  -bindir | --bindir | --bindi | --bind | --bin | --bi)
850    ac_prev=bindir ;;
851  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852    bindir=$ac_optarg ;;
853
854  -build | --build | --buil | --bui | --bu)
855    ac_prev=build_alias ;;
856  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857    build_alias=$ac_optarg ;;
858
859  -cache-file | --cache-file | --cache-fil | --cache-fi \
860  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861    ac_prev=cache_file ;;
862  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864    cache_file=$ac_optarg ;;
865
866  --config-cache | -C)
867    cache_file=config.cache ;;
868
869  -datadir | --datadir | --datadi | --datad)
870    ac_prev=datadir ;;
871  -datadir=* | --datadir=* | --datadi=* | --datad=*)
872    datadir=$ac_optarg ;;
873
874  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875  | --dataroo | --dataro | --datar)
876    ac_prev=datarootdir ;;
877  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879    datarootdir=$ac_optarg ;;
880
881  -disable-* | --disable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error $? "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=no ;;
896
897  -docdir | --docdir | --docdi | --doc | --do)
898    ac_prev=docdir ;;
899  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900    docdir=$ac_optarg ;;
901
902  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903    ac_prev=dvidir ;;
904  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905    dvidir=$ac_optarg ;;
906
907  -enable-* | --enable-*)
908    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909    # Reject names that are not valid shell variable names.
910    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911      as_fn_error $? "invalid feature name: $ac_useropt"
912    ac_useropt_orig=$ac_useropt
913    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914    case $ac_user_opts in
915      *"
916"enable_$ac_useropt"
917"*) ;;
918      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919	 ac_unrecognized_sep=', ';;
920    esac
921    eval enable_$ac_useropt=\$ac_optarg ;;
922
923  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925  | --exec | --exe | --ex)
926    ac_prev=exec_prefix ;;
927  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929  | --exec=* | --exe=* | --ex=*)
930    exec_prefix=$ac_optarg ;;
931
932  -gas | --gas | --ga | --g)
933    # Obsolete; use --with-gas.
934    with_gas=yes ;;
935
936  -help | --help | --hel | --he | -h)
937    ac_init_help=long ;;
938  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939    ac_init_help=recursive ;;
940  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941    ac_init_help=short ;;
942
943  -host | --host | --hos | --ho)
944    ac_prev=host_alias ;;
945  -host=* | --host=* | --hos=* | --ho=*)
946    host_alias=$ac_optarg ;;
947
948  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949    ac_prev=htmldir ;;
950  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951  | --ht=*)
952    htmldir=$ac_optarg ;;
953
954  -includedir | --includedir | --includedi | --included | --include \
955  | --includ | --inclu | --incl | --inc)
956    ac_prev=includedir ;;
957  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958  | --includ=* | --inclu=* | --incl=* | --inc=*)
959    includedir=$ac_optarg ;;
960
961  -infodir | --infodir | --infodi | --infod | --info | --inf)
962    ac_prev=infodir ;;
963  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964    infodir=$ac_optarg ;;
965
966  -libdir | --libdir | --libdi | --libd)
967    ac_prev=libdir ;;
968  -libdir=* | --libdir=* | --libdi=* | --libd=*)
969    libdir=$ac_optarg ;;
970
971  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972  | --libexe | --libex | --libe)
973    ac_prev=libexecdir ;;
974  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975  | --libexe=* | --libex=* | --libe=*)
976    libexecdir=$ac_optarg ;;
977
978  -localedir | --localedir | --localedi | --localed | --locale)
979    ac_prev=localedir ;;
980  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981    localedir=$ac_optarg ;;
982
983  -localstatedir | --localstatedir | --localstatedi | --localstated \
984  | --localstate | --localstat | --localsta | --localst | --locals)
985    ac_prev=localstatedir ;;
986  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988    localstatedir=$ac_optarg ;;
989
990  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991    ac_prev=mandir ;;
992  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993    mandir=$ac_optarg ;;
994
995  -nfp | --nfp | --nf)
996    # Obsolete; use --without-fp.
997    with_fp=no ;;
998
999  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000  | --no-cr | --no-c | -n)
1001    no_create=yes ;;
1002
1003  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005    no_recursion=yes ;;
1006
1007  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009  | --oldin | --oldi | --old | --ol | --o)
1010    ac_prev=oldincludedir ;;
1011  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014    oldincludedir=$ac_optarg ;;
1015
1016  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017    ac_prev=prefix ;;
1018  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019    prefix=$ac_optarg ;;
1020
1021  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022  | --program-pre | --program-pr | --program-p)
1023    ac_prev=program_prefix ;;
1024  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026    program_prefix=$ac_optarg ;;
1027
1028  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029  | --program-suf | --program-su | --program-s)
1030    ac_prev=program_suffix ;;
1031  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033    program_suffix=$ac_optarg ;;
1034
1035  -program-transform-name | --program-transform-name \
1036  | --program-transform-nam | --program-transform-na \
1037  | --program-transform-n | --program-transform- \
1038  | --program-transform | --program-transfor \
1039  | --program-transfo | --program-transf \
1040  | --program-trans | --program-tran \
1041  | --progr-tra | --program-tr | --program-t)
1042    ac_prev=program_transform_name ;;
1043  -program-transform-name=* | --program-transform-name=* \
1044  | --program-transform-nam=* | --program-transform-na=* \
1045  | --program-transform-n=* | --program-transform-=* \
1046  | --program-transform=* | --program-transfor=* \
1047  | --program-transfo=* | --program-transf=* \
1048  | --program-trans=* | --program-tran=* \
1049  | --progr-tra=* | --program-tr=* | --program-t=*)
1050    program_transform_name=$ac_optarg ;;
1051
1052  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053    ac_prev=pdfdir ;;
1054  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055    pdfdir=$ac_optarg ;;
1056
1057  -psdir | --psdir | --psdi | --psd | --ps)
1058    ac_prev=psdir ;;
1059  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060    psdir=$ac_optarg ;;
1061
1062  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063  | -silent | --silent | --silen | --sile | --sil)
1064    silent=yes ;;
1065
1066  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067    ac_prev=sbindir ;;
1068  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069  | --sbi=* | --sb=*)
1070    sbindir=$ac_optarg ;;
1071
1072  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074  | --sharedst | --shareds | --shared | --share | --shar \
1075  | --sha | --sh)
1076    ac_prev=sharedstatedir ;;
1077  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080  | --sha=* | --sh=*)
1081    sharedstatedir=$ac_optarg ;;
1082
1083  -site | --site | --sit)
1084    ac_prev=site ;;
1085  -site=* | --site=* | --sit=*)
1086    site=$ac_optarg ;;
1087
1088  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089    ac_prev=srcdir ;;
1090  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091    srcdir=$ac_optarg ;;
1092
1093  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094  | --syscon | --sysco | --sysc | --sys | --sy)
1095    ac_prev=sysconfdir ;;
1096  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098    sysconfdir=$ac_optarg ;;
1099
1100  -target | --target | --targe | --targ | --tar | --ta | --t)
1101    ac_prev=target_alias ;;
1102  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103    target_alias=$ac_optarg ;;
1104
1105  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106    verbose=yes ;;
1107
1108  -version | --version | --versio | --versi | --vers | -V)
1109    ac_init_version=: ;;
1110
1111  -with-* | --with-*)
1112    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113    # Reject names that are not valid shell variable names.
1114    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115      as_fn_error $? "invalid package name: $ac_useropt"
1116    ac_useropt_orig=$ac_useropt
1117    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118    case $ac_user_opts in
1119      *"
1120"with_$ac_useropt"
1121"*) ;;
1122      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123	 ac_unrecognized_sep=', ';;
1124    esac
1125    eval with_$ac_useropt=\$ac_optarg ;;
1126
1127  -without-* | --without-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error $? "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=no ;;
1142
1143  --x)
1144    # Obsolete; use --with-x.
1145    with_x=yes ;;
1146
1147  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148  | --x-incl | --x-inc | --x-in | --x-i)
1149    ac_prev=x_includes ;;
1150  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152    x_includes=$ac_optarg ;;
1153
1154  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156    ac_prev=x_libraries ;;
1157  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159    x_libraries=$ac_optarg ;;
1160
1161  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162Try \`$0 --help' for more information"
1163    ;;
1164
1165  *=*)
1166    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167    # Reject names that are not valid shell variable names.
1168    case $ac_envvar in #(
1169      '' | [0-9]* | *[!_$as_cr_alnum]* )
1170      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171    esac
1172    eval $ac_envvar=\$ac_optarg
1173    export $ac_envvar ;;
1174
1175  *)
1176    # FIXME: should be removed in autoconf 3.0.
1177    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181    ;;
1182
1183  esac
1184done
1185
1186if test -n "$ac_prev"; then
1187  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188  as_fn_error $? "missing argument to $ac_option"
1189fi
1190
1191if test -n "$ac_unrecognized_opts"; then
1192  case $enable_option_checking in
1193    no) ;;
1194    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196  esac
1197fi
1198
1199# Check all directory arguments for consistency.
1200for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201		datadir sysconfdir sharedstatedir localstatedir includedir \
1202		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203		libdir localedir mandir
1204do
1205  eval ac_val=\$$ac_var
1206  # Remove trailing slashes.
1207  case $ac_val in
1208    */ )
1209      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210      eval $ac_var=\$ac_val;;
1211  esac
1212  # Be sure to have absolute directory names.
1213  case $ac_val in
1214    [\\/$]* | ?:[\\/]* )  continue;;
1215    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216  esac
1217  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218done
1219
1220# There might be people who depend on the old broken behavior: `$host'
1221# used to hold the argument of --host etc.
1222# FIXME: To remove some day.
1223build=$build_alias
1224host=$host_alias
1225target=$target_alias
1226
1227# FIXME: To remove some day.
1228if test "x$host_alias" != x; then
1229  if test "x$build_alias" = x; then
1230    cross_compiling=maybe
1231  elif test "x$build_alias" != "x$host_alias"; then
1232    cross_compiling=yes
1233  fi
1234fi
1235
1236ac_tool_prefix=
1237test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239test "$silent" = yes && exec 6>/dev/null
1240
1241
1242ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243ac_ls_di=`ls -di .` &&
1244ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245  as_fn_error $? "working directory cannot be determined"
1246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247  as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252  ac_srcdir_defaulted=yes
1253  # Try the directory containing this script, then the parent directory.
1254  ac_confdir=`$as_dirname -- "$as_myself" ||
1255$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256	 X"$as_myself" : 'X\(//\)[^/]' \| \
1257	 X"$as_myself" : 'X\(//\)$' \| \
1258	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259$as_echo X"$as_myself" |
1260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261	    s//\1/
1262	    q
1263	  }
1264	  /^X\(\/\/\)[^/].*/{
1265	    s//\1/
1266	    q
1267	  }
1268	  /^X\(\/\/\)$/{
1269	    s//\1/
1270	    q
1271	  }
1272	  /^X\(\/\).*/{
1273	    s//\1/
1274	    q
1275	  }
1276	  s/.*/./; q'`
1277  srcdir=$ac_confdir
1278  if test ! -r "$srcdir/$ac_unique_file"; then
1279    srcdir=..
1280  fi
1281else
1282  ac_srcdir_defaulted=no
1283fi
1284if test ! -r "$srcdir/$ac_unique_file"; then
1285  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287fi
1288ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289ac_abs_confdir=`(
1290	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291	pwd)`
1292# When building in place, set srcdir=.
1293if test "$ac_abs_confdir" = "$ac_pwd"; then
1294  srcdir=.
1295fi
1296# Remove unnecessary trailing slashes from srcdir.
1297# Double slashes in file names in object file debugging info
1298# mess up M-x gdb in Emacs.
1299case $srcdir in
1300*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301esac
1302for ac_var in $ac_precious_vars; do
1303  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_env_${ac_var}_value=\$${ac_var}
1305  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307done
1308
1309#
1310# Report the --help message.
1311#
1312if test "$ac_init_help" = "long"; then
1313  # Omit some internal or obsolete options to make the list less imposing.
1314  # This message is too long to be a string in the A/UX 3.1 sh.
1315  cat <<_ACEOF
1316\`configure' configures xgc 1.0.5 to adapt to many kinds of systems.
1317
1318Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323Defaults for the options are specified in brackets.
1324
1325Configuration:
1326  -h, --help              display this help and exit
1327      --help=short        display options specific to this package
1328      --help=recursive    display the short help of all the included packages
1329  -V, --version           display version information and exit
1330  -q, --quiet, --silent   do not print \`checking ...' messages
1331      --cache-file=FILE   cache test results in FILE [disabled]
1332  -C, --config-cache      alias for \`--cache-file=config.cache'
1333  -n, --no-create         do not create output files
1334      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336Installation directories:
1337  --prefix=PREFIX         install architecture-independent files in PREFIX
1338                          [$ac_default_prefix]
1339  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                          [PREFIX]
1341
1342By default, \`make install' will install all the files in
1343\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345for instance \`--prefix=\$HOME'.
1346
1347For better control, use the options below.
1348
1349Fine tuning of the installation directories:
1350  --bindir=DIR            user executables [EPREFIX/bin]
1351  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352  --libexecdir=DIR        program executables [EPREFIX/libexec]
1353  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356  --libdir=DIR            object code libraries [EPREFIX/lib]
1357  --includedir=DIR        C header files [PREFIX/include]
1358  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361  --infodir=DIR           info documentation [DATAROOTDIR/info]
1362  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363  --mandir=DIR            man documentation [DATAROOTDIR/man]
1364  --docdir=DIR            documentation root [DATAROOTDIR/doc/xgc]
1365  --htmldir=DIR           html documentation [DOCDIR]
1366  --dvidir=DIR            dvi documentation [DOCDIR]
1367  --pdfdir=DIR            pdf documentation [DOCDIR]
1368  --psdir=DIR             ps documentation [DOCDIR]
1369_ACEOF
1370
1371  cat <<\_ACEOF
1372
1373Program names:
1374  --program-prefix=PREFIX            prepend PREFIX to installed program names
1375  --program-suffix=SUFFIX            append SUFFIX to installed program names
1376  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1377
1378System types:
1379  --build=BUILD     configure for building on BUILD [guessed]
1380  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1381_ACEOF
1382fi
1383
1384if test -n "$ac_init_help"; then
1385  case $ac_init_help in
1386     short | recursive ) echo "Configuration of xgc 1.0.5:";;
1387   esac
1388  cat <<\_ACEOF
1389
1390Optional Features:
1391  --disable-option-checking  ignore unrecognized --enable/--with options
1392  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394  --enable-silent-rules   less verbose build output (undo: "make V=1")
1395  --disable-silent-rules  verbose build output (undo: "make V=0")
1396  --enable-dependency-tracking
1397                          do not reject slow dependency extractors
1398  --disable-dependency-tracking
1399                          speeds up one-time build
1400  --disable-selective-werror
1401                          Turn off selective compiler errors. (default:
1402                          enabled)
1403  --enable-strict-compilation
1404                          Enable all warnings from compiler and make them
1405                          errors (default: disabled)
1406
1407Optional Packages:
1408  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1409  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1410  --with-appdefaultdir=<pathname>
1411                          specify directory for app-defaults files (default is
1412                          autodetected)
1413
1414Some influential environment variables:
1415  CC          C compiler command
1416  CFLAGS      C compiler flags
1417  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1418              nonstandard directory <lib dir>
1419  LIBS        libraries to pass to the linker, e.g. -l<library>
1420  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421              you have headers in a nonstandard directory <include dir>
1422  CPP         C preprocessor
1423  PKG_CONFIG  path to pkg-config utility
1424  YACC        The `Yet Another Compiler Compiler' implementation to use.
1425              Defaults to the first program found out of: `bison -y', `byacc',
1426              `yacc'.
1427  YFLAGS      The list of arguments that will be passed by default to $YACC.
1428              This script will default YFLAGS to the empty string to avoid a
1429              default value of `-d' given by some make applications.
1430  XGC_CFLAGS  C compiler flags for XGC, overriding pkg-config
1431  XGC_LIBS    linker flags for XGC, overriding pkg-config
1432
1433Use these variables to override the choices made by `configure' or to help
1434it to find libraries and programs with nonstandard names/locations.
1435
1436Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1437_ACEOF
1438ac_status=$?
1439fi
1440
1441if test "$ac_init_help" = "recursive"; then
1442  # If there are subdirs, report their specific --help.
1443  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444    test -d "$ac_dir" ||
1445      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446      continue
1447    ac_builddir=.
1448
1449case "$ac_dir" in
1450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451*)
1452  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453  # A ".." for each directory in $ac_dir_suffix.
1454  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455  case $ac_top_builddir_sub in
1456  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458  esac ;;
1459esac
1460ac_abs_top_builddir=$ac_pwd
1461ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462# for backward compatibility:
1463ac_top_builddir=$ac_top_build_prefix
1464
1465case $srcdir in
1466  .)  # We are building in place.
1467    ac_srcdir=.
1468    ac_top_srcdir=$ac_top_builddir_sub
1469    ac_abs_top_srcdir=$ac_pwd ;;
1470  [\\/]* | ?:[\\/]* )  # Absolute name.
1471    ac_srcdir=$srcdir$ac_dir_suffix;
1472    ac_top_srcdir=$srcdir
1473    ac_abs_top_srcdir=$srcdir ;;
1474  *) # Relative name.
1475    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476    ac_top_srcdir=$ac_top_build_prefix$srcdir
1477    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478esac
1479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481    cd "$ac_dir" || { ac_status=$?; continue; }
1482    # Check for guested configure.
1483    if test -f "$ac_srcdir/configure.gnu"; then
1484      echo &&
1485      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486    elif test -f "$ac_srcdir/configure"; then
1487      echo &&
1488      $SHELL "$ac_srcdir/configure" --help=recursive
1489    else
1490      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491    fi || ac_status=$?
1492    cd "$ac_pwd" || { ac_status=$?; break; }
1493  done
1494fi
1495
1496test -n "$ac_init_help" && exit $ac_status
1497if $ac_init_version; then
1498  cat <<\_ACEOF
1499xgc configure 1.0.5
1500generated by GNU Autoconf 2.69
1501
1502Copyright (C) 2012 Free Software Foundation, Inc.
1503This configure script is free software; the Free Software Foundation
1504gives unlimited permission to copy, distribute and modify it.
1505_ACEOF
1506  exit
1507fi
1508
1509## ------------------------ ##
1510## Autoconf initialization. ##
1511## ------------------------ ##
1512
1513# ac_fn_c_try_compile LINENO
1514# --------------------------
1515# Try to compile conftest.$ac_ext, and return whether this succeeded.
1516ac_fn_c_try_compile ()
1517{
1518  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519  rm -f conftest.$ac_objext
1520  if { { ac_try="$ac_compile"
1521case "(($ac_try" in
1522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523  *) ac_try_echo=$ac_try;;
1524esac
1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526$as_echo "$ac_try_echo"; } >&5
1527  (eval "$ac_compile") 2>conftest.err
1528  ac_status=$?
1529  if test -s conftest.err; then
1530    grep -v '^ *+' conftest.err >conftest.er1
1531    cat conftest.er1 >&5
1532    mv -f conftest.er1 conftest.err
1533  fi
1534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535  test $ac_status = 0; } && {
1536	 test -z "$ac_c_werror_flag" ||
1537	 test ! -s conftest.err
1538       } && test -s conftest.$ac_objext; then :
1539  ac_retval=0
1540else
1541  $as_echo "$as_me: failed program was:" >&5
1542sed 's/^/| /' conftest.$ac_ext >&5
1543
1544	ac_retval=1
1545fi
1546  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547  as_fn_set_status $ac_retval
1548
1549} # ac_fn_c_try_compile
1550
1551# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1552# ---------------------------------------------
1553# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1554# accordingly.
1555ac_fn_c_check_decl ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  as_decl_name=`echo $2|sed 's/ *(.*//'`
1559  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1561$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1562if eval \${$3+:} false; then :
1563  $as_echo_n "(cached) " >&6
1564else
1565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566/* end confdefs.h.  */
1567$4
1568int
1569main ()
1570{
1571#ifndef $as_decl_name
1572#ifdef __cplusplus
1573  (void) $as_decl_use;
1574#else
1575  (void) $as_decl_name;
1576#endif
1577#endif
1578
1579  ;
1580  return 0;
1581}
1582_ACEOF
1583if ac_fn_c_try_compile "$LINENO"; then :
1584  eval "$3=yes"
1585else
1586  eval "$3=no"
1587fi
1588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589fi
1590eval ac_res=\$$3
1591	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592$as_echo "$ac_res" >&6; }
1593  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594
1595} # ac_fn_c_check_decl
1596
1597# ac_fn_c_try_cpp LINENO
1598# ----------------------
1599# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_cpp ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  if { { ac_try="$ac_cpp conftest.$ac_ext"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } > conftest.i && {
1619	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620	 test ! -s conftest.err
1621       }; then :
1622  ac_retval=0
1623else
1624  $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627    ac_retval=1
1628fi
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_c_try_cpp
1633
1634# ac_fn_c_try_run LINENO
1635# ----------------------
1636# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637# that executables *can* be run.
1638ac_fn_c_try_run ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if { { ac_try="$ac_link"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_link") 2>&5
1649  ac_status=$?
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652  { { case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_try") 2>&5
1659  ac_status=$?
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; }; }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: program exited with status $ac_status" >&5
1665       $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668       ac_retval=$ac_status
1669fi
1670  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672  as_fn_set_status $ac_retval
1673
1674} # ac_fn_c_try_run
1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
1685if eval \${$3+:} false; then :
1686  $as_echo_n "(cached) " >&6
1687else
1688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h.  */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694  eval "$3=yes"
1695else
1696  eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_compile
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
1711{
1712  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713  rm -f conftest.$ac_objext conftest$ac_exeext
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>conftest.err
1722  ac_status=$?
1723  if test -s conftest.err; then
1724    grep -v '^ *+' conftest.err >conftest.er1
1725    cat conftest.er1 >&5
1726    mv -f conftest.er1 conftest.err
1727  fi
1728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729  test $ac_status = 0; } && {
1730	 test -z "$ac_c_werror_flag" ||
1731	 test ! -s conftest.err
1732       } && test -s conftest$ac_exeext && {
1733	 test "$cross_compiling" = yes ||
1734	 test -x conftest$ac_exeext
1735       }; then :
1736  ac_retval=0
1737else
1738  $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741	ac_retval=1
1742fi
1743  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745  # interfere with the next link command; also delete a directory that is
1746  # left behind by Apple's compiler.  We do this before executing the actions.
1747  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749  as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752cat >config.log <<_ACEOF
1753This file contains any messages produced by compilers while
1754running configure, to aid debugging if configure makes a mistake.
1755
1756It was created by xgc $as_me 1.0.5, which was
1757generated by GNU Autoconf 2.69.  Invocation command line was
1758
1759  $ $0 $@
1760
1761_ACEOF
1762exec 5>>config.log
1763{
1764cat <<_ASUNAME
1765## --------- ##
1766## Platform. ##
1767## --------- ##
1768
1769hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773uname -v = `(uname -v) 2>/dev/null || echo unknown`
1774
1775/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1777
1778/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1779/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1780/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1782/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1783/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1784/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1785
1786_ASUNAME
1787
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791  IFS=$as_save_IFS
1792  test -z "$as_dir" && as_dir=.
1793    $as_echo "PATH: $as_dir"
1794  done
1795IFS=$as_save_IFS
1796
1797} >&5
1798
1799cat >&5 <<_ACEOF
1800
1801
1802## ----------- ##
1803## Core tests. ##
1804## ----------- ##
1805
1806_ACEOF
1807
1808
1809# Keep a trace of the command line.
1810# Strip out --no-create and --no-recursion so they do not pile up.
1811# Strip out --silent because we don't want to record it for future runs.
1812# Also quote any args containing shell meta-characters.
1813# Make two passes to allow for proper duplicate-argument suppression.
1814ac_configure_args=
1815ac_configure_args0=
1816ac_configure_args1=
1817ac_must_keep_next=false
1818for ac_pass in 1 2
1819do
1820  for ac_arg
1821  do
1822    case $ac_arg in
1823    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825    | -silent | --silent | --silen | --sile | --sil)
1826      continue ;;
1827    *\'*)
1828      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829    esac
1830    case $ac_pass in
1831    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1832    2)
1833      as_fn_append ac_configure_args1 " '$ac_arg'"
1834      if test $ac_must_keep_next = true; then
1835	ac_must_keep_next=false # Got value, back to normal.
1836      else
1837	case $ac_arg in
1838	  *=* | --config-cache | -C | -disable-* | --disable-* \
1839	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841	  | -with-* | --with-* | -without-* | --without-* | --x)
1842	    case "$ac_configure_args0 " in
1843	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844	    esac
1845	    ;;
1846	  -* ) ac_must_keep_next=true ;;
1847	esac
1848      fi
1849      as_fn_append ac_configure_args " '$ac_arg'"
1850      ;;
1851    esac
1852  done
1853done
1854{ ac_configure_args0=; unset ac_configure_args0;}
1855{ ac_configure_args1=; unset ac_configure_args1;}
1856
1857# When interrupted or exit'd, cleanup temporary files, and complete
1858# config.log.  We remove comments because anyway the quotes in there
1859# would cause problems or look ugly.
1860# WARNING: Use '\'' to represent an apostrophe within the trap.
1861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862trap 'exit_status=$?
1863  # Save into config.log some information that might help in debugging.
1864  {
1865    echo
1866
1867    $as_echo "## ---------------- ##
1868## Cache variables. ##
1869## ---------------- ##"
1870    echo
1871    # The following way of writing the cache mishandles newlines in values,
1872(
1873  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1874    eval ac_val=\$$ac_var
1875    case $ac_val in #(
1876    *${as_nl}*)
1877      case $ac_var in #(
1878      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1879$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880      esac
1881      case $ac_var in #(
1882      _ | IFS | as_nl) ;; #(
1883      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884      *) { eval $ac_var=; unset $ac_var;} ;;
1885      esac ;;
1886    esac
1887  done
1888  (set) 2>&1 |
1889    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1890    *${as_nl}ac_space=\ *)
1891      sed -n \
1892	"s/'\''/'\''\\\\'\'''\''/g;
1893	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894      ;; #(
1895    *)
1896      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1897      ;;
1898    esac |
1899    sort
1900)
1901    echo
1902
1903    $as_echo "## ----------------- ##
1904## Output variables. ##
1905## ----------------- ##"
1906    echo
1907    for ac_var in $ac_subst_vars
1908    do
1909      eval ac_val=\$$ac_var
1910      case $ac_val in
1911      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1912      esac
1913      $as_echo "$ac_var='\''$ac_val'\''"
1914    done | sort
1915    echo
1916
1917    if test -n "$ac_subst_files"; then
1918      $as_echo "## ------------------- ##
1919## File substitutions. ##
1920## ------------------- ##"
1921      echo
1922      for ac_var in $ac_subst_files
1923      do
1924	eval ac_val=\$$ac_var
1925	case $ac_val in
1926	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1927	esac
1928	$as_echo "$ac_var='\''$ac_val'\''"
1929      done | sort
1930      echo
1931    fi
1932
1933    if test -s confdefs.h; then
1934      $as_echo "## ----------- ##
1935## confdefs.h. ##
1936## ----------- ##"
1937      echo
1938      cat confdefs.h
1939      echo
1940    fi
1941    test "$ac_signal" != 0 &&
1942      $as_echo "$as_me: caught signal $ac_signal"
1943    $as_echo "$as_me: exit $exit_status"
1944  } >&5
1945  rm -f core *.core core.conftest.* &&
1946    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1947    exit $exit_status
1948' 0
1949for ac_signal in 1 2 13 15; do
1950  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1951done
1952ac_signal=0
1953
1954# confdefs.h avoids OS command line length limits that DEFS can exceed.
1955rm -f -r conftest* confdefs.h
1956
1957$as_echo "/* confdefs.h */" > confdefs.h
1958
1959# Predefined preprocessor variables.
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_NAME "$PACKAGE_NAME"
1963_ACEOF
1964
1965cat >>confdefs.h <<_ACEOF
1966#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1967_ACEOF
1968
1969cat >>confdefs.h <<_ACEOF
1970#define PACKAGE_VERSION "$PACKAGE_VERSION"
1971_ACEOF
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_STRING "$PACKAGE_STRING"
1975_ACEOF
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979_ACEOF
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_URL "$PACKAGE_URL"
1983_ACEOF
1984
1985
1986# Let the site file select an alternate cache file if it wants to.
1987# Prefer an explicitly selected file to automatically selected ones.
1988ac_site_file1=NONE
1989ac_site_file2=NONE
1990if test -n "$CONFIG_SITE"; then
1991  # We do not want a PATH search for config.site.
1992  case $CONFIG_SITE in #((
1993    -*)  ac_site_file1=./$CONFIG_SITE;;
1994    */*) ac_site_file1=$CONFIG_SITE;;
1995    *)   ac_site_file1=./$CONFIG_SITE;;
1996  esac
1997elif test "x$prefix" != xNONE; then
1998  ac_site_file1=$prefix/share/config.site
1999  ac_site_file2=$prefix/etc/config.site
2000else
2001  ac_site_file1=$ac_default_prefix/share/config.site
2002  ac_site_file2=$ac_default_prefix/etc/config.site
2003fi
2004for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2005do
2006  test "x$ac_site_file" = xNONE && continue
2007  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2008    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2009$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2010    sed 's/^/| /' "$ac_site_file" >&5
2011    . "$ac_site_file" \
2012      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2014as_fn_error $? "failed to load site script $ac_site_file
2015See \`config.log' for more details" "$LINENO" 5; }
2016  fi
2017done
2018
2019if test -r "$cache_file"; then
2020  # Some versions of bash will fail to source /dev/null (special files
2021  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2022  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2024$as_echo "$as_me: loading cache $cache_file" >&6;}
2025    case $cache_file in
2026      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027      *)                      . "./$cache_file";;
2028    esac
2029  fi
2030else
2031  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2032$as_echo "$as_me: creating cache $cache_file" >&6;}
2033  >$cache_file
2034fi
2035
2036# Check that the precious variables saved in the cache have kept the same
2037# value.
2038ac_cache_corrupted=false
2039for ac_var in $ac_precious_vars; do
2040  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041  eval ac_new_set=\$ac_env_${ac_var}_set
2042  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043  eval ac_new_val=\$ac_env_${ac_var}_value
2044  case $ac_old_set,$ac_new_set in
2045    set,)
2046      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048      ac_cache_corrupted=: ;;
2049    ,set)
2050      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2051$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052      ac_cache_corrupted=: ;;
2053    ,);;
2054    *)
2055      if test "x$ac_old_val" != "x$ac_new_val"; then
2056	# differences in whitespace do not lead to failure.
2057	ac_old_val_w=`echo x $ac_old_val`
2058	ac_new_val_w=`echo x $ac_new_val`
2059	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2061$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062	  ac_cache_corrupted=:
2063	else
2064	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066	  eval $ac_var=\$ac_old_val
2067	fi
2068	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2069$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2070	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2071$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2072      fi;;
2073  esac
2074  # Pass precious variables to config.status.
2075  if test "$ac_new_set" = set; then
2076    case $ac_new_val in
2077    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078    *) ac_arg=$ac_var=$ac_new_val ;;
2079    esac
2080    case " $ac_configure_args " in
2081      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2082      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2083    esac
2084  fi
2085done
2086if $ac_cache_corrupted; then
2087  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2090$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2092fi
2093## -------------------- ##
2094## Main body of script. ##
2095## -------------------- ##
2096
2097ac_ext=c
2098ac_cpp='$CPP $CPPFLAGS'
2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
2104
2105ac_config_headers="$ac_config_headers config.h"
2106
2107
2108# Initialize Automake
2109am__api_version='1.15'
2110
2111ac_aux_dir=
2112for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2113  if test -f "$ac_dir/install-sh"; then
2114    ac_aux_dir=$ac_dir
2115    ac_install_sh="$ac_aux_dir/install-sh -c"
2116    break
2117  elif test -f "$ac_dir/install.sh"; then
2118    ac_aux_dir=$ac_dir
2119    ac_install_sh="$ac_aux_dir/install.sh -c"
2120    break
2121  elif test -f "$ac_dir/shtool"; then
2122    ac_aux_dir=$ac_dir
2123    ac_install_sh="$ac_aux_dir/shtool install -c"
2124    break
2125  fi
2126done
2127if test -z "$ac_aux_dir"; then
2128  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2129fi
2130
2131# These three variables are undocumented and unsupported,
2132# and are intended to be withdrawn in a future Autoconf release.
2133# They can cause serious problems if a builder's source tree is in a directory
2134# whose full name contains unusual characters.
2135ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2136ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2137ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2138
2139
2140# Find a good install program.  We prefer a C program (faster),
2141# so one script is as good as another.  But avoid the broken or
2142# incompatible versions:
2143# SysV /etc/install, /usr/sbin/install
2144# SunOS /usr/etc/install
2145# IRIX /sbin/install
2146# AIX /bin/install
2147# AmigaOS /C/install, which installs bootblocks on floppy discs
2148# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2149# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2150# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2151# OS/2's system install, which has a completely different semantic
2152# ./install, which can be erroneously created by make from ./install.sh.
2153# Reject install programs that cannot install multiple files.
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2155$as_echo_n "checking for a BSD-compatible install... " >&6; }
2156if test -z "$INSTALL"; then
2157if ${ac_cv_path_install+:} false; then :
2158  $as_echo_n "(cached) " >&6
2159else
2160  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161for as_dir in $PATH
2162do
2163  IFS=$as_save_IFS
2164  test -z "$as_dir" && as_dir=.
2165    # Account for people who put trailing slashes in PATH elements.
2166case $as_dir/ in #((
2167  ./ | .// | /[cC]/* | \
2168  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2169  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2170  /usr/ucb/* ) ;;
2171  *)
2172    # OSF1 and SCO ODT 3.0 have their own names for install.
2173    # Don't use installbsd from OSF since it installs stuff as root
2174    # by default.
2175    for ac_prog in ginstall scoinst install; do
2176      for ac_exec_ext in '' $ac_executable_extensions; do
2177	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2178	  if test $ac_prog = install &&
2179	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2180	    # AIX install.  It has an incompatible calling convention.
2181	    :
2182	  elif test $ac_prog = install &&
2183	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2184	    # program-specific install script used by HP pwplus--don't use.
2185	    :
2186	  else
2187	    rm -rf conftest.one conftest.two conftest.dir
2188	    echo one > conftest.one
2189	    echo two > conftest.two
2190	    mkdir conftest.dir
2191	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2192	      test -s conftest.one && test -s conftest.two &&
2193	      test -s conftest.dir/conftest.one &&
2194	      test -s conftest.dir/conftest.two
2195	    then
2196	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2197	      break 3
2198	    fi
2199	  fi
2200	fi
2201      done
2202    done
2203    ;;
2204esac
2205
2206  done
2207IFS=$as_save_IFS
2208
2209rm -rf conftest.one conftest.two conftest.dir
2210
2211fi
2212  if test "${ac_cv_path_install+set}" = set; then
2213    INSTALL=$ac_cv_path_install
2214  else
2215    # As a last resort, use the slow shell script.  Don't cache a
2216    # value for INSTALL within a source directory, because that will
2217    # break other packages using the cache if that directory is
2218    # removed, or if the value is a relative name.
2219    INSTALL=$ac_install_sh
2220  fi
2221fi
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2223$as_echo "$INSTALL" >&6; }
2224
2225# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2226# It thinks the first close brace ends the variable substitution.
2227test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2228
2229test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2230
2231test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2232
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2234$as_echo_n "checking whether build environment is sane... " >&6; }
2235# Reject unsafe characters in $srcdir or the absolute working directory
2236# name.  Accept space and tab only in the latter.
2237am_lf='
2238'
2239case `pwd` in
2240  *[\\\"\#\$\&\'\`$am_lf]*)
2241    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2242esac
2243case $srcdir in
2244  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2245    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2246esac
2247
2248# Do 'set' in a subshell so we don't clobber the current shell's
2249# arguments.  Must try -L first in case configure is actually a
2250# symlink; some systems play weird games with the mod time of symlinks
2251# (eg FreeBSD returns the mod time of the symlink's containing
2252# directory).
2253if (
2254   am_has_slept=no
2255   for am_try in 1 2; do
2256     echo "timestamp, slept: $am_has_slept" > conftest.file
2257     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2258     if test "$*" = "X"; then
2259	# -L didn't work.
2260	set X `ls -t "$srcdir/configure" conftest.file`
2261     fi
2262     if test "$*" != "X $srcdir/configure conftest.file" \
2263	&& test "$*" != "X conftest.file $srcdir/configure"; then
2264
2265	# If neither matched, then we have a broken ls.  This can happen
2266	# if, for instance, CONFIG_SHELL is bash and it inherits a
2267	# broken ls alias from the environment.  This has actually
2268	# happened.  Such a system could not be considered "sane".
2269	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2270  alias in your environment" "$LINENO" 5
2271     fi
2272     if test "$2" = conftest.file || test $am_try -eq 2; then
2273       break
2274     fi
2275     # Just in case.
2276     sleep 1
2277     am_has_slept=yes
2278   done
2279   test "$2" = conftest.file
2280   )
2281then
2282   # Ok.
2283   :
2284else
2285   as_fn_error $? "newly created file is older than distributed files!
2286Check your system clock" "$LINENO" 5
2287fi
2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2289$as_echo "yes" >&6; }
2290# If we didn't sleep, we still need to ensure time stamps of config.status and
2291# generated files are strictly newer.
2292am_sleep_pid=
2293if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2294  ( sleep 1 ) &
2295  am_sleep_pid=$!
2296fi
2297
2298rm -f conftest.file
2299
2300test "$program_prefix" != NONE &&
2301  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2302# Use a double $ so make ignores it.
2303test "$program_suffix" != NONE &&
2304  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2305# Double any \ or $.
2306# By default was `s,x,x', remove it if useless.
2307ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2308program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2309
2310# Expand $ac_aux_dir to an absolute path.
2311am_aux_dir=`cd "$ac_aux_dir" && pwd`
2312
2313if test x"${MISSING+set}" != xset; then
2314  case $am_aux_dir in
2315  *\ * | *\	*)
2316    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2317  *)
2318    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2319  esac
2320fi
2321# Use eval to expand $SHELL
2322if eval "$MISSING --is-lightweight"; then
2323  am_missing_run="$MISSING "
2324else
2325  am_missing_run=
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2327$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2328fi
2329
2330if test x"${install_sh+set}" != xset; then
2331  case $am_aux_dir in
2332  *\ * | *\	*)
2333    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2334  *)
2335    install_sh="\${SHELL} $am_aux_dir/install-sh"
2336  esac
2337fi
2338
2339# Installed binaries are usually stripped using 'strip' when the user
2340# run "make install-strip".  However 'strip' might not be the right
2341# tool to use in cross-compilation environments, therefore Automake
2342# will honor the 'STRIP' environment variable to overrule this program.
2343if test "$cross_compiling" != no; then
2344  if test -n "$ac_tool_prefix"; then
2345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}strip; ac_word=$2
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2348$as_echo_n "checking for $ac_word... " >&6; }
2349if ${ac_cv_prog_STRIP+:} false; then :
2350  $as_echo_n "(cached) " >&6
2351else
2352  if test -n "$STRIP"; then
2353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358  IFS=$as_save_IFS
2359  test -z "$as_dir" && as_dir=.
2360    for ac_exec_ext in '' $ac_executable_extensions; do
2361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2364    break 2
2365  fi
2366done
2367  done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372STRIP=$ac_cv_prog_STRIP
2373if test -n "$STRIP"; then
2374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2375$as_echo "$STRIP" >&6; }
2376else
2377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2378$as_echo "no" >&6; }
2379fi
2380
2381
2382fi
2383if test -z "$ac_cv_prog_STRIP"; then
2384  ac_ct_STRIP=$STRIP
2385  # Extract the first word of "strip", so it can be a program name with args.
2386set dummy strip; ac_word=$2
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2388$as_echo_n "checking for $ac_word... " >&6; }
2389if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  if test -n "$ac_ct_STRIP"; then
2393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400    for ac_exec_ext in '' $ac_executable_extensions; do
2401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402    ac_cv_prog_ac_ct_STRIP="strip"
2403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2404    break 2
2405  fi
2406done
2407  done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413if test -n "$ac_ct_STRIP"; then
2414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2415$as_echo "$ac_ct_STRIP" >&6; }
2416else
2417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2418$as_echo "no" >&6; }
2419fi
2420
2421  if test "x$ac_ct_STRIP" = x; then
2422    STRIP=":"
2423  else
2424    case $cross_compiling:$ac_tool_warned in
2425yes:)
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2428ac_tool_warned=yes ;;
2429esac
2430    STRIP=$ac_ct_STRIP
2431  fi
2432else
2433  STRIP="$ac_cv_prog_STRIP"
2434fi
2435
2436fi
2437INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2440$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2441if test -z "$MKDIR_P"; then
2442  if ${ac_cv_path_mkdir+:} false; then :
2443  $as_echo_n "(cached) " >&6
2444else
2445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2447do
2448  IFS=$as_save_IFS
2449  test -z "$as_dir" && as_dir=.
2450    for ac_prog in mkdir gmkdir; do
2451	 for ac_exec_ext in '' $ac_executable_extensions; do
2452	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2453	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2454	     'mkdir (GNU coreutils) '* | \
2455	     'mkdir (coreutils) '* | \
2456	     'mkdir (fileutils) '4.1*)
2457	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2458	       break 3;;
2459	   esac
2460	 done
2461       done
2462  done
2463IFS=$as_save_IFS
2464
2465fi
2466
2467  test -d ./--version && rmdir ./--version
2468  if test "${ac_cv_path_mkdir+set}" = set; then
2469    MKDIR_P="$ac_cv_path_mkdir -p"
2470  else
2471    # As a last resort, use the slow shell script.  Don't cache a
2472    # value for MKDIR_P within a source directory, because that will
2473    # break other packages using the cache if that directory is
2474    # removed, or if the value is a relative name.
2475    MKDIR_P="$ac_install_sh -d"
2476  fi
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2479$as_echo "$MKDIR_P" >&6; }
2480
2481for ac_prog in gawk mawk nawk awk
2482do
2483  # Extract the first word of "$ac_prog", so it can be a program name with args.
2484set dummy $ac_prog; ac_word=$2
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486$as_echo_n "checking for $ac_word... " >&6; }
2487if ${ac_cv_prog_AWK+:} false; then :
2488  $as_echo_n "(cached) " >&6
2489else
2490  if test -n "$AWK"; then
2491  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2492else
2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494for as_dir in $PATH
2495do
2496  IFS=$as_save_IFS
2497  test -z "$as_dir" && as_dir=.
2498    for ac_exec_ext in '' $ac_executable_extensions; do
2499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500    ac_cv_prog_AWK="$ac_prog"
2501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502    break 2
2503  fi
2504done
2505  done
2506IFS=$as_save_IFS
2507
2508fi
2509fi
2510AWK=$ac_cv_prog_AWK
2511if test -n "$AWK"; then
2512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2513$as_echo "$AWK" >&6; }
2514else
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516$as_echo "no" >&6; }
2517fi
2518
2519
2520  test -n "$AWK" && break
2521done
2522
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2524$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2525set x ${MAKE-make}
2526ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2527if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2528  $as_echo_n "(cached) " >&6
2529else
2530  cat >conftest.make <<\_ACEOF
2531SHELL = /bin/sh
2532all:
2533	@echo '@@@%%%=$(MAKE)=@@@%%%'
2534_ACEOF
2535# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2536case `${MAKE-make} -f conftest.make 2>/dev/null` in
2537  *@@@%%%=?*=@@@%%%*)
2538    eval ac_cv_prog_make_${ac_make}_set=yes;;
2539  *)
2540    eval ac_cv_prog_make_${ac_make}_set=no;;
2541esac
2542rm -f conftest.make
2543fi
2544if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546$as_echo "yes" >&6; }
2547  SET_MAKE=
2548else
2549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550$as_echo "no" >&6; }
2551  SET_MAKE="MAKE=${MAKE-make}"
2552fi
2553
2554rm -rf .tst 2>/dev/null
2555mkdir .tst 2>/dev/null
2556if test -d .tst; then
2557  am__leading_dot=.
2558else
2559  am__leading_dot=_
2560fi
2561rmdir .tst 2>/dev/null
2562
2563# Check whether --enable-silent-rules was given.
2564if test "${enable_silent_rules+set}" = set; then :
2565  enableval=$enable_silent_rules;
2566fi
2567
2568case $enable_silent_rules in # (((
2569  yes) AM_DEFAULT_VERBOSITY=0;;
2570   no) AM_DEFAULT_VERBOSITY=1;;
2571    *) AM_DEFAULT_VERBOSITY=1;;
2572esac
2573am_make=${MAKE-make}
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2575$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2576if ${am_cv_make_support_nested_variables+:} false; then :
2577  $as_echo_n "(cached) " >&6
2578else
2579  if $as_echo 'TRUE=$(BAR$(V))
2580BAR0=false
2581BAR1=true
2582V=1
2583am__doit:
2584	@$(TRUE)
2585.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2586  am_cv_make_support_nested_variables=yes
2587else
2588  am_cv_make_support_nested_variables=no
2589fi
2590fi
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2592$as_echo "$am_cv_make_support_nested_variables" >&6; }
2593if test $am_cv_make_support_nested_variables = yes; then
2594    AM_V='$(V)'
2595  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2596else
2597  AM_V=$AM_DEFAULT_VERBOSITY
2598  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2599fi
2600AM_BACKSLASH='\'
2601
2602if test "`cd $srcdir && pwd`" != "`pwd`"; then
2603  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2604  # is not polluted with repeated "-I."
2605  am__isrc=' -I$(srcdir)'
2606  # test to see if srcdir already configured
2607  if test -f $srcdir/config.status; then
2608    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2609  fi
2610fi
2611
2612# test whether we have cygpath
2613if test -z "$CYGPATH_W"; then
2614  if (cygpath --version) >/dev/null 2>/dev/null; then
2615    CYGPATH_W='cygpath -w'
2616  else
2617    CYGPATH_W=echo
2618  fi
2619fi
2620
2621
2622# Define the identity of the package.
2623 PACKAGE='xgc'
2624 VERSION='1.0.5'
2625
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE "$PACKAGE"
2629_ACEOF
2630
2631
2632cat >>confdefs.h <<_ACEOF
2633#define VERSION "$VERSION"
2634_ACEOF
2635
2636# Some tools Automake needs.
2637
2638ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2639
2640
2641AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2642
2643
2644AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2645
2646
2647AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2648
2649
2650MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2651
2652# For better backward compatibility.  To be removed once Automake 1.9.x
2653# dies out for good.  For more background, see:
2654# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2655# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2656mkdir_p='$(MKDIR_P)'
2657
2658# We need awk for the "check" target (and possibly the TAP driver).  The
2659# system "awk" is bad on some platforms.
2660# Always define AMTAR for backward compatibility.  Yes, it's still used
2661# in the wild :-(  We should find a proper way to deprecate it ...
2662AMTAR='$${TAR-tar}'
2663
2664
2665# We'll loop over all known methods to create a tar archive until one works.
2666_am_tools='gnutar  pax cpio none'
2667
2668am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2669
2670
2671
2672
2673
2674
2675# POSIX will say in a future version that running "rm -f" with no argument
2676# is OK; and we want to be able to make that assumption in our Makefile
2677# recipes.  So use an aggressive probe to check that the usage we want is
2678# actually supported "in the wild" to an acceptable degree.
2679# See automake bug#10828.
2680# To make any issue more visible, cause the running configure to be aborted
2681# by default if the 'rm' program in use doesn't match our expectations; the
2682# user can still override this though.
2683if rm -f && rm -fr && rm -rf; then : OK; else
2684  cat >&2 <<'END'
2685Oops!
2686
2687Your 'rm' program seems unable to run without file operands specified
2688on the command line, even when the '-f' option is present.  This is contrary
2689to the behaviour of most rm programs out there, and not conforming with
2690the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2691
2692Please tell bug-automake@gnu.org about your system, including the value
2693of your $PATH and any error possibly output before this message.  This
2694can help us improve future automake versions.
2695
2696END
2697  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2698    echo 'Configuration will proceed anyway, since you have set the' >&2
2699    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2700    echo >&2
2701  else
2702    cat >&2 <<'END'
2703Aborting the configuration process, to ensure you take notice of the issue.
2704
2705You can download and install GNU coreutils to get an 'rm' implementation
2706that behaves properly: <http://www.gnu.org/software/coreutils/>.
2707
2708If you want to complete the configuration process using your problematic
2709'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2710to "yes", and re-run configure.
2711
2712END
2713    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2714  fi
2715fi
2716
2717
2718# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730DEPDIR="${am__leading_dot}deps"
2731
2732ac_config_commands="$ac_config_commands depfiles"
2733
2734
2735am_make=${MAKE-make}
2736cat > confinc << 'END'
2737am__doit:
2738	@echo this is the am__doit target
2739.PHONY: am__doit
2740END
2741# If we don't find an include directive, just comment out the code.
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2743$as_echo_n "checking for style of include used by $am_make... " >&6; }
2744am__include="#"
2745am__quote=
2746_am_result=none
2747# First try GNU make style include.
2748echo "include confinc" > confmf
2749# Ignore all kinds of additional output from 'make'.
2750case `$am_make -s -f confmf 2> /dev/null` in #(
2751*the\ am__doit\ target*)
2752  am__include=include
2753  am__quote=
2754  _am_result=GNU
2755  ;;
2756esac
2757# Now try BSD make style include.
2758if test "$am__include" = "#"; then
2759   echo '.include "confinc"' > confmf
2760   case `$am_make -s -f confmf 2> /dev/null` in #(
2761   *the\ am__doit\ target*)
2762     am__include=.include
2763     am__quote="\""
2764     _am_result=BSD
2765     ;;
2766   esac
2767fi
2768
2769
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2771$as_echo "$_am_result" >&6; }
2772rm -f confinc confmf
2773
2774# Check whether --enable-dependency-tracking was given.
2775if test "${enable_dependency_tracking+set}" = set; then :
2776  enableval=$enable_dependency_tracking;
2777fi
2778
2779if test "x$enable_dependency_tracking" != xno; then
2780  am_depcomp="$ac_aux_dir/depcomp"
2781  AMDEPBACKSLASH='\'
2782  am__nodep='_no'
2783fi
2784 if test "x$enable_dependency_tracking" != xno; then
2785  AMDEP_TRUE=
2786  AMDEP_FALSE='#'
2787else
2788  AMDEP_TRUE='#'
2789  AMDEP_FALSE=
2790fi
2791
2792
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798if test -n "$ac_tool_prefix"; then
2799  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2800set dummy ${ac_tool_prefix}gcc; ac_word=$2
2801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802$as_echo_n "checking for $ac_word... " >&6; }
2803if ${ac_cv_prog_CC+:} false; then :
2804  $as_echo_n "(cached) " >&6
2805else
2806  if test -n "$CC"; then
2807  ac_cv_prog_CC="$CC" # Let the user override the test.
2808else
2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810for as_dir in $PATH
2811do
2812  IFS=$as_save_IFS
2813  test -z "$as_dir" && as_dir=.
2814    for ac_exec_ext in '' $ac_executable_extensions; do
2815  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818    break 2
2819  fi
2820done
2821  done
2822IFS=$as_save_IFS
2823
2824fi
2825fi
2826CC=$ac_cv_prog_CC
2827if test -n "$CC"; then
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829$as_echo "$CC" >&6; }
2830else
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832$as_echo "no" >&6; }
2833fi
2834
2835
2836fi
2837if test -z "$ac_cv_prog_CC"; then
2838  ac_ct_CC=$CC
2839  # Extract the first word of "gcc", so it can be a program name with args.
2840set dummy gcc; ac_word=$2
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842$as_echo_n "checking for $ac_word... " >&6; }
2843if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844  $as_echo_n "(cached) " >&6
2845else
2846  if test -n "$ac_ct_CC"; then
2847  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848else
2849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850for as_dir in $PATH
2851do
2852  IFS=$as_save_IFS
2853  test -z "$as_dir" && as_dir=.
2854    for ac_exec_ext in '' $ac_executable_extensions; do
2855  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856    ac_cv_prog_ac_ct_CC="gcc"
2857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858    break 2
2859  fi
2860done
2861  done
2862IFS=$as_save_IFS
2863
2864fi
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869$as_echo "$ac_ct_CC" >&6; }
2870else
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872$as_echo "no" >&6; }
2873fi
2874
2875  if test "x$ac_ct_CC" = x; then
2876    CC=""
2877  else
2878    case $cross_compiling:$ac_tool_warned in
2879yes:)
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884    CC=$ac_ct_CC
2885  fi
2886else
2887  CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2891          if test -n "$ac_tool_prefix"; then
2892    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895$as_echo_n "checking for $ac_word... " >&6; }
2896if ${ac_cv_prog_CC+:} false; then :
2897  $as_echo_n "(cached) " >&6
2898else
2899  if test -n "$CC"; then
2900  ac_cv_prog_CC="$CC" # Let the user override the test.
2901else
2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_exec_ext in '' $ac_executable_extensions; do
2908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909    ac_cv_prog_CC="${ac_tool_prefix}cc"
2910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911    break 2
2912  fi
2913done
2914  done
2915IFS=$as_save_IFS
2916
2917fi
2918fi
2919CC=$ac_cv_prog_CC
2920if test -n "$CC"; then
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922$as_echo "$CC" >&6; }
2923else
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925$as_echo "no" >&6; }
2926fi
2927
2928
2929  fi
2930fi
2931if test -z "$CC"; then
2932  # Extract the first word of "cc", so it can be a program name with args.
2933set dummy cc; ac_word=$2
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935$as_echo_n "checking for $ac_word... " >&6; }
2936if ${ac_cv_prog_CC+:} false; then :
2937  $as_echo_n "(cached) " >&6
2938else
2939  if test -n "$CC"; then
2940  ac_cv_prog_CC="$CC" # Let the user override the test.
2941else
2942  ac_prog_rejected=no
2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944for as_dir in $PATH
2945do
2946  IFS=$as_save_IFS
2947  test -z "$as_dir" && as_dir=.
2948    for ac_exec_ext in '' $ac_executable_extensions; do
2949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2951       ac_prog_rejected=yes
2952       continue
2953     fi
2954    ac_cv_prog_CC="cc"
2955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956    break 2
2957  fi
2958done
2959  done
2960IFS=$as_save_IFS
2961
2962if test $ac_prog_rejected = yes; then
2963  # We found a bogon in the path, so make sure we never use it.
2964  set dummy $ac_cv_prog_CC
2965  shift
2966  if test $# != 0; then
2967    # We chose a different compiler from the bogus one.
2968    # However, it has the same basename, so the bogon will be chosen
2969    # first if we set CC to just the basename; use the full file name.
2970    shift
2971    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2972  fi
2973fi
2974fi
2975fi
2976CC=$ac_cv_prog_CC
2977if test -n "$CC"; then
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979$as_echo "$CC" >&6; }
2980else
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983fi
2984
2985
2986fi
2987if test -z "$CC"; then
2988  if test -n "$ac_tool_prefix"; then
2989  for ac_prog in cl.exe
2990  do
2991    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2992set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_CC+:} false; then :
2996  $as_echo_n "(cached) " >&6
2997else
2998  if test -n "$CC"; then
2999  ac_cv_prog_CC="$CC" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004  IFS=$as_save_IFS
3005  test -z "$as_dir" && as_dir=.
3006    for ac_exec_ext in '' $ac_executable_extensions; do
3007  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3009    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010    break 2
3011  fi
3012done
3013  done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018CC=$ac_cv_prog_CC
3019if test -n "$CC"; then
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021$as_echo "$CC" >&6; }
3022else
3023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028    test -n "$CC" && break
3029  done
3030fi
3031if test -z "$CC"; then
3032  ac_ct_CC=$CC
3033  for ac_prog in cl.exe
3034do
3035  # Extract the first word of "$ac_prog", so it can be a program name with args.
3036set dummy $ac_prog; ac_word=$2
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038$as_echo_n "checking for $ac_word... " >&6; }
3039if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040  $as_echo_n "(cached) " >&6
3041else
3042  if test -n "$ac_ct_CC"; then
3043  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048  IFS=$as_save_IFS
3049  test -z "$as_dir" && as_dir=.
3050    for ac_exec_ext in '' $ac_executable_extensions; do
3051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052    ac_cv_prog_ac_ct_CC="$ac_prog"
3053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054    break 2
3055  fi
3056done
3057  done
3058IFS=$as_save_IFS
3059
3060fi
3061fi
3062ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063if test -n "$ac_ct_CC"; then
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065$as_echo "$ac_ct_CC" >&6; }
3066else
3067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068$as_echo "no" >&6; }
3069fi
3070
3071
3072  test -n "$ac_ct_CC" && break
3073done
3074
3075  if test "x$ac_ct_CC" = x; then
3076    CC=""
3077  else
3078    case $cross_compiling:$ac_tool_warned in
3079yes:)
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3082ac_tool_warned=yes ;;
3083esac
3084    CC=$ac_ct_CC
3085  fi
3086fi
3087
3088fi
3089
3090
3091test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093as_fn_error $? "no acceptable C compiler found in \$PATH
3094See \`config.log' for more details" "$LINENO" 5; }
3095
3096# Provide some information about the compiler.
3097$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3098set X $ac_compile
3099ac_compiler=$2
3100for ac_option in --version -v -V -qversion; do
3101  { { ac_try="$ac_compiler $ac_option >&5"
3102case "(($ac_try" in
3103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104  *) ac_try_echo=$ac_try;;
3105esac
3106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107$as_echo "$ac_try_echo"; } >&5
3108  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3109  ac_status=$?
3110  if test -s conftest.err; then
3111    sed '10a\
3112... rest of stderr output deleted ...
3113         10q' conftest.err >conftest.er1
3114    cat conftest.er1 >&5
3115  fi
3116  rm -f conftest.er1 conftest.err
3117  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118  test $ac_status = 0; }
3119done
3120
3121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127
3128  ;
3129  return 0;
3130}
3131_ACEOF
3132ac_clean_files_save=$ac_clean_files
3133ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3134# Try to create an executable without -o first, disregard a.out.
3135# It will help us diagnose broken compilers, and finding out an intuition
3136# of exeext.
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3138$as_echo_n "checking whether the C compiler works... " >&6; }
3139ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3140
3141# The possible output files:
3142ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3143
3144ac_rmfiles=
3145for ac_file in $ac_files
3146do
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3149    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150  esac
3151done
3152rm -f $ac_rmfiles
3153
3154if { { ac_try="$ac_link_default"
3155case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160$as_echo "$ac_try_echo"; } >&5
3161  (eval "$ac_link_default") 2>&5
3162  ac_status=$?
3163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164  test $ac_status = 0; }; then :
3165  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3166# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3167# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3168# so that the user can short-circuit this test for compilers unknown to
3169# Autoconf.
3170for ac_file in $ac_files ''
3171do
3172  test -f "$ac_file" || continue
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3175	;;
3176    [ab].out )
3177	# We found the default executable, but exeext='' is most
3178	# certainly right.
3179	break;;
3180    *.* )
3181	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3182	then :; else
3183	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184	fi
3185	# We set ac_cv_exeext here because the later test for it is not
3186	# safe: cross compilers may not add the suffix if given an `-o'
3187	# argument, so we may need to know it at that point already.
3188	# Even if this section looks crufty: it has the advantage of
3189	# actually working.
3190	break;;
3191    * )
3192	break;;
3193  esac
3194done
3195test "$ac_cv_exeext" = no && ac_cv_exeext=
3196
3197else
3198  ac_file=''
3199fi
3200if test -z "$ac_file"; then :
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203$as_echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208as_fn_error 77 "C compiler cannot create executables
3209See \`config.log' for more details" "$LINENO" 5; }
3210else
3211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212$as_echo "yes" >&6; }
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3215$as_echo_n "checking for C compiler default output file name... " >&6; }
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3217$as_echo "$ac_file" >&6; }
3218ac_exeext=$ac_cv_exeext
3219
3220rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3221ac_clean_files=$ac_clean_files_save
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3223$as_echo_n "checking for suffix of executables... " >&6; }
3224if { { ac_try="$ac_link"
3225case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231  (eval "$ac_link") 2>&5
3232  ac_status=$?
3233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234  test $ac_status = 0; }; then :
3235  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3236# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3237# work properly (i.e., refer to `conftest.exe'), while it won't with
3238# `rm'.
3239for ac_file in conftest.exe conftest conftest.*; do
3240  test -f "$ac_file" || continue
3241  case $ac_file in
3242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244	  break;;
3245    * ) break;;
3246  esac
3247done
3248else
3249  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3252See \`config.log' for more details" "$LINENO" 5; }
3253fi
3254rm -f conftest conftest$ac_cv_exeext
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3256$as_echo "$ac_cv_exeext" >&6; }
3257
3258rm -f conftest.$ac_ext
3259EXEEXT=$ac_cv_exeext
3260ac_exeext=$EXEEXT
3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262/* end confdefs.h.  */
3263#include <stdio.h>
3264int
3265main ()
3266{
3267FILE *f = fopen ("conftest.out", "w");
3268 return ferror (f) || fclose (f) != 0;
3269
3270  ;
3271  return 0;
3272}
3273_ACEOF
3274ac_clean_files="$ac_clean_files conftest.out"
3275# Check that the compiler produces executables we can run.  If not, either
3276# the compiler is broken, or we cross compile.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3278$as_echo_n "checking whether we are cross compiling... " >&6; }
3279if test "$cross_compiling" != yes; then
3280  { { ac_try="$ac_link"
3281case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286$as_echo "$ac_try_echo"; } >&5
3287  (eval "$ac_link") 2>&5
3288  ac_status=$?
3289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290  test $ac_status = 0; }
3291  if { ac_try='./conftest$ac_cv_exeext'
3292  { { case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
3298  (eval "$ac_try") 2>&5
3299  ac_status=$?
3300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301  test $ac_status = 0; }; }; then
3302    cross_compiling=no
3303  else
3304    if test "$cross_compiling" = maybe; then
3305	cross_compiling=yes
3306    else
3307	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309as_fn_error $? "cannot run C compiled programs.
3310If you meant to cross compile, use \`--host'.
3311See \`config.log' for more details" "$LINENO" 5; }
3312    fi
3313  fi
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3316$as_echo "$cross_compiling" >&6; }
3317
3318rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3319ac_clean_files=$ac_clean_files_save
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321$as_echo_n "checking for suffix of object files... " >&6; }
3322if ${ac_cv_objext+:} false; then :
3323  $as_echo_n "(cached) " >&6
3324else
3325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326/* end confdefs.h.  */
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.o conftest.obj
3337if { { ac_try="$ac_compile"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo"; } >&5
3344  (eval "$ac_compile") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }; then :
3348  for ac_file in conftest.o conftest.obj conftest.*; do
3349  test -f "$ac_file" || continue;
3350  case $ac_file in
3351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353       break;;
3354  esac
3355done
3356else
3357  $as_echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362as_fn_error $? "cannot compute suffix of object files: cannot compile
3363See \`config.log' for more details" "$LINENO" 5; }
3364fi
3365rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368$as_echo "$ac_cv_objext" >&6; }
3369OBJEXT=$ac_cv_objext
3370ac_objext=$OBJEXT
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373if ${ac_cv_c_compiler_gnu+:} false; then :
3374  $as_echo_n "(cached) " >&6
3375else
3376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382#ifndef __GNUC__
3383       choke me
3384#endif
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390if ac_fn_c_try_compile "$LINENO"; then :
3391  ac_compiler_gnu=yes
3392else
3393  ac_compiler_gnu=no
3394fi
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396ac_cv_c_compiler_gnu=$ac_compiler_gnu
3397
3398fi
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401if test $ac_compiler_gnu = yes; then
3402  GCC=yes
3403else
3404  GCC=
3405fi
3406ac_test_CFLAGS=${CFLAGS+set}
3407ac_save_CFLAGS=$CFLAGS
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409$as_echo_n "checking whether $CC accepts -g... " >&6; }
3410if ${ac_cv_prog_cc_g+:} false; then :
3411  $as_echo_n "(cached) " >&6
3412else
3413  ac_save_c_werror_flag=$ac_c_werror_flag
3414   ac_c_werror_flag=yes
3415   ac_cv_prog_cc_g=no
3416   CFLAGS="-g"
3417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418/* end confdefs.h.  */
3419
3420int
3421main ()
3422{
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428if ac_fn_c_try_compile "$LINENO"; then :
3429  ac_cv_prog_cc_g=yes
3430else
3431  CFLAGS=""
3432      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443if ac_fn_c_try_compile "$LINENO"; then :
3444
3445else
3446  ac_c_werror_flag=$ac_save_c_werror_flag
3447	 CFLAGS="-g"
3448	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h.  */
3450
3451int
3452main ()
3453{
3454
3455  ;
3456  return 0;
3457}
3458_ACEOF
3459if ac_fn_c_try_compile "$LINENO"; then :
3460  ac_cv_prog_cc_g=yes
3461fi
3462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463fi
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467   ac_c_werror_flag=$ac_save_c_werror_flag
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470$as_echo "$ac_cv_prog_cc_g" >&6; }
3471if test "$ac_test_CFLAGS" = set; then
3472  CFLAGS=$ac_save_CFLAGS
3473elif test $ac_cv_prog_cc_g = yes; then
3474  if test "$GCC" = yes; then
3475    CFLAGS="-g -O2"
3476  else
3477    CFLAGS="-g"
3478  fi
3479else
3480  if test "$GCC" = yes; then
3481    CFLAGS="-O2"
3482  else
3483    CFLAGS=
3484  fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488if ${ac_cv_prog_cc_c89+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  ac_cv_prog_cc_c89=no
3492ac_save_CC=$CC
3493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494/* end confdefs.h.  */
3495#include <stdarg.h>
3496#include <stdio.h>
3497struct stat;
3498/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3499struct buf { int x; };
3500FILE * (*rcsopen) (struct buf *, struct stat *, int);
3501static char *e (p, i)
3502     char **p;
3503     int i;
3504{
3505  return p[i];
3506}
3507static char *f (char * (*g) (char **, int), char **p, ...)
3508{
3509  char *s;
3510  va_list v;
3511  va_start (v,p);
3512  s = g (p, va_arg (v,int));
3513  va_end (v);
3514  return s;
3515}
3516
3517/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3518   function prototypes and stuff, but not '\xHH' hex character constants.
3519   These don't provoke an error unfortunately, instead are silently treated
3520   as 'x'.  The following induces an error, until -std is added to get
3521   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3522   array size at least.  It's necessary to write '\x00'==0 to get something
3523   that's true only with -std.  */
3524int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3525
3526/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3527   inside strings and character constants.  */
3528#define FOO(x) 'x'
3529int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3530
3531int test (int i, double x);
3532struct s1 {int (*f) (int a);};
3533struct s2 {int (*f) (double a);};
3534int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3535int argc;
3536char **argv;
3537int
3538main ()
3539{
3540return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3541  ;
3542  return 0;
3543}
3544_ACEOF
3545for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3546	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3547do
3548  CC="$ac_save_CC $ac_arg"
3549  if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_c89=$ac_arg
3551fi
3552rm -f core conftest.err conftest.$ac_objext
3553  test "x$ac_cv_prog_cc_c89" != "xno" && break
3554done
3555rm -f conftest.$ac_ext
3556CC=$ac_save_CC
3557
3558fi
3559# AC_CACHE_VAL
3560case "x$ac_cv_prog_cc_c89" in
3561  x)
3562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3563$as_echo "none needed" >&6; } ;;
3564  xno)
3565    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566$as_echo "unsupported" >&6; } ;;
3567  *)
3568    CC="$CC $ac_cv_prog_cc_c89"
3569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3570$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3571esac
3572if test "x$ac_cv_prog_cc_c89" != xno; then :
3573
3574fi
3575
3576ac_ext=c
3577ac_cpp='$CPP $CPPFLAGS'
3578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581
3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3588$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3589if ${am_cv_prog_cc_c_o+:} false; then :
3590  $as_echo_n "(cached) " >&6
3591else
3592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593/* end confdefs.h.  */
3594
3595int
3596main ()
3597{
3598
3599  ;
3600  return 0;
3601}
3602_ACEOF
3603  # Make sure it works both with $CC and with simple cc.
3604  # Following AC_PROG_CC_C_O, we do the test twice because some
3605  # compilers refuse to overwrite an existing .o file with -o,
3606  # though they will create one.
3607  am_cv_prog_cc_c_o=yes
3608  for am_i in 1 2; do
3609    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3610   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } \
3614         && test -f conftest2.$ac_objext; then
3615      : OK
3616    else
3617      am_cv_prog_cc_c_o=no
3618      break
3619    fi
3620  done
3621  rm -f core conftest*
3622  unset am_i
3623fi
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3625$as_echo "$am_cv_prog_cc_c_o" >&6; }
3626if test "$am_cv_prog_cc_c_o" != yes; then
3627   # Losing compiler, so override with the script.
3628   # FIXME: It is wrong to rewrite CC.
3629   # But if we don't then we get into trouble of one sort or another.
3630   # A longer-term fix would be to have automake use am__CC in this case,
3631   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3632   CC="$am_aux_dir/compile $CC"
3633fi
3634ac_ext=c
3635ac_cpp='$CPP $CPPFLAGS'
3636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640
3641depcc="$CC"   am_compiler_list=
3642
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3644$as_echo_n "checking dependency style of $depcc... " >&6; }
3645if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3646  $as_echo_n "(cached) " >&6
3647else
3648  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649  # We make a subdir and do the tests there.  Otherwise we can end up
3650  # making bogus files that we don't know about and never remove.  For
3651  # instance it was reported that on HP-UX the gcc test will end up
3652  # making a dummy file named 'D' -- because '-MD' means "put the output
3653  # in D".
3654  rm -rf conftest.dir
3655  mkdir conftest.dir
3656  # Copy depcomp to subdir because otherwise we won't find it if we're
3657  # using a relative directory.
3658  cp "$am_depcomp" conftest.dir
3659  cd conftest.dir
3660  # We will build objects and dependencies in a subdirectory because
3661  # it helps to detect inapplicable dependency modes.  For instance
3662  # both Tru64's cc and ICC support -MD to output dependencies as a
3663  # side effect of compilation, but ICC will put the dependencies in
3664  # the current directory while Tru64 will put them in the object
3665  # directory.
3666  mkdir sub
3667
3668  am_cv_CC_dependencies_compiler_type=none
3669  if test "$am_compiler_list" = ""; then
3670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3671  fi
3672  am__universal=false
3673  case " $depcc " in #(
3674     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3675     esac
3676
3677  for depmode in $am_compiler_list; do
3678    # Setup a source with many dependencies, because some compilers
3679    # like to wrap large dependency lists on column 80 (with \), and
3680    # we should not choose a depcomp mode which is confused by this.
3681    #
3682    # We need to recreate these files for each test, as the compiler may
3683    # overwrite some of them when testing with obscure command lines.
3684    # This happens at least with the AIX C compiler.
3685    : > sub/conftest.c
3686    for i in 1 2 3 4 5 6; do
3687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3688      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3689      # Solaris 10 /bin/sh.
3690      echo '/* dummy */' > sub/conftst$i.h
3691    done
3692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3693
3694    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3695    # mode.  It turns out that the SunPro C++ compiler does not properly
3696    # handle '-M -o', and we need to detect this.  Also, some Intel
3697    # versions had trouble with output in subdirs.
3698    am__obj=sub/conftest.${OBJEXT-o}
3699    am__minus_obj="-o $am__obj"
3700    case $depmode in
3701    gcc)
3702      # This depmode causes a compiler race in universal mode.
3703      test "$am__universal" = false || continue
3704      ;;
3705    nosideeffect)
3706      # After this tag, mechanisms are not by side-effect, so they'll
3707      # only be used when explicitly requested.
3708      if test "x$enable_dependency_tracking" = xyes; then
3709	continue
3710      else
3711	break
3712      fi
3713      ;;
3714    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3715      # This compiler won't grok '-c -o', but also, the minuso test has
3716      # not run yet.  These depmodes are late enough in the game, and
3717      # so weak that their functioning should not be impacted.
3718      am__obj=conftest.${OBJEXT-o}
3719      am__minus_obj=
3720      ;;
3721    none) break ;;
3722    esac
3723    if depmode=$depmode \
3724       source=sub/conftest.c object=$am__obj \
3725       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3726       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3727         >/dev/null 2>conftest.err &&
3728       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3729       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3730       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3731       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3732      # icc doesn't choke on unknown options, it will just issue warnings
3733      # or remarks (even with -Werror).  So we grep stderr for any message
3734      # that says an option was ignored or not supported.
3735      # When given -MP, icc 7.0 and 7.1 complain thusly:
3736      #   icc: Command line warning: ignoring option '-M'; no argument required
3737      # The diagnosis changed in icc 8.0:
3738      #   icc: Command line remark: option '-MP' not supported
3739      if (grep 'ignoring option' conftest.err ||
3740          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3741        am_cv_CC_dependencies_compiler_type=$depmode
3742        break
3743      fi
3744    fi
3745  done
3746
3747  cd ..
3748  rm -rf conftest.dir
3749else
3750  am_cv_CC_dependencies_compiler_type=none
3751fi
3752
3753fi
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3755$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3756CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3757
3758 if
3759  test "x$enable_dependency_tracking" != xno \
3760  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3761  am__fastdepCC_TRUE=
3762  am__fastdepCC_FALSE='#'
3763else
3764  am__fastdepCC_TRUE='#'
3765  am__fastdepCC_FALSE=
3766fi
3767
3768
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3770$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3771if ${ac_cv_prog_cc_c99+:} false; then :
3772  $as_echo_n "(cached) " >&6
3773else
3774  ac_cv_prog_cc_c99=no
3775ac_save_CC=$CC
3776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h.  */
3778#include <stdarg.h>
3779#include <stdbool.h>
3780#include <stdlib.h>
3781#include <wchar.h>
3782#include <stdio.h>
3783
3784// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3785#define debug(...) fprintf (stderr, __VA_ARGS__)
3786#define showlist(...) puts (#__VA_ARGS__)
3787#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3788static void
3789test_varargs_macros (void)
3790{
3791  int x = 1234;
3792  int y = 5678;
3793  debug ("Flag");
3794  debug ("X = %d\n", x);
3795  showlist (The first, second, and third items.);
3796  report (x>y, "x is %d but y is %d", x, y);
3797}
3798
3799// Check long long types.
3800#define BIG64 18446744073709551615ull
3801#define BIG32 4294967295ul
3802#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3803#if !BIG_OK
3804  your preprocessor is broken;
3805#endif
3806#if BIG_OK
3807#else
3808  your preprocessor is broken;
3809#endif
3810static long long int bignum = -9223372036854775807LL;
3811static unsigned long long int ubignum = BIG64;
3812
3813struct incomplete_array
3814{
3815  int datasize;
3816  double data[];
3817};
3818
3819struct named_init {
3820  int number;
3821  const wchar_t *name;
3822  double average;
3823};
3824
3825typedef const char *ccp;
3826
3827static inline int
3828test_restrict (ccp restrict text)
3829{
3830  // See if C++-style comments work.
3831  // Iterate through items via the restricted pointer.
3832  // Also check for declarations in for loops.
3833  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3834    continue;
3835  return 0;
3836}
3837
3838// Check varargs and va_copy.
3839static void
3840test_varargs (const char *format, ...)
3841{
3842  va_list args;
3843  va_start (args, format);
3844  va_list args_copy;
3845  va_copy (args_copy, args);
3846
3847  const char *str;
3848  int number;
3849  float fnumber;
3850
3851  while (*format)
3852    {
3853      switch (*format++)
3854	{
3855	case 's': // string
3856	  str = va_arg (args_copy, const char *);
3857	  break;
3858	case 'd': // int
3859	  number = va_arg (args_copy, int);
3860	  break;
3861	case 'f': // float
3862	  fnumber = va_arg (args_copy, double);
3863	  break;
3864	default:
3865	  break;
3866	}
3867    }
3868  va_end (args_copy);
3869  va_end (args);
3870}
3871
3872int
3873main ()
3874{
3875
3876  // Check bool.
3877  _Bool success = false;
3878
3879  // Check restrict.
3880  if (test_restrict ("String literal") == 0)
3881    success = true;
3882  char *restrict newvar = "Another string";
3883
3884  // Check varargs.
3885  test_varargs ("s, d' f .", "string", 65, 34.234);
3886  test_varargs_macros ();
3887
3888  // Check flexible array members.
3889  struct incomplete_array *ia =
3890    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3891  ia->datasize = 10;
3892  for (int i = 0; i < ia->datasize; ++i)
3893    ia->data[i] = i * 1.234;
3894
3895  // Check named initializers.
3896  struct named_init ni = {
3897    .number = 34,
3898    .name = L"Test wide string",
3899    .average = 543.34343,
3900  };
3901
3902  ni.number = 58;
3903
3904  int dynamic_array[ni.number];
3905  dynamic_array[ni.number - 1] = 543;
3906
3907  // work around unused variable warnings
3908  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3909	  || dynamic_array[ni.number - 1] != 543);
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3916do
3917  CC="$ac_save_CC $ac_arg"
3918  if ac_fn_c_try_compile "$LINENO"; then :
3919  ac_cv_prog_cc_c99=$ac_arg
3920fi
3921rm -f core conftest.err conftest.$ac_objext
3922  test "x$ac_cv_prog_cc_c99" != "xno" && break
3923done
3924rm -f conftest.$ac_ext
3925CC=$ac_save_CC
3926
3927fi
3928# AC_CACHE_VAL
3929case "x$ac_cv_prog_cc_c99" in
3930  x)
3931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932$as_echo "none needed" >&6; } ;;
3933  xno)
3934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935$as_echo "unsupported" >&6; } ;;
3936  *)
3937    CC="$CC $ac_cv_prog_cc_c99"
3938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3939$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3940esac
3941if test "x$ac_cv_prog_cc_c99" != xno; then :
3942
3943fi
3944
3945
3946
3947ac_ext=c
3948ac_cpp='$CPP $CPPFLAGS'
3949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3953$as_echo_n "checking how to run the C preprocessor... " >&6; }
3954# On Suns, sometimes $CPP names a directory.
3955if test -n "$CPP" && test -d "$CPP"; then
3956  CPP=
3957fi
3958if test -z "$CPP"; then
3959  if ${ac_cv_prog_CPP+:} false; then :
3960  $as_echo_n "(cached) " >&6
3961else
3962      # Double quotes because CPP needs to be expanded
3963    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964    do
3965      ac_preproc_ok=false
3966for ac_c_preproc_warn_flag in '' yes
3967do
3968  # Use a header file that comes with gcc, so configuring glibc
3969  # with a fresh cross-compiler works.
3970  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971  # <limits.h> exists even on freestanding compilers.
3972  # On the NeXT, cc -E runs the code through the compiler's parser,
3973  # not just through cpp. "Syntax error" is here to catch this case.
3974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975/* end confdefs.h.  */
3976#ifdef __STDC__
3977# include <limits.h>
3978#else
3979# include <assert.h>
3980#endif
3981		     Syntax error
3982_ACEOF
3983if ac_fn_c_try_cpp "$LINENO"; then :
3984
3985else
3986  # Broken: fails on valid input.
3987continue
3988fi
3989rm -f conftest.err conftest.i conftest.$ac_ext
3990
3991  # OK, works on sane cases.  Now check whether nonexistent headers
3992  # can be detected and how.
3993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995#include <ac_nonexistent.h>
3996_ACEOF
3997if ac_fn_c_try_cpp "$LINENO"; then :
3998  # Broken: success on invalid input.
3999continue
4000else
4001  # Passes both tests.
4002ac_preproc_ok=:
4003break
4004fi
4005rm -f conftest.err conftest.i conftest.$ac_ext
4006
4007done
4008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009rm -f conftest.i conftest.err conftest.$ac_ext
4010if $ac_preproc_ok; then :
4011  break
4012fi
4013
4014    done
4015    ac_cv_prog_CPP=$CPP
4016
4017fi
4018  CPP=$ac_cv_prog_CPP
4019else
4020  ac_cv_prog_CPP=$CPP
4021fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4023$as_echo "$CPP" >&6; }
4024ac_preproc_ok=false
4025for ac_c_preproc_warn_flag in '' yes
4026do
4027  # Use a header file that comes with gcc, so configuring glibc
4028  # with a fresh cross-compiler works.
4029  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030  # <limits.h> exists even on freestanding compilers.
4031  # On the NeXT, cc -E runs the code through the compiler's parser,
4032  # not just through cpp. "Syntax error" is here to catch this case.
4033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h.  */
4035#ifdef __STDC__
4036# include <limits.h>
4037#else
4038# include <assert.h>
4039#endif
4040		     Syntax error
4041_ACEOF
4042if ac_fn_c_try_cpp "$LINENO"; then :
4043
4044else
4045  # Broken: fails on valid input.
4046continue
4047fi
4048rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050  # OK, works on sane cases.  Now check whether nonexistent headers
4051  # can be detected and how.
4052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054#include <ac_nonexistent.h>
4055_ACEOF
4056if ac_fn_c_try_cpp "$LINENO"; then :
4057  # Broken: success on invalid input.
4058continue
4059else
4060  # Passes both tests.
4061ac_preproc_ok=:
4062break
4063fi
4064rm -f conftest.err conftest.i conftest.$ac_ext
4065
4066done
4067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068rm -f conftest.i conftest.err conftest.$ac_ext
4069if $ac_preproc_ok; then :
4070
4071else
4072  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4075See \`config.log' for more details" "$LINENO" 5; }
4076fi
4077
4078ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4086$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4087if ${ac_cv_path_GREP+:} false; then :
4088  $as_echo_n "(cached) " >&6
4089else
4090  if test -z "$GREP"; then
4091  ac_path_GREP_found=false
4092  # Loop through the user's path and test for each of PROGNAME-LIST
4093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4095do
4096  IFS=$as_save_IFS
4097  test -z "$as_dir" && as_dir=.
4098    for ac_prog in grep ggrep; do
4099    for ac_exec_ext in '' $ac_executable_extensions; do
4100      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4101      as_fn_executable_p "$ac_path_GREP" || continue
4102# Check for GNU ac_path_GREP and select it if it is found.
4103  # Check for GNU $ac_path_GREP
4104case `"$ac_path_GREP" --version 2>&1` in
4105*GNU*)
4106  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4107*)
4108  ac_count=0
4109  $as_echo_n 0123456789 >"conftest.in"
4110  while :
4111  do
4112    cat "conftest.in" "conftest.in" >"conftest.tmp"
4113    mv "conftest.tmp" "conftest.in"
4114    cp "conftest.in" "conftest.nl"
4115    $as_echo 'GREP' >> "conftest.nl"
4116    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118    as_fn_arith $ac_count + 1 && ac_count=$as_val
4119    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4120      # Best one so far, save it but keep looking for a better one
4121      ac_cv_path_GREP="$ac_path_GREP"
4122      ac_path_GREP_max=$ac_count
4123    fi
4124    # 10*(2^10) chars as input seems more than enough
4125    test $ac_count -gt 10 && break
4126  done
4127  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128esac
4129
4130      $ac_path_GREP_found && break 3
4131    done
4132  done
4133  done
4134IFS=$as_save_IFS
4135  if test -z "$ac_cv_path_GREP"; then
4136    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4137  fi
4138else
4139  ac_cv_path_GREP=$GREP
4140fi
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4144$as_echo "$ac_cv_path_GREP" >&6; }
4145 GREP="$ac_cv_path_GREP"
4146
4147
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4149$as_echo_n "checking for egrep... " >&6; }
4150if ${ac_cv_path_EGREP+:} false; then :
4151  $as_echo_n "(cached) " >&6
4152else
4153  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154   then ac_cv_path_EGREP="$GREP -E"
4155   else
4156     if test -z "$EGREP"; then
4157  ac_path_EGREP_found=false
4158  # Loop through the user's path and test for each of PROGNAME-LIST
4159  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_prog in egrep; do
4165    for ac_exec_ext in '' $ac_executable_extensions; do
4166      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4167      as_fn_executable_p "$ac_path_EGREP" || continue
4168# Check for GNU ac_path_EGREP and select it if it is found.
4169  # Check for GNU $ac_path_EGREP
4170case `"$ac_path_EGREP" --version 2>&1` in
4171*GNU*)
4172  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4173*)
4174  ac_count=0
4175  $as_echo_n 0123456789 >"conftest.in"
4176  while :
4177  do
4178    cat "conftest.in" "conftest.in" >"conftest.tmp"
4179    mv "conftest.tmp" "conftest.in"
4180    cp "conftest.in" "conftest.nl"
4181    $as_echo 'EGREP' >> "conftest.nl"
4182    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184    as_fn_arith $ac_count + 1 && ac_count=$as_val
4185    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4186      # Best one so far, save it but keep looking for a better one
4187      ac_cv_path_EGREP="$ac_path_EGREP"
4188      ac_path_EGREP_max=$ac_count
4189    fi
4190    # 10*(2^10) chars as input seems more than enough
4191    test $ac_count -gt 10 && break
4192  done
4193  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194esac
4195
4196      $ac_path_EGREP_found && break 3
4197    done
4198  done
4199  done
4200IFS=$as_save_IFS
4201  if test -z "$ac_cv_path_EGREP"; then
4202    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203  fi
4204else
4205  ac_cv_path_EGREP=$EGREP
4206fi
4207
4208   fi
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4211$as_echo "$ac_cv_path_EGREP" >&6; }
4212 EGREP="$ac_cv_path_EGREP"
4213
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4216$as_echo_n "checking for ANSI C header files... " >&6; }
4217if ${ac_cv_header_stdc+:} false; then :
4218  $as_echo_n "(cached) " >&6
4219else
4220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221/* end confdefs.h.  */
4222#include <stdlib.h>
4223#include <stdarg.h>
4224#include <string.h>
4225#include <float.h>
4226
4227int
4228main ()
4229{
4230
4231  ;
4232  return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236  ac_cv_header_stdc=yes
4237else
4238  ac_cv_header_stdc=no
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241
4242if test $ac_cv_header_stdc = yes; then
4243  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h.  */
4246#include <string.h>
4247
4248_ACEOF
4249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4250  $EGREP "memchr" >/dev/null 2>&1; then :
4251
4252else
4253  ac_cv_header_stdc=no
4254fi
4255rm -f conftest*
4256
4257fi
4258
4259if test $ac_cv_header_stdc = yes; then
4260  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263#include <stdlib.h>
4264
4265_ACEOF
4266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267  $EGREP "free" >/dev/null 2>&1; then :
4268
4269else
4270  ac_cv_header_stdc=no
4271fi
4272rm -f conftest*
4273
4274fi
4275
4276if test $ac_cv_header_stdc = yes; then
4277  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278  if test "$cross_compiling" = yes; then :
4279  :
4280else
4281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283#include <ctype.h>
4284#include <stdlib.h>
4285#if ((' ' & 0x0FF) == 0x020)
4286# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4287# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4288#else
4289# define ISLOWER(c) \
4290		   (('a' <= (c) && (c) <= 'i') \
4291		     || ('j' <= (c) && (c) <= 'r') \
4292		     || ('s' <= (c) && (c) <= 'z'))
4293# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4294#endif
4295
4296#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4297int
4298main ()
4299{
4300  int i;
4301  for (i = 0; i < 256; i++)
4302    if (XOR (islower (i), ISLOWER (i))
4303	|| toupper (i) != TOUPPER (i))
4304      return 2;
4305  return 0;
4306}
4307_ACEOF
4308if ac_fn_c_try_run "$LINENO"; then :
4309
4310else
4311  ac_cv_header_stdc=no
4312fi
4313rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4314  conftest.$ac_objext conftest.beam conftest.$ac_ext
4315fi
4316
4317fi
4318fi
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4320$as_echo "$ac_cv_header_stdc" >&6; }
4321if test $ac_cv_header_stdc = yes; then
4322
4323$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4324
4325fi
4326
4327# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4328for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4329		  inttypes.h stdint.h unistd.h
4330do :
4331  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4332ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4333"
4334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4335  cat >>confdefs.h <<_ACEOF
4336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337_ACEOF
4338
4339fi
4340
4341done
4342
4343
4344
4345
4346
4347
4348ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4349if test "x$ac_cv_have_decl___clang__" = xyes; then :
4350  CLANGCC="yes"
4351else
4352  CLANGCC="no"
4353fi
4354
4355ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4356if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4357  INTELCC="yes"
4358else
4359  INTELCC="no"
4360fi
4361
4362ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4363if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4364  SUNCC="yes"
4365else
4366  SUNCC="no"
4367fi
4368
4369
4370
4371
4372if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4373	if test -n "$ac_tool_prefix"; then
4374  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377$as_echo_n "checking for $ac_word... " >&6; }
4378if ${ac_cv_path_PKG_CONFIG+:} false; then :
4379  $as_echo_n "(cached) " >&6
4380else
4381  case $PKG_CONFIG in
4382  [\\/]* | ?:[\\/]*)
4383  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4384  ;;
4385  *)
4386  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391    for ac_exec_ext in '' $ac_executable_extensions; do
4392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395    break 2
4396  fi
4397done
4398  done
4399IFS=$as_save_IFS
4400
4401  ;;
4402esac
4403fi
4404PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4405if test -n "$PKG_CONFIG"; then
4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4407$as_echo "$PKG_CONFIG" >&6; }
4408else
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411fi
4412
4413
4414fi
4415if test -z "$ac_cv_path_PKG_CONFIG"; then
4416  ac_pt_PKG_CONFIG=$PKG_CONFIG
4417  # Extract the first word of "pkg-config", so it can be a program name with args.
4418set dummy pkg-config; ac_word=$2
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420$as_echo_n "checking for $ac_word... " >&6; }
4421if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  case $ac_pt_PKG_CONFIG in
4425  [\\/]* | ?:[\\/]*)
4426  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4427  ;;
4428  *)
4429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432  IFS=$as_save_IFS
4433  test -z "$as_dir" && as_dir=.
4434    for ac_exec_ext in '' $ac_executable_extensions; do
4435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438    break 2
4439  fi
4440done
4441  done
4442IFS=$as_save_IFS
4443
4444  ;;
4445esac
4446fi
4447ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4448if test -n "$ac_pt_PKG_CONFIG"; then
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4450$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4451else
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
4454fi
4455
4456  if test "x$ac_pt_PKG_CONFIG" = x; then
4457    PKG_CONFIG=""
4458  else
4459    case $cross_compiling:$ac_tool_warned in
4460yes:)
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4463ac_tool_warned=yes ;;
4464esac
4465    PKG_CONFIG=$ac_pt_PKG_CONFIG
4466  fi
4467else
4468  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4469fi
4470
4471fi
4472if test -n "$PKG_CONFIG"; then
4473	_pkg_min_version=0.9.0
4474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4475$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4476	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478$as_echo "yes" >&6; }
4479	else
4480		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481$as_echo "no" >&6; }
4482		PKG_CONFIG=""
4483	fi
4484
4485fi
4486# Make sure we can run config.sub.
4487$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4488  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4489
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4491$as_echo_n "checking build system type... " >&6; }
4492if ${ac_cv_build+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  ac_build_alias=$build_alias
4496test "x$ac_build_alias" = x &&
4497  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4498test "x$ac_build_alias" = x &&
4499  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4500ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4501  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4502
4503fi
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4505$as_echo "$ac_cv_build" >&6; }
4506case $ac_cv_build in
4507*-*-*) ;;
4508*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4509esac
4510build=$ac_cv_build
4511ac_save_IFS=$IFS; IFS='-'
4512set x $ac_cv_build
4513shift
4514build_cpu=$1
4515build_vendor=$2
4516shift; shift
4517# Remember, the first character of IFS is used to create $*,
4518# except with old shells:
4519build_os=$*
4520IFS=$ac_save_IFS
4521case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4522
4523
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4525$as_echo_n "checking host system type... " >&6; }
4526if ${ac_cv_host+:} false; then :
4527  $as_echo_n "(cached) " >&6
4528else
4529  if test "x$host_alias" = x; then
4530  ac_cv_host=$ac_cv_build
4531else
4532  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4533    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4534fi
4535
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4538$as_echo "$ac_cv_host" >&6; }
4539case $ac_cv_host in
4540*-*-*) ;;
4541*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4542esac
4543host=$ac_cv_host
4544ac_save_IFS=$IFS; IFS='-'
4545set x $ac_cv_host
4546shift
4547host_cpu=$1
4548host_vendor=$2
4549shift; shift
4550# Remember, the first character of IFS is used to create $*,
4551# except with old shells:
4552host_os=$*
4553IFS=$ac_save_IFS
4554case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4555
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4558$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4559if ${ac_cv_path_SED+:} false; then :
4560  $as_echo_n "(cached) " >&6
4561else
4562            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4563     for ac_i in 1 2 3 4 5 6 7; do
4564       ac_script="$ac_script$as_nl$ac_script"
4565     done
4566     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4567     { ac_script=; unset ac_script;}
4568     if test -z "$SED"; then
4569  ac_path_SED_found=false
4570  # Loop through the user's path and test for each of PROGNAME-LIST
4571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574  IFS=$as_save_IFS
4575  test -z "$as_dir" && as_dir=.
4576    for ac_prog in sed gsed; do
4577    for ac_exec_ext in '' $ac_executable_extensions; do
4578      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4579      as_fn_executable_p "$ac_path_SED" || continue
4580# Check for GNU ac_path_SED and select it if it is found.
4581  # Check for GNU $ac_path_SED
4582case `"$ac_path_SED" --version 2>&1` in
4583*GNU*)
4584  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4585*)
4586  ac_count=0
4587  $as_echo_n 0123456789 >"conftest.in"
4588  while :
4589  do
4590    cat "conftest.in" "conftest.in" >"conftest.tmp"
4591    mv "conftest.tmp" "conftest.in"
4592    cp "conftest.in" "conftest.nl"
4593    $as_echo '' >> "conftest.nl"
4594    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596    as_fn_arith $ac_count + 1 && ac_count=$as_val
4597    if test $ac_count -gt ${ac_path_SED_max-0}; then
4598      # Best one so far, save it but keep looking for a better one
4599      ac_cv_path_SED="$ac_path_SED"
4600      ac_path_SED_max=$ac_count
4601    fi
4602    # 10*(2^10) chars as input seems more than enough
4603    test $ac_count -gt 10 && break
4604  done
4605  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606esac
4607
4608      $ac_path_SED_found && break 3
4609    done
4610  done
4611  done
4612IFS=$as_save_IFS
4613  if test -z "$ac_cv_path_SED"; then
4614    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4615  fi
4616else
4617  ac_cv_path_SED=$SED
4618fi
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4622$as_echo "$ac_cv_path_SED" >&6; }
4623 SED="$ac_cv_path_SED"
4624  rm -f conftest.sed
4625
4626
4627
4628
4629
4630
4631# Check whether --enable-selective-werror was given.
4632if test "${enable_selective_werror+set}" = set; then :
4633  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4634else
4635  SELECTIVE_WERROR=yes
4636fi
4637
4638
4639
4640
4641
4642# -v is too short to test reliably with XORG_TESTSET_CFLAG
4643if test "x$SUNCC" = "xyes"; then
4644    BASE_CFLAGS="-v"
4645else
4646    BASE_CFLAGS=""
4647fi
4648
4649# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663xorg_testset_save_CFLAGS="$CFLAGS"
4664
4665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4670  $as_echo_n "(cached) " >&6
4671else
4672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673/* end confdefs.h.  */
4674int i;
4675_ACEOF
4676if ac_fn_c_try_compile "$LINENO"; then :
4677  xorg_cv_cc_flag_unknown_warning_option=yes
4678else
4679  xorg_cv_cc_flag_unknown_warning_option=no
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4686	CFLAGS="$xorg_testset_save_CFLAGS"
4687fi
4688
4689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4692	fi
4693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4697  $as_echo_n "(cached) " >&6
4698else
4699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h.  */
4701int i;
4702_ACEOF
4703if ac_fn_c_try_compile "$LINENO"; then :
4704  xorg_cv_cc_flag_unused_command_line_argument=yes
4705else
4706  xorg_cv_cc_flag_unused_command_line_argument=no
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4713	CFLAGS="$xorg_testset_save_CFLAGS"
4714fi
4715
4716found="no"
4717
4718	if test $found = "no" ; then
4719		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4721		fi
4722
4723		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4725		fi
4726
4727		CFLAGS="$CFLAGS -Wall"
4728
4729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4730$as_echo_n "checking if $CC supports -Wall... " >&6; }
4731		cacheid=xorg_cv_cc_flag__Wall
4732		if eval \${$cacheid+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737int i;
4738int
4739main ()
4740{
4741
4742  ;
4743  return 0;
4744}
4745_ACEOF
4746if ac_fn_c_try_link "$LINENO"; then :
4747  eval $cacheid=yes
4748else
4749  eval $cacheid=no
4750fi
4751rm -f core conftest.err conftest.$ac_objext \
4752    conftest$ac_exeext conftest.$ac_ext
4753fi
4754
4755
4756		CFLAGS="$xorg_testset_save_CFLAGS"
4757
4758		eval supported=\$$cacheid
4759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4760$as_echo "$supported" >&6; }
4761		if test "$supported" = "yes" ; then
4762			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4763			found="yes"
4764		fi
4765	fi
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781xorg_testset_save_CFLAGS="$CFLAGS"
4782
4783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4788  $as_echo_n "(cached) " >&6
4789else
4790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h.  */
4792int i;
4793_ACEOF
4794if ac_fn_c_try_compile "$LINENO"; then :
4795  xorg_cv_cc_flag_unknown_warning_option=yes
4796else
4797  xorg_cv_cc_flag_unknown_warning_option=no
4798fi
4799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4804	CFLAGS="$xorg_testset_save_CFLAGS"
4805fi
4806
4807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4810	fi
4811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4815  $as_echo_n "(cached) " >&6
4816else
4817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819int i;
4820_ACEOF
4821if ac_fn_c_try_compile "$LINENO"; then :
4822  xorg_cv_cc_flag_unused_command_line_argument=yes
4823else
4824  xorg_cv_cc_flag_unused_command_line_argument=no
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4831	CFLAGS="$xorg_testset_save_CFLAGS"
4832fi
4833
4834found="no"
4835
4836	if test $found = "no" ; then
4837		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4839		fi
4840
4841		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4843		fi
4844
4845		CFLAGS="$CFLAGS -Wpointer-arith"
4846
4847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4848$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4849		cacheid=xorg_cv_cc_flag__Wpointer_arith
4850		if eval \${$cacheid+:} false; then :
4851  $as_echo_n "(cached) " >&6
4852else
4853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h.  */
4855int i;
4856int
4857main ()
4858{
4859
4860  ;
4861  return 0;
4862}
4863_ACEOF
4864if ac_fn_c_try_link "$LINENO"; then :
4865  eval $cacheid=yes
4866else
4867  eval $cacheid=no
4868fi
4869rm -f core conftest.err conftest.$ac_objext \
4870    conftest$ac_exeext conftest.$ac_ext
4871fi
4872
4873
4874		CFLAGS="$xorg_testset_save_CFLAGS"
4875
4876		eval supported=\$$cacheid
4877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4878$as_echo "$supported" >&6; }
4879		if test "$supported" = "yes" ; then
4880			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4881			found="yes"
4882		fi
4883	fi
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899xorg_testset_save_CFLAGS="$CFLAGS"
4900
4901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909/* end confdefs.h.  */
4910int i;
4911_ACEOF
4912if ac_fn_c_try_compile "$LINENO"; then :
4913  xorg_cv_cc_flag_unknown_warning_option=yes
4914else
4915  xorg_cv_cc_flag_unknown_warning_option=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4922	CFLAGS="$xorg_testset_save_CFLAGS"
4923fi
4924
4925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4928	fi
4929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h.  */
4937int i;
4938_ACEOF
4939if ac_fn_c_try_compile "$LINENO"; then :
4940  xorg_cv_cc_flag_unused_command_line_argument=yes
4941else
4942  xorg_cv_cc_flag_unused_command_line_argument=no
4943fi
4944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945fi
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4949	CFLAGS="$xorg_testset_save_CFLAGS"
4950fi
4951
4952found="no"
4953
4954	if test $found = "no" ; then
4955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4957		fi
4958
4959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4961		fi
4962
4963		CFLAGS="$CFLAGS -Wmissing-declarations"
4964
4965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4966$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4967		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4968		if eval \${$cacheid+:} false; then :
4969  $as_echo_n "(cached) " >&6
4970else
4971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972/* end confdefs.h.  */
4973int i;
4974int
4975main ()
4976{
4977
4978  ;
4979  return 0;
4980}
4981_ACEOF
4982if ac_fn_c_try_link "$LINENO"; then :
4983  eval $cacheid=yes
4984else
4985  eval $cacheid=no
4986fi
4987rm -f core conftest.err conftest.$ac_objext \
4988    conftest$ac_exeext conftest.$ac_ext
4989fi
4990
4991
4992		CFLAGS="$xorg_testset_save_CFLAGS"
4993
4994		eval supported=\$$cacheid
4995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4996$as_echo "$supported" >&6; }
4997		if test "$supported" = "yes" ; then
4998			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4999			found="yes"
5000		fi
5001	fi
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017xorg_testset_save_CFLAGS="$CFLAGS"
5018
5019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027/* end confdefs.h.  */
5028int i;
5029_ACEOF
5030if ac_fn_c_try_compile "$LINENO"; then :
5031  xorg_cv_cc_flag_unknown_warning_option=yes
5032else
5033  xorg_cv_cc_flag_unknown_warning_option=no
5034fi
5035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036fi
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5040	CFLAGS="$xorg_testset_save_CFLAGS"
5041fi
5042
5043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5046	fi
5047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055int i;
5056_ACEOF
5057if ac_fn_c_try_compile "$LINENO"; then :
5058  xorg_cv_cc_flag_unused_command_line_argument=yes
5059else
5060  xorg_cv_cc_flag_unused_command_line_argument=no
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5067	CFLAGS="$xorg_testset_save_CFLAGS"
5068fi
5069
5070found="no"
5071
5072	if test $found = "no" ; then
5073		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5075		fi
5076
5077		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5079		fi
5080
5081		CFLAGS="$CFLAGS -Wformat=2"
5082
5083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5084$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5085		cacheid=xorg_cv_cc_flag__Wformat_2
5086		if eval \${$cacheid+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h.  */
5091int i;
5092int
5093main ()
5094{
5095
5096  ;
5097  return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_link "$LINENO"; then :
5101  eval $cacheid=yes
5102else
5103  eval $cacheid=no
5104fi
5105rm -f core conftest.err conftest.$ac_objext \
5106    conftest$ac_exeext conftest.$ac_ext
5107fi
5108
5109
5110		CFLAGS="$xorg_testset_save_CFLAGS"
5111
5112		eval supported=\$$cacheid
5113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5114$as_echo "$supported" >&6; }
5115		if test "$supported" = "yes" ; then
5116			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5117			found="yes"
5118		fi
5119	fi
5120
5121	if test $found = "no" ; then
5122		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5123			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5124		fi
5125
5126		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5127			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5128		fi
5129
5130		CFLAGS="$CFLAGS -Wformat"
5131
5132		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5133$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5134		cacheid=xorg_cv_cc_flag__Wformat
5135		if eval \${$cacheid+:} false; then :
5136  $as_echo_n "(cached) " >&6
5137else
5138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139/* end confdefs.h.  */
5140int i;
5141int
5142main ()
5143{
5144
5145  ;
5146  return 0;
5147}
5148_ACEOF
5149if ac_fn_c_try_link "$LINENO"; then :
5150  eval $cacheid=yes
5151else
5152  eval $cacheid=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext \
5155    conftest$ac_exeext conftest.$ac_ext
5156fi
5157
5158
5159		CFLAGS="$xorg_testset_save_CFLAGS"
5160
5161		eval supported=\$$cacheid
5162		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5163$as_echo "$supported" >&6; }
5164		if test "$supported" = "yes" ; then
5165			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5166			found="yes"
5167		fi
5168	fi
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186xorg_testset_save_CFLAGS="$CFLAGS"
5187
5188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5189	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5193  $as_echo_n "(cached) " >&6
5194else
5195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197int i;
5198_ACEOF
5199if ac_fn_c_try_compile "$LINENO"; then :
5200  xorg_cv_cc_flag_unknown_warning_option=yes
5201else
5202  xorg_cv_cc_flag_unknown_warning_option=no
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5208	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5209	CFLAGS="$xorg_testset_save_CFLAGS"
5210fi
5211
5212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5213	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5214		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215	fi
5216	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5217	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223/* end confdefs.h.  */
5224int i;
5225_ACEOF
5226if ac_fn_c_try_compile "$LINENO"; then :
5227  xorg_cv_cc_flag_unused_command_line_argument=yes
5228else
5229  xorg_cv_cc_flag_unused_command_line_argument=no
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5235	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5236	CFLAGS="$xorg_testset_save_CFLAGS"
5237fi
5238
5239found="no"
5240
5241	if test $found = "no" ; then
5242		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5243			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5244		fi
5245
5246		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5247			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5248		fi
5249
5250		CFLAGS="$CFLAGS -Wstrict-prototypes"
5251
5252		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5253$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5254		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5255		if eval \${$cacheid+:} false; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259/* end confdefs.h.  */
5260int i;
5261int
5262main ()
5263{
5264
5265  ;
5266  return 0;
5267}
5268_ACEOF
5269if ac_fn_c_try_link "$LINENO"; then :
5270  eval $cacheid=yes
5271else
5272  eval $cacheid=no
5273fi
5274rm -f core conftest.err conftest.$ac_objext \
5275    conftest$ac_exeext conftest.$ac_ext
5276fi
5277
5278
5279		CFLAGS="$xorg_testset_save_CFLAGS"
5280
5281		eval supported=\$$cacheid
5282		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5283$as_echo "$supported" >&6; }
5284		if test "$supported" = "yes" ; then
5285			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5286			found="yes"
5287		fi
5288	fi
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304xorg_testset_save_CFLAGS="$CFLAGS"
5305
5306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5307	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5311  $as_echo_n "(cached) " >&6
5312else
5313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h.  */
5315int i;
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"; then :
5318  xorg_cv_cc_flag_unknown_warning_option=yes
5319else
5320  xorg_cv_cc_flag_unknown_warning_option=no
5321fi
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5326	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5327	CFLAGS="$xorg_testset_save_CFLAGS"
5328fi
5329
5330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5331	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333	fi
5334	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342int i;
5343_ACEOF
5344if ac_fn_c_try_compile "$LINENO"; then :
5345  xorg_cv_cc_flag_unused_command_line_argument=yes
5346else
5347  xorg_cv_cc_flag_unused_command_line_argument=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5353	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5354	CFLAGS="$xorg_testset_save_CFLAGS"
5355fi
5356
5357found="no"
5358
5359	if test $found = "no" ; then
5360		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5361			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5362		fi
5363
5364		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5366		fi
5367
5368		CFLAGS="$CFLAGS -Wmissing-prototypes"
5369
5370		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5371$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5372		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5373		if eval \${$cacheid+:} false; then :
5374  $as_echo_n "(cached) " >&6
5375else
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378int i;
5379int
5380main ()
5381{
5382
5383  ;
5384  return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_link "$LINENO"; then :
5388  eval $cacheid=yes
5389else
5390  eval $cacheid=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393    conftest$ac_exeext conftest.$ac_ext
5394fi
5395
5396
5397		CFLAGS="$xorg_testset_save_CFLAGS"
5398
5399		eval supported=\$$cacheid
5400		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5401$as_echo "$supported" >&6; }
5402		if test "$supported" = "yes" ; then
5403			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5404			found="yes"
5405		fi
5406	fi
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422xorg_testset_save_CFLAGS="$CFLAGS"
5423
5424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5427$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5428if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433int i;
5434_ACEOF
5435if ac_fn_c_try_compile "$LINENO"; then :
5436  xorg_cv_cc_flag_unknown_warning_option=yes
5437else
5438  xorg_cv_cc_flag_unknown_warning_option=no
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5443$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5445	CFLAGS="$xorg_testset_save_CFLAGS"
5446fi
5447
5448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451	fi
5452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5454$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5455if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460int i;
5461_ACEOF
5462if ac_fn_c_try_compile "$LINENO"; then :
5463  xorg_cv_cc_flag_unused_command_line_argument=yes
5464else
5465  xorg_cv_cc_flag_unused_command_line_argument=no
5466fi
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5470$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5471	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5472	CFLAGS="$xorg_testset_save_CFLAGS"
5473fi
5474
5475found="no"
5476
5477	if test $found = "no" ; then
5478		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5479			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5480		fi
5481
5482		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5483			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5484		fi
5485
5486		CFLAGS="$CFLAGS -Wnested-externs"
5487
5488		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5489$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5490		cacheid=xorg_cv_cc_flag__Wnested_externs
5491		if eval \${$cacheid+:} false; then :
5492  $as_echo_n "(cached) " >&6
5493else
5494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495/* end confdefs.h.  */
5496int i;
5497int
5498main ()
5499{
5500
5501  ;
5502  return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"; then :
5506  eval $cacheid=yes
5507else
5508  eval $cacheid=no
5509fi
5510rm -f core conftest.err conftest.$ac_objext \
5511    conftest$ac_exeext conftest.$ac_ext
5512fi
5513
5514
5515		CFLAGS="$xorg_testset_save_CFLAGS"
5516
5517		eval supported=\$$cacheid
5518		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5519$as_echo "$supported" >&6; }
5520		if test "$supported" = "yes" ; then
5521			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5522			found="yes"
5523		fi
5524	fi
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540xorg_testset_save_CFLAGS="$CFLAGS"
5541
5542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5545$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5546if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5547  $as_echo_n "(cached) " >&6
5548else
5549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550/* end confdefs.h.  */
5551int i;
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"; then :
5554  xorg_cv_cc_flag_unknown_warning_option=yes
5555else
5556  xorg_cv_cc_flag_unknown_warning_option=no
5557fi
5558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5561$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5562	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5563	CFLAGS="$xorg_testset_save_CFLAGS"
5564fi
5565
5566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5567	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5568		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5569	fi
5570	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5572$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5573if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578int i;
5579_ACEOF
5580if ac_fn_c_try_compile "$LINENO"; then :
5581  xorg_cv_cc_flag_unused_command_line_argument=yes
5582else
5583  xorg_cv_cc_flag_unused_command_line_argument=no
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5588$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5589	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5590	CFLAGS="$xorg_testset_save_CFLAGS"
5591fi
5592
5593found="no"
5594
5595	if test $found = "no" ; then
5596		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5597			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5598		fi
5599
5600		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5601			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5602		fi
5603
5604		CFLAGS="$CFLAGS -Wbad-function-cast"
5605
5606		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5607$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5608		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5609		if eval \${$cacheid+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h.  */
5614int i;
5615int
5616main ()
5617{
5618
5619  ;
5620  return 0;
5621}
5622_ACEOF
5623if ac_fn_c_try_link "$LINENO"; then :
5624  eval $cacheid=yes
5625else
5626  eval $cacheid=no
5627fi
5628rm -f core conftest.err conftest.$ac_objext \
5629    conftest$ac_exeext conftest.$ac_ext
5630fi
5631
5632
5633		CFLAGS="$xorg_testset_save_CFLAGS"
5634
5635		eval supported=\$$cacheid
5636		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5637$as_echo "$supported" >&6; }
5638		if test "$supported" = "yes" ; then
5639			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5640			found="yes"
5641		fi
5642	fi
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658xorg_testset_save_CFLAGS="$CFLAGS"
5659
5660if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5661	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5663$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5664if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5665  $as_echo_n "(cached) " >&6
5666else
5667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668/* end confdefs.h.  */
5669int i;
5670_ACEOF
5671if ac_fn_c_try_compile "$LINENO"; then :
5672  xorg_cv_cc_flag_unknown_warning_option=yes
5673else
5674  xorg_cv_cc_flag_unknown_warning_option=no
5675fi
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677fi
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5679$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5681	CFLAGS="$xorg_testset_save_CFLAGS"
5682fi
5683
5684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687	fi
5688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5690$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5691if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h.  */
5696int i;
5697_ACEOF
5698if ac_fn_c_try_compile "$LINENO"; then :
5699  xorg_cv_cc_flag_unused_command_line_argument=yes
5700else
5701  xorg_cv_cc_flag_unused_command_line_argument=no
5702fi
5703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704fi
5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5706$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5707	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5708	CFLAGS="$xorg_testset_save_CFLAGS"
5709fi
5710
5711found="no"
5712
5713	if test $found = "no" ; then
5714		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5715			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5716		fi
5717
5718		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5719			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5720		fi
5721
5722		CFLAGS="$CFLAGS -Wold-style-definition"
5723
5724		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5725$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5726		cacheid=xorg_cv_cc_flag__Wold_style_definition
5727		if eval \${$cacheid+:} false; then :
5728  $as_echo_n "(cached) " >&6
5729else
5730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731/* end confdefs.h.  */
5732int i;
5733int
5734main ()
5735{
5736
5737  ;
5738  return 0;
5739}
5740_ACEOF
5741if ac_fn_c_try_link "$LINENO"; then :
5742  eval $cacheid=yes
5743else
5744  eval $cacheid=no
5745fi
5746rm -f core conftest.err conftest.$ac_objext \
5747    conftest$ac_exeext conftest.$ac_ext
5748fi
5749
5750
5751		CFLAGS="$xorg_testset_save_CFLAGS"
5752
5753		eval supported=\$$cacheid
5754		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5755$as_echo "$supported" >&6; }
5756		if test "$supported" = "yes" ; then
5757			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5758			found="yes"
5759		fi
5760	fi
5761
5762	if test $found = "no" ; then
5763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765		fi
5766
5767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5769		fi
5770
5771		CFLAGS="$CFLAGS -fd"
5772
5773		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5774$as_echo_n "checking if $CC supports -fd... " >&6; }
5775		cacheid=xorg_cv_cc_flag__fd
5776		if eval \${$cacheid+:} false; then :
5777  $as_echo_n "(cached) " >&6
5778else
5779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782int
5783main ()
5784{
5785
5786  ;
5787  return 0;
5788}
5789_ACEOF
5790if ac_fn_c_try_link "$LINENO"; then :
5791  eval $cacheid=yes
5792else
5793  eval $cacheid=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext \
5796    conftest$ac_exeext conftest.$ac_ext
5797fi
5798
5799
5800		CFLAGS="$xorg_testset_save_CFLAGS"
5801
5802		eval supported=\$$cacheid
5803		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5804$as_echo "$supported" >&6; }
5805		if test "$supported" = "yes" ; then
5806			BASE_CFLAGS="$BASE_CFLAGS -fd"
5807			found="yes"
5808		fi
5809	fi
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825xorg_testset_save_CFLAGS="$CFLAGS"
5826
5827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5828	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5832  $as_echo_n "(cached) " >&6
5833else
5834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h.  */
5836int i;
5837_ACEOF
5838if ac_fn_c_try_compile "$LINENO"; then :
5839  xorg_cv_cc_flag_unknown_warning_option=yes
5840else
5841  xorg_cv_cc_flag_unknown_warning_option=no
5842fi
5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844fi
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5848	CFLAGS="$xorg_testset_save_CFLAGS"
5849fi
5850
5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854	fi
5855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862/* end confdefs.h.  */
5863int i;
5864_ACEOF
5865if ac_fn_c_try_compile "$LINENO"; then :
5866  xorg_cv_cc_flag_unused_command_line_argument=yes
5867else
5868  xorg_cv_cc_flag_unused_command_line_argument=no
5869fi
5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871fi
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5874	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5875	CFLAGS="$xorg_testset_save_CFLAGS"
5876fi
5877
5878found="no"
5879
5880	if test $found = "no" ; then
5881		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5882			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5883		fi
5884
5885		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5886			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5887		fi
5888
5889		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5890
5891		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5892$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5893		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5894		if eval \${$cacheid+:} false; then :
5895  $as_echo_n "(cached) " >&6
5896else
5897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h.  */
5899int i;
5900int
5901main ()
5902{
5903
5904  ;
5905  return 0;
5906}
5907_ACEOF
5908if ac_fn_c_try_link "$LINENO"; then :
5909  eval $cacheid=yes
5910else
5911  eval $cacheid=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext \
5914    conftest$ac_exeext conftest.$ac_ext
5915fi
5916
5917
5918		CFLAGS="$xorg_testset_save_CFLAGS"
5919
5920		eval supported=\$$cacheid
5921		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5922$as_echo "$supported" >&6; }
5923		if test "$supported" = "yes" ; then
5924			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5925			found="yes"
5926		fi
5927	fi
5928
5929
5930
5931
5932
5933# This chunk adds additional warnings that could catch undesired effects.
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947xorg_testset_save_CFLAGS="$CFLAGS"
5948
5949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957/* end confdefs.h.  */
5958int i;
5959_ACEOF
5960if ac_fn_c_try_compile "$LINENO"; then :
5961  xorg_cv_cc_flag_unknown_warning_option=yes
5962else
5963  xorg_cv_cc_flag_unknown_warning_option=no
5964fi
5965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5970	CFLAGS="$xorg_testset_save_CFLAGS"
5971fi
5972
5973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5976	fi
5977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h.  */
5985int i;
5986_ACEOF
5987if ac_fn_c_try_compile "$LINENO"; then :
5988  xorg_cv_cc_flag_unused_command_line_argument=yes
5989else
5990  xorg_cv_cc_flag_unused_command_line_argument=no
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993fi
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5997	CFLAGS="$xorg_testset_save_CFLAGS"
5998fi
5999
6000found="no"
6001
6002	if test $found = "no" ; then
6003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005		fi
6006
6007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009		fi
6010
6011		CFLAGS="$CFLAGS -Wunused"
6012
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6014$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6015		cacheid=xorg_cv_cc_flag__Wunused
6016		if eval \${$cacheid+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h.  */
6021int i;
6022int
6023main ()
6024{
6025
6026  ;
6027  return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_link "$LINENO"; then :
6031  eval $cacheid=yes
6032else
6033  eval $cacheid=no
6034fi
6035rm -f core conftest.err conftest.$ac_objext \
6036    conftest$ac_exeext conftest.$ac_ext
6037fi
6038
6039
6040		CFLAGS="$xorg_testset_save_CFLAGS"
6041
6042		eval supported=\$$cacheid
6043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6044$as_echo "$supported" >&6; }
6045		if test "$supported" = "yes" ; then
6046			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6047			found="yes"
6048		fi
6049	fi
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065xorg_testset_save_CFLAGS="$CFLAGS"
6066
6067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h.  */
6076int i;
6077_ACEOF
6078if ac_fn_c_try_compile "$LINENO"; then :
6079  xorg_cv_cc_flag_unknown_warning_option=yes
6080else
6081  xorg_cv_cc_flag_unknown_warning_option=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6088	CFLAGS="$xorg_testset_save_CFLAGS"
6089fi
6090
6091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6094	fi
6095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102/* end confdefs.h.  */
6103int i;
6104_ACEOF
6105if ac_fn_c_try_compile "$LINENO"; then :
6106  xorg_cv_cc_flag_unused_command_line_argument=yes
6107else
6108  xorg_cv_cc_flag_unused_command_line_argument=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111fi
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6115	CFLAGS="$xorg_testset_save_CFLAGS"
6116fi
6117
6118found="no"
6119
6120	if test $found = "no" ; then
6121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6123		fi
6124
6125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6127		fi
6128
6129		CFLAGS="$CFLAGS -Wuninitialized"
6130
6131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6132$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6133		cacheid=xorg_cv_cc_flag__Wuninitialized
6134		if eval \${$cacheid+:} false; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h.  */
6139int i;
6140int
6141main ()
6142{
6143
6144  ;
6145  return 0;
6146}
6147_ACEOF
6148if ac_fn_c_try_link "$LINENO"; then :
6149  eval $cacheid=yes
6150else
6151  eval $cacheid=no
6152fi
6153rm -f core conftest.err conftest.$ac_objext \
6154    conftest$ac_exeext conftest.$ac_ext
6155fi
6156
6157
6158		CFLAGS="$xorg_testset_save_CFLAGS"
6159
6160		eval supported=\$$cacheid
6161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6162$as_echo "$supported" >&6; }
6163		if test "$supported" = "yes" ; then
6164			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6165			found="yes"
6166		fi
6167	fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183xorg_testset_save_CFLAGS="$CFLAGS"
6184
6185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6190  $as_echo_n "(cached) " >&6
6191else
6192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h.  */
6194int i;
6195_ACEOF
6196if ac_fn_c_try_compile "$LINENO"; then :
6197  xorg_cv_cc_flag_unknown_warning_option=yes
6198else
6199  xorg_cv_cc_flag_unknown_warning_option=no
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202fi
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6206	CFLAGS="$xorg_testset_save_CFLAGS"
6207fi
6208
6209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6212	fi
6213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6217  $as_echo_n "(cached) " >&6
6218else
6219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220/* end confdefs.h.  */
6221int i;
6222_ACEOF
6223if ac_fn_c_try_compile "$LINENO"; then :
6224  xorg_cv_cc_flag_unused_command_line_argument=yes
6225else
6226  xorg_cv_cc_flag_unused_command_line_argument=no
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6233	CFLAGS="$xorg_testset_save_CFLAGS"
6234fi
6235
6236found="no"
6237
6238	if test $found = "no" ; then
6239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6241		fi
6242
6243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6245		fi
6246
6247		CFLAGS="$CFLAGS -Wshadow"
6248
6249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6250$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6251		cacheid=xorg_cv_cc_flag__Wshadow
6252		if eval \${$cacheid+:} false; then :
6253  $as_echo_n "(cached) " >&6
6254else
6255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h.  */
6257int i;
6258int
6259main ()
6260{
6261
6262  ;
6263  return 0;
6264}
6265_ACEOF
6266if ac_fn_c_try_link "$LINENO"; then :
6267  eval $cacheid=yes
6268else
6269  eval $cacheid=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext \
6272    conftest$ac_exeext conftest.$ac_ext
6273fi
6274
6275
6276		CFLAGS="$xorg_testset_save_CFLAGS"
6277
6278		eval supported=\$$cacheid
6279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6280$as_echo "$supported" >&6; }
6281		if test "$supported" = "yes" ; then
6282			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6283			found="yes"
6284		fi
6285	fi
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301xorg_testset_save_CFLAGS="$CFLAGS"
6302
6303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h.  */
6312int i;
6313_ACEOF
6314if ac_fn_c_try_compile "$LINENO"; then :
6315  xorg_cv_cc_flag_unknown_warning_option=yes
6316else
6317  xorg_cv_cc_flag_unknown_warning_option=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6324	CFLAGS="$xorg_testset_save_CFLAGS"
6325fi
6326
6327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330	fi
6331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h.  */
6339int i;
6340_ACEOF
6341if ac_fn_c_try_compile "$LINENO"; then :
6342  xorg_cv_cc_flag_unused_command_line_argument=yes
6343else
6344  xorg_cv_cc_flag_unused_command_line_argument=no
6345fi
6346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347fi
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6351	CFLAGS="$xorg_testset_save_CFLAGS"
6352fi
6353
6354found="no"
6355
6356	if test $found = "no" ; then
6357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6359		fi
6360
6361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6363		fi
6364
6365		CFLAGS="$CFLAGS -Wmissing-noreturn"
6366
6367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6368$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6369		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6370		if eval \${$cacheid+:} false; then :
6371  $as_echo_n "(cached) " >&6
6372else
6373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h.  */
6375int i;
6376int
6377main ()
6378{
6379
6380  ;
6381  return 0;
6382}
6383_ACEOF
6384if ac_fn_c_try_link "$LINENO"; then :
6385  eval $cacheid=yes
6386else
6387  eval $cacheid=no
6388fi
6389rm -f core conftest.err conftest.$ac_objext \
6390    conftest$ac_exeext conftest.$ac_ext
6391fi
6392
6393
6394		CFLAGS="$xorg_testset_save_CFLAGS"
6395
6396		eval supported=\$$cacheid
6397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6398$as_echo "$supported" >&6; }
6399		if test "$supported" = "yes" ; then
6400			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6401			found="yes"
6402		fi
6403	fi
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419xorg_testset_save_CFLAGS="$CFLAGS"
6420
6421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429/* end confdefs.h.  */
6430int i;
6431_ACEOF
6432if ac_fn_c_try_compile "$LINENO"; then :
6433  xorg_cv_cc_flag_unknown_warning_option=yes
6434else
6435  xorg_cv_cc_flag_unknown_warning_option=no
6436fi
6437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438fi
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6442	CFLAGS="$xorg_testset_save_CFLAGS"
6443fi
6444
6445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448	fi
6449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h.  */
6457int i;
6458_ACEOF
6459if ac_fn_c_try_compile "$LINENO"; then :
6460  xorg_cv_cc_flag_unused_command_line_argument=yes
6461else
6462  xorg_cv_cc_flag_unused_command_line_argument=no
6463fi
6464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6469	CFLAGS="$xorg_testset_save_CFLAGS"
6470fi
6471
6472found="no"
6473
6474	if test $found = "no" ; then
6475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477		fi
6478
6479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481		fi
6482
6483		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6484
6485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6486$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6487		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6488		if eval \${$cacheid+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h.  */
6493int i;
6494int
6495main ()
6496{
6497
6498  ;
6499  return 0;
6500}
6501_ACEOF
6502if ac_fn_c_try_link "$LINENO"; then :
6503  eval $cacheid=yes
6504else
6505  eval $cacheid=no
6506fi
6507rm -f core conftest.err conftest.$ac_objext \
6508    conftest$ac_exeext conftest.$ac_ext
6509fi
6510
6511
6512		CFLAGS="$xorg_testset_save_CFLAGS"
6513
6514		eval supported=\$$cacheid
6515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6516$as_echo "$supported" >&6; }
6517		if test "$supported" = "yes" ; then
6518			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6519			found="yes"
6520		fi
6521	fi
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537xorg_testset_save_CFLAGS="$CFLAGS"
6538
6539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6544  $as_echo_n "(cached) " >&6
6545else
6546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548int i;
6549_ACEOF
6550if ac_fn_c_try_compile "$LINENO"; then :
6551  xorg_cv_cc_flag_unknown_warning_option=yes
6552else
6553  xorg_cv_cc_flag_unknown_warning_option=no
6554fi
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6560	CFLAGS="$xorg_testset_save_CFLAGS"
6561fi
6562
6563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	fi
6567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6571  $as_echo_n "(cached) " >&6
6572else
6573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h.  */
6575int i;
6576_ACEOF
6577if ac_fn_c_try_compile "$LINENO"; then :
6578  xorg_cv_cc_flag_unused_command_line_argument=yes
6579else
6580  xorg_cv_cc_flag_unused_command_line_argument=no
6581fi
6582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6587	CFLAGS="$xorg_testset_save_CFLAGS"
6588fi
6589
6590found="no"
6591
6592	if test $found = "no" ; then
6593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595		fi
6596
6597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599		fi
6600
6601		CFLAGS="$CFLAGS -Wredundant-decls"
6602
6603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6604$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6605		cacheid=xorg_cv_cc_flag__Wredundant_decls
6606		if eval \${$cacheid+:} false; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611int i;
6612int
6613main ()
6614{
6615
6616  ;
6617  return 0;
6618}
6619_ACEOF
6620if ac_fn_c_try_link "$LINENO"; then :
6621  eval $cacheid=yes
6622else
6623  eval $cacheid=no
6624fi
6625rm -f core conftest.err conftest.$ac_objext \
6626    conftest$ac_exeext conftest.$ac_ext
6627fi
6628
6629
6630		CFLAGS="$xorg_testset_save_CFLAGS"
6631
6632		eval supported=\$$cacheid
6633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6634$as_echo "$supported" >&6; }
6635		if test "$supported" = "yes" ; then
6636			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6637			found="yes"
6638		fi
6639	fi
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655xorg_testset_save_CFLAGS="$CFLAGS"
6656
6657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665/* end confdefs.h.  */
6666int i;
6667_ACEOF
6668if ac_fn_c_try_compile "$LINENO"; then :
6669  xorg_cv_cc_flag_unknown_warning_option=yes
6670else
6671  xorg_cv_cc_flag_unknown_warning_option=no
6672fi
6673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6678	CFLAGS="$xorg_testset_save_CFLAGS"
6679fi
6680
6681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684	fi
6685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693int i;
6694_ACEOF
6695if ac_fn_c_try_compile "$LINENO"; then :
6696  xorg_cv_cc_flag_unused_command_line_argument=yes
6697else
6698  xorg_cv_cc_flag_unused_command_line_argument=no
6699fi
6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6705	CFLAGS="$xorg_testset_save_CFLAGS"
6706fi
6707
6708found="no"
6709
6710	if test $found = "no" ; then
6711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713		fi
6714
6715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6717		fi
6718
6719		CFLAGS="$CFLAGS -Wlogical-op"
6720
6721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6722$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6723		cacheid=xorg_cv_cc_flag__Wlogical_op
6724		if eval \${$cacheid+:} false; then :
6725  $as_echo_n "(cached) " >&6
6726else
6727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728/* end confdefs.h.  */
6729int i;
6730int
6731main ()
6732{
6733
6734  ;
6735  return 0;
6736}
6737_ACEOF
6738if ac_fn_c_try_link "$LINENO"; then :
6739  eval $cacheid=yes
6740else
6741  eval $cacheid=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext \
6744    conftest$ac_exeext conftest.$ac_ext
6745fi
6746
6747
6748		CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750		eval supported=\$$cacheid
6751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752$as_echo "$supported" >&6; }
6753		if test "$supported" = "yes" ; then
6754			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6755			found="yes"
6756		fi
6757	fi
6758
6759
6760
6761# These are currently disabled because they are noisy.  They will be enabled
6762# in the future once the codebase is sufficiently modernized to silence
6763# them.  For now, I don't want them to drown out the other warnings.
6764# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6765# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6766# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6767
6768# Turn some warnings into errors, so we don't accidently get successful builds
6769# when there are problems that should be fixed.
6770
6771if test "x$SELECTIVE_WERROR" = "xyes" ; then
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785xorg_testset_save_CFLAGS="$CFLAGS"
6786
6787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h.  */
6796int i;
6797_ACEOF
6798if ac_fn_c_try_compile "$LINENO"; then :
6799  xorg_cv_cc_flag_unknown_warning_option=yes
6800else
6801  xorg_cv_cc_flag_unknown_warning_option=no
6802fi
6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804fi
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6808	CFLAGS="$xorg_testset_save_CFLAGS"
6809fi
6810
6811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6814	fi
6815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823int i;
6824_ACEOF
6825if ac_fn_c_try_compile "$LINENO"; then :
6826  xorg_cv_cc_flag_unused_command_line_argument=yes
6827else
6828  xorg_cv_cc_flag_unused_command_line_argument=no
6829fi
6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6835	CFLAGS="$xorg_testset_save_CFLAGS"
6836fi
6837
6838found="no"
6839
6840	if test $found = "no" ; then
6841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843		fi
6844
6845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6847		fi
6848
6849		CFLAGS="$CFLAGS -Werror=implicit"
6850
6851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6852$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6853		cacheid=xorg_cv_cc_flag__Werror_implicit
6854		if eval \${$cacheid+:} false; then :
6855  $as_echo_n "(cached) " >&6
6856else
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859int i;
6860int
6861main ()
6862{
6863
6864  ;
6865  return 0;
6866}
6867_ACEOF
6868if ac_fn_c_try_link "$LINENO"; then :
6869  eval $cacheid=yes
6870else
6871  eval $cacheid=no
6872fi
6873rm -f core conftest.err conftest.$ac_objext \
6874    conftest$ac_exeext conftest.$ac_ext
6875fi
6876
6877
6878		CFLAGS="$xorg_testset_save_CFLAGS"
6879
6880		eval supported=\$$cacheid
6881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6882$as_echo "$supported" >&6; }
6883		if test "$supported" = "yes" ; then
6884			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6885			found="yes"
6886		fi
6887	fi
6888
6889	if test $found = "no" ; then
6890		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892		fi
6893
6894		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896		fi
6897
6898		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6899
6900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6901$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6902		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6903		if eval \${$cacheid+:} false; then :
6904  $as_echo_n "(cached) " >&6
6905else
6906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h.  */
6908int i;
6909int
6910main ()
6911{
6912
6913  ;
6914  return 0;
6915}
6916_ACEOF
6917if ac_fn_c_try_link "$LINENO"; then :
6918  eval $cacheid=yes
6919else
6920  eval $cacheid=no
6921fi
6922rm -f core conftest.err conftest.$ac_objext \
6923    conftest$ac_exeext conftest.$ac_ext
6924fi
6925
6926
6927		CFLAGS="$xorg_testset_save_CFLAGS"
6928
6929		eval supported=\$$cacheid
6930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6931$as_echo "$supported" >&6; }
6932		if test "$supported" = "yes" ; then
6933			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6934			found="yes"
6935		fi
6936	fi
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952xorg_testset_save_CFLAGS="$CFLAGS"
6953
6954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6959  $as_echo_n "(cached) " >&6
6960else
6961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h.  */
6963int i;
6964_ACEOF
6965if ac_fn_c_try_compile "$LINENO"; then :
6966  xorg_cv_cc_flag_unknown_warning_option=yes
6967else
6968  xorg_cv_cc_flag_unknown_warning_option=no
6969fi
6970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971fi
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6975	CFLAGS="$xorg_testset_save_CFLAGS"
6976fi
6977
6978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6981	fi
6982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990int i;
6991_ACEOF
6992if ac_fn_c_try_compile "$LINENO"; then :
6993  xorg_cv_cc_flag_unused_command_line_argument=yes
6994else
6995  xorg_cv_cc_flag_unused_command_line_argument=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7002	CFLAGS="$xorg_testset_save_CFLAGS"
7003fi
7004
7005found="no"
7006
7007	if test $found = "no" ; then
7008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7010		fi
7011
7012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7014		fi
7015
7016		CFLAGS="$CFLAGS -Werror=nonnull"
7017
7018		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7019$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7020		cacheid=xorg_cv_cc_flag__Werror_nonnull
7021		if eval \${$cacheid+:} false; then :
7022  $as_echo_n "(cached) " >&6
7023else
7024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025/* end confdefs.h.  */
7026int i;
7027int
7028main ()
7029{
7030
7031  ;
7032  return 0;
7033}
7034_ACEOF
7035if ac_fn_c_try_link "$LINENO"; then :
7036  eval $cacheid=yes
7037else
7038  eval $cacheid=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext \
7041    conftest$ac_exeext conftest.$ac_ext
7042fi
7043
7044
7045		CFLAGS="$xorg_testset_save_CFLAGS"
7046
7047		eval supported=\$$cacheid
7048		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7049$as_echo "$supported" >&6; }
7050		if test "$supported" = "yes" ; then
7051			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7052			found="yes"
7053		fi
7054	fi
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070xorg_testset_save_CFLAGS="$CFLAGS"
7071
7072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7073	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7077  $as_echo_n "(cached) " >&6
7078else
7079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080/* end confdefs.h.  */
7081int i;
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084  xorg_cv_cc_flag_unknown_warning_option=yes
7085else
7086  xorg_cv_cc_flag_unknown_warning_option=no
7087fi
7088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089fi
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7093	CFLAGS="$xorg_testset_save_CFLAGS"
7094fi
7095
7096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099	fi
7100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7101	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108int i;
7109_ACEOF
7110if ac_fn_c_try_compile "$LINENO"; then :
7111  xorg_cv_cc_flag_unused_command_line_argument=yes
7112else
7113  xorg_cv_cc_flag_unused_command_line_argument=no
7114fi
7115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116fi
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7120	CFLAGS="$xorg_testset_save_CFLAGS"
7121fi
7122
7123found="no"
7124
7125	if test $found = "no" ; then
7126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128		fi
7129
7130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7132		fi
7133
7134		CFLAGS="$CFLAGS -Werror=init-self"
7135
7136		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7137$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7138		cacheid=xorg_cv_cc_flag__Werror_init_self
7139		if eval \${$cacheid+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h.  */
7144int i;
7145int
7146main ()
7147{
7148
7149  ;
7150  return 0;
7151}
7152_ACEOF
7153if ac_fn_c_try_link "$LINENO"; then :
7154  eval $cacheid=yes
7155else
7156  eval $cacheid=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext \
7159    conftest$ac_exeext conftest.$ac_ext
7160fi
7161
7162
7163		CFLAGS="$xorg_testset_save_CFLAGS"
7164
7165		eval supported=\$$cacheid
7166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7167$as_echo "$supported" >&6; }
7168		if test "$supported" = "yes" ; then
7169			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7170			found="yes"
7171		fi
7172	fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188xorg_testset_save_CFLAGS="$CFLAGS"
7189
7190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7191	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7195  $as_echo_n "(cached) " >&6
7196else
7197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198/* end confdefs.h.  */
7199int i;
7200_ACEOF
7201if ac_fn_c_try_compile "$LINENO"; then :
7202  xorg_cv_cc_flag_unknown_warning_option=yes
7203else
7204  xorg_cv_cc_flag_unknown_warning_option=no
7205fi
7206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207fi
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7210	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7211	CFLAGS="$xorg_testset_save_CFLAGS"
7212fi
7213
7214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7215	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7216		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7217	fi
7218	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7222  $as_echo_n "(cached) " >&6
7223else
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226int i;
7227_ACEOF
7228if ac_fn_c_try_compile "$LINENO"; then :
7229  xorg_cv_cc_flag_unused_command_line_argument=yes
7230else
7231  xorg_cv_cc_flag_unused_command_line_argument=no
7232fi
7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234fi
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7237	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7238	CFLAGS="$xorg_testset_save_CFLAGS"
7239fi
7240
7241found="no"
7242
7243	if test $found = "no" ; then
7244		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7245			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7246		fi
7247
7248		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7249			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7250		fi
7251
7252		CFLAGS="$CFLAGS -Werror=main"
7253
7254		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7255$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7256		cacheid=xorg_cv_cc_flag__Werror_main
7257		if eval \${$cacheid+:} false; then :
7258  $as_echo_n "(cached) " >&6
7259else
7260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261/* end confdefs.h.  */
7262int i;
7263int
7264main ()
7265{
7266
7267  ;
7268  return 0;
7269}
7270_ACEOF
7271if ac_fn_c_try_link "$LINENO"; then :
7272  eval $cacheid=yes
7273else
7274  eval $cacheid=no
7275fi
7276rm -f core conftest.err conftest.$ac_objext \
7277    conftest$ac_exeext conftest.$ac_ext
7278fi
7279
7280
7281		CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283		eval supported=\$$cacheid
7284		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285$as_echo "$supported" >&6; }
7286		if test "$supported" = "yes" ; then
7287			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7288			found="yes"
7289		fi
7290	fi
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306xorg_testset_save_CFLAGS="$CFLAGS"
7307
7308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7309	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317int i;
7318_ACEOF
7319if ac_fn_c_try_compile "$LINENO"; then :
7320  xorg_cv_cc_flag_unknown_warning_option=yes
7321else
7322  xorg_cv_cc_flag_unknown_warning_option=no
7323fi
7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7328	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7329	CFLAGS="$xorg_testset_save_CFLAGS"
7330fi
7331
7332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7333	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7334		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335	fi
7336	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h.  */
7344int i;
7345_ACEOF
7346if ac_fn_c_try_compile "$LINENO"; then :
7347  xorg_cv_cc_flag_unused_command_line_argument=yes
7348else
7349  xorg_cv_cc_flag_unused_command_line_argument=no
7350fi
7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7355	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7356	CFLAGS="$xorg_testset_save_CFLAGS"
7357fi
7358
7359found="no"
7360
7361	if test $found = "no" ; then
7362		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7363			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7364		fi
7365
7366		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7367			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7368		fi
7369
7370		CFLAGS="$CFLAGS -Werror=missing-braces"
7371
7372		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7373$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7374		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7375		if eval \${$cacheid+:} false; then :
7376  $as_echo_n "(cached) " >&6
7377else
7378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380int i;
7381int
7382main ()
7383{
7384
7385  ;
7386  return 0;
7387}
7388_ACEOF
7389if ac_fn_c_try_link "$LINENO"; then :
7390  eval $cacheid=yes
7391else
7392  eval $cacheid=no
7393fi
7394rm -f core conftest.err conftest.$ac_objext \
7395    conftest$ac_exeext conftest.$ac_ext
7396fi
7397
7398
7399		CFLAGS="$xorg_testset_save_CFLAGS"
7400
7401		eval supported=\$$cacheid
7402		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7403$as_echo "$supported" >&6; }
7404		if test "$supported" = "yes" ; then
7405			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7406			found="yes"
7407		fi
7408	fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424xorg_testset_save_CFLAGS="$CFLAGS"
7425
7426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7427	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7431  $as_echo_n "(cached) " >&6
7432else
7433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h.  */
7435int i;
7436_ACEOF
7437if ac_fn_c_try_compile "$LINENO"; then :
7438  xorg_cv_cc_flag_unknown_warning_option=yes
7439else
7440  xorg_cv_cc_flag_unknown_warning_option=no
7441fi
7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7446	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7447	CFLAGS="$xorg_testset_save_CFLAGS"
7448fi
7449
7450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7451	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7452		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453	fi
7454	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h.  */
7462int i;
7463_ACEOF
7464if ac_fn_c_try_compile "$LINENO"; then :
7465  xorg_cv_cc_flag_unused_command_line_argument=yes
7466else
7467  xorg_cv_cc_flag_unused_command_line_argument=no
7468fi
7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470fi
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7474	CFLAGS="$xorg_testset_save_CFLAGS"
7475fi
7476
7477found="no"
7478
7479	if test $found = "no" ; then
7480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482		fi
7483
7484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486		fi
7487
7488		CFLAGS="$CFLAGS -Werror=sequence-point"
7489
7490		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7491$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7492		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7493		if eval \${$cacheid+:} false; then :
7494  $as_echo_n "(cached) " >&6
7495else
7496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498int i;
7499int
7500main ()
7501{
7502
7503  ;
7504  return 0;
7505}
7506_ACEOF
7507if ac_fn_c_try_link "$LINENO"; then :
7508  eval $cacheid=yes
7509else
7510  eval $cacheid=no
7511fi
7512rm -f core conftest.err conftest.$ac_objext \
7513    conftest$ac_exeext conftest.$ac_ext
7514fi
7515
7516
7517		CFLAGS="$xorg_testset_save_CFLAGS"
7518
7519		eval supported=\$$cacheid
7520		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7521$as_echo "$supported" >&6; }
7522		if test "$supported" = "yes" ; then
7523			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7524			found="yes"
7525		fi
7526	fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542xorg_testset_save_CFLAGS="$CFLAGS"
7543
7544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7545	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7549  $as_echo_n "(cached) " >&6
7550else
7551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552/* end confdefs.h.  */
7553int i;
7554_ACEOF
7555if ac_fn_c_try_compile "$LINENO"; then :
7556  xorg_cv_cc_flag_unknown_warning_option=yes
7557else
7558  xorg_cv_cc_flag_unknown_warning_option=no
7559fi
7560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7564	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7565	CFLAGS="$xorg_testset_save_CFLAGS"
7566fi
7567
7568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7569	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7570		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571	fi
7572	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7573	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7576  $as_echo_n "(cached) " >&6
7577else
7578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h.  */
7580int i;
7581_ACEOF
7582if ac_fn_c_try_compile "$LINENO"; then :
7583  xorg_cv_cc_flag_unused_command_line_argument=yes
7584else
7585  xorg_cv_cc_flag_unused_command_line_argument=no
7586fi
7587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7591	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7592	CFLAGS="$xorg_testset_save_CFLAGS"
7593fi
7594
7595found="no"
7596
7597	if test $found = "no" ; then
7598		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7599			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7600		fi
7601
7602		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7603			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7604		fi
7605
7606		CFLAGS="$CFLAGS -Werror=return-type"
7607
7608		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7609$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7610		cacheid=xorg_cv_cc_flag__Werror_return_type
7611		if eval \${$cacheid+:} false; then :
7612  $as_echo_n "(cached) " >&6
7613else
7614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615/* end confdefs.h.  */
7616int i;
7617int
7618main ()
7619{
7620
7621  ;
7622  return 0;
7623}
7624_ACEOF
7625if ac_fn_c_try_link "$LINENO"; then :
7626  eval $cacheid=yes
7627else
7628  eval $cacheid=no
7629fi
7630rm -f core conftest.err conftest.$ac_objext \
7631    conftest$ac_exeext conftest.$ac_ext
7632fi
7633
7634
7635		CFLAGS="$xorg_testset_save_CFLAGS"
7636
7637		eval supported=\$$cacheid
7638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7639$as_echo "$supported" >&6; }
7640		if test "$supported" = "yes" ; then
7641			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7642			found="yes"
7643		fi
7644	fi
7645
7646	if test $found = "no" ; then
7647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649		fi
7650
7651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653		fi
7654
7655		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7656
7657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7658$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7659		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7660		if eval \${$cacheid+:} false; then :
7661  $as_echo_n "(cached) " >&6
7662else
7663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665int i;
7666int
7667main ()
7668{
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674if ac_fn_c_try_link "$LINENO"; then :
7675  eval $cacheid=yes
7676else
7677  eval $cacheid=no
7678fi
7679rm -f core conftest.err conftest.$ac_objext \
7680    conftest$ac_exeext conftest.$ac_ext
7681fi
7682
7683
7684		CFLAGS="$xorg_testset_save_CFLAGS"
7685
7686		eval supported=\$$cacheid
7687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7688$as_echo "$supported" >&6; }
7689		if test "$supported" = "yes" ; then
7690			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7691			found="yes"
7692		fi
7693	fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709xorg_testset_save_CFLAGS="$CFLAGS"
7710
7711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720int i;
7721_ACEOF
7722if ac_fn_c_try_compile "$LINENO"; then :
7723  xorg_cv_cc_flag_unknown_warning_option=yes
7724else
7725  xorg_cv_cc_flag_unknown_warning_option=no
7726fi
7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7732	CFLAGS="$xorg_testset_save_CFLAGS"
7733fi
7734
7735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7738	fi
7739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7743  $as_echo_n "(cached) " >&6
7744else
7745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746/* end confdefs.h.  */
7747int i;
7748_ACEOF
7749if ac_fn_c_try_compile "$LINENO"; then :
7750  xorg_cv_cc_flag_unused_command_line_argument=yes
7751else
7752  xorg_cv_cc_flag_unused_command_line_argument=no
7753fi
7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7759	CFLAGS="$xorg_testset_save_CFLAGS"
7760fi
7761
7762found="no"
7763
7764	if test $found = "no" ; then
7765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767		fi
7768
7769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7771		fi
7772
7773		CFLAGS="$CFLAGS -Werror=trigraphs"
7774
7775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7776$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7777		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7778		if eval \${$cacheid+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784int
7785main ()
7786{
7787
7788  ;
7789  return 0;
7790}
7791_ACEOF
7792if ac_fn_c_try_link "$LINENO"; then :
7793  eval $cacheid=yes
7794else
7795  eval $cacheid=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext \
7798    conftest$ac_exeext conftest.$ac_ext
7799fi
7800
7801
7802		CFLAGS="$xorg_testset_save_CFLAGS"
7803
7804		eval supported=\$$cacheid
7805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7806$as_echo "$supported" >&6; }
7807		if test "$supported" = "yes" ; then
7808			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7809			found="yes"
7810		fi
7811	fi
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827xorg_testset_save_CFLAGS="$CFLAGS"
7828
7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839_ACEOF
7840if ac_fn_c_try_compile "$LINENO"; then :
7841  xorg_cv_cc_flag_unknown_warning_option=yes
7842else
7843  xorg_cv_cc_flag_unknown_warning_option=no
7844fi
7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846fi
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7850	CFLAGS="$xorg_testset_save_CFLAGS"
7851fi
7852
7853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7856	fi
7857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7861  $as_echo_n "(cached) " >&6
7862else
7863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864/* end confdefs.h.  */
7865int i;
7866_ACEOF
7867if ac_fn_c_try_compile "$LINENO"; then :
7868  xorg_cv_cc_flag_unused_command_line_argument=yes
7869else
7870  xorg_cv_cc_flag_unused_command_line_argument=no
7871fi
7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873fi
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7877	CFLAGS="$xorg_testset_save_CFLAGS"
7878fi
7879
7880found="no"
7881
7882	if test $found = "no" ; then
7883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885		fi
7886
7887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889		fi
7890
7891		CFLAGS="$CFLAGS -Werror=array-bounds"
7892
7893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7894$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7895		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7896		if eval \${$cacheid+:} false; then :
7897  $as_echo_n "(cached) " >&6
7898else
7899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900/* end confdefs.h.  */
7901int i;
7902int
7903main ()
7904{
7905
7906  ;
7907  return 0;
7908}
7909_ACEOF
7910if ac_fn_c_try_link "$LINENO"; then :
7911  eval $cacheid=yes
7912else
7913  eval $cacheid=no
7914fi
7915rm -f core conftest.err conftest.$ac_objext \
7916    conftest$ac_exeext conftest.$ac_ext
7917fi
7918
7919
7920		CFLAGS="$xorg_testset_save_CFLAGS"
7921
7922		eval supported=\$$cacheid
7923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7924$as_echo "$supported" >&6; }
7925		if test "$supported" = "yes" ; then
7926			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7927			found="yes"
7928		fi
7929	fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945xorg_testset_save_CFLAGS="$CFLAGS"
7946
7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"; then :
7959  xorg_cv_cc_flag_unknown_warning_option=yes
7960else
7961  xorg_cv_cc_flag_unknown_warning_option=no
7962fi
7963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7968	CFLAGS="$xorg_testset_save_CFLAGS"
7969fi
7970
7971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974	fi
7975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7979  $as_echo_n "(cached) " >&6
7980else
7981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982/* end confdefs.h.  */
7983int i;
7984_ACEOF
7985if ac_fn_c_try_compile "$LINENO"; then :
7986  xorg_cv_cc_flag_unused_command_line_argument=yes
7987else
7988  xorg_cv_cc_flag_unused_command_line_argument=no
7989fi
7990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991fi
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7995	CFLAGS="$xorg_testset_save_CFLAGS"
7996fi
7997
7998found="no"
7999
8000	if test $found = "no" ; then
8001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8003		fi
8004
8005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8007		fi
8008
8009		CFLAGS="$CFLAGS -Werror=write-strings"
8010
8011		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8012$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8013		cacheid=xorg_cv_cc_flag__Werror_write_strings
8014		if eval \${$cacheid+:} false; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020int
8021main ()
8022{
8023
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028if ac_fn_c_try_link "$LINENO"; then :
8029  eval $cacheid=yes
8030else
8031  eval $cacheid=no
8032fi
8033rm -f core conftest.err conftest.$ac_objext \
8034    conftest$ac_exeext conftest.$ac_ext
8035fi
8036
8037
8038		CFLAGS="$xorg_testset_save_CFLAGS"
8039
8040		eval supported=\$$cacheid
8041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8042$as_echo "$supported" >&6; }
8043		if test "$supported" = "yes" ; then
8044			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8045			found="yes"
8046		fi
8047	fi
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063xorg_testset_save_CFLAGS="$CFLAGS"
8064
8065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074int i;
8075_ACEOF
8076if ac_fn_c_try_compile "$LINENO"; then :
8077  xorg_cv_cc_flag_unknown_warning_option=yes
8078else
8079  xorg_cv_cc_flag_unknown_warning_option=no
8080fi
8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8086	CFLAGS="$xorg_testset_save_CFLAGS"
8087fi
8088
8089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092	fi
8093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8097  $as_echo_n "(cached) " >&6
8098else
8099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100/* end confdefs.h.  */
8101int i;
8102_ACEOF
8103if ac_fn_c_try_compile "$LINENO"; then :
8104  xorg_cv_cc_flag_unused_command_line_argument=yes
8105else
8106  xorg_cv_cc_flag_unused_command_line_argument=no
8107fi
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109fi
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8113	CFLAGS="$xorg_testset_save_CFLAGS"
8114fi
8115
8116found="no"
8117
8118	if test $found = "no" ; then
8119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8121		fi
8122
8123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8125		fi
8126
8127		CFLAGS="$CFLAGS -Werror=address"
8128
8129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8130$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8131		cacheid=xorg_cv_cc_flag__Werror_address
8132		if eval \${$cacheid+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136/* end confdefs.h.  */
8137int i;
8138int
8139main ()
8140{
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146if ac_fn_c_try_link "$LINENO"; then :
8147  eval $cacheid=yes
8148else
8149  eval $cacheid=no
8150fi
8151rm -f core conftest.err conftest.$ac_objext \
8152    conftest$ac_exeext conftest.$ac_ext
8153fi
8154
8155
8156		CFLAGS="$xorg_testset_save_CFLAGS"
8157
8158		eval supported=\$$cacheid
8159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8160$as_echo "$supported" >&6; }
8161		if test "$supported" = "yes" ; then
8162			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8163			found="yes"
8164		fi
8165	fi
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181xorg_testset_save_CFLAGS="$CFLAGS"
8182
8183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191/* end confdefs.h.  */
8192int i;
8193_ACEOF
8194if ac_fn_c_try_compile "$LINENO"; then :
8195  xorg_cv_cc_flag_unknown_warning_option=yes
8196else
8197  xorg_cv_cc_flag_unknown_warning_option=no
8198fi
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200fi
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8204	CFLAGS="$xorg_testset_save_CFLAGS"
8205fi
8206
8207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210	fi
8211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8215  $as_echo_n "(cached) " >&6
8216else
8217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218/* end confdefs.h.  */
8219int i;
8220_ACEOF
8221if ac_fn_c_try_compile "$LINENO"; then :
8222  xorg_cv_cc_flag_unused_command_line_argument=yes
8223else
8224  xorg_cv_cc_flag_unused_command_line_argument=no
8225fi
8226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227fi
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8231	CFLAGS="$xorg_testset_save_CFLAGS"
8232fi
8233
8234found="no"
8235
8236	if test $found = "no" ; then
8237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239		fi
8240
8241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8243		fi
8244
8245		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8246
8247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8248$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8249		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8250		if eval \${$cacheid+:} false; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254/* end confdefs.h.  */
8255int i;
8256int
8257main ()
8258{
8259
8260  ;
8261  return 0;
8262}
8263_ACEOF
8264if ac_fn_c_try_link "$LINENO"; then :
8265  eval $cacheid=yes
8266else
8267  eval $cacheid=no
8268fi
8269rm -f core conftest.err conftest.$ac_objext \
8270    conftest$ac_exeext conftest.$ac_ext
8271fi
8272
8273
8274		CFLAGS="$xorg_testset_save_CFLAGS"
8275
8276		eval supported=\$$cacheid
8277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8278$as_echo "$supported" >&6; }
8279		if test "$supported" = "yes" ; then
8280			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8281			found="yes"
8282		fi
8283	fi
8284
8285	if test $found = "no" ; then
8286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8288		fi
8289
8290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292		fi
8293
8294		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8295
8296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8297$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8298		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8299		if eval \${$cacheid+:} false; then :
8300  $as_echo_n "(cached) " >&6
8301else
8302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303/* end confdefs.h.  */
8304int i;
8305int
8306main ()
8307{
8308
8309  ;
8310  return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_link "$LINENO"; then :
8314  eval $cacheid=yes
8315else
8316  eval $cacheid=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext \
8319    conftest$ac_exeext conftest.$ac_ext
8320fi
8321
8322
8323		CFLAGS="$xorg_testset_save_CFLAGS"
8324
8325		eval supported=\$$cacheid
8326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8327$as_echo "$supported" >&6; }
8328		if test "$supported" = "yes" ; then
8329			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8330			found="yes"
8331		fi
8332	fi
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348xorg_testset_save_CFLAGS="$CFLAGS"
8349
8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8355  $as_echo_n "(cached) " >&6
8356else
8357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359int i;
8360_ACEOF
8361if ac_fn_c_try_compile "$LINENO"; then :
8362  xorg_cv_cc_flag_unknown_warning_option=yes
8363else
8364  xorg_cv_cc_flag_unknown_warning_option=no
8365fi
8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367fi
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8371	CFLAGS="$xorg_testset_save_CFLAGS"
8372fi
8373
8374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8377	fi
8378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386int i;
8387_ACEOF
8388if ac_fn_c_try_compile "$LINENO"; then :
8389  xorg_cv_cc_flag_unused_command_line_argument=yes
8390else
8391  xorg_cv_cc_flag_unused_command_line_argument=no
8392fi
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394fi
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8398	CFLAGS="$xorg_testset_save_CFLAGS"
8399fi
8400
8401found="no"
8402
8403	if test $found = "no" ; then
8404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8406		fi
8407
8408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8410		fi
8411
8412		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8413
8414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8415$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8416		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8417		if eval \${$cacheid+:} false; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423int
8424main ()
8425{
8426
8427  ;
8428  return 0;
8429}
8430_ACEOF
8431if ac_fn_c_try_link "$LINENO"; then :
8432  eval $cacheid=yes
8433else
8434  eval $cacheid=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext \
8437    conftest$ac_exeext conftest.$ac_ext
8438fi
8439
8440
8441		CFLAGS="$xorg_testset_save_CFLAGS"
8442
8443		eval supported=\$$cacheid
8444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8445$as_echo "$supported" >&6; }
8446		if test "$supported" = "yes" ; then
8447			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8448			found="yes"
8449		fi
8450	fi
8451
8452 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8453else
8454{ $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
8455$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;}
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469xorg_testset_save_CFLAGS="$CFLAGS"
8470
8471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8472	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8474$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8475if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480int i;
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"; then :
8483  xorg_cv_cc_flag_unknown_warning_option=yes
8484else
8485  xorg_cv_cc_flag_unknown_warning_option=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8490$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8491	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8496	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	fi
8499	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8501$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8502if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506/* end confdefs.h.  */
8507int i;
8508_ACEOF
8509if ac_fn_c_try_compile "$LINENO"; then :
8510  xorg_cv_cc_flag_unused_command_line_argument=yes
8511else
8512  xorg_cv_cc_flag_unused_command_line_argument=no
8513fi
8514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8517$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8518	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8519	CFLAGS="$xorg_testset_save_CFLAGS"
8520fi
8521
8522found="no"
8523
8524	if test $found = "no" ; then
8525		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8526			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527		fi
8528
8529		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8530			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8531		fi
8532
8533		CFLAGS="$CFLAGS -Wimplicit"
8534
8535		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8536$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8537		cacheid=xorg_cv_cc_flag__Wimplicit
8538		if eval \${$cacheid+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543int i;
8544int
8545main ()
8546{
8547
8548  ;
8549  return 0;
8550}
8551_ACEOF
8552if ac_fn_c_try_link "$LINENO"; then :
8553  eval $cacheid=yes
8554else
8555  eval $cacheid=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext \
8558    conftest$ac_exeext conftest.$ac_ext
8559fi
8560
8561
8562		CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564		eval supported=\$$cacheid
8565		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8566$as_echo "$supported" >&6; }
8567		if test "$supported" = "yes" ; then
8568			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8569			found="yes"
8570		fi
8571	fi
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587xorg_testset_save_CFLAGS="$CFLAGS"
8588
8589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8590	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8592$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8593if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598int i;
8599_ACEOF
8600if ac_fn_c_try_compile "$LINENO"; then :
8601  xorg_cv_cc_flag_unknown_warning_option=yes
8602else
8603  xorg_cv_cc_flag_unknown_warning_option=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8608$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8610	CFLAGS="$xorg_testset_save_CFLAGS"
8611fi
8612
8613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616	fi
8617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8618	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8619$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8620if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8621  $as_echo_n "(cached) " >&6
8622else
8623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624/* end confdefs.h.  */
8625int i;
8626_ACEOF
8627if ac_fn_c_try_compile "$LINENO"; then :
8628  xorg_cv_cc_flag_unused_command_line_argument=yes
8629else
8630  xorg_cv_cc_flag_unused_command_line_argument=no
8631fi
8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633fi
8634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8635$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8637	CFLAGS="$xorg_testset_save_CFLAGS"
8638fi
8639
8640found="no"
8641
8642	if test $found = "no" ; then
8643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8645		fi
8646
8647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8649		fi
8650
8651		CFLAGS="$CFLAGS -Wnonnull"
8652
8653		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8654$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8655		cacheid=xorg_cv_cc_flag__Wnonnull
8656		if eval \${$cacheid+:} false; then :
8657  $as_echo_n "(cached) " >&6
8658else
8659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660/* end confdefs.h.  */
8661int i;
8662int
8663main ()
8664{
8665
8666  ;
8667  return 0;
8668}
8669_ACEOF
8670if ac_fn_c_try_link "$LINENO"; then :
8671  eval $cacheid=yes
8672else
8673  eval $cacheid=no
8674fi
8675rm -f core conftest.err conftest.$ac_objext \
8676    conftest$ac_exeext conftest.$ac_ext
8677fi
8678
8679
8680		CFLAGS="$xorg_testset_save_CFLAGS"
8681
8682		eval supported=\$$cacheid
8683		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8684$as_echo "$supported" >&6; }
8685		if test "$supported" = "yes" ; then
8686			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8687			found="yes"
8688		fi
8689	fi
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705xorg_testset_save_CFLAGS="$CFLAGS"
8706
8707if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8708	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8710$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8711if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"; then :
8719  xorg_cv_cc_flag_unknown_warning_option=yes
8720else
8721  xorg_cv_cc_flag_unknown_warning_option=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8726$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8728	CFLAGS="$xorg_testset_save_CFLAGS"
8729fi
8730
8731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8734	fi
8735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8736	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8737$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8738if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8739  $as_echo_n "(cached) " >&6
8740else
8741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h.  */
8743int i;
8744_ACEOF
8745if ac_fn_c_try_compile "$LINENO"; then :
8746  xorg_cv_cc_flag_unused_command_line_argument=yes
8747else
8748  xorg_cv_cc_flag_unused_command_line_argument=no
8749fi
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8753$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8754	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8755	CFLAGS="$xorg_testset_save_CFLAGS"
8756fi
8757
8758found="no"
8759
8760	if test $found = "no" ; then
8761		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8762			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8763		fi
8764
8765		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8766			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8767		fi
8768
8769		CFLAGS="$CFLAGS -Winit-self"
8770
8771		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8772$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8773		cacheid=xorg_cv_cc_flag__Winit_self
8774		if eval \${$cacheid+:} false; then :
8775  $as_echo_n "(cached) " >&6
8776else
8777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h.  */
8779int i;
8780int
8781main ()
8782{
8783
8784  ;
8785  return 0;
8786}
8787_ACEOF
8788if ac_fn_c_try_link "$LINENO"; then :
8789  eval $cacheid=yes
8790else
8791  eval $cacheid=no
8792fi
8793rm -f core conftest.err conftest.$ac_objext \
8794    conftest$ac_exeext conftest.$ac_ext
8795fi
8796
8797
8798		CFLAGS="$xorg_testset_save_CFLAGS"
8799
8800		eval supported=\$$cacheid
8801		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8802$as_echo "$supported" >&6; }
8803		if test "$supported" = "yes" ; then
8804			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8805			found="yes"
8806		fi
8807	fi
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823xorg_testset_save_CFLAGS="$CFLAGS"
8824
8825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833/* end confdefs.h.  */
8834int i;
8835_ACEOF
8836if ac_fn_c_try_compile "$LINENO"; then :
8837  xorg_cv_cc_flag_unknown_warning_option=yes
8838else
8839  xorg_cv_cc_flag_unknown_warning_option=no
8840fi
8841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842fi
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8846	CFLAGS="$xorg_testset_save_CFLAGS"
8847fi
8848
8849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852	fi
8853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8857  $as_echo_n "(cached) " >&6
8858else
8859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860/* end confdefs.h.  */
8861int i;
8862_ACEOF
8863if ac_fn_c_try_compile "$LINENO"; then :
8864  xorg_cv_cc_flag_unused_command_line_argument=yes
8865else
8866  xorg_cv_cc_flag_unused_command_line_argument=no
8867fi
8868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869fi
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8873	CFLAGS="$xorg_testset_save_CFLAGS"
8874fi
8875
8876found="no"
8877
8878	if test $found = "no" ; then
8879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8881		fi
8882
8883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8885		fi
8886
8887		CFLAGS="$CFLAGS -Wmain"
8888
8889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8890$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8891		cacheid=xorg_cv_cc_flag__Wmain
8892		if eval \${$cacheid+:} false; then :
8893  $as_echo_n "(cached) " >&6
8894else
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897int i;
8898int
8899main ()
8900{
8901
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906if ac_fn_c_try_link "$LINENO"; then :
8907  eval $cacheid=yes
8908else
8909  eval $cacheid=no
8910fi
8911rm -f core conftest.err conftest.$ac_objext \
8912    conftest$ac_exeext conftest.$ac_ext
8913fi
8914
8915
8916		CFLAGS="$xorg_testset_save_CFLAGS"
8917
8918		eval supported=\$$cacheid
8919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8920$as_echo "$supported" >&6; }
8921		if test "$supported" = "yes" ; then
8922			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8923			found="yes"
8924		fi
8925	fi
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941xorg_testset_save_CFLAGS="$CFLAGS"
8942
8943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8948  $as_echo_n "(cached) " >&6
8949else
8950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951/* end confdefs.h.  */
8952int i;
8953_ACEOF
8954if ac_fn_c_try_compile "$LINENO"; then :
8955  xorg_cv_cc_flag_unknown_warning_option=yes
8956else
8957  xorg_cv_cc_flag_unknown_warning_option=no
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8964	CFLAGS="$xorg_testset_save_CFLAGS"
8965fi
8966
8967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	fi
8971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8975  $as_echo_n "(cached) " >&6
8976else
8977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h.  */
8979int i;
8980_ACEOF
8981if ac_fn_c_try_compile "$LINENO"; then :
8982  xorg_cv_cc_flag_unused_command_line_argument=yes
8983else
8984  xorg_cv_cc_flag_unused_command_line_argument=no
8985fi
8986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987fi
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8991	CFLAGS="$xorg_testset_save_CFLAGS"
8992fi
8993
8994found="no"
8995
8996	if test $found = "no" ; then
8997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999		fi
9000
9001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003		fi
9004
9005		CFLAGS="$CFLAGS -Wmissing-braces"
9006
9007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9008$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9009		cacheid=xorg_cv_cc_flag__Wmissing_braces
9010		if eval \${$cacheid+:} false; then :
9011  $as_echo_n "(cached) " >&6
9012else
9013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014/* end confdefs.h.  */
9015int i;
9016int
9017main ()
9018{
9019
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024if ac_fn_c_try_link "$LINENO"; then :
9025  eval $cacheid=yes
9026else
9027  eval $cacheid=no
9028fi
9029rm -f core conftest.err conftest.$ac_objext \
9030    conftest$ac_exeext conftest.$ac_ext
9031fi
9032
9033
9034		CFLAGS="$xorg_testset_save_CFLAGS"
9035
9036		eval supported=\$$cacheid
9037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9038$as_echo "$supported" >&6; }
9039		if test "$supported" = "yes" ; then
9040			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9041			found="yes"
9042		fi
9043	fi
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059xorg_testset_save_CFLAGS="$CFLAGS"
9060
9061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9066  $as_echo_n "(cached) " >&6
9067else
9068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h.  */
9070int i;
9071_ACEOF
9072if ac_fn_c_try_compile "$LINENO"; then :
9073  xorg_cv_cc_flag_unknown_warning_option=yes
9074else
9075  xorg_cv_cc_flag_unknown_warning_option=no
9076fi
9077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9082	CFLAGS="$xorg_testset_save_CFLAGS"
9083fi
9084
9085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088	fi
9089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9093  $as_echo_n "(cached) " >&6
9094else
9095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096/* end confdefs.h.  */
9097int i;
9098_ACEOF
9099if ac_fn_c_try_compile "$LINENO"; then :
9100  xorg_cv_cc_flag_unused_command_line_argument=yes
9101else
9102  xorg_cv_cc_flag_unused_command_line_argument=no
9103fi
9104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9109	CFLAGS="$xorg_testset_save_CFLAGS"
9110fi
9111
9112found="no"
9113
9114	if test $found = "no" ; then
9115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9117		fi
9118
9119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9121		fi
9122
9123		CFLAGS="$CFLAGS -Wsequence-point"
9124
9125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9126$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9127		cacheid=xorg_cv_cc_flag__Wsequence_point
9128		if eval \${$cacheid+:} false; then :
9129  $as_echo_n "(cached) " >&6
9130else
9131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h.  */
9133int i;
9134int
9135main ()
9136{
9137
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142if ac_fn_c_try_link "$LINENO"; then :
9143  eval $cacheid=yes
9144else
9145  eval $cacheid=no
9146fi
9147rm -f core conftest.err conftest.$ac_objext \
9148    conftest$ac_exeext conftest.$ac_ext
9149fi
9150
9151
9152		CFLAGS="$xorg_testset_save_CFLAGS"
9153
9154		eval supported=\$$cacheid
9155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9156$as_echo "$supported" >&6; }
9157		if test "$supported" = "yes" ; then
9158			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9159			found="yes"
9160		fi
9161	fi
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177xorg_testset_save_CFLAGS="$CFLAGS"
9178
9179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9184  $as_echo_n "(cached) " >&6
9185else
9186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h.  */
9188int i;
9189_ACEOF
9190if ac_fn_c_try_compile "$LINENO"; then :
9191  xorg_cv_cc_flag_unknown_warning_option=yes
9192else
9193  xorg_cv_cc_flag_unknown_warning_option=no
9194fi
9195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9196fi
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9200	CFLAGS="$xorg_testset_save_CFLAGS"
9201fi
9202
9203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206	fi
9207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9211  $as_echo_n "(cached) " >&6
9212else
9213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214/* end confdefs.h.  */
9215int i;
9216_ACEOF
9217if ac_fn_c_try_compile "$LINENO"; then :
9218  xorg_cv_cc_flag_unused_command_line_argument=yes
9219else
9220  xorg_cv_cc_flag_unused_command_line_argument=no
9221fi
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223fi
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9227	CFLAGS="$xorg_testset_save_CFLAGS"
9228fi
9229
9230found="no"
9231
9232	if test $found = "no" ; then
9233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9235		fi
9236
9237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9239		fi
9240
9241		CFLAGS="$CFLAGS -Wreturn-type"
9242
9243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9244$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9245		cacheid=xorg_cv_cc_flag__Wreturn_type
9246		if eval \${$cacheid+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251int i;
9252int
9253main ()
9254{
9255
9256  ;
9257  return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"; then :
9261  eval $cacheid=yes
9262else
9263  eval $cacheid=no
9264fi
9265rm -f core conftest.err conftest.$ac_objext \
9266    conftest$ac_exeext conftest.$ac_ext
9267fi
9268
9269
9270		CFLAGS="$xorg_testset_save_CFLAGS"
9271
9272		eval supported=\$$cacheid
9273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9274$as_echo "$supported" >&6; }
9275		if test "$supported" = "yes" ; then
9276			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9277			found="yes"
9278		fi
9279	fi
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295xorg_testset_save_CFLAGS="$CFLAGS"
9296
9297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9302  $as_echo_n "(cached) " >&6
9303else
9304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307_ACEOF
9308if ac_fn_c_try_compile "$LINENO"; then :
9309  xorg_cv_cc_flag_unknown_warning_option=yes
9310else
9311  xorg_cv_cc_flag_unknown_warning_option=no
9312fi
9313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9314fi
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9318	CFLAGS="$xorg_testset_save_CFLAGS"
9319fi
9320
9321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	fi
9325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9329  $as_echo_n "(cached) " >&6
9330else
9331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h.  */
9333int i;
9334_ACEOF
9335if ac_fn_c_try_compile "$LINENO"; then :
9336  xorg_cv_cc_flag_unused_command_line_argument=yes
9337else
9338  xorg_cv_cc_flag_unused_command_line_argument=no
9339fi
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341fi
9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9345	CFLAGS="$xorg_testset_save_CFLAGS"
9346fi
9347
9348found="no"
9349
9350	if test $found = "no" ; then
9351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353		fi
9354
9355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357		fi
9358
9359		CFLAGS="$CFLAGS -Wtrigraphs"
9360
9361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9362$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9363		cacheid=xorg_cv_cc_flag__Wtrigraphs
9364		if eval \${$cacheid+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368/* end confdefs.h.  */
9369int i;
9370int
9371main ()
9372{
9373
9374  ;
9375  return 0;
9376}
9377_ACEOF
9378if ac_fn_c_try_link "$LINENO"; then :
9379  eval $cacheid=yes
9380else
9381  eval $cacheid=no
9382fi
9383rm -f core conftest.err conftest.$ac_objext \
9384    conftest$ac_exeext conftest.$ac_ext
9385fi
9386
9387
9388		CFLAGS="$xorg_testset_save_CFLAGS"
9389
9390		eval supported=\$$cacheid
9391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9392$as_echo "$supported" >&6; }
9393		if test "$supported" = "yes" ; then
9394			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9395			found="yes"
9396		fi
9397	fi
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413xorg_testset_save_CFLAGS="$CFLAGS"
9414
9415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423/* end confdefs.h.  */
9424int i;
9425_ACEOF
9426if ac_fn_c_try_compile "$LINENO"; then :
9427  xorg_cv_cc_flag_unknown_warning_option=yes
9428else
9429  xorg_cv_cc_flag_unknown_warning_option=no
9430fi
9431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432fi
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9436	CFLAGS="$xorg_testset_save_CFLAGS"
9437fi
9438
9439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	fi
9443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9447  $as_echo_n "(cached) " >&6
9448else
9449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450/* end confdefs.h.  */
9451int i;
9452_ACEOF
9453if ac_fn_c_try_compile "$LINENO"; then :
9454  xorg_cv_cc_flag_unused_command_line_argument=yes
9455else
9456  xorg_cv_cc_flag_unused_command_line_argument=no
9457fi
9458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9463	CFLAGS="$xorg_testset_save_CFLAGS"
9464fi
9465
9466found="no"
9467
9468	if test $found = "no" ; then
9469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9471		fi
9472
9473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9475		fi
9476
9477		CFLAGS="$CFLAGS -Warray-bounds"
9478
9479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9480$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9481		cacheid=xorg_cv_cc_flag__Warray_bounds
9482		if eval \${$cacheid+:} false; then :
9483  $as_echo_n "(cached) " >&6
9484else
9485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486/* end confdefs.h.  */
9487int i;
9488int
9489main ()
9490{
9491
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_link "$LINENO"; then :
9497  eval $cacheid=yes
9498else
9499  eval $cacheid=no
9500fi
9501rm -f core conftest.err conftest.$ac_objext \
9502    conftest$ac_exeext conftest.$ac_ext
9503fi
9504
9505
9506		CFLAGS="$xorg_testset_save_CFLAGS"
9507
9508		eval supported=\$$cacheid
9509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9510$as_echo "$supported" >&6; }
9511		if test "$supported" = "yes" ; then
9512			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9513			found="yes"
9514		fi
9515	fi
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531xorg_testset_save_CFLAGS="$CFLAGS"
9532
9533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9534	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9536$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9537if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9538  $as_echo_n "(cached) " >&6
9539else
9540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542int i;
9543_ACEOF
9544if ac_fn_c_try_compile "$LINENO"; then :
9545  xorg_cv_cc_flag_unknown_warning_option=yes
9546else
9547  xorg_cv_cc_flag_unknown_warning_option=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9552$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9554	CFLAGS="$xorg_testset_save_CFLAGS"
9555fi
9556
9557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	fi
9561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9563$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9564if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9565  $as_echo_n "(cached) " >&6
9566else
9567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568/* end confdefs.h.  */
9569int i;
9570_ACEOF
9571if ac_fn_c_try_compile "$LINENO"; then :
9572  xorg_cv_cc_flag_unused_command_line_argument=yes
9573else
9574  xorg_cv_cc_flag_unused_command_line_argument=no
9575fi
9576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577fi
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9579$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9581	CFLAGS="$xorg_testset_save_CFLAGS"
9582fi
9583
9584found="no"
9585
9586	if test $found = "no" ; then
9587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9589		fi
9590
9591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9593		fi
9594
9595		CFLAGS="$CFLAGS -Wwrite-strings"
9596
9597		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9598$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9599		cacheid=xorg_cv_cc_flag__Wwrite_strings
9600		if eval \${$cacheid+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604/* end confdefs.h.  */
9605int i;
9606int
9607main ()
9608{
9609
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614if ac_fn_c_try_link "$LINENO"; then :
9615  eval $cacheid=yes
9616else
9617  eval $cacheid=no
9618fi
9619rm -f core conftest.err conftest.$ac_objext \
9620    conftest$ac_exeext conftest.$ac_ext
9621fi
9622
9623
9624		CFLAGS="$xorg_testset_save_CFLAGS"
9625
9626		eval supported=\$$cacheid
9627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9628$as_echo "$supported" >&6; }
9629		if test "$supported" = "yes" ; then
9630			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9631			found="yes"
9632		fi
9633	fi
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649xorg_testset_save_CFLAGS="$CFLAGS"
9650
9651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9656  $as_echo_n "(cached) " >&6
9657else
9658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659/* end confdefs.h.  */
9660int i;
9661_ACEOF
9662if ac_fn_c_try_compile "$LINENO"; then :
9663  xorg_cv_cc_flag_unknown_warning_option=yes
9664else
9665  xorg_cv_cc_flag_unknown_warning_option=no
9666fi
9667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9672	CFLAGS="$xorg_testset_save_CFLAGS"
9673fi
9674
9675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678	fi
9679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9683  $as_echo_n "(cached) " >&6
9684else
9685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h.  */
9687int i;
9688_ACEOF
9689if ac_fn_c_try_compile "$LINENO"; then :
9690  xorg_cv_cc_flag_unused_command_line_argument=yes
9691else
9692  xorg_cv_cc_flag_unused_command_line_argument=no
9693fi
9694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9699	CFLAGS="$xorg_testset_save_CFLAGS"
9700fi
9701
9702found="no"
9703
9704	if test $found = "no" ; then
9705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707		fi
9708
9709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9711		fi
9712
9713		CFLAGS="$CFLAGS -Waddress"
9714
9715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9716$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9717		cacheid=xorg_cv_cc_flag__Waddress
9718		if eval \${$cacheid+:} false; then :
9719  $as_echo_n "(cached) " >&6
9720else
9721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h.  */
9723int i;
9724int
9725main ()
9726{
9727
9728  ;
9729  return 0;
9730}
9731_ACEOF
9732if ac_fn_c_try_link "$LINENO"; then :
9733  eval $cacheid=yes
9734else
9735  eval $cacheid=no
9736fi
9737rm -f core conftest.err conftest.$ac_objext \
9738    conftest$ac_exeext conftest.$ac_ext
9739fi
9740
9741
9742		CFLAGS="$xorg_testset_save_CFLAGS"
9743
9744		eval supported=\$$cacheid
9745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9746$as_echo "$supported" >&6; }
9747		if test "$supported" = "yes" ; then
9748			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9749			found="yes"
9750		fi
9751	fi
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767xorg_testset_save_CFLAGS="$CFLAGS"
9768
9769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9774  $as_echo_n "(cached) " >&6
9775else
9776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777/* end confdefs.h.  */
9778int i;
9779_ACEOF
9780if ac_fn_c_try_compile "$LINENO"; then :
9781  xorg_cv_cc_flag_unknown_warning_option=yes
9782else
9783  xorg_cv_cc_flag_unknown_warning_option=no
9784fi
9785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786fi
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9790	CFLAGS="$xorg_testset_save_CFLAGS"
9791fi
9792
9793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796	fi
9797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9801  $as_echo_n "(cached) " >&6
9802else
9803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804/* end confdefs.h.  */
9805int i;
9806_ACEOF
9807if ac_fn_c_try_compile "$LINENO"; then :
9808  xorg_cv_cc_flag_unused_command_line_argument=yes
9809else
9810  xorg_cv_cc_flag_unused_command_line_argument=no
9811fi
9812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813fi
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9817	CFLAGS="$xorg_testset_save_CFLAGS"
9818fi
9819
9820found="no"
9821
9822	if test $found = "no" ; then
9823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9825		fi
9826
9827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9829		fi
9830
9831		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9832
9833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9834$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9835		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9836		if eval \${$cacheid+:} false; then :
9837  $as_echo_n "(cached) " >&6
9838else
9839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840/* end confdefs.h.  */
9841int i;
9842int
9843main ()
9844{
9845
9846  ;
9847  return 0;
9848}
9849_ACEOF
9850if ac_fn_c_try_link "$LINENO"; then :
9851  eval $cacheid=yes
9852else
9853  eval $cacheid=no
9854fi
9855rm -f core conftest.err conftest.$ac_objext \
9856    conftest$ac_exeext conftest.$ac_ext
9857fi
9858
9859
9860		CFLAGS="$xorg_testset_save_CFLAGS"
9861
9862		eval supported=\$$cacheid
9863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9864$as_echo "$supported" >&6; }
9865		if test "$supported" = "yes" ; then
9866			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9867			found="yes"
9868		fi
9869	fi
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885xorg_testset_save_CFLAGS="$CFLAGS"
9886
9887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9892  $as_echo_n "(cached) " >&6
9893else
9894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h.  */
9896int i;
9897_ACEOF
9898if ac_fn_c_try_compile "$LINENO"; then :
9899  xorg_cv_cc_flag_unknown_warning_option=yes
9900else
9901  xorg_cv_cc_flag_unknown_warning_option=no
9902fi
9903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9908	CFLAGS="$xorg_testset_save_CFLAGS"
9909fi
9910
9911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914	fi
9915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9919  $as_echo_n "(cached) " >&6
9920else
9921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922/* end confdefs.h.  */
9923int i;
9924_ACEOF
9925if ac_fn_c_try_compile "$LINENO"; then :
9926  xorg_cv_cc_flag_unused_command_line_argument=yes
9927else
9928  xorg_cv_cc_flag_unused_command_line_argument=no
9929fi
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9935	CFLAGS="$xorg_testset_save_CFLAGS"
9936fi
9937
9938found="no"
9939
9940	if test $found = "no" ; then
9941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943		fi
9944
9945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9947		fi
9948
9949		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9950
9951		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9952$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9953		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9954		if eval \${$cacheid+:} false; then :
9955  $as_echo_n "(cached) " >&6
9956else
9957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958/* end confdefs.h.  */
9959int i;
9960int
9961main ()
9962{
9963
9964  ;
9965  return 0;
9966}
9967_ACEOF
9968if ac_fn_c_try_link "$LINENO"; then :
9969  eval $cacheid=yes
9970else
9971  eval $cacheid=no
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974    conftest$ac_exeext conftest.$ac_ext
9975fi
9976
9977
9978		CFLAGS="$xorg_testset_save_CFLAGS"
9979
9980		eval supported=\$$cacheid
9981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9982$as_echo "$supported" >&6; }
9983		if test "$supported" = "yes" ; then
9984			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9985			found="yes"
9986		fi
9987	fi
9988
9989
9990fi
9991
9992
9993
9994
9995
9996
9997
9998		CWARNFLAGS="$BASE_CFLAGS"
9999		if  test "x$GCC" = xyes ; then
10000		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10001		fi
10002
10003
10004
10005
10006
10007
10008
10009
10010# Check whether --enable-strict-compilation was given.
10011if test "${enable_strict_compilation+set}" = set; then :
10012  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10013else
10014  STRICT_COMPILE=no
10015fi
10016
10017
10018
10019
10020
10021
10022STRICT_CFLAGS=""
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036xorg_testset_save_CFLAGS="$CFLAGS"
10037
10038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10043  $as_echo_n "(cached) " >&6
10044else
10045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h.  */
10047int i;
10048_ACEOF
10049if ac_fn_c_try_compile "$LINENO"; then :
10050  xorg_cv_cc_flag_unknown_warning_option=yes
10051else
10052  xorg_cv_cc_flag_unknown_warning_option=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059	CFLAGS="$xorg_testset_save_CFLAGS"
10060fi
10061
10062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065	fi
10066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10070  $as_echo_n "(cached) " >&6
10071else
10072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h.  */
10074int i;
10075_ACEOF
10076if ac_fn_c_try_compile "$LINENO"; then :
10077  xorg_cv_cc_flag_unused_command_line_argument=yes
10078else
10079  xorg_cv_cc_flag_unused_command_line_argument=no
10080fi
10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10086	CFLAGS="$xorg_testset_save_CFLAGS"
10087fi
10088
10089found="no"
10090
10091	if test $found = "no" ; then
10092		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094		fi
10095
10096		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10098		fi
10099
10100		CFLAGS="$CFLAGS -pedantic"
10101
10102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10103$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10104		cacheid=xorg_cv_cc_flag__pedantic
10105		if eval \${$cacheid+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111int
10112main ()
10113{
10114
10115  ;
10116  return 0;
10117}
10118_ACEOF
10119if ac_fn_c_try_link "$LINENO"; then :
10120  eval $cacheid=yes
10121else
10122  eval $cacheid=no
10123fi
10124rm -f core conftest.err conftest.$ac_objext \
10125    conftest$ac_exeext conftest.$ac_ext
10126fi
10127
10128
10129		CFLAGS="$xorg_testset_save_CFLAGS"
10130
10131		eval supported=\$$cacheid
10132		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10133$as_echo "$supported" >&6; }
10134		if test "$supported" = "yes" ; then
10135			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10136			found="yes"
10137		fi
10138	fi
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154xorg_testset_save_CFLAGS="$CFLAGS"
10155
10156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10161  $as_echo_n "(cached) " >&6
10162else
10163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h.  */
10165int i;
10166_ACEOF
10167if ac_fn_c_try_compile "$LINENO"; then :
10168  xorg_cv_cc_flag_unknown_warning_option=yes
10169else
10170  xorg_cv_cc_flag_unknown_warning_option=no
10171fi
10172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10176	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10177	CFLAGS="$xorg_testset_save_CFLAGS"
10178fi
10179
10180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10181	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10182		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10183	fi
10184	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h.  */
10192int i;
10193_ACEOF
10194if ac_fn_c_try_compile "$LINENO"; then :
10195  xorg_cv_cc_flag_unused_command_line_argument=yes
10196else
10197  xorg_cv_cc_flag_unused_command_line_argument=no
10198fi
10199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200fi
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10203	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10204	CFLAGS="$xorg_testset_save_CFLAGS"
10205fi
10206
10207found="no"
10208
10209	if test $found = "no" ; then
10210		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10211			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10212		fi
10213
10214		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10215			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10216		fi
10217
10218		CFLAGS="$CFLAGS -Werror"
10219
10220		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10221$as_echo_n "checking if $CC supports -Werror... " >&6; }
10222		cacheid=xorg_cv_cc_flag__Werror
10223		if eval \${$cacheid+:} false; then :
10224  $as_echo_n "(cached) " >&6
10225else
10226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227/* end confdefs.h.  */
10228int i;
10229int
10230main ()
10231{
10232
10233  ;
10234  return 0;
10235}
10236_ACEOF
10237if ac_fn_c_try_link "$LINENO"; then :
10238  eval $cacheid=yes
10239else
10240  eval $cacheid=no
10241fi
10242rm -f core conftest.err conftest.$ac_objext \
10243    conftest$ac_exeext conftest.$ac_ext
10244fi
10245
10246
10247		CFLAGS="$xorg_testset_save_CFLAGS"
10248
10249		eval supported=\$$cacheid
10250		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10251$as_echo "$supported" >&6; }
10252		if test "$supported" = "yes" ; then
10253			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10254			found="yes"
10255		fi
10256	fi
10257
10258	if test $found = "no" ; then
10259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261		fi
10262
10263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10265		fi
10266
10267		CFLAGS="$CFLAGS -errwarn"
10268
10269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10270$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10271		cacheid=xorg_cv_cc_flag__errwarn
10272		if eval \${$cacheid+:} false; then :
10273  $as_echo_n "(cached) " >&6
10274else
10275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276/* end confdefs.h.  */
10277int i;
10278int
10279main ()
10280{
10281
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"; then :
10287  eval $cacheid=yes
10288else
10289  eval $cacheid=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext \
10292    conftest$ac_exeext conftest.$ac_ext
10293fi
10294
10295
10296		CFLAGS="$xorg_testset_save_CFLAGS"
10297
10298		eval supported=\$$cacheid
10299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10300$as_echo "$supported" >&6; }
10301		if test "$supported" = "yes" ; then
10302			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10303			found="yes"
10304		fi
10305	fi
10306
10307
10308
10309# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10310# activate it with -Werror, so we add it here explicitly.
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324xorg_testset_save_CFLAGS="$CFLAGS"
10325
10326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10331  $as_echo_n "(cached) " >&6
10332else
10333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h.  */
10335int i;
10336_ACEOF
10337if ac_fn_c_try_compile "$LINENO"; then :
10338  xorg_cv_cc_flag_unknown_warning_option=yes
10339else
10340  xorg_cv_cc_flag_unknown_warning_option=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10343fi
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10347	CFLAGS="$xorg_testset_save_CFLAGS"
10348fi
10349
10350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353	fi
10354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10358  $as_echo_n "(cached) " >&6
10359else
10360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h.  */
10362int i;
10363_ACEOF
10364if ac_fn_c_try_compile "$LINENO"; then :
10365  xorg_cv_cc_flag_unused_command_line_argument=yes
10366else
10367  xorg_cv_cc_flag_unused_command_line_argument=no
10368fi
10369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370fi
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10374	CFLAGS="$xorg_testset_save_CFLAGS"
10375fi
10376
10377found="no"
10378
10379	if test $found = "no" ; then
10380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10382		fi
10383
10384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10386		fi
10387
10388		CFLAGS="$CFLAGS -Werror=attributes"
10389
10390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10391$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10392		cacheid=xorg_cv_cc_flag__Werror_attributes
10393		if eval \${$cacheid+:} false; then :
10394  $as_echo_n "(cached) " >&6
10395else
10396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h.  */
10398int i;
10399int
10400main ()
10401{
10402
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407if ac_fn_c_try_link "$LINENO"; then :
10408  eval $cacheid=yes
10409else
10410  eval $cacheid=no
10411fi
10412rm -f core conftest.err conftest.$ac_objext \
10413    conftest$ac_exeext conftest.$ac_ext
10414fi
10415
10416
10417		CFLAGS="$xorg_testset_save_CFLAGS"
10418
10419		eval supported=\$$cacheid
10420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10421$as_echo "$supported" >&6; }
10422		if test "$supported" = "yes" ; then
10423			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10424			found="yes"
10425		fi
10426	fi
10427
10428
10429
10430if test "x$STRICT_COMPILE" = "xyes"; then
10431    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10432    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10433fi
10434
10435
10436
10437
10438
10439
10440cat >>confdefs.h <<_ACEOF
10441#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10442_ACEOF
10443
10444	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10445	if test "x$PVM" = "x"; then
10446		PVM="0"
10447	fi
10448
10449cat >>confdefs.h <<_ACEOF
10450#define PACKAGE_VERSION_MINOR $PVM
10451_ACEOF
10452
10453	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10454	if test "x$PVP" = "x"; then
10455		PVP="0"
10456	fi
10457
10458cat >>confdefs.h <<_ACEOF
10459#define PACKAGE_VERSION_PATCHLEVEL $PVP
10460_ACEOF
10461
10462
10463
10464CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10465mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10466|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10467echo 'git directory not found: installing possibly empty changelog.' >&2)"
10468
10469
10470
10471
10472macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10473INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10474mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10475|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10476echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10477
10478
10479
10480
10481
10482
10483if test x$APP_MAN_SUFFIX = x    ; then
10484    APP_MAN_SUFFIX=1
10485fi
10486if test x$APP_MAN_DIR = x    ; then
10487    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10488fi
10489
10490if test x$LIB_MAN_SUFFIX = x    ; then
10491    LIB_MAN_SUFFIX=3
10492fi
10493if test x$LIB_MAN_DIR = x    ; then
10494    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10495fi
10496
10497if test x$FILE_MAN_SUFFIX = x    ; then
10498    case $host_os in
10499	solaris*)	FILE_MAN_SUFFIX=4  ;;
10500	*)		FILE_MAN_SUFFIX=5  ;;
10501    esac
10502fi
10503if test x$FILE_MAN_DIR = x    ; then
10504    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10505fi
10506
10507if test x$MISC_MAN_SUFFIX = x    ; then
10508    case $host_os in
10509	solaris*)	MISC_MAN_SUFFIX=5  ;;
10510	*)		MISC_MAN_SUFFIX=7  ;;
10511    esac
10512fi
10513if test x$MISC_MAN_DIR = x    ; then
10514    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10515fi
10516
10517if test x$DRIVER_MAN_SUFFIX = x    ; then
10518    case $host_os in
10519	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10520	*)		DRIVER_MAN_SUFFIX=4  ;;
10521    esac
10522fi
10523if test x$DRIVER_MAN_DIR = x    ; then
10524    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10525fi
10526
10527if test x$ADMIN_MAN_SUFFIX = x    ; then
10528    case $host_os in
10529	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10530	*)		ADMIN_MAN_SUFFIX=8  ;;
10531    esac
10532fi
10533if test x$ADMIN_MAN_DIR = x    ; then
10534    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10535fi
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551XORG_MAN_PAGE="X Version 11"
10552
10553MAN_SUBSTS="\
10554	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10555	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10556	-e 's|__xservername__|Xorg|g' \
10557	-e 's|__xconfigfile__|xorg.conf|g' \
10558	-e 's|__projectroot__|\$(prefix)|g' \
10559	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10560	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10561	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10562	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10563	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10564	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10565	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10566
10567
10568
10569# Check whether --enable-silent-rules was given.
10570if test "${enable_silent_rules+set}" = set; then :
10571  enableval=$enable_silent_rules;
10572fi
10573
10574case $enable_silent_rules in # (((
10575  yes) AM_DEFAULT_VERBOSITY=0;;
10576   no) AM_DEFAULT_VERBOSITY=1;;
10577    *) AM_DEFAULT_VERBOSITY=0;;
10578esac
10579am_make=${MAKE-make}
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10581$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10582if ${am_cv_make_support_nested_variables+:} false; then :
10583  $as_echo_n "(cached) " >&6
10584else
10585  if $as_echo 'TRUE=$(BAR$(V))
10586BAR0=false
10587BAR1=true
10588V=1
10589am__doit:
10590	@$(TRUE)
10591.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10592  am_cv_make_support_nested_variables=yes
10593else
10594  am_cv_make_support_nested_variables=no
10595fi
10596fi
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10598$as_echo "$am_cv_make_support_nested_variables" >&6; }
10599if test $am_cv_make_support_nested_variables = yes; then
10600    AM_V='$(V)'
10601  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10602else
10603  AM_V=$AM_DEFAULT_VERBOSITY
10604  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10605fi
10606AM_BACKSLASH='\'
10607
10608
10609
10610for ac_prog in flex lex
10611do
10612  # Extract the first word of "$ac_prog", so it can be a program name with args.
10613set dummy $ac_prog; ac_word=$2
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615$as_echo_n "checking for $ac_word... " >&6; }
10616if ${ac_cv_prog_LEX+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  if test -n "$LEX"; then
10620  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10621else
10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625  IFS=$as_save_IFS
10626  test -z "$as_dir" && as_dir=.
10627    for ac_exec_ext in '' $ac_executable_extensions; do
10628  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629    ac_cv_prog_LEX="$ac_prog"
10630    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10631    break 2
10632  fi
10633done
10634  done
10635IFS=$as_save_IFS
10636
10637fi
10638fi
10639LEX=$ac_cv_prog_LEX
10640if test -n "$LEX"; then
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10642$as_echo "$LEX" >&6; }
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
10646fi
10647
10648
10649  test -n "$LEX" && break
10650done
10651test -n "$LEX" || LEX=":"
10652
10653if test "x$LEX" != "x:"; then
10654  cat >conftest.l <<_ACEOF
10655%%
10656a { ECHO; }
10657b { REJECT; }
10658c { yymore (); }
10659d { yyless (1); }
10660e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
10661    yyless ((input () != 0)); }
10662f { unput (yytext[0]); }
10663. { BEGIN INITIAL; }
10664%%
10665#ifdef YYTEXT_POINTER
10666extern char *yytext;
10667#endif
10668int
10669main (void)
10670{
10671  return ! yylex () + ! yywrap ();
10672}
10673_ACEOF
10674{ { ac_try="$LEX conftest.l"
10675case "(($ac_try" in
10676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677  *) ac_try_echo=$ac_try;;
10678esac
10679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10680$as_echo "$ac_try_echo"; } >&5
10681  (eval "$LEX conftest.l") 2>&5
10682  ac_status=$?
10683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684  test $ac_status = 0; }
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10686$as_echo_n "checking lex output file root... " >&6; }
10687if ${ac_cv_prog_lex_root+:} false; then :
10688  $as_echo_n "(cached) " >&6
10689else
10690
10691if test -f lex.yy.c; then
10692  ac_cv_prog_lex_root=lex.yy
10693elif test -f lexyy.c; then
10694  ac_cv_prog_lex_root=lexyy
10695else
10696  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
10697fi
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10700$as_echo "$ac_cv_prog_lex_root" >&6; }
10701LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10702
10703if test -z "${LEXLIB+set}"; then
10704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
10705$as_echo_n "checking lex library... " >&6; }
10706if ${ac_cv_lib_lex+:} false; then :
10707  $as_echo_n "(cached) " >&6
10708else
10709
10710    ac_save_LIBS=$LIBS
10711    ac_cv_lib_lex='none needed'
10712    for ac_lib in '' -lfl -ll; do
10713      LIBS="$ac_lib $ac_save_LIBS"
10714      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715/* end confdefs.h.  */
10716`cat $LEX_OUTPUT_ROOT.c`
10717_ACEOF
10718if ac_fn_c_try_link "$LINENO"; then :
10719  ac_cv_lib_lex=$ac_lib
10720fi
10721rm -f core conftest.err conftest.$ac_objext \
10722    conftest$ac_exeext conftest.$ac_ext
10723      test "$ac_cv_lib_lex" != 'none needed' && break
10724    done
10725    LIBS=$ac_save_LIBS
10726
10727fi
10728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
10729$as_echo "$ac_cv_lib_lex" >&6; }
10730  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10731fi
10732
10733
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
10735$as_echo_n "checking whether yytext is a pointer... " >&6; }
10736if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
10737  $as_echo_n "(cached) " >&6
10738else
10739  # POSIX says lex can declare yytext either as a pointer or an array; the
10740# default is implementation-dependent.  Figure out which it is, since
10741# not all implementations provide the %pointer and %array declarations.
10742ac_cv_prog_lex_yytext_pointer=no
10743ac_save_LIBS=$LIBS
10744LIBS="$LEXLIB $ac_save_LIBS"
10745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746/* end confdefs.h.  */
10747
10748  #define YYTEXT_POINTER 1
10749`cat $LEX_OUTPUT_ROOT.c`
10750_ACEOF
10751if ac_fn_c_try_link "$LINENO"; then :
10752  ac_cv_prog_lex_yytext_pointer=yes
10753fi
10754rm -f core conftest.err conftest.$ac_objext \
10755    conftest$ac_exeext conftest.$ac_ext
10756LIBS=$ac_save_LIBS
10757
10758fi
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
10760$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10761if test $ac_cv_prog_lex_yytext_pointer = yes; then
10762
10763$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
10764
10765fi
10766rm -f conftest.l $LEX_OUTPUT_ROOT.c
10767
10768fi
10769for ac_prog in 'bison -y' byacc
10770do
10771  # Extract the first word of "$ac_prog", so it can be a program name with args.
10772set dummy $ac_prog; ac_word=$2
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774$as_echo_n "checking for $ac_word... " >&6; }
10775if ${ac_cv_prog_YACC+:} false; then :
10776  $as_echo_n "(cached) " >&6
10777else
10778  if test -n "$YACC"; then
10779  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10780else
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784  IFS=$as_save_IFS
10785  test -z "$as_dir" && as_dir=.
10786    for ac_exec_ext in '' $ac_executable_extensions; do
10787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788    ac_cv_prog_YACC="$ac_prog"
10789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790    break 2
10791  fi
10792done
10793  done
10794IFS=$as_save_IFS
10795
10796fi
10797fi
10798YACC=$ac_cv_prog_YACC
10799if test -n "$YACC"; then
10800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10801$as_echo "$YACC" >&6; }
10802else
10803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
10805fi
10806
10807
10808  test -n "$YACC" && break
10809done
10810test -n "$YACC" || YACC="yacc"
10811
10812# Extract the first word of "$YACC", so it can be a program name with args.
10813set dummy $YACC; ac_word=$2
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815$as_echo_n "checking for $ac_word... " >&6; }
10816if ${ac_cv_path_YACC_INST+:} false; then :
10817  $as_echo_n "(cached) " >&6
10818else
10819  case $YACC_INST in
10820  [\\/]* | ?:[\\/]*)
10821  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10822  ;;
10823  *)
10824  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10825for as_dir in $PATH
10826do
10827  IFS=$as_save_IFS
10828  test -z "$as_dir" && as_dir=.
10829    for ac_exec_ext in '' $ac_executable_extensions; do
10830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10831    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10833    break 2
10834  fi
10835done
10836  done
10837IFS=$as_save_IFS
10838
10839  ;;
10840esac
10841fi
10842YACC_INST=$ac_cv_path_YACC_INST
10843if test -n "$YACC_INST"; then
10844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10845$as_echo "$YACC_INST" >&6; }
10846else
10847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
10849fi
10850
10851
10852if ! test -f "$srcdir/gram.c"; then
10853   if test -z "$YACC_INST"; then
10854      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10855   fi
10856fi
10857
10858
10859pkg_failed=no
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGC" >&5
10861$as_echo_n "checking for XGC... " >&6; }
10862
10863if test -n "$XGC_CFLAGS"; then
10864    pkg_cv_XGC_CFLAGS="$XGC_CFLAGS"
10865 elif test -n "$PKG_CONFIG"; then
10866    if test -n "$PKG_CONFIG" && \
10867    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
10868  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
10869  ac_status=$?
10870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871  test $ac_status = 0; }; then
10872  pkg_cv_XGC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt" 2>/dev/null`
10873else
10874  pkg_failed=yes
10875fi
10876 else
10877    pkg_failed=untried
10878fi
10879if test -n "$XGC_LIBS"; then
10880    pkg_cv_XGC_LIBS="$XGC_LIBS"
10881 elif test -n "$PKG_CONFIG"; then
10882    if test -n "$PKG_CONFIG" && \
10883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
10884  ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
10885  ac_status=$?
10886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10887  test $ac_status = 0; }; then
10888  pkg_cv_XGC_LIBS=`$PKG_CONFIG --libs "xaw7 xt" 2>/dev/null`
10889else
10890  pkg_failed=yes
10891fi
10892 else
10893    pkg_failed=untried
10894fi
10895
10896
10897
10898if test $pkg_failed = yes; then
10899
10900if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10901        _pkg_short_errors_supported=yes
10902else
10903        _pkg_short_errors_supported=no
10904fi
10905        if test $_pkg_short_errors_supported = yes; then
10906	        XGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xaw7 xt" 2>&1`
10907        else
10908	        XGC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xaw7 xt" 2>&1`
10909        fi
10910	# Put the nasty error message in config.log where it belongs
10911	echo "$XGC_PKG_ERRORS" >&5
10912
10913	as_fn_error $? "Package requirements (xaw7 xt) were not met:
10914
10915$XGC_PKG_ERRORS
10916
10917Consider adjusting the PKG_CONFIG_PATH environment variable if you
10918installed software in a non-standard prefix.
10919
10920Alternatively, you may set the environment variables XGC_CFLAGS
10921and XGC_LIBS to avoid the need to call pkg-config.
10922See the pkg-config man page for more details.
10923" "$LINENO" 5
10924elif test $pkg_failed = untried; then
10925	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10927as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10928is in your PATH or set the PKG_CONFIG environment variable to the full
10929path to pkg-config.
10930
10931Alternatively, you may set the environment variables XGC_CFLAGS
10932and XGC_LIBS to avoid the need to call pkg-config.
10933See the pkg-config man page for more details.
10934
10935To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10936See \`config.log' for more details" "$LINENO" 5; }
10937else
10938	XGC_CFLAGS=$pkg_cv_XGC_CFLAGS
10939	XGC_LIBS=$pkg_cv_XGC_LIBS
10940        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10941$as_echo "yes" >&6; }
10942	:
10943fi
10944xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10945
10946# Check whether --with-appdefaultdir was given.
10947if test "${with_appdefaultdir+set}" = set; then :
10948  withval=$with_appdefaultdir; appdefaultdir="$withval"
10949else
10950  appdefaultdir="${xt_appdefaultdir}"
10951fi
10952
10953
10954
10955ac_config_files="$ac_config_files Makefile man/Makefile"
10956
10957cat >confcache <<\_ACEOF
10958# This file is a shell script that caches the results of configure
10959# tests run on this system so they can be shared between configure
10960# scripts and configure runs, see configure's option --config-cache.
10961# It is not useful on other systems.  If it contains results you don't
10962# want to keep, you may remove or edit it.
10963#
10964# config.status only pays attention to the cache file if you give it
10965# the --recheck option to rerun configure.
10966#
10967# `ac_cv_env_foo' variables (set or unset) will be overridden when
10968# loading this file, other *unset* `ac_cv_foo' will be assigned the
10969# following values.
10970
10971_ACEOF
10972
10973# The following way of writing the cache mishandles newlines in values,
10974# but we know of no workaround that is simple, portable, and efficient.
10975# So, we kill variables containing newlines.
10976# Ultrix sh set writes to stderr and can't be redirected directly,
10977# and sets the high bit in the cache file unless we assign to the vars.
10978(
10979  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10980    eval ac_val=\$$ac_var
10981    case $ac_val in #(
10982    *${as_nl}*)
10983      case $ac_var in #(
10984      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10985$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10986      esac
10987      case $ac_var in #(
10988      _ | IFS | as_nl) ;; #(
10989      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10990      *) { eval $ac_var=; unset $ac_var;} ;;
10991      esac ;;
10992    esac
10993  done
10994
10995  (set) 2>&1 |
10996    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10997    *${as_nl}ac_space=\ *)
10998      # `set' does not quote correctly, so add quotes: double-quote
10999      # substitution turns \\\\ into \\, and sed turns \\ into \.
11000      sed -n \
11001	"s/'/'\\\\''/g;
11002	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11003      ;; #(
11004    *)
11005      # `set' quotes correctly as required by POSIX, so do not add quotes.
11006      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11007      ;;
11008    esac |
11009    sort
11010) |
11011  sed '
11012     /^ac_cv_env_/b end
11013     t clear
11014     :clear
11015     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11016     t end
11017     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11018     :end' >>confcache
11019if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11020  if test -w "$cache_file"; then
11021    if test "x$cache_file" != "x/dev/null"; then
11022      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11023$as_echo "$as_me: updating cache $cache_file" >&6;}
11024      if test ! -f "$cache_file" || test -h "$cache_file"; then
11025	cat confcache >"$cache_file"
11026      else
11027        case $cache_file in #(
11028        */* | ?:*)
11029	  mv -f confcache "$cache_file"$$ &&
11030	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11031        *)
11032	  mv -f confcache "$cache_file" ;;
11033	esac
11034      fi
11035    fi
11036  else
11037    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11038$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11039  fi
11040fi
11041rm -f confcache
11042
11043test "x$prefix" = xNONE && prefix=$ac_default_prefix
11044# Let make expand exec_prefix.
11045test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11046
11047DEFS=-DHAVE_CONFIG_H
11048
11049ac_libobjs=
11050ac_ltlibobjs=
11051U=
11052for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11053  # 1. Remove the extension, and $U if already installed.
11054  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11055  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11056  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11057  #    will be set to the directory where LIBOBJS objects are built.
11058  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11059  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11060done
11061LIBOBJS=$ac_libobjs
11062
11063LTLIBOBJS=$ac_ltlibobjs
11064
11065
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11067$as_echo_n "checking that generated files are newer than configure... " >&6; }
11068   if test -n "$am_sleep_pid"; then
11069     # Hide warnings about reused PIDs.
11070     wait $am_sleep_pid 2>/dev/null
11071   fi
11072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11073$as_echo "done" >&6; }
11074 if test -n "$EXEEXT"; then
11075  am__EXEEXT_TRUE=
11076  am__EXEEXT_FALSE='#'
11077else
11078  am__EXEEXT_TRUE='#'
11079  am__EXEEXT_FALSE=
11080fi
11081
11082if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11083  as_fn_error $? "conditional \"AMDEP\" was never defined.
11084Usually this means the macro was only invoked conditionally." "$LINENO" 5
11085fi
11086if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11087  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11088Usually this means the macro was only invoked conditionally." "$LINENO" 5
11089fi
11090
11091: "${CONFIG_STATUS=./config.status}"
11092ac_write_fail=0
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11095{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11096$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11097as_write_fail=0
11098cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11099#! $SHELL
11100# Generated by $as_me.
11101# Run this file to recreate the current configuration.
11102# Compiler output produced by configure, useful for debugging
11103# configure, is in config.log if it exists.
11104
11105debug=false
11106ac_cs_recheck=false
11107ac_cs_silent=false
11108
11109SHELL=\${CONFIG_SHELL-$SHELL}
11110export SHELL
11111_ASEOF
11112cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11113## -------------------- ##
11114## M4sh Initialization. ##
11115## -------------------- ##
11116
11117# Be more Bourne compatible
11118DUALCASE=1; export DUALCASE # for MKS sh
11119if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11120  emulate sh
11121  NULLCMD=:
11122  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11123  # is contrary to our usage.  Disable this feature.
11124  alias -g '${1+"$@"}'='"$@"'
11125  setopt NO_GLOB_SUBST
11126else
11127  case `(set -o) 2>/dev/null` in #(
11128  *posix*) :
11129    set -o posix ;; #(
11130  *) :
11131     ;;
11132esac
11133fi
11134
11135
11136as_nl='
11137'
11138export as_nl
11139# Printing a long string crashes Solaris 7 /usr/bin/printf.
11140as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11141as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11142as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11143# Prefer a ksh shell builtin over an external printf program on Solaris,
11144# but without wasting forks for bash or zsh.
11145if test -z "$BASH_VERSION$ZSH_VERSION" \
11146    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11147  as_echo='print -r --'
11148  as_echo_n='print -rn --'
11149elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11150  as_echo='printf %s\n'
11151  as_echo_n='printf %s'
11152else
11153  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11154    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11155    as_echo_n='/usr/ucb/echo -n'
11156  else
11157    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11158    as_echo_n_body='eval
11159      arg=$1;
11160      case $arg in #(
11161      *"$as_nl"*)
11162	expr "X$arg" : "X\\(.*\\)$as_nl";
11163	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11164      esac;
11165      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11166    '
11167    export as_echo_n_body
11168    as_echo_n='sh -c $as_echo_n_body as_echo'
11169  fi
11170  export as_echo_body
11171  as_echo='sh -c $as_echo_body as_echo'
11172fi
11173
11174# The user is always right.
11175if test "${PATH_SEPARATOR+set}" != set; then
11176  PATH_SEPARATOR=:
11177  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11178    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11179      PATH_SEPARATOR=';'
11180  }
11181fi
11182
11183
11184# IFS
11185# We need space, tab and new line, in precisely that order.  Quoting is
11186# there to prevent editors from complaining about space-tab.
11187# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11188# splitting by setting IFS to empty value.)
11189IFS=" ""	$as_nl"
11190
11191# Find who we are.  Look in the path if we contain no directory separator.
11192as_myself=
11193case $0 in #((
11194  *[\\/]* ) as_myself=$0 ;;
11195  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196for as_dir in $PATH
11197do
11198  IFS=$as_save_IFS
11199  test -z "$as_dir" && as_dir=.
11200    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11201  done
11202IFS=$as_save_IFS
11203
11204     ;;
11205esac
11206# We did not find ourselves, most probably we were run as `sh COMMAND'
11207# in which case we are not to be found in the path.
11208if test "x$as_myself" = x; then
11209  as_myself=$0
11210fi
11211if test ! -f "$as_myself"; then
11212  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11213  exit 1
11214fi
11215
11216# Unset variables that we do not need and which cause bugs (e.g. in
11217# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11218# suppresses any "Segmentation fault" message there.  '((' could
11219# trigger a bug in pdksh 5.2.14.
11220for as_var in BASH_ENV ENV MAIL MAILPATH
11221do eval test x\${$as_var+set} = xset \
11222  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11223done
11224PS1='$ '
11225PS2='> '
11226PS4='+ '
11227
11228# NLS nuisances.
11229LC_ALL=C
11230export LC_ALL
11231LANGUAGE=C
11232export LANGUAGE
11233
11234# CDPATH.
11235(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11236
11237
11238# as_fn_error STATUS ERROR [LINENO LOG_FD]
11239# ----------------------------------------
11240# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11241# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11242# script with STATUS, using 1 if that was 0.
11243as_fn_error ()
11244{
11245  as_status=$1; test $as_status -eq 0 && as_status=1
11246  if test "$4"; then
11247    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11248    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11249  fi
11250  $as_echo "$as_me: error: $2" >&2
11251  as_fn_exit $as_status
11252} # as_fn_error
11253
11254
11255# as_fn_set_status STATUS
11256# -----------------------
11257# Set $? to STATUS, without forking.
11258as_fn_set_status ()
11259{
11260  return $1
11261} # as_fn_set_status
11262
11263# as_fn_exit STATUS
11264# -----------------
11265# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11266as_fn_exit ()
11267{
11268  set +e
11269  as_fn_set_status $1
11270  exit $1
11271} # as_fn_exit
11272
11273# as_fn_unset VAR
11274# ---------------
11275# Portably unset VAR.
11276as_fn_unset ()
11277{
11278  { eval $1=; unset $1;}
11279}
11280as_unset=as_fn_unset
11281# as_fn_append VAR VALUE
11282# ----------------------
11283# Append the text in VALUE to the end of the definition contained in VAR. Take
11284# advantage of any shell optimizations that allow amortized linear growth over
11285# repeated appends, instead of the typical quadratic growth present in naive
11286# implementations.
11287if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11288  eval 'as_fn_append ()
11289  {
11290    eval $1+=\$2
11291  }'
11292else
11293  as_fn_append ()
11294  {
11295    eval $1=\$$1\$2
11296  }
11297fi # as_fn_append
11298
11299# as_fn_arith ARG...
11300# ------------------
11301# Perform arithmetic evaluation on the ARGs, and store the result in the
11302# global $as_val. Take advantage of shells that can avoid forks. The arguments
11303# must be portable across $(()) and expr.
11304if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11305  eval 'as_fn_arith ()
11306  {
11307    as_val=$(( $* ))
11308  }'
11309else
11310  as_fn_arith ()
11311  {
11312    as_val=`expr "$@" || test $? -eq 1`
11313  }
11314fi # as_fn_arith
11315
11316
11317if expr a : '\(a\)' >/dev/null 2>&1 &&
11318   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11319  as_expr=expr
11320else
11321  as_expr=false
11322fi
11323
11324if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11325  as_basename=basename
11326else
11327  as_basename=false
11328fi
11329
11330if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11331  as_dirname=dirname
11332else
11333  as_dirname=false
11334fi
11335
11336as_me=`$as_basename -- "$0" ||
11337$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11338	 X"$0" : 'X\(//\)$' \| \
11339	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11340$as_echo X/"$0" |
11341    sed '/^.*\/\([^/][^/]*\)\/*$/{
11342	    s//\1/
11343	    q
11344	  }
11345	  /^X\/\(\/\/\)$/{
11346	    s//\1/
11347	    q
11348	  }
11349	  /^X\/\(\/\).*/{
11350	    s//\1/
11351	    q
11352	  }
11353	  s/.*/./; q'`
11354
11355# Avoid depending upon Character Ranges.
11356as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11357as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11358as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11359as_cr_digits='0123456789'
11360as_cr_alnum=$as_cr_Letters$as_cr_digits
11361
11362ECHO_C= ECHO_N= ECHO_T=
11363case `echo -n x` in #(((((
11364-n*)
11365  case `echo 'xy\c'` in
11366  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11367  xy)  ECHO_C='\c';;
11368  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11369       ECHO_T='	';;
11370  esac;;
11371*)
11372  ECHO_N='-n';;
11373esac
11374
11375rm -f conf$$ conf$$.exe conf$$.file
11376if test -d conf$$.dir; then
11377  rm -f conf$$.dir/conf$$.file
11378else
11379  rm -f conf$$.dir
11380  mkdir conf$$.dir 2>/dev/null
11381fi
11382if (echo >conf$$.file) 2>/dev/null; then
11383  if ln -s conf$$.file conf$$ 2>/dev/null; then
11384    as_ln_s='ln -s'
11385    # ... but there are two gotchas:
11386    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11387    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11388    # In both cases, we have to default to `cp -pR'.
11389    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11390      as_ln_s='cp -pR'
11391  elif ln conf$$.file conf$$ 2>/dev/null; then
11392    as_ln_s=ln
11393  else
11394    as_ln_s='cp -pR'
11395  fi
11396else
11397  as_ln_s='cp -pR'
11398fi
11399rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11400rmdir conf$$.dir 2>/dev/null
11401
11402
11403# as_fn_mkdir_p
11404# -------------
11405# Create "$as_dir" as a directory, including parents if necessary.
11406as_fn_mkdir_p ()
11407{
11408
11409  case $as_dir in #(
11410  -*) as_dir=./$as_dir;;
11411  esac
11412  test -d "$as_dir" || eval $as_mkdir_p || {
11413    as_dirs=
11414    while :; do
11415      case $as_dir in #(
11416      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11417      *) as_qdir=$as_dir;;
11418      esac
11419      as_dirs="'$as_qdir' $as_dirs"
11420      as_dir=`$as_dirname -- "$as_dir" ||
11421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11422	 X"$as_dir" : 'X\(//\)[^/]' \| \
11423	 X"$as_dir" : 'X\(//\)$' \| \
11424	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11425$as_echo X"$as_dir" |
11426    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11427	    s//\1/
11428	    q
11429	  }
11430	  /^X\(\/\/\)[^/].*/{
11431	    s//\1/
11432	    q
11433	  }
11434	  /^X\(\/\/\)$/{
11435	    s//\1/
11436	    q
11437	  }
11438	  /^X\(\/\).*/{
11439	    s//\1/
11440	    q
11441	  }
11442	  s/.*/./; q'`
11443      test -d "$as_dir" && break
11444    done
11445    test -z "$as_dirs" || eval "mkdir $as_dirs"
11446  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11447
11448
11449} # as_fn_mkdir_p
11450if mkdir -p . 2>/dev/null; then
11451  as_mkdir_p='mkdir -p "$as_dir"'
11452else
11453  test -d ./-p && rmdir ./-p
11454  as_mkdir_p=false
11455fi
11456
11457
11458# as_fn_executable_p FILE
11459# -----------------------
11460# Test if FILE is an executable regular file.
11461as_fn_executable_p ()
11462{
11463  test -f "$1" && test -x "$1"
11464} # as_fn_executable_p
11465as_test_x='test -x'
11466as_executable_p=as_fn_executable_p
11467
11468# Sed expression to map a string onto a valid CPP name.
11469as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11470
11471# Sed expression to map a string onto a valid variable name.
11472as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11473
11474
11475exec 6>&1
11476## ----------------------------------- ##
11477## Main body of $CONFIG_STATUS script. ##
11478## ----------------------------------- ##
11479_ASEOF
11480test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11481
11482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11483# Save the log message, to keep $0 and so on meaningful, and to
11484# report actual input values of CONFIG_FILES etc. instead of their
11485# values after options handling.
11486ac_log="
11487This file was extended by xgc $as_me 1.0.5, which was
11488generated by GNU Autoconf 2.69.  Invocation command line was
11489
11490  CONFIG_FILES    = $CONFIG_FILES
11491  CONFIG_HEADERS  = $CONFIG_HEADERS
11492  CONFIG_LINKS    = $CONFIG_LINKS
11493  CONFIG_COMMANDS = $CONFIG_COMMANDS
11494  $ $0 $@
11495
11496on `(hostname || uname -n) 2>/dev/null | sed 1q`
11497"
11498
11499_ACEOF
11500
11501case $ac_config_files in *"
11502"*) set x $ac_config_files; shift; ac_config_files=$*;;
11503esac
11504
11505case $ac_config_headers in *"
11506"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11507esac
11508
11509
11510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11511# Files that config.status was made for.
11512config_files="$ac_config_files"
11513config_headers="$ac_config_headers"
11514config_commands="$ac_config_commands"
11515
11516_ACEOF
11517
11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519ac_cs_usage="\
11520\`$as_me' instantiates files and other configuration actions
11521from templates according to the current configuration.  Unless the files
11522and actions are specified as TAGs, all are instantiated by default.
11523
11524Usage: $0 [OPTION]... [TAG]...
11525
11526  -h, --help       print this help, then exit
11527  -V, --version    print version number and configuration settings, then exit
11528      --config     print configuration, then exit
11529  -q, --quiet, --silent
11530                   do not print progress messages
11531  -d, --debug      don't remove temporary files
11532      --recheck    update $as_me by reconfiguring in the same conditions
11533      --file=FILE[:TEMPLATE]
11534                   instantiate the configuration file FILE
11535      --header=FILE[:TEMPLATE]
11536                   instantiate the configuration header FILE
11537
11538Configuration files:
11539$config_files
11540
11541Configuration headers:
11542$config_headers
11543
11544Configuration commands:
11545$config_commands
11546
11547Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11548
11549_ACEOF
11550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11551ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11552ac_cs_version="\\
11553xgc config.status 1.0.5
11554configured by $0, generated by GNU Autoconf 2.69,
11555  with options \\"\$ac_cs_config\\"
11556
11557Copyright (C) 2012 Free Software Foundation, Inc.
11558This config.status script is free software; the Free Software Foundation
11559gives unlimited permission to copy, distribute and modify it."
11560
11561ac_pwd='$ac_pwd'
11562srcdir='$srcdir'
11563INSTALL='$INSTALL'
11564MKDIR_P='$MKDIR_P'
11565AWK='$AWK'
11566test -n "\$AWK" || AWK=awk
11567_ACEOF
11568
11569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11570# The default lists apply if the user does not specify any file.
11571ac_need_defaults=:
11572while test $# != 0
11573do
11574  case $1 in
11575  --*=?*)
11576    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11577    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11578    ac_shift=:
11579    ;;
11580  --*=)
11581    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11582    ac_optarg=
11583    ac_shift=:
11584    ;;
11585  *)
11586    ac_option=$1
11587    ac_optarg=$2
11588    ac_shift=shift
11589    ;;
11590  esac
11591
11592  case $ac_option in
11593  # Handling of the options.
11594  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11595    ac_cs_recheck=: ;;
11596  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11597    $as_echo "$ac_cs_version"; exit ;;
11598  --config | --confi | --conf | --con | --co | --c )
11599    $as_echo "$ac_cs_config"; exit ;;
11600  --debug | --debu | --deb | --de | --d | -d )
11601    debug=: ;;
11602  --file | --fil | --fi | --f )
11603    $ac_shift
11604    case $ac_optarg in
11605    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11606    '') as_fn_error $? "missing file argument" ;;
11607    esac
11608    as_fn_append CONFIG_FILES " '$ac_optarg'"
11609    ac_need_defaults=false;;
11610  --header | --heade | --head | --hea )
11611    $ac_shift
11612    case $ac_optarg in
11613    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11614    esac
11615    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11616    ac_need_defaults=false;;
11617  --he | --h)
11618    # Conflict between --help and --header
11619    as_fn_error $? "ambiguous option: \`$1'
11620Try \`$0 --help' for more information.";;
11621  --help | --hel | -h )
11622    $as_echo "$ac_cs_usage"; exit ;;
11623  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11624  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11625    ac_cs_silent=: ;;
11626
11627  # This is an error.
11628  -*) as_fn_error $? "unrecognized option: \`$1'
11629Try \`$0 --help' for more information." ;;
11630
11631  *) as_fn_append ac_config_targets " $1"
11632     ac_need_defaults=false ;;
11633
11634  esac
11635  shift
11636done
11637
11638ac_configure_extra_args=
11639
11640if $ac_cs_silent; then
11641  exec 6>/dev/null
11642  ac_configure_extra_args="$ac_configure_extra_args --silent"
11643fi
11644
11645_ACEOF
11646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11647if \$ac_cs_recheck; then
11648  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11649  shift
11650  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11651  CONFIG_SHELL='$SHELL'
11652  export CONFIG_SHELL
11653  exec "\$@"
11654fi
11655
11656_ACEOF
11657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11658exec 5>>config.log
11659{
11660  echo
11661  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11662## Running $as_me. ##
11663_ASBOX
11664  $as_echo "$ac_log"
11665} >&5
11666
11667_ACEOF
11668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11669#
11670# INIT-COMMANDS
11671#
11672AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11673
11674_ACEOF
11675
11676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11677
11678# Handling of arguments.
11679for ac_config_target in $ac_config_targets
11680do
11681  case $ac_config_target in
11682    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11683    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11684    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11685    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11686
11687  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11688  esac
11689done
11690
11691
11692# If the user did not use the arguments to specify the items to instantiate,
11693# then the envvar interface is used.  Set only those that are not.
11694# We use the long form for the default assignment because of an extremely
11695# bizarre bug on SunOS 4.1.3.
11696if $ac_need_defaults; then
11697  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11698  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11699  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11700fi
11701
11702# Have a temporary directory for convenience.  Make it in the build tree
11703# simply because there is no reason against having it here, and in addition,
11704# creating and moving files from /tmp can sometimes cause problems.
11705# Hook for its removal unless debugging.
11706# Note that there is a small window in which the directory will not be cleaned:
11707# after its creation but before its name has been assigned to `$tmp'.
11708$debug ||
11709{
11710  tmp= ac_tmp=
11711  trap 'exit_status=$?
11712  : "${ac_tmp:=$tmp}"
11713  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11714' 0
11715  trap 'as_fn_exit 1' 1 2 13 15
11716}
11717# Create a (secure) tmp directory for tmp files.
11718
11719{
11720  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11721  test -d "$tmp"
11722}  ||
11723{
11724  tmp=./conf$$-$RANDOM
11725  (umask 077 && mkdir "$tmp")
11726} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11727ac_tmp=$tmp
11728
11729# Set up the scripts for CONFIG_FILES section.
11730# No need to generate them if there are no CONFIG_FILES.
11731# This happens for instance with `./config.status config.h'.
11732if test -n "$CONFIG_FILES"; then
11733
11734
11735ac_cr=`echo X | tr X '\015'`
11736# On cygwin, bash can eat \r inside `` if the user requested igncr.
11737# But we know of no other shell where ac_cr would be empty at this
11738# point, so we can use a bashism as a fallback.
11739if test "x$ac_cr" = x; then
11740  eval ac_cr=\$\'\\r\'
11741fi
11742ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11743if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11744  ac_cs_awk_cr='\\r'
11745else
11746  ac_cs_awk_cr=$ac_cr
11747fi
11748
11749echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11750_ACEOF
11751
11752
11753{
11754  echo "cat >conf$$subs.awk <<_ACEOF" &&
11755  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11756  echo "_ACEOF"
11757} >conf$$subs.sh ||
11758  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11759ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11760ac_delim='%!_!# '
11761for ac_last_try in false false false false false :; do
11762  . ./conf$$subs.sh ||
11763    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11764
11765  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11766  if test $ac_delim_n = $ac_delim_num; then
11767    break
11768  elif $ac_last_try; then
11769    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11770  else
11771    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11772  fi
11773done
11774rm -f conf$$subs.sh
11775
11776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11777cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11778_ACEOF
11779sed -n '
11780h
11781s/^/S["/; s/!.*/"]=/
11782p
11783g
11784s/^[^!]*!//
11785:repl
11786t repl
11787s/'"$ac_delim"'$//
11788t delim
11789:nl
11790h
11791s/\(.\{148\}\)..*/\1/
11792t more1
11793s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11794p
11795n
11796b repl
11797:more1
11798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11799p
11800g
11801s/.\{148\}//
11802t nl
11803:delim
11804h
11805s/\(.\{148\}\)..*/\1/
11806t more2
11807s/["\\]/\\&/g; s/^/"/; s/$/"/
11808p
11809b
11810:more2
11811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11812p
11813g
11814s/.\{148\}//
11815t delim
11816' <conf$$subs.awk | sed '
11817/^[^""]/{
11818  N
11819  s/\n//
11820}
11821' >>$CONFIG_STATUS || ac_write_fail=1
11822rm -f conf$$subs.awk
11823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11824_ACAWK
11825cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11826  for (key in S) S_is_set[key] = 1
11827  FS = ""
11828
11829}
11830{
11831  line = $ 0
11832  nfields = split(line, field, "@")
11833  substed = 0
11834  len = length(field[1])
11835  for (i = 2; i < nfields; i++) {
11836    key = field[i]
11837    keylen = length(key)
11838    if (S_is_set[key]) {
11839      value = S[key]
11840      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11841      len += length(value) + length(field[++i])
11842      substed = 1
11843    } else
11844      len += 1 + keylen
11845  }
11846
11847  print line
11848}
11849
11850_ACAWK
11851_ACEOF
11852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11853if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11854  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11855else
11856  cat
11857fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11858  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11859_ACEOF
11860
11861# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11862# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11863# trailing colons and then remove the whole line if VPATH becomes empty
11864# (actually we leave an empty line to preserve line numbers).
11865if test "x$srcdir" = x.; then
11866  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11867h
11868s///
11869s/^/:/
11870s/[	 ]*$/:/
11871s/:\$(srcdir):/:/g
11872s/:\${srcdir}:/:/g
11873s/:@srcdir@:/:/g
11874s/^:*//
11875s/:*$//
11876x
11877s/\(=[	 ]*\).*/\1/
11878G
11879s/\n//
11880s/^[^=]*=[	 ]*$//
11881}'
11882fi
11883
11884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885fi # test -n "$CONFIG_FILES"
11886
11887# Set up the scripts for CONFIG_HEADERS section.
11888# No need to generate them if there are no CONFIG_HEADERS.
11889# This happens for instance with `./config.status Makefile'.
11890if test -n "$CONFIG_HEADERS"; then
11891cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11892BEGIN {
11893_ACEOF
11894
11895# Transform confdefs.h into an awk script `defines.awk', embedded as
11896# here-document in config.status, that substitutes the proper values into
11897# config.h.in to produce config.h.
11898
11899# Create a delimiter string that does not exist in confdefs.h, to ease
11900# handling of long lines.
11901ac_delim='%!_!# '
11902for ac_last_try in false false :; do
11903  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11904  if test -z "$ac_tt"; then
11905    break
11906  elif $ac_last_try; then
11907    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11908  else
11909    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11910  fi
11911done
11912
11913# For the awk script, D is an array of macro values keyed by name,
11914# likewise P contains macro parameters if any.  Preserve backslash
11915# newline sequences.
11916
11917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11918sed -n '
11919s/.\{148\}/&'"$ac_delim"'/g
11920t rset
11921:rset
11922s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11923t def
11924d
11925:def
11926s/\\$//
11927t bsnl
11928s/["\\]/\\&/g
11929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11930D["\1"]=" \3"/p
11931s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11932d
11933:bsnl
11934s/["\\]/\\&/g
11935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11936D["\1"]=" \3\\\\\\n"\\/p
11937t cont
11938s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11939t cont
11940d
11941:cont
11942n
11943s/.\{148\}/&'"$ac_delim"'/g
11944t clear
11945:clear
11946s/\\$//
11947t bsnlc
11948s/["\\]/\\&/g; s/^/"/; s/$/"/p
11949d
11950:bsnlc
11951s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11952b cont
11953' <confdefs.h | sed '
11954s/'"$ac_delim"'/"\\\
11955"/g' >>$CONFIG_STATUS || ac_write_fail=1
11956
11957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11958  for (key in D) D_is_set[key] = 1
11959  FS = ""
11960}
11961/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11962  line = \$ 0
11963  split(line, arg, " ")
11964  if (arg[1] == "#") {
11965    defundef = arg[2]
11966    mac1 = arg[3]
11967  } else {
11968    defundef = substr(arg[1], 2)
11969    mac1 = arg[2]
11970  }
11971  split(mac1, mac2, "(") #)
11972  macro = mac2[1]
11973  prefix = substr(line, 1, index(line, defundef) - 1)
11974  if (D_is_set[macro]) {
11975    # Preserve the white space surrounding the "#".
11976    print prefix "define", macro P[macro] D[macro]
11977    next
11978  } else {
11979    # Replace #undef with comments.  This is necessary, for example,
11980    # in the case of _POSIX_SOURCE, which is predefined and required
11981    # on some systems where configure will not decide to define it.
11982    if (defundef == "undef") {
11983      print "/*", prefix defundef, macro, "*/"
11984      next
11985    }
11986  }
11987}
11988{ print }
11989_ACAWK
11990_ACEOF
11991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11992  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11993fi # test -n "$CONFIG_HEADERS"
11994
11995
11996eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11997shift
11998for ac_tag
11999do
12000  case $ac_tag in
12001  :[FHLC]) ac_mode=$ac_tag; continue;;
12002  esac
12003  case $ac_mode$ac_tag in
12004  :[FHL]*:*);;
12005  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12006  :[FH]-) ac_tag=-:-;;
12007  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12008  esac
12009  ac_save_IFS=$IFS
12010  IFS=:
12011  set x $ac_tag
12012  IFS=$ac_save_IFS
12013  shift
12014  ac_file=$1
12015  shift
12016
12017  case $ac_mode in
12018  :L) ac_source=$1;;
12019  :[FH])
12020    ac_file_inputs=
12021    for ac_f
12022    do
12023      case $ac_f in
12024      -) ac_f="$ac_tmp/stdin";;
12025      *) # Look for the file first in the build tree, then in the source tree
12026	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12027	 # because $ac_f cannot contain `:'.
12028	 test -f "$ac_f" ||
12029	   case $ac_f in
12030	   [\\/$]*) false;;
12031	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12032	   esac ||
12033	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12034      esac
12035      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12036      as_fn_append ac_file_inputs " '$ac_f'"
12037    done
12038
12039    # Let's still pretend it is `configure' which instantiates (i.e., don't
12040    # use $as_me), people would be surprised to read:
12041    #    /* config.h.  Generated by config.status.  */
12042    configure_input='Generated from '`
12043	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12044	`' by configure.'
12045    if test x"$ac_file" != x-; then
12046      configure_input="$ac_file.  $configure_input"
12047      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12048$as_echo "$as_me: creating $ac_file" >&6;}
12049    fi
12050    # Neutralize special characters interpreted by sed in replacement strings.
12051    case $configure_input in #(
12052    *\&* | *\|* | *\\* )
12053       ac_sed_conf_input=`$as_echo "$configure_input" |
12054       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12055    *) ac_sed_conf_input=$configure_input;;
12056    esac
12057
12058    case $ac_tag in
12059    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12060      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12061    esac
12062    ;;
12063  esac
12064
12065  ac_dir=`$as_dirname -- "$ac_file" ||
12066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12067	 X"$ac_file" : 'X\(//\)[^/]' \| \
12068	 X"$ac_file" : 'X\(//\)$' \| \
12069	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12070$as_echo X"$ac_file" |
12071    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12072	    s//\1/
12073	    q
12074	  }
12075	  /^X\(\/\/\)[^/].*/{
12076	    s//\1/
12077	    q
12078	  }
12079	  /^X\(\/\/\)$/{
12080	    s//\1/
12081	    q
12082	  }
12083	  /^X\(\/\).*/{
12084	    s//\1/
12085	    q
12086	  }
12087	  s/.*/./; q'`
12088  as_dir="$ac_dir"; as_fn_mkdir_p
12089  ac_builddir=.
12090
12091case "$ac_dir" in
12092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12093*)
12094  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12095  # A ".." for each directory in $ac_dir_suffix.
12096  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12097  case $ac_top_builddir_sub in
12098  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12099  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12100  esac ;;
12101esac
12102ac_abs_top_builddir=$ac_pwd
12103ac_abs_builddir=$ac_pwd$ac_dir_suffix
12104# for backward compatibility:
12105ac_top_builddir=$ac_top_build_prefix
12106
12107case $srcdir in
12108  .)  # We are building in place.
12109    ac_srcdir=.
12110    ac_top_srcdir=$ac_top_builddir_sub
12111    ac_abs_top_srcdir=$ac_pwd ;;
12112  [\\/]* | ?:[\\/]* )  # Absolute name.
12113    ac_srcdir=$srcdir$ac_dir_suffix;
12114    ac_top_srcdir=$srcdir
12115    ac_abs_top_srcdir=$srcdir ;;
12116  *) # Relative name.
12117    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12118    ac_top_srcdir=$ac_top_build_prefix$srcdir
12119    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12120esac
12121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12122
12123
12124  case $ac_mode in
12125  :F)
12126  #
12127  # CONFIG_FILE
12128  #
12129
12130  case $INSTALL in
12131  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12132  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12133  esac
12134  ac_MKDIR_P=$MKDIR_P
12135  case $MKDIR_P in
12136  [\\/$]* | ?:[\\/]* ) ;;
12137  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12138  esac
12139_ACEOF
12140
12141cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12142# If the template does not know about datarootdir, expand it.
12143# FIXME: This hack should be removed a few years after 2.60.
12144ac_datarootdir_hack=; ac_datarootdir_seen=
12145ac_sed_dataroot='
12146/datarootdir/ {
12147  p
12148  q
12149}
12150/@datadir@/p
12151/@docdir@/p
12152/@infodir@/p
12153/@localedir@/p
12154/@mandir@/p'
12155case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12156*datarootdir*) ac_datarootdir_seen=yes;;
12157*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12159$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12160_ACEOF
12161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162  ac_datarootdir_hack='
12163  s&@datadir@&$datadir&g
12164  s&@docdir@&$docdir&g
12165  s&@infodir@&$infodir&g
12166  s&@localedir@&$localedir&g
12167  s&@mandir@&$mandir&g
12168  s&\\\${datarootdir}&$datarootdir&g' ;;
12169esac
12170_ACEOF
12171
12172# Neutralize VPATH when `$srcdir' = `.'.
12173# Shell code in configure.ac might set extrasub.
12174# FIXME: do we really want to maintain this feature?
12175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12176ac_sed_extra="$ac_vpsub
12177$extrasub
12178_ACEOF
12179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12180:t
12181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12182s|@configure_input@|$ac_sed_conf_input|;t t
12183s&@top_builddir@&$ac_top_builddir_sub&;t t
12184s&@top_build_prefix@&$ac_top_build_prefix&;t t
12185s&@srcdir@&$ac_srcdir&;t t
12186s&@abs_srcdir@&$ac_abs_srcdir&;t t
12187s&@top_srcdir@&$ac_top_srcdir&;t t
12188s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12189s&@builddir@&$ac_builddir&;t t
12190s&@abs_builddir@&$ac_abs_builddir&;t t
12191s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12192s&@INSTALL@&$ac_INSTALL&;t t
12193s&@MKDIR_P@&$ac_MKDIR_P&;t t
12194$ac_datarootdir_hack
12195"
12196eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12197  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12198
12199test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12200  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12201  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12202      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12204which seems to be undefined.  Please make sure it is defined" >&5
12205$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12206which seems to be undefined.  Please make sure it is defined" >&2;}
12207
12208  rm -f "$ac_tmp/stdin"
12209  case $ac_file in
12210  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12211  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12212  esac \
12213  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12214 ;;
12215  :H)
12216  #
12217  # CONFIG_HEADER
12218  #
12219  if test x"$ac_file" != x-; then
12220    {
12221      $as_echo "/* $configure_input  */" \
12222      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12223    } >"$ac_tmp/config.h" \
12224      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12225    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12226      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12227$as_echo "$as_me: $ac_file is unchanged" >&6;}
12228    else
12229      rm -f "$ac_file"
12230      mv "$ac_tmp/config.h" "$ac_file" \
12231	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12232    fi
12233  else
12234    $as_echo "/* $configure_input  */" \
12235      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12236      || as_fn_error $? "could not create -" "$LINENO" 5
12237  fi
12238# Compute "$ac_file"'s index in $config_headers.
12239_am_arg="$ac_file"
12240_am_stamp_count=1
12241for _am_header in $config_headers :; do
12242  case $_am_header in
12243    $_am_arg | $_am_arg:* )
12244      break ;;
12245    * )
12246      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12247  esac
12248done
12249echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12250$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12252	 X"$_am_arg" : 'X\(//\)$' \| \
12253	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12254$as_echo X"$_am_arg" |
12255    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12256	    s//\1/
12257	    q
12258	  }
12259	  /^X\(\/\/\)[^/].*/{
12260	    s//\1/
12261	    q
12262	  }
12263	  /^X\(\/\/\)$/{
12264	    s//\1/
12265	    q
12266	  }
12267	  /^X\(\/\).*/{
12268	    s//\1/
12269	    q
12270	  }
12271	  s/.*/./; q'`/stamp-h$_am_stamp_count
12272 ;;
12273
12274  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12275$as_echo "$as_me: executing $ac_file commands" >&6;}
12276 ;;
12277  esac
12278
12279
12280  case $ac_file$ac_mode in
12281    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12282  # Older Autoconf quotes --file arguments for eval, but not when files
12283  # are listed without --file.  Let's play safe and only enable the eval
12284  # if we detect the quoting.
12285  case $CONFIG_FILES in
12286  *\'*) eval set x "$CONFIG_FILES" ;;
12287  *)   set x $CONFIG_FILES ;;
12288  esac
12289  shift
12290  for mf
12291  do
12292    # Strip MF so we end up with the name of the file.
12293    mf=`echo "$mf" | sed -e 's/:.*$//'`
12294    # Check whether this is an Automake generated Makefile or not.
12295    # We used to match only the files named 'Makefile.in', but
12296    # some people rename them; so instead we look at the file content.
12297    # Grep'ing the first line is not enough: some people post-process
12298    # each Makefile.in and add a new line on top of each file to say so.
12299    # Grep'ing the whole file is not good either: AIX grep has a line
12300    # limit of 2048, but all sed's we know have understand at least 4000.
12301    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12302      dirpart=`$as_dirname -- "$mf" ||
12303$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12304	 X"$mf" : 'X\(//\)[^/]' \| \
12305	 X"$mf" : 'X\(//\)$' \| \
12306	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12307$as_echo X"$mf" |
12308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12309	    s//\1/
12310	    q
12311	  }
12312	  /^X\(\/\/\)[^/].*/{
12313	    s//\1/
12314	    q
12315	  }
12316	  /^X\(\/\/\)$/{
12317	    s//\1/
12318	    q
12319	  }
12320	  /^X\(\/\).*/{
12321	    s//\1/
12322	    q
12323	  }
12324	  s/.*/./; q'`
12325    else
12326      continue
12327    fi
12328    # Extract the definition of DEPDIR, am__include, and am__quote
12329    # from the Makefile without running 'make'.
12330    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12331    test -z "$DEPDIR" && continue
12332    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12333    test -z "$am__include" && continue
12334    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12335    # Find all dependency output files, they are included files with
12336    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12337    # simplest approach to changing $(DEPDIR) to its actual value in the
12338    # expansion.
12339    for file in `sed -n "
12340      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12341	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12342      # Make sure the directory exists.
12343      test -f "$dirpart/$file" && continue
12344      fdir=`$as_dirname -- "$file" ||
12345$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12346	 X"$file" : 'X\(//\)[^/]' \| \
12347	 X"$file" : 'X\(//\)$' \| \
12348	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12349$as_echo X"$file" |
12350    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12351	    s//\1/
12352	    q
12353	  }
12354	  /^X\(\/\/\)[^/].*/{
12355	    s//\1/
12356	    q
12357	  }
12358	  /^X\(\/\/\)$/{
12359	    s//\1/
12360	    q
12361	  }
12362	  /^X\(\/\).*/{
12363	    s//\1/
12364	    q
12365	  }
12366	  s/.*/./; q'`
12367      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12368      # echo "creating $dirpart/$file"
12369      echo '# dummy' > "$dirpart/$file"
12370    done
12371  done
12372}
12373 ;;
12374
12375  esac
12376done # for ac_tag
12377
12378
12379as_fn_exit 0
12380_ACEOF
12381ac_clean_files=$ac_clean_files_save
12382
12383test $ac_write_fail = 0 ||
12384  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12385
12386
12387# configure is writing to config.log, and then calls config.status.
12388# config.status does its own redirection, appending to config.log.
12389# Unfortunately, on DOS this fails, as config.log is still kept open
12390# by configure, so config.status won't be able to write to it; its
12391# output is simply discarded.  So we exec the FD to /dev/null,
12392# effectively closing config.log, so it can be properly (re)opened and
12393# appended to by config.status.  When coming back to configure, we
12394# need to make the FD available again.
12395if test "$no_create" != yes; then
12396  ac_cs_success=:
12397  ac_config_status_args=
12398  test "$silent" = yes &&
12399    ac_config_status_args="$ac_config_status_args --quiet"
12400  exec 5>/dev/null
12401  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12402  exec 5>>config.log
12403  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12404  # would make configure fail if this is the last instruction.
12405  $ac_cs_success || as_fn_exit 1
12406fi
12407if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12408  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12409$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12410fi
12411
12412