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