configure revision b78bb896
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xfd 1.1.3.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>.
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://gitlab.freedesktop.org/xorg/app/xfd/issues
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='xfd'
583PACKAGE_TARNAME='xfd'
584PACKAGE_VERSION='1.1.3'
585PACKAGE_STRING='xfd 1.1.3'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfd/issues'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630appdefaultdir
631APPDEFS_LIBS
632APPDEFS_CFLAGS
633XFD_LIBS
634XFD_CFLAGS
635USE_GETTEXT_FALSE
636USE_GETTEXT_TRUE
637LOCALEDIR
638MAN_SUBSTS
639XORG_MAN_PAGE
640ADMIN_MAN_DIR
641DRIVER_MAN_DIR
642MISC_MAN_DIR
643FILE_MAN_DIR
644LIB_MAN_DIR
645APP_MAN_DIR
646ADMIN_MAN_SUFFIX
647DRIVER_MAN_SUFFIX
648MISC_MAN_SUFFIX
649FILE_MAN_SUFFIX
650LIB_MAN_SUFFIX
651APP_MAN_SUFFIX
652SED
653host_os
654host_vendor
655host_cpu
656host
657build_os
658build_vendor
659build_cpu
660build
661INSTALL_CMD
662PKG_CONFIG_LIBDIR
663PKG_CONFIG_PATH
664PKG_CONFIG
665CHANGELOG_CMD
666STRICT_CFLAGS
667CWARNFLAGS
668BASE_CFLAGS
669EGREP
670GREP
671CPP
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682OBJEXT
683EXEEXT
684ac_ct_CC
685CPPFLAGS
686LDFLAGS
687CFLAGS
688CC
689AM_BACKSLASH
690AM_DEFAULT_VERBOSITY
691AM_DEFAULT_V
692AM_V
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
746PACKAGE_URL
747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
754ac_subst_files=''
755ac_user_opts='
756enable_option_checking
757enable_silent_rules
758enable_dependency_tracking
759enable_selective_werror
760enable_strict_compilation
761with_localedir
762with_xkb
763with_appdefaultdir
764'
765      ac_precious_vars='build_alias
766host_alias
767target_alias
768CC
769CFLAGS
770LDFLAGS
771LIBS
772CPPFLAGS
773CPP
774PKG_CONFIG
775PKG_CONFIG_PATH
776PKG_CONFIG_LIBDIR
777XFD_CFLAGS
778XFD_LIBS
779APPDEFS_CFLAGS
780APPDEFS_LIBS'
781
782
783# Initialize some variables set by options.
784ac_init_help=
785ac_init_version=false
786ac_unrecognized_opts=
787ac_unrecognized_sep=
788# The variables have the same names as the options, with
789# dashes changed to underlines.
790cache_file=/dev/null
791exec_prefix=NONE
792no_create=
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
801verbose=
802x_includes=NONE
803x_libraries=NONE
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
810# (The list follows the same order as the GNU Coding Standards.)
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
830
831ac_prev=
832ac_dashdash=
833for ac_option
834do
835  # If the previous option needs an argument, assign it.
836  if test -n "$ac_prev"; then
837    eval $ac_prev=\$ac_option
838    ac_prev=
839    continue
840  fi
841
842  case $ac_option in
843  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844  *=)   ac_optarg= ;;
845  *)    ac_optarg=yes ;;
846  esac
847
848  # Accept the important Cygnus configure options, so we can diagnose typos.
849
850  case $ac_dashdash$ac_option in
851  --)
852    ac_dashdash=yes ;;
853
854  -bindir | --bindir | --bindi | --bind | --bin | --bi)
855    ac_prev=bindir ;;
856  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857    bindir=$ac_optarg ;;
858
859  -build | --build | --buil | --bui | --bu)
860    ac_prev=build_alias ;;
861  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862    build_alias=$ac_optarg ;;
863
864  -cache-file | --cache-file | --cache-fil | --cache-fi \
865  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866    ac_prev=cache_file ;;
867  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869    cache_file=$ac_optarg ;;
870
871  --config-cache | -C)
872    cache_file=config.cache ;;
873
874  -datadir | --datadir | --datadi | --datad)
875    ac_prev=datadir ;;
876  -datadir=* | --datadir=* | --datadi=* | --datad=*)
877    datadir=$ac_optarg ;;
878
879  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880  | --dataroo | --dataro | --datar)
881    ac_prev=datarootdir ;;
882  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884    datarootdir=$ac_optarg ;;
885
886  -disable-* | --disable-*)
887    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888    # Reject names that are not valid shell variable names.
889    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890      as_fn_error $? "invalid feature name: $ac_useropt"
891    ac_useropt_orig=$ac_useropt
892    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893    case $ac_user_opts in
894      *"
895"enable_$ac_useropt"
896"*) ;;
897      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898	 ac_unrecognized_sep=', ';;
899    esac
900    eval enable_$ac_useropt=no ;;
901
902  -docdir | --docdir | --docdi | --doc | --do)
903    ac_prev=docdir ;;
904  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905    docdir=$ac_optarg ;;
906
907  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908    ac_prev=dvidir ;;
909  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910    dvidir=$ac_optarg ;;
911
912  -enable-* | --enable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=\$ac_optarg ;;
927
928  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930  | --exec | --exe | --ex)
931    ac_prev=exec_prefix ;;
932  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934  | --exec=* | --exe=* | --ex=*)
935    exec_prefix=$ac_optarg ;;
936
937  -gas | --gas | --ga | --g)
938    # Obsolete; use --with-gas.
939    with_gas=yes ;;
940
941  -help | --help | --hel | --he | -h)
942    ac_init_help=long ;;
943  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944    ac_init_help=recursive ;;
945  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946    ac_init_help=short ;;
947
948  -host | --host | --hos | --ho)
949    ac_prev=host_alias ;;
950  -host=* | --host=* | --hos=* | --ho=*)
951    host_alias=$ac_optarg ;;
952
953  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954    ac_prev=htmldir ;;
955  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956  | --ht=*)
957    htmldir=$ac_optarg ;;
958
959  -includedir | --includedir | --includedi | --included | --include \
960  | --includ | --inclu | --incl | --inc)
961    ac_prev=includedir ;;
962  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963  | --includ=* | --inclu=* | --incl=* | --inc=*)
964    includedir=$ac_optarg ;;
965
966  -infodir | --infodir | --infodi | --infod | --info | --inf)
967    ac_prev=infodir ;;
968  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969    infodir=$ac_optarg ;;
970
971  -libdir | --libdir | --libdi | --libd)
972    ac_prev=libdir ;;
973  -libdir=* | --libdir=* | --libdi=* | --libd=*)
974    libdir=$ac_optarg ;;
975
976  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977  | --libexe | --libex | --libe)
978    ac_prev=libexecdir ;;
979  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980  | --libexe=* | --libex=* | --libe=*)
981    libexecdir=$ac_optarg ;;
982
983  -localedir | --localedir | --localedi | --localed | --locale)
984    ac_prev=localedir ;;
985  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986    localedir=$ac_optarg ;;
987
988  -localstatedir | --localstatedir | --localstatedi | --localstated \
989  | --localstate | --localstat | --localsta | --localst | --locals)
990    ac_prev=localstatedir ;;
991  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993    localstatedir=$ac_optarg ;;
994
995  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996    ac_prev=mandir ;;
997  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998    mandir=$ac_optarg ;;
999
1000  -nfp | --nfp | --nf)
1001    # Obsolete; use --without-fp.
1002    with_fp=no ;;
1003
1004  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005  | --no-cr | --no-c | -n)
1006    no_create=yes ;;
1007
1008  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010    no_recursion=yes ;;
1011
1012  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014  | --oldin | --oldi | --old | --ol | --o)
1015    ac_prev=oldincludedir ;;
1016  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019    oldincludedir=$ac_optarg ;;
1020
1021  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022    ac_prev=prefix ;;
1023  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024    prefix=$ac_optarg ;;
1025
1026  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027  | --program-pre | --program-pr | --program-p)
1028    ac_prev=program_prefix ;;
1029  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031    program_prefix=$ac_optarg ;;
1032
1033  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034  | --program-suf | --program-su | --program-s)
1035    ac_prev=program_suffix ;;
1036  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038    program_suffix=$ac_optarg ;;
1039
1040  -program-transform-name | --program-transform-name \
1041  | --program-transform-nam | --program-transform-na \
1042  | --program-transform-n | --program-transform- \
1043  | --program-transform | --program-transfor \
1044  | --program-transfo | --program-transf \
1045  | --program-trans | --program-tran \
1046  | --progr-tra | --program-tr | --program-t)
1047    ac_prev=program_transform_name ;;
1048  -program-transform-name=* | --program-transform-name=* \
1049  | --program-transform-nam=* | --program-transform-na=* \
1050  | --program-transform-n=* | --program-transform-=* \
1051  | --program-transform=* | --program-transfor=* \
1052  | --program-transfo=* | --program-transf=* \
1053  | --program-trans=* | --program-tran=* \
1054  | --progr-tra=* | --program-tr=* | --program-t=*)
1055    program_transform_name=$ac_optarg ;;
1056
1057  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058    ac_prev=pdfdir ;;
1059  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060    pdfdir=$ac_optarg ;;
1061
1062  -psdir | --psdir | --psdi | --psd | --ps)
1063    ac_prev=psdir ;;
1064  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065    psdir=$ac_optarg ;;
1066
1067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068  | -silent | --silent | --silen | --sile | --sil)
1069    silent=yes ;;
1070
1071  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072    ac_prev=sbindir ;;
1073  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074  | --sbi=* | --sb=*)
1075    sbindir=$ac_optarg ;;
1076
1077  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079  | --sharedst | --shareds | --shared | --share | --shar \
1080  | --sha | --sh)
1081    ac_prev=sharedstatedir ;;
1082  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085  | --sha=* | --sh=*)
1086    sharedstatedir=$ac_optarg ;;
1087
1088  -site | --site | --sit)
1089    ac_prev=site ;;
1090  -site=* | --site=* | --sit=*)
1091    site=$ac_optarg ;;
1092
1093  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094    ac_prev=srcdir ;;
1095  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096    srcdir=$ac_optarg ;;
1097
1098  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099  | --syscon | --sysco | --sysc | --sys | --sy)
1100    ac_prev=sysconfdir ;;
1101  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103    sysconfdir=$ac_optarg ;;
1104
1105  -target | --target | --targe | --targ | --tar | --ta | --t)
1106    ac_prev=target_alias ;;
1107  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108    target_alias=$ac_optarg ;;
1109
1110  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111    verbose=yes ;;
1112
1113  -version | --version | --versio | --versi | --vers | -V)
1114    ac_init_version=: ;;
1115
1116  -with-* | --with-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error $? "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=\$ac_optarg ;;
1131
1132  -without-* | --without-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid package name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"with_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval with_$ac_useropt=no ;;
1147
1148  --x)
1149    # Obsolete; use --with-x.
1150    with_x=yes ;;
1151
1152  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153  | --x-incl | --x-inc | --x-in | --x-i)
1154    ac_prev=x_includes ;;
1155  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157    x_includes=$ac_optarg ;;
1158
1159  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161    ac_prev=x_libraries ;;
1162  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164    x_libraries=$ac_optarg ;;
1165
1166  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information"
1168    ;;
1169
1170  *=*)
1171    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172    # Reject names that are not valid shell variable names.
1173    case $ac_envvar in #(
1174      '' | [0-9]* | *[!_$as_cr_alnum]* )
1175      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176    esac
1177    eval $ac_envvar=\$ac_optarg
1178    export $ac_envvar ;;
1179
1180  *)
1181    # FIXME: should be removed in autoconf 3.0.
1182    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186    ;;
1187
1188  esac
1189done
1190
1191if test -n "$ac_prev"; then
1192  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193  as_fn_error $? "missing argument to $ac_option"
1194fi
1195
1196if test -n "$ac_unrecognized_opts"; then
1197  case $enable_option_checking in
1198    no) ;;
1199    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201  esac
1202fi
1203
1204# Check all directory arguments for consistency.
1205for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206		datadir sysconfdir sharedstatedir localstatedir includedir \
1207		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208		libdir localedir mandir
1209do
1210  eval ac_val=\$$ac_var
1211  # Remove trailing slashes.
1212  case $ac_val in
1213    */ )
1214      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215      eval $ac_var=\$ac_val;;
1216  esac
1217  # Be sure to have absolute directory names.
1218  case $ac_val in
1219    [\\/$]* | ?:[\\/]* )  continue;;
1220    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221  esac
1222  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223done
1224
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234  if test "x$build_alias" = x; then
1235    cross_compiling=maybe
1236  elif test "x$build_alias" != "x$host_alias"; then
1237    cross_compiling=yes
1238  fi
1239fi
1240
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
1245
1246
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250  as_fn_error $? "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252  as_fn_error $? "pwd does not report name of working directory"
1253
1254
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257  ac_srcdir_defaulted=yes
1258  # Try the directory containing this script, then the parent directory.
1259  ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261	 X"$as_myself" : 'X\(//\)[^/]' \| \
1262	 X"$as_myself" : 'X\(//\)$' \| \
1263	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266	    s//\1/
1267	    q
1268	  }
1269	  /^X\(\/\/\)[^/].*/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\/\)$/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\).*/{
1278	    s//\1/
1279	    q
1280	  }
1281	  s/.*/./; q'`
1282  srcdir=$ac_confdir
1283  if test ! -r "$srcdir/$ac_unique_file"; then
1284    srcdir=..
1285  fi
1286else
1287  ac_srcdir_defaulted=no
1288fi
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296	pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299  srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309  eval ac_env_${ac_var}_value=\$${ac_var}
1310  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
1313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318  # Omit some internal or obsolete options to make the list less imposing.
1319  # This message is too long to be a string in the A/UX 3.1 sh.
1320  cat <<_ACEOF
1321\`configure' configures xfd 1.1.3 to adapt to many kinds of systems.
1322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE.  See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331  -h, --help              display this help and exit
1332      --help=short        display options specific to this package
1333      --help=recursive    display the short help of all the included packages
1334  -V, --version           display version information and exit
1335  -q, --quiet, --silent   do not print \`checking ...' messages
1336      --cache-file=FILE   cache test results in FILE [disabled]
1337  -C, --config-cache      alias for \`--cache-file=config.cache'
1338  -n, --no-create         do not create output files
1339      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1340
1341Installation directories:
1342  --prefix=PREFIX         install architecture-independent files in PREFIX
1343                          [$ac_default_prefix]
1344  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1345                          [PREFIX]
1346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
1355  --bindir=DIR            user executables [EPREFIX/bin]
1356  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1357  --libexecdir=DIR        program executables [EPREFIX/libexec]
1358  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1359  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1360  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1361  --libdir=DIR            object code libraries [EPREFIX/lib]
1362  --includedir=DIR        C header files [PREFIX/include]
1363  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1364  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1365  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1366  --infodir=DIR           info documentation [DATAROOTDIR/info]
1367  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1368  --mandir=DIR            man documentation [DATAROOTDIR/man]
1369  --docdir=DIR            documentation root [DATAROOTDIR/doc/xfd]
1370  --htmldir=DIR           html documentation [DOCDIR]
1371  --dvidir=DIR            dvi documentation [DOCDIR]
1372  --pdfdir=DIR            pdf documentation [DOCDIR]
1373  --psdir=DIR             ps documentation [DOCDIR]
1374_ACEOF
1375
1376  cat <<\_ACEOF
1377
1378Program names:
1379  --program-prefix=PREFIX            prepend PREFIX to installed program names
1380  --program-suffix=SUFFIX            append SUFFIX to installed program names
1381  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1382
1383System types:
1384  --build=BUILD     configure for building on BUILD [guessed]
1385  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1386_ACEOF
1387fi
1388
1389if test -n "$ac_init_help"; then
1390  case $ac_init_help in
1391     short | recursive ) echo "Configuration of xfd 1.1.3:";;
1392   esac
1393  cat <<\_ACEOF
1394
1395Optional Features:
1396  --disable-option-checking  ignore unrecognized --enable/--with options
1397  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399  --enable-silent-rules   less verbose build output (undo: "make V=1")
1400  --disable-silent-rules  verbose build output (undo: "make V=0")
1401  --enable-dependency-tracking
1402                          do not reject slow dependency extractors
1403  --disable-dependency-tracking
1404                          speeds up one-time build
1405  --disable-selective-werror
1406                          Turn off selective compiler errors. (default:
1407                          enabled)
1408  --enable-strict-compilation
1409                          Enable all warnings from compiler and make them
1410                          errors (default: disabled)
1411
1412Optional Packages:
1413  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1414  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1415  --with-localedir=<path> Path to install message files in (default:
1416                          datadir/locale)
1417  --without-xkb           Disable use of XKB to sound bells (Default is
1418                          with-xkb)
1419  --with-appdefaultdir=<pathname>
1420                          specify directory for app-defaults files (default is
1421                          autodetected)
1422
1423Some influential environment variables:
1424  CC          C compiler command
1425  CFLAGS      C compiler flags
1426  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427              nonstandard directory <lib dir>
1428  LIBS        libraries to pass to the linker, e.g. -l<library>
1429  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430              you have headers in a nonstandard directory <include dir>
1431  CPP         C preprocessor
1432  PKG_CONFIG  path to pkg-config utility
1433  PKG_CONFIG_PATH
1434              directories to add to pkg-config's search path
1435  PKG_CONFIG_LIBDIR
1436              path overriding pkg-config's built-in search path
1437  XFD_CFLAGS  C compiler flags for XFD, overriding pkg-config
1438  XFD_LIBS    linker flags for XFD, overriding pkg-config
1439  APPDEFS_CFLAGS
1440              C compiler flags for APPDEFS, overriding pkg-config
1441  APPDEFS_LIBS
1442              linker flags for APPDEFS, overriding pkg-config
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
1447Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>.
1448_ACEOF
1449ac_status=$?
1450fi
1451
1452if test "$ac_init_help" = "recursive"; then
1453  # If there are subdirs, report their specific --help.
1454  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1455    test -d "$ac_dir" ||
1456      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457      continue
1458    ac_builddir=.
1459
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464  # A ".." for each directory in $ac_dir_suffix.
1465  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466  case $ac_top_builddir_sub in
1467  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469  esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
1475
1476case $srcdir in
1477  .)  # We are building in place.
1478    ac_srcdir=.
1479    ac_top_srcdir=$ac_top_builddir_sub
1480    ac_abs_top_srcdir=$ac_pwd ;;
1481  [\\/]* | ?:[\\/]* )  # Absolute name.
1482    ac_srcdir=$srcdir$ac_dir_suffix;
1483    ac_top_srcdir=$srcdir
1484    ac_abs_top_srcdir=$srcdir ;;
1485  *) # Relative name.
1486    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487    ac_top_srcdir=$ac_top_build_prefix$srcdir
1488    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489esac
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492    cd "$ac_dir" || { ac_status=$?; continue; }
1493    # Check for guested configure.
1494    if test -f "$ac_srcdir/configure.gnu"; then
1495      echo &&
1496      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497    elif test -f "$ac_srcdir/configure"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure" --help=recursive
1500    else
1501      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502    fi || ac_status=$?
1503    cd "$ac_pwd" || { ac_status=$?; break; }
1504  done
1505fi
1506
1507test -n "$ac_init_help" && exit $ac_status
1508if $ac_init_version; then
1509  cat <<\_ACEOF
1510xfd configure 1.1.3
1511generated by GNU Autoconf 2.69
1512
1513Copyright (C) 2012 Free Software Foundation, Inc.
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
1517  exit
1518fi
1519
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
1523
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
1528{
1529  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530  rm -f conftest.$ac_objext
1531  if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534  *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538  (eval "$ac_compile") 2>conftest.err
1539  ac_status=$?
1540  if test -s conftest.err; then
1541    grep -v '^ *+' conftest.err >conftest.er1
1542    cat conftest.er1 >&5
1543    mv -f conftest.er1 conftest.err
1544  fi
1545  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546  test $ac_status = 0; } && {
1547	 test -z "$ac_c_werror_flag" ||
1548	 test ! -s conftest.err
1549       } && test -s conftest.$ac_objext; then :
1550  ac_retval=0
1551else
1552  $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
1554
1555	ac_retval=1
1556fi
1557  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558  as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_compile
1561
1562# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1563# ---------------------------------------------
1564# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1565# accordingly.
1566ac_fn_c_check_decl ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  as_decl_name=`echo $2|sed 's/ *(.*//'`
1570  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1572$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1573if eval \${$3+:} false; then :
1574  $as_echo_n "(cached) " >&6
1575else
1576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577/* end confdefs.h.  */
1578$4
1579int
1580main ()
1581{
1582#ifndef $as_decl_name
1583#ifdef __cplusplus
1584  (void) $as_decl_use;
1585#else
1586  (void) $as_decl_name;
1587#endif
1588#endif
1589
1590  ;
1591  return 0;
1592}
1593_ACEOF
1594if ac_fn_c_try_compile "$LINENO"; then :
1595  eval "$3=yes"
1596else
1597  eval "$3=no"
1598fi
1599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1600fi
1601eval ac_res=\$$3
1602	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1603$as_echo "$ac_res" >&6; }
1604  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605
1606} # ac_fn_c_check_decl
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614  if { { ac_try="$ac_cpp conftest.$ac_ext"
1615case "(($ac_try" in
1616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617  *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622  ac_status=$?
1623  if test -s conftest.err; then
1624    grep -v '^ *+' conftest.err >conftest.er1
1625    cat conftest.er1 >&5
1626    mv -f conftest.er1 conftest.err
1627  fi
1628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629  test $ac_status = 0; } > conftest.i && {
1630	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631	 test ! -s conftest.err
1632       }; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638    ac_retval=1
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_try_run LINENO
1646# ----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648# that executables *can* be run.
1649ac_fn_c_try_run ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  if { { ac_try="$ac_link"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658$as_echo "$ac_try_echo"; } >&5
1659  (eval "$ac_link") 2>&5
1660  ac_status=$?
1661  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663  { { case "(($ac_try" in
1664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665  *) ac_try_echo=$ac_try;;
1666esac
1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668$as_echo "$ac_try_echo"; } >&5
1669  (eval "$ac_try") 2>&5
1670  ac_status=$?
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; }; }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: program exited with status $ac_status" >&5
1676       $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679       ac_retval=$ac_status
1680fi
1681  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_run
1686
1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688# -------------------------------------------------------
1689# Tests whether HEADER exists and can be compiled using the include files in
1690# INCLUDES, setting the cache variable VAR accordingly.
1691ac_fn_c_check_header_compile ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695$as_echo_n "checking for $2... " >&6; }
1696if eval \${$3+:} false; then :
1697  $as_echo_n "(cached) " >&6
1698else
1699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700/* end confdefs.h.  */
1701$4
1702#include <$2>
1703_ACEOF
1704if ac_fn_c_try_compile "$LINENO"; then :
1705  eval "$3=yes"
1706else
1707  eval "$3=no"
1708fi
1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1710fi
1711eval ac_res=\$$3
1712	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
1716} # ac_fn_c_check_header_compile
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  rm -f conftest.$ac_objext conftest$ac_exeext
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && {
1741	 test -z "$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       } && test -s conftest$ac_exeext && {
1744	 test "$cross_compiling" = yes ||
1745	 test -x conftest$ac_exeext
1746       }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752	ac_retval=1
1753fi
1754  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756  # interfere with the next link command; also delete a directory that is
1757  # left behind by Apple's compiler.  We do this before executing the actions.
1758  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760  as_fn_set_status $ac_retval
1761
1762} # ac_fn_c_try_link
1763cat >config.log <<_ACEOF
1764This file contains any messages produced by compilers while
1765running configure, to aid debugging if configure makes a mistake.
1766
1767It was created by xfd $as_me 1.1.3, which was
1768generated by GNU Autoconf 2.69.  Invocation command line was
1769
1770  $ $0 $@
1771
1772_ACEOF
1773exec 5>>config.log
1774{
1775cat <<_ASUNAME
1776## --------- ##
1777## Platform. ##
1778## --------- ##
1779
1780hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1781uname -m = `(uname -m) 2>/dev/null || echo unknown`
1782uname -r = `(uname -r) 2>/dev/null || echo unknown`
1783uname -s = `(uname -s) 2>/dev/null || echo unknown`
1784uname -v = `(uname -v) 2>/dev/null || echo unknown`
1785
1786/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1787/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1788
1789/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1790/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1791/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1792/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1793/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1794/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1795/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1796
1797_ASUNAME
1798
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802  IFS=$as_save_IFS
1803  test -z "$as_dir" && as_dir=.
1804    $as_echo "PATH: $as_dir"
1805  done
1806IFS=$as_save_IFS
1807
1808} >&5
1809
1810cat >&5 <<_ACEOF
1811
1812
1813## ----------- ##
1814## Core tests. ##
1815## ----------- ##
1816
1817_ACEOF
1818
1819
1820# Keep a trace of the command line.
1821# Strip out --no-create and --no-recursion so they do not pile up.
1822# Strip out --silent because we don't want to record it for future runs.
1823# Also quote any args containing shell meta-characters.
1824# Make two passes to allow for proper duplicate-argument suppression.
1825ac_configure_args=
1826ac_configure_args0=
1827ac_configure_args1=
1828ac_must_keep_next=false
1829for ac_pass in 1 2
1830do
1831  for ac_arg
1832  do
1833    case $ac_arg in
1834    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1835    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836    | -silent | --silent | --silen | --sile | --sil)
1837      continue ;;
1838    *\'*)
1839      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1840    esac
1841    case $ac_pass in
1842    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1843    2)
1844      as_fn_append ac_configure_args1 " '$ac_arg'"
1845      if test $ac_must_keep_next = true; then
1846	ac_must_keep_next=false # Got value, back to normal.
1847      else
1848	case $ac_arg in
1849	  *=* | --config-cache | -C | -disable-* | --disable-* \
1850	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1851	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1852	  | -with-* | --with-* | -without-* | --without-* | --x)
1853	    case "$ac_configure_args0 " in
1854	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1855	    esac
1856	    ;;
1857	  -* ) ac_must_keep_next=true ;;
1858	esac
1859      fi
1860      as_fn_append ac_configure_args " '$ac_arg'"
1861      ;;
1862    esac
1863  done
1864done
1865{ ac_configure_args0=; unset ac_configure_args0;}
1866{ ac_configure_args1=; unset ac_configure_args1;}
1867
1868# When interrupted or exit'd, cleanup temporary files, and complete
1869# config.log.  We remove comments because anyway the quotes in there
1870# would cause problems or look ugly.
1871# WARNING: Use '\'' to represent an apostrophe within the trap.
1872# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1873trap 'exit_status=$?
1874  # Save into config.log some information that might help in debugging.
1875  {
1876    echo
1877
1878    $as_echo "## ---------------- ##
1879## Cache variables. ##
1880## ---------------- ##"
1881    echo
1882    # The following way of writing the cache mishandles newlines in values,
1883(
1884  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1885    eval ac_val=\$$ac_var
1886    case $ac_val in #(
1887    *${as_nl}*)
1888      case $ac_var in #(
1889      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1891      esac
1892      case $ac_var in #(
1893      _ | IFS | as_nl) ;; #(
1894      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1895      *) { eval $ac_var=; unset $ac_var;} ;;
1896      esac ;;
1897    esac
1898  done
1899  (set) 2>&1 |
1900    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1901    *${as_nl}ac_space=\ *)
1902      sed -n \
1903	"s/'\''/'\''\\\\'\'''\''/g;
1904	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1905      ;; #(
1906    *)
1907      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1908      ;;
1909    esac |
1910    sort
1911)
1912    echo
1913
1914    $as_echo "## ----------------- ##
1915## Output variables. ##
1916## ----------------- ##"
1917    echo
1918    for ac_var in $ac_subst_vars
1919    do
1920      eval ac_val=\$$ac_var
1921      case $ac_val in
1922      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923      esac
1924      $as_echo "$ac_var='\''$ac_val'\''"
1925    done | sort
1926    echo
1927
1928    if test -n "$ac_subst_files"; then
1929      $as_echo "## ------------------- ##
1930## File substitutions. ##
1931## ------------------- ##"
1932      echo
1933      for ac_var in $ac_subst_files
1934      do
1935	eval ac_val=\$$ac_var
1936	case $ac_val in
1937	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938	esac
1939	$as_echo "$ac_var='\''$ac_val'\''"
1940      done | sort
1941      echo
1942    fi
1943
1944    if test -s confdefs.h; then
1945      $as_echo "## ----------- ##
1946## confdefs.h. ##
1947## ----------- ##"
1948      echo
1949      cat confdefs.h
1950      echo
1951    fi
1952    test "$ac_signal" != 0 &&
1953      $as_echo "$as_me: caught signal $ac_signal"
1954    $as_echo "$as_me: exit $exit_status"
1955  } >&5
1956  rm -f core *.core core.conftest.* &&
1957    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1958    exit $exit_status
1959' 0
1960for ac_signal in 1 2 13 15; do
1961  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1962done
1963ac_signal=0
1964
1965# confdefs.h avoids OS command line length limits that DEFS can exceed.
1966rm -f -r conftest* confdefs.h
1967
1968$as_echo "/* confdefs.h */" > confdefs.h
1969
1970# Predefined preprocessor variables.
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_NAME "$PACKAGE_NAME"
1974_ACEOF
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_VERSION "$PACKAGE_VERSION"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_STRING "$PACKAGE_STRING"
1986_ACEOF
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1990_ACEOF
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_URL "$PACKAGE_URL"
1994_ACEOF
1995
1996
1997# Let the site file select an alternate cache file if it wants to.
1998# Prefer an explicitly selected file to automatically selected ones.
1999ac_site_file1=NONE
2000ac_site_file2=NONE
2001if test -n "$CONFIG_SITE"; then
2002  # We do not want a PATH search for config.site.
2003  case $CONFIG_SITE in #((
2004    -*)  ac_site_file1=./$CONFIG_SITE;;
2005    */*) ac_site_file1=$CONFIG_SITE;;
2006    *)   ac_site_file1=./$CONFIG_SITE;;
2007  esac
2008elif test "x$prefix" != xNONE; then
2009  ac_site_file1=$prefix/share/config.site
2010  ac_site_file2=$prefix/etc/config.site
2011else
2012  ac_site_file1=$ac_default_prefix/share/config.site
2013  ac_site_file2=$ac_default_prefix/etc/config.site
2014fi
2015for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2016do
2017  test "x$ac_site_file" = xNONE && continue
2018  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2020$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2021    sed 's/^/| /' "$ac_site_file" >&5
2022    . "$ac_site_file" \
2023      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2025as_fn_error $? "failed to load site script $ac_site_file
2026See \`config.log' for more details" "$LINENO" 5; }
2027  fi
2028done
2029
2030if test -r "$cache_file"; then
2031  # Some versions of bash will fail to source /dev/null (special files
2032  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2033  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035$as_echo "$as_me: loading cache $cache_file" >&6;}
2036    case $cache_file in
2037      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038      *)                      . "./$cache_file";;
2039    esac
2040  fi
2041else
2042  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043$as_echo "$as_me: creating cache $cache_file" >&6;}
2044  >$cache_file
2045fi
2046
2047# Check that the precious variables saved in the cache have kept the same
2048# value.
2049ac_cache_corrupted=false
2050for ac_var in $ac_precious_vars; do
2051  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052  eval ac_new_set=\$ac_env_${ac_var}_set
2053  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054  eval ac_new_val=\$ac_env_${ac_var}_value
2055  case $ac_old_set,$ac_new_set in
2056    set,)
2057      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2059      ac_cache_corrupted=: ;;
2060    ,set)
2061      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2063      ac_cache_corrupted=: ;;
2064    ,);;
2065    *)
2066      if test "x$ac_old_val" != "x$ac_new_val"; then
2067	# differences in whitespace do not lead to failure.
2068	ac_old_val_w=`echo x $ac_old_val`
2069	ac_new_val_w=`echo x $ac_new_val`
2070	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073	  ac_cache_corrupted=:
2074	else
2075	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077	  eval $ac_var=\$ac_old_val
2078	fi
2079	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2080$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2081	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2082$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2083      fi;;
2084  esac
2085  # Pass precious variables to config.status.
2086  if test "$ac_new_set" = set; then
2087    case $ac_new_val in
2088    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2089    *) ac_arg=$ac_var=$ac_new_val ;;
2090    esac
2091    case " $ac_configure_args " in
2092      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2093      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2094    esac
2095  fi
2096done
2097if $ac_cache_corrupted; then
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2103fi
2104## -------------------- ##
2105## Main body of script. ##
2106## -------------------- ##
2107
2108ac_ext=c
2109ac_cpp='$CPP $CPPFLAGS'
2110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115
2116ac_config_headers="$ac_config_headers config.h"
2117
2118
2119# Initialize Automake
2120am__api_version='1.15'
2121
2122ac_aux_dir=
2123for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2124  if test -f "$ac_dir/install-sh"; then
2125    ac_aux_dir=$ac_dir
2126    ac_install_sh="$ac_aux_dir/install-sh -c"
2127    break
2128  elif test -f "$ac_dir/install.sh"; then
2129    ac_aux_dir=$ac_dir
2130    ac_install_sh="$ac_aux_dir/install.sh -c"
2131    break
2132  elif test -f "$ac_dir/shtool"; then
2133    ac_aux_dir=$ac_dir
2134    ac_install_sh="$ac_aux_dir/shtool install -c"
2135    break
2136  fi
2137done
2138if test -z "$ac_aux_dir"; then
2139  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2140fi
2141
2142# These three variables are undocumented and unsupported,
2143# and are intended to be withdrawn in a future Autoconf release.
2144# They can cause serious problems if a builder's source tree is in a directory
2145# whose full name contains unusual characters.
2146ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2147ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2148ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2149
2150
2151# Find a good install program.  We prefer a C program (faster),
2152# so one script is as good as another.  But avoid the broken or
2153# incompatible versions:
2154# SysV /etc/install, /usr/sbin/install
2155# SunOS /usr/etc/install
2156# IRIX /sbin/install
2157# AIX /bin/install
2158# AmigaOS /C/install, which installs bootblocks on floppy discs
2159# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2160# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2161# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2162# OS/2's system install, which has a completely different semantic
2163# ./install, which can be erroneously created by make from ./install.sh.
2164# Reject install programs that cannot install multiple files.
2165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2166$as_echo_n "checking for a BSD-compatible install... " >&6; }
2167if test -z "$INSTALL"; then
2168if ${ac_cv_path_install+:} false; then :
2169  $as_echo_n "(cached) " >&6
2170else
2171  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172for as_dir in $PATH
2173do
2174  IFS=$as_save_IFS
2175  test -z "$as_dir" && as_dir=.
2176    # Account for people who put trailing slashes in PATH elements.
2177case $as_dir/ in #((
2178  ./ | .// | /[cC]/* | \
2179  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2180  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2181  /usr/ucb/* ) ;;
2182  *)
2183    # OSF1 and SCO ODT 3.0 have their own names for install.
2184    # Don't use installbsd from OSF since it installs stuff as root
2185    # by default.
2186    for ac_prog in ginstall scoinst install; do
2187      for ac_exec_ext in '' $ac_executable_extensions; do
2188	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2189	  if test $ac_prog = install &&
2190	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2191	    # AIX install.  It has an incompatible calling convention.
2192	    :
2193	  elif test $ac_prog = install &&
2194	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2195	    # program-specific install script used by HP pwplus--don't use.
2196	    :
2197	  else
2198	    rm -rf conftest.one conftest.two conftest.dir
2199	    echo one > conftest.one
2200	    echo two > conftest.two
2201	    mkdir conftest.dir
2202	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2203	      test -s conftest.one && test -s conftest.two &&
2204	      test -s conftest.dir/conftest.one &&
2205	      test -s conftest.dir/conftest.two
2206	    then
2207	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2208	      break 3
2209	    fi
2210	  fi
2211	fi
2212      done
2213    done
2214    ;;
2215esac
2216
2217  done
2218IFS=$as_save_IFS
2219
2220rm -rf conftest.one conftest.two conftest.dir
2221
2222fi
2223  if test "${ac_cv_path_install+set}" = set; then
2224    INSTALL=$ac_cv_path_install
2225  else
2226    # As a last resort, use the slow shell script.  Don't cache a
2227    # value for INSTALL within a source directory, because that will
2228    # break other packages using the cache if that directory is
2229    # removed, or if the value is a relative name.
2230    INSTALL=$ac_install_sh
2231  fi
2232fi
2233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2234$as_echo "$INSTALL" >&6; }
2235
2236# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2237# It thinks the first close brace ends the variable substitution.
2238test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2239
2240test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2241
2242test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2243
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2245$as_echo_n "checking whether build environment is sane... " >&6; }
2246# Reject unsafe characters in $srcdir or the absolute working directory
2247# name.  Accept space and tab only in the latter.
2248am_lf='
2249'
2250case `pwd` in
2251  *[\\\"\#\$\&\'\`$am_lf]*)
2252    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2253esac
2254case $srcdir in
2255  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2256    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2257esac
2258
2259# Do 'set' in a subshell so we don't clobber the current shell's
2260# arguments.  Must try -L first in case configure is actually a
2261# symlink; some systems play weird games with the mod time of symlinks
2262# (eg FreeBSD returns the mod time of the symlink's containing
2263# directory).
2264if (
2265   am_has_slept=no
2266   for am_try in 1 2; do
2267     echo "timestamp, slept: $am_has_slept" > conftest.file
2268     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2269     if test "$*" = "X"; then
2270	# -L didn't work.
2271	set X `ls -t "$srcdir/configure" conftest.file`
2272     fi
2273     if test "$*" != "X $srcdir/configure conftest.file" \
2274	&& test "$*" != "X conftest.file $srcdir/configure"; then
2275
2276	# If neither matched, then we have a broken ls.  This can happen
2277	# if, for instance, CONFIG_SHELL is bash and it inherits a
2278	# broken ls alias from the environment.  This has actually
2279	# happened.  Such a system could not be considered "sane".
2280	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2281  alias in your environment" "$LINENO" 5
2282     fi
2283     if test "$2" = conftest.file || test $am_try -eq 2; then
2284       break
2285     fi
2286     # Just in case.
2287     sleep 1
2288     am_has_slept=yes
2289   done
2290   test "$2" = conftest.file
2291   )
2292then
2293   # Ok.
2294   :
2295else
2296   as_fn_error $? "newly created file is older than distributed files!
2297Check your system clock" "$LINENO" 5
2298fi
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2300$as_echo "yes" >&6; }
2301# If we didn't sleep, we still need to ensure time stamps of config.status and
2302# generated files are strictly newer.
2303am_sleep_pid=
2304if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2305  ( sleep 1 ) &
2306  am_sleep_pid=$!
2307fi
2308
2309rm -f conftest.file
2310
2311test "$program_prefix" != NONE &&
2312  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2313# Use a double $ so make ignores it.
2314test "$program_suffix" != NONE &&
2315  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2316# Double any \ or $.
2317# By default was `s,x,x', remove it if useless.
2318ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2319program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2320
2321# Expand $ac_aux_dir to an absolute path.
2322am_aux_dir=`cd "$ac_aux_dir" && pwd`
2323
2324if test x"${MISSING+set}" != xset; then
2325  case $am_aux_dir in
2326  *\ * | *\	*)
2327    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2328  *)
2329    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2330  esac
2331fi
2332# Use eval to expand $SHELL
2333if eval "$MISSING --is-lightweight"; then
2334  am_missing_run="$MISSING "
2335else
2336  am_missing_run=
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2338$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2339fi
2340
2341if test x"${install_sh+set}" != xset; then
2342  case $am_aux_dir in
2343  *\ * | *\	*)
2344    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2345  *)
2346    install_sh="\${SHELL} $am_aux_dir/install-sh"
2347  esac
2348fi
2349
2350# Installed binaries are usually stripped using 'strip' when the user
2351# run "make install-strip".  However 'strip' might not be the right
2352# tool to use in cross-compilation environments, therefore Automake
2353# will honor the 'STRIP' environment variable to overrule this program.
2354if test "$cross_compiling" != no; then
2355  if test -n "$ac_tool_prefix"; then
2356  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2357set dummy ${ac_tool_prefix}strip; ac_word=$2
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359$as_echo_n "checking for $ac_word... " >&6; }
2360if ${ac_cv_prog_STRIP+:} false; then :
2361  $as_echo_n "(cached) " >&6
2362else
2363  if test -n "$STRIP"; then
2364  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365else
2366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367for as_dir in $PATH
2368do
2369  IFS=$as_save_IFS
2370  test -z "$as_dir" && as_dir=.
2371    for ac_exec_ext in '' $ac_executable_extensions; do
2372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2373    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375    break 2
2376  fi
2377done
2378  done
2379IFS=$as_save_IFS
2380
2381fi
2382fi
2383STRIP=$ac_cv_prog_STRIP
2384if test -n "$STRIP"; then
2385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2386$as_echo "$STRIP" >&6; }
2387else
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389$as_echo "no" >&6; }
2390fi
2391
2392
2393fi
2394if test -z "$ac_cv_prog_STRIP"; then
2395  ac_ct_STRIP=$STRIP
2396  # Extract the first word of "strip", so it can be a program name with args.
2397set dummy strip; ac_word=$2
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399$as_echo_n "checking for $ac_word... " >&6; }
2400if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2401  $as_echo_n "(cached) " >&6
2402else
2403  if test -n "$ac_ct_STRIP"; then
2404  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405else
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409  IFS=$as_save_IFS
2410  test -z "$as_dir" && as_dir=.
2411    for ac_exec_ext in '' $ac_executable_extensions; do
2412  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413    ac_cv_prog_ac_ct_STRIP="strip"
2414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415    break 2
2416  fi
2417done
2418  done
2419IFS=$as_save_IFS
2420
2421fi
2422fi
2423ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2424if test -n "$ac_ct_STRIP"; then
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2426$as_echo "$ac_ct_STRIP" >&6; }
2427else
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429$as_echo "no" >&6; }
2430fi
2431
2432  if test "x$ac_ct_STRIP" = x; then
2433    STRIP=":"
2434  else
2435    case $cross_compiling:$ac_tool_warned in
2436yes:)
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2439ac_tool_warned=yes ;;
2440esac
2441    STRIP=$ac_ct_STRIP
2442  fi
2443else
2444  STRIP="$ac_cv_prog_STRIP"
2445fi
2446
2447fi
2448INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2451$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2452if test -z "$MKDIR_P"; then
2453  if ${ac_cv_path_mkdir+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2458do
2459  IFS=$as_save_IFS
2460  test -z "$as_dir" && as_dir=.
2461    for ac_prog in mkdir gmkdir; do
2462	 for ac_exec_ext in '' $ac_executable_extensions; do
2463	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2464	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2465	     'mkdir (GNU coreutils) '* | \
2466	     'mkdir (coreutils) '* | \
2467	     'mkdir (fileutils) '4.1*)
2468	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2469	       break 3;;
2470	   esac
2471	 done
2472       done
2473  done
2474IFS=$as_save_IFS
2475
2476fi
2477
2478  test -d ./--version && rmdir ./--version
2479  if test "${ac_cv_path_mkdir+set}" = set; then
2480    MKDIR_P="$ac_cv_path_mkdir -p"
2481  else
2482    # As a last resort, use the slow shell script.  Don't cache a
2483    # value for MKDIR_P within a source directory, because that will
2484    # break other packages using the cache if that directory is
2485    # removed, or if the value is a relative name.
2486    MKDIR_P="$ac_install_sh -d"
2487  fi
2488fi
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2490$as_echo "$MKDIR_P" >&6; }
2491
2492for ac_prog in gawk mawk nawk awk
2493do
2494  # Extract the first word of "$ac_prog", so it can be a program name with args.
2495set dummy $ac_prog; ac_word=$2
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497$as_echo_n "checking for $ac_word... " >&6; }
2498if ${ac_cv_prog_AWK+:} false; then :
2499  $as_echo_n "(cached) " >&6
2500else
2501  if test -n "$AWK"; then
2502  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507  IFS=$as_save_IFS
2508  test -z "$as_dir" && as_dir=.
2509    for ac_exec_ext in '' $ac_executable_extensions; do
2510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2511    ac_cv_prog_AWK="$ac_prog"
2512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513    break 2
2514  fi
2515done
2516  done
2517IFS=$as_save_IFS
2518
2519fi
2520fi
2521AWK=$ac_cv_prog_AWK
2522if test -n "$AWK"; then
2523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2524$as_echo "$AWK" >&6; }
2525else
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2527$as_echo "no" >&6; }
2528fi
2529
2530
2531  test -n "$AWK" && break
2532done
2533
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2535$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2536set x ${MAKE-make}
2537ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2538if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2539  $as_echo_n "(cached) " >&6
2540else
2541  cat >conftest.make <<\_ACEOF
2542SHELL = /bin/sh
2543all:
2544	@echo '@@@%%%=$(MAKE)=@@@%%%'
2545_ACEOF
2546# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2547case `${MAKE-make} -f conftest.make 2>/dev/null` in
2548  *@@@%%%=?*=@@@%%%*)
2549    eval ac_cv_prog_make_${ac_make}_set=yes;;
2550  *)
2551    eval ac_cv_prog_make_${ac_make}_set=no;;
2552esac
2553rm -f conftest.make
2554fi
2555if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557$as_echo "yes" >&6; }
2558  SET_MAKE=
2559else
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562  SET_MAKE="MAKE=${MAKE-make}"
2563fi
2564
2565rm -rf .tst 2>/dev/null
2566mkdir .tst 2>/dev/null
2567if test -d .tst; then
2568  am__leading_dot=.
2569else
2570  am__leading_dot=_
2571fi
2572rmdir .tst 2>/dev/null
2573
2574# Check whether --enable-silent-rules was given.
2575if test "${enable_silent_rules+set}" = set; then :
2576  enableval=$enable_silent_rules;
2577fi
2578
2579case $enable_silent_rules in # (((
2580  yes) AM_DEFAULT_VERBOSITY=0;;
2581   no) AM_DEFAULT_VERBOSITY=1;;
2582    *) AM_DEFAULT_VERBOSITY=1;;
2583esac
2584am_make=${MAKE-make}
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2586$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2587if ${am_cv_make_support_nested_variables+:} false; then :
2588  $as_echo_n "(cached) " >&6
2589else
2590  if $as_echo 'TRUE=$(BAR$(V))
2591BAR0=false
2592BAR1=true
2593V=1
2594am__doit:
2595	@$(TRUE)
2596.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2597  am_cv_make_support_nested_variables=yes
2598else
2599  am_cv_make_support_nested_variables=no
2600fi
2601fi
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2603$as_echo "$am_cv_make_support_nested_variables" >&6; }
2604if test $am_cv_make_support_nested_variables = yes; then
2605    AM_V='$(V)'
2606  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2607else
2608  AM_V=$AM_DEFAULT_VERBOSITY
2609  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2610fi
2611AM_BACKSLASH='\'
2612
2613if test "`cd $srcdir && pwd`" != "`pwd`"; then
2614  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2615  # is not polluted with repeated "-I."
2616  am__isrc=' -I$(srcdir)'
2617  # test to see if srcdir already configured
2618  if test -f $srcdir/config.status; then
2619    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2620  fi
2621fi
2622
2623# test whether we have cygpath
2624if test -z "$CYGPATH_W"; then
2625  if (cygpath --version) >/dev/null 2>/dev/null; then
2626    CYGPATH_W='cygpath -w'
2627  else
2628    CYGPATH_W=echo
2629  fi
2630fi
2631
2632
2633# Define the identity of the package.
2634 PACKAGE='xfd'
2635 VERSION='1.1.3'
2636
2637
2638cat >>confdefs.h <<_ACEOF
2639#define PACKAGE "$PACKAGE"
2640_ACEOF
2641
2642
2643cat >>confdefs.h <<_ACEOF
2644#define VERSION "$VERSION"
2645_ACEOF
2646
2647# Some tools Automake needs.
2648
2649ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2650
2651
2652AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2653
2654
2655AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2656
2657
2658AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2659
2660
2661MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2662
2663# For better backward compatibility.  To be removed once Automake 1.9.x
2664# dies out for good.  For more background, see:
2665# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2666# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2667mkdir_p='$(MKDIR_P)'
2668
2669# We need awk for the "check" target (and possibly the TAP driver).  The
2670# system "awk" is bad on some platforms.
2671# Always define AMTAR for backward compatibility.  Yes, it's still used
2672# in the wild :-(  We should find a proper way to deprecate it ...
2673AMTAR='$${TAR-tar}'
2674
2675
2676# We'll loop over all known methods to create a tar archive until one works.
2677_am_tools='gnutar  pax cpio none'
2678
2679am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2680
2681
2682
2683
2684
2685
2686# POSIX will say in a future version that running "rm -f" with no argument
2687# is OK; and we want to be able to make that assumption in our Makefile
2688# recipes.  So use an aggressive probe to check that the usage we want is
2689# actually supported "in the wild" to an acceptable degree.
2690# See automake bug#10828.
2691# To make any issue more visible, cause the running configure to be aborted
2692# by default if the 'rm' program in use doesn't match our expectations; the
2693# user can still override this though.
2694if rm -f && rm -fr && rm -rf; then : OK; else
2695  cat >&2 <<'END'
2696Oops!
2697
2698Your 'rm' program seems unable to run without file operands specified
2699on the command line, even when the '-f' option is present.  This is contrary
2700to the behaviour of most rm programs out there, and not conforming with
2701the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2702
2703Please tell bug-automake@gnu.org about your system, including the value
2704of your $PATH and any error possibly output before this message.  This
2705can help us improve future automake versions.
2706
2707END
2708  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2709    echo 'Configuration will proceed anyway, since you have set the' >&2
2710    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2711    echo >&2
2712  else
2713    cat >&2 <<'END'
2714Aborting the configuration process, to ensure you take notice of the issue.
2715
2716You can download and install GNU coreutils to get an 'rm' implementation
2717that behaves properly: <http://www.gnu.org/software/coreutils/>.
2718
2719If you want to complete the configuration process using your problematic
2720'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2721to "yes", and re-run configure.
2722
2723END
2724    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2725  fi
2726fi
2727
2728
2729# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741DEPDIR="${am__leading_dot}deps"
2742
2743ac_config_commands="$ac_config_commands depfiles"
2744
2745
2746am_make=${MAKE-make}
2747cat > confinc << 'END'
2748am__doit:
2749	@echo this is the am__doit target
2750.PHONY: am__doit
2751END
2752# If we don't find an include directive, just comment out the code.
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2754$as_echo_n "checking for style of include used by $am_make... " >&6; }
2755am__include="#"
2756am__quote=
2757_am_result=none
2758# First try GNU make style include.
2759echo "include confinc" > confmf
2760# Ignore all kinds of additional output from 'make'.
2761case `$am_make -s -f confmf 2> /dev/null` in #(
2762*the\ am__doit\ target*)
2763  am__include=include
2764  am__quote=
2765  _am_result=GNU
2766  ;;
2767esac
2768# Now try BSD make style include.
2769if test "$am__include" = "#"; then
2770   echo '.include "confinc"' > confmf
2771   case `$am_make -s -f confmf 2> /dev/null` in #(
2772   *the\ am__doit\ target*)
2773     am__include=.include
2774     am__quote="\""
2775     _am_result=BSD
2776     ;;
2777   esac
2778fi
2779
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2782$as_echo "$_am_result" >&6; }
2783rm -f confinc confmf
2784
2785# Check whether --enable-dependency-tracking was given.
2786if test "${enable_dependency_tracking+set}" = set; then :
2787  enableval=$enable_dependency_tracking;
2788fi
2789
2790if test "x$enable_dependency_tracking" != xno; then
2791  am_depcomp="$ac_aux_dir/depcomp"
2792  AMDEPBACKSLASH='\'
2793  am__nodep='_no'
2794fi
2795 if test "x$enable_dependency_tracking" != xno; then
2796  AMDEP_TRUE=
2797  AMDEP_FALSE='#'
2798else
2799  AMDEP_TRUE='#'
2800  AMDEP_FALSE=
2801fi
2802
2803
2804ac_ext=c
2805ac_cpp='$CPP $CPPFLAGS'
2806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809if test -n "$ac_tool_prefix"; then
2810  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2811set dummy ${ac_tool_prefix}gcc; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if ${ac_cv_prog_CC+:} false; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$CC"; then
2818  ac_cv_prog_CC="$CC" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2827    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837CC=$ac_cv_prog_CC
2838if test -n "$CC"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2840$as_echo "$CC" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847fi
2848if test -z "$ac_cv_prog_CC"; then
2849  ac_ct_CC=$CC
2850  # Extract the first word of "gcc", so it can be a program name with args.
2851set dummy gcc; ac_word=$2
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if ${ac_cv_prog_ac_ct_CC+:} false; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  if test -n "$ac_ct_CC"; then
2858  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_exec_ext in '' $ac_executable_extensions; do
2866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867    ac_cv_prog_ac_ct_CC="gcc"
2868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877ac_ct_CC=$ac_cv_prog_ac_ct_CC
2878if test -n "$ac_ct_CC"; then
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2880$as_echo "$ac_ct_CC" >&6; }
2881else
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886  if test "x$ac_ct_CC" = x; then
2887    CC=""
2888  else
2889    case $cross_compiling:$ac_tool_warned in
2890yes:)
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893ac_tool_warned=yes ;;
2894esac
2895    CC=$ac_ct_CC
2896  fi
2897else
2898  CC="$ac_cv_prog_CC"
2899fi
2900
2901if test -z "$CC"; then
2902          if test -n "$ac_tool_prefix"; then
2903    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2904set dummy ${ac_tool_prefix}cc; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if ${ac_cv_prog_CC+:} false; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  if test -n "$CC"; then
2911  ac_cv_prog_CC="$CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916  IFS=$as_save_IFS
2917  test -z "$as_dir" && as_dir=.
2918    for ac_exec_ext in '' $ac_executable_extensions; do
2919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920    ac_cv_prog_CC="${ac_tool_prefix}cc"
2921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922    break 2
2923  fi
2924done
2925  done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
2932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
2934else
2935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940  fi
2941fi
2942if test -z "$CC"; then
2943  # Extract the first word of "cc", so it can be a program name with args.
2944set dummy cc; ac_word=$2
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946$as_echo_n "checking for $ac_word... " >&6; }
2947if ${ac_cv_prog_CC+:} false; then :
2948  $as_echo_n "(cached) " >&6
2949else
2950  if test -n "$CC"; then
2951  ac_cv_prog_CC="$CC" # Let the user override the test.
2952else
2953  ac_prog_rejected=no
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962       ac_prog_rejected=yes
2963       continue
2964     fi
2965    ac_cv_prog_CC="cc"
2966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973if test $ac_prog_rejected = yes; then
2974  # We found a bogon in the path, so make sure we never use it.
2975  set dummy $ac_cv_prog_CC
2976  shift
2977  if test $# != 0; then
2978    # We chose a different compiler from the bogus one.
2979    # However, it has the same basename, so the bogon will be chosen
2980    # first if we set CC to just the basename; use the full file name.
2981    shift
2982    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2983  fi
2984fi
2985fi
2986fi
2987CC=$ac_cv_prog_CC
2988if test -n "$CC"; then
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990$as_echo "$CC" >&6; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996
2997fi
2998if test -z "$CC"; then
2999  if test -n "$ac_tool_prefix"; then
3000  for ac_prog in cl.exe
3001  do
3002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_CC+:} false; then :
3007  $as_echo_n "(cached) " >&6
3008else
3009  if test -n "$CC"; then
3010  ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_exec_ext in '' $ac_executable_extensions; do
3018  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3020    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021    break 2
3022  fi
3023done
3024  done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
3031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032$as_echo "$CC" >&6; }
3033else
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039    test -n "$CC" && break
3040  done
3041fi
3042if test -z "$CC"; then
3043  ac_ct_CC=$CC
3044  for ac_prog in cl.exe
3045do
3046  # Extract the first word of "$ac_prog", so it can be a program name with args.
3047set dummy $ac_prog; ac_word=$2
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049$as_echo_n "checking for $ac_word... " >&6; }
3050if ${ac_cv_prog_ac_ct_CC+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  if test -n "$ac_ct_CC"; then
3054  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3055else
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    for ac_exec_ext in '' $ac_executable_extensions; do
3062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063    ac_cv_prog_ac_ct_CC="$ac_prog"
3064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065    break 2
3066  fi
3067done
3068  done
3069IFS=$as_save_IFS
3070
3071fi
3072fi
3073ac_ct_CC=$ac_cv_prog_ac_ct_CC
3074if test -n "$ac_ct_CC"; then
3075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3076$as_echo "$ac_ct_CC" >&6; }
3077else
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080fi
3081
3082
3083  test -n "$ac_ct_CC" && break
3084done
3085
3086  if test "x$ac_ct_CC" = x; then
3087    CC=""
3088  else
3089    case $cross_compiling:$ac_tool_warned in
3090yes:)
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093ac_tool_warned=yes ;;
3094esac
3095    CC=$ac_ct_CC
3096  fi
3097fi
3098
3099fi
3100
3101
3102test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104as_fn_error $? "no acceptable C compiler found in \$PATH
3105See \`config.log' for more details" "$LINENO" 5; }
3106
3107# Provide some information about the compiler.
3108$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3109set X $ac_compile
3110ac_compiler=$2
3111for ac_option in --version -v -V -qversion; do
3112  { { ac_try="$ac_compiler $ac_option >&5"
3113case "(($ac_try" in
3114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115  *) ac_try_echo=$ac_try;;
3116esac
3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118$as_echo "$ac_try_echo"; } >&5
3119  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120  ac_status=$?
3121  if test -s conftest.err; then
3122    sed '10a\
3123... rest of stderr output deleted ...
3124         10q' conftest.err >conftest.er1
3125    cat conftest.er1 >&5
3126  fi
3127  rm -f conftest.er1 conftest.err
3128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129  test $ac_status = 0; }
3130done
3131
3132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133/* end confdefs.h.  */
3134
3135int
3136main ()
3137{
3138
3139  ;
3140  return 0;
3141}
3142_ACEOF
3143ac_clean_files_save=$ac_clean_files
3144ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145# Try to create an executable without -o first, disregard a.out.
3146# It will help us diagnose broken compilers, and finding out an intuition
3147# of exeext.
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3149$as_echo_n "checking whether the C compiler works... " >&6; }
3150ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152# The possible output files:
3153ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155ac_rmfiles=
3156for ac_file in $ac_files
3157do
3158  case $ac_file in
3159    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161  esac
3162done
3163rm -f $ac_rmfiles
3164
3165if { { ac_try="$ac_link_default"
3166case "(($ac_try" in
3167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168  *) ac_try_echo=$ac_try;;
3169esac
3170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171$as_echo "$ac_try_echo"; } >&5
3172  (eval "$ac_link_default") 2>&5
3173  ac_status=$?
3174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175  test $ac_status = 0; }; then :
3176  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3179# so that the user can short-circuit this test for compilers unknown to
3180# Autoconf.
3181for ac_file in $ac_files ''
3182do
3183  test -f "$ac_file" || continue
3184  case $ac_file in
3185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186	;;
3187    [ab].out )
3188	# We found the default executable, but exeext='' is most
3189	# certainly right.
3190	break;;
3191    *.* )
3192	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193	then :; else
3194	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195	fi
3196	# We set ac_cv_exeext here because the later test for it is not
3197	# safe: cross compilers may not add the suffix if given an `-o'
3198	# argument, so we may need to know it at that point already.
3199	# Even if this section looks crufty: it has the advantage of
3200	# actually working.
3201	break;;
3202    * )
3203	break;;
3204  esac
3205done
3206test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208else
3209  ac_file=''
3210fi
3211if test -z "$ac_file"; then :
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214$as_echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219as_fn_error 77 "C compiler cannot create executables
3220See \`config.log' for more details" "$LINENO" 5; }
3221else
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223$as_echo "yes" >&6; }
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3226$as_echo_n "checking for C compiler default output file name... " >&6; }
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228$as_echo "$ac_file" >&6; }
3229ac_exeext=$ac_cv_exeext
3230
3231rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3232ac_clean_files=$ac_clean_files_save
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234$as_echo_n "checking for suffix of executables... " >&6; }
3235if { { ac_try="$ac_link"
3236case "(($ac_try" in
3237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238  *) ac_try_echo=$ac_try;;
3239esac
3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241$as_echo "$ac_try_echo"; } >&5
3242  (eval "$ac_link") 2>&5
3243  ac_status=$?
3244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245  test $ac_status = 0; }; then :
3246  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3248# work properly (i.e., refer to `conftest.exe'), while it won't with
3249# `rm'.
3250for ac_file in conftest.exe conftest conftest.*; do
3251  test -f "$ac_file" || continue
3252  case $ac_file in
3253    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255	  break;;
3256    * ) break;;
3257  esac
3258done
3259else
3260  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263See \`config.log' for more details" "$LINENO" 5; }
3264fi
3265rm -f conftest conftest$ac_cv_exeext
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267$as_echo "$ac_cv_exeext" >&6; }
3268
3269rm -f conftest.$ac_ext
3270EXEEXT=$ac_cv_exeext
3271ac_exeext=$EXEEXT
3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273/* end confdefs.h.  */
3274#include <stdio.h>
3275int
3276main ()
3277{
3278FILE *f = fopen ("conftest.out", "w");
3279 return ferror (f) || fclose (f) != 0;
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285ac_clean_files="$ac_clean_files conftest.out"
3286# Check that the compiler produces executables we can run.  If not, either
3287# the compiler is broken, or we cross compile.
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289$as_echo_n "checking whether we are cross compiling... " >&6; }
3290if test "$cross_compiling" != yes; then
3291  { { ac_try="$ac_link"
3292case "(($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_link") 2>&5
3299  ac_status=$?
3300  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301  test $ac_status = 0; }
3302  if { ac_try='./conftest$ac_cv_exeext'
3303  { { case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_try") 2>&5
3310  ac_status=$?
3311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312  test $ac_status = 0; }; }; then
3313    cross_compiling=no
3314  else
3315    if test "$cross_compiling" = maybe; then
3316	cross_compiling=yes
3317    else
3318	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320as_fn_error $? "cannot run C compiled programs.
3321If you meant to cross compile, use \`--host'.
3322See \`config.log' for more details" "$LINENO" 5; }
3323    fi
3324  fi
3325fi
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327$as_echo "$cross_compiling" >&6; }
3328
3329rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330ac_clean_files=$ac_clean_files_save
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332$as_echo_n "checking for suffix of object files... " >&6; }
3333if ${ac_cv_objext+:} false; then :
3334  $as_echo_n "(cached) " >&6
3335else
3336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347rm -f conftest.o conftest.obj
3348if { { ac_try="$ac_compile"
3349case "(($ac_try" in
3350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351  *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354$as_echo "$ac_try_echo"; } >&5
3355  (eval "$ac_compile") 2>&5
3356  ac_status=$?
3357  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358  test $ac_status = 0; }; then :
3359  for ac_file in conftest.o conftest.obj conftest.*; do
3360  test -f "$ac_file" || continue;
3361  case $ac_file in
3362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364       break;;
3365  esac
3366done
3367else
3368  $as_echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373as_fn_error $? "cannot compute suffix of object files: cannot compile
3374See \`config.log' for more details" "$LINENO" 5; }
3375fi
3376rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379$as_echo "$ac_cv_objext" >&6; }
3380OBJEXT=$ac_cv_objext
3381ac_objext=$OBJEXT
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3383$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3384if ${ac_cv_c_compiler_gnu+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388/* end confdefs.h.  */
3389
3390int
3391main ()
3392{
3393#ifndef __GNUC__
3394       choke me
3395#endif
3396
3397  ;
3398  return 0;
3399}
3400_ACEOF
3401if ac_fn_c_try_compile "$LINENO"; then :
3402  ac_compiler_gnu=yes
3403else
3404  ac_compiler_gnu=no
3405fi
3406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3411$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3412if test $ac_compiler_gnu = yes; then
3413  GCC=yes
3414else
3415  GCC=
3416fi
3417ac_test_CFLAGS=${CFLAGS+set}
3418ac_save_CFLAGS=$CFLAGS
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3420$as_echo_n "checking whether $CC accepts -g... " >&6; }
3421if ${ac_cv_prog_cc_g+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  ac_save_c_werror_flag=$ac_c_werror_flag
3425   ac_c_werror_flag=yes
3426   ac_cv_prog_cc_g=no
3427   CFLAGS="-g"
3428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439if ac_fn_c_try_compile "$LINENO"; then :
3440  ac_cv_prog_cc_g=yes
3441else
3442  CFLAGS=""
3443      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444/* end confdefs.h.  */
3445
3446int
3447main ()
3448{
3449
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454if ac_fn_c_try_compile "$LINENO"; then :
3455
3456else
3457  ac_c_werror_flag=$ac_save_c_werror_flag
3458	 CFLAGS="-g"
3459	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460/* end confdefs.h.  */
3461
3462int
3463main ()
3464{
3465
3466  ;
3467  return 0;
3468}
3469_ACEOF
3470if ac_fn_c_try_compile "$LINENO"; then :
3471  ac_cv_prog_cc_g=yes
3472fi
3473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474fi
3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476fi
3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478   ac_c_werror_flag=$ac_save_c_werror_flag
3479fi
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3481$as_echo "$ac_cv_prog_cc_g" >&6; }
3482if test "$ac_test_CFLAGS" = set; then
3483  CFLAGS=$ac_save_CFLAGS
3484elif test $ac_cv_prog_cc_g = yes; then
3485  if test "$GCC" = yes; then
3486    CFLAGS="-g -O2"
3487  else
3488    CFLAGS="-g"
3489  fi
3490else
3491  if test "$GCC" = yes; then
3492    CFLAGS="-O2"
3493  else
3494    CFLAGS=
3495  fi
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3498$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3499if ${ac_cv_prog_cc_c89+:} false; then :
3500  $as_echo_n "(cached) " >&6
3501else
3502  ac_cv_prog_cc_c89=no
3503ac_save_CC=$CC
3504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505/* end confdefs.h.  */
3506#include <stdarg.h>
3507#include <stdio.h>
3508struct stat;
3509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3510struct buf { int x; };
3511FILE * (*rcsopen) (struct buf *, struct stat *, int);
3512static char *e (p, i)
3513     char **p;
3514     int i;
3515{
3516  return p[i];
3517}
3518static char *f (char * (*g) (char **, int), char **p, ...)
3519{
3520  char *s;
3521  va_list v;
3522  va_start (v,p);
3523  s = g (p, va_arg (v,int));
3524  va_end (v);
3525  return s;
3526}
3527
3528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3529   function prototypes and stuff, but not '\xHH' hex character constants.
3530   These don't provoke an error unfortunately, instead are silently treated
3531   as 'x'.  The following induces an error, until -std is added to get
3532   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3533   array size at least.  It's necessary to write '\x00'==0 to get something
3534   that's true only with -std.  */
3535int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3536
3537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3538   inside strings and character constants.  */
3539#define FOO(x) 'x'
3540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3541
3542int test (int i, double x);
3543struct s1 {int (*f) (int a);};
3544struct s2 {int (*f) (double a);};
3545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3546int argc;
3547char **argv;
3548int
3549main ()
3550{
3551return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3557	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558do
3559  CC="$ac_save_CC $ac_arg"
3560  if ac_fn_c_try_compile "$LINENO"; then :
3561  ac_cv_prog_cc_c89=$ac_arg
3562fi
3563rm -f core conftest.err conftest.$ac_objext
3564  test "x$ac_cv_prog_cc_c89" != "xno" && break
3565done
3566rm -f conftest.$ac_ext
3567CC=$ac_save_CC
3568
3569fi
3570# AC_CACHE_VAL
3571case "x$ac_cv_prog_cc_c89" in
3572  x)
3573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574$as_echo "none needed" >&6; } ;;
3575  xno)
3576    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577$as_echo "unsupported" >&6; } ;;
3578  *)
3579    CC="$CC $ac_cv_prog_cc_c89"
3580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3581$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3582esac
3583if test "x$ac_cv_prog_cc_c89" != xno; then :
3584
3585fi
3586
3587ac_ext=c
3588ac_cpp='$CPP $CPPFLAGS'
3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592
3593ac_ext=c
3594ac_cpp='$CPP $CPPFLAGS'
3595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3599$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3600if ${am_cv_prog_cc_c_o+:} false; then :
3601  $as_echo_n "(cached) " >&6
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main ()
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614  # Make sure it works both with $CC and with simple cc.
3615  # Following AC_PROG_CC_C_O, we do the test twice because some
3616  # compilers refuse to overwrite an existing .o file with -o,
3617  # though they will create one.
3618  am_cv_prog_cc_c_o=yes
3619  for am_i in 1 2; do
3620    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3621   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3622   ac_status=$?
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } \
3625         && test -f conftest2.$ac_objext; then
3626      : OK
3627    else
3628      am_cv_prog_cc_c_o=no
3629      break
3630    fi
3631  done
3632  rm -f core conftest*
3633  unset am_i
3634fi
3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3636$as_echo "$am_cv_prog_cc_c_o" >&6; }
3637if test "$am_cv_prog_cc_c_o" != yes; then
3638   # Losing compiler, so override with the script.
3639   # FIXME: It is wrong to rewrite CC.
3640   # But if we don't then we get into trouble of one sort or another.
3641   # A longer-term fix would be to have automake use am__CC in this case,
3642   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3643   CC="$am_aux_dir/compile $CC"
3644fi
3645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
3651
3652depcc="$CC"   am_compiler_list=
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3655$as_echo_n "checking dependency style of $depcc... " >&6; }
3656if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3657  $as_echo_n "(cached) " >&6
3658else
3659  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660  # We make a subdir and do the tests there.  Otherwise we can end up
3661  # making bogus files that we don't know about and never remove.  For
3662  # instance it was reported that on HP-UX the gcc test will end up
3663  # making a dummy file named 'D' -- because '-MD' means "put the output
3664  # in D".
3665  rm -rf conftest.dir
3666  mkdir conftest.dir
3667  # Copy depcomp to subdir because otherwise we won't find it if we're
3668  # using a relative directory.
3669  cp "$am_depcomp" conftest.dir
3670  cd conftest.dir
3671  # We will build objects and dependencies in a subdirectory because
3672  # it helps to detect inapplicable dependency modes.  For instance
3673  # both Tru64's cc and ICC support -MD to output dependencies as a
3674  # side effect of compilation, but ICC will put the dependencies in
3675  # the current directory while Tru64 will put them in the object
3676  # directory.
3677  mkdir sub
3678
3679  am_cv_CC_dependencies_compiler_type=none
3680  if test "$am_compiler_list" = ""; then
3681     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3682  fi
3683  am__universal=false
3684  case " $depcc " in #(
3685     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3686     esac
3687
3688  for depmode in $am_compiler_list; do
3689    # Setup a source with many dependencies, because some compilers
3690    # like to wrap large dependency lists on column 80 (with \), and
3691    # we should not choose a depcomp mode which is confused by this.
3692    #
3693    # We need to recreate these files for each test, as the compiler may
3694    # overwrite some of them when testing with obscure command lines.
3695    # This happens at least with the AIX C compiler.
3696    : > sub/conftest.c
3697    for i in 1 2 3 4 5 6; do
3698      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3699      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3700      # Solaris 10 /bin/sh.
3701      echo '/* dummy */' > sub/conftst$i.h
3702    done
3703    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3704
3705    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3706    # mode.  It turns out that the SunPro C++ compiler does not properly
3707    # handle '-M -o', and we need to detect this.  Also, some Intel
3708    # versions had trouble with output in subdirs.
3709    am__obj=sub/conftest.${OBJEXT-o}
3710    am__minus_obj="-o $am__obj"
3711    case $depmode in
3712    gcc)
3713      # This depmode causes a compiler race in universal mode.
3714      test "$am__universal" = false || continue
3715      ;;
3716    nosideeffect)
3717      # After this tag, mechanisms are not by side-effect, so they'll
3718      # only be used when explicitly requested.
3719      if test "x$enable_dependency_tracking" = xyes; then
3720	continue
3721      else
3722	break
3723      fi
3724      ;;
3725    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3726      # This compiler won't grok '-c -o', but also, the minuso test has
3727      # not run yet.  These depmodes are late enough in the game, and
3728      # so weak that their functioning should not be impacted.
3729      am__obj=conftest.${OBJEXT-o}
3730      am__minus_obj=
3731      ;;
3732    none) break ;;
3733    esac
3734    if depmode=$depmode \
3735       source=sub/conftest.c object=$am__obj \
3736       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3737       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3738         >/dev/null 2>conftest.err &&
3739       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3740       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3741       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3742       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3743      # icc doesn't choke on unknown options, it will just issue warnings
3744      # or remarks (even with -Werror).  So we grep stderr for any message
3745      # that says an option was ignored or not supported.
3746      # When given -MP, icc 7.0 and 7.1 complain thusly:
3747      #   icc: Command line warning: ignoring option '-M'; no argument required
3748      # The diagnosis changed in icc 8.0:
3749      #   icc: Command line remark: option '-MP' not supported
3750      if (grep 'ignoring option' conftest.err ||
3751          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3752        am_cv_CC_dependencies_compiler_type=$depmode
3753        break
3754      fi
3755    fi
3756  done
3757
3758  cd ..
3759  rm -rf conftest.dir
3760else
3761  am_cv_CC_dependencies_compiler_type=none
3762fi
3763
3764fi
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3766$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3767CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3768
3769 if
3770  test "x$enable_dependency_tracking" != xno \
3771  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772  am__fastdepCC_TRUE=
3773  am__fastdepCC_FALSE='#'
3774else
3775  am__fastdepCC_TRUE='#'
3776  am__fastdepCC_FALSE=
3777fi
3778
3779
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3781$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3782if ${ac_cv_prog_cc_c99+:} false; then :
3783  $as_echo_n "(cached) " >&6
3784else
3785  ac_cv_prog_cc_c99=no
3786ac_save_CC=$CC
3787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h.  */
3789#include <stdarg.h>
3790#include <stdbool.h>
3791#include <stdlib.h>
3792#include <wchar.h>
3793#include <stdio.h>
3794
3795// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3796#define debug(...) fprintf (stderr, __VA_ARGS__)
3797#define showlist(...) puts (#__VA_ARGS__)
3798#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3799static void
3800test_varargs_macros (void)
3801{
3802  int x = 1234;
3803  int y = 5678;
3804  debug ("Flag");
3805  debug ("X = %d\n", x);
3806  showlist (The first, second, and third items.);
3807  report (x>y, "x is %d but y is %d", x, y);
3808}
3809
3810// Check long long types.
3811#define BIG64 18446744073709551615ull
3812#define BIG32 4294967295ul
3813#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3814#if !BIG_OK
3815  your preprocessor is broken;
3816#endif
3817#if BIG_OK
3818#else
3819  your preprocessor is broken;
3820#endif
3821static long long int bignum = -9223372036854775807LL;
3822static unsigned long long int ubignum = BIG64;
3823
3824struct incomplete_array
3825{
3826  int datasize;
3827  double data[];
3828};
3829
3830struct named_init {
3831  int number;
3832  const wchar_t *name;
3833  double average;
3834};
3835
3836typedef const char *ccp;
3837
3838static inline int
3839test_restrict (ccp restrict text)
3840{
3841  // See if C++-style comments work.
3842  // Iterate through items via the restricted pointer.
3843  // Also check for declarations in for loops.
3844  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3845    continue;
3846  return 0;
3847}
3848
3849// Check varargs and va_copy.
3850static void
3851test_varargs (const char *format, ...)
3852{
3853  va_list args;
3854  va_start (args, format);
3855  va_list args_copy;
3856  va_copy (args_copy, args);
3857
3858  const char *str;
3859  int number;
3860  float fnumber;
3861
3862  while (*format)
3863    {
3864      switch (*format++)
3865	{
3866	case 's': // string
3867	  str = va_arg (args_copy, const char *);
3868	  break;
3869	case 'd': // int
3870	  number = va_arg (args_copy, int);
3871	  break;
3872	case 'f': // float
3873	  fnumber = va_arg (args_copy, double);
3874	  break;
3875	default:
3876	  break;
3877	}
3878    }
3879  va_end (args_copy);
3880  va_end (args);
3881}
3882
3883int
3884main ()
3885{
3886
3887  // Check bool.
3888  _Bool success = false;
3889
3890  // Check restrict.
3891  if (test_restrict ("String literal") == 0)
3892    success = true;
3893  char *restrict newvar = "Another string";
3894
3895  // Check varargs.
3896  test_varargs ("s, d' f .", "string", 65, 34.234);
3897  test_varargs_macros ();
3898
3899  // Check flexible array members.
3900  struct incomplete_array *ia =
3901    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3902  ia->datasize = 10;
3903  for (int i = 0; i < ia->datasize; ++i)
3904    ia->data[i] = i * 1.234;
3905
3906  // Check named initializers.
3907  struct named_init ni = {
3908    .number = 34,
3909    .name = L"Test wide string",
3910    .average = 543.34343,
3911  };
3912
3913  ni.number = 58;
3914
3915  int dynamic_array[ni.number];
3916  dynamic_array[ni.number - 1] = 543;
3917
3918  // work around unused variable warnings
3919  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3920	  || dynamic_array[ni.number - 1] != 543);
3921
3922  ;
3923  return 0;
3924}
3925_ACEOF
3926for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3927do
3928  CC="$ac_save_CC $ac_arg"
3929  if ac_fn_c_try_compile "$LINENO"; then :
3930  ac_cv_prog_cc_c99=$ac_arg
3931fi
3932rm -f core conftest.err conftest.$ac_objext
3933  test "x$ac_cv_prog_cc_c99" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
3937
3938fi
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c99" in
3941  x)
3942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944  xno)
3945    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947  *)
3948    CC="$CC $ac_cv_prog_cc_c99"
3949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3950$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3951esac
3952if test "x$ac_cv_prog_cc_c99" != xno; then :
3953
3954fi
3955
3956
3957
3958ac_ext=c
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3964$as_echo_n "checking how to run the C preprocessor... " >&6; }
3965# On Suns, sometimes $CPP names a directory.
3966if test -n "$CPP" && test -d "$CPP"; then
3967  CPP=
3968fi
3969if test -z "$CPP"; then
3970  if ${ac_cv_prog_CPP+:} false; then :
3971  $as_echo_n "(cached) " >&6
3972else
3973      # Double quotes because CPP needs to be expanded
3974    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3975    do
3976      ac_preproc_ok=false
3977for ac_c_preproc_warn_flag in '' yes
3978do
3979  # Use a header file that comes with gcc, so configuring glibc
3980  # with a fresh cross-compiler works.
3981  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3982  # <limits.h> exists even on freestanding compilers.
3983  # On the NeXT, cc -E runs the code through the compiler's parser,
3984  # not just through cpp. "Syntax error" is here to catch this case.
3985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h.  */
3987#ifdef __STDC__
3988# include <limits.h>
3989#else
3990# include <assert.h>
3991#endif
3992		     Syntax error
3993_ACEOF
3994if ac_fn_c_try_cpp "$LINENO"; then :
3995
3996else
3997  # Broken: fails on valid input.
3998continue
3999fi
4000rm -f conftest.err conftest.i conftest.$ac_ext
4001
4002  # OK, works on sane cases.  Now check whether nonexistent headers
4003  # can be detected and how.
4004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h.  */
4006#include <ac_nonexistent.h>
4007_ACEOF
4008if ac_fn_c_try_cpp "$LINENO"; then :
4009  # Broken: success on invalid input.
4010continue
4011else
4012  # Passes both tests.
4013ac_preproc_ok=:
4014break
4015fi
4016rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018done
4019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4020rm -f conftest.i conftest.err conftest.$ac_ext
4021if $ac_preproc_ok; then :
4022  break
4023fi
4024
4025    done
4026    ac_cv_prog_CPP=$CPP
4027
4028fi
4029  CPP=$ac_cv_prog_CPP
4030else
4031  ac_cv_prog_CPP=$CPP
4032fi
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4034$as_echo "$CPP" >&6; }
4035ac_preproc_ok=false
4036for ac_c_preproc_warn_flag in '' yes
4037do
4038  # Use a header file that comes with gcc, so configuring glibc
4039  # with a fresh cross-compiler works.
4040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041  # <limits.h> exists even on freestanding compilers.
4042  # On the NeXT, cc -E runs the code through the compiler's parser,
4043  # not just through cpp. "Syntax error" is here to catch this case.
4044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h.  */
4046#ifdef __STDC__
4047# include <limits.h>
4048#else
4049# include <assert.h>
4050#endif
4051		     Syntax error
4052_ACEOF
4053if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055else
4056  # Broken: fails on valid input.
4057continue
4058fi
4059rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061  # OK, works on sane cases.  Now check whether nonexistent headers
4062  # can be detected and how.
4063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065#include <ac_nonexistent.h>
4066_ACEOF
4067if ac_fn_c_try_cpp "$LINENO"; then :
4068  # Broken: success on invalid input.
4069continue
4070else
4071  # Passes both tests.
4072ac_preproc_ok=:
4073break
4074fi
4075rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077done
4078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079rm -f conftest.i conftest.err conftest.$ac_ext
4080if $ac_preproc_ok; then :
4081
4082else
4083  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4086See \`config.log' for more details" "$LINENO" 5; }
4087fi
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4097$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4098if ${ac_cv_path_GREP+:} false; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  if test -z "$GREP"; then
4102  ac_path_GREP_found=false
4103  # Loop through the user's path and test for each of PROGNAME-LIST
4104  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109    for ac_prog in grep ggrep; do
4110    for ac_exec_ext in '' $ac_executable_extensions; do
4111      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4112      as_fn_executable_p "$ac_path_GREP" || continue
4113# Check for GNU ac_path_GREP and select it if it is found.
4114  # Check for GNU $ac_path_GREP
4115case `"$ac_path_GREP" --version 2>&1` in
4116*GNU*)
4117  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118*)
4119  ac_count=0
4120  $as_echo_n 0123456789 >"conftest.in"
4121  while :
4122  do
4123    cat "conftest.in" "conftest.in" >"conftest.tmp"
4124    mv "conftest.tmp" "conftest.in"
4125    cp "conftest.in" "conftest.nl"
4126    $as_echo 'GREP' >> "conftest.nl"
4127    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129    as_fn_arith $ac_count + 1 && ac_count=$as_val
4130    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4131      # Best one so far, save it but keep looking for a better one
4132      ac_cv_path_GREP="$ac_path_GREP"
4133      ac_path_GREP_max=$ac_count
4134    fi
4135    # 10*(2^10) chars as input seems more than enough
4136    test $ac_count -gt 10 && break
4137  done
4138  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139esac
4140
4141      $ac_path_GREP_found && break 3
4142    done
4143  done
4144  done
4145IFS=$as_save_IFS
4146  if test -z "$ac_cv_path_GREP"; then
4147    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148  fi
4149else
4150  ac_cv_path_GREP=$GREP
4151fi
4152
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4155$as_echo "$ac_cv_path_GREP" >&6; }
4156 GREP="$ac_cv_path_GREP"
4157
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4160$as_echo_n "checking for egrep... " >&6; }
4161if ${ac_cv_path_EGREP+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4165   then ac_cv_path_EGREP="$GREP -E"
4166   else
4167     if test -z "$EGREP"; then
4168  ac_path_EGREP_found=false
4169  # Loop through the user's path and test for each of PROGNAME-LIST
4170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175    for ac_prog in egrep; do
4176    for ac_exec_ext in '' $ac_executable_extensions; do
4177      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4178      as_fn_executable_p "$ac_path_EGREP" || continue
4179# Check for GNU ac_path_EGREP and select it if it is found.
4180  # Check for GNU $ac_path_EGREP
4181case `"$ac_path_EGREP" --version 2>&1` in
4182*GNU*)
4183  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184*)
4185  ac_count=0
4186  $as_echo_n 0123456789 >"conftest.in"
4187  while :
4188  do
4189    cat "conftest.in" "conftest.in" >"conftest.tmp"
4190    mv "conftest.tmp" "conftest.in"
4191    cp "conftest.in" "conftest.nl"
4192    $as_echo 'EGREP' >> "conftest.nl"
4193    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195    as_fn_arith $ac_count + 1 && ac_count=$as_val
4196    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4197      # Best one so far, save it but keep looking for a better one
4198      ac_cv_path_EGREP="$ac_path_EGREP"
4199      ac_path_EGREP_max=$ac_count
4200    fi
4201    # 10*(2^10) chars as input seems more than enough
4202    test $ac_count -gt 10 && break
4203  done
4204  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205esac
4206
4207      $ac_path_EGREP_found && break 3
4208    done
4209  done
4210  done
4211IFS=$as_save_IFS
4212  if test -z "$ac_cv_path_EGREP"; then
4213    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214  fi
4215else
4216  ac_cv_path_EGREP=$EGREP
4217fi
4218
4219   fi
4220fi
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4222$as_echo "$ac_cv_path_EGREP" >&6; }
4223 EGREP="$ac_cv_path_EGREP"
4224
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4227$as_echo_n "checking for ANSI C header files... " >&6; }
4228if ${ac_cv_header_stdc+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232/* end confdefs.h.  */
4233#include <stdlib.h>
4234#include <stdarg.h>
4235#include <string.h>
4236#include <float.h>
4237
4238int
4239main ()
4240{
4241
4242  ;
4243  return 0;
4244}
4245_ACEOF
4246if ac_fn_c_try_compile "$LINENO"; then :
4247  ac_cv_header_stdc=yes
4248else
4249  ac_cv_header_stdc=no
4250fi
4251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253if test $ac_cv_header_stdc = yes; then
4254  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256/* end confdefs.h.  */
4257#include <string.h>
4258
4259_ACEOF
4260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261  $EGREP "memchr" >/dev/null 2>&1; then :
4262
4263else
4264  ac_cv_header_stdc=no
4265fi
4266rm -f conftest*
4267
4268fi
4269
4270if test $ac_cv_header_stdc = yes; then
4271  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273/* end confdefs.h.  */
4274#include <stdlib.h>
4275
4276_ACEOF
4277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4278  $EGREP "free" >/dev/null 2>&1; then :
4279
4280else
4281  ac_cv_header_stdc=no
4282fi
4283rm -f conftest*
4284
4285fi
4286
4287if test $ac_cv_header_stdc = yes; then
4288  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4289  if test "$cross_compiling" = yes; then :
4290  :
4291else
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#include <ctype.h>
4295#include <stdlib.h>
4296#if ((' ' & 0x0FF) == 0x020)
4297# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4298# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4299#else
4300# define ISLOWER(c) \
4301		   (('a' <= (c) && (c) <= 'i') \
4302		     || ('j' <= (c) && (c) <= 'r') \
4303		     || ('s' <= (c) && (c) <= 'z'))
4304# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4305#endif
4306
4307#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4308int
4309main ()
4310{
4311  int i;
4312  for (i = 0; i < 256; i++)
4313    if (XOR (islower (i), ISLOWER (i))
4314	|| toupper (i) != TOUPPER (i))
4315      return 2;
4316  return 0;
4317}
4318_ACEOF
4319if ac_fn_c_try_run "$LINENO"; then :
4320
4321else
4322  ac_cv_header_stdc=no
4323fi
4324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4325  conftest.$ac_objext conftest.beam conftest.$ac_ext
4326fi
4327
4328fi
4329fi
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4331$as_echo "$ac_cv_header_stdc" >&6; }
4332if test $ac_cv_header_stdc = yes; then
4333
4334$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4335
4336fi
4337
4338# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4339for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340		  inttypes.h stdint.h unistd.h
4341do :
4342  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4344"
4345if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4346  cat >>confdefs.h <<_ACEOF
4347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348_ACEOF
4349
4350fi
4351
4352done
4353
4354
4355
4356
4357
4358
4359ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4360if test "x$ac_cv_have_decl___clang__" = xyes; then :
4361  CLANGCC="yes"
4362else
4363  CLANGCC="no"
4364fi
4365
4366ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4367if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4368  INTELCC="yes"
4369else
4370  INTELCC="no"
4371fi
4372
4373ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4374if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4375  SUNCC="yes"
4376else
4377  SUNCC="no"
4378fi
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4389	if test -n "$ac_tool_prefix"; then
4390  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393$as_echo_n "checking for $ac_word... " >&6; }
4394if ${ac_cv_path_PKG_CONFIG+:} false; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  case $PKG_CONFIG in
4398  [\\/]* | ?:[\\/]*)
4399  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4400  ;;
4401  *)
4402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405  IFS=$as_save_IFS
4406  test -z "$as_dir" && as_dir=.
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411    break 2
4412  fi
4413done
4414  done
4415IFS=$as_save_IFS
4416
4417  ;;
4418esac
4419fi
4420PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4421if test -n "$PKG_CONFIG"; then
4422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4423$as_echo "$PKG_CONFIG" >&6; }
4424else
4425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429
4430fi
4431if test -z "$ac_cv_path_PKG_CONFIG"; then
4432  ac_pt_PKG_CONFIG=$PKG_CONFIG
4433  # Extract the first word of "pkg-config", so it can be a program name with args.
4434set dummy pkg-config; ac_word=$2
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436$as_echo_n "checking for $ac_word... " >&6; }
4437if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4438  $as_echo_n "(cached) " >&6
4439else
4440  case $ac_pt_PKG_CONFIG in
4441  [\\/]* | ?:[\\/]*)
4442  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4443  ;;
4444  *)
4445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448  IFS=$as_save_IFS
4449  test -z "$as_dir" && as_dir=.
4450    for ac_exec_ext in '' $ac_executable_extensions; do
4451  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4453    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454    break 2
4455  fi
4456done
4457  done
4458IFS=$as_save_IFS
4459
4460  ;;
4461esac
4462fi
4463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4464if test -n "$ac_pt_PKG_CONFIG"; then
4465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4466$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4467else
4468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469$as_echo "no" >&6; }
4470fi
4471
4472  if test "x$ac_pt_PKG_CONFIG" = x; then
4473    PKG_CONFIG=""
4474  else
4475    case $cross_compiling:$ac_tool_warned in
4476yes:)
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4479ac_tool_warned=yes ;;
4480esac
4481    PKG_CONFIG=$ac_pt_PKG_CONFIG
4482  fi
4483else
4484  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4485fi
4486
4487fi
4488if test -n "$PKG_CONFIG"; then
4489	_pkg_min_version=0.9.0
4490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4491$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4492	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4493		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494$as_echo "yes" >&6; }
4495	else
4496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498		PKG_CONFIG=""
4499	fi
4500fi
4501# Make sure we can run config.sub.
4502$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4503  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4504
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4506$as_echo_n "checking build system type... " >&6; }
4507if ${ac_cv_build+:} false; then :
4508  $as_echo_n "(cached) " >&6
4509else
4510  ac_build_alias=$build_alias
4511test "x$ac_build_alias" = x &&
4512  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4513test "x$ac_build_alias" = x &&
4514  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4515ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4516  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4517
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4520$as_echo "$ac_cv_build" >&6; }
4521case $ac_cv_build in
4522*-*-*) ;;
4523*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4524esac
4525build=$ac_cv_build
4526ac_save_IFS=$IFS; IFS='-'
4527set x $ac_cv_build
4528shift
4529build_cpu=$1
4530build_vendor=$2
4531shift; shift
4532# Remember, the first character of IFS is used to create $*,
4533# except with old shells:
4534build_os=$*
4535IFS=$ac_save_IFS
4536case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4537
4538
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4540$as_echo_n "checking host system type... " >&6; }
4541if ${ac_cv_host+:} false; then :
4542  $as_echo_n "(cached) " >&6
4543else
4544  if test "x$host_alias" = x; then
4545  ac_cv_host=$ac_cv_build
4546else
4547  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4548    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4549fi
4550
4551fi
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4553$as_echo "$ac_cv_host" >&6; }
4554case $ac_cv_host in
4555*-*-*) ;;
4556*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4557esac
4558host=$ac_cv_host
4559ac_save_IFS=$IFS; IFS='-'
4560set x $ac_cv_host
4561shift
4562host_cpu=$1
4563host_vendor=$2
4564shift; shift
4565# Remember, the first character of IFS is used to create $*,
4566# except with old shells:
4567host_os=$*
4568IFS=$ac_save_IFS
4569case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4570
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4573$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4574if ${ac_cv_path_SED+:} false; then :
4575  $as_echo_n "(cached) " >&6
4576else
4577            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4578     for ac_i in 1 2 3 4 5 6 7; do
4579       ac_script="$ac_script$as_nl$ac_script"
4580     done
4581     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4582     { ac_script=; unset ac_script;}
4583     if test -z "$SED"; then
4584  ac_path_SED_found=false
4585  # Loop through the user's path and test for each of PROGNAME-LIST
4586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_prog in sed gsed; do
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4594      as_fn_executable_p "$ac_path_SED" || continue
4595# Check for GNU ac_path_SED and select it if it is found.
4596  # Check for GNU $ac_path_SED
4597case `"$ac_path_SED" --version 2>&1` in
4598*GNU*)
4599  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4600*)
4601  ac_count=0
4602  $as_echo_n 0123456789 >"conftest.in"
4603  while :
4604  do
4605    cat "conftest.in" "conftest.in" >"conftest.tmp"
4606    mv "conftest.tmp" "conftest.in"
4607    cp "conftest.in" "conftest.nl"
4608    $as_echo '' >> "conftest.nl"
4609    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611    as_fn_arith $ac_count + 1 && ac_count=$as_val
4612    if test $ac_count -gt ${ac_path_SED_max-0}; then
4613      # Best one so far, save it but keep looking for a better one
4614      ac_cv_path_SED="$ac_path_SED"
4615      ac_path_SED_max=$ac_count
4616    fi
4617    # 10*(2^10) chars as input seems more than enough
4618    test $ac_count -gt 10 && break
4619  done
4620  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621esac
4622
4623      $ac_path_SED_found && break 3
4624    done
4625  done
4626  done
4627IFS=$as_save_IFS
4628  if test -z "$ac_cv_path_SED"; then
4629    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4630  fi
4631else
4632  ac_cv_path_SED=$SED
4633fi
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4637$as_echo "$ac_cv_path_SED" >&6; }
4638 SED="$ac_cv_path_SED"
4639  rm -f conftest.sed
4640
4641
4642
4643
4644
4645
4646# Check whether --enable-selective-werror was given.
4647if test "${enable_selective_werror+set}" = set; then :
4648  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4649else
4650  SELECTIVE_WERROR=yes
4651fi
4652
4653
4654
4655
4656
4657# -v is too short to test reliably with XORG_TESTSET_CFLAG
4658if test "x$SUNCC" = "xyes"; then
4659    BASE_CFLAGS="-v"
4660else
4661    BASE_CFLAGS=""
4662fi
4663
4664# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678xorg_testset_save_CFLAGS="$CFLAGS"
4679
4680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688/* end confdefs.h.  */
4689int i;
4690_ACEOF
4691if ac_fn_c_try_compile "$LINENO"; then :
4692  xorg_cv_cc_flag_unknown_warning_option=yes
4693else
4694  xorg_cv_cc_flag_unknown_warning_option=no
4695fi
4696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697fi
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4701	CFLAGS="$xorg_testset_save_CFLAGS"
4702fi
4703
4704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4707	fi
4708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715/* end confdefs.h.  */
4716int i;
4717_ACEOF
4718if ac_fn_c_try_compile "$LINENO"; then :
4719  xorg_cv_cc_flag_unused_command_line_argument=yes
4720else
4721  xorg_cv_cc_flag_unused_command_line_argument=no
4722fi
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4728	CFLAGS="$xorg_testset_save_CFLAGS"
4729fi
4730
4731found="no"
4732
4733	if test $found = "no" ; then
4734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4736		fi
4737
4738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4740		fi
4741
4742		CFLAGS="$CFLAGS -Wall"
4743
4744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4745$as_echo_n "checking if $CC supports -Wall... " >&6; }
4746		cacheid=xorg_cv_cc_flag__Wall
4747		if eval \${$cacheid+:} false; then :
4748  $as_echo_n "(cached) " >&6
4749else
4750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751/* end confdefs.h.  */
4752int i;
4753int
4754main ()
4755{
4756
4757  ;
4758  return 0;
4759}
4760_ACEOF
4761if ac_fn_c_try_link "$LINENO"; then :
4762  eval $cacheid=yes
4763else
4764  eval $cacheid=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext \
4767    conftest$ac_exeext conftest.$ac_ext
4768fi
4769
4770
4771		CFLAGS="$xorg_testset_save_CFLAGS"
4772
4773		eval supported=\$$cacheid
4774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4775$as_echo "$supported" >&6; }
4776		if test "$supported" = "yes" ; then
4777			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4778			found="yes"
4779		fi
4780	fi
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796xorg_testset_save_CFLAGS="$CFLAGS"
4797
4798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807int i;
4808_ACEOF
4809if ac_fn_c_try_compile "$LINENO"; then :
4810  xorg_cv_cc_flag_unknown_warning_option=yes
4811else
4812  xorg_cv_cc_flag_unknown_warning_option=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4819	CFLAGS="$xorg_testset_save_CFLAGS"
4820fi
4821
4822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4825	fi
4826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"; then :
4837  xorg_cv_cc_flag_unused_command_line_argument=yes
4838else
4839  xorg_cv_cc_flag_unused_command_line_argument=no
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4846	CFLAGS="$xorg_testset_save_CFLAGS"
4847fi
4848
4849found="no"
4850
4851	if test $found = "no" ; then
4852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854		fi
4855
4856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858		fi
4859
4860		CFLAGS="$CFLAGS -Wpointer-arith"
4861
4862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4863$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4864		cacheid=xorg_cv_cc_flag__Wpointer_arith
4865		if eval \${$cacheid+:} false; then :
4866  $as_echo_n "(cached) " >&6
4867else
4868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h.  */
4870int i;
4871int
4872main ()
4873{
4874
4875  ;
4876  return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_link "$LINENO"; then :
4880  eval $cacheid=yes
4881else
4882  eval $cacheid=no
4883fi
4884rm -f core conftest.err conftest.$ac_objext \
4885    conftest$ac_exeext conftest.$ac_ext
4886fi
4887
4888
4889		CFLAGS="$xorg_testset_save_CFLAGS"
4890
4891		eval supported=\$$cacheid
4892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4893$as_echo "$supported" >&6; }
4894		if test "$supported" = "yes" ; then
4895			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4896			found="yes"
4897		fi
4898	fi
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914xorg_testset_save_CFLAGS="$CFLAGS"
4915
4916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4921  $as_echo_n "(cached) " >&6
4922else
4923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h.  */
4925int i;
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928  xorg_cv_cc_flag_unknown_warning_option=yes
4929else
4930  xorg_cv_cc_flag_unknown_warning_option=no
4931fi
4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937	CFLAGS="$xorg_testset_save_CFLAGS"
4938fi
4939
4940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943	fi
4944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952int i;
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955  xorg_cv_cc_flag_unused_command_line_argument=yes
4956else
4957  xorg_cv_cc_flag_unused_command_line_argument=no
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4964	CFLAGS="$xorg_testset_save_CFLAGS"
4965fi
4966
4967found="no"
4968
4969	if test $found = "no" ; then
4970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972		fi
4973
4974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976		fi
4977
4978		CFLAGS="$CFLAGS -Wmissing-declarations"
4979
4980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4981$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4982		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4983		if eval \${$cacheid+:} false; then :
4984  $as_echo_n "(cached) " >&6
4985else
4986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987/* end confdefs.h.  */
4988int i;
4989int
4990main ()
4991{
4992
4993  ;
4994  return 0;
4995}
4996_ACEOF
4997if ac_fn_c_try_link "$LINENO"; then :
4998  eval $cacheid=yes
4999else
5000  eval $cacheid=no
5001fi
5002rm -f core conftest.err conftest.$ac_objext \
5003    conftest$ac_exeext conftest.$ac_ext
5004fi
5005
5006
5007		CFLAGS="$xorg_testset_save_CFLAGS"
5008
5009		eval supported=\$$cacheid
5010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5011$as_echo "$supported" >&6; }
5012		if test "$supported" = "yes" ; then
5013			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5014			found="yes"
5015		fi
5016	fi
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032xorg_testset_save_CFLAGS="$CFLAGS"
5033
5034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5039  $as_echo_n "(cached) " >&6
5040else
5041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043int i;
5044_ACEOF
5045if ac_fn_c_try_compile "$LINENO"; then :
5046  xorg_cv_cc_flag_unknown_warning_option=yes
5047else
5048  xorg_cv_cc_flag_unknown_warning_option=no
5049fi
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5054	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5055	CFLAGS="$xorg_testset_save_CFLAGS"
5056fi
5057
5058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5059	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5060		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5061	fi
5062	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int i;
5071_ACEOF
5072if ac_fn_c_try_compile "$LINENO"; then :
5073  xorg_cv_cc_flag_unused_command_line_argument=yes
5074else
5075  xorg_cv_cc_flag_unused_command_line_argument=no
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5082	CFLAGS="$xorg_testset_save_CFLAGS"
5083fi
5084
5085found="no"
5086
5087	if test $found = "no" ; then
5088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5090		fi
5091
5092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094		fi
5095
5096		CFLAGS="$CFLAGS -Wformat=2"
5097
5098		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5099$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5100		cacheid=xorg_cv_cc_flag__Wformat_2
5101		if eval \${$cacheid+:} false; then :
5102  $as_echo_n "(cached) " >&6
5103else
5104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105/* end confdefs.h.  */
5106int i;
5107int
5108main ()
5109{
5110
5111  ;
5112  return 0;
5113}
5114_ACEOF
5115if ac_fn_c_try_link "$LINENO"; then :
5116  eval $cacheid=yes
5117else
5118  eval $cacheid=no
5119fi
5120rm -f core conftest.err conftest.$ac_objext \
5121    conftest$ac_exeext conftest.$ac_ext
5122fi
5123
5124
5125		CFLAGS="$xorg_testset_save_CFLAGS"
5126
5127		eval supported=\$$cacheid
5128		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5129$as_echo "$supported" >&6; }
5130		if test "$supported" = "yes" ; then
5131			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5132			found="yes"
5133		fi
5134	fi
5135
5136	if test $found = "no" ; then
5137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139		fi
5140
5141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143		fi
5144
5145		CFLAGS="$CFLAGS -Wformat"
5146
5147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5148$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5149		cacheid=xorg_cv_cc_flag__Wformat
5150		if eval \${$cacheid+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155int i;
5156int
5157main ()
5158{
5159
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_link "$LINENO"; then :
5165  eval $cacheid=yes
5166else
5167  eval $cacheid=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext \
5170    conftest$ac_exeext conftest.$ac_ext
5171fi
5172
5173
5174		CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176		eval supported=\$$cacheid
5177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178$as_echo "$supported" >&6; }
5179		if test "$supported" = "yes" ; then
5180			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5181			found="yes"
5182		fi
5183	fi
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201xorg_testset_save_CFLAGS="$CFLAGS"
5202
5203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211/* end confdefs.h.  */
5212int i;
5213_ACEOF
5214if ac_fn_c_try_compile "$LINENO"; then :
5215  xorg_cv_cc_flag_unknown_warning_option=yes
5216else
5217  xorg_cv_cc_flag_unknown_warning_option=no
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5224	CFLAGS="$xorg_testset_save_CFLAGS"
5225fi
5226
5227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230	fi
5231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h.  */
5239int i;
5240_ACEOF
5241if ac_fn_c_try_compile "$LINENO"; then :
5242  xorg_cv_cc_flag_unused_command_line_argument=yes
5243else
5244  xorg_cv_cc_flag_unused_command_line_argument=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5251	CFLAGS="$xorg_testset_save_CFLAGS"
5252fi
5253
5254found="no"
5255
5256	if test $found = "no" ; then
5257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259		fi
5260
5261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5263		fi
5264
5265		CFLAGS="$CFLAGS -Wstrict-prototypes"
5266
5267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5268$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5269		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5270		if eval \${$cacheid+:} false; then :
5271  $as_echo_n "(cached) " >&6
5272else
5273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274/* end confdefs.h.  */
5275int i;
5276int
5277main ()
5278{
5279
5280  ;
5281  return 0;
5282}
5283_ACEOF
5284if ac_fn_c_try_link "$LINENO"; then :
5285  eval $cacheid=yes
5286else
5287  eval $cacheid=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext \
5290    conftest$ac_exeext conftest.$ac_ext
5291fi
5292
5293
5294		CFLAGS="$xorg_testset_save_CFLAGS"
5295
5296		eval supported=\$$cacheid
5297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5298$as_echo "$supported" >&6; }
5299		if test "$supported" = "yes" ; then
5300			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5301			found="yes"
5302		fi
5303	fi
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319xorg_testset_save_CFLAGS="$CFLAGS"
5320
5321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5326  $as_echo_n "(cached) " >&6
5327else
5328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h.  */
5330int i;
5331_ACEOF
5332if ac_fn_c_try_compile "$LINENO"; then :
5333  xorg_cv_cc_flag_unknown_warning_option=yes
5334else
5335  xorg_cv_cc_flag_unknown_warning_option=no
5336fi
5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5342	CFLAGS="$xorg_testset_save_CFLAGS"
5343fi
5344
5345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5348	fi
5349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357int i;
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360  xorg_cv_cc_flag_unused_command_line_argument=yes
5361else
5362  xorg_cv_cc_flag_unused_command_line_argument=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5369	CFLAGS="$xorg_testset_save_CFLAGS"
5370fi
5371
5372found="no"
5373
5374	if test $found = "no" ; then
5375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377		fi
5378
5379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5381		fi
5382
5383		CFLAGS="$CFLAGS -Wmissing-prototypes"
5384
5385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5386$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5387		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5388		if eval \${$cacheid+:} false; then :
5389  $as_echo_n "(cached) " >&6
5390else
5391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h.  */
5393int i;
5394int
5395main ()
5396{
5397
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402if ac_fn_c_try_link "$LINENO"; then :
5403  eval $cacheid=yes
5404else
5405  eval $cacheid=no
5406fi
5407rm -f core conftest.err conftest.$ac_objext \
5408    conftest$ac_exeext conftest.$ac_ext
5409fi
5410
5411
5412		CFLAGS="$xorg_testset_save_CFLAGS"
5413
5414		eval supported=\$$cacheid
5415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5416$as_echo "$supported" >&6; }
5417		if test "$supported" = "yes" ; then
5418			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5419			found="yes"
5420		fi
5421	fi
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437xorg_testset_save_CFLAGS="$CFLAGS"
5438
5439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5444  $as_echo_n "(cached) " >&6
5445else
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448int i;
5449_ACEOF
5450if ac_fn_c_try_compile "$LINENO"; then :
5451  xorg_cv_cc_flag_unknown_warning_option=yes
5452else
5453  xorg_cv_cc_flag_unknown_warning_option=no
5454fi
5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456fi
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5460	CFLAGS="$xorg_testset_save_CFLAGS"
5461fi
5462
5463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5466	fi
5467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475int i;
5476_ACEOF
5477if ac_fn_c_try_compile "$LINENO"; then :
5478  xorg_cv_cc_flag_unused_command_line_argument=yes
5479else
5480  xorg_cv_cc_flag_unused_command_line_argument=no
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5487	CFLAGS="$xorg_testset_save_CFLAGS"
5488fi
5489
5490found="no"
5491
5492	if test $found = "no" ; then
5493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495		fi
5496
5497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5499		fi
5500
5501		CFLAGS="$CFLAGS -Wnested-externs"
5502
5503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5504$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5505		cacheid=xorg_cv_cc_flag__Wnested_externs
5506		if eval \${$cacheid+:} false; then :
5507  $as_echo_n "(cached) " >&6
5508else
5509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h.  */
5511int i;
5512int
5513main ()
5514{
5515
5516  ;
5517  return 0;
5518}
5519_ACEOF
5520if ac_fn_c_try_link "$LINENO"; then :
5521  eval $cacheid=yes
5522else
5523  eval $cacheid=no
5524fi
5525rm -f core conftest.err conftest.$ac_objext \
5526    conftest$ac_exeext conftest.$ac_ext
5527fi
5528
5529
5530		CFLAGS="$xorg_testset_save_CFLAGS"
5531
5532		eval supported=\$$cacheid
5533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5534$as_echo "$supported" >&6; }
5535		if test "$supported" = "yes" ; then
5536			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5537			found="yes"
5538		fi
5539	fi
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555xorg_testset_save_CFLAGS="$CFLAGS"
5556
5557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5562  $as_echo_n "(cached) " >&6
5563else
5564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566int i;
5567_ACEOF
5568if ac_fn_c_try_compile "$LINENO"; then :
5569  xorg_cv_cc_flag_unknown_warning_option=yes
5570else
5571  xorg_cv_cc_flag_unknown_warning_option=no
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574fi
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5578	CFLAGS="$xorg_testset_save_CFLAGS"
5579fi
5580
5581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5584	fi
5585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594_ACEOF
5595if ac_fn_c_try_compile "$LINENO"; then :
5596  xorg_cv_cc_flag_unused_command_line_argument=yes
5597else
5598  xorg_cv_cc_flag_unused_command_line_argument=no
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5605	CFLAGS="$xorg_testset_save_CFLAGS"
5606fi
5607
5608found="no"
5609
5610	if test $found = "no" ; then
5611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613		fi
5614
5615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617		fi
5618
5619		CFLAGS="$CFLAGS -Wbad-function-cast"
5620
5621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5622$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5623		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5624		if eval \${$cacheid+:} false; then :
5625  $as_echo_n "(cached) " >&6
5626else
5627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h.  */
5629int i;
5630int
5631main ()
5632{
5633
5634  ;
5635  return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_link "$LINENO"; then :
5639  eval $cacheid=yes
5640else
5641  eval $cacheid=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext \
5644    conftest$ac_exeext conftest.$ac_ext
5645fi
5646
5647
5648		CFLAGS="$xorg_testset_save_CFLAGS"
5649
5650		eval supported=\$$cacheid
5651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5652$as_echo "$supported" >&6; }
5653		if test "$supported" = "yes" ; then
5654			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5655			found="yes"
5656		fi
5657	fi
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673xorg_testset_save_CFLAGS="$CFLAGS"
5674
5675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5680  $as_echo_n "(cached) " >&6
5681else
5682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h.  */
5684int i;
5685_ACEOF
5686if ac_fn_c_try_compile "$LINENO"; then :
5687  xorg_cv_cc_flag_unknown_warning_option=yes
5688else
5689  xorg_cv_cc_flag_unknown_warning_option=no
5690fi
5691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5692fi
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5696	CFLAGS="$xorg_testset_save_CFLAGS"
5697fi
5698
5699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702	fi
5703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714  xorg_cv_cc_flag_unused_command_line_argument=yes
5715else
5716  xorg_cv_cc_flag_unused_command_line_argument=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5723	CFLAGS="$xorg_testset_save_CFLAGS"
5724fi
5725
5726found="no"
5727
5728	if test $found = "no" ; then
5729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5731		fi
5732
5733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5735		fi
5736
5737		CFLAGS="$CFLAGS -Wold-style-definition"
5738
5739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5740$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5741		cacheid=xorg_cv_cc_flag__Wold_style_definition
5742		if eval \${$cacheid+:} false; then :
5743  $as_echo_n "(cached) " >&6
5744else
5745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746/* end confdefs.h.  */
5747int i;
5748int
5749main ()
5750{
5751
5752  ;
5753  return 0;
5754}
5755_ACEOF
5756if ac_fn_c_try_link "$LINENO"; then :
5757  eval $cacheid=yes
5758else
5759  eval $cacheid=no
5760fi
5761rm -f core conftest.err conftest.$ac_objext \
5762    conftest$ac_exeext conftest.$ac_ext
5763fi
5764
5765
5766		CFLAGS="$xorg_testset_save_CFLAGS"
5767
5768		eval supported=\$$cacheid
5769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5770$as_echo "$supported" >&6; }
5771		if test "$supported" = "yes" ; then
5772			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5773			found="yes"
5774		fi
5775	fi
5776
5777	if test $found = "no" ; then
5778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780		fi
5781
5782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784		fi
5785
5786		CFLAGS="$CFLAGS -fd"
5787
5788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5789$as_echo_n "checking if $CC supports -fd... " >&6; }
5790		cacheid=xorg_cv_cc_flag__fd
5791		if eval \${$cacheid+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797int
5798main ()
5799{
5800
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_link "$LINENO"; then :
5806  eval $cacheid=yes
5807else
5808  eval $cacheid=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext \
5811    conftest$ac_exeext conftest.$ac_ext
5812fi
5813
5814
5815		CFLAGS="$xorg_testset_save_CFLAGS"
5816
5817		eval supported=\$$cacheid
5818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5819$as_echo "$supported" >&6; }
5820		if test "$supported" = "yes" ; then
5821			BASE_CFLAGS="$BASE_CFLAGS -fd"
5822			found="yes"
5823		fi
5824	fi
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840xorg_testset_save_CFLAGS="$CFLAGS"
5841
5842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851int i;
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"; then :
5854  xorg_cv_cc_flag_unknown_warning_option=yes
5855else
5856  xorg_cv_cc_flag_unknown_warning_option=no
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5863	CFLAGS="$xorg_testset_save_CFLAGS"
5864fi
5865
5866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869	fi
5870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878int i;
5879_ACEOF
5880if ac_fn_c_try_compile "$LINENO"; then :
5881  xorg_cv_cc_flag_unused_command_line_argument=yes
5882else
5883  xorg_cv_cc_flag_unused_command_line_argument=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5890	CFLAGS="$xorg_testset_save_CFLAGS"
5891fi
5892
5893found="no"
5894
5895	if test $found = "no" ; then
5896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898		fi
5899
5900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902		fi
5903
5904		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5905
5906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5907$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5908		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5909		if eval \${$cacheid+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915int
5916main ()
5917{
5918
5919  ;
5920  return 0;
5921}
5922_ACEOF
5923if ac_fn_c_try_link "$LINENO"; then :
5924  eval $cacheid=yes
5925else
5926  eval $cacheid=no
5927fi
5928rm -f core conftest.err conftest.$ac_objext \
5929    conftest$ac_exeext conftest.$ac_ext
5930fi
5931
5932
5933		CFLAGS="$xorg_testset_save_CFLAGS"
5934
5935		eval supported=\$$cacheid
5936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5937$as_echo "$supported" >&6; }
5938		if test "$supported" = "yes" ; then
5939			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5940			found="yes"
5941		fi
5942	fi
5943
5944
5945
5946
5947
5948# This chunk adds additional warnings that could catch undesired effects.
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962xorg_testset_save_CFLAGS="$CFLAGS"
5963
5964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974_ACEOF
5975if ac_fn_c_try_compile "$LINENO"; then :
5976  xorg_cv_cc_flag_unknown_warning_option=yes
5977else
5978  xorg_cv_cc_flag_unknown_warning_option=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5985	CFLAGS="$xorg_testset_save_CFLAGS"
5986fi
5987
5988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991	fi
5992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"; then :
6003  xorg_cv_cc_flag_unused_command_line_argument=yes
6004else
6005  xorg_cv_cc_flag_unused_command_line_argument=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008fi
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015found="no"
6016
6017	if test $found = "no" ; then
6018		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020		fi
6021
6022		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024		fi
6025
6026		CFLAGS="$CFLAGS -Wunused"
6027
6028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6029$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6030		cacheid=xorg_cv_cc_flag__Wunused
6031		if eval \${$cacheid+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036int i;
6037int
6038main ()
6039{
6040
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045if ac_fn_c_try_link "$LINENO"; then :
6046  eval $cacheid=yes
6047else
6048  eval $cacheid=no
6049fi
6050rm -f core conftest.err conftest.$ac_objext \
6051    conftest$ac_exeext conftest.$ac_ext
6052fi
6053
6054
6055		CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057		eval supported=\$$cacheid
6058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059$as_echo "$supported" >&6; }
6060		if test "$supported" = "yes" ; then
6061			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6062			found="yes"
6063		fi
6064	fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  xorg_cv_cc_flag_unknown_warning_option=yes
6095else
6096  xorg_cv_cc_flag_unknown_warning_option=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103	CFLAGS="$xorg_testset_save_CFLAGS"
6104fi
6105
6106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109	fi
6110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121  xorg_cv_cc_flag_unused_command_line_argument=yes
6122else
6123  xorg_cv_cc_flag_unused_command_line_argument=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133found="no"
6134
6135	if test $found = "no" ; then
6136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138		fi
6139
6140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142		fi
6143
6144		CFLAGS="$CFLAGS -Wuninitialized"
6145
6146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6147$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6148		cacheid=xorg_cv_cc_flag__Wuninitialized
6149		if eval \${$cacheid+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154int i;
6155int
6156main ()
6157{
6158
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164  eval $cacheid=yes
6165else
6166  eval $cacheid=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169    conftest$ac_exeext conftest.$ac_ext
6170fi
6171
6172
6173		CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175		eval supported=\$$cacheid
6176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177$as_echo "$supported" >&6; }
6178		if test "$supported" = "yes" ; then
6179			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6180			found="yes"
6181		fi
6182	fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209int i;
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212  xorg_cv_cc_flag_unknown_warning_option=yes
6213else
6214  xorg_cv_cc_flag_unknown_warning_option=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221	CFLAGS="$xorg_testset_save_CFLAGS"
6222fi
6223
6224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227	fi
6228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236int i;
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239  xorg_cv_cc_flag_unused_command_line_argument=yes
6240else
6241  xorg_cv_cc_flag_unused_command_line_argument=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251found="no"
6252
6253	if test $found = "no" ; then
6254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256		fi
6257
6258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260		fi
6261
6262		CFLAGS="$CFLAGS -Wshadow"
6263
6264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6265$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6266		cacheid=xorg_cv_cc_flag__Wshadow
6267		if eval \${$cacheid+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h.  */
6272int i;
6273int
6274main ()
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_link "$LINENO"; then :
6282  eval $cacheid=yes
6283else
6284  eval $cacheid=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext \
6287    conftest$ac_exeext conftest.$ac_ext
6288fi
6289
6290
6291		CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293		eval supported=\$$cacheid
6294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295$as_echo "$supported" >&6; }
6296		if test "$supported" = "yes" ; then
6297			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6298			found="yes"
6299		fi
6300	fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327int i;
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330  xorg_cv_cc_flag_unknown_warning_option=yes
6331else
6332  xorg_cv_cc_flag_unknown_warning_option=no
6333fi
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339	CFLAGS="$xorg_testset_save_CFLAGS"
6340fi
6341
6342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345	fi
6346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"; then :
6357  xorg_cv_cc_flag_unused_command_line_argument=yes
6358else
6359  xorg_cv_cc_flag_unused_command_line_argument=no
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6366	CFLAGS="$xorg_testset_save_CFLAGS"
6367fi
6368
6369found="no"
6370
6371	if test $found = "no" ; then
6372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374		fi
6375
6376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378		fi
6379
6380		CFLAGS="$CFLAGS -Wmissing-noreturn"
6381
6382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6383$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6384		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6385		if eval \${$cacheid+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390int i;
6391int
6392main ()
6393{
6394
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400  eval $cacheid=yes
6401else
6402  eval $cacheid=no
6403fi
6404rm -f core conftest.err conftest.$ac_objext \
6405    conftest$ac_exeext conftest.$ac_ext
6406fi
6407
6408
6409		CFLAGS="$xorg_testset_save_CFLAGS"
6410
6411		eval supported=\$$cacheid
6412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6413$as_echo "$supported" >&6; }
6414		if test "$supported" = "yes" ; then
6415			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6416			found="yes"
6417		fi
6418	fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434xorg_testset_save_CFLAGS="$CFLAGS"
6435
6436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h.  */
6445int i;
6446_ACEOF
6447if ac_fn_c_try_compile "$LINENO"; then :
6448  xorg_cv_cc_flag_unknown_warning_option=yes
6449else
6450  xorg_cv_cc_flag_unknown_warning_option=no
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6457	CFLAGS="$xorg_testset_save_CFLAGS"
6458fi
6459
6460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463	fi
6464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h.  */
6472int i;
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475  xorg_cv_cc_flag_unused_command_line_argument=yes
6476else
6477  xorg_cv_cc_flag_unused_command_line_argument=no
6478fi
6479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6484	CFLAGS="$xorg_testset_save_CFLAGS"
6485fi
6486
6487found="no"
6488
6489	if test $found = "no" ; then
6490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492		fi
6493
6494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496		fi
6497
6498		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6499
6500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6501$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6502		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6503		if eval \${$cacheid+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508int i;
6509int
6510main ()
6511{
6512
6513  ;
6514  return 0;
6515}
6516_ACEOF
6517if ac_fn_c_try_link "$LINENO"; then :
6518  eval $cacheid=yes
6519else
6520  eval $cacheid=no
6521fi
6522rm -f core conftest.err conftest.$ac_objext \
6523    conftest$ac_exeext conftest.$ac_ext
6524fi
6525
6526
6527		CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529		eval supported=\$$cacheid
6530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531$as_echo "$supported" >&6; }
6532		if test "$supported" = "yes" ; then
6533			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6534			found="yes"
6535		fi
6536	fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6559  $as_echo_n "(cached) " >&6
6560else
6561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563int i;
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"; then :
6566  xorg_cv_cc_flag_unknown_warning_option=yes
6567else
6568  xorg_cv_cc_flag_unknown_warning_option=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6575	CFLAGS="$xorg_testset_save_CFLAGS"
6576fi
6577
6578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581	fi
6582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590int i;
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593  xorg_cv_cc_flag_unused_command_line_argument=yes
6594else
6595  xorg_cv_cc_flag_unused_command_line_argument=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602	CFLAGS="$xorg_testset_save_CFLAGS"
6603fi
6604
6605found="no"
6606
6607	if test $found = "no" ; then
6608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610		fi
6611
6612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614		fi
6615
6616		CFLAGS="$CFLAGS -Wredundant-decls"
6617
6618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6619$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6620		cacheid=xorg_cv_cc_flag__Wredundant_decls
6621		if eval \${$cacheid+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h.  */
6626int i;
6627int
6628main ()
6629{
6630
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635if ac_fn_c_try_link "$LINENO"; then :
6636  eval $cacheid=yes
6637else
6638  eval $cacheid=no
6639fi
6640rm -f core conftest.err conftest.$ac_objext \
6641    conftest$ac_exeext conftest.$ac_ext
6642fi
6643
6644
6645		CFLAGS="$xorg_testset_save_CFLAGS"
6646
6647		eval supported=\$$cacheid
6648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649$as_echo "$supported" >&6; }
6650		if test "$supported" = "yes" ; then
6651			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6652			found="yes"
6653		fi
6654	fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681int i;
6682_ACEOF
6683if ac_fn_c_try_compile "$LINENO"; then :
6684  xorg_cv_cc_flag_unknown_warning_option=yes
6685else
6686  xorg_cv_cc_flag_unknown_warning_option=no
6687fi
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6693	CFLAGS="$xorg_testset_save_CFLAGS"
6694fi
6695
6696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699	fi
6700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708int i;
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711  xorg_cv_cc_flag_unused_command_line_argument=yes
6712else
6713  xorg_cv_cc_flag_unused_command_line_argument=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720	CFLAGS="$xorg_testset_save_CFLAGS"
6721fi
6722
6723found="no"
6724
6725	if test $found = "no" ; then
6726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728		fi
6729
6730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732		fi
6733
6734		CFLAGS="$CFLAGS -Wlogical-op"
6735
6736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6737$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6738		cacheid=xorg_cv_cc_flag__Wlogical_op
6739		if eval \${$cacheid+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745int
6746main ()
6747{
6748
6749  ;
6750  return 0;
6751}
6752_ACEOF
6753if ac_fn_c_try_link "$LINENO"; then :
6754  eval $cacheid=yes
6755else
6756  eval $cacheid=no
6757fi
6758rm -f core conftest.err conftest.$ac_objext \
6759    conftest$ac_exeext conftest.$ac_ext
6760fi
6761
6762
6763		CFLAGS="$xorg_testset_save_CFLAGS"
6764
6765		eval supported=\$$cacheid
6766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6767$as_echo "$supported" >&6; }
6768		if test "$supported" = "yes" ; then
6769			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6770			found="yes"
6771		fi
6772	fi
6773
6774
6775
6776# These are currently disabled because they are noisy.  They will be enabled
6777# in the future once the codebase is sufficiently modernized to silence
6778# them.  For now, I don't want them to drown out the other warnings.
6779# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6780# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6782
6783# Turn some warnings into errors, so we don't accidently get successful builds
6784# when there are problems that should be fixed.
6785
6786if test "x$SELECTIVE_WERROR" = "xyes" ; then
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810/* end confdefs.h.  */
6811int i;
6812_ACEOF
6813if ac_fn_c_try_compile "$LINENO"; then :
6814  xorg_cv_cc_flag_unknown_warning_option=yes
6815else
6816  xorg_cv_cc_flag_unknown_warning_option=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819fi
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6823	CFLAGS="$xorg_testset_save_CFLAGS"
6824fi
6825
6826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6829	fi
6830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838int i;
6839_ACEOF
6840if ac_fn_c_try_compile "$LINENO"; then :
6841  xorg_cv_cc_flag_unused_command_line_argument=yes
6842else
6843  xorg_cv_cc_flag_unused_command_line_argument=no
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846fi
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850	CFLAGS="$xorg_testset_save_CFLAGS"
6851fi
6852
6853found="no"
6854
6855	if test $found = "no" ; then
6856		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858		fi
6859
6860		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862		fi
6863
6864		CFLAGS="$CFLAGS -Werror=implicit"
6865
6866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6867$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6868		cacheid=xorg_cv_cc_flag__Werror_implicit
6869		if eval \${$cacheid+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main ()
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"; then :
6884  eval $cacheid=yes
6885else
6886  eval $cacheid=no
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889    conftest$ac_exeext conftest.$ac_ext
6890fi
6891
6892
6893		CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895		eval supported=\$$cacheid
6896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897$as_echo "$supported" >&6; }
6898		if test "$supported" = "yes" ; then
6899			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6900			found="yes"
6901		fi
6902	fi
6903
6904	if test $found = "no" ; then
6905		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907		fi
6908
6909		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911		fi
6912
6913		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6914
6915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6916$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6917		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6918		if eval \${$cacheid+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924int
6925main ()
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_link "$LINENO"; then :
6933  eval $cacheid=yes
6934else
6935  eval $cacheid=no
6936fi
6937rm -f core conftest.err conftest.$ac_objext \
6938    conftest$ac_exeext conftest.$ac_ext
6939fi
6940
6941
6942		CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944		eval supported=\$$cacheid
6945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946$as_echo "$supported" >&6; }
6947		if test "$supported" = "yes" ; then
6948			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6949			found="yes"
6950		fi
6951	fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978int i;
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"; then :
6981  xorg_cv_cc_flag_unknown_warning_option=yes
6982else
6983  xorg_cv_cc_flag_unknown_warning_option=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6990	CFLAGS="$xorg_testset_save_CFLAGS"
6991fi
6992
6993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996	fi
6997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005int i;
7006_ACEOF
7007if ac_fn_c_try_compile "$LINENO"; then :
7008  xorg_cv_cc_flag_unused_command_line_argument=yes
7009else
7010  xorg_cv_cc_flag_unused_command_line_argument=no
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7017	CFLAGS="$xorg_testset_save_CFLAGS"
7018fi
7019
7020found="no"
7021
7022	if test $found = "no" ; then
7023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025		fi
7026
7027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029		fi
7030
7031		CFLAGS="$CFLAGS -Werror=nonnull"
7032
7033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7034$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7035		cacheid=xorg_cv_cc_flag__Werror_nonnull
7036		if eval \${$cacheid+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main ()
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"; then :
7051  eval $cacheid=yes
7052else
7053  eval $cacheid=no
7054fi
7055rm -f core conftest.err conftest.$ac_objext \
7056    conftest$ac_exeext conftest.$ac_ext
7057fi
7058
7059
7060		CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062		eval supported=\$$cacheid
7063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064$as_echo "$supported" >&6; }
7065		if test "$supported" = "yes" ; then
7066			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7067			found="yes"
7068		fi
7069	fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"; then :
7099  xorg_cv_cc_flag_unknown_warning_option=yes
7100else
7101  xorg_cv_cc_flag_unknown_warning_option=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7108	CFLAGS="$xorg_testset_save_CFLAGS"
7109fi
7110
7111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114	fi
7115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124_ACEOF
7125if ac_fn_c_try_compile "$LINENO"; then :
7126  xorg_cv_cc_flag_unused_command_line_argument=yes
7127else
7128  xorg_cv_cc_flag_unused_command_line_argument=no
7129fi
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7135	CFLAGS="$xorg_testset_save_CFLAGS"
7136fi
7137
7138found="no"
7139
7140	if test $found = "no" ; then
7141		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143		fi
7144
7145		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147		fi
7148
7149		CFLAGS="$CFLAGS -Werror=init-self"
7150
7151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7152$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7153		cacheid=xorg_cv_cc_flag__Werror_init_self
7154		if eval \${$cacheid+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159int i;
7160int
7161main ()
7162{
7163
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168if ac_fn_c_try_link "$LINENO"; then :
7169  eval $cacheid=yes
7170else
7171  eval $cacheid=no
7172fi
7173rm -f core conftest.err conftest.$ac_objext \
7174    conftest$ac_exeext conftest.$ac_ext
7175fi
7176
7177
7178		CFLAGS="$xorg_testset_save_CFLAGS"
7179
7180		eval supported=\$$cacheid
7181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7182$as_echo "$supported" >&6; }
7183		if test "$supported" = "yes" ; then
7184			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7185			found="yes"
7186		fi
7187	fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203xorg_testset_save_CFLAGS="$CFLAGS"
7204
7205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214int i;
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217  xorg_cv_cc_flag_unknown_warning_option=yes
7218else
7219  xorg_cv_cc_flag_unknown_warning_option=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7226	CFLAGS="$xorg_testset_save_CFLAGS"
7227fi
7228
7229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232	fi
7233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241int i;
7242_ACEOF
7243if ac_fn_c_try_compile "$LINENO"; then :
7244  xorg_cv_cc_flag_unused_command_line_argument=yes
7245else
7246  xorg_cv_cc_flag_unused_command_line_argument=no
7247fi
7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7253	CFLAGS="$xorg_testset_save_CFLAGS"
7254fi
7255
7256found="no"
7257
7258	if test $found = "no" ; then
7259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261		fi
7262
7263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265		fi
7266
7267		CFLAGS="$CFLAGS -Werror=main"
7268
7269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7270$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7271		cacheid=xorg_cv_cc_flag__Werror_main
7272		if eval \${$cacheid+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277int i;
7278int
7279main ()
7280{
7281
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287  eval $cacheid=yes
7288else
7289  eval $cacheid=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293fi
7294
7295
7296		CFLAGS="$xorg_testset_save_CFLAGS"
7297
7298		eval supported=\$$cacheid
7299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300$as_echo "$supported" >&6; }
7301		if test "$supported" = "yes" ; then
7302			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7303			found="yes"
7304		fi
7305	fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321xorg_testset_save_CFLAGS="$CFLAGS"
7322
7323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7328  $as_echo_n "(cached) " >&6
7329else
7330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332int i;
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"; then :
7335  xorg_cv_cc_flag_unknown_warning_option=yes
7336else
7337  xorg_cv_cc_flag_unknown_warning_option=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7344	CFLAGS="$xorg_testset_save_CFLAGS"
7345fi
7346
7347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350	fi
7351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359int i;
7360_ACEOF
7361if ac_fn_c_try_compile "$LINENO"; then :
7362  xorg_cv_cc_flag_unused_command_line_argument=yes
7363else
7364  xorg_cv_cc_flag_unused_command_line_argument=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7371	CFLAGS="$xorg_testset_save_CFLAGS"
7372fi
7373
7374found="no"
7375
7376	if test $found = "no" ; then
7377		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379		fi
7380
7381		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383		fi
7384
7385		CFLAGS="$CFLAGS -Werror=missing-braces"
7386
7387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7388$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7389		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7390		if eval \${$cacheid+:} false; then :
7391  $as_echo_n "(cached) " >&6
7392else
7393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395int i;
7396int
7397main ()
7398{
7399
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404if ac_fn_c_try_link "$LINENO"; then :
7405  eval $cacheid=yes
7406else
7407  eval $cacheid=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext \
7410    conftest$ac_exeext conftest.$ac_ext
7411fi
7412
7413
7414		CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416		eval supported=\$$cacheid
7417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7418$as_echo "$supported" >&6; }
7419		if test "$supported" = "yes" ; then
7420			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7421			found="yes"
7422		fi
7423	fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439xorg_testset_save_CFLAGS="$CFLAGS"
7440
7441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453  xorg_cv_cc_flag_unknown_warning_option=yes
7454else
7455  xorg_cv_cc_flag_unknown_warning_option=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7462	CFLAGS="$xorg_testset_save_CFLAGS"
7463fi
7464
7465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468	fi
7469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477int i;
7478_ACEOF
7479if ac_fn_c_try_compile "$LINENO"; then :
7480  xorg_cv_cc_flag_unused_command_line_argument=yes
7481else
7482  xorg_cv_cc_flag_unused_command_line_argument=no
7483fi
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489	CFLAGS="$xorg_testset_save_CFLAGS"
7490fi
7491
7492found="no"
7493
7494	if test $found = "no" ; then
7495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497		fi
7498
7499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501		fi
7502
7503		CFLAGS="$CFLAGS -Werror=sequence-point"
7504
7505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7506$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7507		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7508		if eval \${$cacheid+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514int
7515main ()
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then :
7523  eval $cacheid=yes
7524else
7525  eval $cacheid=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext \
7528    conftest$ac_exeext conftest.$ac_ext
7529fi
7530
7531
7532		CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534		eval supported=\$$cacheid
7535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536$as_echo "$supported" >&6; }
7537		if test "$supported" = "yes" ; then
7538			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7539			found="yes"
7540		fi
7541	fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568int i;
7569_ACEOF
7570if ac_fn_c_try_compile "$LINENO"; then :
7571  xorg_cv_cc_flag_unknown_warning_option=yes
7572else
7573  xorg_cv_cc_flag_unknown_warning_option=no
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580	CFLAGS="$xorg_testset_save_CFLAGS"
7581fi
7582
7583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586	fi
7587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"; then :
7598  xorg_cv_cc_flag_unused_command_line_argument=yes
7599else
7600  xorg_cv_cc_flag_unused_command_line_argument=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610found="no"
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -Werror=return-type"
7622
7623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7624$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7625		cacheid=xorg_cv_cc_flag__Werror_return_type
7626		if eval \${$cacheid+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_link "$LINENO"; then :
7641  eval $cacheid=yes
7642else
7643  eval $cacheid=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext \
7646    conftest$ac_exeext conftest.$ac_ext
7647fi
7648
7649
7650		CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652		eval supported=\$$cacheid
7653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654$as_echo "$supported" >&6; }
7655		if test "$supported" = "yes" ; then
7656			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7657			found="yes"
7658		fi
7659	fi
7660
7661	if test $found = "no" ; then
7662		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664		fi
7665
7666		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668		fi
7669
7670		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7671
7672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7673$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7674		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7675		if eval \${$cacheid+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680int i;
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_link "$LINENO"; then :
7690  eval $cacheid=yes
7691else
7692  eval $cacheid=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext \
7695    conftest$ac_exeext conftest.$ac_ext
7696fi
7697
7698
7699		CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701		eval supported=\$$cacheid
7702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703$as_echo "$supported" >&6; }
7704		if test "$supported" = "yes" ; then
7705			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7706			found="yes"
7707		fi
7708	fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724xorg_testset_save_CFLAGS="$CFLAGS"
7725
7726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735int i;
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"; then :
7738  xorg_cv_cc_flag_unknown_warning_option=yes
7739else
7740  xorg_cv_cc_flag_unknown_warning_option=no
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747	CFLAGS="$xorg_testset_save_CFLAGS"
7748fi
7749
7750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753	fi
7754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"; then :
7765  xorg_cv_cc_flag_unused_command_line_argument=yes
7766else
7767  xorg_cv_cc_flag_unused_command_line_argument=no
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7774	CFLAGS="$xorg_testset_save_CFLAGS"
7775fi
7776
7777found="no"
7778
7779	if test $found = "no" ; then
7780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782		fi
7783
7784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786		fi
7787
7788		CFLAGS="$CFLAGS -Werror=trigraphs"
7789
7790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7791$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7792		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7793		if eval \${$cacheid+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798int i;
7799int
7800main ()
7801{
7802
7803  ;
7804  return 0;
7805}
7806_ACEOF
7807if ac_fn_c_try_link "$LINENO"; then :
7808  eval $cacheid=yes
7809else
7810  eval $cacheid=no
7811fi
7812rm -f core conftest.err conftest.$ac_objext \
7813    conftest$ac_exeext conftest.$ac_ext
7814fi
7815
7816
7817		CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819		eval supported=\$$cacheid
7820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821$as_echo "$supported" >&6; }
7822		if test "$supported" = "yes" ; then
7823			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7824			found="yes"
7825		fi
7826	fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842xorg_testset_save_CFLAGS="$CFLAGS"
7843
7844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"; then :
7856  xorg_cv_cc_flag_unknown_warning_option=yes
7857else
7858  xorg_cv_cc_flag_unknown_warning_option=no
7859fi
7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7865	CFLAGS="$xorg_testset_save_CFLAGS"
7866fi
7867
7868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871	fi
7872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881_ACEOF
7882if ac_fn_c_try_compile "$LINENO"; then :
7883  xorg_cv_cc_flag_unused_command_line_argument=yes
7884else
7885  xorg_cv_cc_flag_unused_command_line_argument=no
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7892	CFLAGS="$xorg_testset_save_CFLAGS"
7893fi
7894
7895found="no"
7896
7897	if test $found = "no" ; then
7898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900		fi
7901
7902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904		fi
7905
7906		CFLAGS="$CFLAGS -Werror=array-bounds"
7907
7908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7909$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7910		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7911		if eval \${$cacheid+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916int i;
7917int
7918main ()
7919{
7920
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_link "$LINENO"; then :
7926  eval $cacheid=yes
7927else
7928  eval $cacheid=no
7929fi
7930rm -f core conftest.err conftest.$ac_objext \
7931    conftest$ac_exeext conftest.$ac_ext
7932fi
7933
7934
7935		CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937		eval supported=\$$cacheid
7938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939$as_echo "$supported" >&6; }
7940		if test "$supported" = "yes" ; then
7941			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7942			found="yes"
7943		fi
7944	fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971int i;
7972_ACEOF
7973if ac_fn_c_try_compile "$LINENO"; then :
7974  xorg_cv_cc_flag_unknown_warning_option=yes
7975else
7976  xorg_cv_cc_flag_unknown_warning_option=no
7977fi
7978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7983	CFLAGS="$xorg_testset_save_CFLAGS"
7984fi
7985
7986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989	fi
7990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"; then :
8001  xorg_cv_cc_flag_unused_command_line_argument=yes
8002else
8003  xorg_cv_cc_flag_unused_command_line_argument=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8010	CFLAGS="$xorg_testset_save_CFLAGS"
8011fi
8012
8013found="no"
8014
8015	if test $found = "no" ; then
8016		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018		fi
8019
8020		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022		fi
8023
8024		CFLAGS="$CFLAGS -Werror=write-strings"
8025
8026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8027$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8028		cacheid=xorg_cv_cc_flag__Werror_write_strings
8029		if eval \${$cacheid+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034int i;
8035int
8036main ()
8037{
8038
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043if ac_fn_c_try_link "$LINENO"; then :
8044  eval $cacheid=yes
8045else
8046  eval $cacheid=no
8047fi
8048rm -f core conftest.err conftest.$ac_objext \
8049    conftest$ac_exeext conftest.$ac_ext
8050fi
8051
8052
8053		CFLAGS="$xorg_testset_save_CFLAGS"
8054
8055		eval supported=\$$cacheid
8056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8057$as_echo "$supported" >&6; }
8058		if test "$supported" = "yes" ; then
8059			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8060			found="yes"
8061		fi
8062	fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078xorg_testset_save_CFLAGS="$CFLAGS"
8079
8080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089int i;
8090_ACEOF
8091if ac_fn_c_try_compile "$LINENO"; then :
8092  xorg_cv_cc_flag_unknown_warning_option=yes
8093else
8094  xorg_cv_cc_flag_unknown_warning_option=no
8095fi
8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8101	CFLAGS="$xorg_testset_save_CFLAGS"
8102fi
8103
8104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107	fi
8108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119  xorg_cv_cc_flag_unused_command_line_argument=yes
8120else
8121  xorg_cv_cc_flag_unused_command_line_argument=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8128	CFLAGS="$xorg_testset_save_CFLAGS"
8129fi
8130
8131found="no"
8132
8133	if test $found = "no" ; then
8134		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136		fi
8137
8138		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140		fi
8141
8142		CFLAGS="$CFLAGS -Werror=address"
8143
8144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8145$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8146		cacheid=xorg_cv_cc_flag__Werror_address
8147		if eval \${$cacheid+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152int i;
8153int
8154main ()
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_link "$LINENO"; then :
8162  eval $cacheid=yes
8163else
8164  eval $cacheid=no
8165fi
8166rm -f core conftest.err conftest.$ac_objext \
8167    conftest$ac_exeext conftest.$ac_ext
8168fi
8169
8170
8171		CFLAGS="$xorg_testset_save_CFLAGS"
8172
8173		eval supported=\$$cacheid
8174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8175$as_echo "$supported" >&6; }
8176		if test "$supported" = "yes" ; then
8177			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8178			found="yes"
8179		fi
8180	fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196xorg_testset_save_CFLAGS="$CFLAGS"
8197
8198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h.  */
8207int i;
8208_ACEOF
8209if ac_fn_c_try_compile "$LINENO"; then :
8210  xorg_cv_cc_flag_unknown_warning_option=yes
8211else
8212  xorg_cv_cc_flag_unknown_warning_option=no
8213fi
8214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8219	CFLAGS="$xorg_testset_save_CFLAGS"
8220fi
8221
8222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225	fi
8226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235_ACEOF
8236if ac_fn_c_try_compile "$LINENO"; then :
8237  xorg_cv_cc_flag_unused_command_line_argument=yes
8238else
8239  xorg_cv_cc_flag_unused_command_line_argument=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249found="no"
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8261
8262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8263$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8264		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8265		if eval \${$cacheid+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271int
8272main ()
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"; then :
8280  eval $cacheid=yes
8281else
8282  eval $cacheid=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext \
8285    conftest$ac_exeext conftest.$ac_ext
8286fi
8287
8288
8289		CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291		eval supported=\$$cacheid
8292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293$as_echo "$supported" >&6; }
8294		if test "$supported" = "yes" ; then
8295			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8296			found="yes"
8297		fi
8298	fi
8299
8300	if test $found = "no" ; then
8301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303		fi
8304
8305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307		fi
8308
8309		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8310
8311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8312$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8313		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8314		if eval \${$cacheid+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"; then :
8329  eval $cacheid=yes
8330else
8331  eval $cacheid=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext \
8334    conftest$ac_exeext conftest.$ac_ext
8335fi
8336
8337
8338		CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340		eval supported=\$$cacheid
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342$as_echo "$supported" >&6; }
8343		if test "$supported" = "yes" ; then
8344			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8345			found="yes"
8346		fi
8347	fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374int i;
8375_ACEOF
8376if ac_fn_c_try_compile "$LINENO"; then :
8377  xorg_cv_cc_flag_unknown_warning_option=yes
8378else
8379  xorg_cv_cc_flag_unknown_warning_option=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386	CFLAGS="$xorg_testset_save_CFLAGS"
8387fi
8388
8389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392	fi
8393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"; then :
8404  xorg_cv_cc_flag_unused_command_line_argument=yes
8405else
8406  xorg_cv_cc_flag_unused_command_line_argument=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409fi
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413	CFLAGS="$xorg_testset_save_CFLAGS"
8414fi
8415
8416found="no"
8417
8418	if test $found = "no" ; then
8419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421		fi
8422
8423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425		fi
8426
8427		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8428
8429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8430$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8431		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8432		if eval \${$cacheid+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438int
8439main ()
8440{
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_link "$LINENO"; then :
8447  eval $cacheid=yes
8448else
8449  eval $cacheid=no
8450fi
8451rm -f core conftest.err conftest.$ac_objext \
8452    conftest$ac_exeext conftest.$ac_ext
8453fi
8454
8455
8456		CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458		eval supported=\$$cacheid
8459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460$as_echo "$supported" >&6; }
8461		if test "$supported" = "yes" ; then
8462			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8463			found="yes"
8464		fi
8465	fi
8466
8467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8468else
8469{ $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
8470$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;}
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496_ACEOF
8497if ac_fn_c_try_compile "$LINENO"; then :
8498  xorg_cv_cc_flag_unknown_warning_option=yes
8499else
8500  xorg_cv_cc_flag_unknown_warning_option=no
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8507	CFLAGS="$xorg_testset_save_CFLAGS"
8508fi
8509
8510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513	fi
8514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h.  */
8522int i;
8523_ACEOF
8524if ac_fn_c_try_compile "$LINENO"; then :
8525  xorg_cv_cc_flag_unused_command_line_argument=yes
8526else
8527  xorg_cv_cc_flag_unused_command_line_argument=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534	CFLAGS="$xorg_testset_save_CFLAGS"
8535fi
8536
8537found="no"
8538
8539	if test $found = "no" ; then
8540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542		fi
8543
8544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546		fi
8547
8548		CFLAGS="$CFLAGS -Wimplicit"
8549
8550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8551$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8552		cacheid=xorg_cv_cc_flag__Wimplicit
8553		if eval \${$cacheid+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  eval $cacheid=yes
8569else
8570  eval $cacheid=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576
8577		CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579		eval supported=\$$cacheid
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581$as_echo "$supported" >&6; }
8582		if test "$supported" = "yes" ; then
8583			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8584			found="yes"
8585		fi
8586	fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"; then :
8616  xorg_cv_cc_flag_unknown_warning_option=yes
8617else
8618  xorg_cv_cc_flag_unknown_warning_option=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625	CFLAGS="$xorg_testset_save_CFLAGS"
8626fi
8627
8628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631	fi
8632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643  xorg_cv_cc_flag_unused_command_line_argument=yes
8644else
8645  xorg_cv_cc_flag_unused_command_line_argument=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652	CFLAGS="$xorg_testset_save_CFLAGS"
8653fi
8654
8655found="no"
8656
8657	if test $found = "no" ; then
8658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660		fi
8661
8662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664		fi
8665
8666		CFLAGS="$CFLAGS -Wnonnull"
8667
8668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8669$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8670		cacheid=xorg_cv_cc_flag__Wnonnull
8671		if eval \${$cacheid+:} false; then :
8672  $as_echo_n "(cached) " >&6
8673else
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main ()
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686  eval $cacheid=yes
8687else
8688  eval $cacheid=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext \
8691    conftest$ac_exeext conftest.$ac_ext
8692fi
8693
8694
8695		CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697		eval supported=\$$cacheid
8698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699$as_echo "$supported" >&6; }
8700		if test "$supported" = "yes" ; then
8701			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8702			found="yes"
8703		fi
8704	fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720xorg_testset_save_CFLAGS="$CFLAGS"
8721
8722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731int i;
8732_ACEOF
8733if ac_fn_c_try_compile "$LINENO"; then :
8734  xorg_cv_cc_flag_unknown_warning_option=yes
8735else
8736  xorg_cv_cc_flag_unknown_warning_option=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739fi
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8743	CFLAGS="$xorg_testset_save_CFLAGS"
8744fi
8745
8746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749	fi
8750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h.  */
8758int i;
8759_ACEOF
8760if ac_fn_c_try_compile "$LINENO"; then :
8761  xorg_cv_cc_flag_unused_command_line_argument=yes
8762else
8763  xorg_cv_cc_flag_unused_command_line_argument=no
8764fi
8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8770	CFLAGS="$xorg_testset_save_CFLAGS"
8771fi
8772
8773found="no"
8774
8775	if test $found = "no" ; then
8776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778		fi
8779
8780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782		fi
8783
8784		CFLAGS="$CFLAGS -Winit-self"
8785
8786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8787$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8788		cacheid=xorg_cv_cc_flag__Winit_self
8789		if eval \${$cacheid+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794int i;
8795int
8796main ()
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_c_try_link "$LINENO"; then :
8804  eval $cacheid=yes
8805else
8806  eval $cacheid=no
8807fi
8808rm -f core conftest.err conftest.$ac_objext \
8809    conftest$ac_exeext conftest.$ac_ext
8810fi
8811
8812
8813		CFLAGS="$xorg_testset_save_CFLAGS"
8814
8815		eval supported=\$$cacheid
8816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8817$as_echo "$supported" >&6; }
8818		if test "$supported" = "yes" ; then
8819			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8820			found="yes"
8821		fi
8822	fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838xorg_testset_save_CFLAGS="$CFLAGS"
8839
8840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849int i;
8850_ACEOF
8851if ac_fn_c_try_compile "$LINENO"; then :
8852  xorg_cv_cc_flag_unknown_warning_option=yes
8853else
8854  xorg_cv_cc_flag_unknown_warning_option=no
8855fi
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861	CFLAGS="$xorg_testset_save_CFLAGS"
8862fi
8863
8864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	fi
8868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"; then :
8879  xorg_cv_cc_flag_unused_command_line_argument=yes
8880else
8881  xorg_cv_cc_flag_unused_command_line_argument=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891found="no"
8892
8893	if test $found = "no" ; then
8894		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896		fi
8897
8898		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900		fi
8901
8902		CFLAGS="$CFLAGS -Wmain"
8903
8904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8905$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8906		cacheid=xorg_cv_cc_flag__Wmain
8907		if eval \${$cacheid+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911/* end confdefs.h.  */
8912int i;
8913int
8914main ()
8915{
8916
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"; then :
8922  eval $cacheid=yes
8923else
8924  eval $cacheid=no
8925fi
8926rm -f core conftest.err conftest.$ac_objext \
8927    conftest$ac_exeext conftest.$ac_ext
8928fi
8929
8930
8931		CFLAGS="$xorg_testset_save_CFLAGS"
8932
8933		eval supported=\$$cacheid
8934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8935$as_echo "$supported" >&6; }
8936		if test "$supported" = "yes" ; then
8937			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8938			found="yes"
8939		fi
8940	fi
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956xorg_testset_save_CFLAGS="$CFLAGS"
8957
8958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967int i;
8968_ACEOF
8969if ac_fn_c_try_compile "$LINENO"; then :
8970  xorg_cv_cc_flag_unknown_warning_option=yes
8971else
8972  xorg_cv_cc_flag_unknown_warning_option=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8979	CFLAGS="$xorg_testset_save_CFLAGS"
8980fi
8981
8982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985	fi
8986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8990  $as_echo_n "(cached) " >&6
8991else
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"; then :
8997  xorg_cv_cc_flag_unused_command_line_argument=yes
8998else
8999  xorg_cv_cc_flag_unused_command_line_argument=no
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006	CFLAGS="$xorg_testset_save_CFLAGS"
9007fi
9008
9009found="no"
9010
9011	if test $found = "no" ; then
9012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014		fi
9015
9016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018		fi
9019
9020		CFLAGS="$CFLAGS -Wmissing-braces"
9021
9022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9023$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9024		cacheid=xorg_cv_cc_flag__Wmissing_braces
9025		if eval \${$cacheid+:} false; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030int i;
9031int
9032main ()
9033{
9034
9035  ;
9036  return 0;
9037}
9038_ACEOF
9039if ac_fn_c_try_link "$LINENO"; then :
9040  eval $cacheid=yes
9041else
9042  eval $cacheid=no
9043fi
9044rm -f core conftest.err conftest.$ac_objext \
9045    conftest$ac_exeext conftest.$ac_ext
9046fi
9047
9048
9049		CFLAGS="$xorg_testset_save_CFLAGS"
9050
9051		eval supported=\$$cacheid
9052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9053$as_echo "$supported" >&6; }
9054		if test "$supported" = "yes" ; then
9055			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9056			found="yes"
9057		fi
9058	fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074xorg_testset_save_CFLAGS="$CFLAGS"
9075
9076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"; then :
9088  xorg_cv_cc_flag_unknown_warning_option=yes
9089else
9090  xorg_cv_cc_flag_unknown_warning_option=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097	CFLAGS="$xorg_testset_save_CFLAGS"
9098fi
9099
9100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103	fi
9104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9108  $as_echo_n "(cached) " >&6
9109else
9110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112int i;
9113_ACEOF
9114if ac_fn_c_try_compile "$LINENO"; then :
9115  xorg_cv_cc_flag_unused_command_line_argument=yes
9116else
9117  xorg_cv_cc_flag_unused_command_line_argument=no
9118fi
9119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9124	CFLAGS="$xorg_testset_save_CFLAGS"
9125fi
9126
9127found="no"
9128
9129	if test $found = "no" ; then
9130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132		fi
9133
9134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136		fi
9137
9138		CFLAGS="$CFLAGS -Wsequence-point"
9139
9140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9141$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9142		cacheid=xorg_cv_cc_flag__Wsequence_point
9143		if eval \${$cacheid+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147/* end confdefs.h.  */
9148int i;
9149int
9150main ()
9151{
9152
9153  ;
9154  return 0;
9155}
9156_ACEOF
9157if ac_fn_c_try_link "$LINENO"; then :
9158  eval $cacheid=yes
9159else
9160  eval $cacheid=no
9161fi
9162rm -f core conftest.err conftest.$ac_objext \
9163    conftest$ac_exeext conftest.$ac_ext
9164fi
9165
9166
9167		CFLAGS="$xorg_testset_save_CFLAGS"
9168
9169		eval supported=\$$cacheid
9170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9171$as_echo "$supported" >&6; }
9172		if test "$supported" = "yes" ; then
9173			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9174			found="yes"
9175		fi
9176	fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192xorg_testset_save_CFLAGS="$CFLAGS"
9193
9194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203int i;
9204_ACEOF
9205if ac_fn_c_try_compile "$LINENO"; then :
9206  xorg_cv_cc_flag_unknown_warning_option=yes
9207else
9208  xorg_cv_cc_flag_unknown_warning_option=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9215	CFLAGS="$xorg_testset_save_CFLAGS"
9216fi
9217
9218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221	fi
9222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230int i;
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"; then :
9233  xorg_cv_cc_flag_unused_command_line_argument=yes
9234else
9235  xorg_cv_cc_flag_unused_command_line_argument=no
9236fi
9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9242	CFLAGS="$xorg_testset_save_CFLAGS"
9243fi
9244
9245found="no"
9246
9247	if test $found = "no" ; then
9248		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250		fi
9251
9252		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254		fi
9255
9256		CFLAGS="$CFLAGS -Wreturn-type"
9257
9258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9259$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9260		cacheid=xorg_cv_cc_flag__Wreturn_type
9261		if eval \${$cacheid+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266int i;
9267int
9268main ()
9269{
9270
9271  ;
9272  return 0;
9273}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"; then :
9276  eval $cacheid=yes
9277else
9278  eval $cacheid=no
9279fi
9280rm -f core conftest.err conftest.$ac_objext \
9281    conftest$ac_exeext conftest.$ac_ext
9282fi
9283
9284
9285		CFLAGS="$xorg_testset_save_CFLAGS"
9286
9287		eval supported=\$$cacheid
9288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9289$as_echo "$supported" >&6; }
9290		if test "$supported" = "yes" ; then
9291			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9292			found="yes"
9293		fi
9294	fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321int i;
9322_ACEOF
9323if ac_fn_c_try_compile "$LINENO"; then :
9324  xorg_cv_cc_flag_unknown_warning_option=yes
9325else
9326  xorg_cv_cc_flag_unknown_warning_option=no
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333	CFLAGS="$xorg_testset_save_CFLAGS"
9334fi
9335
9336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339	fi
9340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  xorg_cv_cc_flag_unused_command_line_argument=yes
9352else
9353  xorg_cv_cc_flag_unused_command_line_argument=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363found="no"
9364
9365	if test $found = "no" ; then
9366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368		fi
9369
9370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372		fi
9373
9374		CFLAGS="$CFLAGS -Wtrigraphs"
9375
9376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9377$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9378		cacheid=xorg_cv_cc_flag__Wtrigraphs
9379		if eval \${$cacheid+:} false; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384int i;
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394  eval $cacheid=yes
9395else
9396  eval $cacheid=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399    conftest$ac_exeext conftest.$ac_ext
9400fi
9401
9402
9403		CFLAGS="$xorg_testset_save_CFLAGS"
9404
9405		eval supported=\$$cacheid
9406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9407$as_echo "$supported" >&6; }
9408		if test "$supported" = "yes" ; then
9409			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9410			found="yes"
9411		fi
9412	fi
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428xorg_testset_save_CFLAGS="$CFLAGS"
9429
9430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int i;
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"; then :
9442  xorg_cv_cc_flag_unknown_warning_option=yes
9443else
9444  xorg_cv_cc_flag_unknown_warning_option=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9451	CFLAGS="$xorg_testset_save_CFLAGS"
9452fi
9453
9454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457	fi
9458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9462  $as_echo_n "(cached) " >&6
9463else
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466int i;
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"; then :
9469  xorg_cv_cc_flag_unused_command_line_argument=yes
9470else
9471  xorg_cv_cc_flag_unused_command_line_argument=no
9472fi
9473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474fi
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9478	CFLAGS="$xorg_testset_save_CFLAGS"
9479fi
9480
9481found="no"
9482
9483	if test $found = "no" ; then
9484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486		fi
9487
9488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490		fi
9491
9492		CFLAGS="$CFLAGS -Warray-bounds"
9493
9494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9495$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9496		cacheid=xorg_cv_cc_flag__Warray_bounds
9497		if eval \${$cacheid+:} false; then :
9498  $as_echo_n "(cached) " >&6
9499else
9500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502int i;
9503int
9504main ()
9505{
9506
9507  ;
9508  return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_link "$LINENO"; then :
9512  eval $cacheid=yes
9513else
9514  eval $cacheid=no
9515fi
9516rm -f core conftest.err conftest.$ac_objext \
9517    conftest$ac_exeext conftest.$ac_ext
9518fi
9519
9520
9521		CFLAGS="$xorg_testset_save_CFLAGS"
9522
9523		eval supported=\$$cacheid
9524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9525$as_echo "$supported" >&6; }
9526		if test "$supported" = "yes" ; then
9527			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9528			found="yes"
9529		fi
9530	fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546xorg_testset_save_CFLAGS="$CFLAGS"
9547
9548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9553  $as_echo_n "(cached) " >&6
9554else
9555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h.  */
9557int i;
9558_ACEOF
9559if ac_fn_c_try_compile "$LINENO"; then :
9560  xorg_cv_cc_flag_unknown_warning_option=yes
9561else
9562  xorg_cv_cc_flag_unknown_warning_option=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569	CFLAGS="$xorg_testset_save_CFLAGS"
9570fi
9571
9572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575	fi
9576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"; then :
9587  xorg_cv_cc_flag_unused_command_line_argument=yes
9588else
9589  xorg_cv_cc_flag_unused_command_line_argument=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9596	CFLAGS="$xorg_testset_save_CFLAGS"
9597fi
9598
9599found="no"
9600
9601	if test $found = "no" ; then
9602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604		fi
9605
9606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608		fi
9609
9610		CFLAGS="$CFLAGS -Wwrite-strings"
9611
9612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9613$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9614		cacheid=xorg_cv_cc_flag__Wwrite_strings
9615		if eval \${$cacheid+:} false; then :
9616  $as_echo_n "(cached) " >&6
9617else
9618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620int i;
9621int
9622main ()
9623{
9624
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630  eval $cacheid=yes
9631else
9632  eval $cacheid=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635    conftest$ac_exeext conftest.$ac_ext
9636fi
9637
9638
9639		CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641		eval supported=\$$cacheid
9642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643$as_echo "$supported" >&6; }
9644		if test "$supported" = "yes" ; then
9645			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9646			found="yes"
9647		fi
9648	fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9671  $as_echo_n "(cached) " >&6
9672else
9673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h.  */
9675int i;
9676_ACEOF
9677if ac_fn_c_try_compile "$LINENO"; then :
9678  xorg_cv_cc_flag_unknown_warning_option=yes
9679else
9680  xorg_cv_cc_flag_unknown_warning_option=no
9681fi
9682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687	CFLAGS="$xorg_testset_save_CFLAGS"
9688fi
9689
9690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693	fi
9694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702int i;
9703_ACEOF
9704if ac_fn_c_try_compile "$LINENO"; then :
9705  xorg_cv_cc_flag_unused_command_line_argument=yes
9706else
9707  xorg_cv_cc_flag_unused_command_line_argument=no
9708fi
9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9714	CFLAGS="$xorg_testset_save_CFLAGS"
9715fi
9716
9717found="no"
9718
9719	if test $found = "no" ; then
9720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722		fi
9723
9724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726		fi
9727
9728		CFLAGS="$CFLAGS -Waddress"
9729
9730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9731$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9732		cacheid=xorg_cv_cc_flag__Waddress
9733		if eval \${$cacheid+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739int
9740main ()
9741{
9742
9743  ;
9744  return 0;
9745}
9746_ACEOF
9747if ac_fn_c_try_link "$LINENO"; then :
9748  eval $cacheid=yes
9749else
9750  eval $cacheid=no
9751fi
9752rm -f core conftest.err conftest.$ac_objext \
9753    conftest$ac_exeext conftest.$ac_ext
9754fi
9755
9756
9757		CFLAGS="$xorg_testset_save_CFLAGS"
9758
9759		eval supported=\$$cacheid
9760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9761$as_echo "$supported" >&6; }
9762		if test "$supported" = "yes" ; then
9763			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9764			found="yes"
9765		fi
9766	fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782xorg_testset_save_CFLAGS="$CFLAGS"
9783
9784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9789  $as_echo_n "(cached) " >&6
9790else
9791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792/* end confdefs.h.  */
9793int i;
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796  xorg_cv_cc_flag_unknown_warning_option=yes
9797else
9798  xorg_cv_cc_flag_unknown_warning_option=no
9799fi
9800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9805	CFLAGS="$xorg_testset_save_CFLAGS"
9806fi
9807
9808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811	fi
9812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819/* end confdefs.h.  */
9820int i;
9821_ACEOF
9822if ac_fn_c_try_compile "$LINENO"; then :
9823  xorg_cv_cc_flag_unused_command_line_argument=yes
9824else
9825  xorg_cv_cc_flag_unused_command_line_argument=no
9826fi
9827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9832	CFLAGS="$xorg_testset_save_CFLAGS"
9833fi
9834
9835found="no"
9836
9837	if test $found = "no" ; then
9838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840		fi
9841
9842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844		fi
9845
9846		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9847
9848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9849$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9850		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9851		if eval \${$cacheid+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857int
9858main ()
9859{
9860
9861  ;
9862  return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_link "$LINENO"; then :
9866  eval $cacheid=yes
9867else
9868  eval $cacheid=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871    conftest$ac_exeext conftest.$ac_ext
9872fi
9873
9874
9875		CFLAGS="$xorg_testset_save_CFLAGS"
9876
9877		eval supported=\$$cacheid
9878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9879$as_echo "$supported" >&6; }
9880		if test "$supported" = "yes" ; then
9881			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9882			found="yes"
9883		fi
9884	fi
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900xorg_testset_save_CFLAGS="$CFLAGS"
9901
9902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9907  $as_echo_n "(cached) " >&6
9908else
9909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h.  */
9911int i;
9912_ACEOF
9913if ac_fn_c_try_compile "$LINENO"; then :
9914  xorg_cv_cc_flag_unknown_warning_option=yes
9915else
9916  xorg_cv_cc_flag_unknown_warning_option=no
9917fi
9918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919fi
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923	CFLAGS="$xorg_testset_save_CFLAGS"
9924fi
9925
9926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929	fi
9930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h.  */
9938int i;
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
9941  xorg_cv_cc_flag_unused_command_line_argument=yes
9942else
9943  xorg_cv_cc_flag_unused_command_line_argument=no
9944fi
9945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950	CFLAGS="$xorg_testset_save_CFLAGS"
9951fi
9952
9953found="no"
9954
9955	if test $found = "no" ; then
9956		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958		fi
9959
9960		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962		fi
9963
9964		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9965
9966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9967$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9968		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9969		if eval \${$cacheid+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974int i;
9975int
9976main ()
9977{
9978
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983if ac_fn_c_try_link "$LINENO"; then :
9984  eval $cacheid=yes
9985else
9986  eval $cacheid=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext \
9989    conftest$ac_exeext conftest.$ac_ext
9990fi
9991
9992
9993		CFLAGS="$xorg_testset_save_CFLAGS"
9994
9995		eval supported=\$$cacheid
9996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9997$as_echo "$supported" >&6; }
9998		if test "$supported" = "yes" ; then
9999			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10000			found="yes"
10001		fi
10002	fi
10003
10004
10005fi
10006
10007
10008
10009
10010
10011
10012
10013		CWARNFLAGS="$BASE_CFLAGS"
10014		if  test "x$GCC" = xyes ; then
10015		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10016		fi
10017
10018
10019
10020
10021
10022
10023
10024
10025# Check whether --enable-strict-compilation was given.
10026if test "${enable_strict_compilation+set}" = set; then :
10027  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10028else
10029  STRICT_COMPILE=no
10030fi
10031
10032
10033
10034
10035
10036
10037STRICT_CFLAGS=""
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063_ACEOF
10064if ac_fn_c_try_compile "$LINENO"; then :
10065  xorg_cv_cc_flag_unknown_warning_option=yes
10066else
10067  xorg_cv_cc_flag_unknown_warning_option=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074	CFLAGS="$xorg_testset_save_CFLAGS"
10075fi
10076
10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080	fi
10081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"; then :
10092  xorg_cv_cc_flag_unused_command_line_argument=yes
10093else
10094  xorg_cv_cc_flag_unused_command_line_argument=no
10095fi
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101	CFLAGS="$xorg_testset_save_CFLAGS"
10102fi
10103
10104found="no"
10105
10106	if test $found = "no" ; then
10107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109		fi
10110
10111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113		fi
10114
10115		CFLAGS="$CFLAGS -pedantic"
10116
10117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10118$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10119		cacheid=xorg_cv_cc_flag__pedantic
10120		if eval \${$cacheid+:} false; then :
10121  $as_echo_n "(cached) " >&6
10122else
10123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125int i;
10126int
10127main ()
10128{
10129
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134if ac_fn_c_try_link "$LINENO"; then :
10135  eval $cacheid=yes
10136else
10137  eval $cacheid=no
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140    conftest$ac_exeext conftest.$ac_ext
10141fi
10142
10143
10144		CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146		eval supported=\$$cacheid
10147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148$as_echo "$supported" >&6; }
10149		if test "$supported" = "yes" ; then
10150			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10151			found="yes"
10152		fi
10153	fi
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169xorg_testset_save_CFLAGS="$CFLAGS"
10170
10171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179/* end confdefs.h.  */
10180int i;
10181_ACEOF
10182if ac_fn_c_try_compile "$LINENO"; then :
10183  xorg_cv_cc_flag_unknown_warning_option=yes
10184else
10185  xorg_cv_cc_flag_unknown_warning_option=no
10186fi
10187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188fi
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10192	CFLAGS="$xorg_testset_save_CFLAGS"
10193fi
10194
10195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198	fi
10199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207int i;
10208_ACEOF
10209if ac_fn_c_try_compile "$LINENO"; then :
10210  xorg_cv_cc_flag_unused_command_line_argument=yes
10211else
10212  xorg_cv_cc_flag_unused_command_line_argument=no
10213fi
10214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215fi
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10219	CFLAGS="$xorg_testset_save_CFLAGS"
10220fi
10221
10222found="no"
10223
10224	if test $found = "no" ; then
10225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227		fi
10228
10229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231		fi
10232
10233		CFLAGS="$CFLAGS -Werror"
10234
10235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10236$as_echo_n "checking if $CC supports -Werror... " >&6; }
10237		cacheid=xorg_cv_cc_flag__Werror
10238		if eval \${$cacheid+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244int
10245main ()
10246{
10247
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"; then :
10253  eval $cacheid=yes
10254else
10255  eval $cacheid=no
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258    conftest$ac_exeext conftest.$ac_ext
10259fi
10260
10261
10262		CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264		eval supported=\$$cacheid
10265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266$as_echo "$supported" >&6; }
10267		if test "$supported" = "yes" ; then
10268			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10269			found="yes"
10270		fi
10271	fi
10272
10273	if test $found = "no" ; then
10274		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276		fi
10277
10278		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280		fi
10281
10282		CFLAGS="$CFLAGS -errwarn"
10283
10284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10285$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10286		cacheid=xorg_cv_cc_flag__errwarn
10287		if eval \${$cacheid+:} false; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int i;
10293int
10294main ()
10295{
10296
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302  eval $cacheid=yes
10303else
10304  eval $cacheid=no
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307    conftest$ac_exeext conftest.$ac_ext
10308fi
10309
10310
10311		CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313		eval supported=\$$cacheid
10314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315$as_echo "$supported" >&6; }
10316		if test "$supported" = "yes" ; then
10317			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10318			found="yes"
10319		fi
10320	fi
10321
10322
10323
10324# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10325# activate it with -Werror, so we add it here explicitly.
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339xorg_testset_save_CFLAGS="$CFLAGS"
10340
10341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10346  $as_echo_n "(cached) " >&6
10347else
10348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349/* end confdefs.h.  */
10350int i;
10351_ACEOF
10352if ac_fn_c_try_compile "$LINENO"; then :
10353  xorg_cv_cc_flag_unknown_warning_option=yes
10354else
10355  xorg_cv_cc_flag_unknown_warning_option=no
10356fi
10357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358fi
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10362	CFLAGS="$xorg_testset_save_CFLAGS"
10363fi
10364
10365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	fi
10369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10373  $as_echo_n "(cached) " >&6
10374else
10375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377int i;
10378_ACEOF
10379if ac_fn_c_try_compile "$LINENO"; then :
10380  xorg_cv_cc_flag_unused_command_line_argument=yes
10381else
10382  xorg_cv_cc_flag_unused_command_line_argument=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10389	CFLAGS="$xorg_testset_save_CFLAGS"
10390fi
10391
10392found="no"
10393
10394	if test $found = "no" ; then
10395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397		fi
10398
10399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401		fi
10402
10403		CFLAGS="$CFLAGS -Werror=attributes"
10404
10405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10406$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10407		cacheid=xorg_cv_cc_flag__Werror_attributes
10408		if eval \${$cacheid+:} false; then :
10409  $as_echo_n "(cached) " >&6
10410else
10411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h.  */
10413int i;
10414int
10415main ()
10416{
10417
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  eval $cacheid=yes
10424else
10425  eval $cacheid=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428    conftest$ac_exeext conftest.$ac_ext
10429fi
10430
10431
10432		CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434		eval supported=\$$cacheid
10435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436$as_echo "$supported" >&6; }
10437		if test "$supported" = "yes" ; then
10438			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10439			found="yes"
10440		fi
10441	fi
10442
10443
10444
10445if test "x$STRICT_COMPILE" = "xyes"; then
10446    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10447    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10448fi
10449
10450
10451
10452
10453
10454
10455cat >>confdefs.h <<_ACEOF
10456#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10457_ACEOF
10458
10459	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10460	if test "x$PVM" = "x"; then
10461		PVM="0"
10462	fi
10463
10464cat >>confdefs.h <<_ACEOF
10465#define PACKAGE_VERSION_MINOR $PVM
10466_ACEOF
10467
10468	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10469	if test "x$PVP" = "x"; then
10470		PVP="0"
10471	fi
10472
10473cat >>confdefs.h <<_ACEOF
10474#define PACKAGE_VERSION_PATCHLEVEL $PVP
10475_ACEOF
10476
10477
10478
10479CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10480mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10481|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10482echo 'git directory not found: installing possibly empty changelog.' >&2)"
10483
10484
10485
10486
10487macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10488INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10489mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10490|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10491echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10492
10493
10494
10495
10496
10497
10498if test x$APP_MAN_SUFFIX = x    ; then
10499    APP_MAN_SUFFIX=1
10500fi
10501if test x$APP_MAN_DIR = x    ; then
10502    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10503fi
10504
10505if test x$LIB_MAN_SUFFIX = x    ; then
10506    LIB_MAN_SUFFIX=3
10507fi
10508if test x$LIB_MAN_DIR = x    ; then
10509    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10510fi
10511
10512if test x$FILE_MAN_SUFFIX = x    ; then
10513    case $host_os in
10514	# Solaris 2.0 - 11 use SysV man page sections
10515	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10516	*)				FILE_MAN_SUFFIX=5  ;;
10517    esac
10518fi
10519if test x$FILE_MAN_DIR = x    ; then
10520    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10521fi
10522
10523if test x$MISC_MAN_SUFFIX = x    ; then
10524    case $host_os in
10525	# Solaris 2.0 - 11 use SysV man page sections
10526	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10527	*)				MISC_MAN_SUFFIX=7  ;;
10528    esac
10529fi
10530if test x$MISC_MAN_DIR = x    ; then
10531    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10532fi
10533
10534if test x$DRIVER_MAN_SUFFIX = x    ; then
10535    case $host_os in
10536	# Solaris 2.0 - 11 use SysV man page sections
10537	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10538	*)				DRIVER_MAN_SUFFIX=4  ;;
10539    esac
10540fi
10541if test x$DRIVER_MAN_DIR = x    ; then
10542    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10543fi
10544
10545if test x$ADMIN_MAN_SUFFIX = x    ; then
10546    case $host_os in
10547	# Solaris 2.0 - 11 use SysV man page sections
10548	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10549	*)				ADMIN_MAN_SUFFIX=8  ;;
10550    esac
10551fi
10552if test x$ADMIN_MAN_DIR = x    ; then
10553    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10554fi
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570XORG_MAN_PAGE="X Version 11"
10571
10572MAN_SUBSTS="\
10573	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10574	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10575	-e 's|__xservername__|Xorg|g' \
10576	-e 's|__xconfigfile__|xorg.conf|g' \
10577	-e 's|__projectroot__|\$(prefix)|g' \
10578	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10579	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10580	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10581	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10582	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10583	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10584	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10585
10586
10587
10588# Check whether --enable-silent-rules was given.
10589if test "${enable_silent_rules+set}" = set; then :
10590  enableval=$enable_silent_rules;
10591fi
10592
10593case $enable_silent_rules in # (((
10594  yes) AM_DEFAULT_VERBOSITY=0;;
10595   no) AM_DEFAULT_VERBOSITY=1;;
10596    *) AM_DEFAULT_VERBOSITY=0;;
10597esac
10598am_make=${MAKE-make}
10599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10600$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10601if ${am_cv_make_support_nested_variables+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  if $as_echo 'TRUE=$(BAR$(V))
10605BAR0=false
10606BAR1=true
10607V=1
10608am__doit:
10609	@$(TRUE)
10610.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10611  am_cv_make_support_nested_variables=yes
10612else
10613  am_cv_make_support_nested_variables=no
10614fi
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10617$as_echo "$am_cv_make_support_nested_variables" >&6; }
10618if test $am_cv_make_support_nested_variables = yes; then
10619    AM_V='$(V)'
10620  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10621else
10622  AM_V=$AM_DEFAULT_VERBOSITY
10623  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10624fi
10625AM_BACKSLASH='\'
10626
10627
10628
10629# Internationalization & localization support
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
10631$as_echo_n "checking for library containing gettext... " >&6; }
10632if ${ac_cv_search_gettext+:} false; then :
10633  $as_echo_n "(cached) " >&6
10634else
10635  ac_func_search_save_LIBS=$LIBS
10636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637/* end confdefs.h.  */
10638
10639/* Override any GCC internal prototype to avoid an error.
10640   Use char because int might match the return type of a GCC
10641   builtin and then its argument prototype would still apply.  */
10642#ifdef __cplusplus
10643extern "C"
10644#endif
10645char gettext ();
10646int
10647main ()
10648{
10649return gettext ();
10650  ;
10651  return 0;
10652}
10653_ACEOF
10654for ac_lib in '' intl; do
10655  if test -z "$ac_lib"; then
10656    ac_res="none required"
10657  else
10658    ac_res=-l$ac_lib
10659    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10660  fi
10661  if ac_fn_c_try_link "$LINENO"; then :
10662  ac_cv_search_gettext=$ac_res
10663fi
10664rm -f core conftest.err conftest.$ac_objext \
10665    conftest$ac_exeext
10666  if ${ac_cv_search_gettext+:} false; then :
10667  break
10668fi
10669done
10670if ${ac_cv_search_gettext+:} false; then :
10671
10672else
10673  ac_cv_search_gettext=no
10674fi
10675rm conftest.$ac_ext
10676LIBS=$ac_func_search_save_LIBS
10677fi
10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
10679$as_echo "$ac_cv_search_gettext" >&6; }
10680ac_res=$ac_cv_search_gettext
10681if test "$ac_res" != no; then :
10682  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10683  USE_GETTEXT="yes"
10684else
10685  USE_GETTEXT="no"
10686fi
10687
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
10689$as_echo_n "checking where to install localized messages... " >&6; }
10690
10691# Check whether --with-localedir was given.
10692if test "${with_localedir+set}" = set; then :
10693  withval=$with_localedir; LOCALEDIR=${withval}
10694else
10695  LOCALEDIR=${datadir}/locale
10696fi
10697
10698
10699if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
10700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
10701$as_echo "nowhere" >&6; }
10702        USE_GETTEXT="no"
10703else
10704        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
10705$as_echo "$LOCALEDIR" >&6; }
10706fi
10707
10708if test "x$USE_GETTEXT" = "xyes" ; then
10709
10710$as_echo "#define USE_GETTEXT 1" >>confdefs.h
10711
10712fi
10713 if test "x$USE_GETTEXT" = "xyes"; then
10714  USE_GETTEXT_TRUE=
10715  USE_GETTEXT_FALSE='#'
10716else
10717  USE_GETTEXT_TRUE='#'
10718  USE_GETTEXT_FALSE=
10719fi
10720
10721
10722# Optional dependencies
10723
10724# Check whether --with-xkb was given.
10725if test "${with_xkb+set}" = set; then :
10726  withval=$with_xkb; use_xkb="$withval"
10727else
10728  use_xkb="yes"
10729fi
10730
10731if test x$use_xkb != xno ; then
10732        XKBMODULE="xkbfile"
10733
10734$as_echo "#define XKB 1" >>confdefs.h
10735
10736fi
10737
10738# Checks for pkg-config packages
10739
10740pkg_failed=no
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5
10742$as_echo_n "checking for XFD... " >&6; }
10743
10744if test -n "$XFD_CFLAGS"; then
10745    pkg_cv_XFD_CFLAGS="$XFD_CFLAGS"
10746 elif test -n "$PKG_CONFIG"; then
10747    if test -n "$PKG_CONFIG" && \
10748    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
10749  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
10750  ac_status=$?
10751  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10752  test $ac_status = 0; }; then
10753  pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
10754		      test "x$?" != "x0" && pkg_failed=yes
10755else
10756  pkg_failed=yes
10757fi
10758 else
10759    pkg_failed=untried
10760fi
10761if test -n "$XFD_LIBS"; then
10762    pkg_cv_XFD_LIBS="$XFD_LIBS"
10763 elif test -n "$PKG_CONFIG"; then
10764    if test -n "$PKG_CONFIG" && \
10765    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
10766  ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
10767  ac_status=$?
10768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10769  test $ac_status = 0; }; then
10770  pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
10771		      test "x$?" != "x0" && pkg_failed=yes
10772else
10773  pkg_failed=yes
10774fi
10775 else
10776    pkg_failed=untried
10777fi
10778
10779
10780
10781if test $pkg_failed = yes; then
10782   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
10784
10785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10786        _pkg_short_errors_supported=yes
10787else
10788        _pkg_short_errors_supported=no
10789fi
10790        if test $_pkg_short_errors_supported = yes; then
10791	        XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
10792        else
10793	        XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
10794        fi
10795	# Put the nasty error message in config.log where it belongs
10796	echo "$XFD_PKG_ERRORS" >&5
10797
10798	as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.17 ${XKBMODULE}) were not met:
10799
10800$XFD_PKG_ERRORS
10801
10802Consider adjusting the PKG_CONFIG_PATH environment variable if you
10803installed software in a non-standard prefix.
10804
10805Alternatively, you may set the environment variables XFD_CFLAGS
10806and XFD_LIBS to avoid the need to call pkg-config.
10807See the pkg-config man page for more details." "$LINENO" 5
10808elif test $pkg_failed = untried; then
10809     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
10811	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10813as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10814is in your PATH or set the PKG_CONFIG environment variable to the full
10815path to pkg-config.
10816
10817Alternatively, you may set the environment variables XFD_CFLAGS
10818and XFD_LIBS to avoid the need to call pkg-config.
10819See the pkg-config man page for more details.
10820
10821To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10822See \`config.log' for more details" "$LINENO" 5; }
10823else
10824	XFD_CFLAGS=$pkg_cv_XFD_CFLAGS
10825	XFD_LIBS=$pkg_cv_XFD_LIBS
10826        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10827$as_echo "yes" >&6; }
10828
10829fi
10830
10831
10832pkg_failed=no
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10834$as_echo_n "checking for APPDEFS... " >&6; }
10835
10836if test -n "$APPDEFS_CFLAGS"; then
10837    pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10838 elif test -n "$PKG_CONFIG"; then
10839    if test -n "$PKG_CONFIG" && \
10840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10841  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10842  ac_status=$?
10843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844  test $ac_status = 0; }; then
10845  pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10846		      test "x$?" != "x0" && pkg_failed=yes
10847else
10848  pkg_failed=yes
10849fi
10850 else
10851    pkg_failed=untried
10852fi
10853if test -n "$APPDEFS_LIBS"; then
10854    pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10855 elif test -n "$PKG_CONFIG"; then
10856    if test -n "$PKG_CONFIG" && \
10857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10858  ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10859  ac_status=$?
10860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10861  test $ac_status = 0; }; then
10862  pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10863		      test "x$?" != "x0" && pkg_failed=yes
10864else
10865  pkg_failed=yes
10866fi
10867 else
10868    pkg_failed=untried
10869fi
10870
10871
10872
10873if test $pkg_failed = yes; then
10874   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
10876
10877if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10878        _pkg_short_errors_supported=yes
10879else
10880        _pkg_short_errors_supported=no
10881fi
10882        if test $_pkg_short_errors_supported = yes; then
10883	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
10884        else
10885	        APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
10886        fi
10887	# Put the nasty error message in config.log where it belongs
10888	echo "$APPDEFS_PKG_ERRORS" >&5
10889
10890	as_fn_error $? "Package requirements (xt) were not met:
10891
10892$APPDEFS_PKG_ERRORS
10893
10894Consider adjusting the PKG_CONFIG_PATH environment variable if you
10895installed software in a non-standard prefix.
10896
10897Alternatively, you may set the environment variables APPDEFS_CFLAGS
10898and APPDEFS_LIBS to avoid the need to call pkg-config.
10899See the pkg-config man page for more details." "$LINENO" 5
10900elif test $pkg_failed = untried; then
10901     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10905as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10906is in your PATH or set the PKG_CONFIG environment variable to the full
10907path to pkg-config.
10908
10909Alternatively, you may set the environment variables APPDEFS_CFLAGS
10910and APPDEFS_LIBS to avoid the need to call pkg-config.
10911See the pkg-config man page for more details.
10912
10913To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10914See \`config.log' for more details" "$LINENO" 5; }
10915else
10916	APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10917	APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10919$as_echo "yes" >&6; }
10920
10921fi
10922xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10923
10924# Check whether --with-appdefaultdir was given.
10925if test "${with_appdefaultdir+set}" = set; then :
10926  withval=$with_appdefaultdir; appdefaultdir="$withval"
10927else
10928  appdefaultdir="${xt_appdefaultdir}"
10929fi
10930
10931
10932
10933
10934ac_config_files="$ac_config_files Makefile man/Makefile"
10935
10936cat >confcache <<\_ACEOF
10937# This file is a shell script that caches the results of configure
10938# tests run on this system so they can be shared between configure
10939# scripts and configure runs, see configure's option --config-cache.
10940# It is not useful on other systems.  If it contains results you don't
10941# want to keep, you may remove or edit it.
10942#
10943# config.status only pays attention to the cache file if you give it
10944# the --recheck option to rerun configure.
10945#
10946# `ac_cv_env_foo' variables (set or unset) will be overridden when
10947# loading this file, other *unset* `ac_cv_foo' will be assigned the
10948# following values.
10949
10950_ACEOF
10951
10952# The following way of writing the cache mishandles newlines in values,
10953# but we know of no workaround that is simple, portable, and efficient.
10954# So, we kill variables containing newlines.
10955# Ultrix sh set writes to stderr and can't be redirected directly,
10956# and sets the high bit in the cache file unless we assign to the vars.
10957(
10958  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10959    eval ac_val=\$$ac_var
10960    case $ac_val in #(
10961    *${as_nl}*)
10962      case $ac_var in #(
10963      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10964$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10965      esac
10966      case $ac_var in #(
10967      _ | IFS | as_nl) ;; #(
10968      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10969      *) { eval $ac_var=; unset $ac_var;} ;;
10970      esac ;;
10971    esac
10972  done
10973
10974  (set) 2>&1 |
10975    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10976    *${as_nl}ac_space=\ *)
10977      # `set' does not quote correctly, so add quotes: double-quote
10978      # substitution turns \\\\ into \\, and sed turns \\ into \.
10979      sed -n \
10980	"s/'/'\\\\''/g;
10981	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10982      ;; #(
10983    *)
10984      # `set' quotes correctly as required by POSIX, so do not add quotes.
10985      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10986      ;;
10987    esac |
10988    sort
10989) |
10990  sed '
10991     /^ac_cv_env_/b end
10992     t clear
10993     :clear
10994     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10995     t end
10996     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10997     :end' >>confcache
10998if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10999  if test -w "$cache_file"; then
11000    if test "x$cache_file" != "x/dev/null"; then
11001      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11002$as_echo "$as_me: updating cache $cache_file" >&6;}
11003      if test ! -f "$cache_file" || test -h "$cache_file"; then
11004	cat confcache >"$cache_file"
11005      else
11006        case $cache_file in #(
11007        */* | ?:*)
11008	  mv -f confcache "$cache_file"$$ &&
11009	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11010        *)
11011	  mv -f confcache "$cache_file" ;;
11012	esac
11013      fi
11014    fi
11015  else
11016    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11017$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11018  fi
11019fi
11020rm -f confcache
11021
11022test "x$prefix" = xNONE && prefix=$ac_default_prefix
11023# Let make expand exec_prefix.
11024test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11025
11026DEFS=-DHAVE_CONFIG_H
11027
11028ac_libobjs=
11029ac_ltlibobjs=
11030U=
11031for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11032  # 1. Remove the extension, and $U if already installed.
11033  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11034  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11035  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11036  #    will be set to the directory where LIBOBJS objects are built.
11037  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11038  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11039done
11040LIBOBJS=$ac_libobjs
11041
11042LTLIBOBJS=$ac_ltlibobjs
11043
11044
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11046$as_echo_n "checking that generated files are newer than configure... " >&6; }
11047   if test -n "$am_sleep_pid"; then
11048     # Hide warnings about reused PIDs.
11049     wait $am_sleep_pid 2>/dev/null
11050   fi
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11052$as_echo "done" >&6; }
11053 if test -n "$EXEEXT"; then
11054  am__EXEEXT_TRUE=
11055  am__EXEEXT_FALSE='#'
11056else
11057  am__EXEEXT_TRUE='#'
11058  am__EXEEXT_FALSE=
11059fi
11060
11061if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11062  as_fn_error $? "conditional \"AMDEP\" was never defined.
11063Usually this means the macro was only invoked conditionally." "$LINENO" 5
11064fi
11065if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11066  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11067Usually this means the macro was only invoked conditionally." "$LINENO" 5
11068fi
11069if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11070  as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11071Usually this means the macro was only invoked conditionally." "$LINENO" 5
11072fi
11073
11074: "${CONFIG_STATUS=./config.status}"
11075ac_write_fail=0
11076ac_clean_files_save=$ac_clean_files
11077ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11079$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11080as_write_fail=0
11081cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11082#! $SHELL
11083# Generated by $as_me.
11084# Run this file to recreate the current configuration.
11085# Compiler output produced by configure, useful for debugging
11086# configure, is in config.log if it exists.
11087
11088debug=false
11089ac_cs_recheck=false
11090ac_cs_silent=false
11091
11092SHELL=\${CONFIG_SHELL-$SHELL}
11093export SHELL
11094_ASEOF
11095cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11096## -------------------- ##
11097## M4sh Initialization. ##
11098## -------------------- ##
11099
11100# Be more Bourne compatible
11101DUALCASE=1; export DUALCASE # for MKS sh
11102if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11103  emulate sh
11104  NULLCMD=:
11105  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11106  # is contrary to our usage.  Disable this feature.
11107  alias -g '${1+"$@"}'='"$@"'
11108  setopt NO_GLOB_SUBST
11109else
11110  case `(set -o) 2>/dev/null` in #(
11111  *posix*) :
11112    set -o posix ;; #(
11113  *) :
11114     ;;
11115esac
11116fi
11117
11118
11119as_nl='
11120'
11121export as_nl
11122# Printing a long string crashes Solaris 7 /usr/bin/printf.
11123as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11124as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11125as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11126# Prefer a ksh shell builtin over an external printf program on Solaris,
11127# but without wasting forks for bash or zsh.
11128if test -z "$BASH_VERSION$ZSH_VERSION" \
11129    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11130  as_echo='print -r --'
11131  as_echo_n='print -rn --'
11132elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11133  as_echo='printf %s\n'
11134  as_echo_n='printf %s'
11135else
11136  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11137    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11138    as_echo_n='/usr/ucb/echo -n'
11139  else
11140    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11141    as_echo_n_body='eval
11142      arg=$1;
11143      case $arg in #(
11144      *"$as_nl"*)
11145	expr "X$arg" : "X\\(.*\\)$as_nl";
11146	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11147      esac;
11148      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11149    '
11150    export as_echo_n_body
11151    as_echo_n='sh -c $as_echo_n_body as_echo'
11152  fi
11153  export as_echo_body
11154  as_echo='sh -c $as_echo_body as_echo'
11155fi
11156
11157# The user is always right.
11158if test "${PATH_SEPARATOR+set}" != set; then
11159  PATH_SEPARATOR=:
11160  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11161    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11162      PATH_SEPARATOR=';'
11163  }
11164fi
11165
11166
11167# IFS
11168# We need space, tab and new line, in precisely that order.  Quoting is
11169# there to prevent editors from complaining about space-tab.
11170# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11171# splitting by setting IFS to empty value.)
11172IFS=" ""	$as_nl"
11173
11174# Find who we are.  Look in the path if we contain no directory separator.
11175as_myself=
11176case $0 in #((
11177  *[\\/]* ) as_myself=$0 ;;
11178  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179for as_dir in $PATH
11180do
11181  IFS=$as_save_IFS
11182  test -z "$as_dir" && as_dir=.
11183    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11184  done
11185IFS=$as_save_IFS
11186
11187     ;;
11188esac
11189# We did not find ourselves, most probably we were run as `sh COMMAND'
11190# in which case we are not to be found in the path.
11191if test "x$as_myself" = x; then
11192  as_myself=$0
11193fi
11194if test ! -f "$as_myself"; then
11195  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11196  exit 1
11197fi
11198
11199# Unset variables that we do not need and which cause bugs (e.g. in
11200# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11201# suppresses any "Segmentation fault" message there.  '((' could
11202# trigger a bug in pdksh 5.2.14.
11203for as_var in BASH_ENV ENV MAIL MAILPATH
11204do eval test x\${$as_var+set} = xset \
11205  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11206done
11207PS1='$ '
11208PS2='> '
11209PS4='+ '
11210
11211# NLS nuisances.
11212LC_ALL=C
11213export LC_ALL
11214LANGUAGE=C
11215export LANGUAGE
11216
11217# CDPATH.
11218(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11219
11220
11221# as_fn_error STATUS ERROR [LINENO LOG_FD]
11222# ----------------------------------------
11223# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11224# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11225# script with STATUS, using 1 if that was 0.
11226as_fn_error ()
11227{
11228  as_status=$1; test $as_status -eq 0 && as_status=1
11229  if test "$4"; then
11230    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11231    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11232  fi
11233  $as_echo "$as_me: error: $2" >&2
11234  as_fn_exit $as_status
11235} # as_fn_error
11236
11237
11238# as_fn_set_status STATUS
11239# -----------------------
11240# Set $? to STATUS, without forking.
11241as_fn_set_status ()
11242{
11243  return $1
11244} # as_fn_set_status
11245
11246# as_fn_exit STATUS
11247# -----------------
11248# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11249as_fn_exit ()
11250{
11251  set +e
11252  as_fn_set_status $1
11253  exit $1
11254} # as_fn_exit
11255
11256# as_fn_unset VAR
11257# ---------------
11258# Portably unset VAR.
11259as_fn_unset ()
11260{
11261  { eval $1=; unset $1;}
11262}
11263as_unset=as_fn_unset
11264# as_fn_append VAR VALUE
11265# ----------------------
11266# Append the text in VALUE to the end of the definition contained in VAR. Take
11267# advantage of any shell optimizations that allow amortized linear growth over
11268# repeated appends, instead of the typical quadratic growth present in naive
11269# implementations.
11270if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11271  eval 'as_fn_append ()
11272  {
11273    eval $1+=\$2
11274  }'
11275else
11276  as_fn_append ()
11277  {
11278    eval $1=\$$1\$2
11279  }
11280fi # as_fn_append
11281
11282# as_fn_arith ARG...
11283# ------------------
11284# Perform arithmetic evaluation on the ARGs, and store the result in the
11285# global $as_val. Take advantage of shells that can avoid forks. The arguments
11286# must be portable across $(()) and expr.
11287if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11288  eval 'as_fn_arith ()
11289  {
11290    as_val=$(( $* ))
11291  }'
11292else
11293  as_fn_arith ()
11294  {
11295    as_val=`expr "$@" || test $? -eq 1`
11296  }
11297fi # as_fn_arith
11298
11299
11300if expr a : '\(a\)' >/dev/null 2>&1 &&
11301   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11302  as_expr=expr
11303else
11304  as_expr=false
11305fi
11306
11307if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11308  as_basename=basename
11309else
11310  as_basename=false
11311fi
11312
11313if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11314  as_dirname=dirname
11315else
11316  as_dirname=false
11317fi
11318
11319as_me=`$as_basename -- "$0" ||
11320$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11321	 X"$0" : 'X\(//\)$' \| \
11322	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11323$as_echo X/"$0" |
11324    sed '/^.*\/\([^/][^/]*\)\/*$/{
11325	    s//\1/
11326	    q
11327	  }
11328	  /^X\/\(\/\/\)$/{
11329	    s//\1/
11330	    q
11331	  }
11332	  /^X\/\(\/\).*/{
11333	    s//\1/
11334	    q
11335	  }
11336	  s/.*/./; q'`
11337
11338# Avoid depending upon Character Ranges.
11339as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11340as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11341as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11342as_cr_digits='0123456789'
11343as_cr_alnum=$as_cr_Letters$as_cr_digits
11344
11345ECHO_C= ECHO_N= ECHO_T=
11346case `echo -n x` in #(((((
11347-n*)
11348  case `echo 'xy\c'` in
11349  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11350  xy)  ECHO_C='\c';;
11351  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11352       ECHO_T='	';;
11353  esac;;
11354*)
11355  ECHO_N='-n';;
11356esac
11357
11358rm -f conf$$ conf$$.exe conf$$.file
11359if test -d conf$$.dir; then
11360  rm -f conf$$.dir/conf$$.file
11361else
11362  rm -f conf$$.dir
11363  mkdir conf$$.dir 2>/dev/null
11364fi
11365if (echo >conf$$.file) 2>/dev/null; then
11366  if ln -s conf$$.file conf$$ 2>/dev/null; then
11367    as_ln_s='ln -s'
11368    # ... but there are two gotchas:
11369    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11370    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11371    # In both cases, we have to default to `cp -pR'.
11372    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11373      as_ln_s='cp -pR'
11374  elif ln conf$$.file conf$$ 2>/dev/null; then
11375    as_ln_s=ln
11376  else
11377    as_ln_s='cp -pR'
11378  fi
11379else
11380  as_ln_s='cp -pR'
11381fi
11382rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11383rmdir conf$$.dir 2>/dev/null
11384
11385
11386# as_fn_mkdir_p
11387# -------------
11388# Create "$as_dir" as a directory, including parents if necessary.
11389as_fn_mkdir_p ()
11390{
11391
11392  case $as_dir in #(
11393  -*) as_dir=./$as_dir;;
11394  esac
11395  test -d "$as_dir" || eval $as_mkdir_p || {
11396    as_dirs=
11397    while :; do
11398      case $as_dir in #(
11399      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11400      *) as_qdir=$as_dir;;
11401      esac
11402      as_dirs="'$as_qdir' $as_dirs"
11403      as_dir=`$as_dirname -- "$as_dir" ||
11404$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11405	 X"$as_dir" : 'X\(//\)[^/]' \| \
11406	 X"$as_dir" : 'X\(//\)$' \| \
11407	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11408$as_echo X"$as_dir" |
11409    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11410	    s//\1/
11411	    q
11412	  }
11413	  /^X\(\/\/\)[^/].*/{
11414	    s//\1/
11415	    q
11416	  }
11417	  /^X\(\/\/\)$/{
11418	    s//\1/
11419	    q
11420	  }
11421	  /^X\(\/\).*/{
11422	    s//\1/
11423	    q
11424	  }
11425	  s/.*/./; q'`
11426      test -d "$as_dir" && break
11427    done
11428    test -z "$as_dirs" || eval "mkdir $as_dirs"
11429  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11430
11431
11432} # as_fn_mkdir_p
11433if mkdir -p . 2>/dev/null; then
11434  as_mkdir_p='mkdir -p "$as_dir"'
11435else
11436  test -d ./-p && rmdir ./-p
11437  as_mkdir_p=false
11438fi
11439
11440
11441# as_fn_executable_p FILE
11442# -----------------------
11443# Test if FILE is an executable regular file.
11444as_fn_executable_p ()
11445{
11446  test -f "$1" && test -x "$1"
11447} # as_fn_executable_p
11448as_test_x='test -x'
11449as_executable_p=as_fn_executable_p
11450
11451# Sed expression to map a string onto a valid CPP name.
11452as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11453
11454# Sed expression to map a string onto a valid variable name.
11455as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11456
11457
11458exec 6>&1
11459## ----------------------------------- ##
11460## Main body of $CONFIG_STATUS script. ##
11461## ----------------------------------- ##
11462_ASEOF
11463test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11464
11465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11466# Save the log message, to keep $0 and so on meaningful, and to
11467# report actual input values of CONFIG_FILES etc. instead of their
11468# values after options handling.
11469ac_log="
11470This file was extended by xfd $as_me 1.1.3, which was
11471generated by GNU Autoconf 2.69.  Invocation command line was
11472
11473  CONFIG_FILES    = $CONFIG_FILES
11474  CONFIG_HEADERS  = $CONFIG_HEADERS
11475  CONFIG_LINKS    = $CONFIG_LINKS
11476  CONFIG_COMMANDS = $CONFIG_COMMANDS
11477  $ $0 $@
11478
11479on `(hostname || uname -n) 2>/dev/null | sed 1q`
11480"
11481
11482_ACEOF
11483
11484case $ac_config_files in *"
11485"*) set x $ac_config_files; shift; ac_config_files=$*;;
11486esac
11487
11488case $ac_config_headers in *"
11489"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11490esac
11491
11492
11493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11494# Files that config.status was made for.
11495config_files="$ac_config_files"
11496config_headers="$ac_config_headers"
11497config_commands="$ac_config_commands"
11498
11499_ACEOF
11500
11501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11502ac_cs_usage="\
11503\`$as_me' instantiates files and other configuration actions
11504from templates according to the current configuration.  Unless the files
11505and actions are specified as TAGs, all are instantiated by default.
11506
11507Usage: $0 [OPTION]... [TAG]...
11508
11509  -h, --help       print this help, then exit
11510  -V, --version    print version number and configuration settings, then exit
11511      --config     print configuration, then exit
11512  -q, --quiet, --silent
11513                   do not print progress messages
11514  -d, --debug      don't remove temporary files
11515      --recheck    update $as_me by reconfiguring in the same conditions
11516      --file=FILE[:TEMPLATE]
11517                   instantiate the configuration file FILE
11518      --header=FILE[:TEMPLATE]
11519                   instantiate the configuration header FILE
11520
11521Configuration files:
11522$config_files
11523
11524Configuration headers:
11525$config_headers
11526
11527Configuration commands:
11528$config_commands
11529
11530Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/issues>."
11531
11532_ACEOF
11533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11534ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11535ac_cs_version="\\
11536xfd config.status 1.1.3
11537configured by $0, generated by GNU Autoconf 2.69,
11538  with options \\"\$ac_cs_config\\"
11539
11540Copyright (C) 2012 Free Software Foundation, Inc.
11541This config.status script is free software; the Free Software Foundation
11542gives unlimited permission to copy, distribute and modify it."
11543
11544ac_pwd='$ac_pwd'
11545srcdir='$srcdir'
11546INSTALL='$INSTALL'
11547MKDIR_P='$MKDIR_P'
11548AWK='$AWK'
11549test -n "\$AWK" || AWK=awk
11550_ACEOF
11551
11552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11553# The default lists apply if the user does not specify any file.
11554ac_need_defaults=:
11555while test $# != 0
11556do
11557  case $1 in
11558  --*=?*)
11559    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11560    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11561    ac_shift=:
11562    ;;
11563  --*=)
11564    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11565    ac_optarg=
11566    ac_shift=:
11567    ;;
11568  *)
11569    ac_option=$1
11570    ac_optarg=$2
11571    ac_shift=shift
11572    ;;
11573  esac
11574
11575  case $ac_option in
11576  # Handling of the options.
11577  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11578    ac_cs_recheck=: ;;
11579  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11580    $as_echo "$ac_cs_version"; exit ;;
11581  --config | --confi | --conf | --con | --co | --c )
11582    $as_echo "$ac_cs_config"; exit ;;
11583  --debug | --debu | --deb | --de | --d | -d )
11584    debug=: ;;
11585  --file | --fil | --fi | --f )
11586    $ac_shift
11587    case $ac_optarg in
11588    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11589    '') as_fn_error $? "missing file argument" ;;
11590    esac
11591    as_fn_append CONFIG_FILES " '$ac_optarg'"
11592    ac_need_defaults=false;;
11593  --header | --heade | --head | --hea )
11594    $ac_shift
11595    case $ac_optarg in
11596    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11597    esac
11598    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11599    ac_need_defaults=false;;
11600  --he | --h)
11601    # Conflict between --help and --header
11602    as_fn_error $? "ambiguous option: \`$1'
11603Try \`$0 --help' for more information.";;
11604  --help | --hel | -h )
11605    $as_echo "$ac_cs_usage"; exit ;;
11606  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11607  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11608    ac_cs_silent=: ;;
11609
11610  # This is an error.
11611  -*) as_fn_error $? "unrecognized option: \`$1'
11612Try \`$0 --help' for more information." ;;
11613
11614  *) as_fn_append ac_config_targets " $1"
11615     ac_need_defaults=false ;;
11616
11617  esac
11618  shift
11619done
11620
11621ac_configure_extra_args=
11622
11623if $ac_cs_silent; then
11624  exec 6>/dev/null
11625  ac_configure_extra_args="$ac_configure_extra_args --silent"
11626fi
11627
11628_ACEOF
11629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11630if \$ac_cs_recheck; then
11631  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11632  shift
11633  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11634  CONFIG_SHELL='$SHELL'
11635  export CONFIG_SHELL
11636  exec "\$@"
11637fi
11638
11639_ACEOF
11640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11641exec 5>>config.log
11642{
11643  echo
11644  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11645## Running $as_me. ##
11646_ASBOX
11647  $as_echo "$ac_log"
11648} >&5
11649
11650_ACEOF
11651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11652#
11653# INIT-COMMANDS
11654#
11655AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11656
11657_ACEOF
11658
11659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11660
11661# Handling of arguments.
11662for ac_config_target in $ac_config_targets
11663do
11664  case $ac_config_target in
11665    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11666    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11667    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11668    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11669
11670  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11671  esac
11672done
11673
11674
11675# If the user did not use the arguments to specify the items to instantiate,
11676# then the envvar interface is used.  Set only those that are not.
11677# We use the long form for the default assignment because of an extremely
11678# bizarre bug on SunOS 4.1.3.
11679if $ac_need_defaults; then
11680  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11681  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11682  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11683fi
11684
11685# Have a temporary directory for convenience.  Make it in the build tree
11686# simply because there is no reason against having it here, and in addition,
11687# creating and moving files from /tmp can sometimes cause problems.
11688# Hook for its removal unless debugging.
11689# Note that there is a small window in which the directory will not be cleaned:
11690# after its creation but before its name has been assigned to `$tmp'.
11691$debug ||
11692{
11693  tmp= ac_tmp=
11694  trap 'exit_status=$?
11695  : "${ac_tmp:=$tmp}"
11696  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11697' 0
11698  trap 'as_fn_exit 1' 1 2 13 15
11699}
11700# Create a (secure) tmp directory for tmp files.
11701
11702{
11703  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11704  test -d "$tmp"
11705}  ||
11706{
11707  tmp=./conf$$-$RANDOM
11708  (umask 077 && mkdir "$tmp")
11709} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11710ac_tmp=$tmp
11711
11712# Set up the scripts for CONFIG_FILES section.
11713# No need to generate them if there are no CONFIG_FILES.
11714# This happens for instance with `./config.status config.h'.
11715if test -n "$CONFIG_FILES"; then
11716
11717
11718ac_cr=`echo X | tr X '\015'`
11719# On cygwin, bash can eat \r inside `` if the user requested igncr.
11720# But we know of no other shell where ac_cr would be empty at this
11721# point, so we can use a bashism as a fallback.
11722if test "x$ac_cr" = x; then
11723  eval ac_cr=\$\'\\r\'
11724fi
11725ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11726if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11727  ac_cs_awk_cr='\\r'
11728else
11729  ac_cs_awk_cr=$ac_cr
11730fi
11731
11732echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11733_ACEOF
11734
11735
11736{
11737  echo "cat >conf$$subs.awk <<_ACEOF" &&
11738  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11739  echo "_ACEOF"
11740} >conf$$subs.sh ||
11741  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11742ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11743ac_delim='%!_!# '
11744for ac_last_try in false false false false false :; do
11745  . ./conf$$subs.sh ||
11746    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11747
11748  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11749  if test $ac_delim_n = $ac_delim_num; then
11750    break
11751  elif $ac_last_try; then
11752    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11753  else
11754    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11755  fi
11756done
11757rm -f conf$$subs.sh
11758
11759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11761_ACEOF
11762sed -n '
11763h
11764s/^/S["/; s/!.*/"]=/
11765p
11766g
11767s/^[^!]*!//
11768:repl
11769t repl
11770s/'"$ac_delim"'$//
11771t delim
11772:nl
11773h
11774s/\(.\{148\}\)..*/\1/
11775t more1
11776s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11777p
11778n
11779b repl
11780:more1
11781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11782p
11783g
11784s/.\{148\}//
11785t nl
11786:delim
11787h
11788s/\(.\{148\}\)..*/\1/
11789t more2
11790s/["\\]/\\&/g; s/^/"/; s/$/"/
11791p
11792b
11793:more2
11794s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11795p
11796g
11797s/.\{148\}//
11798t delim
11799' <conf$$subs.awk | sed '
11800/^[^""]/{
11801  N
11802  s/\n//
11803}
11804' >>$CONFIG_STATUS || ac_write_fail=1
11805rm -f conf$$subs.awk
11806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11807_ACAWK
11808cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11809  for (key in S) S_is_set[key] = 1
11810  FS = ""
11811
11812}
11813{
11814  line = $ 0
11815  nfields = split(line, field, "@")
11816  substed = 0
11817  len = length(field[1])
11818  for (i = 2; i < nfields; i++) {
11819    key = field[i]
11820    keylen = length(key)
11821    if (S_is_set[key]) {
11822      value = S[key]
11823      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11824      len += length(value) + length(field[++i])
11825      substed = 1
11826    } else
11827      len += 1 + keylen
11828  }
11829
11830  print line
11831}
11832
11833_ACAWK
11834_ACEOF
11835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11837  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11838else
11839  cat
11840fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11841  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11842_ACEOF
11843
11844# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11845# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11846# trailing colons and then remove the whole line if VPATH becomes empty
11847# (actually we leave an empty line to preserve line numbers).
11848if test "x$srcdir" = x.; then
11849  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11850h
11851s///
11852s/^/:/
11853s/[	 ]*$/:/
11854s/:\$(srcdir):/:/g
11855s/:\${srcdir}:/:/g
11856s/:@srcdir@:/:/g
11857s/^:*//
11858s/:*$//
11859x
11860s/\(=[	 ]*\).*/\1/
11861G
11862s/\n//
11863s/^[^=]*=[	 ]*$//
11864}'
11865fi
11866
11867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11868fi # test -n "$CONFIG_FILES"
11869
11870# Set up the scripts for CONFIG_HEADERS section.
11871# No need to generate them if there are no CONFIG_HEADERS.
11872# This happens for instance with `./config.status Makefile'.
11873if test -n "$CONFIG_HEADERS"; then
11874cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11875BEGIN {
11876_ACEOF
11877
11878# Transform confdefs.h into an awk script `defines.awk', embedded as
11879# here-document in config.status, that substitutes the proper values into
11880# config.h.in to produce config.h.
11881
11882# Create a delimiter string that does not exist in confdefs.h, to ease
11883# handling of long lines.
11884ac_delim='%!_!# '
11885for ac_last_try in false false :; do
11886  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11887  if test -z "$ac_tt"; then
11888    break
11889  elif $ac_last_try; then
11890    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11891  else
11892    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11893  fi
11894done
11895
11896# For the awk script, D is an array of macro values keyed by name,
11897# likewise P contains macro parameters if any.  Preserve backslash
11898# newline sequences.
11899
11900ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11901sed -n '
11902s/.\{148\}/&'"$ac_delim"'/g
11903t rset
11904:rset
11905s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11906t def
11907d
11908:def
11909s/\\$//
11910t bsnl
11911s/["\\]/\\&/g
11912s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11913D["\1"]=" \3"/p
11914s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11915d
11916:bsnl
11917s/["\\]/\\&/g
11918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11919D["\1"]=" \3\\\\\\n"\\/p
11920t cont
11921s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11922t cont
11923d
11924:cont
11925n
11926s/.\{148\}/&'"$ac_delim"'/g
11927t clear
11928:clear
11929s/\\$//
11930t bsnlc
11931s/["\\]/\\&/g; s/^/"/; s/$/"/p
11932d
11933:bsnlc
11934s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11935b cont
11936' <confdefs.h | sed '
11937s/'"$ac_delim"'/"\\\
11938"/g' >>$CONFIG_STATUS || ac_write_fail=1
11939
11940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11941  for (key in D) D_is_set[key] = 1
11942  FS = ""
11943}
11944/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11945  line = \$ 0
11946  split(line, arg, " ")
11947  if (arg[1] == "#") {
11948    defundef = arg[2]
11949    mac1 = arg[3]
11950  } else {
11951    defundef = substr(arg[1], 2)
11952    mac1 = arg[2]
11953  }
11954  split(mac1, mac2, "(") #)
11955  macro = mac2[1]
11956  prefix = substr(line, 1, index(line, defundef) - 1)
11957  if (D_is_set[macro]) {
11958    # Preserve the white space surrounding the "#".
11959    print prefix "define", macro P[macro] D[macro]
11960    next
11961  } else {
11962    # Replace #undef with comments.  This is necessary, for example,
11963    # in the case of _POSIX_SOURCE, which is predefined and required
11964    # on some systems where configure will not decide to define it.
11965    if (defundef == "undef") {
11966      print "/*", prefix defundef, macro, "*/"
11967      next
11968    }
11969  }
11970}
11971{ print }
11972_ACAWK
11973_ACEOF
11974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11976fi # test -n "$CONFIG_HEADERS"
11977
11978
11979eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11980shift
11981for ac_tag
11982do
11983  case $ac_tag in
11984  :[FHLC]) ac_mode=$ac_tag; continue;;
11985  esac
11986  case $ac_mode$ac_tag in
11987  :[FHL]*:*);;
11988  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11989  :[FH]-) ac_tag=-:-;;
11990  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11991  esac
11992  ac_save_IFS=$IFS
11993  IFS=:
11994  set x $ac_tag
11995  IFS=$ac_save_IFS
11996  shift
11997  ac_file=$1
11998  shift
11999
12000  case $ac_mode in
12001  :L) ac_source=$1;;
12002  :[FH])
12003    ac_file_inputs=
12004    for ac_f
12005    do
12006      case $ac_f in
12007      -) ac_f="$ac_tmp/stdin";;
12008      *) # Look for the file first in the build tree, then in the source tree
12009	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12010	 # because $ac_f cannot contain `:'.
12011	 test -f "$ac_f" ||
12012	   case $ac_f in
12013	   [\\/$]*) false;;
12014	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12015	   esac ||
12016	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12017      esac
12018      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12019      as_fn_append ac_file_inputs " '$ac_f'"
12020    done
12021
12022    # Let's still pretend it is `configure' which instantiates (i.e., don't
12023    # use $as_me), people would be surprised to read:
12024    #    /* config.h.  Generated by config.status.  */
12025    configure_input='Generated from '`
12026	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12027	`' by configure.'
12028    if test x"$ac_file" != x-; then
12029      configure_input="$ac_file.  $configure_input"
12030      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12031$as_echo "$as_me: creating $ac_file" >&6;}
12032    fi
12033    # Neutralize special characters interpreted by sed in replacement strings.
12034    case $configure_input in #(
12035    *\&* | *\|* | *\\* )
12036       ac_sed_conf_input=`$as_echo "$configure_input" |
12037       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12038    *) ac_sed_conf_input=$configure_input;;
12039    esac
12040
12041    case $ac_tag in
12042    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12043      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12044    esac
12045    ;;
12046  esac
12047
12048  ac_dir=`$as_dirname -- "$ac_file" ||
12049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12050	 X"$ac_file" : 'X\(//\)[^/]' \| \
12051	 X"$ac_file" : 'X\(//\)$' \| \
12052	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12053$as_echo X"$ac_file" |
12054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12055	    s//\1/
12056	    q
12057	  }
12058	  /^X\(\/\/\)[^/].*/{
12059	    s//\1/
12060	    q
12061	  }
12062	  /^X\(\/\/\)$/{
12063	    s//\1/
12064	    q
12065	  }
12066	  /^X\(\/\).*/{
12067	    s//\1/
12068	    q
12069	  }
12070	  s/.*/./; q'`
12071  as_dir="$ac_dir"; as_fn_mkdir_p
12072  ac_builddir=.
12073
12074case "$ac_dir" in
12075.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12076*)
12077  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12078  # A ".." for each directory in $ac_dir_suffix.
12079  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12080  case $ac_top_builddir_sub in
12081  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12082  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12083  esac ;;
12084esac
12085ac_abs_top_builddir=$ac_pwd
12086ac_abs_builddir=$ac_pwd$ac_dir_suffix
12087# for backward compatibility:
12088ac_top_builddir=$ac_top_build_prefix
12089
12090case $srcdir in
12091  .)  # We are building in place.
12092    ac_srcdir=.
12093    ac_top_srcdir=$ac_top_builddir_sub
12094    ac_abs_top_srcdir=$ac_pwd ;;
12095  [\\/]* | ?:[\\/]* )  # Absolute name.
12096    ac_srcdir=$srcdir$ac_dir_suffix;
12097    ac_top_srcdir=$srcdir
12098    ac_abs_top_srcdir=$srcdir ;;
12099  *) # Relative name.
12100    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12101    ac_top_srcdir=$ac_top_build_prefix$srcdir
12102    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12103esac
12104ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12105
12106
12107  case $ac_mode in
12108  :F)
12109  #
12110  # CONFIG_FILE
12111  #
12112
12113  case $INSTALL in
12114  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12115  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12116  esac
12117  ac_MKDIR_P=$MKDIR_P
12118  case $MKDIR_P in
12119  [\\/$]* | ?:[\\/]* ) ;;
12120  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12121  esac
12122_ACEOF
12123
12124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12125# If the template does not know about datarootdir, expand it.
12126# FIXME: This hack should be removed a few years after 2.60.
12127ac_datarootdir_hack=; ac_datarootdir_seen=
12128ac_sed_dataroot='
12129/datarootdir/ {
12130  p
12131  q
12132}
12133/@datadir@/p
12134/@docdir@/p
12135/@infodir@/p
12136/@localedir@/p
12137/@mandir@/p'
12138case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12139*datarootdir*) ac_datarootdir_seen=yes;;
12140*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12141  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12142$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12143_ACEOF
12144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12145  ac_datarootdir_hack='
12146  s&@datadir@&$datadir&g
12147  s&@docdir@&$docdir&g
12148  s&@infodir@&$infodir&g
12149  s&@localedir@&$localedir&g
12150  s&@mandir@&$mandir&g
12151  s&\\\${datarootdir}&$datarootdir&g' ;;
12152esac
12153_ACEOF
12154
12155# Neutralize VPATH when `$srcdir' = `.'.
12156# Shell code in configure.ac might set extrasub.
12157# FIXME: do we really want to maintain this feature?
12158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12159ac_sed_extra="$ac_vpsub
12160$extrasub
12161_ACEOF
12162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163:t
12164/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12165s|@configure_input@|$ac_sed_conf_input|;t t
12166s&@top_builddir@&$ac_top_builddir_sub&;t t
12167s&@top_build_prefix@&$ac_top_build_prefix&;t t
12168s&@srcdir@&$ac_srcdir&;t t
12169s&@abs_srcdir@&$ac_abs_srcdir&;t t
12170s&@top_srcdir@&$ac_top_srcdir&;t t
12171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12172s&@builddir@&$ac_builddir&;t t
12173s&@abs_builddir@&$ac_abs_builddir&;t t
12174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12175s&@INSTALL@&$ac_INSTALL&;t t
12176s&@MKDIR_P@&$ac_MKDIR_P&;t t
12177$ac_datarootdir_hack
12178"
12179eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12180  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12181
12182test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12183  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12184  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12185      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12187which seems to be undefined.  Please make sure it is defined" >&5
12188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12189which seems to be undefined.  Please make sure it is defined" >&2;}
12190
12191  rm -f "$ac_tmp/stdin"
12192  case $ac_file in
12193  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12194  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12195  esac \
12196  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12197 ;;
12198  :H)
12199  #
12200  # CONFIG_HEADER
12201  #
12202  if test x"$ac_file" != x-; then
12203    {
12204      $as_echo "/* $configure_input  */" \
12205      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12206    } >"$ac_tmp/config.h" \
12207      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12208    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12209      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12210$as_echo "$as_me: $ac_file is unchanged" >&6;}
12211    else
12212      rm -f "$ac_file"
12213      mv "$ac_tmp/config.h" "$ac_file" \
12214	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12215    fi
12216  else
12217    $as_echo "/* $configure_input  */" \
12218      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12219      || as_fn_error $? "could not create -" "$LINENO" 5
12220  fi
12221# Compute "$ac_file"'s index in $config_headers.
12222_am_arg="$ac_file"
12223_am_stamp_count=1
12224for _am_header in $config_headers :; do
12225  case $_am_header in
12226    $_am_arg | $_am_arg:* )
12227      break ;;
12228    * )
12229      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12230  esac
12231done
12232echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12233$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12235	 X"$_am_arg" : 'X\(//\)$' \| \
12236	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12237$as_echo X"$_am_arg" |
12238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12239	    s//\1/
12240	    q
12241	  }
12242	  /^X\(\/\/\)[^/].*/{
12243	    s//\1/
12244	    q
12245	  }
12246	  /^X\(\/\/\)$/{
12247	    s//\1/
12248	    q
12249	  }
12250	  /^X\(\/\).*/{
12251	    s//\1/
12252	    q
12253	  }
12254	  s/.*/./; q'`/stamp-h$_am_stamp_count
12255 ;;
12256
12257  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12258$as_echo "$as_me: executing $ac_file commands" >&6;}
12259 ;;
12260  esac
12261
12262
12263  case $ac_file$ac_mode in
12264    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12265  # Older Autoconf quotes --file arguments for eval, but not when files
12266  # are listed without --file.  Let's play safe and only enable the eval
12267  # if we detect the quoting.
12268  case $CONFIG_FILES in
12269  *\'*) eval set x "$CONFIG_FILES" ;;
12270  *)   set x $CONFIG_FILES ;;
12271  esac
12272  shift
12273  for mf
12274  do
12275    # Strip MF so we end up with the name of the file.
12276    mf=`echo "$mf" | sed -e 's/:.*$//'`
12277    # Check whether this is an Automake generated Makefile or not.
12278    # We used to match only the files named 'Makefile.in', but
12279    # some people rename them; so instead we look at the file content.
12280    # Grep'ing the first line is not enough: some people post-process
12281    # each Makefile.in and add a new line on top of each file to say so.
12282    # Grep'ing the whole file is not good either: AIX grep has a line
12283    # limit of 2048, but all sed's we know have understand at least 4000.
12284    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12285      dirpart=`$as_dirname -- "$mf" ||
12286$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12287	 X"$mf" : 'X\(//\)[^/]' \| \
12288	 X"$mf" : 'X\(//\)$' \| \
12289	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12290$as_echo X"$mf" |
12291    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12292	    s//\1/
12293	    q
12294	  }
12295	  /^X\(\/\/\)[^/].*/{
12296	    s//\1/
12297	    q
12298	  }
12299	  /^X\(\/\/\)$/{
12300	    s//\1/
12301	    q
12302	  }
12303	  /^X\(\/\).*/{
12304	    s//\1/
12305	    q
12306	  }
12307	  s/.*/./; q'`
12308    else
12309      continue
12310    fi
12311    # Extract the definition of DEPDIR, am__include, and am__quote
12312    # from the Makefile without running 'make'.
12313    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12314    test -z "$DEPDIR" && continue
12315    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12316    test -z "$am__include" && continue
12317    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12318    # Find all dependency output files, they are included files with
12319    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12320    # simplest approach to changing $(DEPDIR) to its actual value in the
12321    # expansion.
12322    for file in `sed -n "
12323      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12324	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12325      # Make sure the directory exists.
12326      test -f "$dirpart/$file" && continue
12327      fdir=`$as_dirname -- "$file" ||
12328$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12329	 X"$file" : 'X\(//\)[^/]' \| \
12330	 X"$file" : 'X\(//\)$' \| \
12331	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12332$as_echo X"$file" |
12333    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12334	    s//\1/
12335	    q
12336	  }
12337	  /^X\(\/\/\)[^/].*/{
12338	    s//\1/
12339	    q
12340	  }
12341	  /^X\(\/\/\)$/{
12342	    s//\1/
12343	    q
12344	  }
12345	  /^X\(\/\).*/{
12346	    s//\1/
12347	    q
12348	  }
12349	  s/.*/./; q'`
12350      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12351      # echo "creating $dirpart/$file"
12352      echo '# dummy' > "$dirpart/$file"
12353    done
12354  done
12355}
12356 ;;
12357
12358  esac
12359done # for ac_tag
12360
12361
12362as_fn_exit 0
12363_ACEOF
12364ac_clean_files=$ac_clean_files_save
12365
12366test $ac_write_fail = 0 ||
12367  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12368
12369
12370# configure is writing to config.log, and then calls config.status.
12371# config.status does its own redirection, appending to config.log.
12372# Unfortunately, on DOS this fails, as config.log is still kept open
12373# by configure, so config.status won't be able to write to it; its
12374# output is simply discarded.  So we exec the FD to /dev/null,
12375# effectively closing config.log, so it can be properly (re)opened and
12376# appended to by config.status.  When coming back to configure, we
12377# need to make the FD available again.
12378if test "$no_create" != yes; then
12379  ac_cs_success=:
12380  ac_config_status_args=
12381  test "$silent" = yes &&
12382    ac_config_status_args="$ac_config_status_args --quiet"
12383  exec 5>/dev/null
12384  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12385  exec 5>>config.log
12386  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12387  # would make configure fail if this is the last instruction.
12388  $ac_cs_success || as_fn_exit 1
12389fi
12390if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12391  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12392$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12393fi
12394
12395