configure revision 054b3d00
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xeyes 1.1.2.
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='xeyes'
583PACKAGE_TARNAME='xeyes'
584PACKAGE_VERSION='1.1.2'
585PACKAGE_STRING='xeyes 1.1.2'
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
630XRENDER_LIBS
631XRENDER_CFLAGS
632XEYES_LIBS
633XEYES_CFLAGS
634MAN_SUBSTS
635XORG_MAN_PAGE
636ADMIN_MAN_DIR
637DRIVER_MAN_DIR
638MISC_MAN_DIR
639FILE_MAN_DIR
640LIB_MAN_DIR
641APP_MAN_DIR
642ADMIN_MAN_SUFFIX
643DRIVER_MAN_SUFFIX
644MISC_MAN_SUFFIX
645FILE_MAN_SUFFIX
646LIB_MAN_SUFFIX
647APP_MAN_SUFFIX
648SED
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
657INSTALL_CMD
658PKG_CONFIG_LIBDIR
659PKG_CONFIG_PATH
660PKG_CONFIG
661CHANGELOG_CMD
662STRICT_CFLAGS
663CWARNFLAGS
664BASE_CFLAGS
665EGREP
666GREP
667CPP
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671am__nodep
672AMDEPBACKSLASH
673AMDEP_FALSE
674AMDEP_TRUE
675am__quote
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685AM_BACKSLASH
686AM_DEFAULT_VERBOSITY
687AM_DEFAULT_V
688AM_V
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_silent_rules
754enable_dependency_tracking
755enable_selective_werror
756enable_strict_compilation
757with_xrender
758'
759      ac_precious_vars='build_alias
760host_alias
761target_alias
762CC
763CFLAGS
764LDFLAGS
765LIBS
766CPPFLAGS
767CPP
768PKG_CONFIG
769PKG_CONFIG_PATH
770PKG_CONFIG_LIBDIR
771XEYES_CFLAGS
772XEYES_LIBS
773XRENDER_CFLAGS
774XRENDER_LIBS'
775
776
777# Initialize some variables set by options.
778ac_init_help=
779ac_init_version=false
780ac_unrecognized_opts=
781ac_unrecognized_sep=
782# The variables have the same names as the options, with
783# dashes changed to underlines.
784cache_file=/dev/null
785exec_prefix=NONE
786no_create=
787no_recursion=
788prefix=NONE
789program_prefix=NONE
790program_suffix=NONE
791program_transform_name=s,x,x,
792silent=
793site=
794srcdir=
795verbose=
796x_includes=NONE
797x_libraries=NONE
798
799# Installation directory options.
800# These are left unexpanded so users can "make install exec_prefix=/foo"
801# and all the variables that are supposed to be based on exec_prefix
802# by default will actually change.
803# Use braces instead of parens because sh, perl, etc. also accept them.
804# (The list follows the same order as the GNU Coding Standards.)
805bindir='${exec_prefix}/bin'
806sbindir='${exec_prefix}/sbin'
807libexecdir='${exec_prefix}/libexec'
808datarootdir='${prefix}/share'
809datadir='${datarootdir}'
810sysconfdir='${prefix}/etc'
811sharedstatedir='${prefix}/com'
812localstatedir='${prefix}/var'
813includedir='${prefix}/include'
814oldincludedir='/usr/include'
815docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
816infodir='${datarootdir}/info'
817htmldir='${docdir}'
818dvidir='${docdir}'
819pdfdir='${docdir}'
820psdir='${docdir}'
821libdir='${exec_prefix}/lib'
822localedir='${datarootdir}/locale'
823mandir='${datarootdir}/man'
824
825ac_prev=
826ac_dashdash=
827for ac_option
828do
829  # If the previous option needs an argument, assign it.
830  if test -n "$ac_prev"; then
831    eval $ac_prev=\$ac_option
832    ac_prev=
833    continue
834  fi
835
836  case $ac_option in
837  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
838  *=)   ac_optarg= ;;
839  *)    ac_optarg=yes ;;
840  esac
841
842  # Accept the important Cygnus configure options, so we can diagnose typos.
843
844  case $ac_dashdash$ac_option in
845  --)
846    ac_dashdash=yes ;;
847
848  -bindir | --bindir | --bindi | --bind | --bin | --bi)
849    ac_prev=bindir ;;
850  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851    bindir=$ac_optarg ;;
852
853  -build | --build | --buil | --bui | --bu)
854    ac_prev=build_alias ;;
855  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856    build_alias=$ac_optarg ;;
857
858  -cache-file | --cache-file | --cache-fil | --cache-fi \
859  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860    ac_prev=cache_file ;;
861  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863    cache_file=$ac_optarg ;;
864
865  --config-cache | -C)
866    cache_file=config.cache ;;
867
868  -datadir | --datadir | --datadi | --datad)
869    ac_prev=datadir ;;
870  -datadir=* | --datadir=* | --datadi=* | --datad=*)
871    datadir=$ac_optarg ;;
872
873  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874  | --dataroo | --dataro | --datar)
875    ac_prev=datarootdir ;;
876  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878    datarootdir=$ac_optarg ;;
879
880  -disable-* | --disable-*)
881    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882    # Reject names that are not valid shell variable names.
883    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884      as_fn_error $? "invalid feature name: $ac_useropt"
885    ac_useropt_orig=$ac_useropt
886    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887    case $ac_user_opts in
888      *"
889"enable_$ac_useropt"
890"*) ;;
891      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892	 ac_unrecognized_sep=', ';;
893    esac
894    eval enable_$ac_useropt=no ;;
895
896  -docdir | --docdir | --docdi | --doc | --do)
897    ac_prev=docdir ;;
898  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899    docdir=$ac_optarg ;;
900
901  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902    ac_prev=dvidir ;;
903  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904    dvidir=$ac_optarg ;;
905
906  -enable-* | --enable-*)
907    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908    # Reject names that are not valid shell variable names.
909    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910      as_fn_error $? "invalid feature name: $ac_useropt"
911    ac_useropt_orig=$ac_useropt
912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913    case $ac_user_opts in
914      *"
915"enable_$ac_useropt"
916"*) ;;
917      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918	 ac_unrecognized_sep=', ';;
919    esac
920    eval enable_$ac_useropt=\$ac_optarg ;;
921
922  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924  | --exec | --exe | --ex)
925    ac_prev=exec_prefix ;;
926  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928  | --exec=* | --exe=* | --ex=*)
929    exec_prefix=$ac_optarg ;;
930
931  -gas | --gas | --ga | --g)
932    # Obsolete; use --with-gas.
933    with_gas=yes ;;
934
935  -help | --help | --hel | --he | -h)
936    ac_init_help=long ;;
937  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938    ac_init_help=recursive ;;
939  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940    ac_init_help=short ;;
941
942  -host | --host | --hos | --ho)
943    ac_prev=host_alias ;;
944  -host=* | --host=* | --hos=* | --ho=*)
945    host_alias=$ac_optarg ;;
946
947  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948    ac_prev=htmldir ;;
949  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950  | --ht=*)
951    htmldir=$ac_optarg ;;
952
953  -includedir | --includedir | --includedi | --included | --include \
954  | --includ | --inclu | --incl | --inc)
955    ac_prev=includedir ;;
956  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957  | --includ=* | --inclu=* | --incl=* | --inc=*)
958    includedir=$ac_optarg ;;
959
960  -infodir | --infodir | --infodi | --infod | --info | --inf)
961    ac_prev=infodir ;;
962  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963    infodir=$ac_optarg ;;
964
965  -libdir | --libdir | --libdi | --libd)
966    ac_prev=libdir ;;
967  -libdir=* | --libdir=* | --libdi=* | --libd=*)
968    libdir=$ac_optarg ;;
969
970  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971  | --libexe | --libex | --libe)
972    ac_prev=libexecdir ;;
973  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974  | --libexe=* | --libex=* | --libe=*)
975    libexecdir=$ac_optarg ;;
976
977  -localedir | --localedir | --localedi | --localed | --locale)
978    ac_prev=localedir ;;
979  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980    localedir=$ac_optarg ;;
981
982  -localstatedir | --localstatedir | --localstatedi | --localstated \
983  | --localstate | --localstat | --localsta | --localst | --locals)
984    ac_prev=localstatedir ;;
985  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987    localstatedir=$ac_optarg ;;
988
989  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990    ac_prev=mandir ;;
991  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992    mandir=$ac_optarg ;;
993
994  -nfp | --nfp | --nf)
995    # Obsolete; use --without-fp.
996    with_fp=no ;;
997
998  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999  | --no-cr | --no-c | -n)
1000    no_create=yes ;;
1001
1002  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004    no_recursion=yes ;;
1005
1006  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008  | --oldin | --oldi | --old | --ol | --o)
1009    ac_prev=oldincludedir ;;
1010  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013    oldincludedir=$ac_optarg ;;
1014
1015  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016    ac_prev=prefix ;;
1017  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018    prefix=$ac_optarg ;;
1019
1020  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021  | --program-pre | --program-pr | --program-p)
1022    ac_prev=program_prefix ;;
1023  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025    program_prefix=$ac_optarg ;;
1026
1027  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028  | --program-suf | --program-su | --program-s)
1029    ac_prev=program_suffix ;;
1030  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032    program_suffix=$ac_optarg ;;
1033
1034  -program-transform-name | --program-transform-name \
1035  | --program-transform-nam | --program-transform-na \
1036  | --program-transform-n | --program-transform- \
1037  | --program-transform | --program-transfor \
1038  | --program-transfo | --program-transf \
1039  | --program-trans | --program-tran \
1040  | --progr-tra | --program-tr | --program-t)
1041    ac_prev=program_transform_name ;;
1042  -program-transform-name=* | --program-transform-name=* \
1043  | --program-transform-nam=* | --program-transform-na=* \
1044  | --program-transform-n=* | --program-transform-=* \
1045  | --program-transform=* | --program-transfor=* \
1046  | --program-transfo=* | --program-transf=* \
1047  | --program-trans=* | --program-tran=* \
1048  | --progr-tra=* | --program-tr=* | --program-t=*)
1049    program_transform_name=$ac_optarg ;;
1050
1051  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052    ac_prev=pdfdir ;;
1053  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054    pdfdir=$ac_optarg ;;
1055
1056  -psdir | --psdir | --psdi | --psd | --ps)
1057    ac_prev=psdir ;;
1058  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059    psdir=$ac_optarg ;;
1060
1061  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062  | -silent | --silent | --silen | --sile | --sil)
1063    silent=yes ;;
1064
1065  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1066    ac_prev=sbindir ;;
1067  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1068  | --sbi=* | --sb=*)
1069    sbindir=$ac_optarg ;;
1070
1071  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073  | --sharedst | --shareds | --shared | --share | --shar \
1074  | --sha | --sh)
1075    ac_prev=sharedstatedir ;;
1076  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1079  | --sha=* | --sh=*)
1080    sharedstatedir=$ac_optarg ;;
1081
1082  -site | --site | --sit)
1083    ac_prev=site ;;
1084  -site=* | --site=* | --sit=*)
1085    site=$ac_optarg ;;
1086
1087  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1088    ac_prev=srcdir ;;
1089  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090    srcdir=$ac_optarg ;;
1091
1092  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093  | --syscon | --sysco | --sysc | --sys | --sy)
1094    ac_prev=sysconfdir ;;
1095  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097    sysconfdir=$ac_optarg ;;
1098
1099  -target | --target | --targe | --targ | --tar | --ta | --t)
1100    ac_prev=target_alias ;;
1101  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102    target_alias=$ac_optarg ;;
1103
1104  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105    verbose=yes ;;
1106
1107  -version | --version | --versio | --versi | --vers | -V)
1108    ac_init_version=: ;;
1109
1110  -with-* | --with-*)
1111    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112    # Reject names that are not valid shell variable names.
1113    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114      as_fn_error $? "invalid package name: $ac_useropt"
1115    ac_useropt_orig=$ac_useropt
1116    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117    case $ac_user_opts in
1118      *"
1119"with_$ac_useropt"
1120"*) ;;
1121      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1122	 ac_unrecognized_sep=', ';;
1123    esac
1124    eval with_$ac_useropt=\$ac_optarg ;;
1125
1126  -without-* | --without-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=no ;;
1141
1142  --x)
1143    # Obsolete; use --with-x.
1144    with_x=yes ;;
1145
1146  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1147  | --x-incl | --x-inc | --x-in | --x-i)
1148    ac_prev=x_includes ;;
1149  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1150  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1151    x_includes=$ac_optarg ;;
1152
1153  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1154  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1155    ac_prev=x_libraries ;;
1156  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1157  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158    x_libraries=$ac_optarg ;;
1159
1160  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1161Try \`$0 --help' for more information"
1162    ;;
1163
1164  *=*)
1165    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166    # Reject names that are not valid shell variable names.
1167    case $ac_envvar in #(
1168      '' | [0-9]* | *[!_$as_cr_alnum]* )
1169      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1170    esac
1171    eval $ac_envvar=\$ac_optarg
1172    export $ac_envvar ;;
1173
1174  *)
1175    # FIXME: should be removed in autoconf 3.0.
1176    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1177    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1178      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1179    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180    ;;
1181
1182  esac
1183done
1184
1185if test -n "$ac_prev"; then
1186  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187  as_fn_error $? "missing argument to $ac_option"
1188fi
1189
1190if test -n "$ac_unrecognized_opts"; then
1191  case $enable_option_checking in
1192    no) ;;
1193    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1194    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195  esac
1196fi
1197
1198# Check all directory arguments for consistency.
1199for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200		datadir sysconfdir sharedstatedir localstatedir includedir \
1201		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202		libdir localedir mandir
1203do
1204  eval ac_val=\$$ac_var
1205  # Remove trailing slashes.
1206  case $ac_val in
1207    */ )
1208      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1209      eval $ac_var=\$ac_val;;
1210  esac
1211  # Be sure to have absolute directory names.
1212  case $ac_val in
1213    [\\/$]* | ?:[\\/]* )  continue;;
1214    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215  esac
1216  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228  if test "x$build_alias" = x; then
1229    cross_compiling=maybe
1230  elif test "x$build_alias" != "x$host_alias"; then
1231    cross_compiling=yes
1232  fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
1241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244  as_fn_error $? "working directory cannot be determined"
1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246  as_fn_error $? "pwd does not report name of working directory"
1247
1248
1249# Find the source files, if location was not specified.
1250if test -z "$srcdir"; then
1251  ac_srcdir_defaulted=yes
1252  # Try the directory containing this script, then the parent directory.
1253  ac_confdir=`$as_dirname -- "$as_myself" ||
1254$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255	 X"$as_myself" : 'X\(//\)[^/]' \| \
1256	 X"$as_myself" : 'X\(//\)$' \| \
1257	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258$as_echo X"$as_myself" |
1259    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\/\)[^/].*/{
1264	    s//\1/
1265	    q
1266	  }
1267	  /^X\(\/\/\)$/{
1268	    s//\1/
1269	    q
1270	  }
1271	  /^X\(\/\).*/{
1272	    s//\1/
1273	    q
1274	  }
1275	  s/.*/./; q'`
1276  srcdir=$ac_confdir
1277  if test ! -r "$srcdir/$ac_unique_file"; then
1278    srcdir=..
1279  fi
1280else
1281  ac_srcdir_defaulted=no
1282fi
1283if test ! -r "$srcdir/$ac_unique_file"; then
1284  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1286fi
1287ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1288ac_abs_confdir=`(
1289	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1290	pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293  srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303  eval ac_env_${ac_var}_value=\$${ac_var}
1304  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
1307
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312  # Omit some internal or obsolete options to make the list less imposing.
1313  # This message is too long to be a string in the A/UX 3.1 sh.
1314  cat <<_ACEOF
1315\`configure' configures xeyes 1.1.2 to adapt to many kinds of systems.
1316
1317Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE.  See below for descriptions of some of the useful variables.
1321
1322Defaults for the options are specified in brackets.
1323
1324Configuration:
1325  -h, --help              display this help and exit
1326      --help=short        display options specific to this package
1327      --help=recursive    display the short help of all the included packages
1328  -V, --version           display version information and exit
1329  -q, --quiet, --silent   do not print \`checking ...' messages
1330      --cache-file=FILE   cache test results in FILE [disabled]
1331  -C, --config-cache      alias for \`--cache-file=config.cache'
1332  -n, --no-create         do not create output files
1333      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1334
1335Installation directories:
1336  --prefix=PREFIX         install architecture-independent files in PREFIX
1337                          [$ac_default_prefix]
1338  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1339                          [PREFIX]
1340
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
1345
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
1349  --bindir=DIR            user executables [EPREFIX/bin]
1350  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1351  --libexecdir=DIR        program executables [EPREFIX/libexec]
1352  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1353  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1354  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1355  --libdir=DIR            object code libraries [EPREFIX/lib]
1356  --includedir=DIR        C header files [PREFIX/include]
1357  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1358  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1359  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1360  --infodir=DIR           info documentation [DATAROOTDIR/info]
1361  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1362  --mandir=DIR            man documentation [DATAROOTDIR/man]
1363  --docdir=DIR            documentation root [DATAROOTDIR/doc/xeyes]
1364  --htmldir=DIR           html documentation [DOCDIR]
1365  --dvidir=DIR            dvi documentation [DOCDIR]
1366  --pdfdir=DIR            pdf documentation [DOCDIR]
1367  --psdir=DIR             ps documentation [DOCDIR]
1368_ACEOF
1369
1370  cat <<\_ACEOF
1371
1372Program names:
1373  --program-prefix=PREFIX            prepend PREFIX to installed program names
1374  --program-suffix=SUFFIX            append SUFFIX to installed program names
1375  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1376
1377System types:
1378  --build=BUILD     configure for building on BUILD [guessed]
1379  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384  case $ac_init_help in
1385     short | recursive ) echo "Configuration of xeyes 1.1.2:";;
1386   esac
1387  cat <<\_ACEOF
1388
1389Optional Features:
1390  --disable-option-checking  ignore unrecognized --enable/--with options
1391  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1392  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1393  --enable-silent-rules   less verbose build output (undo: "make V=1")
1394  --disable-silent-rules  verbose build output (undo: "make V=0")
1395  --enable-dependency-tracking
1396                          do not reject slow dependency extractors
1397  --disable-dependency-tracking
1398                          speeds up one-time build
1399  --disable-selective-werror
1400                          Turn off selective compiler errors. (default:
1401                          enabled)
1402  --enable-strict-compilation
1403                          Enable all warnings from compiler and make them
1404                          errors (default: disabled)
1405
1406Optional Packages:
1407  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1408  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1409  --with-xrender          Use Xrender for rendering (Default is YES)
1410
1411Some influential environment variables:
1412  CC          C compiler command
1413  CFLAGS      C compiler flags
1414  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1415              nonstandard directory <lib dir>
1416  LIBS        libraries to pass to the linker, e.g. -l<library>
1417  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1418              you have headers in a nonstandard directory <include dir>
1419  CPP         C preprocessor
1420  PKG_CONFIG  path to pkg-config utility
1421  PKG_CONFIG_PATH
1422              directories to add to pkg-config's search path
1423  PKG_CONFIG_LIBDIR
1424              path overriding pkg-config's built-in search path
1425  XEYES_CFLAGS
1426              C compiler flags for XEYES, overriding pkg-config
1427  XEYES_LIBS  linker flags for XEYES, overriding pkg-config
1428  XRENDER_CFLAGS
1429              C compiler flags for XRENDER, overriding pkg-config
1430  XRENDER_LIBS
1431              linker flags for XRENDER, 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
1499xeyes configure 1.1.2
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 xeyes $as_me 1.1.2, 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='xeyes'
2624 VERSION='1.1.2'
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
4372
4373
4374
4375
4376
4377if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4378	if test -n "$ac_tool_prefix"; then
4379  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4380set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
4383if ${ac_cv_path_PKG_CONFIG+:} false; then :
4384  $as_echo_n "(cached) " >&6
4385else
4386  case $PKG_CONFIG in
4387  [\\/]* | ?:[\\/]*)
4388  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4389  ;;
4390  *)
4391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394  IFS=$as_save_IFS
4395  test -z "$as_dir" && as_dir=.
4396    for ac_exec_ext in '' $ac_executable_extensions; do
4397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400    break 2
4401  fi
4402done
4403  done
4404IFS=$as_save_IFS
4405
4406  ;;
4407esac
4408fi
4409PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4410if test -n "$PKG_CONFIG"; then
4411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4412$as_echo "$PKG_CONFIG" >&6; }
4413else
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415$as_echo "no" >&6; }
4416fi
4417
4418
4419fi
4420if test -z "$ac_cv_path_PKG_CONFIG"; then
4421  ac_pt_PKG_CONFIG=$PKG_CONFIG
4422  # Extract the first word of "pkg-config", so it can be a program name with args.
4423set dummy pkg-config; ac_word=$2
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425$as_echo_n "checking for $ac_word... " >&6; }
4426if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  case $ac_pt_PKG_CONFIG in
4430  [\\/]* | ?:[\\/]*)
4431  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4432  ;;
4433  *)
4434  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439    for ac_exec_ext in '' $ac_executable_extensions; do
4440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443    break 2
4444  fi
4445done
4446  done
4447IFS=$as_save_IFS
4448
4449  ;;
4450esac
4451fi
4452ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4453if test -n "$ac_pt_PKG_CONFIG"; then
4454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4455$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4456else
4457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458$as_echo "no" >&6; }
4459fi
4460
4461  if test "x$ac_pt_PKG_CONFIG" = x; then
4462    PKG_CONFIG=""
4463  else
4464    case $cross_compiling:$ac_tool_warned in
4465yes:)
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468ac_tool_warned=yes ;;
4469esac
4470    PKG_CONFIG=$ac_pt_PKG_CONFIG
4471  fi
4472else
4473  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4474fi
4475
4476fi
4477if test -n "$PKG_CONFIG"; then
4478	_pkg_min_version=0.9.0
4479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4480$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4481	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4483$as_echo "yes" >&6; }
4484	else
4485		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486$as_echo "no" >&6; }
4487		PKG_CONFIG=""
4488	fi
4489fi
4490# Make sure we can run config.sub.
4491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4492  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4495$as_echo_n "checking build system type... " >&6; }
4496if ${ac_cv_build+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  ac_build_alias=$build_alias
4500test "x$ac_build_alias" = x &&
4501  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4502test "x$ac_build_alias" = x &&
4503  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4505  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4506
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4509$as_echo "$ac_cv_build" >&6; }
4510case $ac_cv_build in
4511*-*-*) ;;
4512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4513esac
4514build=$ac_cv_build
4515ac_save_IFS=$IFS; IFS='-'
4516set x $ac_cv_build
4517shift
4518build_cpu=$1
4519build_vendor=$2
4520shift; shift
4521# Remember, the first character of IFS is used to create $*,
4522# except with old shells:
4523build_os=$*
4524IFS=$ac_save_IFS
4525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4526
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4529$as_echo_n "checking host system type... " >&6; }
4530if ${ac_cv_host+:} false; then :
4531  $as_echo_n "(cached) " >&6
4532else
4533  if test "x$host_alias" = x; then
4534  ac_cv_host=$ac_cv_build
4535else
4536  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4537    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4538fi
4539
4540fi
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4542$as_echo "$ac_cv_host" >&6; }
4543case $ac_cv_host in
4544*-*-*) ;;
4545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4546esac
4547host=$ac_cv_host
4548ac_save_IFS=$IFS; IFS='-'
4549set x $ac_cv_host
4550shift
4551host_cpu=$1
4552host_vendor=$2
4553shift; shift
4554# Remember, the first character of IFS is used to create $*,
4555# except with old shells:
4556host_os=$*
4557IFS=$ac_save_IFS
4558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4559
4560
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4562$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4563if ${ac_cv_path_SED+:} false; then :
4564  $as_echo_n "(cached) " >&6
4565else
4566            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4567     for ac_i in 1 2 3 4 5 6 7; do
4568       ac_script="$ac_script$as_nl$ac_script"
4569     done
4570     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4571     { ac_script=; unset ac_script;}
4572     if test -z "$SED"; then
4573  ac_path_SED_found=false
4574  # Loop through the user's path and test for each of PROGNAME-LIST
4575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578  IFS=$as_save_IFS
4579  test -z "$as_dir" && as_dir=.
4580    for ac_prog in sed gsed; do
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4583      as_fn_executable_p "$ac_path_SED" || continue
4584# Check for GNU ac_path_SED and select it if it is found.
4585  # Check for GNU $ac_path_SED
4586case `"$ac_path_SED" --version 2>&1` in
4587*GNU*)
4588  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4589*)
4590  ac_count=0
4591  $as_echo_n 0123456789 >"conftest.in"
4592  while :
4593  do
4594    cat "conftest.in" "conftest.in" >"conftest.tmp"
4595    mv "conftest.tmp" "conftest.in"
4596    cp "conftest.in" "conftest.nl"
4597    $as_echo '' >> "conftest.nl"
4598    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600    as_fn_arith $ac_count + 1 && ac_count=$as_val
4601    if test $ac_count -gt ${ac_path_SED_max-0}; then
4602      # Best one so far, save it but keep looking for a better one
4603      ac_cv_path_SED="$ac_path_SED"
4604      ac_path_SED_max=$ac_count
4605    fi
4606    # 10*(2^10) chars as input seems more than enough
4607    test $ac_count -gt 10 && break
4608  done
4609  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610esac
4611
4612      $ac_path_SED_found && break 3
4613    done
4614  done
4615  done
4616IFS=$as_save_IFS
4617  if test -z "$ac_cv_path_SED"; then
4618    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4619  fi
4620else
4621  ac_cv_path_SED=$SED
4622fi
4623
4624fi
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4626$as_echo "$ac_cv_path_SED" >&6; }
4627 SED="$ac_cv_path_SED"
4628  rm -f conftest.sed
4629
4630
4631
4632
4633
4634
4635# Check whether --enable-selective-werror was given.
4636if test "${enable_selective_werror+set}" = set; then :
4637  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4638else
4639  SELECTIVE_WERROR=yes
4640fi
4641
4642
4643
4644
4645
4646# -v is too short to test reliably with XORG_TESTSET_CFLAG
4647if test "x$SUNCC" = "xyes"; then
4648    BASE_CFLAGS="-v"
4649else
4650    BASE_CFLAGS=""
4651fi
4652
4653# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667xorg_testset_save_CFLAGS="$CFLAGS"
4668
4669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678int i;
4679_ACEOF
4680if ac_fn_c_try_compile "$LINENO"; then :
4681  xorg_cv_cc_flag_unknown_warning_option=yes
4682else
4683  xorg_cv_cc_flag_unknown_warning_option=no
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4686fi
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4690	CFLAGS="$xorg_testset_save_CFLAGS"
4691fi
4692
4693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4696	fi
4697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h.  */
4705int i;
4706_ACEOF
4707if ac_fn_c_try_compile "$LINENO"; then :
4708  xorg_cv_cc_flag_unused_command_line_argument=yes
4709else
4710  xorg_cv_cc_flag_unused_command_line_argument=no
4711fi
4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4717	CFLAGS="$xorg_testset_save_CFLAGS"
4718fi
4719
4720found="no"
4721
4722	if test $found = "no" ; then
4723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4725		fi
4726
4727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4729		fi
4730
4731		CFLAGS="$CFLAGS -Wall"
4732
4733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4734$as_echo_n "checking if $CC supports -Wall... " >&6; }
4735		cacheid=xorg_cv_cc_flag__Wall
4736		if eval \${$cacheid+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740/* end confdefs.h.  */
4741int i;
4742int
4743main ()
4744{
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_link "$LINENO"; then :
4751  eval $cacheid=yes
4752else
4753  eval $cacheid=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext \
4756    conftest$ac_exeext conftest.$ac_ext
4757fi
4758
4759
4760		CFLAGS="$xorg_testset_save_CFLAGS"
4761
4762		eval supported=\$$cacheid
4763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4764$as_echo "$supported" >&6; }
4765		if test "$supported" = "yes" ; then
4766			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4767			found="yes"
4768		fi
4769	fi
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785xorg_testset_save_CFLAGS="$CFLAGS"
4786
4787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4792  $as_echo_n "(cached) " >&6
4793else
4794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h.  */
4796int i;
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"; then :
4799  xorg_cv_cc_flag_unknown_warning_option=yes
4800else
4801  xorg_cv_cc_flag_unknown_warning_option=no
4802fi
4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804fi
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4808	CFLAGS="$xorg_testset_save_CFLAGS"
4809fi
4810
4811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4814	fi
4815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h.  */
4823int i;
4824_ACEOF
4825if ac_fn_c_try_compile "$LINENO"; then :
4826  xorg_cv_cc_flag_unused_command_line_argument=yes
4827else
4828  xorg_cv_cc_flag_unused_command_line_argument=no
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831fi
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4835	CFLAGS="$xorg_testset_save_CFLAGS"
4836fi
4837
4838found="no"
4839
4840	if test $found = "no" ; then
4841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4843		fi
4844
4845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4847		fi
4848
4849		CFLAGS="$CFLAGS -Wpointer-arith"
4850
4851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4852$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4853		cacheid=xorg_cv_cc_flag__Wpointer_arith
4854		if eval \${$cacheid+:} false; then :
4855  $as_echo_n "(cached) " >&6
4856else
4857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859int i;
4860int
4861main ()
4862{
4863
4864  ;
4865  return 0;
4866}
4867_ACEOF
4868if ac_fn_c_try_link "$LINENO"; then :
4869  eval $cacheid=yes
4870else
4871  eval $cacheid=no
4872fi
4873rm -f core conftest.err conftest.$ac_objext \
4874    conftest$ac_exeext conftest.$ac_ext
4875fi
4876
4877
4878		CFLAGS="$xorg_testset_save_CFLAGS"
4879
4880		eval supported=\$$cacheid
4881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4882$as_echo "$supported" >&6; }
4883		if test "$supported" = "yes" ; then
4884			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4885			found="yes"
4886		fi
4887	fi
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903xorg_testset_save_CFLAGS="$CFLAGS"
4904
4905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913/* end confdefs.h.  */
4914int i;
4915_ACEOF
4916if ac_fn_c_try_compile "$LINENO"; then :
4917  xorg_cv_cc_flag_unknown_warning_option=yes
4918else
4919  xorg_cv_cc_flag_unknown_warning_option=no
4920fi
4921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922fi
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4926	CFLAGS="$xorg_testset_save_CFLAGS"
4927fi
4928
4929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4932	fi
4933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4937  $as_echo_n "(cached) " >&6
4938else
4939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940/* end confdefs.h.  */
4941int i;
4942_ACEOF
4943if ac_fn_c_try_compile "$LINENO"; then :
4944  xorg_cv_cc_flag_unused_command_line_argument=yes
4945else
4946  xorg_cv_cc_flag_unused_command_line_argument=no
4947fi
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949fi
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4953	CFLAGS="$xorg_testset_save_CFLAGS"
4954fi
4955
4956found="no"
4957
4958	if test $found = "no" ; then
4959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4961		fi
4962
4963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4965		fi
4966
4967		CFLAGS="$CFLAGS -Wmissing-declarations"
4968
4969		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4970$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4971		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4972		if eval \${$cacheid+:} false; then :
4973  $as_echo_n "(cached) " >&6
4974else
4975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h.  */
4977int i;
4978int
4979main ()
4980{
4981
4982  ;
4983  return 0;
4984}
4985_ACEOF
4986if ac_fn_c_try_link "$LINENO"; then :
4987  eval $cacheid=yes
4988else
4989  eval $cacheid=no
4990fi
4991rm -f core conftest.err conftest.$ac_objext \
4992    conftest$ac_exeext conftest.$ac_ext
4993fi
4994
4995
4996		CFLAGS="$xorg_testset_save_CFLAGS"
4997
4998		eval supported=\$$cacheid
4999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5000$as_echo "$supported" >&6; }
5001		if test "$supported" = "yes" ; then
5002			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5003			found="yes"
5004		fi
5005	fi
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021xorg_testset_save_CFLAGS="$CFLAGS"
5022
5023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h.  */
5032int i;
5033_ACEOF
5034if ac_fn_c_try_compile "$LINENO"; then :
5035  xorg_cv_cc_flag_unknown_warning_option=yes
5036else
5037  xorg_cv_cc_flag_unknown_warning_option=no
5038fi
5039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040fi
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5044	CFLAGS="$xorg_testset_save_CFLAGS"
5045fi
5046
5047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050	fi
5051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058/* end confdefs.h.  */
5059int i;
5060_ACEOF
5061if ac_fn_c_try_compile "$LINENO"; then :
5062  xorg_cv_cc_flag_unused_command_line_argument=yes
5063else
5064  xorg_cv_cc_flag_unused_command_line_argument=no
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5071	CFLAGS="$xorg_testset_save_CFLAGS"
5072fi
5073
5074found="no"
5075
5076	if test $found = "no" ; then
5077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079		fi
5080
5081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083		fi
5084
5085		CFLAGS="$CFLAGS -Wformat=2"
5086
5087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5088$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5089		cacheid=xorg_cv_cc_flag__Wformat_2
5090		if eval \${$cacheid+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5094/* end confdefs.h.  */
5095int i;
5096int
5097main ()
5098{
5099
5100  ;
5101  return 0;
5102}
5103_ACEOF
5104if ac_fn_c_try_link "$LINENO"; then :
5105  eval $cacheid=yes
5106else
5107  eval $cacheid=no
5108fi
5109rm -f core conftest.err conftest.$ac_objext \
5110    conftest$ac_exeext conftest.$ac_ext
5111fi
5112
5113
5114		CFLAGS="$xorg_testset_save_CFLAGS"
5115
5116		eval supported=\$$cacheid
5117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5118$as_echo "$supported" >&6; }
5119		if test "$supported" = "yes" ; then
5120			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5121			found="yes"
5122		fi
5123	fi
5124
5125	if test $found = "no" ; then
5126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128		fi
5129
5130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5132		fi
5133
5134		CFLAGS="$CFLAGS -Wformat"
5135
5136		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5137$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5138		cacheid=xorg_cv_cc_flag__Wformat
5139		if eval \${$cacheid+:} false; then :
5140  $as_echo_n "(cached) " >&6
5141else
5142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144int i;
5145int
5146main ()
5147{
5148
5149  ;
5150  return 0;
5151}
5152_ACEOF
5153if ac_fn_c_try_link "$LINENO"; then :
5154  eval $cacheid=yes
5155else
5156  eval $cacheid=no
5157fi
5158rm -f core conftest.err conftest.$ac_objext \
5159    conftest$ac_exeext conftest.$ac_ext
5160fi
5161
5162
5163		CFLAGS="$xorg_testset_save_CFLAGS"
5164
5165		eval supported=\$$cacheid
5166		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5167$as_echo "$supported" >&6; }
5168		if test "$supported" = "yes" ; then
5169			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5170			found="yes"
5171		fi
5172	fi
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190xorg_testset_save_CFLAGS="$CFLAGS"
5191
5192if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5193	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5195$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5196if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201int i;
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204  xorg_cv_cc_flag_unknown_warning_option=yes
5205else
5206  xorg_cv_cc_flag_unknown_warning_option=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5211$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5212	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5213	CFLAGS="$xorg_testset_save_CFLAGS"
5214fi
5215
5216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5217	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5218		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219	fi
5220	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5222$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5223if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h.  */
5228int i;
5229_ACEOF
5230if ac_fn_c_try_compile "$LINENO"; then :
5231  xorg_cv_cc_flag_unused_command_line_argument=yes
5232else
5233  xorg_cv_cc_flag_unused_command_line_argument=no
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5238$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5239	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5240	CFLAGS="$xorg_testset_save_CFLAGS"
5241fi
5242
5243found="no"
5244
5245	if test $found = "no" ; then
5246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248		fi
5249
5250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5252		fi
5253
5254		CFLAGS="$CFLAGS -Wstrict-prototypes"
5255
5256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5257$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5258		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5259		if eval \${$cacheid+:} false; then :
5260  $as_echo_n "(cached) " >&6
5261else
5262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h.  */
5264int i;
5265int
5266main ()
5267{
5268
5269  ;
5270  return 0;
5271}
5272_ACEOF
5273if ac_fn_c_try_link "$LINENO"; then :
5274  eval $cacheid=yes
5275else
5276  eval $cacheid=no
5277fi
5278rm -f core conftest.err conftest.$ac_objext \
5279    conftest$ac_exeext conftest.$ac_ext
5280fi
5281
5282
5283		CFLAGS="$xorg_testset_save_CFLAGS"
5284
5285		eval supported=\$$cacheid
5286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5287$as_echo "$supported" >&6; }
5288		if test "$supported" = "yes" ; then
5289			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5290			found="yes"
5291		fi
5292	fi
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308xorg_testset_save_CFLAGS="$CFLAGS"
5309
5310if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5311	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5312	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5313$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5314if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h.  */
5319int i;
5320_ACEOF
5321if ac_fn_c_try_compile "$LINENO"; then :
5322  xorg_cv_cc_flag_unknown_warning_option=yes
5323else
5324  xorg_cv_cc_flag_unknown_warning_option=no
5325fi
5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5329$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5330	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5331	CFLAGS="$xorg_testset_save_CFLAGS"
5332fi
5333
5334if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5335	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5336		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5337	fi
5338	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5339	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5340$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5341if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5342  $as_echo_n "(cached) " >&6
5343else
5344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345/* end confdefs.h.  */
5346int i;
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"; then :
5349  xorg_cv_cc_flag_unused_command_line_argument=yes
5350else
5351  xorg_cv_cc_flag_unused_command_line_argument=no
5352fi
5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354fi
5355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5356$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5357	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5358	CFLAGS="$xorg_testset_save_CFLAGS"
5359fi
5360
5361found="no"
5362
5363	if test $found = "no" ; then
5364		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5365			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366		fi
5367
5368		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370		fi
5371
5372		CFLAGS="$CFLAGS -Wmissing-prototypes"
5373
5374		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5375$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5376		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5377		if eval \${$cacheid+:} false; then :
5378  $as_echo_n "(cached) " >&6
5379else
5380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381/* end confdefs.h.  */
5382int i;
5383int
5384main ()
5385{
5386
5387  ;
5388  return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_link "$LINENO"; then :
5392  eval $cacheid=yes
5393else
5394  eval $cacheid=no
5395fi
5396rm -f core conftest.err conftest.$ac_objext \
5397    conftest$ac_exeext conftest.$ac_ext
5398fi
5399
5400
5401		CFLAGS="$xorg_testset_save_CFLAGS"
5402
5403		eval supported=\$$cacheid
5404		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5405$as_echo "$supported" >&6; }
5406		if test "$supported" = "yes" ; then
5407			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5408			found="yes"
5409		fi
5410	fi
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426xorg_testset_save_CFLAGS="$CFLAGS"
5427
5428if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5429	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5430	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5431$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5432if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5433  $as_echo_n "(cached) " >&6
5434else
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437int i;
5438_ACEOF
5439if ac_fn_c_try_compile "$LINENO"; then :
5440  xorg_cv_cc_flag_unknown_warning_option=yes
5441else
5442  xorg_cv_cc_flag_unknown_warning_option=no
5443fi
5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445fi
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5447$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5449	CFLAGS="$xorg_testset_save_CFLAGS"
5450fi
5451
5452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5455	fi
5456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5458$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5459if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467  xorg_cv_cc_flag_unused_command_line_argument=yes
5468else
5469  xorg_cv_cc_flag_unused_command_line_argument=no
5470fi
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5474$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5475	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5476	CFLAGS="$xorg_testset_save_CFLAGS"
5477fi
5478
5479found="no"
5480
5481	if test $found = "no" ; then
5482		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5483			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5484		fi
5485
5486		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5487			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5488		fi
5489
5490		CFLAGS="$CFLAGS -Wnested-externs"
5491
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5493$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5494		cacheid=xorg_cv_cc_flag__Wnested_externs
5495		if eval \${$cacheid+:} false; then :
5496  $as_echo_n "(cached) " >&6
5497else
5498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h.  */
5500int i;
5501int
5502main ()
5503{
5504
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509if ac_fn_c_try_link "$LINENO"; then :
5510  eval $cacheid=yes
5511else
5512  eval $cacheid=no
5513fi
5514rm -f core conftest.err conftest.$ac_objext \
5515    conftest$ac_exeext conftest.$ac_ext
5516fi
5517
5518
5519		CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521		eval supported=\$$cacheid
5522		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523$as_echo "$supported" >&6; }
5524		if test "$supported" = "yes" ; then
5525			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5526			found="yes"
5527		fi
5528	fi
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544xorg_testset_save_CFLAGS="$CFLAGS"
5545
5546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5549$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5550if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554/* end confdefs.h.  */
5555int i;
5556_ACEOF
5557if ac_fn_c_try_compile "$LINENO"; then :
5558  xorg_cv_cc_flag_unknown_warning_option=yes
5559else
5560  xorg_cv_cc_flag_unknown_warning_option=no
5561fi
5562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563fi
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5565$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5567	CFLAGS="$xorg_testset_save_CFLAGS"
5568fi
5569
5570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5573	fi
5574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5575	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5576$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5577if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5578  $as_echo_n "(cached) " >&6
5579else
5580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582int i;
5583_ACEOF
5584if ac_fn_c_try_compile "$LINENO"; then :
5585  xorg_cv_cc_flag_unused_command_line_argument=yes
5586else
5587  xorg_cv_cc_flag_unused_command_line_argument=no
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590fi
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5592$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5593	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5594	CFLAGS="$xorg_testset_save_CFLAGS"
5595fi
5596
5597found="no"
5598
5599	if test $found = "no" ; then
5600		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5601			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5602		fi
5603
5604		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5605			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5606		fi
5607
5608		CFLAGS="$CFLAGS -Wbad-function-cast"
5609
5610		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5611$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5612		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5613		if eval \${$cacheid+:} false; then :
5614  $as_echo_n "(cached) " >&6
5615else
5616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h.  */
5618int i;
5619int
5620main ()
5621{
5622
5623  ;
5624  return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_link "$LINENO"; then :
5628  eval $cacheid=yes
5629else
5630  eval $cacheid=no
5631fi
5632rm -f core conftest.err conftest.$ac_objext \
5633    conftest$ac_exeext conftest.$ac_ext
5634fi
5635
5636
5637		CFLAGS="$xorg_testset_save_CFLAGS"
5638
5639		eval supported=\$$cacheid
5640		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5641$as_echo "$supported" >&6; }
5642		if test "$supported" = "yes" ; then
5643			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5644			found="yes"
5645		fi
5646	fi
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662xorg_testset_save_CFLAGS="$CFLAGS"
5663
5664if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5665	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5666	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5667$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5668if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5669  $as_echo_n "(cached) " >&6
5670else
5671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h.  */
5673int i;
5674_ACEOF
5675if ac_fn_c_try_compile "$LINENO"; then :
5676  xorg_cv_cc_flag_unknown_warning_option=yes
5677else
5678  xorg_cv_cc_flag_unknown_warning_option=no
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681fi
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5683$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5684	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5685	CFLAGS="$xorg_testset_save_CFLAGS"
5686fi
5687
5688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5689	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5690		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5691	fi
5692	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5693	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5694$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5695if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h.  */
5700int i;
5701_ACEOF
5702if ac_fn_c_try_compile "$LINENO"; then :
5703  xorg_cv_cc_flag_unused_command_line_argument=yes
5704else
5705  xorg_cv_cc_flag_unused_command_line_argument=no
5706fi
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5710$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5712	CFLAGS="$xorg_testset_save_CFLAGS"
5713fi
5714
5715found="no"
5716
5717	if test $found = "no" ; then
5718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5720		fi
5721
5722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5724		fi
5725
5726		CFLAGS="$CFLAGS -Wold-style-definition"
5727
5728		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5729$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5730		cacheid=xorg_cv_cc_flag__Wold_style_definition
5731		if eval \${$cacheid+:} false; then :
5732  $as_echo_n "(cached) " >&6
5733else
5734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735/* end confdefs.h.  */
5736int i;
5737int
5738main ()
5739{
5740
5741  ;
5742  return 0;
5743}
5744_ACEOF
5745if ac_fn_c_try_link "$LINENO"; then :
5746  eval $cacheid=yes
5747else
5748  eval $cacheid=no
5749fi
5750rm -f core conftest.err conftest.$ac_objext \
5751    conftest$ac_exeext conftest.$ac_ext
5752fi
5753
5754
5755		CFLAGS="$xorg_testset_save_CFLAGS"
5756
5757		eval supported=\$$cacheid
5758		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5759$as_echo "$supported" >&6; }
5760		if test "$supported" = "yes" ; then
5761			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5762			found="yes"
5763		fi
5764	fi
5765
5766	if test $found = "no" ; then
5767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769		fi
5770
5771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773		fi
5774
5775		CFLAGS="$CFLAGS -fd"
5776
5777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5778$as_echo_n "checking if $CC supports -fd... " >&6; }
5779		cacheid=xorg_cv_cc_flag__fd
5780		if eval \${$cacheid+:} false; then :
5781  $as_echo_n "(cached) " >&6
5782else
5783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784/* end confdefs.h.  */
5785int i;
5786int
5787main ()
5788{
5789
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794if ac_fn_c_try_link "$LINENO"; then :
5795  eval $cacheid=yes
5796else
5797  eval $cacheid=no
5798fi
5799rm -f core conftest.err conftest.$ac_objext \
5800    conftest$ac_exeext conftest.$ac_ext
5801fi
5802
5803
5804		CFLAGS="$xorg_testset_save_CFLAGS"
5805
5806		eval supported=\$$cacheid
5807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5808$as_echo "$supported" >&6; }
5809		if test "$supported" = "yes" ; then
5810			BASE_CFLAGS="$BASE_CFLAGS -fd"
5811			found="yes"
5812		fi
5813	fi
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829xorg_testset_save_CFLAGS="$CFLAGS"
5830
5831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5836  $as_echo_n "(cached) " >&6
5837else
5838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h.  */
5840int i;
5841_ACEOF
5842if ac_fn_c_try_compile "$LINENO"; then :
5843  xorg_cv_cc_flag_unknown_warning_option=yes
5844else
5845  xorg_cv_cc_flag_unknown_warning_option=no
5846fi
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5852	CFLAGS="$xorg_testset_save_CFLAGS"
5853fi
5854
5855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5858	fi
5859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5863  $as_echo_n "(cached) " >&6
5864else
5865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866/* end confdefs.h.  */
5867int i;
5868_ACEOF
5869if ac_fn_c_try_compile "$LINENO"; then :
5870  xorg_cv_cc_flag_unused_command_line_argument=yes
5871else
5872  xorg_cv_cc_flag_unused_command_line_argument=no
5873fi
5874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875fi
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5879	CFLAGS="$xorg_testset_save_CFLAGS"
5880fi
5881
5882found="no"
5883
5884	if test $found = "no" ; then
5885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887		fi
5888
5889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891		fi
5892
5893		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5894
5895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5896$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5897		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5898		if eval \${$cacheid+:} false; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h.  */
5903int i;
5904int
5905main ()
5906{
5907
5908  ;
5909  return 0;
5910}
5911_ACEOF
5912if ac_fn_c_try_link "$LINENO"; then :
5913  eval $cacheid=yes
5914else
5915  eval $cacheid=no
5916fi
5917rm -f core conftest.err conftest.$ac_objext \
5918    conftest$ac_exeext conftest.$ac_ext
5919fi
5920
5921
5922		CFLAGS="$xorg_testset_save_CFLAGS"
5923
5924		eval supported=\$$cacheid
5925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5926$as_echo "$supported" >&6; }
5927		if test "$supported" = "yes" ; then
5928			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5929			found="yes"
5930		fi
5931	fi
5932
5933
5934
5935
5936
5937# This chunk adds additional warnings that could catch undesired effects.
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951xorg_testset_save_CFLAGS="$CFLAGS"
5952
5953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"; then :
5965  xorg_cv_cc_flag_unknown_warning_option=yes
5966else
5967  xorg_cv_cc_flag_unknown_warning_option=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5974	CFLAGS="$xorg_testset_save_CFLAGS"
5975fi
5976
5977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980	fi
5981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989int i;
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"; then :
5992  xorg_cv_cc_flag_unused_command_line_argument=yes
5993else
5994  xorg_cv_cc_flag_unused_command_line_argument=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004found="no"
6005
6006	if test $found = "no" ; then
6007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009		fi
6010
6011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013		fi
6014
6015		CFLAGS="$CFLAGS -Wunused"
6016
6017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6018$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6019		cacheid=xorg_cv_cc_flag__Wunused
6020		if eval \${$cacheid+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h.  */
6025int i;
6026int
6027main ()
6028{
6029
6030  ;
6031  return 0;
6032}
6033_ACEOF
6034if ac_fn_c_try_link "$LINENO"; then :
6035  eval $cacheid=yes
6036else
6037  eval $cacheid=no
6038fi
6039rm -f core conftest.err conftest.$ac_objext \
6040    conftest$ac_exeext conftest.$ac_ext
6041fi
6042
6043
6044		CFLAGS="$xorg_testset_save_CFLAGS"
6045
6046		eval supported=\$$cacheid
6047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6048$as_echo "$supported" >&6; }
6049		if test "$supported" = "yes" ; then
6050			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6051			found="yes"
6052		fi
6053	fi
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069xorg_testset_save_CFLAGS="$CFLAGS"
6070
6071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083  xorg_cv_cc_flag_unknown_warning_option=yes
6084else
6085  xorg_cv_cc_flag_unknown_warning_option=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6092	CFLAGS="$xorg_testset_save_CFLAGS"
6093fi
6094
6095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098	fi
6099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107int i;
6108_ACEOF
6109if ac_fn_c_try_compile "$LINENO"; then :
6110  xorg_cv_cc_flag_unused_command_line_argument=yes
6111else
6112  xorg_cv_cc_flag_unused_command_line_argument=no
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6119	CFLAGS="$xorg_testset_save_CFLAGS"
6120fi
6121
6122found="no"
6123
6124	if test $found = "no" ; then
6125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127		fi
6128
6129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131		fi
6132
6133		CFLAGS="$CFLAGS -Wuninitialized"
6134
6135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6136$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6137		cacheid=xorg_cv_cc_flag__Wuninitialized
6138		if eval \${$cacheid+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143int i;
6144int
6145main ()
6146{
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_link "$LINENO"; then :
6153  eval $cacheid=yes
6154else
6155  eval $cacheid=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext \
6158    conftest$ac_exeext conftest.$ac_ext
6159fi
6160
6161
6162		CFLAGS="$xorg_testset_save_CFLAGS"
6163
6164		eval supported=\$$cacheid
6165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6166$as_echo "$supported" >&6; }
6167		if test "$supported" = "yes" ; then
6168			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6169			found="yes"
6170		fi
6171	fi
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187xorg_testset_save_CFLAGS="$CFLAGS"
6188
6189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6194  $as_echo_n "(cached) " >&6
6195else
6196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197/* end confdefs.h.  */
6198int i;
6199_ACEOF
6200if ac_fn_c_try_compile "$LINENO"; then :
6201  xorg_cv_cc_flag_unknown_warning_option=yes
6202else
6203  xorg_cv_cc_flag_unknown_warning_option=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206fi
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6210	CFLAGS="$xorg_testset_save_CFLAGS"
6211fi
6212
6213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216	fi
6217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6221  $as_echo_n "(cached) " >&6
6222else
6223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h.  */
6225int i;
6226_ACEOF
6227if ac_fn_c_try_compile "$LINENO"; then :
6228  xorg_cv_cc_flag_unused_command_line_argument=yes
6229else
6230  xorg_cv_cc_flag_unused_command_line_argument=no
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237	CFLAGS="$xorg_testset_save_CFLAGS"
6238fi
6239
6240found="no"
6241
6242	if test $found = "no" ; then
6243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245		fi
6246
6247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249		fi
6250
6251		CFLAGS="$CFLAGS -Wshadow"
6252
6253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6254$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6255		cacheid=xorg_cv_cc_flag__Wshadow
6256		if eval \${$cacheid+:} false; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h.  */
6261int i;
6262int
6263main ()
6264{
6265
6266  ;
6267  return 0;
6268}
6269_ACEOF
6270if ac_fn_c_try_link "$LINENO"; then :
6271  eval $cacheid=yes
6272else
6273  eval $cacheid=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext \
6276    conftest$ac_exeext conftest.$ac_ext
6277fi
6278
6279
6280		CFLAGS="$xorg_testset_save_CFLAGS"
6281
6282		eval supported=\$$cacheid
6283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6284$as_echo "$supported" >&6; }
6285		if test "$supported" = "yes" ; then
6286			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6287			found="yes"
6288		fi
6289	fi
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305xorg_testset_save_CFLAGS="$CFLAGS"
6306
6307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6312  $as_echo_n "(cached) " >&6
6313else
6314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h.  */
6316int i;
6317_ACEOF
6318if ac_fn_c_try_compile "$LINENO"; then :
6319  xorg_cv_cc_flag_unknown_warning_option=yes
6320else
6321  xorg_cv_cc_flag_unknown_warning_option=no
6322fi
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324fi
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6328	CFLAGS="$xorg_testset_save_CFLAGS"
6329fi
6330
6331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6334	fi
6335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h.  */
6343int i;
6344_ACEOF
6345if ac_fn_c_try_compile "$LINENO"; then :
6346  xorg_cv_cc_flag_unused_command_line_argument=yes
6347else
6348  xorg_cv_cc_flag_unused_command_line_argument=no
6349fi
6350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351fi
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6355	CFLAGS="$xorg_testset_save_CFLAGS"
6356fi
6357
6358found="no"
6359
6360	if test $found = "no" ; then
6361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363		fi
6364
6365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6367		fi
6368
6369		CFLAGS="$CFLAGS -Wmissing-noreturn"
6370
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6372$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6373		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6374		if eval \${$cacheid+:} false; then :
6375  $as_echo_n "(cached) " >&6
6376else
6377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378/* end confdefs.h.  */
6379int i;
6380int
6381main ()
6382{
6383
6384  ;
6385  return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_link "$LINENO"; then :
6389  eval $cacheid=yes
6390else
6391  eval $cacheid=no
6392fi
6393rm -f core conftest.err conftest.$ac_objext \
6394    conftest$ac_exeext conftest.$ac_ext
6395fi
6396
6397
6398		CFLAGS="$xorg_testset_save_CFLAGS"
6399
6400		eval supported=\$$cacheid
6401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6402$as_echo "$supported" >&6; }
6403		if test "$supported" = "yes" ; then
6404			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6405			found="yes"
6406		fi
6407	fi
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423xorg_testset_save_CFLAGS="$CFLAGS"
6424
6425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6430  $as_echo_n "(cached) " >&6
6431else
6432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h.  */
6434int i;
6435_ACEOF
6436if ac_fn_c_try_compile "$LINENO"; then :
6437  xorg_cv_cc_flag_unknown_warning_option=yes
6438else
6439  xorg_cv_cc_flag_unknown_warning_option=no
6440fi
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442fi
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6446	CFLAGS="$xorg_testset_save_CFLAGS"
6447fi
6448
6449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6452	fi
6453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6457  $as_echo_n "(cached) " >&6
6458else
6459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h.  */
6461int i;
6462_ACEOF
6463if ac_fn_c_try_compile "$LINENO"; then :
6464  xorg_cv_cc_flag_unused_command_line_argument=yes
6465else
6466  xorg_cv_cc_flag_unused_command_line_argument=no
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469fi
6470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6473	CFLAGS="$xorg_testset_save_CFLAGS"
6474fi
6475
6476found="no"
6477
6478	if test $found = "no" ; then
6479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481		fi
6482
6483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6485		fi
6486
6487		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6488
6489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6490$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6491		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6492		if eval \${$cacheid+:} false; then :
6493  $as_echo_n "(cached) " >&6
6494else
6495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6496/* end confdefs.h.  */
6497int i;
6498int
6499main ()
6500{
6501
6502  ;
6503  return 0;
6504}
6505_ACEOF
6506if ac_fn_c_try_link "$LINENO"; then :
6507  eval $cacheid=yes
6508else
6509  eval $cacheid=no
6510fi
6511rm -f core conftest.err conftest.$ac_objext \
6512    conftest$ac_exeext conftest.$ac_ext
6513fi
6514
6515
6516		CFLAGS="$xorg_testset_save_CFLAGS"
6517
6518		eval supported=\$$cacheid
6519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6520$as_echo "$supported" >&6; }
6521		if test "$supported" = "yes" ; then
6522			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6523			found="yes"
6524		fi
6525	fi
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541xorg_testset_save_CFLAGS="$CFLAGS"
6542
6543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6548  $as_echo_n "(cached) " >&6
6549else
6550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h.  */
6552int i;
6553_ACEOF
6554if ac_fn_c_try_compile "$LINENO"; then :
6555  xorg_cv_cc_flag_unknown_warning_option=yes
6556else
6557  xorg_cv_cc_flag_unknown_warning_option=no
6558fi
6559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6564	CFLAGS="$xorg_testset_save_CFLAGS"
6565fi
6566
6567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6570	fi
6571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6575  $as_echo_n "(cached) " >&6
6576else
6577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578/* end confdefs.h.  */
6579int i;
6580_ACEOF
6581if ac_fn_c_try_compile "$LINENO"; then :
6582  xorg_cv_cc_flag_unused_command_line_argument=yes
6583else
6584  xorg_cv_cc_flag_unused_command_line_argument=no
6585fi
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587fi
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6591	CFLAGS="$xorg_testset_save_CFLAGS"
6592fi
6593
6594found="no"
6595
6596	if test $found = "no" ; then
6597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599		fi
6600
6601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603		fi
6604
6605		CFLAGS="$CFLAGS -Wredundant-decls"
6606
6607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6608$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6609		cacheid=xorg_cv_cc_flag__Wredundant_decls
6610		if eval \${$cacheid+:} false; then :
6611  $as_echo_n "(cached) " >&6
6612else
6613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h.  */
6615int i;
6616int
6617main ()
6618{
6619
6620  ;
6621  return 0;
6622}
6623_ACEOF
6624if ac_fn_c_try_link "$LINENO"; then :
6625  eval $cacheid=yes
6626else
6627  eval $cacheid=no
6628fi
6629rm -f core conftest.err conftest.$ac_objext \
6630    conftest$ac_exeext conftest.$ac_ext
6631fi
6632
6633
6634		CFLAGS="$xorg_testset_save_CFLAGS"
6635
6636		eval supported=\$$cacheid
6637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6638$as_echo "$supported" >&6; }
6639		if test "$supported" = "yes" ; then
6640			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6641			found="yes"
6642		fi
6643	fi
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659xorg_testset_save_CFLAGS="$CFLAGS"
6660
6661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6666  $as_echo_n "(cached) " >&6
6667else
6668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h.  */
6670int i;
6671_ACEOF
6672if ac_fn_c_try_compile "$LINENO"; then :
6673  xorg_cv_cc_flag_unknown_warning_option=yes
6674else
6675  xorg_cv_cc_flag_unknown_warning_option=no
6676fi
6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6682	CFLAGS="$xorg_testset_save_CFLAGS"
6683fi
6684
6685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688	fi
6689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6693  $as_echo_n "(cached) " >&6
6694else
6695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696/* end confdefs.h.  */
6697int i;
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"; then :
6700  xorg_cv_cc_flag_unused_command_line_argument=yes
6701else
6702  xorg_cv_cc_flag_unused_command_line_argument=no
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6709	CFLAGS="$xorg_testset_save_CFLAGS"
6710fi
6711
6712found="no"
6713
6714	if test $found = "no" ; then
6715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717		fi
6718
6719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6721		fi
6722
6723		CFLAGS="$CFLAGS -Wlogical-op"
6724
6725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6726$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6727		cacheid=xorg_cv_cc_flag__Wlogical_op
6728		if eval \${$cacheid+:} false; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732/* end confdefs.h.  */
6733int i;
6734int
6735main ()
6736{
6737
6738  ;
6739  return 0;
6740}
6741_ACEOF
6742if ac_fn_c_try_link "$LINENO"; then :
6743  eval $cacheid=yes
6744else
6745  eval $cacheid=no
6746fi
6747rm -f core conftest.err conftest.$ac_objext \
6748    conftest$ac_exeext conftest.$ac_ext
6749fi
6750
6751
6752		CFLAGS="$xorg_testset_save_CFLAGS"
6753
6754		eval supported=\$$cacheid
6755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6756$as_echo "$supported" >&6; }
6757		if test "$supported" = "yes" ; then
6758			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6759			found="yes"
6760		fi
6761	fi
6762
6763
6764
6765# These are currently disabled because they are noisy.  They will be enabled
6766# in the future once the codebase is sufficiently modernized to silence
6767# them.  For now, I don't want them to drown out the other warnings.
6768# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6769# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6770# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6771
6772# Turn some warnings into errors, so we don't accidently get successful builds
6773# when there are problems that should be fixed.
6774
6775if test "x$SELECTIVE_WERROR" = "xyes" ; then
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789xorg_testset_save_CFLAGS="$CFLAGS"
6790
6791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6792	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6796  $as_echo_n "(cached) " >&6
6797else
6798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800int i;
6801_ACEOF
6802if ac_fn_c_try_compile "$LINENO"; then :
6803  xorg_cv_cc_flag_unknown_warning_option=yes
6804else
6805  xorg_cv_cc_flag_unknown_warning_option=no
6806fi
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6811	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6812	CFLAGS="$xorg_testset_save_CFLAGS"
6813fi
6814
6815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6816	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6817		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6818	fi
6819	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827int i;
6828_ACEOF
6829if ac_fn_c_try_compile "$LINENO"; then :
6830  xorg_cv_cc_flag_unused_command_line_argument=yes
6831else
6832  xorg_cv_cc_flag_unused_command_line_argument=no
6833fi
6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6839	CFLAGS="$xorg_testset_save_CFLAGS"
6840fi
6841
6842found="no"
6843
6844	if test $found = "no" ; then
6845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847		fi
6848
6849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6851		fi
6852
6853		CFLAGS="$CFLAGS -Werror=implicit"
6854
6855		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6856$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6857		cacheid=xorg_cv_cc_flag__Werror_implicit
6858		if eval \${$cacheid+:} false; then :
6859  $as_echo_n "(cached) " >&6
6860else
6861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h.  */
6863int i;
6864int
6865main ()
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872if ac_fn_c_try_link "$LINENO"; then :
6873  eval $cacheid=yes
6874else
6875  eval $cacheid=no
6876fi
6877rm -f core conftest.err conftest.$ac_objext \
6878    conftest$ac_exeext conftest.$ac_ext
6879fi
6880
6881
6882		CFLAGS="$xorg_testset_save_CFLAGS"
6883
6884		eval supported=\$$cacheid
6885		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6886$as_echo "$supported" >&6; }
6887		if test "$supported" = "yes" ; then
6888			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6889			found="yes"
6890		fi
6891	fi
6892
6893	if test $found = "no" ; then
6894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896		fi
6897
6898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6900		fi
6901
6902		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6903
6904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6905$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6906		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6907		if eval \${$cacheid+:} false; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912int i;
6913int
6914main ()
6915{
6916
6917  ;
6918  return 0;
6919}
6920_ACEOF
6921if ac_fn_c_try_link "$LINENO"; then :
6922  eval $cacheid=yes
6923else
6924  eval $cacheid=no
6925fi
6926rm -f core conftest.err conftest.$ac_objext \
6927    conftest$ac_exeext conftest.$ac_ext
6928fi
6929
6930
6931		CFLAGS="$xorg_testset_save_CFLAGS"
6932
6933		eval supported=\$$cacheid
6934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6935$as_echo "$supported" >&6; }
6936		if test "$supported" = "yes" ; then
6937			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6938			found="yes"
6939		fi
6940	fi
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956xorg_testset_save_CFLAGS="$CFLAGS"
6957
6958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h.  */
6967int i;
6968_ACEOF
6969if ac_fn_c_try_compile "$LINENO"; then :
6970  xorg_cv_cc_flag_unknown_warning_option=yes
6971else
6972  xorg_cv_cc_flag_unknown_warning_option=no
6973fi
6974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975fi
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6979	CFLAGS="$xorg_testset_save_CFLAGS"
6980fi
6981
6982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6985	fi
6986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6990  $as_echo_n "(cached) " >&6
6991else
6992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993/* end confdefs.h.  */
6994int i;
6995_ACEOF
6996if ac_fn_c_try_compile "$LINENO"; then :
6997  xorg_cv_cc_flag_unused_command_line_argument=yes
6998else
6999  xorg_cv_cc_flag_unused_command_line_argument=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002fi
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7006	CFLAGS="$xorg_testset_save_CFLAGS"
7007fi
7008
7009found="no"
7010
7011	if test $found = "no" ; then
7012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7014		fi
7015
7016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018		fi
7019
7020		CFLAGS="$CFLAGS -Werror=nonnull"
7021
7022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7023$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7024		cacheid=xorg_cv_cc_flag__Werror_nonnull
7025		if eval \${$cacheid+:} false; then :
7026  $as_echo_n "(cached) " >&6
7027else
7028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h.  */
7030int i;
7031int
7032main ()
7033{
7034
7035  ;
7036  return 0;
7037}
7038_ACEOF
7039if ac_fn_c_try_link "$LINENO"; then :
7040  eval $cacheid=yes
7041else
7042  eval $cacheid=no
7043fi
7044rm -f core conftest.err conftest.$ac_objext \
7045    conftest$ac_exeext conftest.$ac_ext
7046fi
7047
7048
7049		CFLAGS="$xorg_testset_save_CFLAGS"
7050
7051		eval supported=\$$cacheid
7052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7053$as_echo "$supported" >&6; }
7054		if test "$supported" = "yes" ; then
7055			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7056			found="yes"
7057		fi
7058	fi
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074xorg_testset_save_CFLAGS="$CFLAGS"
7075
7076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085int i;
7086_ACEOF
7087if ac_fn_c_try_compile "$LINENO"; then :
7088  xorg_cv_cc_flag_unknown_warning_option=yes
7089else
7090  xorg_cv_cc_flag_unknown_warning_option=no
7091fi
7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7097	CFLAGS="$xorg_testset_save_CFLAGS"
7098fi
7099
7100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	fi
7104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111/* end confdefs.h.  */
7112int i;
7113_ACEOF
7114if ac_fn_c_try_compile "$LINENO"; then :
7115  xorg_cv_cc_flag_unused_command_line_argument=yes
7116else
7117  xorg_cv_cc_flag_unused_command_line_argument=no
7118fi
7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7124	CFLAGS="$xorg_testset_save_CFLAGS"
7125fi
7126
7127found="no"
7128
7129	if test $found = "no" ; then
7130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132		fi
7133
7134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7136		fi
7137
7138		CFLAGS="$CFLAGS -Werror=init-self"
7139
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7141$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7142		cacheid=xorg_cv_cc_flag__Werror_init_self
7143		if eval \${$cacheid+:} false; then :
7144  $as_echo_n "(cached) " >&6
7145else
7146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148int i;
7149int
7150main ()
7151{
7152
7153  ;
7154  return 0;
7155}
7156_ACEOF
7157if ac_fn_c_try_link "$LINENO"; then :
7158  eval $cacheid=yes
7159else
7160  eval $cacheid=no
7161fi
7162rm -f core conftest.err conftest.$ac_objext \
7163    conftest$ac_exeext conftest.$ac_ext
7164fi
7165
7166
7167		CFLAGS="$xorg_testset_save_CFLAGS"
7168
7169		eval supported=\$$cacheid
7170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7171$as_echo "$supported" >&6; }
7172		if test "$supported" = "yes" ; then
7173			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7174			found="yes"
7175		fi
7176	fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192xorg_testset_save_CFLAGS="$CFLAGS"
7193
7194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203int i;
7204_ACEOF
7205if ac_fn_c_try_compile "$LINENO"; then :
7206  xorg_cv_cc_flag_unknown_warning_option=yes
7207else
7208  xorg_cv_cc_flag_unknown_warning_option=no
7209fi
7210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7211fi
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7215	CFLAGS="$xorg_testset_save_CFLAGS"
7216fi
7217
7218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221	fi
7222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7226  $as_echo_n "(cached) " >&6
7227else
7228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229/* end confdefs.h.  */
7230int i;
7231_ACEOF
7232if ac_fn_c_try_compile "$LINENO"; then :
7233  xorg_cv_cc_flag_unused_command_line_argument=yes
7234else
7235  xorg_cv_cc_flag_unused_command_line_argument=no
7236fi
7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238fi
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7242	CFLAGS="$xorg_testset_save_CFLAGS"
7243fi
7244
7245found="no"
7246
7247	if test $found = "no" ; then
7248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250		fi
7251
7252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7254		fi
7255
7256		CFLAGS="$CFLAGS -Werror=main"
7257
7258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7259$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7260		cacheid=xorg_cv_cc_flag__Werror_main
7261		if eval \${$cacheid+:} false; then :
7262  $as_echo_n "(cached) " >&6
7263else
7264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266int i;
7267int
7268main ()
7269{
7270
7271  ;
7272  return 0;
7273}
7274_ACEOF
7275if ac_fn_c_try_link "$LINENO"; then :
7276  eval $cacheid=yes
7277else
7278  eval $cacheid=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext \
7281    conftest$ac_exeext conftest.$ac_ext
7282fi
7283
7284
7285		CFLAGS="$xorg_testset_save_CFLAGS"
7286
7287		eval supported=\$$cacheid
7288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7289$as_echo "$supported" >&6; }
7290		if test "$supported" = "yes" ; then
7291			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7292			found="yes"
7293		fi
7294	fi
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310xorg_testset_save_CFLAGS="$CFLAGS"
7311
7312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7317  $as_echo_n "(cached) " >&6
7318else
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322_ACEOF
7323if ac_fn_c_try_compile "$LINENO"; then :
7324  xorg_cv_cc_flag_unknown_warning_option=yes
7325else
7326  xorg_cv_cc_flag_unknown_warning_option=no
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7333	CFLAGS="$xorg_testset_save_CFLAGS"
7334fi
7335
7336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7339	fi
7340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7344  $as_echo_n "(cached) " >&6
7345else
7346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347/* end confdefs.h.  */
7348int i;
7349_ACEOF
7350if ac_fn_c_try_compile "$LINENO"; then :
7351  xorg_cv_cc_flag_unused_command_line_argument=yes
7352else
7353  xorg_cv_cc_flag_unused_command_line_argument=no
7354fi
7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7360	CFLAGS="$xorg_testset_save_CFLAGS"
7361fi
7362
7363found="no"
7364
7365	if test $found = "no" ; then
7366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368		fi
7369
7370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7372		fi
7373
7374		CFLAGS="$CFLAGS -Werror=missing-braces"
7375
7376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7377$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7378		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7379		if eval \${$cacheid+:} false; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h.  */
7384int i;
7385int
7386main ()
7387{
7388
7389  ;
7390  return 0;
7391}
7392_ACEOF
7393if ac_fn_c_try_link "$LINENO"; then :
7394  eval $cacheid=yes
7395else
7396  eval $cacheid=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext \
7399    conftest$ac_exeext conftest.$ac_ext
7400fi
7401
7402
7403		CFLAGS="$xorg_testset_save_CFLAGS"
7404
7405		eval supported=\$$cacheid
7406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7407$as_echo "$supported" >&6; }
7408		if test "$supported" = "yes" ; then
7409			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7410			found="yes"
7411		fi
7412	fi
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428xorg_testset_save_CFLAGS="$CFLAGS"
7429
7430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438/* end confdefs.h.  */
7439int i;
7440_ACEOF
7441if ac_fn_c_try_compile "$LINENO"; then :
7442  xorg_cv_cc_flag_unknown_warning_option=yes
7443else
7444  xorg_cv_cc_flag_unknown_warning_option=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447fi
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7451	CFLAGS="$xorg_testset_save_CFLAGS"
7452fi
7453
7454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7457	fi
7458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7462  $as_echo_n "(cached) " >&6
7463else
7464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465/* end confdefs.h.  */
7466int i;
7467_ACEOF
7468if ac_fn_c_try_compile "$LINENO"; then :
7469  xorg_cv_cc_flag_unused_command_line_argument=yes
7470else
7471  xorg_cv_cc_flag_unused_command_line_argument=no
7472fi
7473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474fi
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7478	CFLAGS="$xorg_testset_save_CFLAGS"
7479fi
7480
7481found="no"
7482
7483	if test $found = "no" ; then
7484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486		fi
7487
7488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7490		fi
7491
7492		CFLAGS="$CFLAGS -Werror=sequence-point"
7493
7494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7495$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7496		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7497		if eval \${$cacheid+:} false; then :
7498  $as_echo_n "(cached) " >&6
7499else
7500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h.  */
7502int i;
7503int
7504main ()
7505{
7506
7507  ;
7508  return 0;
7509}
7510_ACEOF
7511if ac_fn_c_try_link "$LINENO"; then :
7512  eval $cacheid=yes
7513else
7514  eval $cacheid=no
7515fi
7516rm -f core conftest.err conftest.$ac_objext \
7517    conftest$ac_exeext conftest.$ac_ext
7518fi
7519
7520
7521		CFLAGS="$xorg_testset_save_CFLAGS"
7522
7523		eval supported=\$$cacheid
7524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7525$as_echo "$supported" >&6; }
7526		if test "$supported" = "yes" ; then
7527			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7528			found="yes"
7529		fi
7530	fi
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546xorg_testset_save_CFLAGS="$CFLAGS"
7547
7548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7553  $as_echo_n "(cached) " >&6
7554else
7555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556/* end confdefs.h.  */
7557int i;
7558_ACEOF
7559if ac_fn_c_try_compile "$LINENO"; then :
7560  xorg_cv_cc_flag_unknown_warning_option=yes
7561else
7562  xorg_cv_cc_flag_unknown_warning_option=no
7563fi
7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7565fi
7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7569	CFLAGS="$xorg_testset_save_CFLAGS"
7570fi
7571
7572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575	fi
7576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7580  $as_echo_n "(cached) " >&6
7581else
7582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583/* end confdefs.h.  */
7584int i;
7585_ACEOF
7586if ac_fn_c_try_compile "$LINENO"; then :
7587  xorg_cv_cc_flag_unused_command_line_argument=yes
7588else
7589  xorg_cv_cc_flag_unused_command_line_argument=no
7590fi
7591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7596	CFLAGS="$xorg_testset_save_CFLAGS"
7597fi
7598
7599found="no"
7600
7601	if test $found = "no" ; then
7602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604		fi
7605
7606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7608		fi
7609
7610		CFLAGS="$CFLAGS -Werror=return-type"
7611
7612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7613$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7614		cacheid=xorg_cv_cc_flag__Werror_return_type
7615		if eval \${$cacheid+:} false; then :
7616  $as_echo_n "(cached) " >&6
7617else
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620int i;
7621int
7622main ()
7623{
7624
7625  ;
7626  return 0;
7627}
7628_ACEOF
7629if ac_fn_c_try_link "$LINENO"; then :
7630  eval $cacheid=yes
7631else
7632  eval $cacheid=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext \
7635    conftest$ac_exeext conftest.$ac_ext
7636fi
7637
7638
7639		CFLAGS="$xorg_testset_save_CFLAGS"
7640
7641		eval supported=\$$cacheid
7642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7643$as_echo "$supported" >&6; }
7644		if test "$supported" = "yes" ; then
7645			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7646			found="yes"
7647		fi
7648	fi
7649
7650	if test $found = "no" ; then
7651		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7652			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7653		fi
7654
7655		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7656			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7657		fi
7658
7659		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7660
7661		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7662$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7663		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7664		if eval \${$cacheid+:} false; then :
7665  $as_echo_n "(cached) " >&6
7666else
7667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668/* end confdefs.h.  */
7669int i;
7670int
7671main ()
7672{
7673
7674  ;
7675  return 0;
7676}
7677_ACEOF
7678if ac_fn_c_try_link "$LINENO"; then :
7679  eval $cacheid=yes
7680else
7681  eval $cacheid=no
7682fi
7683rm -f core conftest.err conftest.$ac_objext \
7684    conftest$ac_exeext conftest.$ac_ext
7685fi
7686
7687
7688		CFLAGS="$xorg_testset_save_CFLAGS"
7689
7690		eval supported=\$$cacheid
7691		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692$as_echo "$supported" >&6; }
7693		if test "$supported" = "yes" ; then
7694			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7695			found="yes"
7696		fi
7697	fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713xorg_testset_save_CFLAGS="$CFLAGS"
7714
7715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7720  $as_echo_n "(cached) " >&6
7721else
7722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725_ACEOF
7726if ac_fn_c_try_compile "$LINENO"; then :
7727  xorg_cv_cc_flag_unknown_warning_option=yes
7728else
7729  xorg_cv_cc_flag_unknown_warning_option=no
7730fi
7731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7736	CFLAGS="$xorg_testset_save_CFLAGS"
7737fi
7738
7739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742	fi
7743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7747  $as_echo_n "(cached) " >&6
7748else
7749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h.  */
7751int i;
7752_ACEOF
7753if ac_fn_c_try_compile "$LINENO"; then :
7754  xorg_cv_cc_flag_unused_command_line_argument=yes
7755else
7756  xorg_cv_cc_flag_unused_command_line_argument=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759fi
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7763	CFLAGS="$xorg_testset_save_CFLAGS"
7764fi
7765
7766found="no"
7767
7768	if test $found = "no" ; then
7769		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7771		fi
7772
7773		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775		fi
7776
7777		CFLAGS="$CFLAGS -Werror=trigraphs"
7778
7779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7780$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7781		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7782		if eval \${$cacheid+:} false; then :
7783  $as_echo_n "(cached) " >&6
7784else
7785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h.  */
7787int i;
7788int
7789main ()
7790{
7791
7792  ;
7793  return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797  eval $cacheid=yes
7798else
7799  eval $cacheid=no
7800fi
7801rm -f core conftest.err conftest.$ac_objext \
7802    conftest$ac_exeext conftest.$ac_ext
7803fi
7804
7805
7806		CFLAGS="$xorg_testset_save_CFLAGS"
7807
7808		eval supported=\$$cacheid
7809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7810$as_echo "$supported" >&6; }
7811		if test "$supported" = "yes" ; then
7812			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7813			found="yes"
7814		fi
7815	fi
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831xorg_testset_save_CFLAGS="$CFLAGS"
7832
7833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7838  $as_echo_n "(cached) " >&6
7839else
7840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h.  */
7842int i;
7843_ACEOF
7844if ac_fn_c_try_compile "$LINENO"; then :
7845  xorg_cv_cc_flag_unknown_warning_option=yes
7846else
7847  xorg_cv_cc_flag_unknown_warning_option=no
7848fi
7849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850fi
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7854	CFLAGS="$xorg_testset_save_CFLAGS"
7855fi
7856
7857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7860	fi
7861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866else
7867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869int i;
7870_ACEOF
7871if ac_fn_c_try_compile "$LINENO"; then :
7872  xorg_cv_cc_flag_unused_command_line_argument=yes
7873else
7874  xorg_cv_cc_flag_unused_command_line_argument=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877fi
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7881	CFLAGS="$xorg_testset_save_CFLAGS"
7882fi
7883
7884found="no"
7885
7886	if test $found = "no" ; then
7887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889		fi
7890
7891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893		fi
7894
7895		CFLAGS="$CFLAGS -Werror=array-bounds"
7896
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7898$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7899		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7900		if eval \${$cacheid+:} false; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h.  */
7905int i;
7906int
7907main ()
7908{
7909
7910  ;
7911  return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_link "$LINENO"; then :
7915  eval $cacheid=yes
7916else
7917  eval $cacheid=no
7918fi
7919rm -f core conftest.err conftest.$ac_objext \
7920    conftest$ac_exeext conftest.$ac_ext
7921fi
7922
7923
7924		CFLAGS="$xorg_testset_save_CFLAGS"
7925
7926		eval supported=\$$cacheid
7927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7928$as_echo "$supported" >&6; }
7929		if test "$supported" = "yes" ; then
7930			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7931			found="yes"
7932		fi
7933	fi
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949xorg_testset_save_CFLAGS="$CFLAGS"
7950
7951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7956  $as_echo_n "(cached) " >&6
7957else
7958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959/* end confdefs.h.  */
7960int i;
7961_ACEOF
7962if ac_fn_c_try_compile "$LINENO"; then :
7963  xorg_cv_cc_flag_unknown_warning_option=yes
7964else
7965  xorg_cv_cc_flag_unknown_warning_option=no
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7972	CFLAGS="$xorg_testset_save_CFLAGS"
7973fi
7974
7975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978	fi
7979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7983  $as_echo_n "(cached) " >&6
7984else
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"; then :
7990  xorg_cv_cc_flag_unused_command_line_argument=yes
7991else
7992  xorg_cv_cc_flag_unused_command_line_argument=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995fi
7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999	CFLAGS="$xorg_testset_save_CFLAGS"
8000fi
8001
8002found="no"
8003
8004	if test $found = "no" ; then
8005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007		fi
8008
8009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011		fi
8012
8013		CFLAGS="$CFLAGS -Werror=write-strings"
8014
8015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8016$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8017		cacheid=xorg_cv_cc_flag__Werror_write_strings
8018		if eval \${$cacheid+:} false; then :
8019  $as_echo_n "(cached) " >&6
8020else
8021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h.  */
8023int i;
8024int
8025main ()
8026{
8027
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_link "$LINENO"; then :
8033  eval $cacheid=yes
8034else
8035  eval $cacheid=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext \
8038    conftest$ac_exeext conftest.$ac_ext
8039fi
8040
8041
8042		CFLAGS="$xorg_testset_save_CFLAGS"
8043
8044		eval supported=\$$cacheid
8045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8046$as_echo "$supported" >&6; }
8047		if test "$supported" = "yes" ; then
8048			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8049			found="yes"
8050		fi
8051	fi
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067xorg_testset_save_CFLAGS="$CFLAGS"
8068
8069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8074  $as_echo_n "(cached) " >&6
8075else
8076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078int i;
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"; then :
8081  xorg_cv_cc_flag_unknown_warning_option=yes
8082else
8083  xorg_cv_cc_flag_unknown_warning_option=no
8084fi
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086fi
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8090	CFLAGS="$xorg_testset_save_CFLAGS"
8091fi
8092
8093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8096	fi
8097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8101  $as_echo_n "(cached) " >&6
8102else
8103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104/* end confdefs.h.  */
8105int i;
8106_ACEOF
8107if ac_fn_c_try_compile "$LINENO"; then :
8108  xorg_cv_cc_flag_unused_command_line_argument=yes
8109else
8110  xorg_cv_cc_flag_unused_command_line_argument=no
8111fi
8112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113fi
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8117	CFLAGS="$xorg_testset_save_CFLAGS"
8118fi
8119
8120found="no"
8121
8122	if test $found = "no" ; then
8123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125		fi
8126
8127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8129		fi
8130
8131		CFLAGS="$CFLAGS -Werror=address"
8132
8133		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8134$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8135		cacheid=xorg_cv_cc_flag__Werror_address
8136		if eval \${$cacheid+:} false; then :
8137  $as_echo_n "(cached) " >&6
8138else
8139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140/* end confdefs.h.  */
8141int i;
8142int
8143main ()
8144{
8145
8146  ;
8147  return 0;
8148}
8149_ACEOF
8150if ac_fn_c_try_link "$LINENO"; then :
8151  eval $cacheid=yes
8152else
8153  eval $cacheid=no
8154fi
8155rm -f core conftest.err conftest.$ac_objext \
8156    conftest$ac_exeext conftest.$ac_ext
8157fi
8158
8159
8160		CFLAGS="$xorg_testset_save_CFLAGS"
8161
8162		eval supported=\$$cacheid
8163		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8164$as_echo "$supported" >&6; }
8165		if test "$supported" = "yes" ; then
8166			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8167			found="yes"
8168		fi
8169	fi
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185xorg_testset_save_CFLAGS="$CFLAGS"
8186
8187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8192  $as_echo_n "(cached) " >&6
8193else
8194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195/* end confdefs.h.  */
8196int i;
8197_ACEOF
8198if ac_fn_c_try_compile "$LINENO"; then :
8199  xorg_cv_cc_flag_unknown_warning_option=yes
8200else
8201  xorg_cv_cc_flag_unknown_warning_option=no
8202fi
8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204fi
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8208	CFLAGS="$xorg_testset_save_CFLAGS"
8209fi
8210
8211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8214	fi
8215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222/* end confdefs.h.  */
8223int i;
8224_ACEOF
8225if ac_fn_c_try_compile "$LINENO"; then :
8226  xorg_cv_cc_flag_unused_command_line_argument=yes
8227else
8228  xorg_cv_cc_flag_unused_command_line_argument=no
8229fi
8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8231fi
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8235	CFLAGS="$xorg_testset_save_CFLAGS"
8236fi
8237
8238found="no"
8239
8240	if test $found = "no" ; then
8241		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243		fi
8244
8245		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8247		fi
8248
8249		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8250
8251		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8252$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8253		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8254		if eval \${$cacheid+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h.  */
8259int i;
8260int
8261main ()
8262{
8263
8264  ;
8265  return 0;
8266}
8267_ACEOF
8268if ac_fn_c_try_link "$LINENO"; then :
8269  eval $cacheid=yes
8270else
8271  eval $cacheid=no
8272fi
8273rm -f core conftest.err conftest.$ac_objext \
8274    conftest$ac_exeext conftest.$ac_ext
8275fi
8276
8277
8278		CFLAGS="$xorg_testset_save_CFLAGS"
8279
8280		eval supported=\$$cacheid
8281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8282$as_echo "$supported" >&6; }
8283		if test "$supported" = "yes" ; then
8284			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8285			found="yes"
8286		fi
8287	fi
8288
8289	if test $found = "no" ; then
8290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8292		fi
8293
8294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8296		fi
8297
8298		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8299
8300		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8301$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8302		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8303		if eval \${$cacheid+:} false; then :
8304  $as_echo_n "(cached) " >&6
8305else
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308int i;
8309int
8310main ()
8311{
8312
8313  ;
8314  return 0;
8315}
8316_ACEOF
8317if ac_fn_c_try_link "$LINENO"; then :
8318  eval $cacheid=yes
8319else
8320  eval $cacheid=no
8321fi
8322rm -f core conftest.err conftest.$ac_objext \
8323    conftest$ac_exeext conftest.$ac_ext
8324fi
8325
8326
8327		CFLAGS="$xorg_testset_save_CFLAGS"
8328
8329		eval supported=\$$cacheid
8330		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8331$as_echo "$supported" >&6; }
8332		if test "$supported" = "yes" ; then
8333			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8334			found="yes"
8335		fi
8336	fi
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352xorg_testset_save_CFLAGS="$CFLAGS"
8353
8354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8355	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8357$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8358if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362/* end confdefs.h.  */
8363int i;
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"; then :
8366  xorg_cv_cc_flag_unknown_warning_option=yes
8367else
8368  xorg_cv_cc_flag_unknown_warning_option=no
8369fi
8370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8373$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8374	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8375	CFLAGS="$xorg_testset_save_CFLAGS"
8376fi
8377
8378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8379	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8380		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8381	fi
8382	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8384$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8385if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8386  $as_echo_n "(cached) " >&6
8387else
8388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h.  */
8390int i;
8391_ACEOF
8392if ac_fn_c_try_compile "$LINENO"; then :
8393  xorg_cv_cc_flag_unused_command_line_argument=yes
8394else
8395  xorg_cv_cc_flag_unused_command_line_argument=no
8396fi
8397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398fi
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8400$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8401	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8402	CFLAGS="$xorg_testset_save_CFLAGS"
8403fi
8404
8405found="no"
8406
8407	if test $found = "no" ; then
8408		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8409			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8410		fi
8411
8412		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8413			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414		fi
8415
8416		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8417
8418		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8419$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8420		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8421		if eval \${$cacheid+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h.  */
8426int i;
8427int
8428main ()
8429{
8430
8431  ;
8432  return 0;
8433}
8434_ACEOF
8435if ac_fn_c_try_link "$LINENO"; then :
8436  eval $cacheid=yes
8437else
8438  eval $cacheid=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext \
8441    conftest$ac_exeext conftest.$ac_ext
8442fi
8443
8444
8445		CFLAGS="$xorg_testset_save_CFLAGS"
8446
8447		eval supported=\$$cacheid
8448		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8449$as_echo "$supported" >&6; }
8450		if test "$supported" = "yes" ; then
8451			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8452			found="yes"
8453		fi
8454	fi
8455
8456 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8457else
8458{ $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
8459$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;}
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485_ACEOF
8486if ac_fn_c_try_compile "$LINENO"; then :
8487  xorg_cv_cc_flag_unknown_warning_option=yes
8488else
8489  xorg_cv_cc_flag_unknown_warning_option=no
8490fi
8491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492fi
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8495	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8496	CFLAGS="$xorg_testset_save_CFLAGS"
8497fi
8498
8499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8500	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502	fi
8503	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8507  $as_echo_n "(cached) " >&6
8508else
8509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510/* end confdefs.h.  */
8511int i;
8512_ACEOF
8513if ac_fn_c_try_compile "$LINENO"; then :
8514  xorg_cv_cc_flag_unused_command_line_argument=yes
8515else
8516  xorg_cv_cc_flag_unused_command_line_argument=no
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8522	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8523	CFLAGS="$xorg_testset_save_CFLAGS"
8524fi
8525
8526found="no"
8527
8528	if test $found = "no" ; then
8529		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8530			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531		fi
8532
8533		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8534			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8535		fi
8536
8537		CFLAGS="$CFLAGS -Wimplicit"
8538
8539		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8540$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8541		cacheid=xorg_cv_cc_flag__Wimplicit
8542		if eval \${$cacheid+:} false; then :
8543  $as_echo_n "(cached) " >&6
8544else
8545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546/* end confdefs.h.  */
8547int i;
8548int
8549main ()
8550{
8551
8552  ;
8553  return 0;
8554}
8555_ACEOF
8556if ac_fn_c_try_link "$LINENO"; then :
8557  eval $cacheid=yes
8558else
8559  eval $cacheid=no
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562    conftest$ac_exeext conftest.$ac_ext
8563fi
8564
8565
8566		CFLAGS="$xorg_testset_save_CFLAGS"
8567
8568		eval supported=\$$cacheid
8569		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8570$as_echo "$supported" >&6; }
8571		if test "$supported" = "yes" ; then
8572			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8573			found="yes"
8574		fi
8575	fi
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591xorg_testset_save_CFLAGS="$CFLAGS"
8592
8593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8594	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8598  $as_echo_n "(cached) " >&6
8599else
8600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601/* end confdefs.h.  */
8602int i;
8603_ACEOF
8604if ac_fn_c_try_compile "$LINENO"; then :
8605  xorg_cv_cc_flag_unknown_warning_option=yes
8606else
8607  xorg_cv_cc_flag_unknown_warning_option=no
8608fi
8609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8613	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8614	CFLAGS="$xorg_testset_save_CFLAGS"
8615fi
8616
8617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8618	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8619		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8620	fi
8621	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8625  $as_echo_n "(cached) " >&6
8626else
8627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628/* end confdefs.h.  */
8629int i;
8630_ACEOF
8631if ac_fn_c_try_compile "$LINENO"; then :
8632  xorg_cv_cc_flag_unused_command_line_argument=yes
8633else
8634  xorg_cv_cc_flag_unused_command_line_argument=no
8635fi
8636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637fi
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8641	CFLAGS="$xorg_testset_save_CFLAGS"
8642fi
8643
8644found="no"
8645
8646	if test $found = "no" ; then
8647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649		fi
8650
8651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653		fi
8654
8655		CFLAGS="$CFLAGS -Wnonnull"
8656
8657		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8658$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8659		cacheid=xorg_cv_cc_flag__Wnonnull
8660		if eval \${$cacheid+:} false; then :
8661  $as_echo_n "(cached) " >&6
8662else
8663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h.  */
8665int i;
8666int
8667main ()
8668{
8669
8670  ;
8671  return 0;
8672}
8673_ACEOF
8674if ac_fn_c_try_link "$LINENO"; then :
8675  eval $cacheid=yes
8676else
8677  eval $cacheid=no
8678fi
8679rm -f core conftest.err conftest.$ac_objext \
8680    conftest$ac_exeext conftest.$ac_ext
8681fi
8682
8683
8684		CFLAGS="$xorg_testset_save_CFLAGS"
8685
8686		eval supported=\$$cacheid
8687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8688$as_echo "$supported" >&6; }
8689		if test "$supported" = "yes" ; then
8690			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8691			found="yes"
8692		fi
8693	fi
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709xorg_testset_save_CFLAGS="$CFLAGS"
8710
8711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8716  $as_echo_n "(cached) " >&6
8717else
8718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8719/* end confdefs.h.  */
8720int i;
8721_ACEOF
8722if ac_fn_c_try_compile "$LINENO"; then :
8723  xorg_cv_cc_flag_unknown_warning_option=yes
8724else
8725  xorg_cv_cc_flag_unknown_warning_option=no
8726fi
8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728fi
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8732	CFLAGS="$xorg_testset_save_CFLAGS"
8733fi
8734
8735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8738	fi
8739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746/* end confdefs.h.  */
8747int i;
8748_ACEOF
8749if ac_fn_c_try_compile "$LINENO"; then :
8750  xorg_cv_cc_flag_unused_command_line_argument=yes
8751else
8752  xorg_cv_cc_flag_unused_command_line_argument=no
8753fi
8754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8758	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8759	CFLAGS="$xorg_testset_save_CFLAGS"
8760fi
8761
8762found="no"
8763
8764	if test $found = "no" ; then
8765		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8766			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767		fi
8768
8769		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8770			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8771		fi
8772
8773		CFLAGS="$CFLAGS -Winit-self"
8774
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8776$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8777		cacheid=xorg_cv_cc_flag__Winit_self
8778		if eval \${$cacheid+:} false; then :
8779  $as_echo_n "(cached) " >&6
8780else
8781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782/* end confdefs.h.  */
8783int i;
8784int
8785main ()
8786{
8787
8788  ;
8789  return 0;
8790}
8791_ACEOF
8792if ac_fn_c_try_link "$LINENO"; then :
8793  eval $cacheid=yes
8794else
8795  eval $cacheid=no
8796fi
8797rm -f core conftest.err conftest.$ac_objext \
8798    conftest$ac_exeext conftest.$ac_ext
8799fi
8800
8801
8802		CFLAGS="$xorg_testset_save_CFLAGS"
8803
8804		eval supported=\$$cacheid
8805		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8806$as_echo "$supported" >&6; }
8807		if test "$supported" = "yes" ; then
8808			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8809			found="yes"
8810		fi
8811	fi
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827xorg_testset_save_CFLAGS="$CFLAGS"
8828
8829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8834  $as_echo_n "(cached) " >&6
8835else
8836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837/* end confdefs.h.  */
8838int i;
8839_ACEOF
8840if ac_fn_c_try_compile "$LINENO"; then :
8841  xorg_cv_cc_flag_unknown_warning_option=yes
8842else
8843  xorg_cv_cc_flag_unknown_warning_option=no
8844fi
8845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846fi
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8849	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8850	CFLAGS="$xorg_testset_save_CFLAGS"
8851fi
8852
8853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8854	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8855		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8856	fi
8857	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8861  $as_echo_n "(cached) " >&6
8862else
8863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h.  */
8865int i;
8866_ACEOF
8867if ac_fn_c_try_compile "$LINENO"; then :
8868  xorg_cv_cc_flag_unused_command_line_argument=yes
8869else
8870  xorg_cv_cc_flag_unused_command_line_argument=no
8871fi
8872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8873fi
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8876	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8877	CFLAGS="$xorg_testset_save_CFLAGS"
8878fi
8879
8880found="no"
8881
8882	if test $found = "no" ; then
8883		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885		fi
8886
8887		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8888			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889		fi
8890
8891		CFLAGS="$CFLAGS -Wmain"
8892
8893		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8894$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8895		cacheid=xorg_cv_cc_flag__Wmain
8896		if eval \${$cacheid+:} false; then :
8897  $as_echo_n "(cached) " >&6
8898else
8899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h.  */
8901int i;
8902int
8903main ()
8904{
8905
8906  ;
8907  return 0;
8908}
8909_ACEOF
8910if ac_fn_c_try_link "$LINENO"; then :
8911  eval $cacheid=yes
8912else
8913  eval $cacheid=no
8914fi
8915rm -f core conftest.err conftest.$ac_objext \
8916    conftest$ac_exeext conftest.$ac_ext
8917fi
8918
8919
8920		CFLAGS="$xorg_testset_save_CFLAGS"
8921
8922		eval supported=\$$cacheid
8923		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8924$as_echo "$supported" >&6; }
8925		if test "$supported" = "yes" ; then
8926			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8927			found="yes"
8928		fi
8929	fi
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945xorg_testset_save_CFLAGS="$CFLAGS"
8946
8947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956int i;
8957_ACEOF
8958if ac_fn_c_try_compile "$LINENO"; then :
8959  xorg_cv_cc_flag_unknown_warning_option=yes
8960else
8961  xorg_cv_cc_flag_unknown_warning_option=no
8962fi
8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964fi
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8968	CFLAGS="$xorg_testset_save_CFLAGS"
8969fi
8970
8971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974	fi
8975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8979  $as_echo_n "(cached) " >&6
8980else
8981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982/* end confdefs.h.  */
8983int i;
8984_ACEOF
8985if ac_fn_c_try_compile "$LINENO"; then :
8986  xorg_cv_cc_flag_unused_command_line_argument=yes
8987else
8988  xorg_cv_cc_flag_unused_command_line_argument=no
8989fi
8990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8995	CFLAGS="$xorg_testset_save_CFLAGS"
8996fi
8997
8998found="no"
8999
9000	if test $found = "no" ; then
9001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003		fi
9004
9005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9007		fi
9008
9009		CFLAGS="$CFLAGS -Wmissing-braces"
9010
9011		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9012$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9013		cacheid=xorg_cv_cc_flag__Wmissing_braces
9014		if eval \${$cacheid+:} false; then :
9015  $as_echo_n "(cached) " >&6
9016else
9017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h.  */
9019int i;
9020int
9021main ()
9022{
9023
9024  ;
9025  return 0;
9026}
9027_ACEOF
9028if ac_fn_c_try_link "$LINENO"; then :
9029  eval $cacheid=yes
9030else
9031  eval $cacheid=no
9032fi
9033rm -f core conftest.err conftest.$ac_objext \
9034    conftest$ac_exeext conftest.$ac_ext
9035fi
9036
9037
9038		CFLAGS="$xorg_testset_save_CFLAGS"
9039
9040		eval supported=\$$cacheid
9041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9042$as_echo "$supported" >&6; }
9043		if test "$supported" = "yes" ; then
9044			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9045			found="yes"
9046		fi
9047	fi
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063xorg_testset_save_CFLAGS="$CFLAGS"
9064
9065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9070  $as_echo_n "(cached) " >&6
9071else
9072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073/* end confdefs.h.  */
9074int i;
9075_ACEOF
9076if ac_fn_c_try_compile "$LINENO"; then :
9077  xorg_cv_cc_flag_unknown_warning_option=yes
9078else
9079  xorg_cv_cc_flag_unknown_warning_option=no
9080fi
9081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082fi
9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9086	CFLAGS="$xorg_testset_save_CFLAGS"
9087fi
9088
9089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092	fi
9093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100/* end confdefs.h.  */
9101int i;
9102_ACEOF
9103if ac_fn_c_try_compile "$LINENO"; then :
9104  xorg_cv_cc_flag_unused_command_line_argument=yes
9105else
9106  xorg_cv_cc_flag_unused_command_line_argument=no
9107fi
9108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109fi
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9113	CFLAGS="$xorg_testset_save_CFLAGS"
9114fi
9115
9116found="no"
9117
9118	if test $found = "no" ; then
9119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121		fi
9122
9123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125		fi
9126
9127		CFLAGS="$CFLAGS -Wsequence-point"
9128
9129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9130$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9131		cacheid=xorg_cv_cc_flag__Wsequence_point
9132		if eval \${$cacheid+:} false; then :
9133  $as_echo_n "(cached) " >&6
9134else
9135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136/* end confdefs.h.  */
9137int i;
9138int
9139main ()
9140{
9141
9142  ;
9143  return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_link "$LINENO"; then :
9147  eval $cacheid=yes
9148else
9149  eval $cacheid=no
9150fi
9151rm -f core conftest.err conftest.$ac_objext \
9152    conftest$ac_exeext conftest.$ac_ext
9153fi
9154
9155
9156		CFLAGS="$xorg_testset_save_CFLAGS"
9157
9158		eval supported=\$$cacheid
9159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9160$as_echo "$supported" >&6; }
9161		if test "$supported" = "yes" ; then
9162			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9163			found="yes"
9164		fi
9165	fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181xorg_testset_save_CFLAGS="$CFLAGS"
9182
9183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9188  $as_echo_n "(cached) " >&6
9189else
9190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h.  */
9192int i;
9193_ACEOF
9194if ac_fn_c_try_compile "$LINENO"; then :
9195  xorg_cv_cc_flag_unknown_warning_option=yes
9196else
9197  xorg_cv_cc_flag_unknown_warning_option=no
9198fi
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200fi
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9204	CFLAGS="$xorg_testset_save_CFLAGS"
9205fi
9206
9207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9210	fi
9211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9215  $as_echo_n "(cached) " >&6
9216else
9217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219int i;
9220_ACEOF
9221if ac_fn_c_try_compile "$LINENO"; then :
9222  xorg_cv_cc_flag_unused_command_line_argument=yes
9223else
9224  xorg_cv_cc_flag_unused_command_line_argument=no
9225fi
9226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227fi
9228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9231	CFLAGS="$xorg_testset_save_CFLAGS"
9232fi
9233
9234found="no"
9235
9236	if test $found = "no" ; then
9237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239		fi
9240
9241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9243		fi
9244
9245		CFLAGS="$CFLAGS -Wreturn-type"
9246
9247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9248$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9249		cacheid=xorg_cv_cc_flag__Wreturn_type
9250		if eval \${$cacheid+:} false; then :
9251  $as_echo_n "(cached) " >&6
9252else
9253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254/* end confdefs.h.  */
9255int i;
9256int
9257main ()
9258{
9259
9260  ;
9261  return 0;
9262}
9263_ACEOF
9264if ac_fn_c_try_link "$LINENO"; then :
9265  eval $cacheid=yes
9266else
9267  eval $cacheid=no
9268fi
9269rm -f core conftest.err conftest.$ac_objext \
9270    conftest$ac_exeext conftest.$ac_ext
9271fi
9272
9273
9274		CFLAGS="$xorg_testset_save_CFLAGS"
9275
9276		eval supported=\$$cacheid
9277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9278$as_echo "$supported" >&6; }
9279		if test "$supported" = "yes" ; then
9280			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9281			found="yes"
9282		fi
9283	fi
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299xorg_testset_save_CFLAGS="$CFLAGS"
9300
9301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309/* end confdefs.h.  */
9310int i;
9311_ACEOF
9312if ac_fn_c_try_compile "$LINENO"; then :
9313  xorg_cv_cc_flag_unknown_warning_option=yes
9314else
9315  xorg_cv_cc_flag_unknown_warning_option=no
9316fi
9317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318fi
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9322	CFLAGS="$xorg_testset_save_CFLAGS"
9323fi
9324
9325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9328	fi
9329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9333  $as_echo_n "(cached) " >&6
9334else
9335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h.  */
9337int i;
9338_ACEOF
9339if ac_fn_c_try_compile "$LINENO"; then :
9340  xorg_cv_cc_flag_unused_command_line_argument=yes
9341else
9342  xorg_cv_cc_flag_unused_command_line_argument=no
9343fi
9344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9349	CFLAGS="$xorg_testset_save_CFLAGS"
9350fi
9351
9352found="no"
9353
9354	if test $found = "no" ; then
9355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357		fi
9358
9359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361		fi
9362
9363		CFLAGS="$CFLAGS -Wtrigraphs"
9364
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9366$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9367		cacheid=xorg_cv_cc_flag__Wtrigraphs
9368		if eval \${$cacheid+:} false; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372/* end confdefs.h.  */
9373int i;
9374int
9375main ()
9376{
9377
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_link "$LINENO"; then :
9383  eval $cacheid=yes
9384else
9385  eval $cacheid=no
9386fi
9387rm -f core conftest.err conftest.$ac_objext \
9388    conftest$ac_exeext conftest.$ac_ext
9389fi
9390
9391
9392		CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394		eval supported=\$$cacheid
9395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396$as_echo "$supported" >&6; }
9397		if test "$supported" = "yes" ; then
9398			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9399			found="yes"
9400		fi
9401	fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417xorg_testset_save_CFLAGS="$CFLAGS"
9418
9419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h.  */
9428int i;
9429_ACEOF
9430if ac_fn_c_try_compile "$LINENO"; then :
9431  xorg_cv_cc_flag_unknown_warning_option=yes
9432else
9433  xorg_cv_cc_flag_unknown_warning_option=no
9434fi
9435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436fi
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9440	CFLAGS="$xorg_testset_save_CFLAGS"
9441fi
9442
9443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446	fi
9447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454/* end confdefs.h.  */
9455int i;
9456_ACEOF
9457if ac_fn_c_try_compile "$LINENO"; then :
9458  xorg_cv_cc_flag_unused_command_line_argument=yes
9459else
9460  xorg_cv_cc_flag_unused_command_line_argument=no
9461fi
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9467	CFLAGS="$xorg_testset_save_CFLAGS"
9468fi
9469
9470found="no"
9471
9472	if test $found = "no" ; then
9473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475		fi
9476
9477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9479		fi
9480
9481		CFLAGS="$CFLAGS -Warray-bounds"
9482
9483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9484$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9485		cacheid=xorg_cv_cc_flag__Warray_bounds
9486		if eval \${$cacheid+:} false; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490/* end confdefs.h.  */
9491int i;
9492int
9493main ()
9494{
9495
9496  ;
9497  return 0;
9498}
9499_ACEOF
9500if ac_fn_c_try_link "$LINENO"; then :
9501  eval $cacheid=yes
9502else
9503  eval $cacheid=no
9504fi
9505rm -f core conftest.err conftest.$ac_objext \
9506    conftest$ac_exeext conftest.$ac_ext
9507fi
9508
9509
9510		CFLAGS="$xorg_testset_save_CFLAGS"
9511
9512		eval supported=\$$cacheid
9513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9514$as_echo "$supported" >&6; }
9515		if test "$supported" = "yes" ; then
9516			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9517			found="yes"
9518		fi
9519	fi
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535xorg_testset_save_CFLAGS="$CFLAGS"
9536
9537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545/* end confdefs.h.  */
9546int i;
9547_ACEOF
9548if ac_fn_c_try_compile "$LINENO"; then :
9549  xorg_cv_cc_flag_unknown_warning_option=yes
9550else
9551  xorg_cv_cc_flag_unknown_warning_option=no
9552fi
9553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9558	CFLAGS="$xorg_testset_save_CFLAGS"
9559fi
9560
9561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564	fi
9565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9569  $as_echo_n "(cached) " >&6
9570else
9571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h.  */
9573int i;
9574_ACEOF
9575if ac_fn_c_try_compile "$LINENO"; then :
9576  xorg_cv_cc_flag_unused_command_line_argument=yes
9577else
9578  xorg_cv_cc_flag_unused_command_line_argument=no
9579fi
9580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581fi
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9585	CFLAGS="$xorg_testset_save_CFLAGS"
9586fi
9587
9588found="no"
9589
9590	if test $found = "no" ; then
9591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593		fi
9594
9595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9597		fi
9598
9599		CFLAGS="$CFLAGS -Wwrite-strings"
9600
9601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9602$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9603		cacheid=xorg_cv_cc_flag__Wwrite_strings
9604		if eval \${$cacheid+:} false; then :
9605  $as_echo_n "(cached) " >&6
9606else
9607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h.  */
9609int i;
9610int
9611main ()
9612{
9613
9614  ;
9615  return 0;
9616}
9617_ACEOF
9618if ac_fn_c_try_link "$LINENO"; then :
9619  eval $cacheid=yes
9620else
9621  eval $cacheid=no
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624    conftest$ac_exeext conftest.$ac_ext
9625fi
9626
9627
9628		CFLAGS="$xorg_testset_save_CFLAGS"
9629
9630		eval supported=\$$cacheid
9631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9632$as_echo "$supported" >&6; }
9633		if test "$supported" = "yes" ; then
9634			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9635			found="yes"
9636		fi
9637	fi
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653xorg_testset_save_CFLAGS="$CFLAGS"
9654
9655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9660  $as_echo_n "(cached) " >&6
9661else
9662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663/* end confdefs.h.  */
9664int i;
9665_ACEOF
9666if ac_fn_c_try_compile "$LINENO"; then :
9667  xorg_cv_cc_flag_unknown_warning_option=yes
9668else
9669  xorg_cv_cc_flag_unknown_warning_option=no
9670fi
9671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9676	CFLAGS="$xorg_testset_save_CFLAGS"
9677fi
9678
9679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682	fi
9683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690/* end confdefs.h.  */
9691int i;
9692_ACEOF
9693if ac_fn_c_try_compile "$LINENO"; then :
9694  xorg_cv_cc_flag_unused_command_line_argument=yes
9695else
9696  xorg_cv_cc_flag_unused_command_line_argument=no
9697fi
9698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699fi
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9703	CFLAGS="$xorg_testset_save_CFLAGS"
9704fi
9705
9706found="no"
9707
9708	if test $found = "no" ; then
9709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711		fi
9712
9713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9715		fi
9716
9717		CFLAGS="$CFLAGS -Waddress"
9718
9719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9720$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9721		cacheid=xorg_cv_cc_flag__Waddress
9722		if eval \${$cacheid+:} false; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727int i;
9728int
9729main ()
9730{
9731
9732  ;
9733  return 0;
9734}
9735_ACEOF
9736if ac_fn_c_try_link "$LINENO"; then :
9737  eval $cacheid=yes
9738else
9739  eval $cacheid=no
9740fi
9741rm -f core conftest.err conftest.$ac_objext \
9742    conftest$ac_exeext conftest.$ac_ext
9743fi
9744
9745
9746		CFLAGS="$xorg_testset_save_CFLAGS"
9747
9748		eval supported=\$$cacheid
9749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9750$as_echo "$supported" >&6; }
9751		if test "$supported" = "yes" ; then
9752			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9753			found="yes"
9754		fi
9755	fi
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771xorg_testset_save_CFLAGS="$CFLAGS"
9772
9773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9778  $as_echo_n "(cached) " >&6
9779else
9780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h.  */
9782int i;
9783_ACEOF
9784if ac_fn_c_try_compile "$LINENO"; then :
9785  xorg_cv_cc_flag_unknown_warning_option=yes
9786else
9787  xorg_cv_cc_flag_unknown_warning_option=no
9788fi
9789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790fi
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9794	CFLAGS="$xorg_testset_save_CFLAGS"
9795fi
9796
9797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9800	fi
9801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9805  $as_echo_n "(cached) " >&6
9806else
9807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h.  */
9809int i;
9810_ACEOF
9811if ac_fn_c_try_compile "$LINENO"; then :
9812  xorg_cv_cc_flag_unused_command_line_argument=yes
9813else
9814  xorg_cv_cc_flag_unused_command_line_argument=no
9815fi
9816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9817fi
9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9821	CFLAGS="$xorg_testset_save_CFLAGS"
9822fi
9823
9824found="no"
9825
9826	if test $found = "no" ; then
9827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829		fi
9830
9831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9833		fi
9834
9835		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9836
9837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9838$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9839		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9840		if eval \${$cacheid+:} false; then :
9841  $as_echo_n "(cached) " >&6
9842else
9843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844/* end confdefs.h.  */
9845int i;
9846int
9847main ()
9848{
9849
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854if ac_fn_c_try_link "$LINENO"; then :
9855  eval $cacheid=yes
9856else
9857  eval $cacheid=no
9858fi
9859rm -f core conftest.err conftest.$ac_objext \
9860    conftest$ac_exeext conftest.$ac_ext
9861fi
9862
9863
9864		CFLAGS="$xorg_testset_save_CFLAGS"
9865
9866		eval supported=\$$cacheid
9867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9868$as_echo "$supported" >&6; }
9869		if test "$supported" = "yes" ; then
9870			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9871			found="yes"
9872		fi
9873	fi
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889xorg_testset_save_CFLAGS="$CFLAGS"
9890
9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9892	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9894$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9895if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9896  $as_echo_n "(cached) " >&6
9897else
9898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h.  */
9900int i;
9901_ACEOF
9902if ac_fn_c_try_compile "$LINENO"; then :
9903  xorg_cv_cc_flag_unknown_warning_option=yes
9904else
9905  xorg_cv_cc_flag_unknown_warning_option=no
9906fi
9907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908fi
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9910$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9911	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9912	CFLAGS="$xorg_testset_save_CFLAGS"
9913fi
9914
9915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9916	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9917		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918	fi
9919	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9921$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9922if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9923  $as_echo_n "(cached) " >&6
9924else
9925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926/* end confdefs.h.  */
9927int i;
9928_ACEOF
9929if ac_fn_c_try_compile "$LINENO"; then :
9930  xorg_cv_cc_flag_unused_command_line_argument=yes
9931else
9932  xorg_cv_cc_flag_unused_command_line_argument=no
9933fi
9934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935fi
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9937$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9938	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9939	CFLAGS="$xorg_testset_save_CFLAGS"
9940fi
9941
9942found="no"
9943
9944	if test $found = "no" ; then
9945		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947		fi
9948
9949		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9950			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9951		fi
9952
9953		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9954
9955		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9956$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9957		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9958		if eval \${$cacheid+:} false; then :
9959  $as_echo_n "(cached) " >&6
9960else
9961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h.  */
9963int i;
9964int
9965main ()
9966{
9967
9968  ;
9969  return 0;
9970}
9971_ACEOF
9972if ac_fn_c_try_link "$LINENO"; then :
9973  eval $cacheid=yes
9974else
9975  eval $cacheid=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext \
9978    conftest$ac_exeext conftest.$ac_ext
9979fi
9980
9981
9982		CFLAGS="$xorg_testset_save_CFLAGS"
9983
9984		eval supported=\$$cacheid
9985		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9986$as_echo "$supported" >&6; }
9987		if test "$supported" = "yes" ; then
9988			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9989			found="yes"
9990		fi
9991	fi
9992
9993
9994fi
9995
9996
9997
9998
9999
10000
10001
10002		CWARNFLAGS="$BASE_CFLAGS"
10003		if  test "x$GCC" = xyes ; then
10004		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10005		fi
10006
10007
10008
10009
10010
10011
10012
10013
10014# Check whether --enable-strict-compilation was given.
10015if test "${enable_strict_compilation+set}" = set; then :
10016  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10017else
10018  STRICT_COMPILE=no
10019fi
10020
10021
10022
10023
10024
10025
10026STRICT_CFLAGS=""
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040xorg_testset_save_CFLAGS="$CFLAGS"
10041
10042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052_ACEOF
10053if ac_fn_c_try_compile "$LINENO"; then :
10054  xorg_cv_cc_flag_unknown_warning_option=yes
10055else
10056  xorg_cv_cc_flag_unknown_warning_option=no
10057fi
10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059fi
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10063	CFLAGS="$xorg_testset_save_CFLAGS"
10064fi
10065
10066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10069	fi
10070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10074  $as_echo_n "(cached) " >&6
10075else
10076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077/* end confdefs.h.  */
10078int i;
10079_ACEOF
10080if ac_fn_c_try_compile "$LINENO"; then :
10081  xorg_cv_cc_flag_unused_command_line_argument=yes
10082else
10083  xorg_cv_cc_flag_unused_command_line_argument=no
10084fi
10085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086fi
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10090	CFLAGS="$xorg_testset_save_CFLAGS"
10091fi
10092
10093found="no"
10094
10095	if test $found = "no" ; then
10096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098		fi
10099
10100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102		fi
10103
10104		CFLAGS="$CFLAGS -pedantic"
10105
10106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10107$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10108		cacheid=xorg_cv_cc_flag__pedantic
10109		if eval \${$cacheid+:} false; then :
10110  $as_echo_n "(cached) " >&6
10111else
10112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113/* end confdefs.h.  */
10114int i;
10115int
10116main ()
10117{
10118
10119  ;
10120  return 0;
10121}
10122_ACEOF
10123if ac_fn_c_try_link "$LINENO"; then :
10124  eval $cacheid=yes
10125else
10126  eval $cacheid=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext \
10129    conftest$ac_exeext conftest.$ac_ext
10130fi
10131
10132
10133		CFLAGS="$xorg_testset_save_CFLAGS"
10134
10135		eval supported=\$$cacheid
10136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10137$as_echo "$supported" >&6; }
10138		if test "$supported" = "yes" ; then
10139			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10140			found="yes"
10141		fi
10142	fi
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158xorg_testset_save_CFLAGS="$CFLAGS"
10159
10160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170_ACEOF
10171if ac_fn_c_try_compile "$LINENO"; then :
10172  xorg_cv_cc_flag_unknown_warning_option=yes
10173else
10174  xorg_cv_cc_flag_unknown_warning_option=no
10175fi
10176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177fi
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10181	CFLAGS="$xorg_testset_save_CFLAGS"
10182fi
10183
10184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187	fi
10188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10192  $as_echo_n "(cached) " >&6
10193else
10194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195/* end confdefs.h.  */
10196int i;
10197_ACEOF
10198if ac_fn_c_try_compile "$LINENO"; then :
10199  xorg_cv_cc_flag_unused_command_line_argument=yes
10200else
10201  xorg_cv_cc_flag_unused_command_line_argument=no
10202fi
10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204fi
10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10208	CFLAGS="$xorg_testset_save_CFLAGS"
10209fi
10210
10211found="no"
10212
10213	if test $found = "no" ; then
10214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216		fi
10217
10218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10220		fi
10221
10222		CFLAGS="$CFLAGS -Werror"
10223
10224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10225$as_echo_n "checking if $CC supports -Werror... " >&6; }
10226		cacheid=xorg_cv_cc_flag__Werror
10227		if eval \${$cacheid+:} false; then :
10228  $as_echo_n "(cached) " >&6
10229else
10230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231/* end confdefs.h.  */
10232int i;
10233int
10234main ()
10235{
10236
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241if ac_fn_c_try_link "$LINENO"; then :
10242  eval $cacheid=yes
10243else
10244  eval $cacheid=no
10245fi
10246rm -f core conftest.err conftest.$ac_objext \
10247    conftest$ac_exeext conftest.$ac_ext
10248fi
10249
10250
10251		CFLAGS="$xorg_testset_save_CFLAGS"
10252
10253		eval supported=\$$cacheid
10254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10255$as_echo "$supported" >&6; }
10256		if test "$supported" = "yes" ; then
10257			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10258			found="yes"
10259		fi
10260	fi
10261
10262	if test $found = "no" ; then
10263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265		fi
10266
10267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269		fi
10270
10271		CFLAGS="$CFLAGS -errwarn"
10272
10273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10274$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10275		cacheid=xorg_cv_cc_flag__errwarn
10276		if eval \${$cacheid+:} false; then :
10277  $as_echo_n "(cached) " >&6
10278else
10279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280/* end confdefs.h.  */
10281int i;
10282int
10283main ()
10284{
10285
10286  ;
10287  return 0;
10288}
10289_ACEOF
10290if ac_fn_c_try_link "$LINENO"; then :
10291  eval $cacheid=yes
10292else
10293  eval $cacheid=no
10294fi
10295rm -f core conftest.err conftest.$ac_objext \
10296    conftest$ac_exeext conftest.$ac_ext
10297fi
10298
10299
10300		CFLAGS="$xorg_testset_save_CFLAGS"
10301
10302		eval supported=\$$cacheid
10303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10304$as_echo "$supported" >&6; }
10305		if test "$supported" = "yes" ; then
10306			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10307			found="yes"
10308		fi
10309	fi
10310
10311
10312
10313# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10314# activate it with -Werror, so we add it here explicitly.
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328xorg_testset_save_CFLAGS="$CFLAGS"
10329
10330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10335  $as_echo_n "(cached) " >&6
10336else
10337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339int i;
10340_ACEOF
10341if ac_fn_c_try_compile "$LINENO"; then :
10342  xorg_cv_cc_flag_unknown_warning_option=yes
10343else
10344  xorg_cv_cc_flag_unknown_warning_option=no
10345fi
10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10351	CFLAGS="$xorg_testset_save_CFLAGS"
10352fi
10353
10354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10357	fi
10358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10362  $as_echo_n "(cached) " >&6
10363else
10364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365/* end confdefs.h.  */
10366int i;
10367_ACEOF
10368if ac_fn_c_try_compile "$LINENO"; then :
10369  xorg_cv_cc_flag_unused_command_line_argument=yes
10370else
10371  xorg_cv_cc_flag_unused_command_line_argument=no
10372fi
10373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10374fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10378	CFLAGS="$xorg_testset_save_CFLAGS"
10379fi
10380
10381found="no"
10382
10383	if test $found = "no" ; then
10384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386		fi
10387
10388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10390		fi
10391
10392		CFLAGS="$CFLAGS -Werror=attributes"
10393
10394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10395$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10396		cacheid=xorg_cv_cc_flag__Werror_attributes
10397		if eval \${$cacheid+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402int i;
10403int
10404main ()
10405{
10406
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"; then :
10412  eval $cacheid=yes
10413else
10414  eval $cacheid=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext \
10417    conftest$ac_exeext conftest.$ac_ext
10418fi
10419
10420
10421		CFLAGS="$xorg_testset_save_CFLAGS"
10422
10423		eval supported=\$$cacheid
10424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10425$as_echo "$supported" >&6; }
10426		if test "$supported" = "yes" ; then
10427			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10428			found="yes"
10429		fi
10430	fi
10431
10432
10433
10434if test "x$STRICT_COMPILE" = "xyes"; then
10435    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10436    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10437fi
10438
10439
10440
10441
10442
10443
10444cat >>confdefs.h <<_ACEOF
10445#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10446_ACEOF
10447
10448	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10449	if test "x$PVM" = "x"; then
10450		PVM="0"
10451	fi
10452
10453cat >>confdefs.h <<_ACEOF
10454#define PACKAGE_VERSION_MINOR $PVM
10455_ACEOF
10456
10457	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10458	if test "x$PVP" = "x"; then
10459		PVP="0"
10460	fi
10461
10462cat >>confdefs.h <<_ACEOF
10463#define PACKAGE_VERSION_PATCHLEVEL $PVP
10464_ACEOF
10465
10466
10467
10468CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10469mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10470|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10471echo 'git directory not found: installing possibly empty changelog.' >&2)"
10472
10473
10474
10475
10476macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10477INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10478mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10479|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10480echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10481
10482
10483
10484
10485
10486
10487if test x$APP_MAN_SUFFIX = x    ; then
10488    APP_MAN_SUFFIX=1
10489fi
10490if test x$APP_MAN_DIR = x    ; then
10491    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10492fi
10493
10494if test x$LIB_MAN_SUFFIX = x    ; then
10495    LIB_MAN_SUFFIX=3
10496fi
10497if test x$LIB_MAN_DIR = x    ; then
10498    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10499fi
10500
10501if test x$FILE_MAN_SUFFIX = x    ; then
10502    case $host_os in
10503	# Solaris 2.0 - 11 use SysV man page sections
10504	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10505	*)				FILE_MAN_SUFFIX=5  ;;
10506    esac
10507fi
10508if test x$FILE_MAN_DIR = x    ; then
10509    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10510fi
10511
10512if test x$MISC_MAN_SUFFIX = x    ; then
10513    case $host_os in
10514	# Solaris 2.0 - 11 use SysV man page sections
10515	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10516	*)				MISC_MAN_SUFFIX=7  ;;
10517    esac
10518fi
10519if test x$MISC_MAN_DIR = x    ; then
10520    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10521fi
10522
10523if test x$DRIVER_MAN_SUFFIX = x    ; then
10524    case $host_os in
10525	# Solaris 2.0 - 11 use SysV man page sections
10526	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10527	*)				DRIVER_MAN_SUFFIX=4  ;;
10528    esac
10529fi
10530if test x$DRIVER_MAN_DIR = x    ; then
10531    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10532fi
10533
10534if test x$ADMIN_MAN_SUFFIX = x    ; then
10535    case $host_os in
10536	# Solaris 2.0 - 11 use SysV man page sections
10537	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10538	*)				ADMIN_MAN_SUFFIX=8  ;;
10539    esac
10540fi
10541if test x$ADMIN_MAN_DIR = x    ; then
10542    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10543fi
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559XORG_MAN_PAGE="X Version 11"
10560
10561MAN_SUBSTS="\
10562	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10563	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10564	-e 's|__xservername__|Xorg|g' \
10565	-e 's|__xconfigfile__|xorg.conf|g' \
10566	-e 's|__projectroot__|\$(prefix)|g' \
10567	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10568	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10569	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10570	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10571	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10572	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10573	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10574
10575
10576
10577# Check whether --enable-silent-rules was given.
10578if test "${enable_silent_rules+set}" = set; then :
10579  enableval=$enable_silent_rules;
10580fi
10581
10582case $enable_silent_rules in # (((
10583  yes) AM_DEFAULT_VERBOSITY=0;;
10584   no) AM_DEFAULT_VERBOSITY=1;;
10585    *) AM_DEFAULT_VERBOSITY=0;;
10586esac
10587am_make=${MAKE-make}
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10589$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10590if ${am_cv_make_support_nested_variables+:} false; then :
10591  $as_echo_n "(cached) " >&6
10592else
10593  if $as_echo 'TRUE=$(BAR$(V))
10594BAR0=false
10595BAR1=true
10596V=1
10597am__doit:
10598	@$(TRUE)
10599.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10600  am_cv_make_support_nested_variables=yes
10601else
10602  am_cv_make_support_nested_variables=no
10603fi
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10606$as_echo "$am_cv_make_support_nested_variables" >&6; }
10607if test $am_cv_make_support_nested_variables = yes; then
10608    AM_V='$(V)'
10609  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10610else
10611  AM_V=$AM_DEFAULT_VERBOSITY
10612  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10613fi
10614AM_BACKSLASH='\'
10615
10616
10617
10618# Checks for pkg-config packages
10619
10620pkg_failed=no
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEYES" >&5
10622$as_echo_n "checking for XEYES... " >&6; }
10623
10624if test -n "$XEYES_CFLAGS"; then
10625    pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS"
10626 elif test -n "$PKG_CONFIG"; then
10627    if test -n "$PKG_CONFIG" && \
10628    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xmu xproto >= 7.0.17\""; } >&5
10629  ($PKG_CONFIG --exists --print-errors "x11 xt xext xmu xproto >= 7.0.17") 2>&5
10630  ac_status=$?
10631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10632  test $ac_status = 0; }; then
10633  pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
10634		      test "x$?" != "x0" && pkg_failed=yes
10635else
10636  pkg_failed=yes
10637fi
10638 else
10639    pkg_failed=untried
10640fi
10641if test -n "$XEYES_LIBS"; then
10642    pkg_cv_XEYES_LIBS="$XEYES_LIBS"
10643 elif test -n "$PKG_CONFIG"; then
10644    if test -n "$PKG_CONFIG" && \
10645    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xmu xproto >= 7.0.17\""; } >&5
10646  ($PKG_CONFIG --exists --print-errors "x11 xt xext xmu xproto >= 7.0.17") 2>&5
10647  ac_status=$?
10648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10649  test $ac_status = 0; }; then
10650  pkg_cv_XEYES_LIBS=`$PKG_CONFIG --libs "x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null`
10651		      test "x$?" != "x0" && pkg_failed=yes
10652else
10653  pkg_failed=yes
10654fi
10655 else
10656    pkg_failed=untried
10657fi
10658
10659
10660
10661if test $pkg_failed = yes; then
10662   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663$as_echo "no" >&6; }
10664
10665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10666        _pkg_short_errors_supported=yes
10667else
10668        _pkg_short_errors_supported=no
10669fi
10670        if test $_pkg_short_errors_supported = yes; then
10671	        XEYES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xmu xproto >= 7.0.17" 2>&1`
10672        else
10673	        XEYES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xmu xproto >= 7.0.17" 2>&1`
10674        fi
10675	# Put the nasty error message in config.log where it belongs
10676	echo "$XEYES_PKG_ERRORS" >&5
10677
10678	as_fn_error $? "Package requirements (x11 xt xext xmu xproto >= 7.0.17) were not met:
10679
10680$XEYES_PKG_ERRORS
10681
10682Consider adjusting the PKG_CONFIG_PATH environment variable if you
10683installed software in a non-standard prefix.
10684
10685Alternatively, you may set the environment variables XEYES_CFLAGS
10686and XEYES_LIBS to avoid the need to call pkg-config.
10687See the pkg-config man page for more details." "$LINENO" 5
10688elif test $pkg_failed = untried; then
10689     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690$as_echo "no" >&6; }
10691	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10693as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10694is in your PATH or set the PKG_CONFIG environment variable to the full
10695path to pkg-config.
10696
10697Alternatively, you may set the environment variables XEYES_CFLAGS
10698and XEYES_LIBS to avoid the need to call pkg-config.
10699See the pkg-config man page for more details.
10700
10701To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10702See \`config.log' for more details" "$LINENO" 5; }
10703else
10704	XEYES_CFLAGS=$pkg_cv_XEYES_CFLAGS
10705	XEYES_LIBS=$pkg_cv_XEYES_LIBS
10706        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707$as_echo "yes" >&6; }
10708
10709fi
10710
10711
10712# Check whether --with-xrender was given.
10713if test "${with_xrender+set}" = set; then :
10714  withval=$with_xrender; use_xrender="$withval"
10715else
10716  use_xrender="try"
10717fi
10718
10719if test x$use_xrender != xno ; then
10720
10721pkg_failed=no
10722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5
10723$as_echo_n "checking for XRENDER... " >&6; }
10724
10725if test -n "$XRENDER_CFLAGS"; then
10726    pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS"
10727 elif test -n "$PKG_CONFIG"; then
10728    if test -n "$PKG_CONFIG" && \
10729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
10730  ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
10731  ac_status=$?
10732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10733  test $ac_status = 0; }; then
10734  pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.4" 2>/dev/null`
10735		      test "x$?" != "x0" && pkg_failed=yes
10736else
10737  pkg_failed=yes
10738fi
10739 else
10740    pkg_failed=untried
10741fi
10742if test -n "$XRENDER_LIBS"; then
10743    pkg_cv_XRENDER_LIBS="$XRENDER_LIBS"
10744 elif test -n "$PKG_CONFIG"; then
10745    if test -n "$PKG_CONFIG" && \
10746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5
10747  ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5
10748  ac_status=$?
10749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750  test $ac_status = 0; }; then
10751  pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.4" 2>/dev/null`
10752		      test "x$?" != "x0" && pkg_failed=yes
10753else
10754  pkg_failed=yes
10755fi
10756 else
10757    pkg_failed=untried
10758fi
10759
10760
10761
10762if test $pkg_failed = yes; then
10763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764$as_echo "no" >&6; }
10765
10766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10767        _pkg_short_errors_supported=yes
10768else
10769        _pkg_short_errors_supported=no
10770fi
10771        if test $_pkg_short_errors_supported = yes; then
10772	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
10773        else
10774	        XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.4" 2>&1`
10775        fi
10776	# Put the nasty error message in config.log where it belongs
10777	echo "$XRENDER_PKG_ERRORS" >&5
10778
10779	as_fn_error $? "Package requirements (xrender >= 0.4) were not met:
10780
10781$XRENDER_PKG_ERRORS
10782
10783Consider adjusting the PKG_CONFIG_PATH environment variable if you
10784installed software in a non-standard prefix.
10785
10786Alternatively, you may set the environment variables XRENDER_CFLAGS
10787and XRENDER_LIBS to avoid the need to call pkg-config.
10788See the pkg-config man page for more details." "$LINENO" 5
10789elif test $pkg_failed = untried; then
10790     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10791$as_echo "no" >&6; }
10792	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10794as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10795is in your PATH or set the PKG_CONFIG environment variable to the full
10796path to pkg-config.
10797
10798Alternatively, you may set the environment variables XRENDER_CFLAGS
10799and XRENDER_LIBS to avoid the need to call pkg-config.
10800See the pkg-config man page for more details.
10801
10802To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10803See \`config.log' for more details" "$LINENO" 5; }
10804else
10805	XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS
10806	XRENDER_LIBS=$pkg_cv_XRENDER_LIBS
10807        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808$as_echo "yes" >&6; }
10809
10810fi
10811
10812$as_echo "#define XRENDER 1" >>confdefs.h
10813
10814fi
10815
10816ac_config_files="$ac_config_files Makefile man/Makefile"
10817
10818cat >confcache <<\_ACEOF
10819# This file is a shell script that caches the results of configure
10820# tests run on this system so they can be shared between configure
10821# scripts and configure runs, see configure's option --config-cache.
10822# It is not useful on other systems.  If it contains results you don't
10823# want to keep, you may remove or edit it.
10824#
10825# config.status only pays attention to the cache file if you give it
10826# the --recheck option to rerun configure.
10827#
10828# `ac_cv_env_foo' variables (set or unset) will be overridden when
10829# loading this file, other *unset* `ac_cv_foo' will be assigned the
10830# following values.
10831
10832_ACEOF
10833
10834# The following way of writing the cache mishandles newlines in values,
10835# but we know of no workaround that is simple, portable, and efficient.
10836# So, we kill variables containing newlines.
10837# Ultrix sh set writes to stderr and can't be redirected directly,
10838# and sets the high bit in the cache file unless we assign to the vars.
10839(
10840  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10841    eval ac_val=\$$ac_var
10842    case $ac_val in #(
10843    *${as_nl}*)
10844      case $ac_var in #(
10845      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10846$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10847      esac
10848      case $ac_var in #(
10849      _ | IFS | as_nl) ;; #(
10850      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10851      *) { eval $ac_var=; unset $ac_var;} ;;
10852      esac ;;
10853    esac
10854  done
10855
10856  (set) 2>&1 |
10857    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10858    *${as_nl}ac_space=\ *)
10859      # `set' does not quote correctly, so add quotes: double-quote
10860      # substitution turns \\\\ into \\, and sed turns \\ into \.
10861      sed -n \
10862	"s/'/'\\\\''/g;
10863	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10864      ;; #(
10865    *)
10866      # `set' quotes correctly as required by POSIX, so do not add quotes.
10867      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10868      ;;
10869    esac |
10870    sort
10871) |
10872  sed '
10873     /^ac_cv_env_/b end
10874     t clear
10875     :clear
10876     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10877     t end
10878     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10879     :end' >>confcache
10880if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10881  if test -w "$cache_file"; then
10882    if test "x$cache_file" != "x/dev/null"; then
10883      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10884$as_echo "$as_me: updating cache $cache_file" >&6;}
10885      if test ! -f "$cache_file" || test -h "$cache_file"; then
10886	cat confcache >"$cache_file"
10887      else
10888        case $cache_file in #(
10889        */* | ?:*)
10890	  mv -f confcache "$cache_file"$$ &&
10891	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10892        *)
10893	  mv -f confcache "$cache_file" ;;
10894	esac
10895      fi
10896    fi
10897  else
10898    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10899$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10900  fi
10901fi
10902rm -f confcache
10903
10904test "x$prefix" = xNONE && prefix=$ac_default_prefix
10905# Let make expand exec_prefix.
10906test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10907
10908DEFS=-DHAVE_CONFIG_H
10909
10910ac_libobjs=
10911ac_ltlibobjs=
10912U=
10913for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10914  # 1. Remove the extension, and $U if already installed.
10915  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10916  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10917  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10918  #    will be set to the directory where LIBOBJS objects are built.
10919  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10920  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10921done
10922LIBOBJS=$ac_libobjs
10923
10924LTLIBOBJS=$ac_ltlibobjs
10925
10926
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10928$as_echo_n "checking that generated files are newer than configure... " >&6; }
10929   if test -n "$am_sleep_pid"; then
10930     # Hide warnings about reused PIDs.
10931     wait $am_sleep_pid 2>/dev/null
10932   fi
10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10934$as_echo "done" >&6; }
10935 if test -n "$EXEEXT"; then
10936  am__EXEEXT_TRUE=
10937  am__EXEEXT_FALSE='#'
10938else
10939  am__EXEEXT_TRUE='#'
10940  am__EXEEXT_FALSE=
10941fi
10942
10943if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10944  as_fn_error $? "conditional \"AMDEP\" was never defined.
10945Usually this means the macro was only invoked conditionally." "$LINENO" 5
10946fi
10947if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10948  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10949Usually this means the macro was only invoked conditionally." "$LINENO" 5
10950fi
10951
10952: "${CONFIG_STATUS=./config.status}"
10953ac_write_fail=0
10954ac_clean_files_save=$ac_clean_files
10955ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10957$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10958as_write_fail=0
10959cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10960#! $SHELL
10961# Generated by $as_me.
10962# Run this file to recreate the current configuration.
10963# Compiler output produced by configure, useful for debugging
10964# configure, is in config.log if it exists.
10965
10966debug=false
10967ac_cs_recheck=false
10968ac_cs_silent=false
10969
10970SHELL=\${CONFIG_SHELL-$SHELL}
10971export SHELL
10972_ASEOF
10973cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10974## -------------------- ##
10975## M4sh Initialization. ##
10976## -------------------- ##
10977
10978# Be more Bourne compatible
10979DUALCASE=1; export DUALCASE # for MKS sh
10980if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10981  emulate sh
10982  NULLCMD=:
10983  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10984  # is contrary to our usage.  Disable this feature.
10985  alias -g '${1+"$@"}'='"$@"'
10986  setopt NO_GLOB_SUBST
10987else
10988  case `(set -o) 2>/dev/null` in #(
10989  *posix*) :
10990    set -o posix ;; #(
10991  *) :
10992     ;;
10993esac
10994fi
10995
10996
10997as_nl='
10998'
10999export as_nl
11000# Printing a long string crashes Solaris 7 /usr/bin/printf.
11001as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11002as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11003as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11004# Prefer a ksh shell builtin over an external printf program on Solaris,
11005# but without wasting forks for bash or zsh.
11006if test -z "$BASH_VERSION$ZSH_VERSION" \
11007    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11008  as_echo='print -r --'
11009  as_echo_n='print -rn --'
11010elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11011  as_echo='printf %s\n'
11012  as_echo_n='printf %s'
11013else
11014  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11015    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11016    as_echo_n='/usr/ucb/echo -n'
11017  else
11018    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11019    as_echo_n_body='eval
11020      arg=$1;
11021      case $arg in #(
11022      *"$as_nl"*)
11023	expr "X$arg" : "X\\(.*\\)$as_nl";
11024	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11025      esac;
11026      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11027    '
11028    export as_echo_n_body
11029    as_echo_n='sh -c $as_echo_n_body as_echo'
11030  fi
11031  export as_echo_body
11032  as_echo='sh -c $as_echo_body as_echo'
11033fi
11034
11035# The user is always right.
11036if test "${PATH_SEPARATOR+set}" != set; then
11037  PATH_SEPARATOR=:
11038  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11039    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11040      PATH_SEPARATOR=';'
11041  }
11042fi
11043
11044
11045# IFS
11046# We need space, tab and new line, in precisely that order.  Quoting is
11047# there to prevent editors from complaining about space-tab.
11048# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11049# splitting by setting IFS to empty value.)
11050IFS=" ""	$as_nl"
11051
11052# Find who we are.  Look in the path if we contain no directory separator.
11053as_myself=
11054case $0 in #((
11055  *[\\/]* ) as_myself=$0 ;;
11056  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059  IFS=$as_save_IFS
11060  test -z "$as_dir" && as_dir=.
11061    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11062  done
11063IFS=$as_save_IFS
11064
11065     ;;
11066esac
11067# We did not find ourselves, most probably we were run as `sh COMMAND'
11068# in which case we are not to be found in the path.
11069if test "x$as_myself" = x; then
11070  as_myself=$0
11071fi
11072if test ! -f "$as_myself"; then
11073  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11074  exit 1
11075fi
11076
11077# Unset variables that we do not need and which cause bugs (e.g. in
11078# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11079# suppresses any "Segmentation fault" message there.  '((' could
11080# trigger a bug in pdksh 5.2.14.
11081for as_var in BASH_ENV ENV MAIL MAILPATH
11082do eval test x\${$as_var+set} = xset \
11083  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11084done
11085PS1='$ '
11086PS2='> '
11087PS4='+ '
11088
11089# NLS nuisances.
11090LC_ALL=C
11091export LC_ALL
11092LANGUAGE=C
11093export LANGUAGE
11094
11095# CDPATH.
11096(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11097
11098
11099# as_fn_error STATUS ERROR [LINENO LOG_FD]
11100# ----------------------------------------
11101# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11102# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11103# script with STATUS, using 1 if that was 0.
11104as_fn_error ()
11105{
11106  as_status=$1; test $as_status -eq 0 && as_status=1
11107  if test "$4"; then
11108    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11109    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11110  fi
11111  $as_echo "$as_me: error: $2" >&2
11112  as_fn_exit $as_status
11113} # as_fn_error
11114
11115
11116# as_fn_set_status STATUS
11117# -----------------------
11118# Set $? to STATUS, without forking.
11119as_fn_set_status ()
11120{
11121  return $1
11122} # as_fn_set_status
11123
11124# as_fn_exit STATUS
11125# -----------------
11126# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11127as_fn_exit ()
11128{
11129  set +e
11130  as_fn_set_status $1
11131  exit $1
11132} # as_fn_exit
11133
11134# as_fn_unset VAR
11135# ---------------
11136# Portably unset VAR.
11137as_fn_unset ()
11138{
11139  { eval $1=; unset $1;}
11140}
11141as_unset=as_fn_unset
11142# as_fn_append VAR VALUE
11143# ----------------------
11144# Append the text in VALUE to the end of the definition contained in VAR. Take
11145# advantage of any shell optimizations that allow amortized linear growth over
11146# repeated appends, instead of the typical quadratic growth present in naive
11147# implementations.
11148if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11149  eval 'as_fn_append ()
11150  {
11151    eval $1+=\$2
11152  }'
11153else
11154  as_fn_append ()
11155  {
11156    eval $1=\$$1\$2
11157  }
11158fi # as_fn_append
11159
11160# as_fn_arith ARG...
11161# ------------------
11162# Perform arithmetic evaluation on the ARGs, and store the result in the
11163# global $as_val. Take advantage of shells that can avoid forks. The arguments
11164# must be portable across $(()) and expr.
11165if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11166  eval 'as_fn_arith ()
11167  {
11168    as_val=$(( $* ))
11169  }'
11170else
11171  as_fn_arith ()
11172  {
11173    as_val=`expr "$@" || test $? -eq 1`
11174  }
11175fi # as_fn_arith
11176
11177
11178if expr a : '\(a\)' >/dev/null 2>&1 &&
11179   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11180  as_expr=expr
11181else
11182  as_expr=false
11183fi
11184
11185if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11186  as_basename=basename
11187else
11188  as_basename=false
11189fi
11190
11191if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11192  as_dirname=dirname
11193else
11194  as_dirname=false
11195fi
11196
11197as_me=`$as_basename -- "$0" ||
11198$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11199	 X"$0" : 'X\(//\)$' \| \
11200	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11201$as_echo X/"$0" |
11202    sed '/^.*\/\([^/][^/]*\)\/*$/{
11203	    s//\1/
11204	    q
11205	  }
11206	  /^X\/\(\/\/\)$/{
11207	    s//\1/
11208	    q
11209	  }
11210	  /^X\/\(\/\).*/{
11211	    s//\1/
11212	    q
11213	  }
11214	  s/.*/./; q'`
11215
11216# Avoid depending upon Character Ranges.
11217as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11218as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11219as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11220as_cr_digits='0123456789'
11221as_cr_alnum=$as_cr_Letters$as_cr_digits
11222
11223ECHO_C= ECHO_N= ECHO_T=
11224case `echo -n x` in #(((((
11225-n*)
11226  case `echo 'xy\c'` in
11227  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11228  xy)  ECHO_C='\c';;
11229  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11230       ECHO_T='	';;
11231  esac;;
11232*)
11233  ECHO_N='-n';;
11234esac
11235
11236rm -f conf$$ conf$$.exe conf$$.file
11237if test -d conf$$.dir; then
11238  rm -f conf$$.dir/conf$$.file
11239else
11240  rm -f conf$$.dir
11241  mkdir conf$$.dir 2>/dev/null
11242fi
11243if (echo >conf$$.file) 2>/dev/null; then
11244  if ln -s conf$$.file conf$$ 2>/dev/null; then
11245    as_ln_s='ln -s'
11246    # ... but there are two gotchas:
11247    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11248    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11249    # In both cases, we have to default to `cp -pR'.
11250    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11251      as_ln_s='cp -pR'
11252  elif ln conf$$.file conf$$ 2>/dev/null; then
11253    as_ln_s=ln
11254  else
11255    as_ln_s='cp -pR'
11256  fi
11257else
11258  as_ln_s='cp -pR'
11259fi
11260rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11261rmdir conf$$.dir 2>/dev/null
11262
11263
11264# as_fn_mkdir_p
11265# -------------
11266# Create "$as_dir" as a directory, including parents if necessary.
11267as_fn_mkdir_p ()
11268{
11269
11270  case $as_dir in #(
11271  -*) as_dir=./$as_dir;;
11272  esac
11273  test -d "$as_dir" || eval $as_mkdir_p || {
11274    as_dirs=
11275    while :; do
11276      case $as_dir in #(
11277      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11278      *) as_qdir=$as_dir;;
11279      esac
11280      as_dirs="'$as_qdir' $as_dirs"
11281      as_dir=`$as_dirname -- "$as_dir" ||
11282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11283	 X"$as_dir" : 'X\(//\)[^/]' \| \
11284	 X"$as_dir" : 'X\(//\)$' \| \
11285	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11286$as_echo X"$as_dir" |
11287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11288	    s//\1/
11289	    q
11290	  }
11291	  /^X\(\/\/\)[^/].*/{
11292	    s//\1/
11293	    q
11294	  }
11295	  /^X\(\/\/\)$/{
11296	    s//\1/
11297	    q
11298	  }
11299	  /^X\(\/\).*/{
11300	    s//\1/
11301	    q
11302	  }
11303	  s/.*/./; q'`
11304      test -d "$as_dir" && break
11305    done
11306    test -z "$as_dirs" || eval "mkdir $as_dirs"
11307  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11308
11309
11310} # as_fn_mkdir_p
11311if mkdir -p . 2>/dev/null; then
11312  as_mkdir_p='mkdir -p "$as_dir"'
11313else
11314  test -d ./-p && rmdir ./-p
11315  as_mkdir_p=false
11316fi
11317
11318
11319# as_fn_executable_p FILE
11320# -----------------------
11321# Test if FILE is an executable regular file.
11322as_fn_executable_p ()
11323{
11324  test -f "$1" && test -x "$1"
11325} # as_fn_executable_p
11326as_test_x='test -x'
11327as_executable_p=as_fn_executable_p
11328
11329# Sed expression to map a string onto a valid CPP name.
11330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11331
11332# Sed expression to map a string onto a valid variable name.
11333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11334
11335
11336exec 6>&1
11337## ----------------------------------- ##
11338## Main body of $CONFIG_STATUS script. ##
11339## ----------------------------------- ##
11340_ASEOF
11341test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11342
11343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11344# Save the log message, to keep $0 and so on meaningful, and to
11345# report actual input values of CONFIG_FILES etc. instead of their
11346# values after options handling.
11347ac_log="
11348This file was extended by xeyes $as_me 1.1.2, which was
11349generated by GNU Autoconf 2.69.  Invocation command line was
11350
11351  CONFIG_FILES    = $CONFIG_FILES
11352  CONFIG_HEADERS  = $CONFIG_HEADERS
11353  CONFIG_LINKS    = $CONFIG_LINKS
11354  CONFIG_COMMANDS = $CONFIG_COMMANDS
11355  $ $0 $@
11356
11357on `(hostname || uname -n) 2>/dev/null | sed 1q`
11358"
11359
11360_ACEOF
11361
11362case $ac_config_files in *"
11363"*) set x $ac_config_files; shift; ac_config_files=$*;;
11364esac
11365
11366case $ac_config_headers in *"
11367"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11368esac
11369
11370
11371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11372# Files that config.status was made for.
11373config_files="$ac_config_files"
11374config_headers="$ac_config_headers"
11375config_commands="$ac_config_commands"
11376
11377_ACEOF
11378
11379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11380ac_cs_usage="\
11381\`$as_me' instantiates files and other configuration actions
11382from templates according to the current configuration.  Unless the files
11383and actions are specified as TAGs, all are instantiated by default.
11384
11385Usage: $0 [OPTION]... [TAG]...
11386
11387  -h, --help       print this help, then exit
11388  -V, --version    print version number and configuration settings, then exit
11389      --config     print configuration, then exit
11390  -q, --quiet, --silent
11391                   do not print progress messages
11392  -d, --debug      don't remove temporary files
11393      --recheck    update $as_me by reconfiguring in the same conditions
11394      --file=FILE[:TEMPLATE]
11395                   instantiate the configuration file FILE
11396      --header=FILE[:TEMPLATE]
11397                   instantiate the configuration header FILE
11398
11399Configuration files:
11400$config_files
11401
11402Configuration headers:
11403$config_headers
11404
11405Configuration commands:
11406$config_commands
11407
11408Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11409
11410_ACEOF
11411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11413ac_cs_version="\\
11414xeyes config.status 1.1.2
11415configured by $0, generated by GNU Autoconf 2.69,
11416  with options \\"\$ac_cs_config\\"
11417
11418Copyright (C) 2012 Free Software Foundation, Inc.
11419This config.status script is free software; the Free Software Foundation
11420gives unlimited permission to copy, distribute and modify it."
11421
11422ac_pwd='$ac_pwd'
11423srcdir='$srcdir'
11424INSTALL='$INSTALL'
11425MKDIR_P='$MKDIR_P'
11426AWK='$AWK'
11427test -n "\$AWK" || AWK=awk
11428_ACEOF
11429
11430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11431# The default lists apply if the user does not specify any file.
11432ac_need_defaults=:
11433while test $# != 0
11434do
11435  case $1 in
11436  --*=?*)
11437    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11438    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11439    ac_shift=:
11440    ;;
11441  --*=)
11442    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11443    ac_optarg=
11444    ac_shift=:
11445    ;;
11446  *)
11447    ac_option=$1
11448    ac_optarg=$2
11449    ac_shift=shift
11450    ;;
11451  esac
11452
11453  case $ac_option in
11454  # Handling of the options.
11455  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11456    ac_cs_recheck=: ;;
11457  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11458    $as_echo "$ac_cs_version"; exit ;;
11459  --config | --confi | --conf | --con | --co | --c )
11460    $as_echo "$ac_cs_config"; exit ;;
11461  --debug | --debu | --deb | --de | --d | -d )
11462    debug=: ;;
11463  --file | --fil | --fi | --f )
11464    $ac_shift
11465    case $ac_optarg in
11466    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11467    '') as_fn_error $? "missing file argument" ;;
11468    esac
11469    as_fn_append CONFIG_FILES " '$ac_optarg'"
11470    ac_need_defaults=false;;
11471  --header | --heade | --head | --hea )
11472    $ac_shift
11473    case $ac_optarg in
11474    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11475    esac
11476    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11477    ac_need_defaults=false;;
11478  --he | --h)
11479    # Conflict between --help and --header
11480    as_fn_error $? "ambiguous option: \`$1'
11481Try \`$0 --help' for more information.";;
11482  --help | --hel | -h )
11483    $as_echo "$ac_cs_usage"; exit ;;
11484  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11485  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11486    ac_cs_silent=: ;;
11487
11488  # This is an error.
11489  -*) as_fn_error $? "unrecognized option: \`$1'
11490Try \`$0 --help' for more information." ;;
11491
11492  *) as_fn_append ac_config_targets " $1"
11493     ac_need_defaults=false ;;
11494
11495  esac
11496  shift
11497done
11498
11499ac_configure_extra_args=
11500
11501if $ac_cs_silent; then
11502  exec 6>/dev/null
11503  ac_configure_extra_args="$ac_configure_extra_args --silent"
11504fi
11505
11506_ACEOF
11507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508if \$ac_cs_recheck; then
11509  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11510  shift
11511  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11512  CONFIG_SHELL='$SHELL'
11513  export CONFIG_SHELL
11514  exec "\$@"
11515fi
11516
11517_ACEOF
11518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519exec 5>>config.log
11520{
11521  echo
11522  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11523## Running $as_me. ##
11524_ASBOX
11525  $as_echo "$ac_log"
11526} >&5
11527
11528_ACEOF
11529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11530#
11531# INIT-COMMANDS
11532#
11533AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11534
11535_ACEOF
11536
11537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11538
11539# Handling of arguments.
11540for ac_config_target in $ac_config_targets
11541do
11542  case $ac_config_target in
11543    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11544    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11545    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11546    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11547
11548  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11549  esac
11550done
11551
11552
11553# If the user did not use the arguments to specify the items to instantiate,
11554# then the envvar interface is used.  Set only those that are not.
11555# We use the long form for the default assignment because of an extremely
11556# bizarre bug on SunOS 4.1.3.
11557if $ac_need_defaults; then
11558  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11559  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11560  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11561fi
11562
11563# Have a temporary directory for convenience.  Make it in the build tree
11564# simply because there is no reason against having it here, and in addition,
11565# creating and moving files from /tmp can sometimes cause problems.
11566# Hook for its removal unless debugging.
11567# Note that there is a small window in which the directory will not be cleaned:
11568# after its creation but before its name has been assigned to `$tmp'.
11569$debug ||
11570{
11571  tmp= ac_tmp=
11572  trap 'exit_status=$?
11573  : "${ac_tmp:=$tmp}"
11574  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11575' 0
11576  trap 'as_fn_exit 1' 1 2 13 15
11577}
11578# Create a (secure) tmp directory for tmp files.
11579
11580{
11581  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11582  test -d "$tmp"
11583}  ||
11584{
11585  tmp=./conf$$-$RANDOM
11586  (umask 077 && mkdir "$tmp")
11587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11588ac_tmp=$tmp
11589
11590# Set up the scripts for CONFIG_FILES section.
11591# No need to generate them if there are no CONFIG_FILES.
11592# This happens for instance with `./config.status config.h'.
11593if test -n "$CONFIG_FILES"; then
11594
11595
11596ac_cr=`echo X | tr X '\015'`
11597# On cygwin, bash can eat \r inside `` if the user requested igncr.
11598# But we know of no other shell where ac_cr would be empty at this
11599# point, so we can use a bashism as a fallback.
11600if test "x$ac_cr" = x; then
11601  eval ac_cr=\$\'\\r\'
11602fi
11603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11605  ac_cs_awk_cr='\\r'
11606else
11607  ac_cs_awk_cr=$ac_cr
11608fi
11609
11610echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11611_ACEOF
11612
11613
11614{
11615  echo "cat >conf$$subs.awk <<_ACEOF" &&
11616  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11617  echo "_ACEOF"
11618} >conf$$subs.sh ||
11619  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11621ac_delim='%!_!# '
11622for ac_last_try in false false false false false :; do
11623  . ./conf$$subs.sh ||
11624    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11625
11626  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11627  if test $ac_delim_n = $ac_delim_num; then
11628    break
11629  elif $ac_last_try; then
11630    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11631  else
11632    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11633  fi
11634done
11635rm -f conf$$subs.sh
11636
11637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11639_ACEOF
11640sed -n '
11641h
11642s/^/S["/; s/!.*/"]=/
11643p
11644g
11645s/^[^!]*!//
11646:repl
11647t repl
11648s/'"$ac_delim"'$//
11649t delim
11650:nl
11651h
11652s/\(.\{148\}\)..*/\1/
11653t more1
11654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11655p
11656n
11657b repl
11658:more1
11659s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11660p
11661g
11662s/.\{148\}//
11663t nl
11664:delim
11665h
11666s/\(.\{148\}\)..*/\1/
11667t more2
11668s/["\\]/\\&/g; s/^/"/; s/$/"/
11669p
11670b
11671:more2
11672s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11673p
11674g
11675s/.\{148\}//
11676t delim
11677' <conf$$subs.awk | sed '
11678/^[^""]/{
11679  N
11680  s/\n//
11681}
11682' >>$CONFIG_STATUS || ac_write_fail=1
11683rm -f conf$$subs.awk
11684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11685_ACAWK
11686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11687  for (key in S) S_is_set[key] = 1
11688  FS = ""
11689
11690}
11691{
11692  line = $ 0
11693  nfields = split(line, field, "@")
11694  substed = 0
11695  len = length(field[1])
11696  for (i = 2; i < nfields; i++) {
11697    key = field[i]
11698    keylen = length(key)
11699    if (S_is_set[key]) {
11700      value = S[key]
11701      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11702      len += length(value) + length(field[++i])
11703      substed = 1
11704    } else
11705      len += 1 + keylen
11706  }
11707
11708  print line
11709}
11710
11711_ACAWK
11712_ACEOF
11713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11715  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11716else
11717  cat
11718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11719  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11720_ACEOF
11721
11722# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11724# trailing colons and then remove the whole line if VPATH becomes empty
11725# (actually we leave an empty line to preserve line numbers).
11726if test "x$srcdir" = x.; then
11727  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11728h
11729s///
11730s/^/:/
11731s/[	 ]*$/:/
11732s/:\$(srcdir):/:/g
11733s/:\${srcdir}:/:/g
11734s/:@srcdir@:/:/g
11735s/^:*//
11736s/:*$//
11737x
11738s/\(=[	 ]*\).*/\1/
11739G
11740s/\n//
11741s/^[^=]*=[	 ]*$//
11742}'
11743fi
11744
11745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11746fi # test -n "$CONFIG_FILES"
11747
11748# Set up the scripts for CONFIG_HEADERS section.
11749# No need to generate them if there are no CONFIG_HEADERS.
11750# This happens for instance with `./config.status Makefile'.
11751if test -n "$CONFIG_HEADERS"; then
11752cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11753BEGIN {
11754_ACEOF
11755
11756# Transform confdefs.h into an awk script `defines.awk', embedded as
11757# here-document in config.status, that substitutes the proper values into
11758# config.h.in to produce config.h.
11759
11760# Create a delimiter string that does not exist in confdefs.h, to ease
11761# handling of long lines.
11762ac_delim='%!_!# '
11763for ac_last_try in false false :; do
11764  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11765  if test -z "$ac_tt"; then
11766    break
11767  elif $ac_last_try; then
11768    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11769  else
11770    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11771  fi
11772done
11773
11774# For the awk script, D is an array of macro values keyed by name,
11775# likewise P contains macro parameters if any.  Preserve backslash
11776# newline sequences.
11777
11778ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11779sed -n '
11780s/.\{148\}/&'"$ac_delim"'/g
11781t rset
11782:rset
11783s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11784t def
11785d
11786:def
11787s/\\$//
11788t bsnl
11789s/["\\]/\\&/g
11790s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11791D["\1"]=" \3"/p
11792s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11793d
11794:bsnl
11795s/["\\]/\\&/g
11796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11797D["\1"]=" \3\\\\\\n"\\/p
11798t cont
11799s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11800t cont
11801d
11802:cont
11803n
11804s/.\{148\}/&'"$ac_delim"'/g
11805t clear
11806:clear
11807s/\\$//
11808t bsnlc
11809s/["\\]/\\&/g; s/^/"/; s/$/"/p
11810d
11811:bsnlc
11812s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11813b cont
11814' <confdefs.h | sed '
11815s/'"$ac_delim"'/"\\\
11816"/g' >>$CONFIG_STATUS || ac_write_fail=1
11817
11818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11819  for (key in D) D_is_set[key] = 1
11820  FS = ""
11821}
11822/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11823  line = \$ 0
11824  split(line, arg, " ")
11825  if (arg[1] == "#") {
11826    defundef = arg[2]
11827    mac1 = arg[3]
11828  } else {
11829    defundef = substr(arg[1], 2)
11830    mac1 = arg[2]
11831  }
11832  split(mac1, mac2, "(") #)
11833  macro = mac2[1]
11834  prefix = substr(line, 1, index(line, defundef) - 1)
11835  if (D_is_set[macro]) {
11836    # Preserve the white space surrounding the "#".
11837    print prefix "define", macro P[macro] D[macro]
11838    next
11839  } else {
11840    # Replace #undef with comments.  This is necessary, for example,
11841    # in the case of _POSIX_SOURCE, which is predefined and required
11842    # on some systems where configure will not decide to define it.
11843    if (defundef == "undef") {
11844      print "/*", prefix defundef, macro, "*/"
11845      next
11846    }
11847  }
11848}
11849{ print }
11850_ACAWK
11851_ACEOF
11852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11853  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11854fi # test -n "$CONFIG_HEADERS"
11855
11856
11857eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11858shift
11859for ac_tag
11860do
11861  case $ac_tag in
11862  :[FHLC]) ac_mode=$ac_tag; continue;;
11863  esac
11864  case $ac_mode$ac_tag in
11865  :[FHL]*:*);;
11866  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11867  :[FH]-) ac_tag=-:-;;
11868  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11869  esac
11870  ac_save_IFS=$IFS
11871  IFS=:
11872  set x $ac_tag
11873  IFS=$ac_save_IFS
11874  shift
11875  ac_file=$1
11876  shift
11877
11878  case $ac_mode in
11879  :L) ac_source=$1;;
11880  :[FH])
11881    ac_file_inputs=
11882    for ac_f
11883    do
11884      case $ac_f in
11885      -) ac_f="$ac_tmp/stdin";;
11886      *) # Look for the file first in the build tree, then in the source tree
11887	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11888	 # because $ac_f cannot contain `:'.
11889	 test -f "$ac_f" ||
11890	   case $ac_f in
11891	   [\\/$]*) false;;
11892	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11893	   esac ||
11894	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11895      esac
11896      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11897      as_fn_append ac_file_inputs " '$ac_f'"
11898    done
11899
11900    # Let's still pretend it is `configure' which instantiates (i.e., don't
11901    # use $as_me), people would be surprised to read:
11902    #    /* config.h.  Generated by config.status.  */
11903    configure_input='Generated from '`
11904	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11905	`' by configure.'
11906    if test x"$ac_file" != x-; then
11907      configure_input="$ac_file.  $configure_input"
11908      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11909$as_echo "$as_me: creating $ac_file" >&6;}
11910    fi
11911    # Neutralize special characters interpreted by sed in replacement strings.
11912    case $configure_input in #(
11913    *\&* | *\|* | *\\* )
11914       ac_sed_conf_input=`$as_echo "$configure_input" |
11915       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11916    *) ac_sed_conf_input=$configure_input;;
11917    esac
11918
11919    case $ac_tag in
11920    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11921      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11922    esac
11923    ;;
11924  esac
11925
11926  ac_dir=`$as_dirname -- "$ac_file" ||
11927$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928	 X"$ac_file" : 'X\(//\)[^/]' \| \
11929	 X"$ac_file" : 'X\(//\)$' \| \
11930	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11931$as_echo X"$ac_file" |
11932    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11933	    s//\1/
11934	    q
11935	  }
11936	  /^X\(\/\/\)[^/].*/{
11937	    s//\1/
11938	    q
11939	  }
11940	  /^X\(\/\/\)$/{
11941	    s//\1/
11942	    q
11943	  }
11944	  /^X\(\/\).*/{
11945	    s//\1/
11946	    q
11947	  }
11948	  s/.*/./; q'`
11949  as_dir="$ac_dir"; as_fn_mkdir_p
11950  ac_builddir=.
11951
11952case "$ac_dir" in
11953.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11954*)
11955  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11956  # A ".." for each directory in $ac_dir_suffix.
11957  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11958  case $ac_top_builddir_sub in
11959  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11960  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11961  esac ;;
11962esac
11963ac_abs_top_builddir=$ac_pwd
11964ac_abs_builddir=$ac_pwd$ac_dir_suffix
11965# for backward compatibility:
11966ac_top_builddir=$ac_top_build_prefix
11967
11968case $srcdir in
11969  .)  # We are building in place.
11970    ac_srcdir=.
11971    ac_top_srcdir=$ac_top_builddir_sub
11972    ac_abs_top_srcdir=$ac_pwd ;;
11973  [\\/]* | ?:[\\/]* )  # Absolute name.
11974    ac_srcdir=$srcdir$ac_dir_suffix;
11975    ac_top_srcdir=$srcdir
11976    ac_abs_top_srcdir=$srcdir ;;
11977  *) # Relative name.
11978    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11979    ac_top_srcdir=$ac_top_build_prefix$srcdir
11980    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11981esac
11982ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11983
11984
11985  case $ac_mode in
11986  :F)
11987  #
11988  # CONFIG_FILE
11989  #
11990
11991  case $INSTALL in
11992  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11993  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11994  esac
11995  ac_MKDIR_P=$MKDIR_P
11996  case $MKDIR_P in
11997  [\\/$]* | ?:[\\/]* ) ;;
11998  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11999  esac
12000_ACEOF
12001
12002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003# If the template does not know about datarootdir, expand it.
12004# FIXME: This hack should be removed a few years after 2.60.
12005ac_datarootdir_hack=; ac_datarootdir_seen=
12006ac_sed_dataroot='
12007/datarootdir/ {
12008  p
12009  q
12010}
12011/@datadir@/p
12012/@docdir@/p
12013/@infodir@/p
12014/@localedir@/p
12015/@mandir@/p'
12016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12017*datarootdir*) ac_datarootdir_seen=yes;;
12018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12021_ACEOF
12022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12023  ac_datarootdir_hack='
12024  s&@datadir@&$datadir&g
12025  s&@docdir@&$docdir&g
12026  s&@infodir@&$infodir&g
12027  s&@localedir@&$localedir&g
12028  s&@mandir@&$mandir&g
12029  s&\\\${datarootdir}&$datarootdir&g' ;;
12030esac
12031_ACEOF
12032
12033# Neutralize VPATH when `$srcdir' = `.'.
12034# Shell code in configure.ac might set extrasub.
12035# FIXME: do we really want to maintain this feature?
12036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037ac_sed_extra="$ac_vpsub
12038$extrasub
12039_ACEOF
12040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12041:t
12042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12043s|@configure_input@|$ac_sed_conf_input|;t t
12044s&@top_builddir@&$ac_top_builddir_sub&;t t
12045s&@top_build_prefix@&$ac_top_build_prefix&;t t
12046s&@srcdir@&$ac_srcdir&;t t
12047s&@abs_srcdir@&$ac_abs_srcdir&;t t
12048s&@top_srcdir@&$ac_top_srcdir&;t t
12049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12050s&@builddir@&$ac_builddir&;t t
12051s&@abs_builddir@&$ac_abs_builddir&;t t
12052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12053s&@INSTALL@&$ac_INSTALL&;t t
12054s&@MKDIR_P@&$ac_MKDIR_P&;t t
12055$ac_datarootdir_hack
12056"
12057eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12058  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12059
12060test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12061  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12062  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12063      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12065which seems to be undefined.  Please make sure it is defined" >&5
12066$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12067which seems to be undefined.  Please make sure it is defined" >&2;}
12068
12069  rm -f "$ac_tmp/stdin"
12070  case $ac_file in
12071  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12072  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12073  esac \
12074  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12075 ;;
12076  :H)
12077  #
12078  # CONFIG_HEADER
12079  #
12080  if test x"$ac_file" != x-; then
12081    {
12082      $as_echo "/* $configure_input  */" \
12083      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12084    } >"$ac_tmp/config.h" \
12085      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12086    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12087      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12088$as_echo "$as_me: $ac_file is unchanged" >&6;}
12089    else
12090      rm -f "$ac_file"
12091      mv "$ac_tmp/config.h" "$ac_file" \
12092	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12093    fi
12094  else
12095    $as_echo "/* $configure_input  */" \
12096      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12097      || as_fn_error $? "could not create -" "$LINENO" 5
12098  fi
12099# Compute "$ac_file"'s index in $config_headers.
12100_am_arg="$ac_file"
12101_am_stamp_count=1
12102for _am_header in $config_headers :; do
12103  case $_am_header in
12104    $_am_arg | $_am_arg:* )
12105      break ;;
12106    * )
12107      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12108  esac
12109done
12110echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12111$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12112	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12113	 X"$_am_arg" : 'X\(//\)$' \| \
12114	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12115$as_echo X"$_am_arg" |
12116    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12117	    s//\1/
12118	    q
12119	  }
12120	  /^X\(\/\/\)[^/].*/{
12121	    s//\1/
12122	    q
12123	  }
12124	  /^X\(\/\/\)$/{
12125	    s//\1/
12126	    q
12127	  }
12128	  /^X\(\/\).*/{
12129	    s//\1/
12130	    q
12131	  }
12132	  s/.*/./; q'`/stamp-h$_am_stamp_count
12133 ;;
12134
12135  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12136$as_echo "$as_me: executing $ac_file commands" >&6;}
12137 ;;
12138  esac
12139
12140
12141  case $ac_file$ac_mode in
12142    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12143  # Older Autoconf quotes --file arguments for eval, but not when files
12144  # are listed without --file.  Let's play safe and only enable the eval
12145  # if we detect the quoting.
12146  case $CONFIG_FILES in
12147  *\'*) eval set x "$CONFIG_FILES" ;;
12148  *)   set x $CONFIG_FILES ;;
12149  esac
12150  shift
12151  for mf
12152  do
12153    # Strip MF so we end up with the name of the file.
12154    mf=`echo "$mf" | sed -e 's/:.*$//'`
12155    # Check whether this is an Automake generated Makefile or not.
12156    # We used to match only the files named 'Makefile.in', but
12157    # some people rename them; so instead we look at the file content.
12158    # Grep'ing the first line is not enough: some people post-process
12159    # each Makefile.in and add a new line on top of each file to say so.
12160    # Grep'ing the whole file is not good either: AIX grep has a line
12161    # limit of 2048, but all sed's we know have understand at least 4000.
12162    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12163      dirpart=`$as_dirname -- "$mf" ||
12164$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12165	 X"$mf" : 'X\(//\)[^/]' \| \
12166	 X"$mf" : 'X\(//\)$' \| \
12167	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12168$as_echo X"$mf" |
12169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12170	    s//\1/
12171	    q
12172	  }
12173	  /^X\(\/\/\)[^/].*/{
12174	    s//\1/
12175	    q
12176	  }
12177	  /^X\(\/\/\)$/{
12178	    s//\1/
12179	    q
12180	  }
12181	  /^X\(\/\).*/{
12182	    s//\1/
12183	    q
12184	  }
12185	  s/.*/./; q'`
12186    else
12187      continue
12188    fi
12189    # Extract the definition of DEPDIR, am__include, and am__quote
12190    # from the Makefile without running 'make'.
12191    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12192    test -z "$DEPDIR" && continue
12193    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12194    test -z "$am__include" && continue
12195    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12196    # Find all dependency output files, they are included files with
12197    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12198    # simplest approach to changing $(DEPDIR) to its actual value in the
12199    # expansion.
12200    for file in `sed -n "
12201      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12202	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12203      # Make sure the directory exists.
12204      test -f "$dirpart/$file" && continue
12205      fdir=`$as_dirname -- "$file" ||
12206$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12207	 X"$file" : 'X\(//\)[^/]' \| \
12208	 X"$file" : 'X\(//\)$' \| \
12209	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12210$as_echo X"$file" |
12211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12212	    s//\1/
12213	    q
12214	  }
12215	  /^X\(\/\/\)[^/].*/{
12216	    s//\1/
12217	    q
12218	  }
12219	  /^X\(\/\/\)$/{
12220	    s//\1/
12221	    q
12222	  }
12223	  /^X\(\/\).*/{
12224	    s//\1/
12225	    q
12226	  }
12227	  s/.*/./; q'`
12228      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12229      # echo "creating $dirpart/$file"
12230      echo '# dummy' > "$dirpart/$file"
12231    done
12232  done
12233}
12234 ;;
12235
12236  esac
12237done # for ac_tag
12238
12239
12240as_fn_exit 0
12241_ACEOF
12242ac_clean_files=$ac_clean_files_save
12243
12244test $ac_write_fail = 0 ||
12245  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12246
12247
12248# configure is writing to config.log, and then calls config.status.
12249# config.status does its own redirection, appending to config.log.
12250# Unfortunately, on DOS this fails, as config.log is still kept open
12251# by configure, so config.status won't be able to write to it; its
12252# output is simply discarded.  So we exec the FD to /dev/null,
12253# effectively closing config.log, so it can be properly (re)opened and
12254# appended to by config.status.  When coming back to configure, we
12255# need to make the FD available again.
12256if test "$no_create" != yes; then
12257  ac_cs_success=:
12258  ac_config_status_args=
12259  test "$silent" = yes &&
12260    ac_config_status_args="$ac_config_status_args --quiet"
12261  exec 5>/dev/null
12262  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12263  exec 5>>config.log
12264  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12265  # would make configure fail if this is the last instruction.
12266  $ac_cs_success || as_fn_exit 1
12267fi
12268if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12269  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12270$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12271fi
12272
12273