configure revision d41660be
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xtrap 1.0.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='xtrap'
583PACKAGE_TARNAME='xtrap'
584PACKAGE_VERSION='1.0.3'
585PACKAGE_STRING='xtrap 1.0.3'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630XTRAP_APP_LIBS
631XTRAP_APP_CFLAGS
632MAN_SUBSTS
633XORG_MAN_PAGE
634ADMIN_MAN_DIR
635DRIVER_MAN_DIR
636MISC_MAN_DIR
637FILE_MAN_DIR
638LIB_MAN_DIR
639APP_MAN_DIR
640ADMIN_MAN_SUFFIX
641DRIVER_MAN_SUFFIX
642MISC_MAN_SUFFIX
643FILE_MAN_SUFFIX
644LIB_MAN_SUFFIX
645APP_MAN_SUFFIX
646SED
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655INSTALL_CMD
656PKG_CONFIG_LIBDIR
657PKG_CONFIG_PATH
658PKG_CONFIG
659CHANGELOG_CMD
660STRICT_CFLAGS
661CWARNFLAGS
662BASE_CFLAGS
663EGREP
664GREP
665CPP
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669am__nodep
670AMDEPBACKSLASH
671AMDEP_FALSE
672AMDEP_TRUE
673am__quote
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683AM_BACKSLASH
684AM_DEFAULT_VERBOSITY
685AM_DEFAULT_V
686AM_V
687am__untar
688am__tar
689AMTAR
690am__leading_dot
691SET_MAKE
692AWK
693mkdir_p
694MKDIR_P
695INSTALL_STRIP_PROGRAM
696STRIP
697install_sh
698MAKEINFO
699AUTOHEADER
700AUTOMAKE
701AUTOCONF
702ACLOCAL
703VERSION
704PACKAGE
705CYGPATH_W
706am__isrc
707INSTALL_DATA
708INSTALL_SCRIPT
709INSTALL_PROGRAM
710target_alias
711host_alias
712build_alias
713LIBS
714ECHO_T
715ECHO_N
716ECHO_C
717DEFS
718mandir
719localedir
720libdir
721psdir
722pdfdir
723dvidir
724htmldir
725infodir
726docdir
727oldincludedir
728includedir
729localstatedir
730sharedstatedir
731sysconfdir
732datadir
733datarootdir
734libexecdir
735sbindir
736bindir
737program_transform_name
738prefix
739exec_prefix
740PACKAGE_URL
741PACKAGE_BUGREPORT
742PACKAGE_STRING
743PACKAGE_VERSION
744PACKAGE_TARNAME
745PACKAGE_NAME
746PATH_SEPARATOR
747SHELL'
748ac_subst_files=''
749ac_user_opts='
750enable_option_checking
751enable_silent_rules
752enable_dependency_tracking
753enable_selective_werror
754enable_strict_compilation
755'
756      ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CPP
765PKG_CONFIG
766PKG_CONFIG_PATH
767PKG_CONFIG_LIBDIR
768XTRAP_APP_CFLAGS
769XTRAP_APP_LIBS'
770
771
772# Initialize some variables set by options.
773ac_init_help=
774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
777# The variables have the same names as the options, with
778# dashes changed to underlines.
779cache_file=/dev/null
780exec_prefix=NONE
781no_create=
782no_recursion=
783prefix=NONE
784program_prefix=NONE
785program_suffix=NONE
786program_transform_name=s,x,x,
787silent=
788site=
789srcdir=
790verbose=
791x_includes=NONE
792x_libraries=NONE
793
794# Installation directory options.
795# These are left unexpanded so users can "make install exec_prefix=/foo"
796# and all the variables that are supposed to be based on exec_prefix
797# by default will actually change.
798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
800bindir='${exec_prefix}/bin'
801sbindir='${exec_prefix}/sbin'
802libexecdir='${exec_prefix}/libexec'
803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
805sysconfdir='${prefix}/etc'
806sharedstatedir='${prefix}/com'
807localstatedir='${prefix}/var'
808includedir='${prefix}/include'
809oldincludedir='/usr/include'
810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811infodir='${datarootdir}/info'
812htmldir='${docdir}'
813dvidir='${docdir}'
814pdfdir='${docdir}'
815psdir='${docdir}'
816libdir='${exec_prefix}/lib'
817localedir='${datarootdir}/locale'
818mandir='${datarootdir}/man'
819
820ac_prev=
821ac_dashdash=
822for ac_option
823do
824  # If the previous option needs an argument, assign it.
825  if test -n "$ac_prev"; then
826    eval $ac_prev=\$ac_option
827    ac_prev=
828    continue
829  fi
830
831  case $ac_option in
832  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833  *=)   ac_optarg= ;;
834  *)    ac_optarg=yes ;;
835  esac
836
837  # Accept the important Cygnus configure options, so we can diagnose typos.
838
839  case $ac_dashdash$ac_option in
840  --)
841    ac_dashdash=yes ;;
842
843  -bindir | --bindir | --bindi | --bind | --bin | --bi)
844    ac_prev=bindir ;;
845  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846    bindir=$ac_optarg ;;
847
848  -build | --build | --buil | --bui | --bu)
849    ac_prev=build_alias ;;
850  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851    build_alias=$ac_optarg ;;
852
853  -cache-file | --cache-file | --cache-fil | --cache-fi \
854  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855    ac_prev=cache_file ;;
856  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858    cache_file=$ac_optarg ;;
859
860  --config-cache | -C)
861    cache_file=config.cache ;;
862
863  -datadir | --datadir | --datadi | --datad)
864    ac_prev=datadir ;;
865  -datadir=* | --datadir=* | --datadi=* | --datad=*)
866    datadir=$ac_optarg ;;
867
868  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869  | --dataroo | --dataro | --datar)
870    ac_prev=datarootdir ;;
871  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873    datarootdir=$ac_optarg ;;
874
875  -disable-* | --disable-*)
876    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877    # Reject names that are not valid shell variable names.
878    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879      as_fn_error $? "invalid feature name: $ac_useropt"
880    ac_useropt_orig=$ac_useropt
881    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882    case $ac_user_opts in
883      *"
884"enable_$ac_useropt"
885"*) ;;
886      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887	 ac_unrecognized_sep=', ';;
888    esac
889    eval enable_$ac_useropt=no ;;
890
891  -docdir | --docdir | --docdi | --doc | --do)
892    ac_prev=docdir ;;
893  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894    docdir=$ac_optarg ;;
895
896  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897    ac_prev=dvidir ;;
898  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899    dvidir=$ac_optarg ;;
900
901  -enable-* | --enable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=\$ac_optarg ;;
916
917  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919  | --exec | --exe | --ex)
920    ac_prev=exec_prefix ;;
921  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923  | --exec=* | --exe=* | --ex=*)
924    exec_prefix=$ac_optarg ;;
925
926  -gas | --gas | --ga | --g)
927    # Obsolete; use --with-gas.
928    with_gas=yes ;;
929
930  -help | --help | --hel | --he | -h)
931    ac_init_help=long ;;
932  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933    ac_init_help=recursive ;;
934  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935    ac_init_help=short ;;
936
937  -host | --host | --hos | --ho)
938    ac_prev=host_alias ;;
939  -host=* | --host=* | --hos=* | --ho=*)
940    host_alias=$ac_optarg ;;
941
942  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943    ac_prev=htmldir ;;
944  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945  | --ht=*)
946    htmldir=$ac_optarg ;;
947
948  -includedir | --includedir | --includedi | --included | --include \
949  | --includ | --inclu | --incl | --inc)
950    ac_prev=includedir ;;
951  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952  | --includ=* | --inclu=* | --incl=* | --inc=*)
953    includedir=$ac_optarg ;;
954
955  -infodir | --infodir | --infodi | --infod | --info | --inf)
956    ac_prev=infodir ;;
957  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958    infodir=$ac_optarg ;;
959
960  -libdir | --libdir | --libdi | --libd)
961    ac_prev=libdir ;;
962  -libdir=* | --libdir=* | --libdi=* | --libd=*)
963    libdir=$ac_optarg ;;
964
965  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966  | --libexe | --libex | --libe)
967    ac_prev=libexecdir ;;
968  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969  | --libexe=* | --libex=* | --libe=*)
970    libexecdir=$ac_optarg ;;
971
972  -localedir | --localedir | --localedi | --localed | --locale)
973    ac_prev=localedir ;;
974  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975    localedir=$ac_optarg ;;
976
977  -localstatedir | --localstatedir | --localstatedi | --localstated \
978  | --localstate | --localstat | --localsta | --localst | --locals)
979    ac_prev=localstatedir ;;
980  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982    localstatedir=$ac_optarg ;;
983
984  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985    ac_prev=mandir ;;
986  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987    mandir=$ac_optarg ;;
988
989  -nfp | --nfp | --nf)
990    # Obsolete; use --without-fp.
991    with_fp=no ;;
992
993  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994  | --no-cr | --no-c | -n)
995    no_create=yes ;;
996
997  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999    no_recursion=yes ;;
1000
1001  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003  | --oldin | --oldi | --old | --ol | --o)
1004    ac_prev=oldincludedir ;;
1005  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008    oldincludedir=$ac_optarg ;;
1009
1010  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011    ac_prev=prefix ;;
1012  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013    prefix=$ac_optarg ;;
1014
1015  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016  | --program-pre | --program-pr | --program-p)
1017    ac_prev=program_prefix ;;
1018  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020    program_prefix=$ac_optarg ;;
1021
1022  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023  | --program-suf | --program-su | --program-s)
1024    ac_prev=program_suffix ;;
1025  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027    program_suffix=$ac_optarg ;;
1028
1029  -program-transform-name | --program-transform-name \
1030  | --program-transform-nam | --program-transform-na \
1031  | --program-transform-n | --program-transform- \
1032  | --program-transform | --program-transfor \
1033  | --program-transfo | --program-transf \
1034  | --program-trans | --program-tran \
1035  | --progr-tra | --program-tr | --program-t)
1036    ac_prev=program_transform_name ;;
1037  -program-transform-name=* | --program-transform-name=* \
1038  | --program-transform-nam=* | --program-transform-na=* \
1039  | --program-transform-n=* | --program-transform-=* \
1040  | --program-transform=* | --program-transfor=* \
1041  | --program-transfo=* | --program-transf=* \
1042  | --program-trans=* | --program-tran=* \
1043  | --progr-tra=* | --program-tr=* | --program-t=*)
1044    program_transform_name=$ac_optarg ;;
1045
1046  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047    ac_prev=pdfdir ;;
1048  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049    pdfdir=$ac_optarg ;;
1050
1051  -psdir | --psdir | --psdi | --psd | --ps)
1052    ac_prev=psdir ;;
1053  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054    psdir=$ac_optarg ;;
1055
1056  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057  | -silent | --silent | --silen | --sile | --sil)
1058    silent=yes ;;
1059
1060  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061    ac_prev=sbindir ;;
1062  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063  | --sbi=* | --sb=*)
1064    sbindir=$ac_optarg ;;
1065
1066  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068  | --sharedst | --shareds | --shared | --share | --shar \
1069  | --sha | --sh)
1070    ac_prev=sharedstatedir ;;
1071  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074  | --sha=* | --sh=*)
1075    sharedstatedir=$ac_optarg ;;
1076
1077  -site | --site | --sit)
1078    ac_prev=site ;;
1079  -site=* | --site=* | --sit=*)
1080    site=$ac_optarg ;;
1081
1082  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083    ac_prev=srcdir ;;
1084  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085    srcdir=$ac_optarg ;;
1086
1087  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088  | --syscon | --sysco | --sysc | --sys | --sy)
1089    ac_prev=sysconfdir ;;
1090  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092    sysconfdir=$ac_optarg ;;
1093
1094  -target | --target | --targe | --targ | --tar | --ta | --t)
1095    ac_prev=target_alias ;;
1096  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097    target_alias=$ac_optarg ;;
1098
1099  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100    verbose=yes ;;
1101
1102  -version | --version | --versio | --versi | --vers | -V)
1103    ac_init_version=: ;;
1104
1105  -with-* | --with-*)
1106    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107    # Reject names that are not valid shell variable names.
1108    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109      as_fn_error $? "invalid package name: $ac_useropt"
1110    ac_useropt_orig=$ac_useropt
1111    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112    case $ac_user_opts in
1113      *"
1114"with_$ac_useropt"
1115"*) ;;
1116      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117	 ac_unrecognized_sep=', ';;
1118    esac
1119    eval with_$ac_useropt=\$ac_optarg ;;
1120
1121  -without-* | --without-*)
1122    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123    # Reject names that are not valid shell variable names.
1124    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125      as_fn_error $? "invalid package name: $ac_useropt"
1126    ac_useropt_orig=$ac_useropt
1127    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128    case $ac_user_opts in
1129      *"
1130"with_$ac_useropt"
1131"*) ;;
1132      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133	 ac_unrecognized_sep=', ';;
1134    esac
1135    eval with_$ac_useropt=no ;;
1136
1137  --x)
1138    # Obsolete; use --with-x.
1139    with_x=yes ;;
1140
1141  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142  | --x-incl | --x-inc | --x-in | --x-i)
1143    ac_prev=x_includes ;;
1144  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146    x_includes=$ac_optarg ;;
1147
1148  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150    ac_prev=x_libraries ;;
1151  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153    x_libraries=$ac_optarg ;;
1154
1155  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information"
1157    ;;
1158
1159  *=*)
1160    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161    # Reject names that are not valid shell variable names.
1162    case $ac_envvar in #(
1163      '' | [0-9]* | *[!_$as_cr_alnum]* )
1164      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1165    esac
1166    eval $ac_envvar=\$ac_optarg
1167    export $ac_envvar ;;
1168
1169  *)
1170    # FIXME: should be removed in autoconf 3.0.
1171    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1175    ;;
1176
1177  esac
1178done
1179
1180if test -n "$ac_prev"; then
1181  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182  as_fn_error $? "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186  case $enable_option_checking in
1187    no) ;;
1188    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190  esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195		datadir sysconfdir sharedstatedir localstatedir includedir \
1196		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197		libdir localedir mandir
1198do
1199  eval ac_val=\$$ac_var
1200  # Remove trailing slashes.
1201  case $ac_val in
1202    */ )
1203      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204      eval $ac_var=\$ac_val;;
1205  esac
1206  # Be sure to have absolute directory names.
1207  case $ac_val in
1208    [\\/$]* | ?:[\\/]* )  continue;;
1209    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210  esac
1211  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223  if test "x$build_alias" = x; then
1224    cross_compiling=maybe
1225  elif test "x$build_alias" != "x$host_alias"; then
1226    cross_compiling=yes
1227  fi
1228fi
1229
1230ac_tool_prefix=
1231test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233test "$silent" = yes && exec 6>/dev/null
1234
1235
1236ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237ac_ls_di=`ls -di .` &&
1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239  as_fn_error $? "working directory cannot be determined"
1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241  as_fn_error $? "pwd does not report name of working directory"
1242
1243
1244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246  ac_srcdir_defaulted=yes
1247  # Try the directory containing this script, then the parent directory.
1248  ac_confdir=`$as_dirname -- "$as_myself" ||
1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250	 X"$as_myself" : 'X\(//\)[^/]' \| \
1251	 X"$as_myself" : 'X\(//\)$' \| \
1252	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1253$as_echo X"$as_myself" |
1254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)[^/].*/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)$/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\).*/{
1267	    s//\1/
1268	    q
1269	  }
1270	  s/.*/./; q'`
1271  srcdir=$ac_confdir
1272  if test ! -r "$srcdir/$ac_unique_file"; then
1273    srcdir=..
1274  fi
1275else
1276  ac_srcdir_defaulted=no
1277fi
1278if test ! -r "$srcdir/$ac_unique_file"; then
1279  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1280  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1281fi
1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283ac_abs_confdir=`(
1284	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1285	pwd)`
1286# When building in place, set srcdir=.
1287if test "$ac_abs_confdir" = "$ac_pwd"; then
1288  srcdir=.
1289fi
1290# Remove unnecessary trailing slashes from srcdir.
1291# Double slashes in file names in object file debugging info
1292# mess up M-x gdb in Emacs.
1293case $srcdir in
1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1295esac
1296for ac_var in $ac_precious_vars; do
1297  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1298  eval ac_env_${ac_var}_value=\$${ac_var}
1299  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1300  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1301done
1302
1303#
1304# Report the --help message.
1305#
1306if test "$ac_init_help" = "long"; then
1307  # Omit some internal or obsolete options to make the list less imposing.
1308  # This message is too long to be a string in the A/UX 3.1 sh.
1309  cat <<_ACEOF
1310\`configure' configures xtrap 1.0.3 to adapt to many kinds of systems.
1311
1312Usage: $0 [OPTION]... [VAR=VALUE]...
1313
1314To assign environment variables (e.g., CC, CFLAGS...), specify them as
1315VAR=VALUE.  See below for descriptions of some of the useful variables.
1316
1317Defaults for the options are specified in brackets.
1318
1319Configuration:
1320  -h, --help              display this help and exit
1321      --help=short        display options specific to this package
1322      --help=recursive    display the short help of all the included packages
1323  -V, --version           display version information and exit
1324  -q, --quiet, --silent   do not print \`checking ...' messages
1325      --cache-file=FILE   cache test results in FILE [disabled]
1326  -C, --config-cache      alias for \`--cache-file=config.cache'
1327  -n, --no-create         do not create output files
1328      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1329
1330Installation directories:
1331  --prefix=PREFIX         install architecture-independent files in PREFIX
1332                          [$ac_default_prefix]
1333  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1334                          [PREFIX]
1335
1336By default, \`make install' will install all the files in
1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1338an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1339for instance \`--prefix=\$HOME'.
1340
1341For better control, use the options below.
1342
1343Fine tuning of the installation directories:
1344  --bindir=DIR            user executables [EPREFIX/bin]
1345  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1346  --libexecdir=DIR        program executables [EPREFIX/libexec]
1347  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1348  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1349  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1350  --libdir=DIR            object code libraries [EPREFIX/lib]
1351  --includedir=DIR        C header files [PREFIX/include]
1352  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1353  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1354  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1355  --infodir=DIR           info documentation [DATAROOTDIR/info]
1356  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1357  --mandir=DIR            man documentation [DATAROOTDIR/man]
1358  --docdir=DIR            documentation root [DATAROOTDIR/doc/xtrap]
1359  --htmldir=DIR           html documentation [DOCDIR]
1360  --dvidir=DIR            dvi documentation [DOCDIR]
1361  --pdfdir=DIR            pdf documentation [DOCDIR]
1362  --psdir=DIR             ps documentation [DOCDIR]
1363_ACEOF
1364
1365  cat <<\_ACEOF
1366
1367Program names:
1368  --program-prefix=PREFIX            prepend PREFIX to installed program names
1369  --program-suffix=SUFFIX            append SUFFIX to installed program names
1370  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1371
1372System types:
1373  --build=BUILD     configure for building on BUILD [guessed]
1374  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379  case $ac_init_help in
1380     short | recursive ) echo "Configuration of xtrap 1.0.3:";;
1381   esac
1382  cat <<\_ACEOF
1383
1384Optional Features:
1385  --disable-option-checking  ignore unrecognized --enable/--with options
1386  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1387  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1388  --enable-silent-rules   less verbose build output (undo: "make V=1")
1389  --disable-silent-rules  verbose build output (undo: "make V=0")
1390  --enable-dependency-tracking
1391                          do not reject slow dependency extractors
1392  --disable-dependency-tracking
1393                          speeds up one-time build
1394  --disable-selective-werror
1395                          Turn off selective compiler errors. (default:
1396                          enabled)
1397  --enable-strict-compilation
1398                          Enable all warnings from compiler and make them
1399                          errors (default: disabled)
1400
1401Some influential environment variables:
1402  CC          C compiler command
1403  CFLAGS      C compiler flags
1404  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405              nonstandard directory <lib dir>
1406  LIBS        libraries to pass to the linker, e.g. -l<library>
1407  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1408              you have headers in a nonstandard directory <include dir>
1409  CPP         C preprocessor
1410  PKG_CONFIG  path to pkg-config utility
1411  PKG_CONFIG_PATH
1412              directories to add to pkg-config's search path
1413  PKG_CONFIG_LIBDIR
1414              path overriding pkg-config's built-in search path
1415  XTRAP_APP_CFLAGS
1416              C compiler flags for XTRAP_APP, overriding pkg-config
1417  XTRAP_APP_LIBS
1418              linker flags for XTRAP_APP, overriding pkg-config
1419
1420Use these variables to override the choices made by `configure' or to help
1421it to find libraries and programs with nonstandard names/locations.
1422
1423Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1424_ACEOF
1425ac_status=$?
1426fi
1427
1428if test "$ac_init_help" = "recursive"; then
1429  # If there are subdirs, report their specific --help.
1430  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431    test -d "$ac_dir" ||
1432      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1433      continue
1434    ac_builddir=.
1435
1436case "$ac_dir" in
1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438*)
1439  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1440  # A ".." for each directory in $ac_dir_suffix.
1441  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1442  case $ac_top_builddir_sub in
1443  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445  esac ;;
1446esac
1447ac_abs_top_builddir=$ac_pwd
1448ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449# for backward compatibility:
1450ac_top_builddir=$ac_top_build_prefix
1451
1452case $srcdir in
1453  .)  # We are building in place.
1454    ac_srcdir=.
1455    ac_top_srcdir=$ac_top_builddir_sub
1456    ac_abs_top_srcdir=$ac_pwd ;;
1457  [\\/]* | ?:[\\/]* )  # Absolute name.
1458    ac_srcdir=$srcdir$ac_dir_suffix;
1459    ac_top_srcdir=$srcdir
1460    ac_abs_top_srcdir=$srcdir ;;
1461  *) # Relative name.
1462    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463    ac_top_srcdir=$ac_top_build_prefix$srcdir
1464    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465esac
1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467
1468    cd "$ac_dir" || { ac_status=$?; continue; }
1469    # Check for guested configure.
1470    if test -f "$ac_srcdir/configure.gnu"; then
1471      echo &&
1472      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473    elif test -f "$ac_srcdir/configure"; then
1474      echo &&
1475      $SHELL "$ac_srcdir/configure" --help=recursive
1476    else
1477      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478    fi || ac_status=$?
1479    cd "$ac_pwd" || { ac_status=$?; break; }
1480  done
1481fi
1482
1483test -n "$ac_init_help" && exit $ac_status
1484if $ac_init_version; then
1485  cat <<\_ACEOF
1486xtrap configure 1.0.3
1487generated by GNU Autoconf 2.69
1488
1489Copyright (C) 2012 Free Software Foundation, Inc.
1490This configure script is free software; the Free Software Foundation
1491gives unlimited permission to copy, distribute and modify it.
1492_ACEOF
1493  exit
1494fi
1495
1496## ------------------------ ##
1497## Autoconf initialization. ##
1498## ------------------------ ##
1499
1500# ac_fn_c_try_compile LINENO
1501# --------------------------
1502# Try to compile conftest.$ac_ext, and return whether this succeeded.
1503ac_fn_c_try_compile ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  rm -f conftest.$ac_objext
1507  if { { ac_try="$ac_compile"
1508case "(($ac_try" in
1509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1510  *) ac_try_echo=$ac_try;;
1511esac
1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513$as_echo "$ac_try_echo"; } >&5
1514  (eval "$ac_compile") 2>conftest.err
1515  ac_status=$?
1516  if test -s conftest.err; then
1517    grep -v '^ *+' conftest.err >conftest.er1
1518    cat conftest.er1 >&5
1519    mv -f conftest.er1 conftest.err
1520  fi
1521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522  test $ac_status = 0; } && {
1523	 test -z "$ac_c_werror_flag" ||
1524	 test ! -s conftest.err
1525       } && test -s conftest.$ac_objext; then :
1526  ac_retval=0
1527else
1528  $as_echo "$as_me: failed program was:" >&5
1529sed 's/^/| /' conftest.$ac_ext >&5
1530
1531	ac_retval=1
1532fi
1533  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534  as_fn_set_status $ac_retval
1535
1536} # ac_fn_c_try_compile
1537
1538# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1539# ---------------------------------------------
1540# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1541# accordingly.
1542ac_fn_c_check_decl ()
1543{
1544  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545  as_decl_name=`echo $2|sed 's/ *(.*//'`
1546  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1548$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1549if eval \${$3+:} false; then :
1550  $as_echo_n "(cached) " >&6
1551else
1552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553/* end confdefs.h.  */
1554$4
1555int
1556main ()
1557{
1558#ifndef $as_decl_name
1559#ifdef __cplusplus
1560  (void) $as_decl_use;
1561#else
1562  (void) $as_decl_name;
1563#endif
1564#endif
1565
1566  ;
1567  return 0;
1568}
1569_ACEOF
1570if ac_fn_c_try_compile "$LINENO"; then :
1571  eval "$3=yes"
1572else
1573  eval "$3=no"
1574fi
1575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576fi
1577eval ac_res=\$$3
1578	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579$as_echo "$ac_res" >&6; }
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581
1582} # ac_fn_c_check_decl
1583
1584# ac_fn_c_try_cpp LINENO
1585# ----------------------
1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_cpp ()
1588{
1589  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590  if { { ac_try="$ac_cpp conftest.$ac_ext"
1591case "(($ac_try" in
1592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593  *) ac_try_echo=$ac_try;;
1594esac
1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596$as_echo "$ac_try_echo"; } >&5
1597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598  ac_status=$?
1599  if test -s conftest.err; then
1600    grep -v '^ *+' conftest.err >conftest.er1
1601    cat conftest.er1 >&5
1602    mv -f conftest.er1 conftest.err
1603  fi
1604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605  test $ac_status = 0; } > conftest.i && {
1606	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607	 test ! -s conftest.err
1608       }; then :
1609  ac_retval=0
1610else
1611  $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614    ac_retval=1
1615fi
1616  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617  as_fn_set_status $ac_retval
1618
1619} # ac_fn_c_try_cpp
1620
1621# ac_fn_c_try_run LINENO
1622# ----------------------
1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624# that executables *can* be run.
1625ac_fn_c_try_run ()
1626{
1627  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628  if { { ac_try="$ac_link"
1629case "(($ac_try" in
1630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631  *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635  (eval "$ac_link") 2>&5
1636  ac_status=$?
1637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639  { { case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_try") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; }; }; then :
1649  ac_retval=0
1650else
1651  $as_echo "$as_me: program exited with status $ac_status" >&5
1652       $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655       ac_retval=$ac_status
1656fi
1657  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_run
1662
1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists and can be compiled using the include files in
1666# INCLUDES, setting the cache variable VAR accordingly.
1667ac_fn_c_check_header_compile ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if eval \${$3+:} false; then :
1673  $as_echo_n "(cached) " >&6
1674else
1675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677$4
1678#include <$2>
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681  eval "$3=yes"
1682else
1683  eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692} # ac_fn_c_check_header_compile
1693
1694# ac_fn_c_try_link LINENO
1695# -----------------------
1696# Try to link conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_link ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  rm -f conftest.$ac_objext conftest$ac_exeext
1701  if { { ac_try="$ac_link"
1702case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_link") 2>conftest.err
1709  ac_status=$?
1710  if test -s conftest.err; then
1711    grep -v '^ *+' conftest.err >conftest.er1
1712    cat conftest.er1 >&5
1713    mv -f conftest.er1 conftest.err
1714  fi
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; } && {
1717	 test -z "$ac_c_werror_flag" ||
1718	 test ! -s conftest.err
1719       } && test -s conftest$ac_exeext && {
1720	 test "$cross_compiling" = yes ||
1721	 test -x conftest$ac_exeext
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728	ac_retval=1
1729fi
1730  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1731  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1732  # interfere with the next link command; also delete a directory that is
1733  # left behind by Apple's compiler.  We do this before executing the actions.
1734  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736  as_fn_set_status $ac_retval
1737
1738} # ac_fn_c_try_link
1739cat >config.log <<_ACEOF
1740This file contains any messages produced by compilers while
1741running configure, to aid debugging if configure makes a mistake.
1742
1743It was created by xtrap $as_me 1.0.3, which was
1744generated by GNU Autoconf 2.69.  Invocation command line was
1745
1746  $ $0 $@
1747
1748_ACEOF
1749exec 5>>config.log
1750{
1751cat <<_ASUNAME
1752## --------- ##
1753## Platform. ##
1754## --------- ##
1755
1756hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1764
1765/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1766/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1767/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1769/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1770/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1771/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1772
1773_ASUNAME
1774
1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776for as_dir in $PATH
1777do
1778  IFS=$as_save_IFS
1779  test -z "$as_dir" && as_dir=.
1780    $as_echo "PATH: $as_dir"
1781  done
1782IFS=$as_save_IFS
1783
1784} >&5
1785
1786cat >&5 <<_ACEOF
1787
1788
1789## ----------- ##
1790## Core tests. ##
1791## ----------- ##
1792
1793_ACEOF
1794
1795
1796# Keep a trace of the command line.
1797# Strip out --no-create and --no-recursion so they do not pile up.
1798# Strip out --silent because we don't want to record it for future runs.
1799# Also quote any args containing shell meta-characters.
1800# Make two passes to allow for proper duplicate-argument suppression.
1801ac_configure_args=
1802ac_configure_args0=
1803ac_configure_args1=
1804ac_must_keep_next=false
1805for ac_pass in 1 2
1806do
1807  for ac_arg
1808  do
1809    case $ac_arg in
1810    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1811    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1812    | -silent | --silent | --silen | --sile | --sil)
1813      continue ;;
1814    *\'*)
1815      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1816    esac
1817    case $ac_pass in
1818    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1819    2)
1820      as_fn_append ac_configure_args1 " '$ac_arg'"
1821      if test $ac_must_keep_next = true; then
1822	ac_must_keep_next=false # Got value, back to normal.
1823      else
1824	case $ac_arg in
1825	  *=* | --config-cache | -C | -disable-* | --disable-* \
1826	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1827	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1828	  | -with-* | --with-* | -without-* | --without-* | --x)
1829	    case "$ac_configure_args0 " in
1830	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1831	    esac
1832	    ;;
1833	  -* ) ac_must_keep_next=true ;;
1834	esac
1835      fi
1836      as_fn_append ac_configure_args " '$ac_arg'"
1837      ;;
1838    esac
1839  done
1840done
1841{ ac_configure_args0=; unset ac_configure_args0;}
1842{ ac_configure_args1=; unset ac_configure_args1;}
1843
1844# When interrupted or exit'd, cleanup temporary files, and complete
1845# config.log.  We remove comments because anyway the quotes in there
1846# would cause problems or look ugly.
1847# WARNING: Use '\'' to represent an apostrophe within the trap.
1848# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1849trap 'exit_status=$?
1850  # Save into config.log some information that might help in debugging.
1851  {
1852    echo
1853
1854    $as_echo "## ---------------- ##
1855## Cache variables. ##
1856## ---------------- ##"
1857    echo
1858    # The following way of writing the cache mishandles newlines in values,
1859(
1860  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861    eval ac_val=\$$ac_var
1862    case $ac_val in #(
1863    *${as_nl}*)
1864      case $ac_var in #(
1865      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1866$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1867      esac
1868      case $ac_var in #(
1869      _ | IFS | as_nl) ;; #(
1870      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1871      *) { eval $ac_var=; unset $ac_var;} ;;
1872      esac ;;
1873    esac
1874  done
1875  (set) 2>&1 |
1876    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1877    *${as_nl}ac_space=\ *)
1878      sed -n \
1879	"s/'\''/'\''\\\\'\'''\''/g;
1880	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1881      ;; #(
1882    *)
1883      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1884      ;;
1885    esac |
1886    sort
1887)
1888    echo
1889
1890    $as_echo "## ----------------- ##
1891## Output variables. ##
1892## ----------------- ##"
1893    echo
1894    for ac_var in $ac_subst_vars
1895    do
1896      eval ac_val=\$$ac_var
1897      case $ac_val in
1898      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899      esac
1900      $as_echo "$ac_var='\''$ac_val'\''"
1901    done | sort
1902    echo
1903
1904    if test -n "$ac_subst_files"; then
1905      $as_echo "## ------------------- ##
1906## File substitutions. ##
1907## ------------------- ##"
1908      echo
1909      for ac_var in $ac_subst_files
1910      do
1911	eval ac_val=\$$ac_var
1912	case $ac_val in
1913	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914	esac
1915	$as_echo "$ac_var='\''$ac_val'\''"
1916      done | sort
1917      echo
1918    fi
1919
1920    if test -s confdefs.h; then
1921      $as_echo "## ----------- ##
1922## confdefs.h. ##
1923## ----------- ##"
1924      echo
1925      cat confdefs.h
1926      echo
1927    fi
1928    test "$ac_signal" != 0 &&
1929      $as_echo "$as_me: caught signal $ac_signal"
1930    $as_echo "$as_me: exit $exit_status"
1931  } >&5
1932  rm -f core *.core core.conftest.* &&
1933    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1934    exit $exit_status
1935' 0
1936for ac_signal in 1 2 13 15; do
1937  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1938done
1939ac_signal=0
1940
1941# confdefs.h avoids OS command line length limits that DEFS can exceed.
1942rm -f -r conftest* confdefs.h
1943
1944$as_echo "/* confdefs.h */" > confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954_ACEOF
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_VERSION "$PACKAGE_VERSION"
1958_ACEOF
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_STRING "$PACKAGE_STRING"
1962_ACEOF
1963
1964cat >>confdefs.h <<_ACEOF
1965#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1966_ACEOF
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_URL "$PACKAGE_URL"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978  # We do not want a PATH search for config.site.
1979  case $CONFIG_SITE in #((
1980    -*)  ac_site_file1=./$CONFIG_SITE;;
1981    */*) ac_site_file1=$CONFIG_SITE;;
1982    *)   ac_site_file1=./$CONFIG_SITE;;
1983  esac
1984elif test "x$prefix" != xNONE; then
1985  ac_site_file1=$prefix/share/config.site
1986  ac_site_file2=$prefix/etc/config.site
1987else
1988  ac_site_file1=$ac_default_prefix/share/config.site
1989  ac_site_file2=$ac_default_prefix/etc/config.site
1990fi
1991for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1992do
1993  test "x$ac_site_file" = xNONE && continue
1994  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1995    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1997    sed 's/^/| /' "$ac_site_file" >&5
1998    . "$ac_site_file" \
1999      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001as_fn_error $? "failed to load site script $ac_site_file
2002See \`config.log' for more details" "$LINENO" 5; }
2003  fi
2004done
2005
2006if test -r "$cache_file"; then
2007  # Some versions of bash will fail to source /dev/null (special files
2008  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2009  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011$as_echo "$as_me: loading cache $cache_file" >&6;}
2012    case $cache_file in
2013      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014      *)                      . "./$cache_file";;
2015    esac
2016  fi
2017else
2018  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019$as_echo "$as_me: creating cache $cache_file" >&6;}
2020  >$cache_file
2021fi
2022
2023# Check that the precious variables saved in the cache have kept the same
2024# value.
2025ac_cache_corrupted=false
2026for ac_var in $ac_precious_vars; do
2027  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028  eval ac_new_set=\$ac_env_${ac_var}_set
2029  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030  eval ac_new_val=\$ac_env_${ac_var}_value
2031  case $ac_old_set,$ac_new_set in
2032    set,)
2033      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035      ac_cache_corrupted=: ;;
2036    ,set)
2037      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2038$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039      ac_cache_corrupted=: ;;
2040    ,);;
2041    *)
2042      if test "x$ac_old_val" != "x$ac_new_val"; then
2043	# differences in whitespace do not lead to failure.
2044	ac_old_val_w=`echo x $ac_old_val`
2045	ac_new_val_w=`echo x $ac_new_val`
2046	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2048$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049	  ac_cache_corrupted=:
2050	else
2051	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053	  eval $ac_var=\$ac_old_val
2054	fi
2055	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2056$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2057	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2058$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2059      fi;;
2060  esac
2061  # Pass precious variables to config.status.
2062  if test "$ac_new_set" = set; then
2063    case $ac_new_val in
2064    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065    *) ac_arg=$ac_var=$ac_new_val ;;
2066    esac
2067    case " $ac_configure_args " in
2068      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2069      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2070    esac
2071  fi
2072done
2073if $ac_cache_corrupted; then
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2077$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2079fi
2080## -------------------- ##
2081## Main body of script. ##
2082## -------------------- ##
2083
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089
2090
2091
2092ac_config_headers="$ac_config_headers config.h"
2093
2094
2095# Initialize Automake
2096am__api_version='1.15'
2097
2098ac_aux_dir=
2099for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100  if test -f "$ac_dir/install-sh"; then
2101    ac_aux_dir=$ac_dir
2102    ac_install_sh="$ac_aux_dir/install-sh -c"
2103    break
2104  elif test -f "$ac_dir/install.sh"; then
2105    ac_aux_dir=$ac_dir
2106    ac_install_sh="$ac_aux_dir/install.sh -c"
2107    break
2108  elif test -f "$ac_dir/shtool"; then
2109    ac_aux_dir=$ac_dir
2110    ac_install_sh="$ac_aux_dir/shtool install -c"
2111    break
2112  fi
2113done
2114if test -z "$ac_aux_dir"; then
2115  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2116fi
2117
2118# These three variables are undocumented and unsupported,
2119# and are intended to be withdrawn in a future Autoconf release.
2120# They can cause serious problems if a builder's source tree is in a directory
2121# whose full name contains unusual characters.
2122ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2123ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2124ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2125
2126
2127# Find a good install program.  We prefer a C program (faster),
2128# so one script is as good as another.  But avoid the broken or
2129# incompatible versions:
2130# SysV /etc/install, /usr/sbin/install
2131# SunOS /usr/etc/install
2132# IRIX /sbin/install
2133# AIX /bin/install
2134# AmigaOS /C/install, which installs bootblocks on floppy discs
2135# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2136# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2137# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2138# OS/2's system install, which has a completely different semantic
2139# ./install, which can be erroneously created by make from ./install.sh.
2140# Reject install programs that cannot install multiple files.
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2142$as_echo_n "checking for a BSD-compatible install... " >&6; }
2143if test -z "$INSTALL"; then
2144if ${ac_cv_path_install+:} false; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148for as_dir in $PATH
2149do
2150  IFS=$as_save_IFS
2151  test -z "$as_dir" && as_dir=.
2152    # Account for people who put trailing slashes in PATH elements.
2153case $as_dir/ in #((
2154  ./ | .// | /[cC]/* | \
2155  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2156  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2157  /usr/ucb/* ) ;;
2158  *)
2159    # OSF1 and SCO ODT 3.0 have their own names for install.
2160    # Don't use installbsd from OSF since it installs stuff as root
2161    # by default.
2162    for ac_prog in ginstall scoinst install; do
2163      for ac_exec_ext in '' $ac_executable_extensions; do
2164	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2165	  if test $ac_prog = install &&
2166	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167	    # AIX install.  It has an incompatible calling convention.
2168	    :
2169	  elif test $ac_prog = install &&
2170	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171	    # program-specific install script used by HP pwplus--don't use.
2172	    :
2173	  else
2174	    rm -rf conftest.one conftest.two conftest.dir
2175	    echo one > conftest.one
2176	    echo two > conftest.two
2177	    mkdir conftest.dir
2178	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2179	      test -s conftest.one && test -s conftest.two &&
2180	      test -s conftest.dir/conftest.one &&
2181	      test -s conftest.dir/conftest.two
2182	    then
2183	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2184	      break 3
2185	    fi
2186	  fi
2187	fi
2188      done
2189    done
2190    ;;
2191esac
2192
2193  done
2194IFS=$as_save_IFS
2195
2196rm -rf conftest.one conftest.two conftest.dir
2197
2198fi
2199  if test "${ac_cv_path_install+set}" = set; then
2200    INSTALL=$ac_cv_path_install
2201  else
2202    # As a last resort, use the slow shell script.  Don't cache a
2203    # value for INSTALL within a source directory, because that will
2204    # break other packages using the cache if that directory is
2205    # removed, or if the value is a relative name.
2206    INSTALL=$ac_install_sh
2207  fi
2208fi
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2210$as_echo "$INSTALL" >&6; }
2211
2212# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2213# It thinks the first close brace ends the variable substitution.
2214test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2215
2216test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2217
2218test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2219
2220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2221$as_echo_n "checking whether build environment is sane... " >&6; }
2222# Reject unsafe characters in $srcdir or the absolute working directory
2223# name.  Accept space and tab only in the latter.
2224am_lf='
2225'
2226case `pwd` in
2227  *[\\\"\#\$\&\'\`$am_lf]*)
2228    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2229esac
2230case $srcdir in
2231  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2232    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2233esac
2234
2235# Do 'set' in a subshell so we don't clobber the current shell's
2236# arguments.  Must try -L first in case configure is actually a
2237# symlink; some systems play weird games with the mod time of symlinks
2238# (eg FreeBSD returns the mod time of the symlink's containing
2239# directory).
2240if (
2241   am_has_slept=no
2242   for am_try in 1 2; do
2243     echo "timestamp, slept: $am_has_slept" > conftest.file
2244     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2245     if test "$*" = "X"; then
2246	# -L didn't work.
2247	set X `ls -t "$srcdir/configure" conftest.file`
2248     fi
2249     if test "$*" != "X $srcdir/configure conftest.file" \
2250	&& test "$*" != "X conftest.file $srcdir/configure"; then
2251
2252	# If neither matched, then we have a broken ls.  This can happen
2253	# if, for instance, CONFIG_SHELL is bash and it inherits a
2254	# broken ls alias from the environment.  This has actually
2255	# happened.  Such a system could not be considered "sane".
2256	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2257  alias in your environment" "$LINENO" 5
2258     fi
2259     if test "$2" = conftest.file || test $am_try -eq 2; then
2260       break
2261     fi
2262     # Just in case.
2263     sleep 1
2264     am_has_slept=yes
2265   done
2266   test "$2" = conftest.file
2267   )
2268then
2269   # Ok.
2270   :
2271else
2272   as_fn_error $? "newly created file is older than distributed files!
2273Check your system clock" "$LINENO" 5
2274fi
2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2276$as_echo "yes" >&6; }
2277# If we didn't sleep, we still need to ensure time stamps of config.status and
2278# generated files are strictly newer.
2279am_sleep_pid=
2280if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2281  ( sleep 1 ) &
2282  am_sleep_pid=$!
2283fi
2284
2285rm -f conftest.file
2286
2287test "$program_prefix" != NONE &&
2288  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2289# Use a double $ so make ignores it.
2290test "$program_suffix" != NONE &&
2291  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2292# Double any \ or $.
2293# By default was `s,x,x', remove it if useless.
2294ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2295program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2296
2297# Expand $ac_aux_dir to an absolute path.
2298am_aux_dir=`cd "$ac_aux_dir" && pwd`
2299
2300if test x"${MISSING+set}" != xset; then
2301  case $am_aux_dir in
2302  *\ * | *\	*)
2303    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2304  *)
2305    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2306  esac
2307fi
2308# Use eval to expand $SHELL
2309if eval "$MISSING --is-lightweight"; then
2310  am_missing_run="$MISSING "
2311else
2312  am_missing_run=
2313  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2314$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2315fi
2316
2317if test x"${install_sh+set}" != xset; then
2318  case $am_aux_dir in
2319  *\ * | *\	*)
2320    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2321  *)
2322    install_sh="\${SHELL} $am_aux_dir/install-sh"
2323  esac
2324fi
2325
2326# Installed binaries are usually stripped using 'strip' when the user
2327# run "make install-strip".  However 'strip' might not be the right
2328# tool to use in cross-compilation environments, therefore Automake
2329# will honor the 'STRIP' environment variable to overrule this program.
2330if test "$cross_compiling" != no; then
2331  if test -n "$ac_tool_prefix"; then
2332  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}strip; ac_word=$2
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335$as_echo_n "checking for $ac_word... " >&6; }
2336if ${ac_cv_prog_STRIP+:} false; then :
2337  $as_echo_n "(cached) " >&6
2338else
2339  if test -n "$STRIP"; then
2340  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347    for ac_exec_ext in '' $ac_executable_extensions; do
2348  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2349    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354  done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359STRIP=$ac_cv_prog_STRIP
2360if test -n "$STRIP"; then
2361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2362$as_echo "$STRIP" >&6; }
2363else
2364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365$as_echo "no" >&6; }
2366fi
2367
2368
2369fi
2370if test -z "$ac_cv_prog_STRIP"; then
2371  ac_ct_STRIP=$STRIP
2372  # Extract the first word of "strip", so it can be a program name with args.
2373set dummy strip; ac_word=$2
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
2376if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2377  $as_echo_n "(cached) " >&6
2378else
2379  if test -n "$ac_ct_STRIP"; then
2380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    for ac_exec_ext in '' $ac_executable_extensions; do
2388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389    ac_cv_prog_ac_ct_STRIP="strip"
2390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394  done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400if test -n "$ac_ct_STRIP"; then
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2402$as_echo "$ac_ct_STRIP" >&6; }
2403else
2404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405$as_echo "no" >&6; }
2406fi
2407
2408  if test "x$ac_ct_STRIP" = x; then
2409    STRIP=":"
2410  else
2411    case $cross_compiling:$ac_tool_warned in
2412yes:)
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2415ac_tool_warned=yes ;;
2416esac
2417    STRIP=$ac_ct_STRIP
2418  fi
2419else
2420  STRIP="$ac_cv_prog_STRIP"
2421fi
2422
2423fi
2424INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2425
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2427$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2428if test -z "$MKDIR_P"; then
2429  if ${ac_cv_path_mkdir+:} false; then :
2430  $as_echo_n "(cached) " >&6
2431else
2432  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434do
2435  IFS=$as_save_IFS
2436  test -z "$as_dir" && as_dir=.
2437    for ac_prog in mkdir gmkdir; do
2438	 for ac_exec_ext in '' $ac_executable_extensions; do
2439	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2440	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441	     'mkdir (GNU coreutils) '* | \
2442	     'mkdir (coreutils) '* | \
2443	     'mkdir (fileutils) '4.1*)
2444	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445	       break 3;;
2446	   esac
2447	 done
2448       done
2449  done
2450IFS=$as_save_IFS
2451
2452fi
2453
2454  test -d ./--version && rmdir ./--version
2455  if test "${ac_cv_path_mkdir+set}" = set; then
2456    MKDIR_P="$ac_cv_path_mkdir -p"
2457  else
2458    # As a last resort, use the slow shell script.  Don't cache a
2459    # value for MKDIR_P within a source directory, because that will
2460    # break other packages using the cache if that directory is
2461    # removed, or if the value is a relative name.
2462    MKDIR_P="$ac_install_sh -d"
2463  fi
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2466$as_echo "$MKDIR_P" >&6; }
2467
2468for ac_prog in gawk mawk nawk awk
2469do
2470  # Extract the first word of "$ac_prog", so it can be a program name with args.
2471set dummy $ac_prog; ac_word=$2
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473$as_echo_n "checking for $ac_word... " >&6; }
2474if ${ac_cv_prog_AWK+:} false; then :
2475  $as_echo_n "(cached) " >&6
2476else
2477  if test -n "$AWK"; then
2478  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485    for ac_exec_ext in '' $ac_executable_extensions; do
2486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_AWK="$ac_prog"
2488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492  done
2493IFS=$as_save_IFS
2494
2495fi
2496fi
2497AWK=$ac_cv_prog_AWK
2498if test -n "$AWK"; then
2499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2500$as_echo "$AWK" >&6; }
2501else
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503$as_echo "no" >&6; }
2504fi
2505
2506
2507  test -n "$AWK" && break
2508done
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2511$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2512set x ${MAKE-make}
2513ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2514if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2515  $as_echo_n "(cached) " >&6
2516else
2517  cat >conftest.make <<\_ACEOF
2518SHELL = /bin/sh
2519all:
2520	@echo '@@@%%%=$(MAKE)=@@@%%%'
2521_ACEOF
2522# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2523case `${MAKE-make} -f conftest.make 2>/dev/null` in
2524  *@@@%%%=?*=@@@%%%*)
2525    eval ac_cv_prog_make_${ac_make}_set=yes;;
2526  *)
2527    eval ac_cv_prog_make_${ac_make}_set=no;;
2528esac
2529rm -f conftest.make
2530fi
2531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533$as_echo "yes" >&6; }
2534  SET_MAKE=
2535else
2536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
2538  SET_MAKE="MAKE=${MAKE-make}"
2539fi
2540
2541rm -rf .tst 2>/dev/null
2542mkdir .tst 2>/dev/null
2543if test -d .tst; then
2544  am__leading_dot=.
2545else
2546  am__leading_dot=_
2547fi
2548rmdir .tst 2>/dev/null
2549
2550# Check whether --enable-silent-rules was given.
2551if test "${enable_silent_rules+set}" = set; then :
2552  enableval=$enable_silent_rules;
2553fi
2554
2555case $enable_silent_rules in # (((
2556  yes) AM_DEFAULT_VERBOSITY=0;;
2557   no) AM_DEFAULT_VERBOSITY=1;;
2558    *) AM_DEFAULT_VERBOSITY=1;;
2559esac
2560am_make=${MAKE-make}
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2562$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2563if ${am_cv_make_support_nested_variables+:} false; then :
2564  $as_echo_n "(cached) " >&6
2565else
2566  if $as_echo 'TRUE=$(BAR$(V))
2567BAR0=false
2568BAR1=true
2569V=1
2570am__doit:
2571	@$(TRUE)
2572.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2573  am_cv_make_support_nested_variables=yes
2574else
2575  am_cv_make_support_nested_variables=no
2576fi
2577fi
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2579$as_echo "$am_cv_make_support_nested_variables" >&6; }
2580if test $am_cv_make_support_nested_variables = yes; then
2581    AM_V='$(V)'
2582  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2583else
2584  AM_V=$AM_DEFAULT_VERBOSITY
2585  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2586fi
2587AM_BACKSLASH='\'
2588
2589if test "`cd $srcdir && pwd`" != "`pwd`"; then
2590  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2591  # is not polluted with repeated "-I."
2592  am__isrc=' -I$(srcdir)'
2593  # test to see if srcdir already configured
2594  if test -f $srcdir/config.status; then
2595    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2596  fi
2597fi
2598
2599# test whether we have cygpath
2600if test -z "$CYGPATH_W"; then
2601  if (cygpath --version) >/dev/null 2>/dev/null; then
2602    CYGPATH_W='cygpath -w'
2603  else
2604    CYGPATH_W=echo
2605  fi
2606fi
2607
2608
2609# Define the identity of the package.
2610 PACKAGE='xtrap'
2611 VERSION='1.0.3'
2612
2613
2614cat >>confdefs.h <<_ACEOF
2615#define PACKAGE "$PACKAGE"
2616_ACEOF
2617
2618
2619cat >>confdefs.h <<_ACEOF
2620#define VERSION "$VERSION"
2621_ACEOF
2622
2623# Some tools Automake needs.
2624
2625ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2626
2627
2628AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2629
2630
2631AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2632
2633
2634AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2635
2636
2637MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2638
2639# For better backward compatibility.  To be removed once Automake 1.9.x
2640# dies out for good.  For more background, see:
2641# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2642# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2643mkdir_p='$(MKDIR_P)'
2644
2645# We need awk for the "check" target (and possibly the TAP driver).  The
2646# system "awk" is bad on some platforms.
2647# Always define AMTAR for backward compatibility.  Yes, it's still used
2648# in the wild :-(  We should find a proper way to deprecate it ...
2649AMTAR='$${TAR-tar}'
2650
2651
2652# We'll loop over all known methods to create a tar archive until one works.
2653_am_tools='gnutar  pax cpio none'
2654
2655am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2656
2657
2658
2659
2660
2661
2662# POSIX will say in a future version that running "rm -f" with no argument
2663# is OK; and we want to be able to make that assumption in our Makefile
2664# recipes.  So use an aggressive probe to check that the usage we want is
2665# actually supported "in the wild" to an acceptable degree.
2666# See automake bug#10828.
2667# To make any issue more visible, cause the running configure to be aborted
2668# by default if the 'rm' program in use doesn't match our expectations; the
2669# user can still override this though.
2670if rm -f && rm -fr && rm -rf; then : OK; else
2671  cat >&2 <<'END'
2672Oops!
2673
2674Your 'rm' program seems unable to run without file operands specified
2675on the command line, even when the '-f' option is present.  This is contrary
2676to the behaviour of most rm programs out there, and not conforming with
2677the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2678
2679Please tell bug-automake@gnu.org about your system, including the value
2680of your $PATH and any error possibly output before this message.  This
2681can help us improve future automake versions.
2682
2683END
2684  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2685    echo 'Configuration will proceed anyway, since you have set the' >&2
2686    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2687    echo >&2
2688  else
2689    cat >&2 <<'END'
2690Aborting the configuration process, to ensure you take notice of the issue.
2691
2692You can download and install GNU coreutils to get an 'rm' implementation
2693that behaves properly: <http://www.gnu.org/software/coreutils/>.
2694
2695If you want to complete the configuration process using your problematic
2696'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2697to "yes", and re-run configure.
2698
2699END
2700    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2701  fi
2702fi
2703
2704DEPDIR="${am__leading_dot}deps"
2705
2706ac_config_commands="$ac_config_commands depfiles"
2707
2708
2709am_make=${MAKE-make}
2710cat > confinc << 'END'
2711am__doit:
2712	@echo this is the am__doit target
2713.PHONY: am__doit
2714END
2715# If we don't find an include directive, just comment out the code.
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2717$as_echo_n "checking for style of include used by $am_make... " >&6; }
2718am__include="#"
2719am__quote=
2720_am_result=none
2721# First try GNU make style include.
2722echo "include confinc" > confmf
2723# Ignore all kinds of additional output from 'make'.
2724case `$am_make -s -f confmf 2> /dev/null` in #(
2725*the\ am__doit\ target*)
2726  am__include=include
2727  am__quote=
2728  _am_result=GNU
2729  ;;
2730esac
2731# Now try BSD make style include.
2732if test "$am__include" = "#"; then
2733   echo '.include "confinc"' > confmf
2734   case `$am_make -s -f confmf 2> /dev/null` in #(
2735   *the\ am__doit\ target*)
2736     am__include=.include
2737     am__quote="\""
2738     _am_result=BSD
2739     ;;
2740   esac
2741fi
2742
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2745$as_echo "$_am_result" >&6; }
2746rm -f confinc confmf
2747
2748# Check whether --enable-dependency-tracking was given.
2749if test "${enable_dependency_tracking+set}" = set; then :
2750  enableval=$enable_dependency_tracking;
2751fi
2752
2753if test "x$enable_dependency_tracking" != xno; then
2754  am_depcomp="$ac_aux_dir/depcomp"
2755  AMDEPBACKSLASH='\'
2756  am__nodep='_no'
2757fi
2758 if test "x$enable_dependency_tracking" != xno; then
2759  AMDEP_TRUE=
2760  AMDEP_FALSE='#'
2761else
2762  AMDEP_TRUE='#'
2763  AMDEP_FALSE=
2764fi
2765
2766
2767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772if test -n "$ac_tool_prefix"; then
2773  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  if test -n "$CC"; then
2781  ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786  IFS=$as_save_IFS
2787  test -z "$as_dir" && as_dir=.
2788    for ac_exec_ext in '' $ac_executable_extensions; do
2789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792    break 2
2793  fi
2794done
2795  done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$ac_cv_prog_CC"; then
2812  ac_ct_CC=$CC
2813  # Extract the first word of "gcc", so it can be a program name with args.
2814set dummy gcc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  if test -n "$ac_ct_CC"; then
2821  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826  IFS=$as_save_IFS
2827  test -z "$as_dir" && as_dir=.
2828    for ac_exec_ext in '' $ac_executable_extensions; do
2829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830    ac_cv_prog_ac_ct_CC="gcc"
2831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832    break 2
2833  fi
2834done
2835  done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841if test -n "$ac_ct_CC"; then
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843$as_echo "$ac_ct_CC" >&6; }
2844else
2845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846$as_echo "no" >&6; }
2847fi
2848
2849  if test "x$ac_ct_CC" = x; then
2850    CC=""
2851  else
2852    case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858    CC=$ac_ct_CC
2859  fi
2860else
2861  CC="$ac_cv_prog_CC"
2862fi
2863
2864if test -z "$CC"; then
2865          if test -n "$ac_tool_prefix"; then
2866    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}cc; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if ${ac_cv_prog_CC+:} false; then :
2871  $as_echo_n "(cached) " >&6
2872else
2873  if test -n "$CC"; then
2874  ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879  IFS=$as_save_IFS
2880  test -z "$as_dir" && as_dir=.
2881    for ac_exec_ext in '' $ac_executable_extensions; do
2882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883    ac_cv_prog_CC="${ac_tool_prefix}cc"
2884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885    break 2
2886  fi
2887done
2888  done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
2897else
2898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903  fi
2904fi
2905if test -z "$CC"; then
2906  # Extract the first word of "cc", so it can be a program name with args.
2907set dummy cc; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_CC+:} false; then :
2911  $as_echo_n "(cached) " >&6
2912else
2913  if test -n "$CC"; then
2914  ac_cv_prog_CC="$CC" # Let the user override the test.
2915else
2916  ac_prog_rejected=no
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920  IFS=$as_save_IFS
2921  test -z "$as_dir" && as_dir=.
2922    for ac_exec_ext in '' $ac_executable_extensions; do
2923  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925       ac_prog_rejected=yes
2926       continue
2927     fi
2928    ac_cv_prog_CC="cc"
2929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930    break 2
2931  fi
2932done
2933  done
2934IFS=$as_save_IFS
2935
2936if test $ac_prog_rejected = yes; then
2937  # We found a bogon in the path, so make sure we never use it.
2938  set dummy $ac_cv_prog_CC
2939  shift
2940  if test $# != 0; then
2941    # We chose a different compiler from the bogus one.
2942    # However, it has the same basename, so the bogon will be chosen
2943    # first if we set CC to just the basename; use the full file name.
2944    shift
2945    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946  fi
2947fi
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953$as_echo "$CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960fi
2961if test -z "$CC"; then
2962  if test -n "$ac_tool_prefix"; then
2963  for ac_prog in cl.exe
2964  do
2965    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if ${ac_cv_prog_CC+:} false; then :
2970  $as_echo_n "(cached) " >&6
2971else
2972  if test -n "$CC"; then
2973  ac_cv_prog_CC="$CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978  IFS=$as_save_IFS
2979  test -z "$as_dir" && as_dir=.
2980    for ac_exec_ext in '' $ac_executable_extensions; do
2981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984    break 2
2985  fi
2986done
2987  done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995$as_echo "$CC" >&6; }
2996else
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001
3002    test -n "$CC" && break
3003  done
3004fi
3005if test -z "$CC"; then
3006  ac_ct_CC=$CC
3007  for ac_prog in cl.exe
3008do
3009  # Extract the first word of "$ac_prog", so it can be a program name with args.
3010set dummy $ac_prog; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_ac_ct_CC+:} false; then :
3014  $as_echo_n "(cached) " >&6
3015else
3016  if test -n "$ac_ct_CC"; then
3017  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022  IFS=$as_save_IFS
3023  test -z "$as_dir" && as_dir=.
3024    for ac_exec_ext in '' $ac_executable_extensions; do
3025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026    ac_cv_prog_ac_ct_CC="$ac_prog"
3027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028    break 2
3029  fi
3030done
3031  done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037if test -n "$ac_ct_CC"; then
3038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039$as_echo "$ac_ct_CC" >&6; }
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046  test -n "$ac_ct_CC" && break
3047done
3048
3049  if test "x$ac_ct_CC" = x; then
3050    CC=""
3051  else
3052    case $cross_compiling:$ac_tool_warned in
3053yes:)
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056ac_tool_warned=yes ;;
3057esac
3058    CC=$ac_ct_CC
3059  fi
3060fi
3061
3062fi
3063
3064
3065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "no acceptable C compiler found in \$PATH
3068See \`config.log' for more details" "$LINENO" 5; }
3069
3070# Provide some information about the compiler.
3071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3072set X $ac_compile
3073ac_compiler=$2
3074for ac_option in --version -v -V -qversion; do
3075  { { ac_try="$ac_compiler $ac_option >&5"
3076case "(($ac_try" in
3077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078  *) ac_try_echo=$ac_try;;
3079esac
3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081$as_echo "$ac_try_echo"; } >&5
3082  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3083  ac_status=$?
3084  if test -s conftest.err; then
3085    sed '10a\
3086... rest of stderr output deleted ...
3087         10q' conftest.err >conftest.er1
3088    cat conftest.er1 >&5
3089  fi
3090  rm -f conftest.er1 conftest.err
3091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092  test $ac_status = 0; }
3093done
3094
3095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106ac_clean_files_save=$ac_clean_files
3107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3108# Try to create an executable without -o first, disregard a.out.
3109# It will help us diagnose broken compilers, and finding out an intuition
3110# of exeext.
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3112$as_echo_n "checking whether the C compiler works... " >&6; }
3113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3114
3115# The possible output files:
3116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3117
3118ac_rmfiles=
3119for ac_file in $ac_files
3120do
3121  case $ac_file in
3122    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124  esac
3125done
3126rm -f $ac_rmfiles
3127
3128if { { ac_try="$ac_link_default"
3129case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134$as_echo "$ac_try_echo"; } >&5
3135  (eval "$ac_link_default") 2>&5
3136  ac_status=$?
3137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138  test $ac_status = 0; }; then :
3139  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3141# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3142# so that the user can short-circuit this test for compilers unknown to
3143# Autoconf.
3144for ac_file in $ac_files ''
3145do
3146  test -f "$ac_file" || continue
3147  case $ac_file in
3148    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3149	;;
3150    [ab].out )
3151	# We found the default executable, but exeext='' is most
3152	# certainly right.
3153	break;;
3154    *.* )
3155	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3156	then :; else
3157	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158	fi
3159	# We set ac_cv_exeext here because the later test for it is not
3160	# safe: cross compilers may not add the suffix if given an `-o'
3161	# argument, so we may need to know it at that point already.
3162	# Even if this section looks crufty: it has the advantage of
3163	# actually working.
3164	break;;
3165    * )
3166	break;;
3167  esac
3168done
3169test "$ac_cv_exeext" = no && ac_cv_exeext=
3170
3171else
3172  ac_file=''
3173fi
3174if test -z "$ac_file"; then :
3175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177$as_echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182as_fn_error 77 "C compiler cannot create executables
3183See \`config.log' for more details" "$LINENO" 5; }
3184else
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186$as_echo "yes" >&6; }
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3189$as_echo_n "checking for C compiler default output file name... " >&6; }
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3191$as_echo "$ac_file" >&6; }
3192ac_exeext=$ac_cv_exeext
3193
3194rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3195ac_clean_files=$ac_clean_files_save
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197$as_echo_n "checking for suffix of executables... " >&6; }
3198if { { ac_try="$ac_link"
3199case "(($ac_try" in
3200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201  *) ac_try_echo=$ac_try;;
3202esac
3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204$as_echo "$ac_try_echo"; } >&5
3205  (eval "$ac_link") 2>&5
3206  ac_status=$?
3207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208  test $ac_status = 0; }; then :
3209  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3211# work properly (i.e., refer to `conftest.exe'), while it won't with
3212# `rm'.
3213for ac_file in conftest.exe conftest conftest.*; do
3214  test -f "$ac_file" || continue
3215  case $ac_file in
3216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218	  break;;
3219    * ) break;;
3220  esac
3221done
3222else
3223  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3226See \`config.log' for more details" "$LINENO" 5; }
3227fi
3228rm -f conftest conftest$ac_cv_exeext
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230$as_echo "$ac_cv_exeext" >&6; }
3231
3232rm -f conftest.$ac_ext
3233EXEEXT=$ac_cv_exeext
3234ac_exeext=$EXEEXT
3235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h.  */
3237#include <stdio.h>
3238int
3239main ()
3240{
3241FILE *f = fopen ("conftest.out", "w");
3242 return ferror (f) || fclose (f) != 0;
3243
3244  ;
3245  return 0;
3246}
3247_ACEOF
3248ac_clean_files="$ac_clean_files conftest.out"
3249# Check that the compiler produces executables we can run.  If not, either
3250# the compiler is broken, or we cross compile.
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3252$as_echo_n "checking whether we are cross compiling... " >&6; }
3253if test "$cross_compiling" != yes; then
3254  { { ac_try="$ac_link"
3255case "(($ac_try" in
3256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257  *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261  (eval "$ac_link") 2>&5
3262  ac_status=$?
3263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264  test $ac_status = 0; }
3265  if { ac_try='./conftest$ac_cv_exeext'
3266  { { case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_try") 2>&5
3273  ac_status=$?
3274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275  test $ac_status = 0; }; }; then
3276    cross_compiling=no
3277  else
3278    if test "$cross_compiling" = maybe; then
3279	cross_compiling=yes
3280    else
3281	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error $? "cannot run C compiled programs.
3284If you meant to cross compile, use \`--host'.
3285See \`config.log' for more details" "$LINENO" 5; }
3286    fi
3287  fi
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290$as_echo "$cross_compiling" >&6; }
3291
3292rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3293ac_clean_files=$ac_clean_files_save
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3295$as_echo_n "checking for suffix of object files... " >&6; }
3296if ${ac_cv_objext+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301
3302int
3303main ()
3304{
3305
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.o conftest.obj
3311if { { ac_try="$ac_compile"
3312case "(($ac_try" in
3313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314  *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318  (eval "$ac_compile") 2>&5
3319  ac_status=$?
3320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321  test $ac_status = 0; }; then :
3322  for ac_file in conftest.o conftest.obj conftest.*; do
3323  test -f "$ac_file" || continue;
3324  case $ac_file in
3325    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3326    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327       break;;
3328  esac
3329done
3330else
3331  $as_echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336as_fn_error $? "cannot compute suffix of object files: cannot compile
3337See \`config.log' for more details" "$LINENO" 5; }
3338fi
3339rm -f conftest.$ac_cv_objext conftest.$ac_ext
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3342$as_echo "$ac_cv_objext" >&6; }
3343OBJEXT=$ac_cv_objext
3344ac_objext=$OBJEXT
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3346$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3347if ${ac_cv_c_compiler_gnu+:} false; then :
3348  $as_echo_n "(cached) " >&6
3349else
3350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main ()
3355{
3356#ifndef __GNUC__
3357       choke me
3358#endif
3359
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364if ac_fn_c_try_compile "$LINENO"; then :
3365  ac_compiler_gnu=yes
3366else
3367  ac_compiler_gnu=no
3368fi
3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3375if test $ac_compiler_gnu = yes; then
3376  GCC=yes
3377else
3378  GCC=
3379fi
3380ac_test_CFLAGS=${CFLAGS+set}
3381ac_save_CFLAGS=$CFLAGS
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3383$as_echo_n "checking whether $CC accepts -g... " >&6; }
3384if ${ac_cv_prog_cc_g+:} false; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  ac_save_c_werror_flag=$ac_c_werror_flag
3388   ac_c_werror_flag=yes
3389   ac_cv_prog_cc_g=no
3390   CFLAGS="-g"
3391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393
3394int
3395main ()
3396{
3397
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402if ac_fn_c_try_compile "$LINENO"; then :
3403  ac_cv_prog_cc_g=yes
3404else
3405  CFLAGS=""
3406      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h.  */
3408
3409int
3410main ()
3411{
3412
3413  ;
3414  return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"; then :
3418
3419else
3420  ac_c_werror_flag=$ac_save_c_werror_flag
3421	 CFLAGS="-g"
3422	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h.  */
3424
3425int
3426main ()
3427{
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"; then :
3434  ac_cv_prog_cc_g=yes
3435fi
3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437fi
3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439fi
3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441   ac_c_werror_flag=$ac_save_c_werror_flag
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3444$as_echo "$ac_cv_prog_cc_g" >&6; }
3445if test "$ac_test_CFLAGS" = set; then
3446  CFLAGS=$ac_save_CFLAGS
3447elif test $ac_cv_prog_cc_g = yes; then
3448  if test "$GCC" = yes; then
3449    CFLAGS="-g -O2"
3450  else
3451    CFLAGS="-g"
3452  fi
3453else
3454  if test "$GCC" = yes; then
3455    CFLAGS="-O2"
3456  else
3457    CFLAGS=
3458  fi
3459fi
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3461$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3462if ${ac_cv_prog_cc_c89+:} false; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  ac_cv_prog_cc_c89=no
3466ac_save_CC=$CC
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h.  */
3469#include <stdarg.h>
3470#include <stdio.h>
3471struct stat;
3472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3473struct buf { int x; };
3474FILE * (*rcsopen) (struct buf *, struct stat *, int);
3475static char *e (p, i)
3476     char **p;
3477     int i;
3478{
3479  return p[i];
3480}
3481static char *f (char * (*g) (char **, int), char **p, ...)
3482{
3483  char *s;
3484  va_list v;
3485  va_start (v,p);
3486  s = g (p, va_arg (v,int));
3487  va_end (v);
3488  return s;
3489}
3490
3491/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3492   function prototypes and stuff, but not '\xHH' hex character constants.
3493   These don't provoke an error unfortunately, instead are silently treated
3494   as 'x'.  The following induces an error, until -std is added to get
3495   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3496   array size at least.  It's necessary to write '\x00'==0 to get something
3497   that's true only with -std.  */
3498int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499
3500/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3501   inside strings and character constants.  */
3502#define FOO(x) 'x'
3503int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504
3505int test (int i, double x);
3506struct s1 {int (*f) (int a);};
3507struct s2 {int (*f) (double a);};
3508int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3509int argc;
3510char **argv;
3511int
3512main ()
3513{
3514return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3515  ;
3516  return 0;
3517}
3518_ACEOF
3519for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3520	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521do
3522  CC="$ac_save_CC $ac_arg"
3523  if ac_fn_c_try_compile "$LINENO"; then :
3524  ac_cv_prog_cc_c89=$ac_arg
3525fi
3526rm -f core conftest.err conftest.$ac_objext
3527  test "x$ac_cv_prog_cc_c89" != "xno" && break
3528done
3529rm -f conftest.$ac_ext
3530CC=$ac_save_CC
3531
3532fi
3533# AC_CACHE_VAL
3534case "x$ac_cv_prog_cc_c89" in
3535  x)
3536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3537$as_echo "none needed" >&6; } ;;
3538  xno)
3539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3540$as_echo "unsupported" >&6; } ;;
3541  *)
3542    CC="$CC $ac_cv_prog_cc_c89"
3543    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3544$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3545esac
3546if test "x$ac_cv_prog_cc_c89" != xno; then :
3547
3548fi
3549
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3562$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3563if ${am_cv_prog_cc_c_o+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568
3569int
3570main ()
3571{
3572
3573  ;
3574  return 0;
3575}
3576_ACEOF
3577  # Make sure it works both with $CC and with simple cc.
3578  # Following AC_PROG_CC_C_O, we do the test twice because some
3579  # compilers refuse to overwrite an existing .o file with -o,
3580  # though they will create one.
3581  am_cv_prog_cc_c_o=yes
3582  for am_i in 1 2; do
3583    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3584   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3585   ac_status=$?
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } \
3588         && test -f conftest2.$ac_objext; then
3589      : OK
3590    else
3591      am_cv_prog_cc_c_o=no
3592      break
3593    fi
3594  done
3595  rm -f core conftest*
3596  unset am_i
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3599$as_echo "$am_cv_prog_cc_c_o" >&6; }
3600if test "$am_cv_prog_cc_c_o" != yes; then
3601   # Losing compiler, so override with the script.
3602   # FIXME: It is wrong to rewrite CC.
3603   # But if we don't then we get into trouble of one sort or another.
3604   # A longer-term fix would be to have automake use am__CC in this case,
3605   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3606   CC="$am_aux_dir/compile $CC"
3607fi
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614
3615depcc="$CC"   am_compiler_list=
3616
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3618$as_echo_n "checking dependency style of $depcc... " >&6; }
3619if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3620  $as_echo_n "(cached) " >&6
3621else
3622  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3623  # We make a subdir and do the tests there.  Otherwise we can end up
3624  # making bogus files that we don't know about and never remove.  For
3625  # instance it was reported that on HP-UX the gcc test will end up
3626  # making a dummy file named 'D' -- because '-MD' means "put the output
3627  # in D".
3628  rm -rf conftest.dir
3629  mkdir conftest.dir
3630  # Copy depcomp to subdir because otherwise we won't find it if we're
3631  # using a relative directory.
3632  cp "$am_depcomp" conftest.dir
3633  cd conftest.dir
3634  # We will build objects and dependencies in a subdirectory because
3635  # it helps to detect inapplicable dependency modes.  For instance
3636  # both Tru64's cc and ICC support -MD to output dependencies as a
3637  # side effect of compilation, but ICC will put the dependencies in
3638  # the current directory while Tru64 will put them in the object
3639  # directory.
3640  mkdir sub
3641
3642  am_cv_CC_dependencies_compiler_type=none
3643  if test "$am_compiler_list" = ""; then
3644     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3645  fi
3646  am__universal=false
3647  case " $depcc " in #(
3648     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3649     esac
3650
3651  for depmode in $am_compiler_list; do
3652    # Setup a source with many dependencies, because some compilers
3653    # like to wrap large dependency lists on column 80 (with \), and
3654    # we should not choose a depcomp mode which is confused by this.
3655    #
3656    # We need to recreate these files for each test, as the compiler may
3657    # overwrite some of them when testing with obscure command lines.
3658    # This happens at least with the AIX C compiler.
3659    : > sub/conftest.c
3660    for i in 1 2 3 4 5 6; do
3661      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3662      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3663      # Solaris 10 /bin/sh.
3664      echo '/* dummy */' > sub/conftst$i.h
3665    done
3666    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3667
3668    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3669    # mode.  It turns out that the SunPro C++ compiler does not properly
3670    # handle '-M -o', and we need to detect this.  Also, some Intel
3671    # versions had trouble with output in subdirs.
3672    am__obj=sub/conftest.${OBJEXT-o}
3673    am__minus_obj="-o $am__obj"
3674    case $depmode in
3675    gcc)
3676      # This depmode causes a compiler race in universal mode.
3677      test "$am__universal" = false || continue
3678      ;;
3679    nosideeffect)
3680      # After this tag, mechanisms are not by side-effect, so they'll
3681      # only be used when explicitly requested.
3682      if test "x$enable_dependency_tracking" = xyes; then
3683	continue
3684      else
3685	break
3686      fi
3687      ;;
3688    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3689      # This compiler won't grok '-c -o', but also, the minuso test has
3690      # not run yet.  These depmodes are late enough in the game, and
3691      # so weak that their functioning should not be impacted.
3692      am__obj=conftest.${OBJEXT-o}
3693      am__minus_obj=
3694      ;;
3695    none) break ;;
3696    esac
3697    if depmode=$depmode \
3698       source=sub/conftest.c object=$am__obj \
3699       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3700       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3701         >/dev/null 2>conftest.err &&
3702       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3703       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3704       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3705       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3706      # icc doesn't choke on unknown options, it will just issue warnings
3707      # or remarks (even with -Werror).  So we grep stderr for any message
3708      # that says an option was ignored or not supported.
3709      # When given -MP, icc 7.0 and 7.1 complain thusly:
3710      #   icc: Command line warning: ignoring option '-M'; no argument required
3711      # The diagnosis changed in icc 8.0:
3712      #   icc: Command line remark: option '-MP' not supported
3713      if (grep 'ignoring option' conftest.err ||
3714          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3715        am_cv_CC_dependencies_compiler_type=$depmode
3716        break
3717      fi
3718    fi
3719  done
3720
3721  cd ..
3722  rm -rf conftest.dir
3723else
3724  am_cv_CC_dependencies_compiler_type=none
3725fi
3726
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3729$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3730CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3731
3732 if
3733  test "x$enable_dependency_tracking" != xno \
3734  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3735  am__fastdepCC_TRUE=
3736  am__fastdepCC_FALSE='#'
3737else
3738  am__fastdepCC_TRUE='#'
3739  am__fastdepCC_FALSE=
3740fi
3741
3742
3743
3744
3745# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3758$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3759if ${ac_cv_prog_cc_c99+:} false; then :
3760  $as_echo_n "(cached) " >&6
3761else
3762  ac_cv_prog_cc_c99=no
3763ac_save_CC=$CC
3764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h.  */
3766#include <stdarg.h>
3767#include <stdbool.h>
3768#include <stdlib.h>
3769#include <wchar.h>
3770#include <stdio.h>
3771
3772// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3773#define debug(...) fprintf (stderr, __VA_ARGS__)
3774#define showlist(...) puts (#__VA_ARGS__)
3775#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3776static void
3777test_varargs_macros (void)
3778{
3779  int x = 1234;
3780  int y = 5678;
3781  debug ("Flag");
3782  debug ("X = %d\n", x);
3783  showlist (The first, second, and third items.);
3784  report (x>y, "x is %d but y is %d", x, y);
3785}
3786
3787// Check long long types.
3788#define BIG64 18446744073709551615ull
3789#define BIG32 4294967295ul
3790#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3791#if !BIG_OK
3792  your preprocessor is broken;
3793#endif
3794#if BIG_OK
3795#else
3796  your preprocessor is broken;
3797#endif
3798static long long int bignum = -9223372036854775807LL;
3799static unsigned long long int ubignum = BIG64;
3800
3801struct incomplete_array
3802{
3803  int datasize;
3804  double data[];
3805};
3806
3807struct named_init {
3808  int number;
3809  const wchar_t *name;
3810  double average;
3811};
3812
3813typedef const char *ccp;
3814
3815static inline int
3816test_restrict (ccp restrict text)
3817{
3818  // See if C++-style comments work.
3819  // Iterate through items via the restricted pointer.
3820  // Also check for declarations in for loops.
3821  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3822    continue;
3823  return 0;
3824}
3825
3826// Check varargs and va_copy.
3827static void
3828test_varargs (const char *format, ...)
3829{
3830  va_list args;
3831  va_start (args, format);
3832  va_list args_copy;
3833  va_copy (args_copy, args);
3834
3835  const char *str;
3836  int number;
3837  float fnumber;
3838
3839  while (*format)
3840    {
3841      switch (*format++)
3842	{
3843	case 's': // string
3844	  str = va_arg (args_copy, const char *);
3845	  break;
3846	case 'd': // int
3847	  number = va_arg (args_copy, int);
3848	  break;
3849	case 'f': // float
3850	  fnumber = va_arg (args_copy, double);
3851	  break;
3852	default:
3853	  break;
3854	}
3855    }
3856  va_end (args_copy);
3857  va_end (args);
3858}
3859
3860int
3861main ()
3862{
3863
3864  // Check bool.
3865  _Bool success = false;
3866
3867  // Check restrict.
3868  if (test_restrict ("String literal") == 0)
3869    success = true;
3870  char *restrict newvar = "Another string";
3871
3872  // Check varargs.
3873  test_varargs ("s, d' f .", "string", 65, 34.234);
3874  test_varargs_macros ();
3875
3876  // Check flexible array members.
3877  struct incomplete_array *ia =
3878    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3879  ia->datasize = 10;
3880  for (int i = 0; i < ia->datasize; ++i)
3881    ia->data[i] = i * 1.234;
3882
3883  // Check named initializers.
3884  struct named_init ni = {
3885    .number = 34,
3886    .name = L"Test wide string",
3887    .average = 543.34343,
3888  };
3889
3890  ni.number = 58;
3891
3892  int dynamic_array[ni.number];
3893  dynamic_array[ni.number - 1] = 543;
3894
3895  // work around unused variable warnings
3896  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3897	  || dynamic_array[ni.number - 1] != 543);
3898
3899  ;
3900  return 0;
3901}
3902_ACEOF
3903for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3904do
3905  CC="$ac_save_CC $ac_arg"
3906  if ac_fn_c_try_compile "$LINENO"; then :
3907  ac_cv_prog_cc_c99=$ac_arg
3908fi
3909rm -f core conftest.err conftest.$ac_objext
3910  test "x$ac_cv_prog_cc_c99" != "xno" && break
3911done
3912rm -f conftest.$ac_ext
3913CC=$ac_save_CC
3914
3915fi
3916# AC_CACHE_VAL
3917case "x$ac_cv_prog_cc_c99" in
3918  x)
3919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3920$as_echo "none needed" >&6; } ;;
3921  xno)
3922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3923$as_echo "unsupported" >&6; } ;;
3924  *)
3925    CC="$CC $ac_cv_prog_cc_c99"
3926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3927$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3928esac
3929if test "x$ac_cv_prog_cc_c99" != xno; then :
3930
3931fi
3932
3933
3934
3935ac_ext=c
3936ac_cpp='$CPP $CPPFLAGS'
3937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3939ac_compiler_gnu=$ac_cv_c_compiler_gnu
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3941$as_echo_n "checking how to run the C preprocessor... " >&6; }
3942# On Suns, sometimes $CPP names a directory.
3943if test -n "$CPP" && test -d "$CPP"; then
3944  CPP=
3945fi
3946if test -z "$CPP"; then
3947  if ${ac_cv_prog_CPP+:} false; then :
3948  $as_echo_n "(cached) " >&6
3949else
3950      # Double quotes because CPP needs to be expanded
3951    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3952    do
3953      ac_preproc_ok=false
3954for ac_c_preproc_warn_flag in '' yes
3955do
3956  # Use a header file that comes with gcc, so configuring glibc
3957  # with a fresh cross-compiler works.
3958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959  # <limits.h> exists even on freestanding compilers.
3960  # On the NeXT, cc -E runs the code through the compiler's parser,
3961  # not just through cpp. "Syntax error" is here to catch this case.
3962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964#ifdef __STDC__
3965# include <limits.h>
3966#else
3967# include <assert.h>
3968#endif
3969		     Syntax error
3970_ACEOF
3971if ac_fn_c_try_cpp "$LINENO"; then :
3972
3973else
3974  # Broken: fails on valid input.
3975continue
3976fi
3977rm -f conftest.err conftest.i conftest.$ac_ext
3978
3979  # OK, works on sane cases.  Now check whether nonexistent headers
3980  # can be detected and how.
3981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983#include <ac_nonexistent.h>
3984_ACEOF
3985if ac_fn_c_try_cpp "$LINENO"; then :
3986  # Broken: success on invalid input.
3987continue
3988else
3989  # Passes both tests.
3990ac_preproc_ok=:
3991break
3992fi
3993rm -f conftest.err conftest.i conftest.$ac_ext
3994
3995done
3996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997rm -f conftest.i conftest.err conftest.$ac_ext
3998if $ac_preproc_ok; then :
3999  break
4000fi
4001
4002    done
4003    ac_cv_prog_CPP=$CPP
4004
4005fi
4006  CPP=$ac_cv_prog_CPP
4007else
4008  ac_cv_prog_CPP=$CPP
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4011$as_echo "$CPP" >&6; }
4012ac_preproc_ok=false
4013for ac_c_preproc_warn_flag in '' yes
4014do
4015  # Use a header file that comes with gcc, so configuring glibc
4016  # with a fresh cross-compiler works.
4017  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018  # <limits.h> exists even on freestanding compilers.
4019  # On the NeXT, cc -E runs the code through the compiler's parser,
4020  # not just through cpp. "Syntax error" is here to catch this case.
4021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023#ifdef __STDC__
4024# include <limits.h>
4025#else
4026# include <assert.h>
4027#endif
4028		     Syntax error
4029_ACEOF
4030if ac_fn_c_try_cpp "$LINENO"; then :
4031
4032else
4033  # Broken: fails on valid input.
4034continue
4035fi
4036rm -f conftest.err conftest.i conftest.$ac_ext
4037
4038  # OK, works on sane cases.  Now check whether nonexistent headers
4039  # can be detected and how.
4040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#include <ac_nonexistent.h>
4043_ACEOF
4044if ac_fn_c_try_cpp "$LINENO"; then :
4045  # Broken: success on invalid input.
4046continue
4047else
4048  # Passes both tests.
4049ac_preproc_ok=:
4050break
4051fi
4052rm -f conftest.err conftest.i conftest.$ac_ext
4053
4054done
4055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4056rm -f conftest.i conftest.err conftest.$ac_ext
4057if $ac_preproc_ok; then :
4058
4059else
4060  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4063See \`config.log' for more details" "$LINENO" 5; }
4064fi
4065
4066ac_ext=c
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4074$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4075if ${ac_cv_path_GREP+:} false; then :
4076  $as_echo_n "(cached) " >&6
4077else
4078  if test -z "$GREP"; then
4079  ac_path_GREP_found=false
4080  # Loop through the user's path and test for each of PROGNAME-LIST
4081  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4083do
4084  IFS=$as_save_IFS
4085  test -z "$as_dir" && as_dir=.
4086    for ac_prog in grep ggrep; do
4087    for ac_exec_ext in '' $ac_executable_extensions; do
4088      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089      as_fn_executable_p "$ac_path_GREP" || continue
4090# Check for GNU ac_path_GREP and select it if it is found.
4091  # Check for GNU $ac_path_GREP
4092case `"$ac_path_GREP" --version 2>&1` in
4093*GNU*)
4094  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4095*)
4096  ac_count=0
4097  $as_echo_n 0123456789 >"conftest.in"
4098  while :
4099  do
4100    cat "conftest.in" "conftest.in" >"conftest.tmp"
4101    mv "conftest.tmp" "conftest.in"
4102    cp "conftest.in" "conftest.nl"
4103    $as_echo 'GREP' >> "conftest.nl"
4104    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106    as_fn_arith $ac_count + 1 && ac_count=$as_val
4107    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108      # Best one so far, save it but keep looking for a better one
4109      ac_cv_path_GREP="$ac_path_GREP"
4110      ac_path_GREP_max=$ac_count
4111    fi
4112    # 10*(2^10) chars as input seems more than enough
4113    test $ac_count -gt 10 && break
4114  done
4115  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116esac
4117
4118      $ac_path_GREP_found && break 3
4119    done
4120  done
4121  done
4122IFS=$as_save_IFS
4123  if test -z "$ac_cv_path_GREP"; then
4124    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4125  fi
4126else
4127  ac_cv_path_GREP=$GREP
4128fi
4129
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4132$as_echo "$ac_cv_path_GREP" >&6; }
4133 GREP="$ac_cv_path_GREP"
4134
4135
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4137$as_echo_n "checking for egrep... " >&6; }
4138if ${ac_cv_path_EGREP+:} false; then :
4139  $as_echo_n "(cached) " >&6
4140else
4141  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4142   then ac_cv_path_EGREP="$GREP -E"
4143   else
4144     if test -z "$EGREP"; then
4145  ac_path_EGREP_found=false
4146  # Loop through the user's path and test for each of PROGNAME-LIST
4147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4149do
4150  IFS=$as_save_IFS
4151  test -z "$as_dir" && as_dir=.
4152    for ac_prog in egrep; do
4153    for ac_exec_ext in '' $ac_executable_extensions; do
4154      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4155      as_fn_executable_p "$ac_path_EGREP" || continue
4156# Check for GNU ac_path_EGREP and select it if it is found.
4157  # Check for GNU $ac_path_EGREP
4158case `"$ac_path_EGREP" --version 2>&1` in
4159*GNU*)
4160  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4161*)
4162  ac_count=0
4163  $as_echo_n 0123456789 >"conftest.in"
4164  while :
4165  do
4166    cat "conftest.in" "conftest.in" >"conftest.tmp"
4167    mv "conftest.tmp" "conftest.in"
4168    cp "conftest.in" "conftest.nl"
4169    $as_echo 'EGREP' >> "conftest.nl"
4170    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4171    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4172    as_fn_arith $ac_count + 1 && ac_count=$as_val
4173    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4174      # Best one so far, save it but keep looking for a better one
4175      ac_cv_path_EGREP="$ac_path_EGREP"
4176      ac_path_EGREP_max=$ac_count
4177    fi
4178    # 10*(2^10) chars as input seems more than enough
4179    test $ac_count -gt 10 && break
4180  done
4181  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4182esac
4183
4184      $ac_path_EGREP_found && break 3
4185    done
4186  done
4187  done
4188IFS=$as_save_IFS
4189  if test -z "$ac_cv_path_EGREP"; then
4190    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4191  fi
4192else
4193  ac_cv_path_EGREP=$EGREP
4194fi
4195
4196   fi
4197fi
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4199$as_echo "$ac_cv_path_EGREP" >&6; }
4200 EGREP="$ac_cv_path_EGREP"
4201
4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4204$as_echo_n "checking for ANSI C header files... " >&6; }
4205if ${ac_cv_header_stdc+:} false; then :
4206  $as_echo_n "(cached) " >&6
4207else
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210#include <stdlib.h>
4211#include <stdarg.h>
4212#include <string.h>
4213#include <float.h>
4214
4215int
4216main ()
4217{
4218
4219  ;
4220  return 0;
4221}
4222_ACEOF
4223if ac_fn_c_try_compile "$LINENO"; then :
4224  ac_cv_header_stdc=yes
4225else
4226  ac_cv_header_stdc=no
4227fi
4228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229
4230if test $ac_cv_header_stdc = yes; then
4231  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h.  */
4234#include <string.h>
4235
4236_ACEOF
4237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238  $EGREP "memchr" >/dev/null 2>&1; then :
4239
4240else
4241  ac_cv_header_stdc=no
4242fi
4243rm -f conftest*
4244
4245fi
4246
4247if test $ac_cv_header_stdc = yes; then
4248  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251#include <stdlib.h>
4252
4253_ACEOF
4254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255  $EGREP "free" >/dev/null 2>&1; then :
4256
4257else
4258  ac_cv_header_stdc=no
4259fi
4260rm -f conftest*
4261
4262fi
4263
4264if test $ac_cv_header_stdc = yes; then
4265  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4266  if test "$cross_compiling" = yes; then :
4267  :
4268else
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#include <ctype.h>
4272#include <stdlib.h>
4273#if ((' ' & 0x0FF) == 0x020)
4274# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4275# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4276#else
4277# define ISLOWER(c) \
4278		   (('a' <= (c) && (c) <= 'i') \
4279		     || ('j' <= (c) && (c) <= 'r') \
4280		     || ('s' <= (c) && (c) <= 'z'))
4281# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4282#endif
4283
4284#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4285int
4286main ()
4287{
4288  int i;
4289  for (i = 0; i < 256; i++)
4290    if (XOR (islower (i), ISLOWER (i))
4291	|| toupper (i) != TOUPPER (i))
4292      return 2;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_run "$LINENO"; then :
4297
4298else
4299  ac_cv_header_stdc=no
4300fi
4301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4302  conftest.$ac_objext conftest.beam conftest.$ac_ext
4303fi
4304
4305fi
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4308$as_echo "$ac_cv_header_stdc" >&6; }
4309if test $ac_cv_header_stdc = yes; then
4310
4311$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4312
4313fi
4314
4315# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4316for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4317		  inttypes.h stdint.h unistd.h
4318do :
4319  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4320ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4321"
4322if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4323  cat >>confdefs.h <<_ACEOF
4324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4325_ACEOF
4326
4327fi
4328
4329done
4330
4331
4332
4333
4334
4335
4336ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4337if test "x$ac_cv_have_decl___clang__" = xyes; then :
4338  CLANGCC="yes"
4339else
4340  CLANGCC="no"
4341fi
4342
4343ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4344if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4345  INTELCC="yes"
4346else
4347  INTELCC="no"
4348fi
4349
4350ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4351if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4352  SUNCC="yes"
4353else
4354  SUNCC="no"
4355fi
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4366	if test -n "$ac_tool_prefix"; then
4367  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370$as_echo_n "checking for $ac_word... " >&6; }
4371if ${ac_cv_path_PKG_CONFIG+:} false; then :
4372  $as_echo_n "(cached) " >&6
4373else
4374  case $PKG_CONFIG in
4375  [\\/]* | ?:[\\/]*)
4376  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4377  ;;
4378  *)
4379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382  IFS=$as_save_IFS
4383  test -z "$as_dir" && as_dir=.
4384    for ac_exec_ext in '' $ac_executable_extensions; do
4385  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388    break 2
4389  fi
4390done
4391  done
4392IFS=$as_save_IFS
4393
4394  ;;
4395esac
4396fi
4397PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4398if test -n "$PKG_CONFIG"; then
4399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4400$as_echo "$PKG_CONFIG" >&6; }
4401else
4402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403$as_echo "no" >&6; }
4404fi
4405
4406
4407fi
4408if test -z "$ac_cv_path_PKG_CONFIG"; then
4409  ac_pt_PKG_CONFIG=$PKG_CONFIG
4410  # Extract the first word of "pkg-config", so it can be a program name with args.
4411set dummy pkg-config; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4413$as_echo_n "checking for $ac_word... " >&6; }
4414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  case $ac_pt_PKG_CONFIG in
4418  [\\/]* | ?:[\\/]*)
4419  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4420  ;;
4421  *)
4422  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425  IFS=$as_save_IFS
4426  test -z "$as_dir" && as_dir=.
4427    for ac_exec_ext in '' $ac_executable_extensions; do
4428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4429    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431    break 2
4432  fi
4433done
4434  done
4435IFS=$as_save_IFS
4436
4437  ;;
4438esac
4439fi
4440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4441if test -n "$ac_pt_PKG_CONFIG"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4443$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449  if test "x$ac_pt_PKG_CONFIG" = x; then
4450    PKG_CONFIG=""
4451  else
4452    case $cross_compiling:$ac_tool_warned in
4453yes:)
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4456ac_tool_warned=yes ;;
4457esac
4458    PKG_CONFIG=$ac_pt_PKG_CONFIG
4459  fi
4460else
4461  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4462fi
4463
4464fi
4465if test -n "$PKG_CONFIG"; then
4466	_pkg_min_version=0.9.0
4467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4468$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4469	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471$as_echo "yes" >&6; }
4472	else
4473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474$as_echo "no" >&6; }
4475		PKG_CONFIG=""
4476	fi
4477fi
4478# Make sure we can run config.sub.
4479$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4480  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4483$as_echo_n "checking build system type... " >&6; }
4484if ${ac_cv_build+:} false; then :
4485  $as_echo_n "(cached) " >&6
4486else
4487  ac_build_alias=$build_alias
4488test "x$ac_build_alias" = x &&
4489  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4490test "x$ac_build_alias" = x &&
4491  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4492ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4493  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4497$as_echo "$ac_cv_build" >&6; }
4498case $ac_cv_build in
4499*-*-*) ;;
4500*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4501esac
4502build=$ac_cv_build
4503ac_save_IFS=$IFS; IFS='-'
4504set x $ac_cv_build
4505shift
4506build_cpu=$1
4507build_vendor=$2
4508shift; shift
4509# Remember, the first character of IFS is used to create $*,
4510# except with old shells:
4511build_os=$*
4512IFS=$ac_save_IFS
4513case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4514
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4517$as_echo_n "checking host system type... " >&6; }
4518if ${ac_cv_host+:} false; then :
4519  $as_echo_n "(cached) " >&6
4520else
4521  if test "x$host_alias" = x; then
4522  ac_cv_host=$ac_cv_build
4523else
4524  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4525    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4526fi
4527
4528fi
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4530$as_echo "$ac_cv_host" >&6; }
4531case $ac_cv_host in
4532*-*-*) ;;
4533*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4534esac
4535host=$ac_cv_host
4536ac_save_IFS=$IFS; IFS='-'
4537set x $ac_cv_host
4538shift
4539host_cpu=$1
4540host_vendor=$2
4541shift; shift
4542# Remember, the first character of IFS is used to create $*,
4543# except with old shells:
4544host_os=$*
4545IFS=$ac_save_IFS
4546case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4547
4548
4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4550$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4551if ${ac_cv_path_SED+:} false; then :
4552  $as_echo_n "(cached) " >&6
4553else
4554            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4555     for ac_i in 1 2 3 4 5 6 7; do
4556       ac_script="$ac_script$as_nl$ac_script"
4557     done
4558     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4559     { ac_script=; unset ac_script;}
4560     if test -z "$SED"; then
4561  ac_path_SED_found=false
4562  # Loop through the user's path and test for each of PROGNAME-LIST
4563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568    for ac_prog in sed gsed; do
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4571      as_fn_executable_p "$ac_path_SED" || continue
4572# Check for GNU ac_path_SED and select it if it is found.
4573  # Check for GNU $ac_path_SED
4574case `"$ac_path_SED" --version 2>&1` in
4575*GNU*)
4576  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4577*)
4578  ac_count=0
4579  $as_echo_n 0123456789 >"conftest.in"
4580  while :
4581  do
4582    cat "conftest.in" "conftest.in" >"conftest.tmp"
4583    mv "conftest.tmp" "conftest.in"
4584    cp "conftest.in" "conftest.nl"
4585    $as_echo '' >> "conftest.nl"
4586    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588    as_fn_arith $ac_count + 1 && ac_count=$as_val
4589    if test $ac_count -gt ${ac_path_SED_max-0}; then
4590      # Best one so far, save it but keep looking for a better one
4591      ac_cv_path_SED="$ac_path_SED"
4592      ac_path_SED_max=$ac_count
4593    fi
4594    # 10*(2^10) chars as input seems more than enough
4595    test $ac_count -gt 10 && break
4596  done
4597  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598esac
4599
4600      $ac_path_SED_found && break 3
4601    done
4602  done
4603  done
4604IFS=$as_save_IFS
4605  if test -z "$ac_cv_path_SED"; then
4606    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4607  fi
4608else
4609  ac_cv_path_SED=$SED
4610fi
4611
4612fi
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4614$as_echo "$ac_cv_path_SED" >&6; }
4615 SED="$ac_cv_path_SED"
4616  rm -f conftest.sed
4617
4618
4619
4620
4621
4622
4623# Check whether --enable-selective-werror was given.
4624if test "${enable_selective_werror+set}" = set; then :
4625  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4626else
4627  SELECTIVE_WERROR=yes
4628fi
4629
4630
4631
4632
4633
4634# -v is too short to test reliably with XORG_TESTSET_CFLAG
4635if test "x$SUNCC" = "xyes"; then
4636    BASE_CFLAGS="-v"
4637else
4638    BASE_CFLAGS=""
4639fi
4640
4641# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655xorg_testset_save_CFLAGS="$CFLAGS"
4656
4657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4662  $as_echo_n "(cached) " >&6
4663else
4664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h.  */
4666int i;
4667_ACEOF
4668if ac_fn_c_try_compile "$LINENO"; then :
4669  xorg_cv_cc_flag_unknown_warning_option=yes
4670else
4671  xorg_cv_cc_flag_unknown_warning_option=no
4672fi
4673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674fi
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4678	CFLAGS="$xorg_testset_save_CFLAGS"
4679fi
4680
4681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4684	fi
4685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4689  $as_echo_n "(cached) " >&6
4690else
4691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h.  */
4693int i;
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696  xorg_cv_cc_flag_unused_command_line_argument=yes
4697else
4698  xorg_cv_cc_flag_unused_command_line_argument=no
4699fi
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701fi
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4705	CFLAGS="$xorg_testset_save_CFLAGS"
4706fi
4707
4708found="no"
4709
4710	if test $found = "no" ; then
4711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4713		fi
4714
4715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4717		fi
4718
4719		CFLAGS="$CFLAGS -Wall"
4720
4721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4722$as_echo_n "checking if $CC supports -Wall... " >&6; }
4723		cacheid=xorg_cv_cc_flag__Wall
4724		if eval \${$cacheid+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729int i;
4730int
4731main ()
4732{
4733
4734  ;
4735  return 0;
4736}
4737_ACEOF
4738if ac_fn_c_try_link "$LINENO"; then :
4739  eval $cacheid=yes
4740else
4741  eval $cacheid=no
4742fi
4743rm -f core conftest.err conftest.$ac_objext \
4744    conftest$ac_exeext conftest.$ac_ext
4745fi
4746
4747
4748		CFLAGS="$xorg_testset_save_CFLAGS"
4749
4750		eval supported=\$$cacheid
4751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4752$as_echo "$supported" >&6; }
4753		if test "$supported" = "yes" ; then
4754			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4755			found="yes"
4756		fi
4757	fi
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773xorg_testset_save_CFLAGS="$CFLAGS"
4774
4775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783/* end confdefs.h.  */
4784int i;
4785_ACEOF
4786if ac_fn_c_try_compile "$LINENO"; then :
4787  xorg_cv_cc_flag_unknown_warning_option=yes
4788else
4789  xorg_cv_cc_flag_unknown_warning_option=no
4790fi
4791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792fi
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4796	CFLAGS="$xorg_testset_save_CFLAGS"
4797fi
4798
4799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4802	fi
4803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810/* end confdefs.h.  */
4811int i;
4812_ACEOF
4813if ac_fn_c_try_compile "$LINENO"; then :
4814  xorg_cv_cc_flag_unused_command_line_argument=yes
4815else
4816  xorg_cv_cc_flag_unused_command_line_argument=no
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4823	CFLAGS="$xorg_testset_save_CFLAGS"
4824fi
4825
4826found="no"
4827
4828	if test $found = "no" ; then
4829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4831		fi
4832
4833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4835		fi
4836
4837		CFLAGS="$CFLAGS -Wpointer-arith"
4838
4839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4840$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4841		cacheid=xorg_cv_cc_flag__Wpointer_arith
4842		if eval \${$cacheid+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847int i;
4848int
4849main ()
4850{
4851
4852  ;
4853  return 0;
4854}
4855_ACEOF
4856if ac_fn_c_try_link "$LINENO"; then :
4857  eval $cacheid=yes
4858else
4859  eval $cacheid=no
4860fi
4861rm -f core conftest.err conftest.$ac_objext \
4862    conftest$ac_exeext conftest.$ac_ext
4863fi
4864
4865
4866		CFLAGS="$xorg_testset_save_CFLAGS"
4867
4868		eval supported=\$$cacheid
4869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4870$as_echo "$supported" >&6; }
4871		if test "$supported" = "yes" ; then
4872			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4873			found="yes"
4874		fi
4875	fi
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891xorg_testset_save_CFLAGS="$CFLAGS"
4892
4893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4898  $as_echo_n "(cached) " >&6
4899else
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902int i;
4903_ACEOF
4904if ac_fn_c_try_compile "$LINENO"; then :
4905  xorg_cv_cc_flag_unknown_warning_option=yes
4906else
4907  xorg_cv_cc_flag_unknown_warning_option=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4914	CFLAGS="$xorg_testset_save_CFLAGS"
4915fi
4916
4917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4920	fi
4921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4925  $as_echo_n "(cached) " >&6
4926else
4927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928/* end confdefs.h.  */
4929int i;
4930_ACEOF
4931if ac_fn_c_try_compile "$LINENO"; then :
4932  xorg_cv_cc_flag_unused_command_line_argument=yes
4933else
4934  xorg_cv_cc_flag_unused_command_line_argument=no
4935fi
4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937fi
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4941	CFLAGS="$xorg_testset_save_CFLAGS"
4942fi
4943
4944found="no"
4945
4946	if test $found = "no" ; then
4947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949		fi
4950
4951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953		fi
4954
4955		CFLAGS="$CFLAGS -Wmissing-declarations"
4956
4957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4958$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4959		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4960		if eval \${$cacheid+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965int i;
4966int
4967main ()
4968{
4969
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974if ac_fn_c_try_link "$LINENO"; then :
4975  eval $cacheid=yes
4976else
4977  eval $cacheid=no
4978fi
4979rm -f core conftest.err conftest.$ac_objext \
4980    conftest$ac_exeext conftest.$ac_ext
4981fi
4982
4983
4984		CFLAGS="$xorg_testset_save_CFLAGS"
4985
4986		eval supported=\$$cacheid
4987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4988$as_echo "$supported" >&6; }
4989		if test "$supported" = "yes" ; then
4990			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4991			found="yes"
4992		fi
4993	fi
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009xorg_testset_save_CFLAGS="$CFLAGS"
5010
5011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5016  $as_echo_n "(cached) " >&6
5017else
5018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019/* end confdefs.h.  */
5020int i;
5021_ACEOF
5022if ac_fn_c_try_compile "$LINENO"; then :
5023  xorg_cv_cc_flag_unknown_warning_option=yes
5024else
5025  xorg_cv_cc_flag_unknown_warning_option=no
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5032	CFLAGS="$xorg_testset_save_CFLAGS"
5033fi
5034
5035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038	fi
5039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046/* end confdefs.h.  */
5047int i;
5048_ACEOF
5049if ac_fn_c_try_compile "$LINENO"; then :
5050  xorg_cv_cc_flag_unused_command_line_argument=yes
5051else
5052  xorg_cv_cc_flag_unused_command_line_argument=no
5053fi
5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5059	CFLAGS="$xorg_testset_save_CFLAGS"
5060fi
5061
5062found="no"
5063
5064	if test $found = "no" ; then
5065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067		fi
5068
5069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071		fi
5072
5073		CFLAGS="$CFLAGS -Wformat=2"
5074
5075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5076$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5077		cacheid=xorg_cv_cc_flag__Wformat_2
5078		if eval \${$cacheid+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083int i;
5084int
5085main ()
5086{
5087
5088  ;
5089  return 0;
5090}
5091_ACEOF
5092if ac_fn_c_try_link "$LINENO"; then :
5093  eval $cacheid=yes
5094else
5095  eval $cacheid=no
5096fi
5097rm -f core conftest.err conftest.$ac_objext \
5098    conftest$ac_exeext conftest.$ac_ext
5099fi
5100
5101
5102		CFLAGS="$xorg_testset_save_CFLAGS"
5103
5104		eval supported=\$$cacheid
5105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5106$as_echo "$supported" >&6; }
5107		if test "$supported" = "yes" ; then
5108			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5109			found="yes"
5110		fi
5111	fi
5112
5113	if test $found = "no" ; then
5114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5116		fi
5117
5118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5120		fi
5121
5122		CFLAGS="$CFLAGS -Wformat"
5123
5124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5125$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5126		cacheid=xorg_cv_cc_flag__Wformat
5127		if eval \${$cacheid+:} false; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h.  */
5132int i;
5133int
5134main ()
5135{
5136
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141if ac_fn_c_try_link "$LINENO"; then :
5142  eval $cacheid=yes
5143else
5144  eval $cacheid=no
5145fi
5146rm -f core conftest.err conftest.$ac_objext \
5147    conftest$ac_exeext conftest.$ac_ext
5148fi
5149
5150
5151		CFLAGS="$xorg_testset_save_CFLAGS"
5152
5153		eval supported=\$$cacheid
5154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5155$as_echo "$supported" >&6; }
5156		if test "$supported" = "yes" ; then
5157			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5158			found="yes"
5159		fi
5160	fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178xorg_testset_save_CFLAGS="$CFLAGS"
5179
5180if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5181	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5183$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5184if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5185  $as_echo_n "(cached) " >&6
5186else
5187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188/* end confdefs.h.  */
5189int i;
5190_ACEOF
5191if ac_fn_c_try_compile "$LINENO"; then :
5192  xorg_cv_cc_flag_unknown_warning_option=yes
5193else
5194  xorg_cv_cc_flag_unknown_warning_option=no
5195fi
5196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5199$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5200	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5201	CFLAGS="$xorg_testset_save_CFLAGS"
5202fi
5203
5204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5205	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5206		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5207	fi
5208	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5210$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5211if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5212  $as_echo_n "(cached) " >&6
5213else
5214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215/* end confdefs.h.  */
5216int i;
5217_ACEOF
5218if ac_fn_c_try_compile "$LINENO"; then :
5219  xorg_cv_cc_flag_unused_command_line_argument=yes
5220else
5221  xorg_cv_cc_flag_unused_command_line_argument=no
5222fi
5223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224fi
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5226$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5227	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5228	CFLAGS="$xorg_testset_save_CFLAGS"
5229fi
5230
5231found="no"
5232
5233	if test $found = "no" ; then
5234		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236		fi
5237
5238		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5239			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240		fi
5241
5242		CFLAGS="$CFLAGS -Wstrict-prototypes"
5243
5244		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5245$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5246		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5247		if eval \${$cacheid+:} false; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252int i;
5253int
5254main ()
5255{
5256
5257  ;
5258  return 0;
5259}
5260_ACEOF
5261if ac_fn_c_try_link "$LINENO"; then :
5262  eval $cacheid=yes
5263else
5264  eval $cacheid=no
5265fi
5266rm -f core conftest.err conftest.$ac_objext \
5267    conftest$ac_exeext conftest.$ac_ext
5268fi
5269
5270
5271		CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273		eval supported=\$$cacheid
5274		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275$as_echo "$supported" >&6; }
5276		if test "$supported" = "yes" ; then
5277			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5278			found="yes"
5279		fi
5280	fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5303  $as_echo_n "(cached) " >&6
5304else
5305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307int i;
5308_ACEOF
5309if ac_fn_c_try_compile "$LINENO"; then :
5310  xorg_cv_cc_flag_unknown_warning_option=yes
5311else
5312  xorg_cv_cc_flag_unknown_warning_option=no
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315fi
5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5317$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5319	CFLAGS="$xorg_testset_save_CFLAGS"
5320fi
5321
5322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5325	fi
5326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5328$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5329if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335_ACEOF
5336if ac_fn_c_try_compile "$LINENO"; then :
5337  xorg_cv_cc_flag_unused_command_line_argument=yes
5338else
5339  xorg_cv_cc_flag_unused_command_line_argument=no
5340fi
5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5344$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5345	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5346	CFLAGS="$xorg_testset_save_CFLAGS"
5347fi
5348
5349found="no"
5350
5351	if test $found = "no" ; then
5352		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5353			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5354		fi
5355
5356		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5357			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5358		fi
5359
5360		CFLAGS="$CFLAGS -Wmissing-prototypes"
5361
5362		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5363$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5364		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5365		if eval \${$cacheid+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370int i;
5371int
5372main ()
5373{
5374
5375  ;
5376  return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_link "$LINENO"; then :
5380  eval $cacheid=yes
5381else
5382  eval $cacheid=no
5383fi
5384rm -f core conftest.err conftest.$ac_objext \
5385    conftest$ac_exeext conftest.$ac_ext
5386fi
5387
5388
5389		CFLAGS="$xorg_testset_save_CFLAGS"
5390
5391		eval supported=\$$cacheid
5392		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5393$as_echo "$supported" >&6; }
5394		if test "$supported" = "yes" ; then
5395			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5396			found="yes"
5397		fi
5398	fi
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414xorg_testset_save_CFLAGS="$CFLAGS"
5415
5416if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5417	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5419$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5420if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425int i;
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"; then :
5428  xorg_cv_cc_flag_unknown_warning_option=yes
5429else
5430  xorg_cv_cc_flag_unknown_warning_option=no
5431fi
5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433fi
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5435$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5436	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5437	CFLAGS="$xorg_testset_save_CFLAGS"
5438fi
5439
5440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5441	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5442		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5443	fi
5444	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5446$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5447if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452int i;
5453_ACEOF
5454if ac_fn_c_try_compile "$LINENO"; then :
5455  xorg_cv_cc_flag_unused_command_line_argument=yes
5456else
5457  xorg_cv_cc_flag_unused_command_line_argument=no
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460fi
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5462$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5463	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5464	CFLAGS="$xorg_testset_save_CFLAGS"
5465fi
5466
5467found="no"
5468
5469	if test $found = "no" ; then
5470		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5471			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5472		fi
5473
5474		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5475			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476		fi
5477
5478		CFLAGS="$CFLAGS -Wnested-externs"
5479
5480		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5481$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5482		cacheid=xorg_cv_cc_flag__Wnested_externs
5483		if eval \${$cacheid+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489int
5490main ()
5491{
5492
5493  ;
5494  return 0;
5495}
5496_ACEOF
5497if ac_fn_c_try_link "$LINENO"; then :
5498  eval $cacheid=yes
5499else
5500  eval $cacheid=no
5501fi
5502rm -f core conftest.err conftest.$ac_objext \
5503    conftest$ac_exeext conftest.$ac_ext
5504fi
5505
5506
5507		CFLAGS="$xorg_testset_save_CFLAGS"
5508
5509		eval supported=\$$cacheid
5510		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5511$as_echo "$supported" >&6; }
5512		if test "$supported" = "yes" ; then
5513			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5514			found="yes"
5515		fi
5516	fi
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532xorg_testset_save_CFLAGS="$CFLAGS"
5533
5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5539  $as_echo_n "(cached) " >&6
5540else
5541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5542/* end confdefs.h.  */
5543int i;
5544_ACEOF
5545if ac_fn_c_try_compile "$LINENO"; then :
5546  xorg_cv_cc_flag_unknown_warning_option=yes
5547else
5548  xorg_cv_cc_flag_unknown_warning_option=no
5549fi
5550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5555	CFLAGS="$xorg_testset_save_CFLAGS"
5556fi
5557
5558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5561	fi
5562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5566  $as_echo_n "(cached) " >&6
5567else
5568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569/* end confdefs.h.  */
5570int i;
5571_ACEOF
5572if ac_fn_c_try_compile "$LINENO"; then :
5573  xorg_cv_cc_flag_unused_command_line_argument=yes
5574else
5575  xorg_cv_cc_flag_unused_command_line_argument=no
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5582	CFLAGS="$xorg_testset_save_CFLAGS"
5583fi
5584
5585found="no"
5586
5587	if test $found = "no" ; then
5588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590		fi
5591
5592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594		fi
5595
5596		CFLAGS="$CFLAGS -Wbad-function-cast"
5597
5598		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5599$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5600		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5601		if eval \${$cacheid+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606int i;
5607int
5608main ()
5609{
5610
5611  ;
5612  return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_link "$LINENO"; then :
5616  eval $cacheid=yes
5617else
5618  eval $cacheid=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext \
5621    conftest$ac_exeext conftest.$ac_ext
5622fi
5623
5624
5625		CFLAGS="$xorg_testset_save_CFLAGS"
5626
5627		eval supported=\$$cacheid
5628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5629$as_echo "$supported" >&6; }
5630		if test "$supported" = "yes" ; then
5631			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5632			found="yes"
5633		fi
5634	fi
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650xorg_testset_save_CFLAGS="$CFLAGS"
5651
5652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5657  $as_echo_n "(cached) " >&6
5658else
5659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660/* end confdefs.h.  */
5661int i;
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"; then :
5664  xorg_cv_cc_flag_unknown_warning_option=yes
5665else
5666  xorg_cv_cc_flag_unknown_warning_option=no
5667fi
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669fi
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5673	CFLAGS="$xorg_testset_save_CFLAGS"
5674fi
5675
5676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5679	fi
5680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5684  $as_echo_n "(cached) " >&6
5685else
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"; then :
5691  xorg_cv_cc_flag_unused_command_line_argument=yes
5692else
5693  xorg_cv_cc_flag_unused_command_line_argument=no
5694fi
5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696fi
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5700	CFLAGS="$xorg_testset_save_CFLAGS"
5701fi
5702
5703found="no"
5704
5705	if test $found = "no" ; then
5706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5708		fi
5709
5710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712		fi
5713
5714		CFLAGS="$CFLAGS -Wold-style-definition"
5715
5716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5717$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5718		cacheid=xorg_cv_cc_flag__Wold_style_definition
5719		if eval \${$cacheid+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724int i;
5725int
5726main ()
5727{
5728
5729  ;
5730  return 0;
5731}
5732_ACEOF
5733if ac_fn_c_try_link "$LINENO"; then :
5734  eval $cacheid=yes
5735else
5736  eval $cacheid=no
5737fi
5738rm -f core conftest.err conftest.$ac_objext \
5739    conftest$ac_exeext conftest.$ac_ext
5740fi
5741
5742
5743		CFLAGS="$xorg_testset_save_CFLAGS"
5744
5745		eval supported=\$$cacheid
5746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5747$as_echo "$supported" >&6; }
5748		if test "$supported" = "yes" ; then
5749			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5750			found="yes"
5751		fi
5752	fi
5753
5754	if test $found = "no" ; then
5755		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5756			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5757		fi
5758
5759		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5760			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5761		fi
5762
5763		CFLAGS="$CFLAGS -fd"
5764
5765		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5766$as_echo_n "checking if $CC supports -fd... " >&6; }
5767		cacheid=xorg_cv_cc_flag__fd
5768		if eval \${$cacheid+:} false; then :
5769  $as_echo_n "(cached) " >&6
5770else
5771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772/* end confdefs.h.  */
5773int i;
5774int
5775main ()
5776{
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_link "$LINENO"; then :
5783  eval $cacheid=yes
5784else
5785  eval $cacheid=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext \
5788    conftest$ac_exeext conftest.$ac_ext
5789fi
5790
5791
5792		CFLAGS="$xorg_testset_save_CFLAGS"
5793
5794		eval supported=\$$cacheid
5795		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5796$as_echo "$supported" >&6; }
5797		if test "$supported" = "yes" ; then
5798			BASE_CFLAGS="$BASE_CFLAGS -fd"
5799			found="yes"
5800		fi
5801	fi
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817xorg_testset_save_CFLAGS="$CFLAGS"
5818
5819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5820	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5822$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5823if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827/* end confdefs.h.  */
5828int i;
5829_ACEOF
5830if ac_fn_c_try_compile "$LINENO"; then :
5831  xorg_cv_cc_flag_unknown_warning_option=yes
5832else
5833  xorg_cv_cc_flag_unknown_warning_option=no
5834fi
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5838$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5839	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5840	CFLAGS="$xorg_testset_save_CFLAGS"
5841fi
5842
5843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5844	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5845		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846	fi
5847	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5849$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5850if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5851  $as_echo_n "(cached) " >&6
5852else
5853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854/* end confdefs.h.  */
5855int i;
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858  xorg_cv_cc_flag_unused_command_line_argument=yes
5859else
5860  xorg_cv_cc_flag_unused_command_line_argument=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5865$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5866	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5867	CFLAGS="$xorg_testset_save_CFLAGS"
5868fi
5869
5870found="no"
5871
5872	if test $found = "no" ; then
5873		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5874			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5875		fi
5876
5877		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5878			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5879		fi
5880
5881		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5882
5883		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5884$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5885		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5886		if eval \${$cacheid+:} false; then :
5887  $as_echo_n "(cached) " >&6
5888else
5889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890/* end confdefs.h.  */
5891int i;
5892int
5893main ()
5894{
5895
5896  ;
5897  return 0;
5898}
5899_ACEOF
5900if ac_fn_c_try_link "$LINENO"; then :
5901  eval $cacheid=yes
5902else
5903  eval $cacheid=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext \
5906    conftest$ac_exeext conftest.$ac_ext
5907fi
5908
5909
5910		CFLAGS="$xorg_testset_save_CFLAGS"
5911
5912		eval supported=\$$cacheid
5913		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5914$as_echo "$supported" >&6; }
5915		if test "$supported" = "yes" ; then
5916			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5917			found="yes"
5918		fi
5919	fi
5920
5921
5922
5923
5924
5925# This chunk adds additional warnings that could catch undesired effects.
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939xorg_testset_save_CFLAGS="$CFLAGS"
5940
5941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5942	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5944$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5945if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h.  */
5950int i;
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"; then :
5953  xorg_cv_cc_flag_unknown_warning_option=yes
5954else
5955  xorg_cv_cc_flag_unknown_warning_option=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5960$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5962	CFLAGS="$xorg_testset_save_CFLAGS"
5963fi
5964
5965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968	fi
5969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5971$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5972if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h.  */
5977int i;
5978_ACEOF
5979if ac_fn_c_try_compile "$LINENO"; then :
5980  xorg_cv_cc_flag_unused_command_line_argument=yes
5981else
5982  xorg_cv_cc_flag_unused_command_line_argument=no
5983fi
5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985fi
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5987$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5989	CFLAGS="$xorg_testset_save_CFLAGS"
5990fi
5991
5992found="no"
5993
5994	if test $found = "no" ; then
5995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5997		fi
5998
5999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001		fi
6002
6003		CFLAGS="$CFLAGS -Wunused"
6004
6005		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6006$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6007		cacheid=xorg_cv_cc_flag__Wunused
6008		if eval \${$cacheid+:} false; then :
6009  $as_echo_n "(cached) " >&6
6010else
6011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h.  */
6013int i;
6014int
6015main ()
6016{
6017
6018  ;
6019  return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_link "$LINENO"; then :
6023  eval $cacheid=yes
6024else
6025  eval $cacheid=no
6026fi
6027rm -f core conftest.err conftest.$ac_objext \
6028    conftest$ac_exeext conftest.$ac_ext
6029fi
6030
6031
6032		CFLAGS="$xorg_testset_save_CFLAGS"
6033
6034		eval supported=\$$cacheid
6035		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6036$as_echo "$supported" >&6; }
6037		if test "$supported" = "yes" ; then
6038			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6039			found="yes"
6040		fi
6041	fi
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6060	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6064  $as_echo_n "(cached) " >&6
6065else
6066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067/* end confdefs.h.  */
6068int i;
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071  xorg_cv_cc_flag_unknown_warning_option=yes
6072else
6073  xorg_cv_cc_flag_unknown_warning_option=no
6074fi
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6078$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6080	CFLAGS="$xorg_testset_save_CFLAGS"
6081fi
6082
6083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6086	fi
6087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6089$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6090if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096_ACEOF
6097if ac_fn_c_try_compile "$LINENO"; then :
6098  xorg_cv_cc_flag_unused_command_line_argument=yes
6099else
6100  xorg_cv_cc_flag_unused_command_line_argument=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6105$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6106	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110found="no"
6111
6112	if test $found = "no" ; then
6113		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6114			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115		fi
6116
6117		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6118			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119		fi
6120
6121		CFLAGS="$CFLAGS -Wuninitialized"
6122
6123		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6124$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6125		cacheid=xorg_cv_cc_flag__Wuninitialized
6126		if eval \${$cacheid+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132int
6133main ()
6134{
6135
6136  ;
6137  return 0;
6138}
6139_ACEOF
6140if ac_fn_c_try_link "$LINENO"; then :
6141  eval $cacheid=yes
6142else
6143  eval $cacheid=no
6144fi
6145rm -f core conftest.err conftest.$ac_objext \
6146    conftest$ac_exeext conftest.$ac_ext
6147fi
6148
6149
6150		CFLAGS="$xorg_testset_save_CFLAGS"
6151
6152		eval supported=\$$cacheid
6153		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6154$as_echo "$supported" >&6; }
6155		if test "$supported" = "yes" ; then
6156			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6157			found="yes"
6158		fi
6159	fi
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175xorg_testset_save_CFLAGS="$CFLAGS"
6176
6177if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6178	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6180$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6181if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h.  */
6186int i;
6187_ACEOF
6188if ac_fn_c_try_compile "$LINENO"; then :
6189  xorg_cv_cc_flag_unknown_warning_option=yes
6190else
6191  xorg_cv_cc_flag_unknown_warning_option=no
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6196$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6197	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6198	CFLAGS="$xorg_testset_save_CFLAGS"
6199fi
6200
6201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6202	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6203		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204	fi
6205	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6207$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6208if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212/* end confdefs.h.  */
6213int i;
6214_ACEOF
6215if ac_fn_c_try_compile "$LINENO"; then :
6216  xorg_cv_cc_flag_unused_command_line_argument=yes
6217else
6218  xorg_cv_cc_flag_unused_command_line_argument=no
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6223$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6225	CFLAGS="$xorg_testset_save_CFLAGS"
6226fi
6227
6228found="no"
6229
6230	if test $found = "no" ; then
6231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6233		fi
6234
6235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237		fi
6238
6239		CFLAGS="$CFLAGS -Wshadow"
6240
6241		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6242$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6243		cacheid=xorg_cv_cc_flag__Wshadow
6244		if eval \${$cacheid+:} false; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250int
6251main ()
6252{
6253
6254  ;
6255  return 0;
6256}
6257_ACEOF
6258if ac_fn_c_try_link "$LINENO"; then :
6259  eval $cacheid=yes
6260else
6261  eval $cacheid=no
6262fi
6263rm -f core conftest.err conftest.$ac_objext \
6264    conftest$ac_exeext conftest.$ac_ext
6265fi
6266
6267
6268		CFLAGS="$xorg_testset_save_CFLAGS"
6269
6270		eval supported=\$$cacheid
6271		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6272$as_echo "$supported" >&6; }
6273		if test "$supported" = "yes" ; then
6274			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6275			found="yes"
6276		fi
6277	fi
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293xorg_testset_save_CFLAGS="$CFLAGS"
6294
6295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6296	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6298$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6299if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h.  */
6304int i;
6305_ACEOF
6306if ac_fn_c_try_compile "$LINENO"; then :
6307  xorg_cv_cc_flag_unknown_warning_option=yes
6308else
6309  xorg_cv_cc_flag_unknown_warning_option=no
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6314$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322	fi
6323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6325$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6326if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6327  $as_echo_n "(cached) " >&6
6328else
6329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330/* end confdefs.h.  */
6331int i;
6332_ACEOF
6333if ac_fn_c_try_compile "$LINENO"; then :
6334  xorg_cv_cc_flag_unused_command_line_argument=yes
6335else
6336  xorg_cv_cc_flag_unused_command_line_argument=no
6337fi
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6341$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6343	CFLAGS="$xorg_testset_save_CFLAGS"
6344fi
6345
6346found="no"
6347
6348	if test $found = "no" ; then
6349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351		fi
6352
6353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355		fi
6356
6357		CFLAGS="$CFLAGS -Wmissing-noreturn"
6358
6359		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6360$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6361		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6362		if eval \${$cacheid+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368int
6369main ()
6370{
6371
6372  ;
6373  return 0;
6374}
6375_ACEOF
6376if ac_fn_c_try_link "$LINENO"; then :
6377  eval $cacheid=yes
6378else
6379  eval $cacheid=no
6380fi
6381rm -f core conftest.err conftest.$ac_objext \
6382    conftest$ac_exeext conftest.$ac_ext
6383fi
6384
6385
6386		CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388		eval supported=\$$cacheid
6389		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390$as_echo "$supported" >&6; }
6391		if test "$supported" = "yes" ; then
6392			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6393			found="yes"
6394		fi
6395	fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411xorg_testset_save_CFLAGS="$CFLAGS"
6412
6413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6414	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6418  $as_echo_n "(cached) " >&6
6419else
6420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h.  */
6422int i;
6423_ACEOF
6424if ac_fn_c_try_compile "$LINENO"; then :
6425  xorg_cv_cc_flag_unknown_warning_option=yes
6426else
6427  xorg_cv_cc_flag_unknown_warning_option=no
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6434	CFLAGS="$xorg_testset_save_CFLAGS"
6435fi
6436
6437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440	fi
6441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6445  $as_echo_n "(cached) " >&6
6446else
6447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448/* end confdefs.h.  */
6449int i;
6450_ACEOF
6451if ac_fn_c_try_compile "$LINENO"; then :
6452  xorg_cv_cc_flag_unused_command_line_argument=yes
6453else
6454  xorg_cv_cc_flag_unused_command_line_argument=no
6455fi
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457fi
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6460	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6461	CFLAGS="$xorg_testset_save_CFLAGS"
6462fi
6463
6464found="no"
6465
6466	if test $found = "no" ; then
6467		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6468			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6469		fi
6470
6471		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6472			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473		fi
6474
6475		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6476
6477		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6478$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6479		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6480		if eval \${$cacheid+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485int i;
6486int
6487main ()
6488{
6489
6490  ;
6491  return 0;
6492}
6493_ACEOF
6494if ac_fn_c_try_link "$LINENO"; then :
6495  eval $cacheid=yes
6496else
6497  eval $cacheid=no
6498fi
6499rm -f core conftest.err conftest.$ac_objext \
6500    conftest$ac_exeext conftest.$ac_ext
6501fi
6502
6503
6504		CFLAGS="$xorg_testset_save_CFLAGS"
6505
6506		eval supported=\$$cacheid
6507		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6508$as_echo "$supported" >&6; }
6509		if test "$supported" = "yes" ; then
6510			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6511			found="yes"
6512		fi
6513	fi
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529xorg_testset_save_CFLAGS="$CFLAGS"
6530
6531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6533	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6534$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6535if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6539/* end confdefs.h.  */
6540int i;
6541_ACEOF
6542if ac_fn_c_try_compile "$LINENO"; then :
6543  xorg_cv_cc_flag_unknown_warning_option=yes
6544else
6545  xorg_cv_cc_flag_unknown_warning_option=no
6546fi
6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6550$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6551	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6552	CFLAGS="$xorg_testset_save_CFLAGS"
6553fi
6554
6555if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6556	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6557		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558	fi
6559	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6561$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6562if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6563  $as_echo_n "(cached) " >&6
6564else
6565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h.  */
6567int i;
6568_ACEOF
6569if ac_fn_c_try_compile "$LINENO"; then :
6570  xorg_cv_cc_flag_unused_command_line_argument=yes
6571else
6572  xorg_cv_cc_flag_unused_command_line_argument=no
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6577$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6578	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6579	CFLAGS="$xorg_testset_save_CFLAGS"
6580fi
6581
6582found="no"
6583
6584	if test $found = "no" ; then
6585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587		fi
6588
6589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591		fi
6592
6593		CFLAGS="$CFLAGS -Wredundant-decls"
6594
6595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6596$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6597		cacheid=xorg_cv_cc_flag__Wredundant_decls
6598		if eval \${$cacheid+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604int
6605main ()
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_link "$LINENO"; then :
6613  eval $cacheid=yes
6614else
6615  eval $cacheid=no
6616fi
6617rm -f core conftest.err conftest.$ac_objext \
6618    conftest$ac_exeext conftest.$ac_ext
6619fi
6620
6621
6622		CFLAGS="$xorg_testset_save_CFLAGS"
6623
6624		eval supported=\$$cacheid
6625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6626$as_echo "$supported" >&6; }
6627		if test "$supported" = "yes" ; then
6628			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6629			found="yes"
6630		fi
6631	fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647xorg_testset_save_CFLAGS="$CFLAGS"
6648
6649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6654  $as_echo_n "(cached) " >&6
6655else
6656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657/* end confdefs.h.  */
6658int i;
6659_ACEOF
6660if ac_fn_c_try_compile "$LINENO"; then :
6661  xorg_cv_cc_flag_unknown_warning_option=yes
6662else
6663  xorg_cv_cc_flag_unknown_warning_option=no
6664fi
6665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666fi
6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670	CFLAGS="$xorg_testset_save_CFLAGS"
6671fi
6672
6673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676	fi
6677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685int i;
6686_ACEOF
6687if ac_fn_c_try_compile "$LINENO"; then :
6688  xorg_cv_cc_flag_unused_command_line_argument=yes
6689else
6690  xorg_cv_cc_flag_unused_command_line_argument=no
6691fi
6692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693fi
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6697	CFLAGS="$xorg_testset_save_CFLAGS"
6698fi
6699
6700found="no"
6701
6702	if test $found = "no" ; then
6703		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6705		fi
6706
6707		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709		fi
6710
6711		CFLAGS="$CFLAGS -Wlogical-op"
6712
6713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6714$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6715		cacheid=xorg_cv_cc_flag__Wlogical_op
6716		if eval \${$cacheid+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722int
6723main ()
6724{
6725
6726  ;
6727  return 0;
6728}
6729_ACEOF
6730if ac_fn_c_try_link "$LINENO"; then :
6731  eval $cacheid=yes
6732else
6733  eval $cacheid=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext \
6736    conftest$ac_exeext conftest.$ac_ext
6737fi
6738
6739
6740		CFLAGS="$xorg_testset_save_CFLAGS"
6741
6742		eval supported=\$$cacheid
6743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6744$as_echo "$supported" >&6; }
6745		if test "$supported" = "yes" ; then
6746			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6747			found="yes"
6748		fi
6749	fi
6750
6751
6752
6753# These are currently disabled because they are noisy.  They will be enabled
6754# in the future once the codebase is sufficiently modernized to silence
6755# them.  For now, I don't want them to drown out the other warnings.
6756# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6757# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6758# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6759
6760# Turn some warnings into errors, so we don't accidently get successful builds
6761# when there are problems that should be fixed.
6762
6763if test "x$SELECTIVE_WERROR" = "xyes" ; then
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777xorg_testset_save_CFLAGS="$CFLAGS"
6778
6779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6784  $as_echo_n "(cached) " >&6
6785else
6786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787/* end confdefs.h.  */
6788int i;
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"; then :
6791  xorg_cv_cc_flag_unknown_warning_option=yes
6792else
6793  xorg_cv_cc_flag_unknown_warning_option=no
6794fi
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796fi
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6800	CFLAGS="$xorg_testset_save_CFLAGS"
6801fi
6802
6803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806	fi
6807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815int i;
6816_ACEOF
6817if ac_fn_c_try_compile "$LINENO"; then :
6818  xorg_cv_cc_flag_unused_command_line_argument=yes
6819else
6820  xorg_cv_cc_flag_unused_command_line_argument=no
6821fi
6822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823fi
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6827	CFLAGS="$xorg_testset_save_CFLAGS"
6828fi
6829
6830found="no"
6831
6832	if test $found = "no" ; then
6833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6835		fi
6836
6837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839		fi
6840
6841		CFLAGS="$CFLAGS -Werror=implicit"
6842
6843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6844$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6845		cacheid=xorg_cv_cc_flag__Werror_implicit
6846		if eval \${$cacheid+:} false; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852int
6853main ()
6854{
6855
6856  ;
6857  return 0;
6858}
6859_ACEOF
6860if ac_fn_c_try_link "$LINENO"; then :
6861  eval $cacheid=yes
6862else
6863  eval $cacheid=no
6864fi
6865rm -f core conftest.err conftest.$ac_objext \
6866    conftest$ac_exeext conftest.$ac_ext
6867fi
6868
6869
6870		CFLAGS="$xorg_testset_save_CFLAGS"
6871
6872		eval supported=\$$cacheid
6873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6874$as_echo "$supported" >&6; }
6875		if test "$supported" = "yes" ; then
6876			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6877			found="yes"
6878		fi
6879	fi
6880
6881	if test $found = "no" ; then
6882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6884		fi
6885
6886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888		fi
6889
6890		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6891
6892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6893$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6894		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6895		if eval \${$cacheid+:} false; then :
6896  $as_echo_n "(cached) " >&6
6897else
6898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h.  */
6900int i;
6901int
6902main ()
6903{
6904
6905  ;
6906  return 0;
6907}
6908_ACEOF
6909if ac_fn_c_try_link "$LINENO"; then :
6910  eval $cacheid=yes
6911else
6912  eval $cacheid=no
6913fi
6914rm -f core conftest.err conftest.$ac_objext \
6915    conftest$ac_exeext conftest.$ac_ext
6916fi
6917
6918
6919		CFLAGS="$xorg_testset_save_CFLAGS"
6920
6921		eval supported=\$$cacheid
6922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6923$as_echo "$supported" >&6; }
6924		if test "$supported" = "yes" ; then
6925			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6926			found="yes"
6927		fi
6928	fi
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944xorg_testset_save_CFLAGS="$CFLAGS"
6945
6946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6951  $as_echo_n "(cached) " >&6
6952else
6953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954/* end confdefs.h.  */
6955int i;
6956_ACEOF
6957if ac_fn_c_try_compile "$LINENO"; then :
6958  xorg_cv_cc_flag_unknown_warning_option=yes
6959else
6960  xorg_cv_cc_flag_unknown_warning_option=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963fi
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6967	CFLAGS="$xorg_testset_save_CFLAGS"
6968fi
6969
6970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	fi
6974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981/* end confdefs.h.  */
6982int i;
6983_ACEOF
6984if ac_fn_c_try_compile "$LINENO"; then :
6985  xorg_cv_cc_flag_unused_command_line_argument=yes
6986else
6987  xorg_cv_cc_flag_unused_command_line_argument=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6994	CFLAGS="$xorg_testset_save_CFLAGS"
6995fi
6996
6997found="no"
6998
6999	if test $found = "no" ; then
7000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002		fi
7003
7004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7006		fi
7007
7008		CFLAGS="$CFLAGS -Werror=nonnull"
7009
7010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7011$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7012		cacheid=xorg_cv_cc_flag__Werror_nonnull
7013		if eval \${$cacheid+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018int i;
7019int
7020main ()
7021{
7022
7023  ;
7024  return 0;
7025}
7026_ACEOF
7027if ac_fn_c_try_link "$LINENO"; then :
7028  eval $cacheid=yes
7029else
7030  eval $cacheid=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext \
7033    conftest$ac_exeext conftest.$ac_ext
7034fi
7035
7036
7037		CFLAGS="$xorg_testset_save_CFLAGS"
7038
7039		eval supported=\$$cacheid
7040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7041$as_echo "$supported" >&6; }
7042		if test "$supported" = "yes" ; then
7043			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7044			found="yes"
7045		fi
7046	fi
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062xorg_testset_save_CFLAGS="$CFLAGS"
7063
7064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7069  $as_echo_n "(cached) " >&6
7070else
7071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h.  */
7073int i;
7074_ACEOF
7075if ac_fn_c_try_compile "$LINENO"; then :
7076  xorg_cv_cc_flag_unknown_warning_option=yes
7077else
7078  xorg_cv_cc_flag_unknown_warning_option=no
7079fi
7080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081fi
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085	CFLAGS="$xorg_testset_save_CFLAGS"
7086fi
7087
7088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091	fi
7092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100int i;
7101_ACEOF
7102if ac_fn_c_try_compile "$LINENO"; then :
7103  xorg_cv_cc_flag_unused_command_line_argument=yes
7104else
7105  xorg_cv_cc_flag_unused_command_line_argument=no
7106fi
7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7108fi
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7112	CFLAGS="$xorg_testset_save_CFLAGS"
7113fi
7114
7115found="no"
7116
7117	if test $found = "no" ; then
7118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7120		fi
7121
7122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7124		fi
7125
7126		CFLAGS="$CFLAGS -Werror=init-self"
7127
7128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7129$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7130		cacheid=xorg_cv_cc_flag__Werror_init_self
7131		if eval \${$cacheid+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137int
7138main ()
7139{
7140
7141  ;
7142  return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_link "$LINENO"; then :
7146  eval $cacheid=yes
7147else
7148  eval $cacheid=no
7149fi
7150rm -f core conftest.err conftest.$ac_objext \
7151    conftest$ac_exeext conftest.$ac_ext
7152fi
7153
7154
7155		CFLAGS="$xorg_testset_save_CFLAGS"
7156
7157		eval supported=\$$cacheid
7158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7159$as_echo "$supported" >&6; }
7160		if test "$supported" = "yes" ; then
7161			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7162			found="yes"
7163		fi
7164	fi
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180xorg_testset_save_CFLAGS="$CFLAGS"
7181
7182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7187  $as_echo_n "(cached) " >&6
7188else
7189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190/* end confdefs.h.  */
7191int i;
7192_ACEOF
7193if ac_fn_c_try_compile "$LINENO"; then :
7194  xorg_cv_cc_flag_unknown_warning_option=yes
7195else
7196  xorg_cv_cc_flag_unknown_warning_option=no
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199fi
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7203	CFLAGS="$xorg_testset_save_CFLAGS"
7204fi
7205
7206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209	fi
7210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217/* end confdefs.h.  */
7218int i;
7219_ACEOF
7220if ac_fn_c_try_compile "$LINENO"; then :
7221  xorg_cv_cc_flag_unused_command_line_argument=yes
7222else
7223  xorg_cv_cc_flag_unused_command_line_argument=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226fi
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7230	CFLAGS="$xorg_testset_save_CFLAGS"
7231fi
7232
7233found="no"
7234
7235	if test $found = "no" ; then
7236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7238		fi
7239
7240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242		fi
7243
7244		CFLAGS="$CFLAGS -Werror=main"
7245
7246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7247$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7248		cacheid=xorg_cv_cc_flag__Werror_main
7249		if eval \${$cacheid+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254int i;
7255int
7256main ()
7257{
7258
7259  ;
7260  return 0;
7261}
7262_ACEOF
7263if ac_fn_c_try_link "$LINENO"; then :
7264  eval $cacheid=yes
7265else
7266  eval $cacheid=no
7267fi
7268rm -f core conftest.err conftest.$ac_objext \
7269    conftest$ac_exeext conftest.$ac_ext
7270fi
7271
7272
7273		CFLAGS="$xorg_testset_save_CFLAGS"
7274
7275		eval supported=\$$cacheid
7276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7277$as_echo "$supported" >&6; }
7278		if test "$supported" = "yes" ; then
7279			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7280			found="yes"
7281		fi
7282	fi
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298xorg_testset_save_CFLAGS="$CFLAGS"
7299
7300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7305  $as_echo_n "(cached) " >&6
7306else
7307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308/* end confdefs.h.  */
7309int i;
7310_ACEOF
7311if ac_fn_c_try_compile "$LINENO"; then :
7312  xorg_cv_cc_flag_unknown_warning_option=yes
7313else
7314  xorg_cv_cc_flag_unknown_warning_option=no
7315fi
7316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317fi
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321	CFLAGS="$xorg_testset_save_CFLAGS"
7322fi
7323
7324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327	fi
7328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7332  $as_echo_n "(cached) " >&6
7333else
7334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335/* end confdefs.h.  */
7336int i;
7337_ACEOF
7338if ac_fn_c_try_compile "$LINENO"; then :
7339  xorg_cv_cc_flag_unused_command_line_argument=yes
7340else
7341  xorg_cv_cc_flag_unused_command_line_argument=no
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7348	CFLAGS="$xorg_testset_save_CFLAGS"
7349fi
7350
7351found="no"
7352
7353	if test $found = "no" ; then
7354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356		fi
7357
7358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360		fi
7361
7362		CFLAGS="$CFLAGS -Werror=missing-braces"
7363
7364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7365$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7366		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7367		if eval \${$cacheid+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373int
7374main ()
7375{
7376
7377  ;
7378  return 0;
7379}
7380_ACEOF
7381if ac_fn_c_try_link "$LINENO"; then :
7382  eval $cacheid=yes
7383else
7384  eval $cacheid=no
7385fi
7386rm -f core conftest.err conftest.$ac_objext \
7387    conftest$ac_exeext conftest.$ac_ext
7388fi
7389
7390
7391		CFLAGS="$xorg_testset_save_CFLAGS"
7392
7393		eval supported=\$$cacheid
7394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7395$as_echo "$supported" >&6; }
7396		if test "$supported" = "yes" ; then
7397			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7398			found="yes"
7399		fi
7400	fi
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416xorg_testset_save_CFLAGS="$CFLAGS"
7417
7418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7420	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426/* end confdefs.h.  */
7427int i;
7428_ACEOF
7429if ac_fn_c_try_compile "$LINENO"; then :
7430  xorg_cv_cc_flag_unknown_warning_option=yes
7431else
7432  xorg_cv_cc_flag_unknown_warning_option=no
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435fi
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439	CFLAGS="$xorg_testset_save_CFLAGS"
7440fi
7441
7442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445	fi
7446	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7450  $as_echo_n "(cached) " >&6
7451else
7452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455_ACEOF
7456if ac_fn_c_try_compile "$LINENO"; then :
7457  xorg_cv_cc_flag_unused_command_line_argument=yes
7458else
7459  xorg_cv_cc_flag_unused_command_line_argument=no
7460fi
7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462fi
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7465	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7466	CFLAGS="$xorg_testset_save_CFLAGS"
7467fi
7468
7469found="no"
7470
7471	if test $found = "no" ; then
7472		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7473			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7474		fi
7475
7476		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7477			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478		fi
7479
7480		CFLAGS="$CFLAGS -Werror=sequence-point"
7481
7482		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7483$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7484		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7485		if eval \${$cacheid+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491int
7492main ()
7493{
7494
7495  ;
7496  return 0;
7497}
7498_ACEOF
7499if ac_fn_c_try_link "$LINENO"; then :
7500  eval $cacheid=yes
7501else
7502  eval $cacheid=no
7503fi
7504rm -f core conftest.err conftest.$ac_objext \
7505    conftest$ac_exeext conftest.$ac_ext
7506fi
7507
7508
7509		CFLAGS="$xorg_testset_save_CFLAGS"
7510
7511		eval supported=\$$cacheid
7512		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7513$as_echo "$supported" >&6; }
7514		if test "$supported" = "yes" ; then
7515			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7516			found="yes"
7517		fi
7518	fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534xorg_testset_save_CFLAGS="$CFLAGS"
7535
7536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7541  $as_echo_n "(cached) " >&6
7542else
7543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544/* end confdefs.h.  */
7545int i;
7546_ACEOF
7547if ac_fn_c_try_compile "$LINENO"; then :
7548  xorg_cv_cc_flag_unknown_warning_option=yes
7549else
7550  xorg_cv_cc_flag_unknown_warning_option=no
7551fi
7552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7553fi
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7557	CFLAGS="$xorg_testset_save_CFLAGS"
7558fi
7559
7560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563	fi
7564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7568  $as_echo_n "(cached) " >&6
7569else
7570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h.  */
7572int i;
7573_ACEOF
7574if ac_fn_c_try_compile "$LINENO"; then :
7575  xorg_cv_cc_flag_unused_command_line_argument=yes
7576else
7577  xorg_cv_cc_flag_unused_command_line_argument=no
7578fi
7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580fi
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7584	CFLAGS="$xorg_testset_save_CFLAGS"
7585fi
7586
7587found="no"
7588
7589	if test $found = "no" ; then
7590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592		fi
7593
7594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596		fi
7597
7598		CFLAGS="$CFLAGS -Werror=return-type"
7599
7600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7601$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7602		cacheid=xorg_cv_cc_flag__Werror_return_type
7603		if eval \${$cacheid+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609int
7610main ()
7611{
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617if ac_fn_c_try_link "$LINENO"; then :
7618  eval $cacheid=yes
7619else
7620  eval $cacheid=no
7621fi
7622rm -f core conftest.err conftest.$ac_objext \
7623    conftest$ac_exeext conftest.$ac_ext
7624fi
7625
7626
7627		CFLAGS="$xorg_testset_save_CFLAGS"
7628
7629		eval supported=\$$cacheid
7630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7631$as_echo "$supported" >&6; }
7632		if test "$supported" = "yes" ; then
7633			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7634			found="yes"
7635		fi
7636	fi
7637
7638	if test $found = "no" ; then
7639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7641		fi
7642
7643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645		fi
7646
7647		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7648
7649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7650$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7651		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7652		if eval \${$cacheid+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658int
7659main ()
7660{
7661
7662  ;
7663  return 0;
7664}
7665_ACEOF
7666if ac_fn_c_try_link "$LINENO"; then :
7667  eval $cacheid=yes
7668else
7669  eval $cacheid=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext \
7672    conftest$ac_exeext conftest.$ac_ext
7673fi
7674
7675
7676		CFLAGS="$xorg_testset_save_CFLAGS"
7677
7678		eval supported=\$$cacheid
7679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7680$as_echo "$supported" >&6; }
7681		if test "$supported" = "yes" ; then
7682			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7683			found="yes"
7684		fi
7685	fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701xorg_testset_save_CFLAGS="$CFLAGS"
7702
7703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7704	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7706$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7707if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h.  */
7712int i;
7713_ACEOF
7714if ac_fn_c_try_compile "$LINENO"; then :
7715  xorg_cv_cc_flag_unknown_warning_option=yes
7716else
7717  xorg_cv_cc_flag_unknown_warning_option=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720fi
7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7722$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7723	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7724	CFLAGS="$xorg_testset_save_CFLAGS"
7725fi
7726
7727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7728	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730	fi
7731	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7733$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7734if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7735  $as_echo_n "(cached) " >&6
7736else
7737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h.  */
7739int i;
7740_ACEOF
7741if ac_fn_c_try_compile "$LINENO"; then :
7742  xorg_cv_cc_flag_unused_command_line_argument=yes
7743else
7744  xorg_cv_cc_flag_unused_command_line_argument=no
7745fi
7746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747fi
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7749$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7750	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7751	CFLAGS="$xorg_testset_save_CFLAGS"
7752fi
7753
7754found="no"
7755
7756	if test $found = "no" ; then
7757		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7758			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7759		fi
7760
7761		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7762			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7763		fi
7764
7765		CFLAGS="$CFLAGS -Werror=trigraphs"
7766
7767		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7768$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7769		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7770		if eval \${$cacheid+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776int
7777main ()
7778{
7779
7780  ;
7781  return 0;
7782}
7783_ACEOF
7784if ac_fn_c_try_link "$LINENO"; then :
7785  eval $cacheid=yes
7786else
7787  eval $cacheid=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext \
7790    conftest$ac_exeext conftest.$ac_ext
7791fi
7792
7793
7794		CFLAGS="$xorg_testset_save_CFLAGS"
7795
7796		eval supported=\$$cacheid
7797		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7798$as_echo "$supported" >&6; }
7799		if test "$supported" = "yes" ; then
7800			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7801			found="yes"
7802		fi
7803	fi
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819xorg_testset_save_CFLAGS="$CFLAGS"
7820
7821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7822	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7824$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7825if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7826  $as_echo_n "(cached) " >&6
7827else
7828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h.  */
7830int i;
7831_ACEOF
7832if ac_fn_c_try_compile "$LINENO"; then :
7833  xorg_cv_cc_flag_unknown_warning_option=yes
7834else
7835  xorg_cv_cc_flag_unknown_warning_option=no
7836fi
7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7840$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7841	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7842	CFLAGS="$xorg_testset_save_CFLAGS"
7843fi
7844
7845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7846	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7847		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848	fi
7849	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7851$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7852if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7853  $as_echo_n "(cached) " >&6
7854else
7855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857int i;
7858_ACEOF
7859if ac_fn_c_try_compile "$LINENO"; then :
7860  xorg_cv_cc_flag_unused_command_line_argument=yes
7861else
7862  xorg_cv_cc_flag_unused_command_line_argument=no
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865fi
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7867$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7868	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7869	CFLAGS="$xorg_testset_save_CFLAGS"
7870fi
7871
7872found="no"
7873
7874	if test $found = "no" ; then
7875		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877		fi
7878
7879		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881		fi
7882
7883		CFLAGS="$CFLAGS -Werror=array-bounds"
7884
7885		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7886$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7887		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7888		if eval \${$cacheid+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893int i;
7894int
7895main ()
7896{
7897
7898  ;
7899  return 0;
7900}
7901_ACEOF
7902if ac_fn_c_try_link "$LINENO"; then :
7903  eval $cacheid=yes
7904else
7905  eval $cacheid=no
7906fi
7907rm -f core conftest.err conftest.$ac_objext \
7908    conftest$ac_exeext conftest.$ac_ext
7909fi
7910
7911
7912		CFLAGS="$xorg_testset_save_CFLAGS"
7913
7914		eval supported=\$$cacheid
7915		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7916$as_echo "$supported" >&6; }
7917		if test "$supported" = "yes" ; then
7918			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7919			found="yes"
7920		fi
7921	fi
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937xorg_testset_save_CFLAGS="$CFLAGS"
7938
7939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7940	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7942$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7943if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7944  $as_echo_n "(cached) " >&6
7945else
7946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"; then :
7951  xorg_cv_cc_flag_unknown_warning_option=yes
7952else
7953  xorg_cv_cc_flag_unknown_warning_option=no
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956fi
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7958$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7960	CFLAGS="$xorg_testset_save_CFLAGS"
7961fi
7962
7963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7966	fi
7967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7969$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7970if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7971  $as_echo_n "(cached) " >&6
7972else
7973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974/* end confdefs.h.  */
7975int i;
7976_ACEOF
7977if ac_fn_c_try_compile "$LINENO"; then :
7978  xorg_cv_cc_flag_unused_command_line_argument=yes
7979else
7980  xorg_cv_cc_flag_unused_command_line_argument=no
7981fi
7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7985$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7987	CFLAGS="$xorg_testset_save_CFLAGS"
7988fi
7989
7990found="no"
7991
7992	if test $found = "no" ; then
7993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7995		fi
7996
7997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999		fi
8000
8001		CFLAGS="$CFLAGS -Werror=write-strings"
8002
8003		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8004$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8005		cacheid=xorg_cv_cc_flag__Werror_write_strings
8006		if eval \${$cacheid+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011int i;
8012int
8013main ()
8014{
8015
8016  ;
8017  return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_link "$LINENO"; then :
8021  eval $cacheid=yes
8022else
8023  eval $cacheid=no
8024fi
8025rm -f core conftest.err conftest.$ac_objext \
8026    conftest$ac_exeext conftest.$ac_ext
8027fi
8028
8029
8030		CFLAGS="$xorg_testset_save_CFLAGS"
8031
8032		eval supported=\$$cacheid
8033		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8034$as_echo "$supported" >&6; }
8035		if test "$supported" = "yes" ; then
8036			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8037			found="yes"
8038		fi
8039	fi
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055xorg_testset_save_CFLAGS="$CFLAGS"
8056
8057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8060$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8061if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8062  $as_echo_n "(cached) " >&6
8063else
8064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h.  */
8066int i;
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
8069  xorg_cv_cc_flag_unknown_warning_option=yes
8070else
8071  xorg_cv_cc_flag_unknown_warning_option=no
8072fi
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074fi
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8076$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8077	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8078	CFLAGS="$xorg_testset_save_CFLAGS"
8079fi
8080
8081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8082	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8083		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084	fi
8085	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8087$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8088if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8089  $as_echo_n "(cached) " >&6
8090else
8091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092/* end confdefs.h.  */
8093int i;
8094_ACEOF
8095if ac_fn_c_try_compile "$LINENO"; then :
8096  xorg_cv_cc_flag_unused_command_line_argument=yes
8097else
8098  xorg_cv_cc_flag_unused_command_line_argument=no
8099fi
8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8103$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8104	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8105	CFLAGS="$xorg_testset_save_CFLAGS"
8106fi
8107
8108found="no"
8109
8110	if test $found = "no" ; then
8111		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113		fi
8114
8115		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8116			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117		fi
8118
8119		CFLAGS="$CFLAGS -Werror=address"
8120
8121		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8122$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8123		cacheid=xorg_cv_cc_flag__Werror_address
8124		if eval \${$cacheid+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129int i;
8130int
8131main ()
8132{
8133
8134  ;
8135  return 0;
8136}
8137_ACEOF
8138if ac_fn_c_try_link "$LINENO"; then :
8139  eval $cacheid=yes
8140else
8141  eval $cacheid=no
8142fi
8143rm -f core conftest.err conftest.$ac_objext \
8144    conftest$ac_exeext conftest.$ac_ext
8145fi
8146
8147
8148		CFLAGS="$xorg_testset_save_CFLAGS"
8149
8150		eval supported=\$$cacheid
8151		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8152$as_echo "$supported" >&6; }
8153		if test "$supported" = "yes" ; then
8154			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8155			found="yes"
8156		fi
8157	fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173xorg_testset_save_CFLAGS="$CFLAGS"
8174
8175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8176	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8178$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8179if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8180  $as_echo_n "(cached) " >&6
8181else
8182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184int i;
8185_ACEOF
8186if ac_fn_c_try_compile "$LINENO"; then :
8187  xorg_cv_cc_flag_unknown_warning_option=yes
8188else
8189  xorg_cv_cc_flag_unknown_warning_option=no
8190fi
8191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8194$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8195	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8196	CFLAGS="$xorg_testset_save_CFLAGS"
8197fi
8198
8199if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8200	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8201		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8202	fi
8203	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8205$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8206if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8207  $as_echo_n "(cached) " >&6
8208else
8209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210/* end confdefs.h.  */
8211int i;
8212_ACEOF
8213if ac_fn_c_try_compile "$LINENO"; then :
8214  xorg_cv_cc_flag_unused_command_line_argument=yes
8215else
8216  xorg_cv_cc_flag_unused_command_line_argument=no
8217fi
8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219fi
8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8221$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8222	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8223	CFLAGS="$xorg_testset_save_CFLAGS"
8224fi
8225
8226found="no"
8227
8228	if test $found = "no" ; then
8229		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8230			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8231		fi
8232
8233		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8234			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235		fi
8236
8237		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8238
8239		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8240$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8241		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8242		if eval \${$cacheid+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248int
8249main ()
8250{
8251
8252  ;
8253  return 0;
8254}
8255_ACEOF
8256if ac_fn_c_try_link "$LINENO"; then :
8257  eval $cacheid=yes
8258else
8259  eval $cacheid=no
8260fi
8261rm -f core conftest.err conftest.$ac_objext \
8262    conftest$ac_exeext conftest.$ac_ext
8263fi
8264
8265
8266		CFLAGS="$xorg_testset_save_CFLAGS"
8267
8268		eval supported=\$$cacheid
8269		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8270$as_echo "$supported" >&6; }
8271		if test "$supported" = "yes" ; then
8272			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8273			found="yes"
8274		fi
8275	fi
8276
8277	if test $found = "no" ; then
8278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8280		fi
8281
8282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284		fi
8285
8286		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8287
8288		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8289$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8290		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8291		if eval \${$cacheid+:} false; then :
8292  $as_echo_n "(cached) " >&6
8293else
8294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296int i;
8297int
8298main ()
8299{
8300
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_link "$LINENO"; then :
8306  eval $cacheid=yes
8307else
8308  eval $cacheid=no
8309fi
8310rm -f core conftest.err conftest.$ac_objext \
8311    conftest$ac_exeext conftest.$ac_ext
8312fi
8313
8314
8315		CFLAGS="$xorg_testset_save_CFLAGS"
8316
8317		eval supported=\$$cacheid
8318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8319$as_echo "$supported" >&6; }
8320		if test "$supported" = "yes" ; then
8321			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8322			found="yes"
8323		fi
8324	fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340xorg_testset_save_CFLAGS="$CFLAGS"
8341
8342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8343	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8347  $as_echo_n "(cached) " >&6
8348else
8349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351int i;
8352_ACEOF
8353if ac_fn_c_try_compile "$LINENO"; then :
8354  xorg_cv_cc_flag_unknown_warning_option=yes
8355else
8356  xorg_cv_cc_flag_unknown_warning_option=no
8357fi
8358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8362	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8363	CFLAGS="$xorg_testset_save_CFLAGS"
8364fi
8365
8366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8367	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8368		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369	fi
8370	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8374  $as_echo_n "(cached) " >&6
8375else
8376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h.  */
8378int i;
8379_ACEOF
8380if ac_fn_c_try_compile "$LINENO"; then :
8381  xorg_cv_cc_flag_unused_command_line_argument=yes
8382else
8383  xorg_cv_cc_flag_unused_command_line_argument=no
8384fi
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8389	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8390	CFLAGS="$xorg_testset_save_CFLAGS"
8391fi
8392
8393found="no"
8394
8395	if test $found = "no" ; then
8396		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8397			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8398		fi
8399
8400		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8401			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402		fi
8403
8404		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8405
8406		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8407$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8408		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8409		if eval \${$cacheid+:} false; then :
8410  $as_echo_n "(cached) " >&6
8411else
8412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h.  */
8414int i;
8415int
8416main ()
8417{
8418
8419  ;
8420  return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_link "$LINENO"; then :
8424  eval $cacheid=yes
8425else
8426  eval $cacheid=no
8427fi
8428rm -f core conftest.err conftest.$ac_objext \
8429    conftest$ac_exeext conftest.$ac_ext
8430fi
8431
8432
8433		CFLAGS="$xorg_testset_save_CFLAGS"
8434
8435		eval supported=\$$cacheid
8436		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8437$as_echo "$supported" >&6; }
8438		if test "$supported" = "yes" ; then
8439			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8440			found="yes"
8441		fi
8442	fi
8443
8444 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8445else
8446{ $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
8447$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;}
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461xorg_testset_save_CFLAGS="$CFLAGS"
8462
8463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h.  */
8472int i;
8473_ACEOF
8474if ac_fn_c_try_compile "$LINENO"; then :
8475  xorg_cv_cc_flag_unknown_warning_option=yes
8476else
8477  xorg_cv_cc_flag_unknown_warning_option=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8480fi
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8484	CFLAGS="$xorg_testset_save_CFLAGS"
8485fi
8486
8487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8490	fi
8491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8495  $as_echo_n "(cached) " >&6
8496else
8497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h.  */
8499int i;
8500_ACEOF
8501if ac_fn_c_try_compile "$LINENO"; then :
8502  xorg_cv_cc_flag_unused_command_line_argument=yes
8503else
8504  xorg_cv_cc_flag_unused_command_line_argument=no
8505fi
8506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507fi
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8511	CFLAGS="$xorg_testset_save_CFLAGS"
8512fi
8513
8514found="no"
8515
8516	if test $found = "no" ; then
8517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8519		fi
8520
8521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523		fi
8524
8525		CFLAGS="$CFLAGS -Wimplicit"
8526
8527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8528$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8529		cacheid=xorg_cv_cc_flag__Wimplicit
8530		if eval \${$cacheid+:} false; then :
8531  $as_echo_n "(cached) " >&6
8532else
8533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534/* end confdefs.h.  */
8535int i;
8536int
8537main ()
8538{
8539
8540  ;
8541  return 0;
8542}
8543_ACEOF
8544if ac_fn_c_try_link "$LINENO"; then :
8545  eval $cacheid=yes
8546else
8547  eval $cacheid=no
8548fi
8549rm -f core conftest.err conftest.$ac_objext \
8550    conftest$ac_exeext conftest.$ac_ext
8551fi
8552
8553
8554		CFLAGS="$xorg_testset_save_CFLAGS"
8555
8556		eval supported=\$$cacheid
8557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8558$as_echo "$supported" >&6; }
8559		if test "$supported" = "yes" ; then
8560			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8561			found="yes"
8562		fi
8563	fi
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579xorg_testset_save_CFLAGS="$CFLAGS"
8580
8581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8586  $as_echo_n "(cached) " >&6
8587else
8588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8589/* end confdefs.h.  */
8590int i;
8591_ACEOF
8592if ac_fn_c_try_compile "$LINENO"; then :
8593  xorg_cv_cc_flag_unknown_warning_option=yes
8594else
8595  xorg_cv_cc_flag_unknown_warning_option=no
8596fi
8597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598fi
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8602	CFLAGS="$xorg_testset_save_CFLAGS"
8603fi
8604
8605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608	fi
8609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617int i;
8618_ACEOF
8619if ac_fn_c_try_compile "$LINENO"; then :
8620  xorg_cv_cc_flag_unused_command_line_argument=yes
8621else
8622  xorg_cv_cc_flag_unused_command_line_argument=no
8623fi
8624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625fi
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8629	CFLAGS="$xorg_testset_save_CFLAGS"
8630fi
8631
8632found="no"
8633
8634	if test $found = "no" ; then
8635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8637		fi
8638
8639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641		fi
8642
8643		CFLAGS="$CFLAGS -Wnonnull"
8644
8645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8646$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8647		cacheid=xorg_cv_cc_flag__Wnonnull
8648		if eval \${$cacheid+:} false; then :
8649  $as_echo_n "(cached) " >&6
8650else
8651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652/* end confdefs.h.  */
8653int i;
8654int
8655main ()
8656{
8657
8658  ;
8659  return 0;
8660}
8661_ACEOF
8662if ac_fn_c_try_link "$LINENO"; then :
8663  eval $cacheid=yes
8664else
8665  eval $cacheid=no
8666fi
8667rm -f core conftest.err conftest.$ac_objext \
8668    conftest$ac_exeext conftest.$ac_ext
8669fi
8670
8671
8672		CFLAGS="$xorg_testset_save_CFLAGS"
8673
8674		eval supported=\$$cacheid
8675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8676$as_echo "$supported" >&6; }
8677		if test "$supported" = "yes" ; then
8678			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8679			found="yes"
8680		fi
8681	fi
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697xorg_testset_save_CFLAGS="$CFLAGS"
8698
8699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8704  $as_echo_n "(cached) " >&6
8705else
8706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707/* end confdefs.h.  */
8708int i;
8709_ACEOF
8710if ac_fn_c_try_compile "$LINENO"; then :
8711  xorg_cv_cc_flag_unknown_warning_option=yes
8712else
8713  xorg_cv_cc_flag_unknown_warning_option=no
8714fi
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720	CFLAGS="$xorg_testset_save_CFLAGS"
8721fi
8722
8723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726	fi
8727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8731  $as_echo_n "(cached) " >&6
8732else
8733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734/* end confdefs.h.  */
8735int i;
8736_ACEOF
8737if ac_fn_c_try_compile "$LINENO"; then :
8738  xorg_cv_cc_flag_unused_command_line_argument=yes
8739else
8740  xorg_cv_cc_flag_unused_command_line_argument=no
8741fi
8742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8743fi
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8747	CFLAGS="$xorg_testset_save_CFLAGS"
8748fi
8749
8750found="no"
8751
8752	if test $found = "no" ; then
8753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8755		fi
8756
8757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759		fi
8760
8761		CFLAGS="$CFLAGS -Winit-self"
8762
8763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8764$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8765		cacheid=xorg_cv_cc_flag__Winit_self
8766		if eval \${$cacheid+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int i;
8772int
8773main ()
8774{
8775
8776  ;
8777  return 0;
8778}
8779_ACEOF
8780if ac_fn_c_try_link "$LINENO"; then :
8781  eval $cacheid=yes
8782else
8783  eval $cacheid=no
8784fi
8785rm -f core conftest.err conftest.$ac_objext \
8786    conftest$ac_exeext conftest.$ac_ext
8787fi
8788
8789
8790		CFLAGS="$xorg_testset_save_CFLAGS"
8791
8792		eval supported=\$$cacheid
8793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8794$as_echo "$supported" >&6; }
8795		if test "$supported" = "yes" ; then
8796			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8797			found="yes"
8798		fi
8799	fi
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815xorg_testset_save_CFLAGS="$CFLAGS"
8816
8817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8822  $as_echo_n "(cached) " >&6
8823else
8824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825/* end confdefs.h.  */
8826int i;
8827_ACEOF
8828if ac_fn_c_try_compile "$LINENO"; then :
8829  xorg_cv_cc_flag_unknown_warning_option=yes
8830else
8831  xorg_cv_cc_flag_unknown_warning_option=no
8832fi
8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8838	CFLAGS="$xorg_testset_save_CFLAGS"
8839fi
8840
8841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8844	fi
8845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852/* end confdefs.h.  */
8853int i;
8854_ACEOF
8855if ac_fn_c_try_compile "$LINENO"; then :
8856  xorg_cv_cc_flag_unused_command_line_argument=yes
8857else
8858  xorg_cv_cc_flag_unused_command_line_argument=no
8859fi
8860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8861fi
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8865	CFLAGS="$xorg_testset_save_CFLAGS"
8866fi
8867
8868found="no"
8869
8870	if test $found = "no" ; then
8871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8873		fi
8874
8875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877		fi
8878
8879		CFLAGS="$CFLAGS -Wmain"
8880
8881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8882$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8883		cacheid=xorg_cv_cc_flag__Wmain
8884		if eval \${$cacheid+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h.  */
8889int i;
8890int
8891main ()
8892{
8893
8894  ;
8895  return 0;
8896}
8897_ACEOF
8898if ac_fn_c_try_link "$LINENO"; then :
8899  eval $cacheid=yes
8900else
8901  eval $cacheid=no
8902fi
8903rm -f core conftest.err conftest.$ac_objext \
8904    conftest$ac_exeext conftest.$ac_ext
8905fi
8906
8907
8908		CFLAGS="$xorg_testset_save_CFLAGS"
8909
8910		eval supported=\$$cacheid
8911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8912$as_echo "$supported" >&6; }
8913		if test "$supported" = "yes" ; then
8914			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8915			found="yes"
8916		fi
8917	fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933xorg_testset_save_CFLAGS="$CFLAGS"
8934
8935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8940  $as_echo_n "(cached) " >&6
8941else
8942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943/* end confdefs.h.  */
8944int i;
8945_ACEOF
8946if ac_fn_c_try_compile "$LINENO"; then :
8947  xorg_cv_cc_flag_unknown_warning_option=yes
8948else
8949  xorg_cv_cc_flag_unknown_warning_option=no
8950fi
8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8956	CFLAGS="$xorg_testset_save_CFLAGS"
8957fi
8958
8959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8962	fi
8963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971int i;
8972_ACEOF
8973if ac_fn_c_try_compile "$LINENO"; then :
8974  xorg_cv_cc_flag_unused_command_line_argument=yes
8975else
8976  xorg_cv_cc_flag_unused_command_line_argument=no
8977fi
8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979fi
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8982	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8983	CFLAGS="$xorg_testset_save_CFLAGS"
8984fi
8985
8986found="no"
8987
8988	if test $found = "no" ; then
8989		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8990			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8991		fi
8992
8993		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8994			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995		fi
8996
8997		CFLAGS="$CFLAGS -Wmissing-braces"
8998
8999		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9000$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9001		cacheid=xorg_cv_cc_flag__Wmissing_braces
9002		if eval \${$cacheid+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008int
9009main ()
9010{
9011
9012  ;
9013  return 0;
9014}
9015_ACEOF
9016if ac_fn_c_try_link "$LINENO"; then :
9017  eval $cacheid=yes
9018else
9019  eval $cacheid=no
9020fi
9021rm -f core conftest.err conftest.$ac_objext \
9022    conftest$ac_exeext conftest.$ac_ext
9023fi
9024
9025
9026		CFLAGS="$xorg_testset_save_CFLAGS"
9027
9028		eval supported=\$$cacheid
9029		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9030$as_echo "$supported" >&6; }
9031		if test "$supported" = "yes" ; then
9032			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9033			found="yes"
9034		fi
9035	fi
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051xorg_testset_save_CFLAGS="$CFLAGS"
9052
9053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9058  $as_echo_n "(cached) " >&6
9059else
9060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061/* end confdefs.h.  */
9062int i;
9063_ACEOF
9064if ac_fn_c_try_compile "$LINENO"; then :
9065  xorg_cv_cc_flag_unknown_warning_option=yes
9066else
9067  xorg_cv_cc_flag_unknown_warning_option=no
9068fi
9069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070fi
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9074	CFLAGS="$xorg_testset_save_CFLAGS"
9075fi
9076
9077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9080	fi
9081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9085  $as_echo_n "(cached) " >&6
9086else
9087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088/* end confdefs.h.  */
9089int i;
9090_ACEOF
9091if ac_fn_c_try_compile "$LINENO"; then :
9092  xorg_cv_cc_flag_unused_command_line_argument=yes
9093else
9094  xorg_cv_cc_flag_unused_command_line_argument=no
9095fi
9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9101	CFLAGS="$xorg_testset_save_CFLAGS"
9102fi
9103
9104found="no"
9105
9106	if test $found = "no" ; then
9107		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9109		fi
9110
9111		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113		fi
9114
9115		CFLAGS="$CFLAGS -Wsequence-point"
9116
9117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9118$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9119		cacheid=xorg_cv_cc_flag__Wsequence_point
9120		if eval \${$cacheid+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126int
9127main ()
9128{
9129
9130  ;
9131  return 0;
9132}
9133_ACEOF
9134if ac_fn_c_try_link "$LINENO"; then :
9135  eval $cacheid=yes
9136else
9137  eval $cacheid=no
9138fi
9139rm -f core conftest.err conftest.$ac_objext \
9140    conftest$ac_exeext conftest.$ac_ext
9141fi
9142
9143
9144		CFLAGS="$xorg_testset_save_CFLAGS"
9145
9146		eval supported=\$$cacheid
9147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9148$as_echo "$supported" >&6; }
9149		if test "$supported" = "yes" ; then
9150			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9151			found="yes"
9152		fi
9153	fi
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169xorg_testset_save_CFLAGS="$CFLAGS"
9170
9171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9176  $as_echo_n "(cached) " >&6
9177else
9178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179/* end confdefs.h.  */
9180int i;
9181_ACEOF
9182if ac_fn_c_try_compile "$LINENO"; then :
9183  xorg_cv_cc_flag_unknown_warning_option=yes
9184else
9185  xorg_cv_cc_flag_unknown_warning_option=no
9186fi
9187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188fi
9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9192	CFLAGS="$xorg_testset_save_CFLAGS"
9193fi
9194
9195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9198	fi
9199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9203  $as_echo_n "(cached) " >&6
9204else
9205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h.  */
9207int i;
9208_ACEOF
9209if ac_fn_c_try_compile "$LINENO"; then :
9210  xorg_cv_cc_flag_unused_command_line_argument=yes
9211else
9212  xorg_cv_cc_flag_unused_command_line_argument=no
9213fi
9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215fi
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9219	CFLAGS="$xorg_testset_save_CFLAGS"
9220fi
9221
9222found="no"
9223
9224	if test $found = "no" ; then
9225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227		fi
9228
9229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231		fi
9232
9233		CFLAGS="$CFLAGS -Wreturn-type"
9234
9235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9236$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9237		cacheid=xorg_cv_cc_flag__Wreturn_type
9238		if eval \${$cacheid+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244int
9245main ()
9246{
9247
9248  ;
9249  return 0;
9250}
9251_ACEOF
9252if ac_fn_c_try_link "$LINENO"; then :
9253  eval $cacheid=yes
9254else
9255  eval $cacheid=no
9256fi
9257rm -f core conftest.err conftest.$ac_objext \
9258    conftest$ac_exeext conftest.$ac_ext
9259fi
9260
9261
9262		CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264		eval supported=\$$cacheid
9265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266$as_echo "$supported" >&6; }
9267		if test "$supported" = "yes" ; then
9268			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9269			found="yes"
9270		fi
9271	fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9294  $as_echo_n "(cached) " >&6
9295else
9296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297/* end confdefs.h.  */
9298int i;
9299_ACEOF
9300if ac_fn_c_try_compile "$LINENO"; then :
9301  xorg_cv_cc_flag_unknown_warning_option=yes
9302else
9303  xorg_cv_cc_flag_unknown_warning_option=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306fi
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9310	CFLAGS="$xorg_testset_save_CFLAGS"
9311fi
9312
9313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316	fi
9317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324/* end confdefs.h.  */
9325int i;
9326_ACEOF
9327if ac_fn_c_try_compile "$LINENO"; then :
9328  xorg_cv_cc_flag_unused_command_line_argument=yes
9329else
9330  xorg_cv_cc_flag_unused_command_line_argument=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333fi
9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9336	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9337	CFLAGS="$xorg_testset_save_CFLAGS"
9338fi
9339
9340found="no"
9341
9342	if test $found = "no" ; then
9343		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345		fi
9346
9347		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9348			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349		fi
9350
9351		CFLAGS="$CFLAGS -Wtrigraphs"
9352
9353		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9354$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9355		cacheid=xorg_cv_cc_flag__Wtrigraphs
9356		if eval \${$cacheid+:} false; then :
9357  $as_echo_n "(cached) " >&6
9358else
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361int i;
9362int
9363main ()
9364{
9365
9366  ;
9367  return 0;
9368}
9369_ACEOF
9370if ac_fn_c_try_link "$LINENO"; then :
9371  eval $cacheid=yes
9372else
9373  eval $cacheid=no
9374fi
9375rm -f core conftest.err conftest.$ac_objext \
9376    conftest$ac_exeext conftest.$ac_ext
9377fi
9378
9379
9380		CFLAGS="$xorg_testset_save_CFLAGS"
9381
9382		eval supported=\$$cacheid
9383		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9384$as_echo "$supported" >&6; }
9385		if test "$supported" = "yes" ; then
9386			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9387			found="yes"
9388		fi
9389	fi
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405xorg_testset_save_CFLAGS="$CFLAGS"
9406
9407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9408	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9415/* end confdefs.h.  */
9416int i;
9417_ACEOF
9418if ac_fn_c_try_compile "$LINENO"; then :
9419  xorg_cv_cc_flag_unknown_warning_option=yes
9420else
9421  xorg_cv_cc_flag_unknown_warning_option=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424fi
9425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9427	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9428	CFLAGS="$xorg_testset_save_CFLAGS"
9429fi
9430
9431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9432	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9433		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434	fi
9435	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9439  $as_echo_n "(cached) " >&6
9440else
9441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h.  */
9443int i;
9444_ACEOF
9445if ac_fn_c_try_compile "$LINENO"; then :
9446  xorg_cv_cc_flag_unused_command_line_argument=yes
9447else
9448  xorg_cv_cc_flag_unused_command_line_argument=no
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451fi
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9454	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9455	CFLAGS="$xorg_testset_save_CFLAGS"
9456fi
9457
9458found="no"
9459
9460	if test $found = "no" ; then
9461		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9462			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463		fi
9464
9465		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9466			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467		fi
9468
9469		CFLAGS="$CFLAGS -Warray-bounds"
9470
9471		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9472$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9473		cacheid=xorg_cv_cc_flag__Warray_bounds
9474		if eval \${$cacheid+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int i;
9480int
9481main ()
9482{
9483
9484  ;
9485  return 0;
9486}
9487_ACEOF
9488if ac_fn_c_try_link "$LINENO"; then :
9489  eval $cacheid=yes
9490else
9491  eval $cacheid=no
9492fi
9493rm -f core conftest.err conftest.$ac_objext \
9494    conftest$ac_exeext conftest.$ac_ext
9495fi
9496
9497
9498		CFLAGS="$xorg_testset_save_CFLAGS"
9499
9500		eval supported=\$$cacheid
9501		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9502$as_echo "$supported" >&6; }
9503		if test "$supported" = "yes" ; then
9504			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9505			found="yes"
9506		fi
9507	fi
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523xorg_testset_save_CFLAGS="$CFLAGS"
9524
9525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534int i;
9535_ACEOF
9536if ac_fn_c_try_compile "$LINENO"; then :
9537  xorg_cv_cc_flag_unknown_warning_option=yes
9538else
9539  xorg_cv_cc_flag_unknown_warning_option=no
9540fi
9541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9542fi
9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9546	CFLAGS="$xorg_testset_save_CFLAGS"
9547fi
9548
9549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552	fi
9553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560/* end confdefs.h.  */
9561int i;
9562_ACEOF
9563if ac_fn_c_try_compile "$LINENO"; then :
9564  xorg_cv_cc_flag_unused_command_line_argument=yes
9565else
9566  xorg_cv_cc_flag_unused_command_line_argument=no
9567fi
9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9569fi
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9572	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9573	CFLAGS="$xorg_testset_save_CFLAGS"
9574fi
9575
9576found="no"
9577
9578	if test $found = "no" ; then
9579		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9580			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581		fi
9582
9583		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9584			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585		fi
9586
9587		CFLAGS="$CFLAGS -Wwrite-strings"
9588
9589		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9590$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9591		cacheid=xorg_cv_cc_flag__Wwrite_strings
9592		if eval \${$cacheid+:} false; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598int
9599main ()
9600{
9601
9602  ;
9603  return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607  eval $cacheid=yes
9608else
9609  eval $cacheid=no
9610fi
9611rm -f core conftest.err conftest.$ac_objext \
9612    conftest$ac_exeext conftest.$ac_ext
9613fi
9614
9615
9616		CFLAGS="$xorg_testset_save_CFLAGS"
9617
9618		eval supported=\$$cacheid
9619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9620$as_echo "$supported" >&6; }
9621		if test "$supported" = "yes" ; then
9622			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9623			found="yes"
9624		fi
9625	fi
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641xorg_testset_save_CFLAGS="$CFLAGS"
9642
9643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9644	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651/* end confdefs.h.  */
9652int i;
9653_ACEOF
9654if ac_fn_c_try_compile "$LINENO"; then :
9655  xorg_cv_cc_flag_unknown_warning_option=yes
9656else
9657  xorg_cv_cc_flag_unknown_warning_option=no
9658fi
9659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9663	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9664	CFLAGS="$xorg_testset_save_CFLAGS"
9665fi
9666
9667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9668	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9669		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9670	fi
9671	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h.  */
9679int i;
9680_ACEOF
9681if ac_fn_c_try_compile "$LINENO"; then :
9682  xorg_cv_cc_flag_unused_command_line_argument=yes
9683else
9684  xorg_cv_cc_flag_unused_command_line_argument=no
9685fi
9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9690	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9691	CFLAGS="$xorg_testset_save_CFLAGS"
9692fi
9693
9694found="no"
9695
9696	if test $found = "no" ; then
9697		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9698			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699		fi
9700
9701		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9702			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703		fi
9704
9705		CFLAGS="$CFLAGS -Waddress"
9706
9707		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9708$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9709		cacheid=xorg_cv_cc_flag__Waddress
9710		if eval \${$cacheid+:} false; then :
9711  $as_echo_n "(cached) " >&6
9712else
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int i;
9716int
9717main ()
9718{
9719
9720  ;
9721  return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_link "$LINENO"; then :
9725  eval $cacheid=yes
9726else
9727  eval $cacheid=no
9728fi
9729rm -f core conftest.err conftest.$ac_objext \
9730    conftest$ac_exeext conftest.$ac_ext
9731fi
9732
9733
9734		CFLAGS="$xorg_testset_save_CFLAGS"
9735
9736		eval supported=\$$cacheid
9737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9738$as_echo "$supported" >&6; }
9739		if test "$supported" = "yes" ; then
9740			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9741			found="yes"
9742		fi
9743	fi
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759xorg_testset_save_CFLAGS="$CFLAGS"
9760
9761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9762	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9766  $as_echo_n "(cached) " >&6
9767else
9768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h.  */
9770int i;
9771_ACEOF
9772if ac_fn_c_try_compile "$LINENO"; then :
9773  xorg_cv_cc_flag_unknown_warning_option=yes
9774else
9775  xorg_cv_cc_flag_unknown_warning_option=no
9776fi
9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778fi
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9781	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9782	CFLAGS="$xorg_testset_save_CFLAGS"
9783fi
9784
9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9786	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788	fi
9789	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9793  $as_echo_n "(cached) " >&6
9794else
9795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796/* end confdefs.h.  */
9797int i;
9798_ACEOF
9799if ac_fn_c_try_compile "$LINENO"; then :
9800  xorg_cv_cc_flag_unused_command_line_argument=yes
9801else
9802  xorg_cv_cc_flag_unused_command_line_argument=no
9803fi
9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805fi
9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9808	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9809	CFLAGS="$xorg_testset_save_CFLAGS"
9810fi
9811
9812found="no"
9813
9814	if test $found = "no" ; then
9815		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9816			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817		fi
9818
9819		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9820			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821		fi
9822
9823		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9824
9825		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9826$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9827		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9828		if eval \${$cacheid+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834int
9835main ()
9836{
9837
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then :
9843  eval $cacheid=yes
9844else
9845  eval $cacheid=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext \
9848    conftest$ac_exeext conftest.$ac_ext
9849fi
9850
9851
9852		CFLAGS="$xorg_testset_save_CFLAGS"
9853
9854		eval supported=\$$cacheid
9855		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9856$as_echo "$supported" >&6; }
9857		if test "$supported" = "yes" ; then
9858			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9859			found="yes"
9860		fi
9861	fi
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877xorg_testset_save_CFLAGS="$CFLAGS"
9878
9879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9881	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9884  $as_echo_n "(cached) " >&6
9885else
9886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887/* end confdefs.h.  */
9888int i;
9889_ACEOF
9890if ac_fn_c_try_compile "$LINENO"; then :
9891  xorg_cv_cc_flag_unknown_warning_option=yes
9892else
9893  xorg_cv_cc_flag_unknown_warning_option=no
9894fi
9895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896fi
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900	CFLAGS="$xorg_testset_save_CFLAGS"
9901fi
9902
9903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906	fi
9907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9911  $as_echo_n "(cached) " >&6
9912else
9913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h.  */
9915int i;
9916_ACEOF
9917if ac_fn_c_try_compile "$LINENO"; then :
9918  xorg_cv_cc_flag_unused_command_line_argument=yes
9919else
9920  xorg_cv_cc_flag_unused_command_line_argument=no
9921fi
9922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9923fi
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9927	CFLAGS="$xorg_testset_save_CFLAGS"
9928fi
9929
9930found="no"
9931
9932	if test $found = "no" ; then
9933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935		fi
9936
9937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939		fi
9940
9941		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9942
9943		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9944$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9945		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9946		if eval \${$cacheid+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952int
9953main ()
9954{
9955
9956  ;
9957  return 0;
9958}
9959_ACEOF
9960if ac_fn_c_try_link "$LINENO"; then :
9961  eval $cacheid=yes
9962else
9963  eval $cacheid=no
9964fi
9965rm -f core conftest.err conftest.$ac_objext \
9966    conftest$ac_exeext conftest.$ac_ext
9967fi
9968
9969
9970		CFLAGS="$xorg_testset_save_CFLAGS"
9971
9972		eval supported=\$$cacheid
9973		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9974$as_echo "$supported" >&6; }
9975		if test "$supported" = "yes" ; then
9976			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9977			found="yes"
9978		fi
9979	fi
9980
9981
9982fi
9983
9984
9985
9986
9987
9988
9989
9990		CWARNFLAGS="$BASE_CFLAGS"
9991		if  test "x$GCC" = xyes ; then
9992		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9993		fi
9994
9995
9996
9997
9998
9999
10000
10001
10002# Check whether --enable-strict-compilation was given.
10003if test "${enable_strict_compilation+set}" = set; then :
10004  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10005else
10006  STRICT_COMPILE=no
10007fi
10008
10009
10010
10011
10012
10013
10014STRICT_CFLAGS=""
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028xorg_testset_save_CFLAGS="$CFLAGS"
10029
10030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10035  $as_echo_n "(cached) " >&6
10036else
10037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038/* end confdefs.h.  */
10039int i;
10040_ACEOF
10041if ac_fn_c_try_compile "$LINENO"; then :
10042  xorg_cv_cc_flag_unknown_warning_option=yes
10043else
10044  xorg_cv_cc_flag_unknown_warning_option=no
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10051	CFLAGS="$xorg_testset_save_CFLAGS"
10052fi
10053
10054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057	fi
10058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067_ACEOF
10068if ac_fn_c_try_compile "$LINENO"; then :
10069  xorg_cv_cc_flag_unused_command_line_argument=yes
10070else
10071  xorg_cv_cc_flag_unused_command_line_argument=no
10072fi
10073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10078	CFLAGS="$xorg_testset_save_CFLAGS"
10079fi
10080
10081found="no"
10082
10083	if test $found = "no" ; then
10084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086		fi
10087
10088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10090		fi
10091
10092		CFLAGS="$CFLAGS -pedantic"
10093
10094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10095$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10096		cacheid=xorg_cv_cc_flag__pedantic
10097		if eval \${$cacheid+:} false; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h.  */
10102int i;
10103int
10104main ()
10105{
10106
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"; then :
10112  eval $cacheid=yes
10113else
10114  eval $cacheid=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext \
10117    conftest$ac_exeext conftest.$ac_ext
10118fi
10119
10120
10121		CFLAGS="$xorg_testset_save_CFLAGS"
10122
10123		eval supported=\$$cacheid
10124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10125$as_echo "$supported" >&6; }
10126		if test "$supported" = "yes" ; then
10127			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10128			found="yes"
10129		fi
10130	fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146xorg_testset_save_CFLAGS="$CFLAGS"
10147
10148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10153  $as_echo_n "(cached) " >&6
10154else
10155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157int i;
10158_ACEOF
10159if ac_fn_c_try_compile "$LINENO"; then :
10160  xorg_cv_cc_flag_unknown_warning_option=yes
10161else
10162  xorg_cv_cc_flag_unknown_warning_option=no
10163fi
10164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165fi
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169	CFLAGS="$xorg_testset_save_CFLAGS"
10170fi
10171
10172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175	fi
10176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10180  $as_echo_n "(cached) " >&6
10181else
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185_ACEOF
10186if ac_fn_c_try_compile "$LINENO"; then :
10187  xorg_cv_cc_flag_unused_command_line_argument=yes
10188else
10189  xorg_cv_cc_flag_unused_command_line_argument=no
10190fi
10191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196	CFLAGS="$xorg_testset_save_CFLAGS"
10197fi
10198
10199found="no"
10200
10201	if test $found = "no" ; then
10202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204		fi
10205
10206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208		fi
10209
10210		CFLAGS="$CFLAGS -Werror"
10211
10212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10213$as_echo_n "checking if $CC supports -Werror... " >&6; }
10214		cacheid=xorg_cv_cc_flag__Werror
10215		if eval \${$cacheid+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221int
10222main ()
10223{
10224
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229if ac_fn_c_try_link "$LINENO"; then :
10230  eval $cacheid=yes
10231else
10232  eval $cacheid=no
10233fi
10234rm -f core conftest.err conftest.$ac_objext \
10235    conftest$ac_exeext conftest.$ac_ext
10236fi
10237
10238
10239		CFLAGS="$xorg_testset_save_CFLAGS"
10240
10241		eval supported=\$$cacheid
10242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10243$as_echo "$supported" >&6; }
10244		if test "$supported" = "yes" ; then
10245			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10246			found="yes"
10247		fi
10248	fi
10249
10250	if test $found = "no" ; then
10251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10253		fi
10254
10255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257		fi
10258
10259		CFLAGS="$CFLAGS -errwarn"
10260
10261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10262$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10263		cacheid=xorg_cv_cc_flag__errwarn
10264		if eval \${$cacheid+:} false; then :
10265  $as_echo_n "(cached) " >&6
10266else
10267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h.  */
10269int i;
10270int
10271main ()
10272{
10273
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"; then :
10279  eval $cacheid=yes
10280else
10281  eval $cacheid=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext \
10284    conftest$ac_exeext conftest.$ac_ext
10285fi
10286
10287
10288		CFLAGS="$xorg_testset_save_CFLAGS"
10289
10290		eval supported=\$$cacheid
10291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10292$as_echo "$supported" >&6; }
10293		if test "$supported" = "yes" ; then
10294			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10295			found="yes"
10296		fi
10297	fi
10298
10299
10300
10301# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10302# activate it with -Werror, so we add it here explicitly.
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316xorg_testset_save_CFLAGS="$CFLAGS"
10317
10318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326/* end confdefs.h.  */
10327int i;
10328_ACEOF
10329if ac_fn_c_try_compile "$LINENO"; then :
10330  xorg_cv_cc_flag_unknown_warning_option=yes
10331else
10332  xorg_cv_cc_flag_unknown_warning_option=no
10333fi
10334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335fi
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10339	CFLAGS="$xorg_testset_save_CFLAGS"
10340fi
10341
10342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10345	fi
10346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354int i;
10355_ACEOF
10356if ac_fn_c_try_compile "$LINENO"; then :
10357  xorg_cv_cc_flag_unused_command_line_argument=yes
10358else
10359  xorg_cv_cc_flag_unused_command_line_argument=no
10360fi
10361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10362fi
10363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10366	CFLAGS="$xorg_testset_save_CFLAGS"
10367fi
10368
10369found="no"
10370
10371	if test $found = "no" ; then
10372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10374		fi
10375
10376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10378		fi
10379
10380		CFLAGS="$CFLAGS -Werror=attributes"
10381
10382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10383$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10384		cacheid=xorg_cv_cc_flag__Werror_attributes
10385		if eval \${$cacheid+:} false; then :
10386  $as_echo_n "(cached) " >&6
10387else
10388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390int i;
10391int
10392main ()
10393{
10394
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399if ac_fn_c_try_link "$LINENO"; then :
10400  eval $cacheid=yes
10401else
10402  eval $cacheid=no
10403fi
10404rm -f core conftest.err conftest.$ac_objext \
10405    conftest$ac_exeext conftest.$ac_ext
10406fi
10407
10408
10409		CFLAGS="$xorg_testset_save_CFLAGS"
10410
10411		eval supported=\$$cacheid
10412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10413$as_echo "$supported" >&6; }
10414		if test "$supported" = "yes" ; then
10415			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10416			found="yes"
10417		fi
10418	fi
10419
10420
10421
10422if test "x$STRICT_COMPILE" = "xyes"; then
10423    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10424    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10425fi
10426
10427
10428
10429
10430
10431
10432cat >>confdefs.h <<_ACEOF
10433#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10434_ACEOF
10435
10436	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10437	if test "x$PVM" = "x"; then
10438		PVM="0"
10439	fi
10440
10441cat >>confdefs.h <<_ACEOF
10442#define PACKAGE_VERSION_MINOR $PVM
10443_ACEOF
10444
10445	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10446	if test "x$PVP" = "x"; then
10447		PVP="0"
10448	fi
10449
10450cat >>confdefs.h <<_ACEOF
10451#define PACKAGE_VERSION_PATCHLEVEL $PVP
10452_ACEOF
10453
10454
10455
10456CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10457mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10458|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10459touch \$(top_srcdir)/ChangeLog; \
10460echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10461
10462
10463
10464
10465macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10466INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10467mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10468|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10469touch \$(top_srcdir)/INSTALL; \
10470echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10471
10472
10473
10474
10475
10476
10477case $host_os in
10478    solaris*)
10479        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10480        # check for a man page file found in later versions that use
10481        # traditional section numbers instead
10482        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10483$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; }
10484if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then :
10485  $as_echo_n "(cached) " >&6
10486else
10487  test "$cross_compiling" = yes &&
10488  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10489if test -r "/usr/share/man/man7/attributes.7"; then
10490  ac_cv_file__usr_share_man_man7_attributes_7=yes
10491else
10492  ac_cv_file__usr_share_man_man7_attributes_7=no
10493fi
10494fi
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10496$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10497if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then :
10498  SYSV_MAN_SECTIONS=false
10499else
10500  SYSV_MAN_SECTIONS=true
10501fi
10502
10503        ;;
10504    *) SYSV_MAN_SECTIONS=false ;;
10505esac
10506
10507if test x$APP_MAN_SUFFIX = x    ; then
10508    APP_MAN_SUFFIX=1
10509fi
10510if test x$APP_MAN_DIR = x    ; then
10511    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10512fi
10513
10514if test x$LIB_MAN_SUFFIX = x    ; then
10515    LIB_MAN_SUFFIX=3
10516fi
10517if test x$LIB_MAN_DIR = x    ; then
10518    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10519fi
10520
10521if test x$FILE_MAN_SUFFIX = x    ; then
10522    case $SYSV_MAN_SECTIONS in
10523	true)				FILE_MAN_SUFFIX=4  ;;
10524	*)				FILE_MAN_SUFFIX=5  ;;
10525    esac
10526fi
10527if test x$FILE_MAN_DIR = x    ; then
10528    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10529fi
10530
10531if test x$MISC_MAN_SUFFIX = x    ; then
10532    case $SYSV_MAN_SECTIONS in
10533	true)				MISC_MAN_SUFFIX=5  ;;
10534	*)				MISC_MAN_SUFFIX=7  ;;
10535    esac
10536fi
10537if test x$MISC_MAN_DIR = x    ; then
10538    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10539fi
10540
10541if test x$DRIVER_MAN_SUFFIX = x    ; then
10542    case $SYSV_MAN_SECTIONS in
10543	true)				DRIVER_MAN_SUFFIX=7  ;;
10544	*)				DRIVER_MAN_SUFFIX=4  ;;
10545    esac
10546fi
10547if test x$DRIVER_MAN_DIR = x    ; then
10548    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10549fi
10550
10551if test x$ADMIN_MAN_SUFFIX = x    ; then
10552    case $SYSV_MAN_SECTIONS in
10553	true)				ADMIN_MAN_SUFFIX=1m ;;
10554	*)				ADMIN_MAN_SUFFIX=8  ;;
10555    esac
10556fi
10557if test x$ADMIN_MAN_DIR = x    ; then
10558    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10559fi
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575XORG_MAN_PAGE="X Version 11"
10576
10577MAN_SUBSTS="\
10578	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10579	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10580	-e 's|__xservername__|Xorg|g' \
10581	-e 's|__xconfigfile__|xorg.conf|g' \
10582	-e 's|__projectroot__|\$(prefix)|g' \
10583	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10584	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10585	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10586	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10587	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10588	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10589	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10590
10591
10592
10593# Check whether --enable-silent-rules was given.
10594if test "${enable_silent_rules+set}" = set; then :
10595  enableval=$enable_silent_rules;
10596fi
10597
10598case $enable_silent_rules in # (((
10599  yes) AM_DEFAULT_VERBOSITY=0;;
10600   no) AM_DEFAULT_VERBOSITY=1;;
10601    *) AM_DEFAULT_VERBOSITY=0;;
10602esac
10603am_make=${MAKE-make}
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10605$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10606if ${am_cv_make_support_nested_variables+:} false; then :
10607  $as_echo_n "(cached) " >&6
10608else
10609  if $as_echo 'TRUE=$(BAR$(V))
10610BAR0=false
10611BAR1=true
10612V=1
10613am__doit:
10614	@$(TRUE)
10615.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10616  am_cv_make_support_nested_variables=yes
10617else
10618  am_cv_make_support_nested_variables=no
10619fi
10620fi
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10622$as_echo "$am_cv_make_support_nested_variables" >&6; }
10623if test $am_cv_make_support_nested_variables = yes; then
10624    AM_V='$(V)'
10625  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10626else
10627  AM_V=$AM_DEFAULT_VERBOSITY
10628  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10629fi
10630AM_BACKSLASH='\'
10631
10632
10633
10634# Checks for pkg-config packages
10635
10636pkg_failed=no
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x11 xtrap xt" >&5
10638$as_echo_n "checking for x11 xtrap xt... " >&6; }
10639
10640if test -n "$XTRAP_APP_CFLAGS"; then
10641    pkg_cv_XTRAP_APP_CFLAGS="$XTRAP_APP_CFLAGS"
10642 elif test -n "$PKG_CONFIG"; then
10643    if test -n "$PKG_CONFIG" && \
10644    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xtrap xt\""; } >&5
10645  ($PKG_CONFIG --exists --print-errors "x11 xtrap xt") 2>&5
10646  ac_status=$?
10647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648  test $ac_status = 0; }; then
10649  pkg_cv_XTRAP_APP_CFLAGS=`$PKG_CONFIG --cflags "x11 xtrap xt" 2>/dev/null`
10650		      test "x$?" != "x0" && pkg_failed=yes
10651else
10652  pkg_failed=yes
10653fi
10654 else
10655    pkg_failed=untried
10656fi
10657if test -n "$XTRAP_APP_LIBS"; then
10658    pkg_cv_XTRAP_APP_LIBS="$XTRAP_APP_LIBS"
10659 elif test -n "$PKG_CONFIG"; then
10660    if test -n "$PKG_CONFIG" && \
10661    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xtrap xt\""; } >&5
10662  ($PKG_CONFIG --exists --print-errors "x11 xtrap xt") 2>&5
10663  ac_status=$?
10664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10665  test $ac_status = 0; }; then
10666  pkg_cv_XTRAP_APP_LIBS=`$PKG_CONFIG --libs "x11 xtrap xt" 2>/dev/null`
10667		      test "x$?" != "x0" && pkg_failed=yes
10668else
10669  pkg_failed=yes
10670fi
10671 else
10672    pkg_failed=untried
10673fi
10674
10675
10676
10677if test $pkg_failed = yes; then
10678        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
10680
10681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10682        _pkg_short_errors_supported=yes
10683else
10684        _pkg_short_errors_supported=no
10685fi
10686        if test $_pkg_short_errors_supported = yes; then
10687	        XTRAP_APP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xtrap xt" 2>&1`
10688        else
10689	        XTRAP_APP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xtrap xt" 2>&1`
10690        fi
10691	# Put the nasty error message in config.log where it belongs
10692	echo "$XTRAP_APP_PKG_ERRORS" >&5
10693
10694	as_fn_error $? "Package requirements (x11 xtrap xt) were not met:
10695
10696$XTRAP_APP_PKG_ERRORS
10697
10698Consider adjusting the PKG_CONFIG_PATH environment variable if you
10699installed software in a non-standard prefix.
10700
10701Alternatively, you may set the environment variables XTRAP_APP_CFLAGS
10702and XTRAP_APP_LIBS to avoid the need to call pkg-config.
10703See the pkg-config man page for more details." "$LINENO" 5
10704elif test $pkg_failed = untried; then
10705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
10707	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10709as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10710is in your PATH or set the PKG_CONFIG environment variable to the full
10711path to pkg-config.
10712
10713Alternatively, you may set the environment variables XTRAP_APP_CFLAGS
10714and XTRAP_APP_LIBS to avoid the need to call pkg-config.
10715See the pkg-config man page for more details.
10716
10717To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10718See \`config.log' for more details" "$LINENO" 5; }
10719else
10720	XTRAP_APP_CFLAGS=$pkg_cv_XTRAP_APP_CFLAGS
10721	XTRAP_APP_LIBS=$pkg_cv_XTRAP_APP_LIBS
10722        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723$as_echo "yes" >&6; }
10724
10725fi
10726
10727ac_config_files="$ac_config_files Makefile"
10728
10729cat >confcache <<\_ACEOF
10730# This file is a shell script that caches the results of configure
10731# tests run on this system so they can be shared between configure
10732# scripts and configure runs, see configure's option --config-cache.
10733# It is not useful on other systems.  If it contains results you don't
10734# want to keep, you may remove or edit it.
10735#
10736# config.status only pays attention to the cache file if you give it
10737# the --recheck option to rerun configure.
10738#
10739# `ac_cv_env_foo' variables (set or unset) will be overridden when
10740# loading this file, other *unset* `ac_cv_foo' will be assigned the
10741# following values.
10742
10743_ACEOF
10744
10745# The following way of writing the cache mishandles newlines in values,
10746# but we know of no workaround that is simple, portable, and efficient.
10747# So, we kill variables containing newlines.
10748# Ultrix sh set writes to stderr and can't be redirected directly,
10749# and sets the high bit in the cache file unless we assign to the vars.
10750(
10751  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10752    eval ac_val=\$$ac_var
10753    case $ac_val in #(
10754    *${as_nl}*)
10755      case $ac_var in #(
10756      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10758      esac
10759      case $ac_var in #(
10760      _ | IFS | as_nl) ;; #(
10761      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10762      *) { eval $ac_var=; unset $ac_var;} ;;
10763      esac ;;
10764    esac
10765  done
10766
10767  (set) 2>&1 |
10768    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10769    *${as_nl}ac_space=\ *)
10770      # `set' does not quote correctly, so add quotes: double-quote
10771      # substitution turns \\\\ into \\, and sed turns \\ into \.
10772      sed -n \
10773	"s/'/'\\\\''/g;
10774	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10775      ;; #(
10776    *)
10777      # `set' quotes correctly as required by POSIX, so do not add quotes.
10778      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10779      ;;
10780    esac |
10781    sort
10782) |
10783  sed '
10784     /^ac_cv_env_/b end
10785     t clear
10786     :clear
10787     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10788     t end
10789     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10790     :end' >>confcache
10791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10792  if test -w "$cache_file"; then
10793    if test "x$cache_file" != "x/dev/null"; then
10794      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10795$as_echo "$as_me: updating cache $cache_file" >&6;}
10796      if test ! -f "$cache_file" || test -h "$cache_file"; then
10797	cat confcache >"$cache_file"
10798      else
10799        case $cache_file in #(
10800        */* | ?:*)
10801	  mv -f confcache "$cache_file"$$ &&
10802	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10803        *)
10804	  mv -f confcache "$cache_file" ;;
10805	esac
10806      fi
10807    fi
10808  else
10809    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10810$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10811  fi
10812fi
10813rm -f confcache
10814
10815test "x$prefix" = xNONE && prefix=$ac_default_prefix
10816# Let make expand exec_prefix.
10817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10818
10819DEFS=-DHAVE_CONFIG_H
10820
10821ac_libobjs=
10822ac_ltlibobjs=
10823U=
10824for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10825  # 1. Remove the extension, and $U if already installed.
10826  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10827  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10828  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10829  #    will be set to the directory where LIBOBJS objects are built.
10830  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10831  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10832done
10833LIBOBJS=$ac_libobjs
10834
10835LTLIBOBJS=$ac_ltlibobjs
10836
10837
10838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10839$as_echo_n "checking that generated files are newer than configure... " >&6; }
10840   if test -n "$am_sleep_pid"; then
10841     # Hide warnings about reused PIDs.
10842     wait $am_sleep_pid 2>/dev/null
10843   fi
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10845$as_echo "done" >&6; }
10846 if test -n "$EXEEXT"; then
10847  am__EXEEXT_TRUE=
10848  am__EXEEXT_FALSE='#'
10849else
10850  am__EXEEXT_TRUE='#'
10851  am__EXEEXT_FALSE=
10852fi
10853
10854if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10855  as_fn_error $? "conditional \"AMDEP\" was never defined.
10856Usually this means the macro was only invoked conditionally." "$LINENO" 5
10857fi
10858if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10859  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10860Usually this means the macro was only invoked conditionally." "$LINENO" 5
10861fi
10862
10863: "${CONFIG_STATUS=./config.status}"
10864ac_write_fail=0
10865ac_clean_files_save=$ac_clean_files
10866ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10867{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10868$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10869as_write_fail=0
10870cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10871#! $SHELL
10872# Generated by $as_me.
10873# Run this file to recreate the current configuration.
10874# Compiler output produced by configure, useful for debugging
10875# configure, is in config.log if it exists.
10876
10877debug=false
10878ac_cs_recheck=false
10879ac_cs_silent=false
10880
10881SHELL=\${CONFIG_SHELL-$SHELL}
10882export SHELL
10883_ASEOF
10884cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10885## -------------------- ##
10886## M4sh Initialization. ##
10887## -------------------- ##
10888
10889# Be more Bourne compatible
10890DUALCASE=1; export DUALCASE # for MKS sh
10891if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10892  emulate sh
10893  NULLCMD=:
10894  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10895  # is contrary to our usage.  Disable this feature.
10896  alias -g '${1+"$@"}'='"$@"'
10897  setopt NO_GLOB_SUBST
10898else
10899  case `(set -o) 2>/dev/null` in #(
10900  *posix*) :
10901    set -o posix ;; #(
10902  *) :
10903     ;;
10904esac
10905fi
10906
10907
10908as_nl='
10909'
10910export as_nl
10911# Printing a long string crashes Solaris 7 /usr/bin/printf.
10912as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10913as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10914as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10915# Prefer a ksh shell builtin over an external printf program on Solaris,
10916# but without wasting forks for bash or zsh.
10917if test -z "$BASH_VERSION$ZSH_VERSION" \
10918    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10919  as_echo='print -r --'
10920  as_echo_n='print -rn --'
10921elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10922  as_echo='printf %s\n'
10923  as_echo_n='printf %s'
10924else
10925  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10926    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10927    as_echo_n='/usr/ucb/echo -n'
10928  else
10929    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10930    as_echo_n_body='eval
10931      arg=$1;
10932      case $arg in #(
10933      *"$as_nl"*)
10934	expr "X$arg" : "X\\(.*\\)$as_nl";
10935	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10936      esac;
10937      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10938    '
10939    export as_echo_n_body
10940    as_echo_n='sh -c $as_echo_n_body as_echo'
10941  fi
10942  export as_echo_body
10943  as_echo='sh -c $as_echo_body as_echo'
10944fi
10945
10946# The user is always right.
10947if test "${PATH_SEPARATOR+set}" != set; then
10948  PATH_SEPARATOR=:
10949  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10950    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10951      PATH_SEPARATOR=';'
10952  }
10953fi
10954
10955
10956# IFS
10957# We need space, tab and new line, in precisely that order.  Quoting is
10958# there to prevent editors from complaining about space-tab.
10959# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10960# splitting by setting IFS to empty value.)
10961IFS=" ""	$as_nl"
10962
10963# Find who we are.  Look in the path if we contain no directory separator.
10964as_myself=
10965case $0 in #((
10966  *[\\/]* ) as_myself=$0 ;;
10967  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968for as_dir in $PATH
10969do
10970  IFS=$as_save_IFS
10971  test -z "$as_dir" && as_dir=.
10972    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10973  done
10974IFS=$as_save_IFS
10975
10976     ;;
10977esac
10978# We did not find ourselves, most probably we were run as `sh COMMAND'
10979# in which case we are not to be found in the path.
10980if test "x$as_myself" = x; then
10981  as_myself=$0
10982fi
10983if test ! -f "$as_myself"; then
10984  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10985  exit 1
10986fi
10987
10988# Unset variables that we do not need and which cause bugs (e.g. in
10989# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
10990# suppresses any "Segmentation fault" message there.  '((' could
10991# trigger a bug in pdksh 5.2.14.
10992for as_var in BASH_ENV ENV MAIL MAILPATH
10993do eval test x\${$as_var+set} = xset \
10994  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10995done
10996PS1='$ '
10997PS2='> '
10998PS4='+ '
10999
11000# NLS nuisances.
11001LC_ALL=C
11002export LC_ALL
11003LANGUAGE=C
11004export LANGUAGE
11005
11006# CDPATH.
11007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11008
11009
11010# as_fn_error STATUS ERROR [LINENO LOG_FD]
11011# ----------------------------------------
11012# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11013# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11014# script with STATUS, using 1 if that was 0.
11015as_fn_error ()
11016{
11017  as_status=$1; test $as_status -eq 0 && as_status=1
11018  if test "$4"; then
11019    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11020    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11021  fi
11022  $as_echo "$as_me: error: $2" >&2
11023  as_fn_exit $as_status
11024} # as_fn_error
11025
11026
11027# as_fn_set_status STATUS
11028# -----------------------
11029# Set $? to STATUS, without forking.
11030as_fn_set_status ()
11031{
11032  return $1
11033} # as_fn_set_status
11034
11035# as_fn_exit STATUS
11036# -----------------
11037# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11038as_fn_exit ()
11039{
11040  set +e
11041  as_fn_set_status $1
11042  exit $1
11043} # as_fn_exit
11044
11045# as_fn_unset VAR
11046# ---------------
11047# Portably unset VAR.
11048as_fn_unset ()
11049{
11050  { eval $1=; unset $1;}
11051}
11052as_unset=as_fn_unset
11053# as_fn_append VAR VALUE
11054# ----------------------
11055# Append the text in VALUE to the end of the definition contained in VAR. Take
11056# advantage of any shell optimizations that allow amortized linear growth over
11057# repeated appends, instead of the typical quadratic growth present in naive
11058# implementations.
11059if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11060  eval 'as_fn_append ()
11061  {
11062    eval $1+=\$2
11063  }'
11064else
11065  as_fn_append ()
11066  {
11067    eval $1=\$$1\$2
11068  }
11069fi # as_fn_append
11070
11071# as_fn_arith ARG...
11072# ------------------
11073# Perform arithmetic evaluation on the ARGs, and store the result in the
11074# global $as_val. Take advantage of shells that can avoid forks. The arguments
11075# must be portable across $(()) and expr.
11076if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11077  eval 'as_fn_arith ()
11078  {
11079    as_val=$(( $* ))
11080  }'
11081else
11082  as_fn_arith ()
11083  {
11084    as_val=`expr "$@" || test $? -eq 1`
11085  }
11086fi # as_fn_arith
11087
11088
11089if expr a : '\(a\)' >/dev/null 2>&1 &&
11090   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11091  as_expr=expr
11092else
11093  as_expr=false
11094fi
11095
11096if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11097  as_basename=basename
11098else
11099  as_basename=false
11100fi
11101
11102if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11103  as_dirname=dirname
11104else
11105  as_dirname=false
11106fi
11107
11108as_me=`$as_basename -- "$0" ||
11109$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11110	 X"$0" : 'X\(//\)$' \| \
11111	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11112$as_echo X/"$0" |
11113    sed '/^.*\/\([^/][^/]*\)\/*$/{
11114	    s//\1/
11115	    q
11116	  }
11117	  /^X\/\(\/\/\)$/{
11118	    s//\1/
11119	    q
11120	  }
11121	  /^X\/\(\/\).*/{
11122	    s//\1/
11123	    q
11124	  }
11125	  s/.*/./; q'`
11126
11127# Avoid depending upon Character Ranges.
11128as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11129as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11130as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11131as_cr_digits='0123456789'
11132as_cr_alnum=$as_cr_Letters$as_cr_digits
11133
11134ECHO_C= ECHO_N= ECHO_T=
11135case `echo -n x` in #(((((
11136-n*)
11137  case `echo 'xy\c'` in
11138  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11139  xy)  ECHO_C='\c';;
11140  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11141       ECHO_T='	';;
11142  esac;;
11143*)
11144  ECHO_N='-n';;
11145esac
11146
11147rm -f conf$$ conf$$.exe conf$$.file
11148if test -d conf$$.dir; then
11149  rm -f conf$$.dir/conf$$.file
11150else
11151  rm -f conf$$.dir
11152  mkdir conf$$.dir 2>/dev/null
11153fi
11154if (echo >conf$$.file) 2>/dev/null; then
11155  if ln -s conf$$.file conf$$ 2>/dev/null; then
11156    as_ln_s='ln -s'
11157    # ... but there are two gotchas:
11158    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11159    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11160    # In both cases, we have to default to `cp -pR'.
11161    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11162      as_ln_s='cp -pR'
11163  elif ln conf$$.file conf$$ 2>/dev/null; then
11164    as_ln_s=ln
11165  else
11166    as_ln_s='cp -pR'
11167  fi
11168else
11169  as_ln_s='cp -pR'
11170fi
11171rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11172rmdir conf$$.dir 2>/dev/null
11173
11174
11175# as_fn_mkdir_p
11176# -------------
11177# Create "$as_dir" as a directory, including parents if necessary.
11178as_fn_mkdir_p ()
11179{
11180
11181  case $as_dir in #(
11182  -*) as_dir=./$as_dir;;
11183  esac
11184  test -d "$as_dir" || eval $as_mkdir_p || {
11185    as_dirs=
11186    while :; do
11187      case $as_dir in #(
11188      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11189      *) as_qdir=$as_dir;;
11190      esac
11191      as_dirs="'$as_qdir' $as_dirs"
11192      as_dir=`$as_dirname -- "$as_dir" ||
11193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11194	 X"$as_dir" : 'X\(//\)[^/]' \| \
11195	 X"$as_dir" : 'X\(//\)$' \| \
11196	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11197$as_echo X"$as_dir" |
11198    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11199	    s//\1/
11200	    q
11201	  }
11202	  /^X\(\/\/\)[^/].*/{
11203	    s//\1/
11204	    q
11205	  }
11206	  /^X\(\/\/\)$/{
11207	    s//\1/
11208	    q
11209	  }
11210	  /^X\(\/\).*/{
11211	    s//\1/
11212	    q
11213	  }
11214	  s/.*/./; q'`
11215      test -d "$as_dir" && break
11216    done
11217    test -z "$as_dirs" || eval "mkdir $as_dirs"
11218  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11219
11220
11221} # as_fn_mkdir_p
11222if mkdir -p . 2>/dev/null; then
11223  as_mkdir_p='mkdir -p "$as_dir"'
11224else
11225  test -d ./-p && rmdir ./-p
11226  as_mkdir_p=false
11227fi
11228
11229
11230# as_fn_executable_p FILE
11231# -----------------------
11232# Test if FILE is an executable regular file.
11233as_fn_executable_p ()
11234{
11235  test -f "$1" && test -x "$1"
11236} # as_fn_executable_p
11237as_test_x='test -x'
11238as_executable_p=as_fn_executable_p
11239
11240# Sed expression to map a string onto a valid CPP name.
11241as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11242
11243# Sed expression to map a string onto a valid variable name.
11244as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11245
11246
11247exec 6>&1
11248## ----------------------------------- ##
11249## Main body of $CONFIG_STATUS script. ##
11250## ----------------------------------- ##
11251_ASEOF
11252test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11253
11254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11255# Save the log message, to keep $0 and so on meaningful, and to
11256# report actual input values of CONFIG_FILES etc. instead of their
11257# values after options handling.
11258ac_log="
11259This file was extended by xtrap $as_me 1.0.3, which was
11260generated by GNU Autoconf 2.69.  Invocation command line was
11261
11262  CONFIG_FILES    = $CONFIG_FILES
11263  CONFIG_HEADERS  = $CONFIG_HEADERS
11264  CONFIG_LINKS    = $CONFIG_LINKS
11265  CONFIG_COMMANDS = $CONFIG_COMMANDS
11266  $ $0 $@
11267
11268on `(hostname || uname -n) 2>/dev/null | sed 1q`
11269"
11270
11271_ACEOF
11272
11273case $ac_config_files in *"
11274"*) set x $ac_config_files; shift; ac_config_files=$*;;
11275esac
11276
11277case $ac_config_headers in *"
11278"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11279esac
11280
11281
11282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11283# Files that config.status was made for.
11284config_files="$ac_config_files"
11285config_headers="$ac_config_headers"
11286config_commands="$ac_config_commands"
11287
11288_ACEOF
11289
11290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11291ac_cs_usage="\
11292\`$as_me' instantiates files and other configuration actions
11293from templates according to the current configuration.  Unless the files
11294and actions are specified as TAGs, all are instantiated by default.
11295
11296Usage: $0 [OPTION]... [TAG]...
11297
11298  -h, --help       print this help, then exit
11299  -V, --version    print version number and configuration settings, then exit
11300      --config     print configuration, then exit
11301  -q, --quiet, --silent
11302                   do not print progress messages
11303  -d, --debug      don't remove temporary files
11304      --recheck    update $as_me by reconfiguring in the same conditions
11305      --file=FILE[:TEMPLATE]
11306                   instantiate the configuration file FILE
11307      --header=FILE[:TEMPLATE]
11308                   instantiate the configuration header FILE
11309
11310Configuration files:
11311$config_files
11312
11313Configuration headers:
11314$config_headers
11315
11316Configuration commands:
11317$config_commands
11318
11319Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11320
11321_ACEOF
11322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11323ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11324ac_cs_version="\\
11325xtrap config.status 1.0.3
11326configured by $0, generated by GNU Autoconf 2.69,
11327  with options \\"\$ac_cs_config\\"
11328
11329Copyright (C) 2012 Free Software Foundation, Inc.
11330This config.status script is free software; the Free Software Foundation
11331gives unlimited permission to copy, distribute and modify it."
11332
11333ac_pwd='$ac_pwd'
11334srcdir='$srcdir'
11335INSTALL='$INSTALL'
11336MKDIR_P='$MKDIR_P'
11337AWK='$AWK'
11338test -n "\$AWK" || AWK=awk
11339_ACEOF
11340
11341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11342# The default lists apply if the user does not specify any file.
11343ac_need_defaults=:
11344while test $# != 0
11345do
11346  case $1 in
11347  --*=?*)
11348    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11349    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11350    ac_shift=:
11351    ;;
11352  --*=)
11353    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11354    ac_optarg=
11355    ac_shift=:
11356    ;;
11357  *)
11358    ac_option=$1
11359    ac_optarg=$2
11360    ac_shift=shift
11361    ;;
11362  esac
11363
11364  case $ac_option in
11365  # Handling of the options.
11366  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11367    ac_cs_recheck=: ;;
11368  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11369    $as_echo "$ac_cs_version"; exit ;;
11370  --config | --confi | --conf | --con | --co | --c )
11371    $as_echo "$ac_cs_config"; exit ;;
11372  --debug | --debu | --deb | --de | --d | -d )
11373    debug=: ;;
11374  --file | --fil | --fi | --f )
11375    $ac_shift
11376    case $ac_optarg in
11377    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11378    '') as_fn_error $? "missing file argument" ;;
11379    esac
11380    as_fn_append CONFIG_FILES " '$ac_optarg'"
11381    ac_need_defaults=false;;
11382  --header | --heade | --head | --hea )
11383    $ac_shift
11384    case $ac_optarg in
11385    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11386    esac
11387    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11388    ac_need_defaults=false;;
11389  --he | --h)
11390    # Conflict between --help and --header
11391    as_fn_error $? "ambiguous option: \`$1'
11392Try \`$0 --help' for more information.";;
11393  --help | --hel | -h )
11394    $as_echo "$ac_cs_usage"; exit ;;
11395  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11396  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11397    ac_cs_silent=: ;;
11398
11399  # This is an error.
11400  -*) as_fn_error $? "unrecognized option: \`$1'
11401Try \`$0 --help' for more information." ;;
11402
11403  *) as_fn_append ac_config_targets " $1"
11404     ac_need_defaults=false ;;
11405
11406  esac
11407  shift
11408done
11409
11410ac_configure_extra_args=
11411
11412if $ac_cs_silent; then
11413  exec 6>/dev/null
11414  ac_configure_extra_args="$ac_configure_extra_args --silent"
11415fi
11416
11417_ACEOF
11418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11419if \$ac_cs_recheck; then
11420  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11421  shift
11422  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11423  CONFIG_SHELL='$SHELL'
11424  export CONFIG_SHELL
11425  exec "\$@"
11426fi
11427
11428_ACEOF
11429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11430exec 5>>config.log
11431{
11432  echo
11433  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11434## Running $as_me. ##
11435_ASBOX
11436  $as_echo "$ac_log"
11437} >&5
11438
11439_ACEOF
11440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11441#
11442# INIT-COMMANDS
11443#
11444AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11445
11446_ACEOF
11447
11448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11449
11450# Handling of arguments.
11451for ac_config_target in $ac_config_targets
11452do
11453  case $ac_config_target in
11454    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11455    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11456    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11457
11458  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11459  esac
11460done
11461
11462
11463# If the user did not use the arguments to specify the items to instantiate,
11464# then the envvar interface is used.  Set only those that are not.
11465# We use the long form for the default assignment because of an extremely
11466# bizarre bug on SunOS 4.1.3.
11467if $ac_need_defaults; then
11468  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11469  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11470  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11471fi
11472
11473# Have a temporary directory for convenience.  Make it in the build tree
11474# simply because there is no reason against having it here, and in addition,
11475# creating and moving files from /tmp can sometimes cause problems.
11476# Hook for its removal unless debugging.
11477# Note that there is a small window in which the directory will not be cleaned:
11478# after its creation but before its name has been assigned to `$tmp'.
11479$debug ||
11480{
11481  tmp= ac_tmp=
11482  trap 'exit_status=$?
11483  : "${ac_tmp:=$tmp}"
11484  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11485' 0
11486  trap 'as_fn_exit 1' 1 2 13 15
11487}
11488# Create a (secure) tmp directory for tmp files.
11489
11490{
11491  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11492  test -d "$tmp"
11493}  ||
11494{
11495  tmp=./conf$$-$RANDOM
11496  (umask 077 && mkdir "$tmp")
11497} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11498ac_tmp=$tmp
11499
11500# Set up the scripts for CONFIG_FILES section.
11501# No need to generate them if there are no CONFIG_FILES.
11502# This happens for instance with `./config.status config.h'.
11503if test -n "$CONFIG_FILES"; then
11504
11505
11506ac_cr=`echo X | tr X '\015'`
11507# On cygwin, bash can eat \r inside `` if the user requested igncr.
11508# But we know of no other shell where ac_cr would be empty at this
11509# point, so we can use a bashism as a fallback.
11510if test "x$ac_cr" = x; then
11511  eval ac_cr=\$\'\\r\'
11512fi
11513ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11514if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11515  ac_cs_awk_cr='\\r'
11516else
11517  ac_cs_awk_cr=$ac_cr
11518fi
11519
11520echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11521_ACEOF
11522
11523
11524{
11525  echo "cat >conf$$subs.awk <<_ACEOF" &&
11526  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11527  echo "_ACEOF"
11528} >conf$$subs.sh ||
11529  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11530ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11531ac_delim='%!_!# '
11532for ac_last_try in false false false false false :; do
11533  . ./conf$$subs.sh ||
11534    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11535
11536  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11537  if test $ac_delim_n = $ac_delim_num; then
11538    break
11539  elif $ac_last_try; then
11540    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11541  else
11542    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11543  fi
11544done
11545rm -f conf$$subs.sh
11546
11547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11548cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11549_ACEOF
11550sed -n '
11551h
11552s/^/S["/; s/!.*/"]=/
11553p
11554g
11555s/^[^!]*!//
11556:repl
11557t repl
11558s/'"$ac_delim"'$//
11559t delim
11560:nl
11561h
11562s/\(.\{148\}\)..*/\1/
11563t more1
11564s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11565p
11566n
11567b repl
11568:more1
11569s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11570p
11571g
11572s/.\{148\}//
11573t nl
11574:delim
11575h
11576s/\(.\{148\}\)..*/\1/
11577t more2
11578s/["\\]/\\&/g; s/^/"/; s/$/"/
11579p
11580b
11581:more2
11582s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11583p
11584g
11585s/.\{148\}//
11586t delim
11587' <conf$$subs.awk | sed '
11588/^[^""]/{
11589  N
11590  s/\n//
11591}
11592' >>$CONFIG_STATUS || ac_write_fail=1
11593rm -f conf$$subs.awk
11594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11595_ACAWK
11596cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11597  for (key in S) S_is_set[key] = 1
11598  FS = ""
11599
11600}
11601{
11602  line = $ 0
11603  nfields = split(line, field, "@")
11604  substed = 0
11605  len = length(field[1])
11606  for (i = 2; i < nfields; i++) {
11607    key = field[i]
11608    keylen = length(key)
11609    if (S_is_set[key]) {
11610      value = S[key]
11611      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11612      len += length(value) + length(field[++i])
11613      substed = 1
11614    } else
11615      len += 1 + keylen
11616  }
11617
11618  print line
11619}
11620
11621_ACAWK
11622_ACEOF
11623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11624if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11625  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11626else
11627  cat
11628fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11629  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11630_ACEOF
11631
11632# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11633# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11634# trailing colons and then remove the whole line if VPATH becomes empty
11635# (actually we leave an empty line to preserve line numbers).
11636if test "x$srcdir" = x.; then
11637  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11638h
11639s///
11640s/^/:/
11641s/[	 ]*$/:/
11642s/:\$(srcdir):/:/g
11643s/:\${srcdir}:/:/g
11644s/:@srcdir@:/:/g
11645s/^:*//
11646s/:*$//
11647x
11648s/\(=[	 ]*\).*/\1/
11649G
11650s/\n//
11651s/^[^=]*=[	 ]*$//
11652}'
11653fi
11654
11655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11656fi # test -n "$CONFIG_FILES"
11657
11658# Set up the scripts for CONFIG_HEADERS section.
11659# No need to generate them if there are no CONFIG_HEADERS.
11660# This happens for instance with `./config.status Makefile'.
11661if test -n "$CONFIG_HEADERS"; then
11662cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11663BEGIN {
11664_ACEOF
11665
11666# Transform confdefs.h into an awk script `defines.awk', embedded as
11667# here-document in config.status, that substitutes the proper values into
11668# config.h.in to produce config.h.
11669
11670# Create a delimiter string that does not exist in confdefs.h, to ease
11671# handling of long lines.
11672ac_delim='%!_!# '
11673for ac_last_try in false false :; do
11674  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11675  if test -z "$ac_tt"; then
11676    break
11677  elif $ac_last_try; then
11678    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11679  else
11680    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11681  fi
11682done
11683
11684# For the awk script, D is an array of macro values keyed by name,
11685# likewise P contains macro parameters if any.  Preserve backslash
11686# newline sequences.
11687
11688ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11689sed -n '
11690s/.\{148\}/&'"$ac_delim"'/g
11691t rset
11692:rset
11693s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11694t def
11695d
11696:def
11697s/\\$//
11698t bsnl
11699s/["\\]/\\&/g
11700s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11701D["\1"]=" \3"/p
11702s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11703d
11704:bsnl
11705s/["\\]/\\&/g
11706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11707D["\1"]=" \3\\\\\\n"\\/p
11708t cont
11709s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11710t cont
11711d
11712:cont
11713n
11714s/.\{148\}/&'"$ac_delim"'/g
11715t clear
11716:clear
11717s/\\$//
11718t bsnlc
11719s/["\\]/\\&/g; s/^/"/; s/$/"/p
11720d
11721:bsnlc
11722s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11723b cont
11724' <confdefs.h | sed '
11725s/'"$ac_delim"'/"\\\
11726"/g' >>$CONFIG_STATUS || ac_write_fail=1
11727
11728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11729  for (key in D) D_is_set[key] = 1
11730  FS = ""
11731}
11732/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11733  line = \$ 0
11734  split(line, arg, " ")
11735  if (arg[1] == "#") {
11736    defundef = arg[2]
11737    mac1 = arg[3]
11738  } else {
11739    defundef = substr(arg[1], 2)
11740    mac1 = arg[2]
11741  }
11742  split(mac1, mac2, "(") #)
11743  macro = mac2[1]
11744  prefix = substr(line, 1, index(line, defundef) - 1)
11745  if (D_is_set[macro]) {
11746    # Preserve the white space surrounding the "#".
11747    print prefix "define", macro P[macro] D[macro]
11748    next
11749  } else {
11750    # Replace #undef with comments.  This is necessary, for example,
11751    # in the case of _POSIX_SOURCE, which is predefined and required
11752    # on some systems where configure will not decide to define it.
11753    if (defundef == "undef") {
11754      print "/*", prefix defundef, macro, "*/"
11755      next
11756    }
11757  }
11758}
11759{ print }
11760_ACAWK
11761_ACEOF
11762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11763  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11764fi # test -n "$CONFIG_HEADERS"
11765
11766
11767eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11768shift
11769for ac_tag
11770do
11771  case $ac_tag in
11772  :[FHLC]) ac_mode=$ac_tag; continue;;
11773  esac
11774  case $ac_mode$ac_tag in
11775  :[FHL]*:*);;
11776  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11777  :[FH]-) ac_tag=-:-;;
11778  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11779  esac
11780  ac_save_IFS=$IFS
11781  IFS=:
11782  set x $ac_tag
11783  IFS=$ac_save_IFS
11784  shift
11785  ac_file=$1
11786  shift
11787
11788  case $ac_mode in
11789  :L) ac_source=$1;;
11790  :[FH])
11791    ac_file_inputs=
11792    for ac_f
11793    do
11794      case $ac_f in
11795      -) ac_f="$ac_tmp/stdin";;
11796      *) # Look for the file first in the build tree, then in the source tree
11797	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11798	 # because $ac_f cannot contain `:'.
11799	 test -f "$ac_f" ||
11800	   case $ac_f in
11801	   [\\/$]*) false;;
11802	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11803	   esac ||
11804	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11805      esac
11806      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11807      as_fn_append ac_file_inputs " '$ac_f'"
11808    done
11809
11810    # Let's still pretend it is `configure' which instantiates (i.e., don't
11811    # use $as_me), people would be surprised to read:
11812    #    /* config.h.  Generated by config.status.  */
11813    configure_input='Generated from '`
11814	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11815	`' by configure.'
11816    if test x"$ac_file" != x-; then
11817      configure_input="$ac_file.  $configure_input"
11818      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11819$as_echo "$as_me: creating $ac_file" >&6;}
11820    fi
11821    # Neutralize special characters interpreted by sed in replacement strings.
11822    case $configure_input in #(
11823    *\&* | *\|* | *\\* )
11824       ac_sed_conf_input=`$as_echo "$configure_input" |
11825       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11826    *) ac_sed_conf_input=$configure_input;;
11827    esac
11828
11829    case $ac_tag in
11830    *:-:* | *:-) cat >"$ac_tmp/stdin" \
11831      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11832    esac
11833    ;;
11834  esac
11835
11836  ac_dir=`$as_dirname -- "$ac_file" ||
11837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11838	 X"$ac_file" : 'X\(//\)[^/]' \| \
11839	 X"$ac_file" : 'X\(//\)$' \| \
11840	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11841$as_echo X"$ac_file" |
11842    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11843	    s//\1/
11844	    q
11845	  }
11846	  /^X\(\/\/\)[^/].*/{
11847	    s//\1/
11848	    q
11849	  }
11850	  /^X\(\/\/\)$/{
11851	    s//\1/
11852	    q
11853	  }
11854	  /^X\(\/\).*/{
11855	    s//\1/
11856	    q
11857	  }
11858	  s/.*/./; q'`
11859  as_dir="$ac_dir"; as_fn_mkdir_p
11860  ac_builddir=.
11861
11862case "$ac_dir" in
11863.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11864*)
11865  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11866  # A ".." for each directory in $ac_dir_suffix.
11867  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11868  case $ac_top_builddir_sub in
11869  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11870  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11871  esac ;;
11872esac
11873ac_abs_top_builddir=$ac_pwd
11874ac_abs_builddir=$ac_pwd$ac_dir_suffix
11875# for backward compatibility:
11876ac_top_builddir=$ac_top_build_prefix
11877
11878case $srcdir in
11879  .)  # We are building in place.
11880    ac_srcdir=.
11881    ac_top_srcdir=$ac_top_builddir_sub
11882    ac_abs_top_srcdir=$ac_pwd ;;
11883  [\\/]* | ?:[\\/]* )  # Absolute name.
11884    ac_srcdir=$srcdir$ac_dir_suffix;
11885    ac_top_srcdir=$srcdir
11886    ac_abs_top_srcdir=$srcdir ;;
11887  *) # Relative name.
11888    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11889    ac_top_srcdir=$ac_top_build_prefix$srcdir
11890    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11891esac
11892ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11893
11894
11895  case $ac_mode in
11896  :F)
11897  #
11898  # CONFIG_FILE
11899  #
11900
11901  case $INSTALL in
11902  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11903  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11904  esac
11905  ac_MKDIR_P=$MKDIR_P
11906  case $MKDIR_P in
11907  [\\/$]* | ?:[\\/]* ) ;;
11908  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11909  esac
11910_ACEOF
11911
11912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11913# If the template does not know about datarootdir, expand it.
11914# FIXME: This hack should be removed a few years after 2.60.
11915ac_datarootdir_hack=; ac_datarootdir_seen=
11916ac_sed_dataroot='
11917/datarootdir/ {
11918  p
11919  q
11920}
11921/@datadir@/p
11922/@docdir@/p
11923/@infodir@/p
11924/@localedir@/p
11925/@mandir@/p'
11926case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11927*datarootdir*) ac_datarootdir_seen=yes;;
11928*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11930$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11931_ACEOF
11932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11933  ac_datarootdir_hack='
11934  s&@datadir@&$datadir&g
11935  s&@docdir@&$docdir&g
11936  s&@infodir@&$infodir&g
11937  s&@localedir@&$localedir&g
11938  s&@mandir@&$mandir&g
11939  s&\\\${datarootdir}&$datarootdir&g' ;;
11940esac
11941_ACEOF
11942
11943# Neutralize VPATH when `$srcdir' = `.'.
11944# Shell code in configure.ac might set extrasub.
11945# FIXME: do we really want to maintain this feature?
11946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11947ac_sed_extra="$ac_vpsub
11948$extrasub
11949_ACEOF
11950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11951:t
11952/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11953s|@configure_input@|$ac_sed_conf_input|;t t
11954s&@top_builddir@&$ac_top_builddir_sub&;t t
11955s&@top_build_prefix@&$ac_top_build_prefix&;t t
11956s&@srcdir@&$ac_srcdir&;t t
11957s&@abs_srcdir@&$ac_abs_srcdir&;t t
11958s&@top_srcdir@&$ac_top_srcdir&;t t
11959s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11960s&@builddir@&$ac_builddir&;t t
11961s&@abs_builddir@&$ac_abs_builddir&;t t
11962s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11963s&@INSTALL@&$ac_INSTALL&;t t
11964s&@MKDIR_P@&$ac_MKDIR_P&;t t
11965$ac_datarootdir_hack
11966"
11967eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11968  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11969
11970test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11971  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11972  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11973      "$ac_tmp/out"`; test -z "$ac_out"; } &&
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11975which seems to be undefined.  Please make sure it is defined" >&5
11976$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11977which seems to be undefined.  Please make sure it is defined" >&2;}
11978
11979  rm -f "$ac_tmp/stdin"
11980  case $ac_file in
11981  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11982  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11983  esac \
11984  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11985 ;;
11986  :H)
11987  #
11988  # CONFIG_HEADER
11989  #
11990  if test x"$ac_file" != x-; then
11991    {
11992      $as_echo "/* $configure_input  */" \
11993      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11994    } >"$ac_tmp/config.h" \
11995      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11996    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11997      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11998$as_echo "$as_me: $ac_file is unchanged" >&6;}
11999    else
12000      rm -f "$ac_file"
12001      mv "$ac_tmp/config.h" "$ac_file" \
12002	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12003    fi
12004  else
12005    $as_echo "/* $configure_input  */" \
12006      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12007      || as_fn_error $? "could not create -" "$LINENO" 5
12008  fi
12009# Compute "$ac_file"'s index in $config_headers.
12010_am_arg="$ac_file"
12011_am_stamp_count=1
12012for _am_header in $config_headers :; do
12013  case $_am_header in
12014    $_am_arg | $_am_arg:* )
12015      break ;;
12016    * )
12017      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12018  esac
12019done
12020echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12021$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12022	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12023	 X"$_am_arg" : 'X\(//\)$' \| \
12024	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12025$as_echo X"$_am_arg" |
12026    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12027	    s//\1/
12028	    q
12029	  }
12030	  /^X\(\/\/\)[^/].*/{
12031	    s//\1/
12032	    q
12033	  }
12034	  /^X\(\/\/\)$/{
12035	    s//\1/
12036	    q
12037	  }
12038	  /^X\(\/\).*/{
12039	    s//\1/
12040	    q
12041	  }
12042	  s/.*/./; q'`/stamp-h$_am_stamp_count
12043 ;;
12044
12045  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12046$as_echo "$as_me: executing $ac_file commands" >&6;}
12047 ;;
12048  esac
12049
12050
12051  case $ac_file$ac_mode in
12052    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12053  # Older Autoconf quotes --file arguments for eval, but not when files
12054  # are listed without --file.  Let's play safe and only enable the eval
12055  # if we detect the quoting.
12056  case $CONFIG_FILES in
12057  *\'*) eval set x "$CONFIG_FILES" ;;
12058  *)   set x $CONFIG_FILES ;;
12059  esac
12060  shift
12061  for mf
12062  do
12063    # Strip MF so we end up with the name of the file.
12064    mf=`echo "$mf" | sed -e 's/:.*$//'`
12065    # Check whether this is an Automake generated Makefile or not.
12066    # We used to match only the files named 'Makefile.in', but
12067    # some people rename them; so instead we look at the file content.
12068    # Grep'ing the first line is not enough: some people post-process
12069    # each Makefile.in and add a new line on top of each file to say so.
12070    # Grep'ing the whole file is not good either: AIX grep has a line
12071    # limit of 2048, but all sed's we know have understand at least 4000.
12072    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12073      dirpart=`$as_dirname -- "$mf" ||
12074$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12075	 X"$mf" : 'X\(//\)[^/]' \| \
12076	 X"$mf" : 'X\(//\)$' \| \
12077	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12078$as_echo X"$mf" |
12079    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12080	    s//\1/
12081	    q
12082	  }
12083	  /^X\(\/\/\)[^/].*/{
12084	    s//\1/
12085	    q
12086	  }
12087	  /^X\(\/\/\)$/{
12088	    s//\1/
12089	    q
12090	  }
12091	  /^X\(\/\).*/{
12092	    s//\1/
12093	    q
12094	  }
12095	  s/.*/./; q'`
12096    else
12097      continue
12098    fi
12099    # Extract the definition of DEPDIR, am__include, and am__quote
12100    # from the Makefile without running 'make'.
12101    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12102    test -z "$DEPDIR" && continue
12103    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12104    test -z "$am__include" && continue
12105    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12106    # Find all dependency output files, they are included files with
12107    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12108    # simplest approach to changing $(DEPDIR) to its actual value in the
12109    # expansion.
12110    for file in `sed -n "
12111      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12112	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12113      # Make sure the directory exists.
12114      test -f "$dirpart/$file" && continue
12115      fdir=`$as_dirname -- "$file" ||
12116$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12117	 X"$file" : 'X\(//\)[^/]' \| \
12118	 X"$file" : 'X\(//\)$' \| \
12119	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12120$as_echo X"$file" |
12121    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12122	    s//\1/
12123	    q
12124	  }
12125	  /^X\(\/\/\)[^/].*/{
12126	    s//\1/
12127	    q
12128	  }
12129	  /^X\(\/\/\)$/{
12130	    s//\1/
12131	    q
12132	  }
12133	  /^X\(\/\).*/{
12134	    s//\1/
12135	    q
12136	  }
12137	  s/.*/./; q'`
12138      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12139      # echo "creating $dirpart/$file"
12140      echo '# dummy' > "$dirpart/$file"
12141    done
12142  done
12143}
12144 ;;
12145
12146  esac
12147done # for ac_tag
12148
12149
12150as_fn_exit 0
12151_ACEOF
12152ac_clean_files=$ac_clean_files_save
12153
12154test $ac_write_fail = 0 ||
12155  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12156
12157
12158# configure is writing to config.log, and then calls config.status.
12159# config.status does its own redirection, appending to config.log.
12160# Unfortunately, on DOS this fails, as config.log is still kept open
12161# by configure, so config.status won't be able to write to it; its
12162# output is simply discarded.  So we exec the FD to /dev/null,
12163# effectively closing config.log, so it can be properly (re)opened and
12164# appended to by config.status.  When coming back to configure, we
12165# need to make the FD available again.
12166if test "$no_create" != yes; then
12167  ac_cs_success=:
12168  ac_config_status_args=
12169  test "$silent" = yes &&
12170    ac_config_status_args="$ac_config_status_args --quiet"
12171  exec 5>/dev/null
12172  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12173  exec 5>>config.log
12174  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12175  # would make configure fail if this is the last instruction.
12176  $ac_cs_success || as_fn_exit 1
12177fi
12178if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12180$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12181fi
12182
12183