configure revision 8a954913
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for imake 1.0.8.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/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/util/imake/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='imake'
583PACKAGE_TARNAME='imake'
584PACKAGE_VERSION='1.0.8'
585PACKAGE_STRING='imake 1.0.8'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/imake/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
630XPROTO_LIBS
631XPROTO_CFLAGS
632BUILD_MKHTMLINDEX_FALSE
633BUILD_MKHTMLINDEX_TRUE
634BUILD_CLEANLINKS_FALSE
635BUILD_CLEANLINKS_TRUE
636BUILD_MKDIRHIER_FALSE
637BUILD_MKDIRHIER_TRUE
638BUILD_MERGELIB_FALSE
639BUILD_MERGELIB_TRUE
640BUILD_CCMAKEDEP_FALSE
641BUILD_CCMAKEDEP_TRUE
642BUILD_XMKMF_FALSE
643BUILD_XMKMF_TRUE
644BUILD_MAKEG_FALSE
645BUILD_MAKEG_TRUE
646BUILD_REVPATH_FALSE
647BUILD_REVPATH_TRUE
648RANLIB
649ARCMD
650PREPROCESSCMD_MKDEPEND
651XCONFDIR
652HAS_PERL_FALSE
653HAS_PERL_TRUE
654HAS_PERL
655CPP_PROGRAM
656TRADITIONALCPPFLAGS
657RAWCPPFLAGS
658RAWCPP
659MAN_SUBSTS
660XORG_MAN_PAGE
661ADMIN_MAN_DIR
662DRIVER_MAN_DIR
663MISC_MAN_DIR
664FILE_MAN_DIR
665LIB_MAN_DIR
666APP_MAN_DIR
667ADMIN_MAN_SUFFIX
668DRIVER_MAN_SUFFIX
669MISC_MAN_SUFFIX
670FILE_MAN_SUFFIX
671LIB_MAN_SUFFIX
672APP_MAN_SUFFIX
673SED
674host_os
675host_vendor
676host_cpu
677host
678build_os
679build_vendor
680build_cpu
681build
682INSTALL_CMD
683PKG_CONFIG_LIBDIR
684PKG_CONFIG_PATH
685PKG_CONFIG
686CHANGELOG_CMD
687STRICT_CFLAGS
688CWARNFLAGS
689BASE_CFLAGS
690EGREP
691GREP
692CPP
693am__fastdepCC_FALSE
694am__fastdepCC_TRUE
695CCDEPMODE
696am__nodep
697AMDEPBACKSLASH
698AMDEP_FALSE
699AMDEP_TRUE
700am__quote
701am__include
702DEPDIR
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710AM_BACKSLASH
711AM_DEFAULT_VERBOSITY
712AM_DEFAULT_V
713AM_V
714am__untar
715am__tar
716AMTAR
717am__leading_dot
718SET_MAKE
719AWK
720mkdir_p
721MKDIR_P
722INSTALL_STRIP_PROGRAM
723STRIP
724install_sh
725MAKEINFO
726AUTOHEADER
727AUTOMAKE
728AUTOCONF
729ACLOCAL
730VERSION
731PACKAGE
732CYGPATH_W
733am__isrc
734INSTALL_DATA
735INSTALL_SCRIPT
736INSTALL_PROGRAM
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_silent_rules
779enable_dependency_tracking
780enable_selective_werror
781enable_strict_compilation
782with_config_dir
783with_script_preproc_cmd
784with_create_lib_cmd
785with_clean_lib_cmd
786enable_revpath
787enable_makeg
788enable_xmkmf
789enable_ccmakedep
790enable_mergelib
791enable_mkdirhier
792enable_cleanlinks
793enable_mkhtmlindex
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804PKG_CONFIG
805PKG_CONFIG_PATH
806PKG_CONFIG_LIBDIR
807XPROTO_CFLAGS
808XPROTO_LIBS'
809
810
811# Initialize some variables set by options.
812ac_init_help=
813ac_init_version=false
814ac_unrecognized_opts=
815ac_unrecognized_sep=
816# The variables have the same names as the options, with
817# dashes changed to underlines.
818cache_file=/dev/null
819exec_prefix=NONE
820no_create=
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
829verbose=
830x_includes=NONE
831x_libraries=NONE
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
838# (The list follows the same order as the GNU Coding Standards.)
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
858
859ac_prev=
860ac_dashdash=
861for ac_option
862do
863  # If the previous option needs an argument, assign it.
864  if test -n "$ac_prev"; then
865    eval $ac_prev=\$ac_option
866    ac_prev=
867    continue
868  fi
869
870  case $ac_option in
871  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872  *=)   ac_optarg= ;;
873  *)    ac_optarg=yes ;;
874  esac
875
876  # Accept the important Cygnus configure options, so we can diagnose typos.
877
878  case $ac_dashdash$ac_option in
879  --)
880    ac_dashdash=yes ;;
881
882  -bindir | --bindir | --bindi | --bind | --bin | --bi)
883    ac_prev=bindir ;;
884  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885    bindir=$ac_optarg ;;
886
887  -build | --build | --buil | --bui | --bu)
888    ac_prev=build_alias ;;
889  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890    build_alias=$ac_optarg ;;
891
892  -cache-file | --cache-file | --cache-fil | --cache-fi \
893  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894    ac_prev=cache_file ;;
895  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897    cache_file=$ac_optarg ;;
898
899  --config-cache | -C)
900    cache_file=config.cache ;;
901
902  -datadir | --datadir | --datadi | --datad)
903    ac_prev=datadir ;;
904  -datadir=* | --datadir=* | --datadi=* | --datad=*)
905    datadir=$ac_optarg ;;
906
907  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908  | --dataroo | --dataro | --datar)
909    ac_prev=datarootdir ;;
910  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912    datarootdir=$ac_optarg ;;
913
914  -disable-* | --disable-*)
915    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916    # Reject names that are not valid shell variable names.
917    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918      as_fn_error $? "invalid feature name: $ac_useropt"
919    ac_useropt_orig=$ac_useropt
920    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921    case $ac_user_opts in
922      *"
923"enable_$ac_useropt"
924"*) ;;
925      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926	 ac_unrecognized_sep=', ';;
927    esac
928    eval enable_$ac_useropt=no ;;
929
930  -docdir | --docdir | --docdi | --doc | --do)
931    ac_prev=docdir ;;
932  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933    docdir=$ac_optarg ;;
934
935  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936    ac_prev=dvidir ;;
937  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938    dvidir=$ac_optarg ;;
939
940  -enable-* | --enable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: $ac_useropt"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=\$ac_optarg ;;
955
956  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958  | --exec | --exe | --ex)
959    ac_prev=exec_prefix ;;
960  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962  | --exec=* | --exe=* | --ex=*)
963    exec_prefix=$ac_optarg ;;
964
965  -gas | --gas | --ga | --g)
966    # Obsolete; use --with-gas.
967    with_gas=yes ;;
968
969  -help | --help | --hel | --he | -h)
970    ac_init_help=long ;;
971  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972    ac_init_help=recursive ;;
973  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974    ac_init_help=short ;;
975
976  -host | --host | --hos | --ho)
977    ac_prev=host_alias ;;
978  -host=* | --host=* | --hos=* | --ho=*)
979    host_alias=$ac_optarg ;;
980
981  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982    ac_prev=htmldir ;;
983  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984  | --ht=*)
985    htmldir=$ac_optarg ;;
986
987  -includedir | --includedir | --includedi | --included | --include \
988  | --includ | --inclu | --incl | --inc)
989    ac_prev=includedir ;;
990  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991  | --includ=* | --inclu=* | --incl=* | --inc=*)
992    includedir=$ac_optarg ;;
993
994  -infodir | --infodir | --infodi | --infod | --info | --inf)
995    ac_prev=infodir ;;
996  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997    infodir=$ac_optarg ;;
998
999  -libdir | --libdir | --libdi | --libd)
1000    ac_prev=libdir ;;
1001  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002    libdir=$ac_optarg ;;
1003
1004  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005  | --libexe | --libex | --libe)
1006    ac_prev=libexecdir ;;
1007  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008  | --libexe=* | --libex=* | --libe=*)
1009    libexecdir=$ac_optarg ;;
1010
1011  -localedir | --localedir | --localedi | --localed | --locale)
1012    ac_prev=localedir ;;
1013  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014    localedir=$ac_optarg ;;
1015
1016  -localstatedir | --localstatedir | --localstatedi | --localstated \
1017  | --localstate | --localstat | --localsta | --localst | --locals)
1018    ac_prev=localstatedir ;;
1019  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021    localstatedir=$ac_optarg ;;
1022
1023  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024    ac_prev=mandir ;;
1025  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026    mandir=$ac_optarg ;;
1027
1028  -nfp | --nfp | --nf)
1029    # Obsolete; use --without-fp.
1030    with_fp=no ;;
1031
1032  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033  | --no-cr | --no-c | -n)
1034    no_create=yes ;;
1035
1036  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038    no_recursion=yes ;;
1039
1040  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042  | --oldin | --oldi | --old | --ol | --o)
1043    ac_prev=oldincludedir ;;
1044  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047    oldincludedir=$ac_optarg ;;
1048
1049  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050    ac_prev=prefix ;;
1051  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052    prefix=$ac_optarg ;;
1053
1054  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055  | --program-pre | --program-pr | --program-p)
1056    ac_prev=program_prefix ;;
1057  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059    program_prefix=$ac_optarg ;;
1060
1061  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062  | --program-suf | --program-su | --program-s)
1063    ac_prev=program_suffix ;;
1064  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066    program_suffix=$ac_optarg ;;
1067
1068  -program-transform-name | --program-transform-name \
1069  | --program-transform-nam | --program-transform-na \
1070  | --program-transform-n | --program-transform- \
1071  | --program-transform | --program-transfor \
1072  | --program-transfo | --program-transf \
1073  | --program-trans | --program-tran \
1074  | --progr-tra | --program-tr | --program-t)
1075    ac_prev=program_transform_name ;;
1076  -program-transform-name=* | --program-transform-name=* \
1077  | --program-transform-nam=* | --program-transform-na=* \
1078  | --program-transform-n=* | --program-transform-=* \
1079  | --program-transform=* | --program-transfor=* \
1080  | --program-transfo=* | --program-transf=* \
1081  | --program-trans=* | --program-tran=* \
1082  | --progr-tra=* | --program-tr=* | --program-t=*)
1083    program_transform_name=$ac_optarg ;;
1084
1085  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086    ac_prev=pdfdir ;;
1087  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088    pdfdir=$ac_optarg ;;
1089
1090  -psdir | --psdir | --psdi | --psd | --ps)
1091    ac_prev=psdir ;;
1092  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093    psdir=$ac_optarg ;;
1094
1095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096  | -silent | --silent | --silen | --sile | --sil)
1097    silent=yes ;;
1098
1099  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100    ac_prev=sbindir ;;
1101  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102  | --sbi=* | --sb=*)
1103    sbindir=$ac_optarg ;;
1104
1105  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107  | --sharedst | --shareds | --shared | --share | --shar \
1108  | --sha | --sh)
1109    ac_prev=sharedstatedir ;;
1110  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113  | --sha=* | --sh=*)
1114    sharedstatedir=$ac_optarg ;;
1115
1116  -site | --site | --sit)
1117    ac_prev=site ;;
1118  -site=* | --site=* | --sit=*)
1119    site=$ac_optarg ;;
1120
1121  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122    ac_prev=srcdir ;;
1123  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124    srcdir=$ac_optarg ;;
1125
1126  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127  | --syscon | --sysco | --sysc | --sys | --sy)
1128    ac_prev=sysconfdir ;;
1129  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131    sysconfdir=$ac_optarg ;;
1132
1133  -target | --target | --targe | --targ | --tar | --ta | --t)
1134    ac_prev=target_alias ;;
1135  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136    target_alias=$ac_optarg ;;
1137
1138  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139    verbose=yes ;;
1140
1141  -version | --version | --versio | --versi | --vers | -V)
1142    ac_init_version=: ;;
1143
1144  -with-* | --with-*)
1145    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146    # Reject names that are not valid shell variable names.
1147    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148      as_fn_error $? "invalid package name: $ac_useropt"
1149    ac_useropt_orig=$ac_useropt
1150    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151    case $ac_user_opts in
1152      *"
1153"with_$ac_useropt"
1154"*) ;;
1155      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156	 ac_unrecognized_sep=', ';;
1157    esac
1158    eval with_$ac_useropt=\$ac_optarg ;;
1159
1160  -without-* | --without-*)
1161    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162    # Reject names that are not valid shell variable names.
1163    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164      as_fn_error $? "invalid package name: $ac_useropt"
1165    ac_useropt_orig=$ac_useropt
1166    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167    case $ac_user_opts in
1168      *"
1169"with_$ac_useropt"
1170"*) ;;
1171      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172	 ac_unrecognized_sep=', ';;
1173    esac
1174    eval with_$ac_useropt=no ;;
1175
1176  --x)
1177    # Obsolete; use --with-x.
1178    with_x=yes ;;
1179
1180  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181  | --x-incl | --x-inc | --x-in | --x-i)
1182    ac_prev=x_includes ;;
1183  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185    x_includes=$ac_optarg ;;
1186
1187  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189    ac_prev=x_libraries ;;
1190  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192    x_libraries=$ac_optarg ;;
1193
1194  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195Try \`$0 --help' for more information"
1196    ;;
1197
1198  *=*)
1199    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200    # Reject names that are not valid shell variable names.
1201    case $ac_envvar in #(
1202      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204    esac
1205    eval $ac_envvar=\$ac_optarg
1206    export $ac_envvar ;;
1207
1208  *)
1209    # FIXME: should be removed in autoconf 3.0.
1210    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214    ;;
1215
1216  esac
1217done
1218
1219if test -n "$ac_prev"; then
1220  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221  as_fn_error $? "missing argument to $ac_option"
1222fi
1223
1224if test -n "$ac_unrecognized_opts"; then
1225  case $enable_option_checking in
1226    no) ;;
1227    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229  esac
1230fi
1231
1232# Check all directory arguments for consistency.
1233for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234		datadir sysconfdir sharedstatedir localstatedir includedir \
1235		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236		libdir localedir mandir
1237do
1238  eval ac_val=\$$ac_var
1239  # Remove trailing slashes.
1240  case $ac_val in
1241    */ )
1242      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243      eval $ac_var=\$ac_val;;
1244  esac
1245  # Be sure to have absolute directory names.
1246  case $ac_val in
1247    [\\/$]* | ?:[\\/]* )  continue;;
1248    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249  esac
1250  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251done
1252
1253# There might be people who depend on the old broken behavior: `$host'
1254# used to hold the argument of --host etc.
1255# FIXME: To remove some day.
1256build=$build_alias
1257host=$host_alias
1258target=$target_alias
1259
1260# FIXME: To remove some day.
1261if test "x$host_alias" != x; then
1262  if test "x$build_alias" = x; then
1263    cross_compiling=maybe
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures imake 1.0.8 to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking ...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root [DATAROOTDIR/doc/imake]
1398  --htmldir=DIR           html documentation [DOCDIR]
1399  --dvidir=DIR            dvi documentation [DOCDIR]
1400  --pdfdir=DIR            pdf documentation [DOCDIR]
1401  --psdir=DIR             ps documentation [DOCDIR]
1402_ACEOF
1403
1404  cat <<\_ACEOF
1405
1406Program names:
1407  --program-prefix=PREFIX            prepend PREFIX to installed program names
1408  --program-suffix=SUFFIX            append SUFFIX to installed program names
1409  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1410
1411System types:
1412  --build=BUILD     configure for building on BUILD [guessed]
1413  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418  case $ac_init_help in
1419     short | recursive ) echo "Configuration of imake 1.0.8:";;
1420   esac
1421  cat <<\_ACEOF
1422
1423Optional Features:
1424  --disable-option-checking  ignore unrecognized --enable/--with options
1425  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427  --enable-silent-rules   less verbose build output (undo: "make V=1")
1428  --disable-silent-rules  verbose build output (undo: "make V=0")
1429  --enable-dependency-tracking
1430                          do not reject slow dependency extractors
1431  --disable-dependency-tracking
1432                          speeds up one-time build
1433  --disable-selective-werror
1434                          Turn off selective compiler errors. (default:
1435                          enabled)
1436  --enable-strict-compilation
1437                          Enable all warnings from compiler and make them
1438                          errors (default: disabled)
1439  --disable-revpath       Build revpath (default: enabled)
1440  --disable-makeg         Build makeg (default: enabled)
1441  --disable-xmkmf         Build xmkmf (default: enabled)
1442  --disable-ccmakedep     Build ccmakedep (default: enabled)
1443  --disable-mergelib      Build mergelib (default: enabled)
1444  --disable-mkdirhier     Build mkdirhier (default: enabled)
1445  --disable-cleanlinks    Build cleanlinks (default: enabled)
1446  --disable-mkhtmlindex   Build mkhtmlindex (default: enabled)
1447
1448Optional Packages:
1449  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451  --with-config-dir=<path>
1452                          Path to config dir (default: ${libdir}/X11/config)
1453  --with-script-preproc-cmd=CMD
1454                          Preprocessor command to run on scripts (default:
1455                          "gcc -E")
1456  --with-create-lib-cmd=CMD
1457                          Command to create libraries (default: "ar clq")
1458  --with-clean-lib-cmd=CMD
1459                          Command to clean up libraries (default: "ranlib")
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  LIBS        libraries to pass to the linker, e.g. -l<library>
1467  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468              you have headers in a nonstandard directory <include dir>
1469  CPP         C preprocessor
1470  PKG_CONFIG  path to pkg-config utility
1471  PKG_CONFIG_PATH
1472              directories to add to pkg-config's search path
1473  PKG_CONFIG_LIBDIR
1474              path overriding pkg-config's built-in search path
1475  XPROTO_CFLAGS
1476              C compiler flags for XPROTO, overriding pkg-config
1477  XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1478
1479Use these variables to override the choices made by `configure' or to help
1480it to find libraries and programs with nonstandard names/locations.
1481
1482Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/issues>.
1483_ACEOF
1484ac_status=$?
1485fi
1486
1487if test "$ac_init_help" = "recursive"; then
1488  # If there are subdirs, report their specific --help.
1489  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490    test -d "$ac_dir" ||
1491      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492      continue
1493    ac_builddir=.
1494
1495case "$ac_dir" in
1496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497*)
1498  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499  # A ".." for each directory in $ac_dir_suffix.
1500  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501  case $ac_top_builddir_sub in
1502  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504  esac ;;
1505esac
1506ac_abs_top_builddir=$ac_pwd
1507ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508# for backward compatibility:
1509ac_top_builddir=$ac_top_build_prefix
1510
1511case $srcdir in
1512  .)  # We are building in place.
1513    ac_srcdir=.
1514    ac_top_srcdir=$ac_top_builddir_sub
1515    ac_abs_top_srcdir=$ac_pwd ;;
1516  [\\/]* | ?:[\\/]* )  # Absolute name.
1517    ac_srcdir=$srcdir$ac_dir_suffix;
1518    ac_top_srcdir=$srcdir
1519    ac_abs_top_srcdir=$srcdir ;;
1520  *) # Relative name.
1521    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522    ac_top_srcdir=$ac_top_build_prefix$srcdir
1523    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524esac
1525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526
1527    cd "$ac_dir" || { ac_status=$?; continue; }
1528    # Check for guested configure.
1529    if test -f "$ac_srcdir/configure.gnu"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532    elif test -f "$ac_srcdir/configure"; then
1533      echo &&
1534      $SHELL "$ac_srcdir/configure" --help=recursive
1535    else
1536      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537    fi || ac_status=$?
1538    cd "$ac_pwd" || { ac_status=$?; break; }
1539  done
1540fi
1541
1542test -n "$ac_init_help" && exit $ac_status
1543if $ac_init_version; then
1544  cat <<\_ACEOF
1545imake configure 1.0.8
1546generated by GNU Autoconf 2.69
1547
1548Copyright (C) 2012 Free Software Foundation, Inc.
1549This configure script is free software; the Free Software Foundation
1550gives unlimited permission to copy, distribute and modify it.
1551_ACEOF
1552  exit
1553fi
1554
1555## ------------------------ ##
1556## Autoconf initialization. ##
1557## ------------------------ ##
1558
1559# ac_fn_c_try_compile LINENO
1560# --------------------------
1561# Try to compile conftest.$ac_ext, and return whether this succeeded.
1562ac_fn_c_try_compile ()
1563{
1564  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565  rm -f conftest.$ac_objext
1566  if { { ac_try="$ac_compile"
1567case "(($ac_try" in
1568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569  *) ac_try_echo=$ac_try;;
1570esac
1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572$as_echo "$ac_try_echo"; } >&5
1573  (eval "$ac_compile") 2>conftest.err
1574  ac_status=$?
1575  if test -s conftest.err; then
1576    grep -v '^ *+' conftest.err >conftest.er1
1577    cat conftest.er1 >&5
1578    mv -f conftest.er1 conftest.err
1579  fi
1580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581  test $ac_status = 0; } && {
1582	 test -z "$ac_c_werror_flag" ||
1583	 test ! -s conftest.err
1584       } && test -s conftest.$ac_objext; then :
1585  ac_retval=0
1586else
1587  $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590	ac_retval=1
1591fi
1592  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593  as_fn_set_status $ac_retval
1594
1595} # ac_fn_c_try_compile
1596
1597# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1598# ---------------------------------------------
1599# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1600# accordingly.
1601ac_fn_c_check_decl ()
1602{
1603  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604  as_decl_name=`echo $2|sed 's/ *(.*//'`
1605  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1607$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1608if eval \${$3+:} false; then :
1609  $as_echo_n "(cached) " >&6
1610else
1611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612/* end confdefs.h.  */
1613$4
1614int
1615main ()
1616{
1617#ifndef $as_decl_name
1618#ifdef __cplusplus
1619  (void) $as_decl_use;
1620#else
1621  (void) $as_decl_name;
1622#endif
1623#endif
1624
1625  ;
1626  return 0;
1627}
1628_ACEOF
1629if ac_fn_c_try_compile "$LINENO"; then :
1630  eval "$3=yes"
1631else
1632  eval "$3=no"
1633fi
1634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635fi
1636eval ac_res=\$$3
1637	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638$as_echo "$ac_res" >&6; }
1639  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641} # ac_fn_c_check_decl
1642
1643# ac_fn_c_try_cpp LINENO
1644# ----------------------
1645# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_cpp ()
1647{
1648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649  if { { ac_try="$ac_cpp conftest.$ac_ext"
1650case "(($ac_try" in
1651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652  *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657  ac_status=$?
1658  if test -s conftest.err; then
1659    grep -v '^ *+' conftest.err >conftest.er1
1660    cat conftest.er1 >&5
1661    mv -f conftest.er1 conftest.err
1662  fi
1663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664  test $ac_status = 0; } > conftest.i && {
1665	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666	 test ! -s conftest.err
1667       }; then :
1668  ac_retval=0
1669else
1670  $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673    ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_c_try_cpp
1679
1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_link") 2>&5
1695  ac_status=$?
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698  { { case "(($ac_try" in
1699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700  *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704  (eval "$ac_try") 2>&5
1705  ac_status=$?
1706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707  test $ac_status = 0; }; }; then :
1708  ac_retval=0
1709else
1710  $as_echo "$as_me: program exited with status $ac_status" >&5
1711       $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714       ac_retval=$ac_status
1715fi
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_run
1721
1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists and can be compiled using the include files in
1725# INCLUDES, setting the cache variable VAR accordingly.
1726ac_fn_c_check_header_compile ()
1727{
1728  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732  $as_echo_n "(cached) " >&6
1733else
1734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h.  */
1736$4
1737#include <$2>
1738_ACEOF
1739if ac_fn_c_try_compile "$LINENO"; then :
1740  eval "$3=yes"
1741else
1742  eval "$3=no"
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
1749  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750
1751} # ac_fn_c_check_header_compile
1752
1753# ac_fn_c_try_link LINENO
1754# -----------------------
1755# Try to link conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_link ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  rm -f conftest.$ac_objext conftest$ac_exeext
1760  if { { ac_try="$ac_link"
1761case "(($ac_try" in
1762  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763  *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767  (eval "$ac_link") 2>conftest.err
1768  ac_status=$?
1769  if test -s conftest.err; then
1770    grep -v '^ *+' conftest.err >conftest.er1
1771    cat conftest.er1 >&5
1772    mv -f conftest.er1 conftest.err
1773  fi
1774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775  test $ac_status = 0; } && {
1776	 test -z "$ac_c_werror_flag" ||
1777	 test ! -s conftest.err
1778       } && test -s conftest$ac_exeext && {
1779	 test "$cross_compiling" = yes ||
1780	 test -x conftest$ac_exeext
1781       }; then :
1782  ac_retval=0
1783else
1784  $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
1786
1787	ac_retval=1
1788fi
1789  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791  # interfere with the next link command; also delete a directory that is
1792  # left behind by Apple's compiler.  We do this before executing the actions.
1793  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795  as_fn_set_status $ac_retval
1796
1797} # ac_fn_c_try_link
1798
1799# ac_fn_c_check_func LINENO FUNC VAR
1800# ----------------------------------
1801# Tests whether FUNC exists, setting the cache variable VAR accordingly
1802ac_fn_c_check_func ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if eval \${$3+:} false; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1814#define $2 innocuous_$2
1815
1816/* System header to define __stub macros and hopefully few prototypes,
1817    which can conflict with char $2 (); below.
1818    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819    <limits.h> exists even on freestanding compilers.  */
1820
1821#ifdef __STDC__
1822# include <limits.h>
1823#else
1824# include <assert.h>
1825#endif
1826
1827#undef $2
1828
1829/* Override any GCC internal prototype to avoid an error.
1830   Use char because int might match the return type of a GCC
1831   builtin and then its argument prototype would still apply.  */
1832#ifdef __cplusplus
1833extern "C"
1834#endif
1835char $2 ();
1836/* The GNU C library defines this for functions which it implements
1837    to always fail with ENOSYS.  Some functions are actually named
1838    something starting with __ and the normal name is an alias.  */
1839#if defined __stub_$2 || defined __stub___$2
1840choke me
1841#endif
1842
1843int
1844main ()
1845{
1846return $2 ();
1847  ;
1848  return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_link "$LINENO"; then :
1852  eval "$3=yes"
1853else
1854  eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext \
1857    conftest$ac_exeext conftest.$ac_ext
1858fi
1859eval ac_res=\$$3
1860	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864} # ac_fn_c_check_func
1865cat >config.log <<_ACEOF
1866This file contains any messages produced by compilers while
1867running configure, to aid debugging if configure makes a mistake.
1868
1869It was created by imake $as_me 1.0.8, which was
1870generated by GNU Autoconf 2.69.  Invocation command line was
1871
1872  $ $0 $@
1873
1874_ACEOF
1875exec 5>>config.log
1876{
1877cat <<_ASUNAME
1878## --------- ##
1879## Platform. ##
1880## --------- ##
1881
1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1890
1891/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1892/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1895/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1896/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1897/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1898
1899_ASUNAME
1900
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906    $as_echo "PATH: $as_dir"
1907  done
1908IFS=$as_save_IFS
1909
1910} >&5
1911
1912cat >&5 <<_ACEOF
1913
1914
1915## ----------- ##
1916## Core tests. ##
1917## ----------- ##
1918
1919_ACEOF
1920
1921
1922# Keep a trace of the command line.
1923# Strip out --no-create and --no-recursion so they do not pile up.
1924# Strip out --silent because we don't want to record it for future runs.
1925# Also quote any args containing shell meta-characters.
1926# Make two passes to allow for proper duplicate-argument suppression.
1927ac_configure_args=
1928ac_configure_args0=
1929ac_configure_args1=
1930ac_must_keep_next=false
1931for ac_pass in 1 2
1932do
1933  for ac_arg
1934  do
1935    case $ac_arg in
1936    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938    | -silent | --silent | --silen | --sile | --sil)
1939      continue ;;
1940    *\'*)
1941      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942    esac
1943    case $ac_pass in
1944    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1945    2)
1946      as_fn_append ac_configure_args1 " '$ac_arg'"
1947      if test $ac_must_keep_next = true; then
1948	ac_must_keep_next=false # Got value, back to normal.
1949      else
1950	case $ac_arg in
1951	  *=* | --config-cache | -C | -disable-* | --disable-* \
1952	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954	  | -with-* | --with-* | -without-* | --without-* | --x)
1955	    case "$ac_configure_args0 " in
1956	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957	    esac
1958	    ;;
1959	  -* ) ac_must_keep_next=true ;;
1960	esac
1961      fi
1962      as_fn_append ac_configure_args " '$ac_arg'"
1963      ;;
1964    esac
1965  done
1966done
1967{ ac_configure_args0=; unset ac_configure_args0;}
1968{ ac_configure_args1=; unset ac_configure_args1;}
1969
1970# When interrupted or exit'd, cleanup temporary files, and complete
1971# config.log.  We remove comments because anyway the quotes in there
1972# would cause problems or look ugly.
1973# WARNING: Use '\'' to represent an apostrophe within the trap.
1974# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975trap 'exit_status=$?
1976  # Save into config.log some information that might help in debugging.
1977  {
1978    echo
1979
1980    $as_echo "## ---------------- ##
1981## Cache variables. ##
1982## ---------------- ##"
1983    echo
1984    # The following way of writing the cache mishandles newlines in values,
1985(
1986  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1987    eval ac_val=\$$ac_var
1988    case $ac_val in #(
1989    *${as_nl}*)
1990      case $ac_var in #(
1991      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1992$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1993      esac
1994      case $ac_var in #(
1995      _ | IFS | as_nl) ;; #(
1996      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1997      *) { eval $ac_var=; unset $ac_var;} ;;
1998      esac ;;
1999    esac
2000  done
2001  (set) 2>&1 |
2002    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2003    *${as_nl}ac_space=\ *)
2004      sed -n \
2005	"s/'\''/'\''\\\\'\'''\''/g;
2006	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2007      ;; #(
2008    *)
2009      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010      ;;
2011    esac |
2012    sort
2013)
2014    echo
2015
2016    $as_echo "## ----------------- ##
2017## Output variables. ##
2018## ----------------- ##"
2019    echo
2020    for ac_var in $ac_subst_vars
2021    do
2022      eval ac_val=\$$ac_var
2023      case $ac_val in
2024      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2025      esac
2026      $as_echo "$ac_var='\''$ac_val'\''"
2027    done | sort
2028    echo
2029
2030    if test -n "$ac_subst_files"; then
2031      $as_echo "## ------------------- ##
2032## File substitutions. ##
2033## ------------------- ##"
2034      echo
2035      for ac_var in $ac_subst_files
2036      do
2037	eval ac_val=\$$ac_var
2038	case $ac_val in
2039	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040	esac
2041	$as_echo "$ac_var='\''$ac_val'\''"
2042      done | sort
2043      echo
2044    fi
2045
2046    if test -s confdefs.h; then
2047      $as_echo "## ----------- ##
2048## confdefs.h. ##
2049## ----------- ##"
2050      echo
2051      cat confdefs.h
2052      echo
2053    fi
2054    test "$ac_signal" != 0 &&
2055      $as_echo "$as_me: caught signal $ac_signal"
2056    $as_echo "$as_me: exit $exit_status"
2057  } >&5
2058  rm -f core *.core core.conftest.* &&
2059    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2060    exit $exit_status
2061' 0
2062for ac_signal in 1 2 13 15; do
2063  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2064done
2065ac_signal=0
2066
2067# confdefs.h avoids OS command line length limits that DEFS can exceed.
2068rm -f -r conftest* confdefs.h
2069
2070$as_echo "/* confdefs.h */" > confdefs.h
2071
2072# Predefined preprocessor variables.
2073
2074cat >>confdefs.h <<_ACEOF
2075#define PACKAGE_NAME "$PACKAGE_NAME"
2076_ACEOF
2077
2078cat >>confdefs.h <<_ACEOF
2079#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2080_ACEOF
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_VERSION "$PACKAGE_VERSION"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_STRING "$PACKAGE_STRING"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_URL "$PACKAGE_URL"
2096_ACEOF
2097
2098
2099# Let the site file select an alternate cache file if it wants to.
2100# Prefer an explicitly selected file to automatically selected ones.
2101ac_site_file1=NONE
2102ac_site_file2=NONE
2103if test -n "$CONFIG_SITE"; then
2104  # We do not want a PATH search for config.site.
2105  case $CONFIG_SITE in #((
2106    -*)  ac_site_file1=./$CONFIG_SITE;;
2107    */*) ac_site_file1=$CONFIG_SITE;;
2108    *)   ac_site_file1=./$CONFIG_SITE;;
2109  esac
2110elif test "x$prefix" != xNONE; then
2111  ac_site_file1=$prefix/share/config.site
2112  ac_site_file2=$prefix/etc/config.site
2113else
2114  ac_site_file1=$ac_default_prefix/share/config.site
2115  ac_site_file2=$ac_default_prefix/etc/config.site
2116fi
2117for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2118do
2119  test "x$ac_site_file" = xNONE && continue
2120  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2121    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123    sed 's/^/| /' "$ac_site_file" >&5
2124    . "$ac_site_file" \
2125      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127as_fn_error $? "failed to load site script $ac_site_file
2128See \`config.log' for more details" "$LINENO" 5; }
2129  fi
2130done
2131
2132if test -r "$cache_file"; then
2133  # Some versions of bash will fail to source /dev/null (special files
2134  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2135  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137$as_echo "$as_me: loading cache $cache_file" >&6;}
2138    case $cache_file in
2139      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140      *)                      . "./$cache_file";;
2141    esac
2142  fi
2143else
2144  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145$as_echo "$as_me: creating cache $cache_file" >&6;}
2146  >$cache_file
2147fi
2148
2149# Check that the precious variables saved in the cache have kept the same
2150# value.
2151ac_cache_corrupted=false
2152for ac_var in $ac_precious_vars; do
2153  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2154  eval ac_new_set=\$ac_env_${ac_var}_set
2155  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2156  eval ac_new_val=\$ac_env_${ac_var}_value
2157  case $ac_old_set,$ac_new_set in
2158    set,)
2159      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2160$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2161      ac_cache_corrupted=: ;;
2162    ,set)
2163      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2164$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2165      ac_cache_corrupted=: ;;
2166    ,);;
2167    *)
2168      if test "x$ac_old_val" != "x$ac_new_val"; then
2169	# differences in whitespace do not lead to failure.
2170	ac_old_val_w=`echo x $ac_old_val`
2171	ac_new_val_w=`echo x $ac_new_val`
2172	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2173	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2174$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2175	  ac_cache_corrupted=:
2176	else
2177	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2178$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2179	  eval $ac_var=\$ac_old_val
2180	fi
2181	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2182$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2183	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2184$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2185      fi;;
2186  esac
2187  # Pass precious variables to config.status.
2188  if test "$ac_new_set" = set; then
2189    case $ac_new_val in
2190    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2191    *) ac_arg=$ac_var=$ac_new_val ;;
2192    esac
2193    case " $ac_configure_args " in
2194      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2195      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2196    esac
2197  fi
2198done
2199if $ac_cache_corrupted; then
2200  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2203$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2204  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2205fi
2206## -------------------- ##
2207## Main body of script. ##
2208## -------------------- ##
2209
2210ac_ext=c
2211ac_cpp='$CPP $CPPFLAGS'
2212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2214ac_compiler_gnu=$ac_cv_c_compiler_gnu
2215
2216
2217
2218ac_config_headers="$ac_config_headers config.h"
2219
2220
2221# Initialize Automake
2222am__api_version='1.15'
2223
2224ac_aux_dir=
2225for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2226  if test -f "$ac_dir/install-sh"; then
2227    ac_aux_dir=$ac_dir
2228    ac_install_sh="$ac_aux_dir/install-sh -c"
2229    break
2230  elif test -f "$ac_dir/install.sh"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/install.sh -c"
2233    break
2234  elif test -f "$ac_dir/shtool"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/shtool install -c"
2237    break
2238  fi
2239done
2240if test -z "$ac_aux_dir"; then
2241  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2242fi
2243
2244# These three variables are undocumented and unsupported,
2245# and are intended to be withdrawn in a future Autoconf release.
2246# They can cause serious problems if a builder's source tree is in a directory
2247# whose full name contains unusual characters.
2248ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2249ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2250ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2251
2252
2253# Find a good install program.  We prefer a C program (faster),
2254# so one script is as good as another.  But avoid the broken or
2255# incompatible versions:
2256# SysV /etc/install, /usr/sbin/install
2257# SunOS /usr/etc/install
2258# IRIX /sbin/install
2259# AIX /bin/install
2260# AmigaOS /C/install, which installs bootblocks on floppy discs
2261# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2262# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2263# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2264# OS/2's system install, which has a completely different semantic
2265# ./install, which can be erroneously created by make from ./install.sh.
2266# Reject install programs that cannot install multiple files.
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2268$as_echo_n "checking for a BSD-compatible install... " >&6; }
2269if test -z "$INSTALL"; then
2270if ${ac_cv_path_install+:} false; then :
2271  $as_echo_n "(cached) " >&6
2272else
2273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274for as_dir in $PATH
2275do
2276  IFS=$as_save_IFS
2277  test -z "$as_dir" && as_dir=.
2278    # Account for people who put trailing slashes in PATH elements.
2279case $as_dir/ in #((
2280  ./ | .// | /[cC]/* | \
2281  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2282  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2283  /usr/ucb/* ) ;;
2284  *)
2285    # OSF1 and SCO ODT 3.0 have their own names for install.
2286    # Don't use installbsd from OSF since it installs stuff as root
2287    # by default.
2288    for ac_prog in ginstall scoinst install; do
2289      for ac_exec_ext in '' $ac_executable_extensions; do
2290	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2291	  if test $ac_prog = install &&
2292	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293	    # AIX install.  It has an incompatible calling convention.
2294	    :
2295	  elif test $ac_prog = install &&
2296	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297	    # program-specific install script used by HP pwplus--don't use.
2298	    :
2299	  else
2300	    rm -rf conftest.one conftest.two conftest.dir
2301	    echo one > conftest.one
2302	    echo two > conftest.two
2303	    mkdir conftest.dir
2304	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2305	      test -s conftest.one && test -s conftest.two &&
2306	      test -s conftest.dir/conftest.one &&
2307	      test -s conftest.dir/conftest.two
2308	    then
2309	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2310	      break 3
2311	    fi
2312	  fi
2313	fi
2314      done
2315    done
2316    ;;
2317esac
2318
2319  done
2320IFS=$as_save_IFS
2321
2322rm -rf conftest.one conftest.two conftest.dir
2323
2324fi
2325  if test "${ac_cv_path_install+set}" = set; then
2326    INSTALL=$ac_cv_path_install
2327  else
2328    # As a last resort, use the slow shell script.  Don't cache a
2329    # value for INSTALL within a source directory, because that will
2330    # break other packages using the cache if that directory is
2331    # removed, or if the value is a relative name.
2332    INSTALL=$ac_install_sh
2333  fi
2334fi
2335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2336$as_echo "$INSTALL" >&6; }
2337
2338# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2339# It thinks the first close brace ends the variable substitution.
2340test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2341
2342test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2343
2344test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2345
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2347$as_echo_n "checking whether build environment is sane... " >&6; }
2348# Reject unsafe characters in $srcdir or the absolute working directory
2349# name.  Accept space and tab only in the latter.
2350am_lf='
2351'
2352case `pwd` in
2353  *[\\\"\#\$\&\'\`$am_lf]*)
2354    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2355esac
2356case $srcdir in
2357  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2358    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2359esac
2360
2361# Do 'set' in a subshell so we don't clobber the current shell's
2362# arguments.  Must try -L first in case configure is actually a
2363# symlink; some systems play weird games with the mod time of symlinks
2364# (eg FreeBSD returns the mod time of the symlink's containing
2365# directory).
2366if (
2367   am_has_slept=no
2368   for am_try in 1 2; do
2369     echo "timestamp, slept: $am_has_slept" > conftest.file
2370     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2371     if test "$*" = "X"; then
2372	# -L didn't work.
2373	set X `ls -t "$srcdir/configure" conftest.file`
2374     fi
2375     if test "$*" != "X $srcdir/configure conftest.file" \
2376	&& test "$*" != "X conftest.file $srcdir/configure"; then
2377
2378	# If neither matched, then we have a broken ls.  This can happen
2379	# if, for instance, CONFIG_SHELL is bash and it inherits a
2380	# broken ls alias from the environment.  This has actually
2381	# happened.  Such a system could not be considered "sane".
2382	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2383  alias in your environment" "$LINENO" 5
2384     fi
2385     if test "$2" = conftest.file || test $am_try -eq 2; then
2386       break
2387     fi
2388     # Just in case.
2389     sleep 1
2390     am_has_slept=yes
2391   done
2392   test "$2" = conftest.file
2393   )
2394then
2395   # Ok.
2396   :
2397else
2398   as_fn_error $? "newly created file is older than distributed files!
2399Check your system clock" "$LINENO" 5
2400fi
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2402$as_echo "yes" >&6; }
2403# If we didn't sleep, we still need to ensure time stamps of config.status and
2404# generated files are strictly newer.
2405am_sleep_pid=
2406if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2407  ( sleep 1 ) &
2408  am_sleep_pid=$!
2409fi
2410
2411rm -f conftest.file
2412
2413test "$program_prefix" != NONE &&
2414  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2415# Use a double $ so make ignores it.
2416test "$program_suffix" != NONE &&
2417  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2418# Double any \ or $.
2419# By default was `s,x,x', remove it if useless.
2420ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2421program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2422
2423# Expand $ac_aux_dir to an absolute path.
2424am_aux_dir=`cd "$ac_aux_dir" && pwd`
2425
2426if test x"${MISSING+set}" != xset; then
2427  case $am_aux_dir in
2428  *\ * | *\	*)
2429    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2430  *)
2431    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2432  esac
2433fi
2434# Use eval to expand $SHELL
2435if eval "$MISSING --is-lightweight"; then
2436  am_missing_run="$MISSING "
2437else
2438  am_missing_run=
2439  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2440$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2441fi
2442
2443if test x"${install_sh+set}" != xset; then
2444  case $am_aux_dir in
2445  *\ * | *\	*)
2446    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2447  *)
2448    install_sh="\${SHELL} $am_aux_dir/install-sh"
2449  esac
2450fi
2451
2452# Installed binaries are usually stripped using 'strip' when the user
2453# run "make install-strip".  However 'strip' might not be the right
2454# tool to use in cross-compilation environments, therefore Automake
2455# will honor the 'STRIP' environment variable to overrule this program.
2456if test "$cross_compiling" != no; then
2457  if test -n "$ac_tool_prefix"; then
2458  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2459set dummy ${ac_tool_prefix}strip; ac_word=$2
2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
2462if ${ac_cv_prog_STRIP+:} false; then :
2463  $as_echo_n "(cached) " >&6
2464else
2465  if test -n "$STRIP"; then
2466  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473    for ac_exec_ext in '' $ac_executable_extensions; do
2474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480  done
2481IFS=$as_save_IFS
2482
2483fi
2484fi
2485STRIP=$ac_cv_prog_STRIP
2486if test -n "$STRIP"; then
2487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2488$as_echo "$STRIP" >&6; }
2489else
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491$as_echo "no" >&6; }
2492fi
2493
2494
2495fi
2496if test -z "$ac_cv_prog_STRIP"; then
2497  ac_ct_STRIP=$STRIP
2498  # Extract the first word of "strip", so it can be a program name with args.
2499set dummy strip; ac_word=$2
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501$as_echo_n "checking for $ac_word... " >&6; }
2502if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2503  $as_echo_n "(cached) " >&6
2504else
2505  if test -n "$ac_ct_STRIP"; then
2506  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511  IFS=$as_save_IFS
2512  test -z "$as_dir" && as_dir=.
2513    for ac_exec_ext in '' $ac_executable_extensions; do
2514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515    ac_cv_prog_ac_ct_STRIP="strip"
2516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517    break 2
2518  fi
2519done
2520  done
2521IFS=$as_save_IFS
2522
2523fi
2524fi
2525ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2526if test -n "$ac_ct_STRIP"; then
2527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2528$as_echo "$ac_ct_STRIP" >&6; }
2529else
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531$as_echo "no" >&6; }
2532fi
2533
2534  if test "x$ac_ct_STRIP" = x; then
2535    STRIP=":"
2536  else
2537    case $cross_compiling:$ac_tool_warned in
2538yes:)
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541ac_tool_warned=yes ;;
2542esac
2543    STRIP=$ac_ct_STRIP
2544  fi
2545else
2546  STRIP="$ac_cv_prog_STRIP"
2547fi
2548
2549fi
2550INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2551
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2553$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2554if test -z "$MKDIR_P"; then
2555  if ${ac_cv_path_mkdir+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563    for ac_prog in mkdir gmkdir; do
2564	 for ac_exec_ext in '' $ac_executable_extensions; do
2565	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2566	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2567	     'mkdir (GNU coreutils) '* | \
2568	     'mkdir (coreutils) '* | \
2569	     'mkdir (fileutils) '4.1*)
2570	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2571	       break 3;;
2572	   esac
2573	 done
2574       done
2575  done
2576IFS=$as_save_IFS
2577
2578fi
2579
2580  test -d ./--version && rmdir ./--version
2581  if test "${ac_cv_path_mkdir+set}" = set; then
2582    MKDIR_P="$ac_cv_path_mkdir -p"
2583  else
2584    # As a last resort, use the slow shell script.  Don't cache a
2585    # value for MKDIR_P within a source directory, because that will
2586    # break other packages using the cache if that directory is
2587    # removed, or if the value is a relative name.
2588    MKDIR_P="$ac_install_sh -d"
2589  fi
2590fi
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2592$as_echo "$MKDIR_P" >&6; }
2593
2594for ac_prog in gawk mawk nawk awk
2595do
2596  # Extract the first word of "$ac_prog", so it can be a program name with args.
2597set dummy $ac_prog; ac_word=$2
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if ${ac_cv_prog_AWK+:} false; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  if test -n "$AWK"; then
2604  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  test -z "$as_dir" && as_dir=.
2611    for ac_exec_ext in '' $ac_executable_extensions; do
2612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613    ac_cv_prog_AWK="$ac_prog"
2614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623AWK=$ac_cv_prog_AWK
2624if test -n "$AWK"; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2626$as_echo "$AWK" >&6; }
2627else
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629$as_echo "no" >&6; }
2630fi
2631
2632
2633  test -n "$AWK" && break
2634done
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2638set x ${MAKE-make}
2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  cat >conftest.make <<\_ACEOF
2644SHELL = /bin/sh
2645all:
2646	@echo '@@@%%%=$(MAKE)=@@@%%%'
2647_ACEOF
2648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2649case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650  *@@@%%%=?*=@@@%%%*)
2651    eval ac_cv_prog_make_${ac_make}_set=yes;;
2652  *)
2653    eval ac_cv_prog_make_${ac_make}_set=no;;
2654esac
2655rm -f conftest.make
2656fi
2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659$as_echo "yes" >&6; }
2660  SET_MAKE=
2661else
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664  SET_MAKE="MAKE=${MAKE-make}"
2665fi
2666
2667rm -rf .tst 2>/dev/null
2668mkdir .tst 2>/dev/null
2669if test -d .tst; then
2670  am__leading_dot=.
2671else
2672  am__leading_dot=_
2673fi
2674rmdir .tst 2>/dev/null
2675
2676# Check whether --enable-silent-rules was given.
2677if test "${enable_silent_rules+set}" = set; then :
2678  enableval=$enable_silent_rules;
2679fi
2680
2681case $enable_silent_rules in # (((
2682  yes) AM_DEFAULT_VERBOSITY=0;;
2683   no) AM_DEFAULT_VERBOSITY=1;;
2684    *) AM_DEFAULT_VERBOSITY=1;;
2685esac
2686am_make=${MAKE-make}
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2688$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2689if ${am_cv_make_support_nested_variables+:} false; then :
2690  $as_echo_n "(cached) " >&6
2691else
2692  if $as_echo 'TRUE=$(BAR$(V))
2693BAR0=false
2694BAR1=true
2695V=1
2696am__doit:
2697	@$(TRUE)
2698.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2699  am_cv_make_support_nested_variables=yes
2700else
2701  am_cv_make_support_nested_variables=no
2702fi
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2705$as_echo "$am_cv_make_support_nested_variables" >&6; }
2706if test $am_cv_make_support_nested_variables = yes; then
2707    AM_V='$(V)'
2708  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2709else
2710  AM_V=$AM_DEFAULT_VERBOSITY
2711  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2712fi
2713AM_BACKSLASH='\'
2714
2715if test "`cd $srcdir && pwd`" != "`pwd`"; then
2716  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2717  # is not polluted with repeated "-I."
2718  am__isrc=' -I$(srcdir)'
2719  # test to see if srcdir already configured
2720  if test -f $srcdir/config.status; then
2721    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2722  fi
2723fi
2724
2725# test whether we have cygpath
2726if test -z "$CYGPATH_W"; then
2727  if (cygpath --version) >/dev/null 2>/dev/null; then
2728    CYGPATH_W='cygpath -w'
2729  else
2730    CYGPATH_W=echo
2731  fi
2732fi
2733
2734
2735# Define the identity of the package.
2736 PACKAGE='imake'
2737 VERSION='1.0.8'
2738
2739
2740cat >>confdefs.h <<_ACEOF
2741#define PACKAGE "$PACKAGE"
2742_ACEOF
2743
2744
2745cat >>confdefs.h <<_ACEOF
2746#define VERSION "$VERSION"
2747_ACEOF
2748
2749# Some tools Automake needs.
2750
2751ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2752
2753
2754AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2755
2756
2757AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2758
2759
2760AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2761
2762
2763MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2764
2765# For better backward compatibility.  To be removed once Automake 1.9.x
2766# dies out for good.  For more background, see:
2767# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2768# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2769mkdir_p='$(MKDIR_P)'
2770
2771# We need awk for the "check" target (and possibly the TAP driver).  The
2772# system "awk" is bad on some platforms.
2773# Always define AMTAR for backward compatibility.  Yes, it's still used
2774# in the wild :-(  We should find a proper way to deprecate it ...
2775AMTAR='$${TAR-tar}'
2776
2777
2778# We'll loop over all known methods to create a tar archive until one works.
2779_am_tools='gnutar  pax cpio none'
2780
2781am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2782
2783
2784
2785
2786
2787
2788# POSIX will say in a future version that running "rm -f" with no argument
2789# is OK; and we want to be able to make that assumption in our Makefile
2790# recipes.  So use an aggressive probe to check that the usage we want is
2791# actually supported "in the wild" to an acceptable degree.
2792# See automake bug#10828.
2793# To make any issue more visible, cause the running configure to be aborted
2794# by default if the 'rm' program in use doesn't match our expectations; the
2795# user can still override this though.
2796if rm -f && rm -fr && rm -rf; then : OK; else
2797  cat >&2 <<'END'
2798Oops!
2799
2800Your 'rm' program seems unable to run without file operands specified
2801on the command line, even when the '-f' option is present.  This is contrary
2802to the behaviour of most rm programs out there, and not conforming with
2803the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2804
2805Please tell bug-automake@gnu.org about your system, including the value
2806of your $PATH and any error possibly output before this message.  This
2807can help us improve future automake versions.
2808
2809END
2810  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2811    echo 'Configuration will proceed anyway, since you have set the' >&2
2812    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2813    echo >&2
2814  else
2815    cat >&2 <<'END'
2816Aborting the configuration process, to ensure you take notice of the issue.
2817
2818You can download and install GNU coreutils to get an 'rm' implementation
2819that behaves properly: <http://www.gnu.org/software/coreutils/>.
2820
2821If you want to complete the configuration process using your problematic
2822'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2823to "yes", and re-run configure.
2824
2825END
2826    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2827  fi
2828fi
2829
2830
2831# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843DEPDIR="${am__leading_dot}deps"
2844
2845ac_config_commands="$ac_config_commands depfiles"
2846
2847
2848am_make=${MAKE-make}
2849cat > confinc << 'END'
2850am__doit:
2851	@echo this is the am__doit target
2852.PHONY: am__doit
2853END
2854# If we don't find an include directive, just comment out the code.
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2856$as_echo_n "checking for style of include used by $am_make... " >&6; }
2857am__include="#"
2858am__quote=
2859_am_result=none
2860# First try GNU make style include.
2861echo "include confinc" > confmf
2862# Ignore all kinds of additional output from 'make'.
2863case `$am_make -s -f confmf 2> /dev/null` in #(
2864*the\ am__doit\ target*)
2865  am__include=include
2866  am__quote=
2867  _am_result=GNU
2868  ;;
2869esac
2870# Now try BSD make style include.
2871if test "$am__include" = "#"; then
2872   echo '.include "confinc"' > confmf
2873   case `$am_make -s -f confmf 2> /dev/null` in #(
2874   *the\ am__doit\ target*)
2875     am__include=.include
2876     am__quote="\""
2877     _am_result=BSD
2878     ;;
2879   esac
2880fi
2881
2882
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2884$as_echo "$_am_result" >&6; }
2885rm -f confinc confmf
2886
2887# Check whether --enable-dependency-tracking was given.
2888if test "${enable_dependency_tracking+set}" = set; then :
2889  enableval=$enable_dependency_tracking;
2890fi
2891
2892if test "x$enable_dependency_tracking" != xno; then
2893  am_depcomp="$ac_aux_dir/depcomp"
2894  AMDEPBACKSLASH='\'
2895  am__nodep='_no'
2896fi
2897 if test "x$enable_dependency_tracking" != xno; then
2898  AMDEP_TRUE=
2899  AMDEP_FALSE='#'
2900else
2901  AMDEP_TRUE='#'
2902  AMDEP_FALSE=
2903fi
2904
2905
2906ac_ext=c
2907ac_cpp='$CPP $CPPFLAGS'
2908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911if test -n "$ac_tool_prefix"; then
2912  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_CC+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  if test -n "$CC"; then
2920  ac_cv_prog_CC="$CC" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  test -z "$as_dir" && as_dir=.
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939CC=$ac_cv_prog_CC
2940if test -n "$CC"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942$as_echo "$CC" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949fi
2950if test -z "$ac_cv_prog_CC"; then
2951  ac_ct_CC=$CC
2952  # Extract the first word of "gcc", so it can be a program name with args.
2953set dummy gcc; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if ${ac_cv_prog_ac_ct_CC+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$ac_ct_CC"; then
2960  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969    ac_cv_prog_ac_ct_CC="gcc"
2970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980if test -n "$ac_ct_CC"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982$as_echo "$ac_ct_CC" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988  if test "x$ac_ct_CC" = x; then
2989    CC=""
2990  else
2991    case $cross_compiling:$ac_tool_warned in
2992yes:)
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995ac_tool_warned=yes ;;
2996esac
2997    CC=$ac_ct_CC
2998  fi
2999else
3000  CC="$ac_cv_prog_CC"
3001fi
3002
3003if test -z "$CC"; then
3004          if test -n "$ac_tool_prefix"; then
3005    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}cc; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_CC+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  if test -n "$CC"; then
3013  ac_cv_prog_CC="$CC" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018  IFS=$as_save_IFS
3019  test -z "$as_dir" && as_dir=.
3020    for ac_exec_ext in '' $ac_executable_extensions; do
3021  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022    ac_cv_prog_CC="${ac_tool_prefix}cc"
3023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024    break 2
3025  fi
3026done
3027  done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042  fi
3043fi
3044if test -z "$CC"; then
3045  # Extract the first word of "cc", so it can be a program name with args.
3046set dummy cc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if ${ac_cv_prog_CC+:} false; then :
3050  $as_echo_n "(cached) " >&6
3051else
3052  if test -n "$CC"; then
3053  ac_cv_prog_CC="$CC" # Let the user override the test.
3054else
3055  ac_prog_rejected=no
3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057for as_dir in $PATH
3058do
3059  IFS=$as_save_IFS
3060  test -z "$as_dir" && as_dir=.
3061    for ac_exec_ext in '' $ac_executable_extensions; do
3062  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3064       ac_prog_rejected=yes
3065       continue
3066     fi
3067    ac_cv_prog_CC="cc"
3068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069    break 2
3070  fi
3071done
3072  done
3073IFS=$as_save_IFS
3074
3075if test $ac_prog_rejected = yes; then
3076  # We found a bogon in the path, so make sure we never use it.
3077  set dummy $ac_cv_prog_CC
3078  shift
3079  if test $# != 0; then
3080    # We chose a different compiler from the bogus one.
3081    # However, it has the same basename, so the bogon will be chosen
3082    # first if we set CC to just the basename; use the full file name.
3083    shift
3084    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3085  fi
3086fi
3087fi
3088fi
3089CC=$ac_cv_prog_CC
3090if test -n "$CC"; then
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092$as_echo "$CC" >&6; }
3093else
3094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095$as_echo "no" >&6; }
3096fi
3097
3098
3099fi
3100if test -z "$CC"; then
3101  if test -n "$ac_tool_prefix"; then
3102  for ac_prog in cl.exe
3103  do
3104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if ${ac_cv_prog_CC+:} false; then :
3109  $as_echo_n "(cached) " >&6
3110else
3111  if test -n "$CC"; then
3112  ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126  done
3127IFS=$as_save_IFS
3128
3129fi
3130fi
3131CC=$ac_cv_prog_CC
3132if test -n "$CC"; then
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134$as_echo "$CC" >&6; }
3135else
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137$as_echo "no" >&6; }
3138fi
3139
3140
3141    test -n "$CC" && break
3142  done
3143fi
3144if test -z "$CC"; then
3145  ac_ct_CC=$CC
3146  for ac_prog in cl.exe
3147do
3148  # Extract the first word of "$ac_prog", so it can be a program name with args.
3149set dummy $ac_prog; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
3152if ${ac_cv_prog_ac_ct_CC+:} false; then :
3153  $as_echo_n "(cached) " >&6
3154else
3155  if test -n "$ac_ct_CC"; then
3156  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165    ac_cv_prog_ac_ct_CC="$ac_prog"
3166    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167    break 2
3168  fi
3169done
3170  done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176if test -n "$ac_ct_CC"; then
3177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178$as_echo "$ac_ct_CC" >&6; }
3179else
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184
3185  test -n "$ac_ct_CC" && break
3186done
3187
3188  if test "x$ac_ct_CC" = x; then
3189    CC=""
3190  else
3191    case $cross_compiling:$ac_tool_warned in
3192yes:)
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195ac_tool_warned=yes ;;
3196esac
3197    CC=$ac_ct_CC
3198  fi
3199fi
3200
3201fi
3202
3203
3204test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206as_fn_error $? "no acceptable C compiler found in \$PATH
3207See \`config.log' for more details" "$LINENO" 5; }
3208
3209# Provide some information about the compiler.
3210$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3211set X $ac_compile
3212ac_compiler=$2
3213for ac_option in --version -v -V -qversion; do
3214  { { ac_try="$ac_compiler $ac_option >&5"
3215case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220$as_echo "$ac_try_echo"; } >&5
3221  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3222  ac_status=$?
3223  if test -s conftest.err; then
3224    sed '10a\
3225... rest of stderr output deleted ...
3226         10q' conftest.err >conftest.er1
3227    cat conftest.er1 >&5
3228  fi
3229  rm -f conftest.er1 conftest.err
3230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231  test $ac_status = 0; }
3232done
3233
3234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235/* end confdefs.h.  */
3236
3237int
3238main ()
3239{
3240
3241  ;
3242  return 0;
3243}
3244_ACEOF
3245ac_clean_files_save=$ac_clean_files
3246ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247# Try to create an executable without -o first, disregard a.out.
3248# It will help us diagnose broken compilers, and finding out an intuition
3249# of exeext.
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3251$as_echo_n "checking whether the C compiler works... " >&6; }
3252ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253
3254# The possible output files:
3255ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256
3257ac_rmfiles=
3258for ac_file in $ac_files
3259do
3260  case $ac_file in
3261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263  esac
3264done
3265rm -f $ac_rmfiles
3266
3267if { { ac_try="$ac_link_default"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273$as_echo "$ac_try_echo"; } >&5
3274  (eval "$ac_link_default") 2>&5
3275  ac_status=$?
3276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }; then :
3278  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3281# so that the user can short-circuit this test for compilers unknown to
3282# Autoconf.
3283for ac_file in $ac_files ''
3284do
3285  test -f "$ac_file" || continue
3286  case $ac_file in
3287    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288	;;
3289    [ab].out )
3290	# We found the default executable, but exeext='' is most
3291	# certainly right.
3292	break;;
3293    *.* )
3294	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295	then :; else
3296	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297	fi
3298	# We set ac_cv_exeext here because the later test for it is not
3299	# safe: cross compilers may not add the suffix if given an `-o'
3300	# argument, so we may need to know it at that point already.
3301	# Even if this section looks crufty: it has the advantage of
3302	# actually working.
3303	break;;
3304    * )
3305	break;;
3306  esac
3307done
3308test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310else
3311  ac_file=''
3312fi
3313if test -z "$ac_file"; then :
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315$as_echo "no" >&6; }
3316$as_echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321as_fn_error 77 "C compiler cannot create executables
3322See \`config.log' for more details" "$LINENO" 5; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325$as_echo "yes" >&6; }
3326fi
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3328$as_echo_n "checking for C compiler default output file name... " >&6; }
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3330$as_echo "$ac_file" >&6; }
3331ac_exeext=$ac_cv_exeext
3332
3333rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3334ac_clean_files=$ac_clean_files_save
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3336$as_echo_n "checking for suffix of executables... " >&6; }
3337if { { ac_try="$ac_link"
3338case "(($ac_try" in
3339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340  *) ac_try_echo=$ac_try;;
3341esac
3342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343$as_echo "$ac_try_echo"; } >&5
3344  (eval "$ac_link") 2>&5
3345  ac_status=$?
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }; then :
3348  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3350# work properly (i.e., refer to `conftest.exe'), while it won't with
3351# `rm'.
3352for ac_file in conftest.exe conftest conftest.*; do
3353  test -f "$ac_file" || continue
3354  case $ac_file in
3355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3356    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357	  break;;
3358    * ) break;;
3359  esac
3360done
3361else
3362  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3365See \`config.log' for more details" "$LINENO" 5; }
3366fi
3367rm -f conftest conftest$ac_cv_exeext
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3369$as_echo "$ac_cv_exeext" >&6; }
3370
3371rm -f conftest.$ac_ext
3372EXEEXT=$ac_cv_exeext
3373ac_exeext=$EXEEXT
3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <stdio.h>
3377int
3378main ()
3379{
3380FILE *f = fopen ("conftest.out", "w");
3381 return ferror (f) || fclose (f) != 0;
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387ac_clean_files="$ac_clean_files conftest.out"
3388# Check that the compiler produces executables we can run.  If not, either
3389# the compiler is broken, or we cross compile.
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3391$as_echo_n "checking whether we are cross compiling... " >&6; }
3392if test "$cross_compiling" != yes; then
3393  { { ac_try="$ac_link"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399$as_echo "$ac_try_echo"; } >&5
3400  (eval "$ac_link") 2>&5
3401  ac_status=$?
3402  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403  test $ac_status = 0; }
3404  if { ac_try='./conftest$ac_cv_exeext'
3405  { { case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_try") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; }; then
3415    cross_compiling=no
3416  else
3417    if test "$cross_compiling" = maybe; then
3418	cross_compiling=yes
3419    else
3420	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error $? "cannot run C compiled programs.
3423If you meant to cross compile, use \`--host'.
3424See \`config.log' for more details" "$LINENO" 5; }
3425    fi
3426  fi
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3429$as_echo "$cross_compiling" >&6; }
3430
3431rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3432ac_clean_files=$ac_clean_files_save
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3434$as_echo_n "checking for suffix of object files... " >&6; }
3435if ${ac_cv_objext+:} false; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.o conftest.obj
3450if { { ac_try="$ac_compile"
3451case "(($ac_try" in
3452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453  *) ac_try_echo=$ac_try;;
3454esac
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
3457  (eval "$ac_compile") 2>&5
3458  ac_status=$?
3459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460  test $ac_status = 0; }; then :
3461  for ac_file in conftest.o conftest.obj conftest.*; do
3462  test -f "$ac_file" || continue;
3463  case $ac_file in
3464    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3465    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3466       break;;
3467  esac
3468done
3469else
3470  $as_echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475as_fn_error $? "cannot compute suffix of object files: cannot compile
3476See \`config.log' for more details" "$LINENO" 5; }
3477fi
3478rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479fi
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3481$as_echo "$ac_cv_objext" >&6; }
3482OBJEXT=$ac_cv_objext
3483ac_objext=$OBJEXT
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3485$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3486if ${ac_cv_c_compiler_gnu+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495#ifndef __GNUC__
3496       choke me
3497#endif
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503if ac_fn_c_try_compile "$LINENO"; then :
3504  ac_compiler_gnu=yes
3505else
3506  ac_compiler_gnu=no
3507fi
3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
3511fi
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3513$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514if test $ac_compiler_gnu = yes; then
3515  GCC=yes
3516else
3517  GCC=
3518fi
3519ac_test_CFLAGS=${CFLAGS+set}
3520ac_save_CFLAGS=$CFLAGS
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3522$as_echo_n "checking whether $CC accepts -g... " >&6; }
3523if ${ac_cv_prog_cc_g+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  ac_save_c_werror_flag=$ac_c_werror_flag
3527   ac_c_werror_flag=yes
3528   ac_cv_prog_cc_g=no
3529   CFLAGS="-g"
3530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541if ac_fn_c_try_compile "$LINENO"; then :
3542  ac_cv_prog_cc_g=yes
3543else
3544  CFLAGS=""
3545      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546/* end confdefs.h.  */
3547
3548int
3549main ()
3550{
3551
3552  ;
3553  return 0;
3554}
3555_ACEOF
3556if ac_fn_c_try_compile "$LINENO"; then :
3557
3558else
3559  ac_c_werror_flag=$ac_save_c_werror_flag
3560	 CFLAGS="-g"
3561	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564int
3565main ()
3566{
3567
3568  ;
3569  return 0;
3570}
3571_ACEOF
3572if ac_fn_c_try_compile "$LINENO"; then :
3573  ac_cv_prog_cc_g=yes
3574fi
3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580   ac_c_werror_flag=$ac_save_c_werror_flag
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3583$as_echo "$ac_cv_prog_cc_g" >&6; }
3584if test "$ac_test_CFLAGS" = set; then
3585  CFLAGS=$ac_save_CFLAGS
3586elif test $ac_cv_prog_cc_g = yes; then
3587  if test "$GCC" = yes; then
3588    CFLAGS="-g -O2"
3589  else
3590    CFLAGS="-g"
3591  fi
3592else
3593  if test "$GCC" = yes; then
3594    CFLAGS="-O2"
3595  else
3596    CFLAGS=
3597  fi
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3600$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3601if ${ac_cv_prog_cc_c89+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  ac_cv_prog_cc_c89=no
3605ac_save_CC=$CC
3606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607/* end confdefs.h.  */
3608#include <stdarg.h>
3609#include <stdio.h>
3610struct stat;
3611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3612struct buf { int x; };
3613FILE * (*rcsopen) (struct buf *, struct stat *, int);
3614static char *e (p, i)
3615     char **p;
3616     int i;
3617{
3618  return p[i];
3619}
3620static char *f (char * (*g) (char **, int), char **p, ...)
3621{
3622  char *s;
3623  va_list v;
3624  va_start (v,p);
3625  s = g (p, va_arg (v,int));
3626  va_end (v);
3627  return s;
3628}
3629
3630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3631   function prototypes and stuff, but not '\xHH' hex character constants.
3632   These don't provoke an error unfortunately, instead are silently treated
3633   as 'x'.  The following induces an error, until -std is added to get
3634   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3635   array size at least.  It's necessary to write '\x00'==0 to get something
3636   that's true only with -std.  */
3637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638
3639/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3640   inside strings and character constants.  */
3641#define FOO(x) 'x'
3642int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643
3644int test (int i, double x);
3645struct s1 {int (*f) (int a);};
3646struct s2 {int (*f) (double a);};
3647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3648int argc;
3649char **argv;
3650int
3651main ()
3652{
3653return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3659	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660do
3661  CC="$ac_save_CC $ac_arg"
3662  if ac_fn_c_try_compile "$LINENO"; then :
3663  ac_cv_prog_cc_c89=$ac_arg
3664fi
3665rm -f core conftest.err conftest.$ac_objext
3666  test "x$ac_cv_prog_cc_c89" != "xno" && break
3667done
3668rm -f conftest.$ac_ext
3669CC=$ac_save_CC
3670
3671fi
3672# AC_CACHE_VAL
3673case "x$ac_cv_prog_cc_c89" in
3674  x)
3675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3676$as_echo "none needed" >&6; } ;;
3677  xno)
3678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3679$as_echo "unsupported" >&6; } ;;
3680  *)
3681    CC="$CC $ac_cv_prog_cc_c89"
3682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3683$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3684esac
3685if test "x$ac_cv_prog_cc_c89" != xno; then :
3686
3687fi
3688
3689ac_ext=c
3690ac_cpp='$CPP $CPPFLAGS'
3691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_c_compiler_gnu
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3701$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3702if ${am_cv_prog_cc_c_o+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716  # Make sure it works both with $CC and with simple cc.
3717  # Following AC_PROG_CC_C_O, we do the test twice because some
3718  # compilers refuse to overwrite an existing .o file with -o,
3719  # though they will create one.
3720  am_cv_prog_cc_c_o=yes
3721  for am_i in 1 2; do
3722    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3723   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3724   ac_status=$?
3725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726   (exit $ac_status); } \
3727         && test -f conftest2.$ac_objext; then
3728      : OK
3729    else
3730      am_cv_prog_cc_c_o=no
3731      break
3732    fi
3733  done
3734  rm -f core conftest*
3735  unset am_i
3736fi
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3738$as_echo "$am_cv_prog_cc_c_o" >&6; }
3739if test "$am_cv_prog_cc_c_o" != yes; then
3740   # Losing compiler, so override with the script.
3741   # FIXME: It is wrong to rewrite CC.
3742   # But if we don't then we get into trouble of one sort or another.
3743   # A longer-term fix would be to have automake use am__CC in this case,
3744   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3745   CC="$am_aux_dir/compile $CC"
3746fi
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753
3754depcc="$CC"   am_compiler_list=
3755
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3757$as_echo_n "checking dependency style of $depcc... " >&6; }
3758if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3762  # We make a subdir and do the tests there.  Otherwise we can end up
3763  # making bogus files that we don't know about and never remove.  For
3764  # instance it was reported that on HP-UX the gcc test will end up
3765  # making a dummy file named 'D' -- because '-MD' means "put the output
3766  # in D".
3767  rm -rf conftest.dir
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  am__universal=false
3786  case " $depcc " in #(
3787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788     esac
3789
3790  for depmode in $am_compiler_list; do
3791    # Setup a source with many dependencies, because some compilers
3792    # like to wrap large dependency lists on column 80 (with \), and
3793    # we should not choose a depcomp mode which is confused by this.
3794    #
3795    # We need to recreate these files for each test, as the compiler may
3796    # overwrite some of them when testing with obscure command lines.
3797    # This happens at least with the AIX C compiler.
3798    : > sub/conftest.c
3799    for i in 1 2 3 4 5 6; do
3800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3802      # Solaris 10 /bin/sh.
3803      echo '/* dummy */' > sub/conftst$i.h
3804    done
3805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806
3807    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3808    # mode.  It turns out that the SunPro C++ compiler does not properly
3809    # handle '-M -o', and we need to detect this.  Also, some Intel
3810    # versions had trouble with output in subdirs.
3811    am__obj=sub/conftest.${OBJEXT-o}
3812    am__minus_obj="-o $am__obj"
3813    case $depmode in
3814    gcc)
3815      # This depmode causes a compiler race in universal mode.
3816      test "$am__universal" = false || continue
3817      ;;
3818    nosideeffect)
3819      # After this tag, mechanisms are not by side-effect, so they'll
3820      # only be used when explicitly requested.
3821      if test "x$enable_dependency_tracking" = xyes; then
3822	continue
3823      else
3824	break
3825      fi
3826      ;;
3827    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3828      # This compiler won't grok '-c -o', but also, the minuso test has
3829      # not run yet.  These depmodes are late enough in the game, and
3830      # so weak that their functioning should not be impacted.
3831      am__obj=conftest.${OBJEXT-o}
3832      am__minus_obj=
3833      ;;
3834    none) break ;;
3835    esac
3836    if depmode=$depmode \
3837       source=sub/conftest.c object=$am__obj \
3838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840         >/dev/null 2>conftest.err &&
3841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845      # icc doesn't choke on unknown options, it will just issue warnings
3846      # or remarks (even with -Werror).  So we grep stderr for any message
3847      # that says an option was ignored or not supported.
3848      # When given -MP, icc 7.0 and 7.1 complain thusly:
3849      #   icc: Command line warning: ignoring option '-M'; no argument required
3850      # The diagnosis changed in icc 8.0:
3851      #   icc: Command line remark: option '-MP' not supported
3852      if (grep 'ignoring option' conftest.err ||
3853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854        am_cv_CC_dependencies_compiler_type=$depmode
3855        break
3856      fi
3857    fi
3858  done
3859
3860  cd ..
3861  rm -rf conftest.dir
3862else
3863  am_cv_CC_dependencies_compiler_type=none
3864fi
3865
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3870
3871 if
3872  test "x$enable_dependency_tracking" != xno \
3873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874  am__fastdepCC_TRUE=
3875  am__fastdepCC_FALSE='#'
3876else
3877  am__fastdepCC_TRUE='#'
3878  am__fastdepCC_FALSE=
3879fi
3880
3881
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3883$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3884if ${ac_cv_prog_cc_c99+:} false; then :
3885  $as_echo_n "(cached) " >&6
3886else
3887  ac_cv_prog_cc_c99=no
3888ac_save_CC=$CC
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891#include <stdarg.h>
3892#include <stdbool.h>
3893#include <stdlib.h>
3894#include <wchar.h>
3895#include <stdio.h>
3896
3897// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3898#define debug(...) fprintf (stderr, __VA_ARGS__)
3899#define showlist(...) puts (#__VA_ARGS__)
3900#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3901static void
3902test_varargs_macros (void)
3903{
3904  int x = 1234;
3905  int y = 5678;
3906  debug ("Flag");
3907  debug ("X = %d\n", x);
3908  showlist (The first, second, and third items.);
3909  report (x>y, "x is %d but y is %d", x, y);
3910}
3911
3912// Check long long types.
3913#define BIG64 18446744073709551615ull
3914#define BIG32 4294967295ul
3915#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3916#if !BIG_OK
3917  your preprocessor is broken;
3918#endif
3919#if BIG_OK
3920#else
3921  your preprocessor is broken;
3922#endif
3923static long long int bignum = -9223372036854775807LL;
3924static unsigned long long int ubignum = BIG64;
3925
3926struct incomplete_array
3927{
3928  int datasize;
3929  double data[];
3930};
3931
3932struct named_init {
3933  int number;
3934  const wchar_t *name;
3935  double average;
3936};
3937
3938typedef const char *ccp;
3939
3940static inline int
3941test_restrict (ccp restrict text)
3942{
3943  // See if C++-style comments work.
3944  // Iterate through items via the restricted pointer.
3945  // Also check for declarations in for loops.
3946  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3947    continue;
3948  return 0;
3949}
3950
3951// Check varargs and va_copy.
3952static void
3953test_varargs (const char *format, ...)
3954{
3955  va_list args;
3956  va_start (args, format);
3957  va_list args_copy;
3958  va_copy (args_copy, args);
3959
3960  const char *str;
3961  int number;
3962  float fnumber;
3963
3964  while (*format)
3965    {
3966      switch (*format++)
3967	{
3968	case 's': // string
3969	  str = va_arg (args_copy, const char *);
3970	  break;
3971	case 'd': // int
3972	  number = va_arg (args_copy, int);
3973	  break;
3974	case 'f': // float
3975	  fnumber = va_arg (args_copy, double);
3976	  break;
3977	default:
3978	  break;
3979	}
3980    }
3981  va_end (args_copy);
3982  va_end (args);
3983}
3984
3985int
3986main ()
3987{
3988
3989  // Check bool.
3990  _Bool success = false;
3991
3992  // Check restrict.
3993  if (test_restrict ("String literal") == 0)
3994    success = true;
3995  char *restrict newvar = "Another string";
3996
3997  // Check varargs.
3998  test_varargs ("s, d' f .", "string", 65, 34.234);
3999  test_varargs_macros ();
4000
4001  // Check flexible array members.
4002  struct incomplete_array *ia =
4003    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4004  ia->datasize = 10;
4005  for (int i = 0; i < ia->datasize; ++i)
4006    ia->data[i] = i * 1.234;
4007
4008  // Check named initializers.
4009  struct named_init ni = {
4010    .number = 34,
4011    .name = L"Test wide string",
4012    .average = 543.34343,
4013  };
4014
4015  ni.number = 58;
4016
4017  int dynamic_array[ni.number];
4018  dynamic_array[ni.number - 1] = 543;
4019
4020  // work around unused variable warnings
4021  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4022	  || dynamic_array[ni.number - 1] != 543);
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4029do
4030  CC="$ac_save_CC $ac_arg"
4031  if ac_fn_c_try_compile "$LINENO"; then :
4032  ac_cv_prog_cc_c99=$ac_arg
4033fi
4034rm -f core conftest.err conftest.$ac_objext
4035  test "x$ac_cv_prog_cc_c99" != "xno" && break
4036done
4037rm -f conftest.$ac_ext
4038CC=$ac_save_CC
4039
4040fi
4041# AC_CACHE_VAL
4042case "x$ac_cv_prog_cc_c99" in
4043  x)
4044    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4045$as_echo "none needed" >&6; } ;;
4046  xno)
4047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4048$as_echo "unsupported" >&6; } ;;
4049  *)
4050    CC="$CC $ac_cv_prog_cc_c99"
4051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4052$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4053esac
4054if test "x$ac_cv_prog_cc_c99" != xno; then :
4055
4056fi
4057
4058
4059
4060ac_ext=c
4061ac_cpp='$CPP $CPPFLAGS'
4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064ac_compiler_gnu=$ac_cv_c_compiler_gnu
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4066$as_echo_n "checking how to run the C preprocessor... " >&6; }
4067# On Suns, sometimes $CPP names a directory.
4068if test -n "$CPP" && test -d "$CPP"; then
4069  CPP=
4070fi
4071if test -z "$CPP"; then
4072  if ${ac_cv_prog_CPP+:} false; then :
4073  $as_echo_n "(cached) " >&6
4074else
4075      # Double quotes because CPP needs to be expanded
4076    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4077    do
4078      ac_preproc_ok=false
4079for ac_c_preproc_warn_flag in '' yes
4080do
4081  # Use a header file that comes with gcc, so configuring glibc
4082  # with a fresh cross-compiler works.
4083  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084  # <limits.h> exists even on freestanding compilers.
4085  # On the NeXT, cc -E runs the code through the compiler's parser,
4086  # not just through cpp. "Syntax error" is here to catch this case.
4087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h.  */
4089#ifdef __STDC__
4090# include <limits.h>
4091#else
4092# include <assert.h>
4093#endif
4094		     Syntax error
4095_ACEOF
4096if ac_fn_c_try_cpp "$LINENO"; then :
4097
4098else
4099  # Broken: fails on valid input.
4100continue
4101fi
4102rm -f conftest.err conftest.i conftest.$ac_ext
4103
4104  # OK, works on sane cases.  Now check whether nonexistent headers
4105  # can be detected and how.
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108#include <ac_nonexistent.h>
4109_ACEOF
4110if ac_fn_c_try_cpp "$LINENO"; then :
4111  # Broken: success on invalid input.
4112continue
4113else
4114  # Passes both tests.
4115ac_preproc_ok=:
4116break
4117fi
4118rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120done
4121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122rm -f conftest.i conftest.err conftest.$ac_ext
4123if $ac_preproc_ok; then :
4124  break
4125fi
4126
4127    done
4128    ac_cv_prog_CPP=$CPP
4129
4130fi
4131  CPP=$ac_cv_prog_CPP
4132else
4133  ac_cv_prog_CPP=$CPP
4134fi
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4136$as_echo "$CPP" >&6; }
4137ac_preproc_ok=false
4138for ac_c_preproc_warn_flag in '' yes
4139do
4140  # Use a header file that comes with gcc, so configuring glibc
4141  # with a fresh cross-compiler works.
4142  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143  # <limits.h> exists even on freestanding compilers.
4144  # On the NeXT, cc -E runs the code through the compiler's parser,
4145  # not just through cpp. "Syntax error" is here to catch this case.
4146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147/* end confdefs.h.  */
4148#ifdef __STDC__
4149# include <limits.h>
4150#else
4151# include <assert.h>
4152#endif
4153		     Syntax error
4154_ACEOF
4155if ac_fn_c_try_cpp "$LINENO"; then :
4156
4157else
4158  # Broken: fails on valid input.
4159continue
4160fi
4161rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163  # OK, works on sane cases.  Now check whether nonexistent headers
4164  # can be detected and how.
4165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167#include <ac_nonexistent.h>
4168_ACEOF
4169if ac_fn_c_try_cpp "$LINENO"; then :
4170  # Broken: success on invalid input.
4171continue
4172else
4173  # Passes both tests.
4174ac_preproc_ok=:
4175break
4176fi
4177rm -f conftest.err conftest.i conftest.$ac_ext
4178
4179done
4180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181rm -f conftest.i conftest.err conftest.$ac_ext
4182if $ac_preproc_ok; then :
4183
4184else
4185  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4188See \`config.log' for more details" "$LINENO" 5; }
4189fi
4190
4191ac_ext=c
4192ac_cpp='$CPP $CPPFLAGS'
4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4199$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4200if ${ac_cv_path_GREP+:} false; then :
4201  $as_echo_n "(cached) " >&6
4202else
4203  if test -z "$GREP"; then
4204  ac_path_GREP_found=false
4205  # Loop through the user's path and test for each of PROGNAME-LIST
4206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211    for ac_prog in grep ggrep; do
4212    for ac_exec_ext in '' $ac_executable_extensions; do
4213      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4214      as_fn_executable_p "$ac_path_GREP" || continue
4215# Check for GNU ac_path_GREP and select it if it is found.
4216  # Check for GNU $ac_path_GREP
4217case `"$ac_path_GREP" --version 2>&1` in
4218*GNU*)
4219  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4220*)
4221  ac_count=0
4222  $as_echo_n 0123456789 >"conftest.in"
4223  while :
4224  do
4225    cat "conftest.in" "conftest.in" >"conftest.tmp"
4226    mv "conftest.tmp" "conftest.in"
4227    cp "conftest.in" "conftest.nl"
4228    $as_echo 'GREP' >> "conftest.nl"
4229    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231    as_fn_arith $ac_count + 1 && ac_count=$as_val
4232    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4233      # Best one so far, save it but keep looking for a better one
4234      ac_cv_path_GREP="$ac_path_GREP"
4235      ac_path_GREP_max=$ac_count
4236    fi
4237    # 10*(2^10) chars as input seems more than enough
4238    test $ac_count -gt 10 && break
4239  done
4240  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241esac
4242
4243      $ac_path_GREP_found && break 3
4244    done
4245  done
4246  done
4247IFS=$as_save_IFS
4248  if test -z "$ac_cv_path_GREP"; then
4249    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4250  fi
4251else
4252  ac_cv_path_GREP=$GREP
4253fi
4254
4255fi
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4257$as_echo "$ac_cv_path_GREP" >&6; }
4258 GREP="$ac_cv_path_GREP"
4259
4260
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4262$as_echo_n "checking for egrep... " >&6; }
4263if ${ac_cv_path_EGREP+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4267   then ac_cv_path_EGREP="$GREP -E"
4268   else
4269     if test -z "$EGREP"; then
4270  ac_path_EGREP_found=false
4271  # Loop through the user's path and test for each of PROGNAME-LIST
4272  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277    for ac_prog in egrep; do
4278    for ac_exec_ext in '' $ac_executable_extensions; do
4279      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4280      as_fn_executable_p "$ac_path_EGREP" || continue
4281# Check for GNU ac_path_EGREP and select it if it is found.
4282  # Check for GNU $ac_path_EGREP
4283case `"$ac_path_EGREP" --version 2>&1` in
4284*GNU*)
4285  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4286*)
4287  ac_count=0
4288  $as_echo_n 0123456789 >"conftest.in"
4289  while :
4290  do
4291    cat "conftest.in" "conftest.in" >"conftest.tmp"
4292    mv "conftest.tmp" "conftest.in"
4293    cp "conftest.in" "conftest.nl"
4294    $as_echo 'EGREP' >> "conftest.nl"
4295    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297    as_fn_arith $ac_count + 1 && ac_count=$as_val
4298    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299      # Best one so far, save it but keep looking for a better one
4300      ac_cv_path_EGREP="$ac_path_EGREP"
4301      ac_path_EGREP_max=$ac_count
4302    fi
4303    # 10*(2^10) chars as input seems more than enough
4304    test $ac_count -gt 10 && break
4305  done
4306  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307esac
4308
4309      $ac_path_EGREP_found && break 3
4310    done
4311  done
4312  done
4313IFS=$as_save_IFS
4314  if test -z "$ac_cv_path_EGREP"; then
4315    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4316  fi
4317else
4318  ac_cv_path_EGREP=$EGREP
4319fi
4320
4321   fi
4322fi
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4324$as_echo "$ac_cv_path_EGREP" >&6; }
4325 EGREP="$ac_cv_path_EGREP"
4326
4327
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4329$as_echo_n "checking for ANSI C header files... " >&6; }
4330if ${ac_cv_header_stdc+:} false; then :
4331  $as_echo_n "(cached) " >&6
4332else
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335#include <stdlib.h>
4336#include <stdarg.h>
4337#include <string.h>
4338#include <float.h>
4339
4340int
4341main ()
4342{
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348if ac_fn_c_try_compile "$LINENO"; then :
4349  ac_cv_header_stdc=yes
4350else
4351  ac_cv_header_stdc=no
4352fi
4353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354
4355if test $ac_cv_header_stdc = yes; then
4356  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358/* end confdefs.h.  */
4359#include <string.h>
4360
4361_ACEOF
4362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363  $EGREP "memchr" >/dev/null 2>&1; then :
4364
4365else
4366  ac_cv_header_stdc=no
4367fi
4368rm -f conftest*
4369
4370fi
4371
4372if test $ac_cv_header_stdc = yes; then
4373  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375/* end confdefs.h.  */
4376#include <stdlib.h>
4377
4378_ACEOF
4379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4380  $EGREP "free" >/dev/null 2>&1; then :
4381
4382else
4383  ac_cv_header_stdc=no
4384fi
4385rm -f conftest*
4386
4387fi
4388
4389if test $ac_cv_header_stdc = yes; then
4390  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4391  if test "$cross_compiling" = yes; then :
4392  :
4393else
4394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395/* end confdefs.h.  */
4396#include <ctype.h>
4397#include <stdlib.h>
4398#if ((' ' & 0x0FF) == 0x020)
4399# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4400# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4401#else
4402# define ISLOWER(c) \
4403		   (('a' <= (c) && (c) <= 'i') \
4404		     || ('j' <= (c) && (c) <= 'r') \
4405		     || ('s' <= (c) && (c) <= 'z'))
4406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4407#endif
4408
4409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4410int
4411main ()
4412{
4413  int i;
4414  for (i = 0; i < 256; i++)
4415    if (XOR (islower (i), ISLOWER (i))
4416	|| toupper (i) != TOUPPER (i))
4417      return 2;
4418  return 0;
4419}
4420_ACEOF
4421if ac_fn_c_try_run "$LINENO"; then :
4422
4423else
4424  ac_cv_header_stdc=no
4425fi
4426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4427  conftest.$ac_objext conftest.beam conftest.$ac_ext
4428fi
4429
4430fi
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4433$as_echo "$ac_cv_header_stdc" >&6; }
4434if test $ac_cv_header_stdc = yes; then
4435
4436$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4437
4438fi
4439
4440# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4442		  inttypes.h stdint.h unistd.h
4443do :
4444  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4446"
4447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4448  cat >>confdefs.h <<_ACEOF
4449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4450_ACEOF
4451
4452fi
4453
4454done
4455
4456
4457
4458
4459
4460
4461ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4462if test "x$ac_cv_have_decl___clang__" = xyes; then :
4463  CLANGCC="yes"
4464else
4465  CLANGCC="no"
4466fi
4467
4468ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4469if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4470  INTELCC="yes"
4471else
4472  INTELCC="no"
4473fi
4474
4475ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4476if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4477  SUNCC="yes"
4478else
4479  SUNCC="no"
4480fi
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4491	if test -n "$ac_tool_prefix"; then
4492  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4493set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
4496if ${ac_cv_path_PKG_CONFIG+:} false; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  case $PKG_CONFIG in
4500  [\\/]* | ?:[\\/]*)
4501  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4502  ;;
4503  *)
4504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507  IFS=$as_save_IFS
4508  test -z "$as_dir" && as_dir=.
4509    for ac_exec_ext in '' $ac_executable_extensions; do
4510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513    break 2
4514  fi
4515done
4516  done
4517IFS=$as_save_IFS
4518
4519  ;;
4520esac
4521fi
4522PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4523if test -n "$PKG_CONFIG"; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4525$as_echo "$PKG_CONFIG" >&6; }
4526else
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$ac_cv_path_PKG_CONFIG"; then
4534  ac_pt_PKG_CONFIG=$PKG_CONFIG
4535  # Extract the first word of "pkg-config", so it can be a program name with args.
4536set dummy pkg-config; ac_word=$2
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  case $ac_pt_PKG_CONFIG in
4543  [\\/]* | ?:[\\/]*)
4544  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4545  ;;
4546  *)
4547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552    for ac_exec_ext in '' $ac_executable_extensions; do
4553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556    break 2
4557  fi
4558done
4559  done
4560IFS=$as_save_IFS
4561
4562  ;;
4563esac
4564fi
4565ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4566if test -n "$ac_pt_PKG_CONFIG"; then
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4568$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4569else
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571$as_echo "no" >&6; }
4572fi
4573
4574  if test "x$ac_pt_PKG_CONFIG" = x; then
4575    PKG_CONFIG=""
4576  else
4577    case $cross_compiling:$ac_tool_warned in
4578yes:)
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581ac_tool_warned=yes ;;
4582esac
4583    PKG_CONFIG=$ac_pt_PKG_CONFIG
4584  fi
4585else
4586  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4587fi
4588
4589fi
4590if test -n "$PKG_CONFIG"; then
4591	_pkg_min_version=0.9.0
4592	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4593$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4594	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4596$as_echo "yes" >&6; }
4597	else
4598		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599$as_echo "no" >&6; }
4600		PKG_CONFIG=""
4601	fi
4602fi
4603# Make sure we can run config.sub.
4604$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4605  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4608$as_echo_n "checking build system type... " >&6; }
4609if ${ac_cv_build+:} false; then :
4610  $as_echo_n "(cached) " >&6
4611else
4612  ac_build_alias=$build_alias
4613test "x$ac_build_alias" = x &&
4614  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4615test "x$ac_build_alias" = x &&
4616  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4617ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4618  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4622$as_echo "$ac_cv_build" >&6; }
4623case $ac_cv_build in
4624*-*-*) ;;
4625*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4626esac
4627build=$ac_cv_build
4628ac_save_IFS=$IFS; IFS='-'
4629set x $ac_cv_build
4630shift
4631build_cpu=$1
4632build_vendor=$2
4633shift; shift
4634# Remember, the first character of IFS is used to create $*,
4635# except with old shells:
4636build_os=$*
4637IFS=$ac_save_IFS
4638case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4639
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4642$as_echo_n "checking host system type... " >&6; }
4643if ${ac_cv_host+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if test "x$host_alias" = x; then
4647  ac_cv_host=$ac_cv_build
4648else
4649  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4650    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4651fi
4652
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4655$as_echo "$ac_cv_host" >&6; }
4656case $ac_cv_host in
4657*-*-*) ;;
4658*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4659esac
4660host=$ac_cv_host
4661ac_save_IFS=$IFS; IFS='-'
4662set x $ac_cv_host
4663shift
4664host_cpu=$1
4665host_vendor=$2
4666shift; shift
4667# Remember, the first character of IFS is used to create $*,
4668# except with old shells:
4669host_os=$*
4670IFS=$ac_save_IFS
4671case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4672
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4675$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4676if ${ac_cv_path_SED+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4680     for ac_i in 1 2 3 4 5 6 7; do
4681       ac_script="$ac_script$as_nl$ac_script"
4682     done
4683     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4684     { ac_script=; unset ac_script;}
4685     if test -z "$SED"; then
4686  ac_path_SED_found=false
4687  # Loop through the user's path and test for each of PROGNAME-LIST
4688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691  IFS=$as_save_IFS
4692  test -z "$as_dir" && as_dir=.
4693    for ac_prog in sed gsed; do
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4696      as_fn_executable_p "$ac_path_SED" || continue
4697# Check for GNU ac_path_SED and select it if it is found.
4698  # Check for GNU $ac_path_SED
4699case `"$ac_path_SED" --version 2>&1` in
4700*GNU*)
4701  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4702*)
4703  ac_count=0
4704  $as_echo_n 0123456789 >"conftest.in"
4705  while :
4706  do
4707    cat "conftest.in" "conftest.in" >"conftest.tmp"
4708    mv "conftest.tmp" "conftest.in"
4709    cp "conftest.in" "conftest.nl"
4710    $as_echo '' >> "conftest.nl"
4711    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713    as_fn_arith $ac_count + 1 && ac_count=$as_val
4714    if test $ac_count -gt ${ac_path_SED_max-0}; then
4715      # Best one so far, save it but keep looking for a better one
4716      ac_cv_path_SED="$ac_path_SED"
4717      ac_path_SED_max=$ac_count
4718    fi
4719    # 10*(2^10) chars as input seems more than enough
4720    test $ac_count -gt 10 && break
4721  done
4722  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723esac
4724
4725      $ac_path_SED_found && break 3
4726    done
4727  done
4728  done
4729IFS=$as_save_IFS
4730  if test -z "$ac_cv_path_SED"; then
4731    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4732  fi
4733else
4734  ac_cv_path_SED=$SED
4735fi
4736
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4739$as_echo "$ac_cv_path_SED" >&6; }
4740 SED="$ac_cv_path_SED"
4741  rm -f conftest.sed
4742
4743
4744
4745
4746
4747
4748# Check whether --enable-selective-werror was given.
4749if test "${enable_selective_werror+set}" = set; then :
4750  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4751else
4752  SELECTIVE_WERROR=yes
4753fi
4754
4755
4756
4757
4758
4759# -v is too short to test reliably with XORG_TESTSET_CFLAG
4760if test "x$SUNCC" = "xyes"; then
4761    BASE_CFLAGS="-v"
4762else
4763    BASE_CFLAGS=""
4764fi
4765
4766# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780xorg_testset_save_CFLAGS="$CFLAGS"
4781
4782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4783	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4784	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4785$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4786if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4787  $as_echo_n "(cached) " >&6
4788else
4789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790/* end confdefs.h.  */
4791int i;
4792_ACEOF
4793if ac_fn_c_try_compile "$LINENO"; then :
4794  xorg_cv_cc_flag_unknown_warning_option=yes
4795else
4796  xorg_cv_cc_flag_unknown_warning_option=no
4797fi
4798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4801$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4802	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4803	CFLAGS="$xorg_testset_save_CFLAGS"
4804fi
4805
4806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4807	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4808		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4809	fi
4810	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4811	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4812$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4813if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817/* end confdefs.h.  */
4818int i;
4819_ACEOF
4820if ac_fn_c_try_compile "$LINENO"; then :
4821  xorg_cv_cc_flag_unused_command_line_argument=yes
4822else
4823  xorg_cv_cc_flag_unused_command_line_argument=no
4824fi
4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4828$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4830	CFLAGS="$xorg_testset_save_CFLAGS"
4831fi
4832
4833found="no"
4834
4835	if test $found = "no" ; then
4836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838		fi
4839
4840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4842		fi
4843
4844		CFLAGS="$CFLAGS -Wall"
4845
4846		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4847$as_echo_n "checking if $CC supports -Wall... " >&6; }
4848		cacheid=xorg_cv_cc_flag__Wall
4849		if eval \${$cacheid+:} false; then :
4850  $as_echo_n "(cached) " >&6
4851else
4852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h.  */
4854int i;
4855int
4856main ()
4857{
4858
4859  ;
4860  return 0;
4861}
4862_ACEOF
4863if ac_fn_c_try_link "$LINENO"; then :
4864  eval $cacheid=yes
4865else
4866  eval $cacheid=no
4867fi
4868rm -f core conftest.err conftest.$ac_objext \
4869    conftest$ac_exeext conftest.$ac_ext
4870fi
4871
4872
4873		CFLAGS="$xorg_testset_save_CFLAGS"
4874
4875		eval supported=\$$cacheid
4876		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4877$as_echo "$supported" >&6; }
4878		if test "$supported" = "yes" ; then
4879			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4880			found="yes"
4881		fi
4882	fi
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898xorg_testset_save_CFLAGS="$CFLAGS"
4899
4900if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4901	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4903$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4904if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4905  $as_echo_n "(cached) " >&6
4906else
4907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h.  */
4909int i;
4910_ACEOF
4911if ac_fn_c_try_compile "$LINENO"; then :
4912  xorg_cv_cc_flag_unknown_warning_option=yes
4913else
4914  xorg_cv_cc_flag_unknown_warning_option=no
4915fi
4916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917fi
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4919$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4921	CFLAGS="$xorg_testset_save_CFLAGS"
4922fi
4923
4924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4927	fi
4928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4929	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4930$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4931if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936int i;
4937_ACEOF
4938if ac_fn_c_try_compile "$LINENO"; then :
4939  xorg_cv_cc_flag_unused_command_line_argument=yes
4940else
4941  xorg_cv_cc_flag_unused_command_line_argument=no
4942fi
4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4946$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4947	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4948	CFLAGS="$xorg_testset_save_CFLAGS"
4949fi
4950
4951found="no"
4952
4953	if test $found = "no" ; then
4954		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956		fi
4957
4958		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4959			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4960		fi
4961
4962		CFLAGS="$CFLAGS -Wpointer-arith"
4963
4964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4965$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4966		cacheid=xorg_cv_cc_flag__Wpointer_arith
4967		if eval \${$cacheid+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971/* end confdefs.h.  */
4972int i;
4973int
4974main ()
4975{
4976
4977  ;
4978  return 0;
4979}
4980_ACEOF
4981if ac_fn_c_try_link "$LINENO"; then :
4982  eval $cacheid=yes
4983else
4984  eval $cacheid=no
4985fi
4986rm -f core conftest.err conftest.$ac_objext \
4987    conftest$ac_exeext conftest.$ac_ext
4988fi
4989
4990
4991		CFLAGS="$xorg_testset_save_CFLAGS"
4992
4993		eval supported=\$$cacheid
4994		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4995$as_echo "$supported" >&6; }
4996		if test "$supported" = "yes" ; then
4997			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4998			found="yes"
4999		fi
5000	fi
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016xorg_testset_save_CFLAGS="$CFLAGS"
5017
5018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5019	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h.  */
5027int i;
5028_ACEOF
5029if ac_fn_c_try_compile "$LINENO"; then :
5030  xorg_cv_cc_flag_unknown_warning_option=yes
5031else
5032  xorg_cv_cc_flag_unknown_warning_option=no
5033fi
5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5038	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5039	CFLAGS="$xorg_testset_save_CFLAGS"
5040fi
5041
5042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5043	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5044		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5045	fi
5046	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5047	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053/* end confdefs.h.  */
5054int i;
5055_ACEOF
5056if ac_fn_c_try_compile "$LINENO"; then :
5057  xorg_cv_cc_flag_unused_command_line_argument=yes
5058else
5059  xorg_cv_cc_flag_unused_command_line_argument=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5066	CFLAGS="$xorg_testset_save_CFLAGS"
5067fi
5068
5069found="no"
5070
5071	if test $found = "no" ; then
5072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074		fi
5075
5076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078		fi
5079
5080		CFLAGS="$CFLAGS -Wmissing-declarations"
5081
5082		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5083$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5084		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5085		if eval \${$cacheid+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089/* end confdefs.h.  */
5090int i;
5091int
5092main ()
5093{
5094
5095  ;
5096  return 0;
5097}
5098_ACEOF
5099if ac_fn_c_try_link "$LINENO"; then :
5100  eval $cacheid=yes
5101else
5102  eval $cacheid=no
5103fi
5104rm -f core conftest.err conftest.$ac_objext \
5105    conftest$ac_exeext conftest.$ac_ext
5106fi
5107
5108
5109		CFLAGS="$xorg_testset_save_CFLAGS"
5110
5111		eval supported=\$$cacheid
5112		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5113$as_echo "$supported" >&6; }
5114		if test "$supported" = "yes" ; then
5115			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5116			found="yes"
5117		fi
5118	fi
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134xorg_testset_save_CFLAGS="$CFLAGS"
5135
5136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145int i;
5146_ACEOF
5147if ac_fn_c_try_compile "$LINENO"; then :
5148  xorg_cv_cc_flag_unknown_warning_option=yes
5149else
5150  xorg_cv_cc_flag_unknown_warning_option=no
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5156	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5157	CFLAGS="$xorg_testset_save_CFLAGS"
5158fi
5159
5160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5161	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5162		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5163	fi
5164	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5165	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h.  */
5172int i;
5173_ACEOF
5174if ac_fn_c_try_compile "$LINENO"; then :
5175  xorg_cv_cc_flag_unused_command_line_argument=yes
5176else
5177  xorg_cv_cc_flag_unused_command_line_argument=no
5178fi
5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184	CFLAGS="$xorg_testset_save_CFLAGS"
5185fi
5186
5187found="no"
5188
5189	if test $found = "no" ; then
5190		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192		fi
5193
5194		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196		fi
5197
5198		CFLAGS="$CFLAGS -Wformat=2"
5199
5200		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5201$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5202		cacheid=xorg_cv_cc_flag__Wformat_2
5203		if eval \${$cacheid+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209int
5210main ()
5211{
5212
5213  ;
5214  return 0;
5215}
5216_ACEOF
5217if ac_fn_c_try_link "$LINENO"; then :
5218  eval $cacheid=yes
5219else
5220  eval $cacheid=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext \
5223    conftest$ac_exeext conftest.$ac_ext
5224fi
5225
5226
5227		CFLAGS="$xorg_testset_save_CFLAGS"
5228
5229		eval supported=\$$cacheid
5230		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5231$as_echo "$supported" >&6; }
5232		if test "$supported" = "yes" ; then
5233			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5234			found="yes"
5235		fi
5236	fi
5237
5238	if test $found = "no" ; then
5239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5241		fi
5242
5243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5245		fi
5246
5247		CFLAGS="$CFLAGS -Wformat"
5248
5249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5250$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5251		cacheid=xorg_cv_cc_flag__Wformat
5252		if eval \${$cacheid+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258int
5259main ()
5260{
5261
5262  ;
5263  return 0;
5264}
5265_ACEOF
5266if ac_fn_c_try_link "$LINENO"; then :
5267  eval $cacheid=yes
5268else
5269  eval $cacheid=no
5270fi
5271rm -f core conftest.err conftest.$ac_objext \
5272    conftest$ac_exeext conftest.$ac_ext
5273fi
5274
5275
5276		CFLAGS="$xorg_testset_save_CFLAGS"
5277
5278		eval supported=\$$cacheid
5279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5280$as_echo "$supported" >&6; }
5281		if test "$supported" = "yes" ; then
5282			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5283			found="yes"
5284		fi
5285	fi
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303xorg_testset_save_CFLAGS="$CFLAGS"
5304
5305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317  xorg_cv_cc_flag_unknown_warning_option=yes
5318else
5319  xorg_cv_cc_flag_unknown_warning_option=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5326	CFLAGS="$xorg_testset_save_CFLAGS"
5327fi
5328
5329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5332	fi
5333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5337  $as_echo_n "(cached) " >&6
5338else
5339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341int i;
5342_ACEOF
5343if ac_fn_c_try_compile "$LINENO"; then :
5344  xorg_cv_cc_flag_unused_command_line_argument=yes
5345else
5346  xorg_cv_cc_flag_unused_command_line_argument=no
5347fi
5348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349fi
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5353	CFLAGS="$xorg_testset_save_CFLAGS"
5354fi
5355
5356found="no"
5357
5358	if test $found = "no" ; then
5359		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361		fi
5362
5363		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5365		fi
5366
5367		CFLAGS="$CFLAGS -Wstrict-prototypes"
5368
5369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5370$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5371		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5372		if eval \${$cacheid+:} false; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377int i;
5378int
5379main ()
5380{
5381
5382  ;
5383  return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_link "$LINENO"; then :
5387  eval $cacheid=yes
5388else
5389  eval $cacheid=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext \
5392    conftest$ac_exeext conftest.$ac_ext
5393fi
5394
5395
5396		CFLAGS="$xorg_testset_save_CFLAGS"
5397
5398		eval supported=\$$cacheid
5399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5400$as_echo "$supported" >&6; }
5401		if test "$supported" = "yes" ; then
5402			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5403			found="yes"
5404		fi
5405	fi
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421xorg_testset_save_CFLAGS="$CFLAGS"
5422
5423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5428  $as_echo_n "(cached) " >&6
5429else
5430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431/* end confdefs.h.  */
5432int i;
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"; then :
5435  xorg_cv_cc_flag_unknown_warning_option=yes
5436else
5437  xorg_cv_cc_flag_unknown_warning_option=no
5438fi
5439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5444	CFLAGS="$xorg_testset_save_CFLAGS"
5445fi
5446
5447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5450	fi
5451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459int i;
5460_ACEOF
5461if ac_fn_c_try_compile "$LINENO"; then :
5462  xorg_cv_cc_flag_unused_command_line_argument=yes
5463else
5464  xorg_cv_cc_flag_unused_command_line_argument=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467fi
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5471	CFLAGS="$xorg_testset_save_CFLAGS"
5472fi
5473
5474found="no"
5475
5476	if test $found = "no" ; then
5477		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479		fi
5480
5481		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5483		fi
5484
5485		CFLAGS="$CFLAGS -Wmissing-prototypes"
5486
5487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5488$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5489		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5490		if eval \${$cacheid+:} false; then :
5491  $as_echo_n "(cached) " >&6
5492else
5493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h.  */
5495int i;
5496int
5497main ()
5498{
5499
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504if ac_fn_c_try_link "$LINENO"; then :
5505  eval $cacheid=yes
5506else
5507  eval $cacheid=no
5508fi
5509rm -f core conftest.err conftest.$ac_objext \
5510    conftest$ac_exeext conftest.$ac_ext
5511fi
5512
5513
5514		CFLAGS="$xorg_testset_save_CFLAGS"
5515
5516		eval supported=\$$cacheid
5517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5518$as_echo "$supported" >&6; }
5519		if test "$supported" = "yes" ; then
5520			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5521			found="yes"
5522		fi
5523	fi
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539xorg_testset_save_CFLAGS="$CFLAGS"
5540
5541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h.  */
5550int i;
5551_ACEOF
5552if ac_fn_c_try_compile "$LINENO"; then :
5553  xorg_cv_cc_flag_unknown_warning_option=yes
5554else
5555  xorg_cv_cc_flag_unknown_warning_option=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5562	CFLAGS="$xorg_testset_save_CFLAGS"
5563fi
5564
5565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568	fi
5569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5573  $as_echo_n "(cached) " >&6
5574else
5575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h.  */
5577int i;
5578_ACEOF
5579if ac_fn_c_try_compile "$LINENO"; then :
5580  xorg_cv_cc_flag_unused_command_line_argument=yes
5581else
5582  xorg_cv_cc_flag_unused_command_line_argument=no
5583fi
5584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5589	CFLAGS="$xorg_testset_save_CFLAGS"
5590fi
5591
5592found="no"
5593
5594	if test $found = "no" ; then
5595		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597		fi
5598
5599		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601		fi
5602
5603		CFLAGS="$CFLAGS -Wnested-externs"
5604
5605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5606$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5607		cacheid=xorg_cv_cc_flag__Wnested_externs
5608		if eval \${$cacheid+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612/* end confdefs.h.  */
5613int i;
5614int
5615main ()
5616{
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_link "$LINENO"; then :
5623  eval $cacheid=yes
5624else
5625  eval $cacheid=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext \
5628    conftest$ac_exeext conftest.$ac_ext
5629fi
5630
5631
5632		CFLAGS="$xorg_testset_save_CFLAGS"
5633
5634		eval supported=\$$cacheid
5635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5636$as_echo "$supported" >&6; }
5637		if test "$supported" = "yes" ; then
5638			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5639			found="yes"
5640		fi
5641	fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657xorg_testset_save_CFLAGS="$CFLAGS"
5658
5659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668int i;
5669_ACEOF
5670if ac_fn_c_try_compile "$LINENO"; then :
5671  xorg_cv_cc_flag_unknown_warning_option=yes
5672else
5673  xorg_cv_cc_flag_unknown_warning_option=no
5674fi
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5680	CFLAGS="$xorg_testset_save_CFLAGS"
5681fi
5682
5683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5686	fi
5687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5691  $as_echo_n "(cached) " >&6
5692else
5693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698  xorg_cv_cc_flag_unused_command_line_argument=yes
5699else
5700  xorg_cv_cc_flag_unused_command_line_argument=no
5701fi
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703fi
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5707	CFLAGS="$xorg_testset_save_CFLAGS"
5708fi
5709
5710found="no"
5711
5712	if test $found = "no" ; then
5713		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715		fi
5716
5717		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5719		fi
5720
5721		CFLAGS="$CFLAGS -Wbad-function-cast"
5722
5723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5724$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5725		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5726		if eval \${$cacheid+:} false; then :
5727  $as_echo_n "(cached) " >&6
5728else
5729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730/* end confdefs.h.  */
5731int i;
5732int
5733main ()
5734{
5735
5736  ;
5737  return 0;
5738}
5739_ACEOF
5740if ac_fn_c_try_link "$LINENO"; then :
5741  eval $cacheid=yes
5742else
5743  eval $cacheid=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext \
5746    conftest$ac_exeext conftest.$ac_ext
5747fi
5748
5749
5750		CFLAGS="$xorg_testset_save_CFLAGS"
5751
5752		eval supported=\$$cacheid
5753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5754$as_echo "$supported" >&6; }
5755		if test "$supported" = "yes" ; then
5756			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5757			found="yes"
5758		fi
5759	fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775xorg_testset_save_CFLAGS="$CFLAGS"
5776
5777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5782  $as_echo_n "(cached) " >&6
5783else
5784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h.  */
5786int i;
5787_ACEOF
5788if ac_fn_c_try_compile "$LINENO"; then :
5789  xorg_cv_cc_flag_unknown_warning_option=yes
5790else
5791  xorg_cv_cc_flag_unknown_warning_option=no
5792fi
5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794fi
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5798	CFLAGS="$xorg_testset_save_CFLAGS"
5799fi
5800
5801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804	fi
5805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5809  $as_echo_n "(cached) " >&6
5810else
5811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812/* end confdefs.h.  */
5813int i;
5814_ACEOF
5815if ac_fn_c_try_compile "$LINENO"; then :
5816  xorg_cv_cc_flag_unused_command_line_argument=yes
5817else
5818  xorg_cv_cc_flag_unused_command_line_argument=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821fi
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828found="no"
5829
5830	if test $found = "no" ; then
5831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833		fi
5834
5835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837		fi
5838
5839		CFLAGS="$CFLAGS -Wold-style-definition"
5840
5841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5842$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5843		cacheid=xorg_cv_cc_flag__Wold_style_definition
5844		if eval \${$cacheid+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848/* end confdefs.h.  */
5849int i;
5850int
5851main ()
5852{
5853
5854  ;
5855  return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859  eval $cacheid=yes
5860else
5861  eval $cacheid=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864    conftest$ac_exeext conftest.$ac_ext
5865fi
5866
5867
5868		CFLAGS="$xorg_testset_save_CFLAGS"
5869
5870		eval supported=\$$cacheid
5871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5872$as_echo "$supported" >&6; }
5873		if test "$supported" = "yes" ; then
5874			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5875			found="yes"
5876		fi
5877	fi
5878
5879	if test $found = "no" ; then
5880		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5881			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882		fi
5883
5884		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5885			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886		fi
5887
5888		CFLAGS="$CFLAGS -fd"
5889
5890		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5891$as_echo_n "checking if $CC supports -fd... " >&6; }
5892		cacheid=xorg_cv_cc_flag__fd
5893		if eval \${$cacheid+:} false; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899int
5900main ()
5901{
5902
5903  ;
5904  return 0;
5905}
5906_ACEOF
5907if ac_fn_c_try_link "$LINENO"; then :
5908  eval $cacheid=yes
5909else
5910  eval $cacheid=no
5911fi
5912rm -f core conftest.err conftest.$ac_objext \
5913    conftest$ac_exeext conftest.$ac_ext
5914fi
5915
5916
5917		CFLAGS="$xorg_testset_save_CFLAGS"
5918
5919		eval supported=\$$cacheid
5920		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5921$as_echo "$supported" >&6; }
5922		if test "$supported" = "yes" ; then
5923			BASE_CFLAGS="$BASE_CFLAGS -fd"
5924			found="yes"
5925		fi
5926	fi
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942xorg_testset_save_CFLAGS="$CFLAGS"
5943
5944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5949  $as_echo_n "(cached) " >&6
5950else
5951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h.  */
5953int i;
5954_ACEOF
5955if ac_fn_c_try_compile "$LINENO"; then :
5956  xorg_cv_cc_flag_unknown_warning_option=yes
5957else
5958  xorg_cv_cc_flag_unknown_warning_option=no
5959fi
5960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961fi
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5964	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5965	CFLAGS="$xorg_testset_save_CFLAGS"
5966fi
5967
5968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5969	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5970		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971	fi
5972	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5976  $as_echo_n "(cached) " >&6
5977else
5978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980int i;
5981_ACEOF
5982if ac_fn_c_try_compile "$LINENO"; then :
5983  xorg_cv_cc_flag_unused_command_line_argument=yes
5984else
5985  xorg_cv_cc_flag_unused_command_line_argument=no
5986fi
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5991	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5992	CFLAGS="$xorg_testset_save_CFLAGS"
5993fi
5994
5995found="no"
5996
5997	if test $found = "no" ; then
5998		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000		fi
6001
6002		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6003			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004		fi
6005
6006		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6007
6008		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6009$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6010		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6011		if eval \${$cacheid+:} false; then :
6012  $as_echo_n "(cached) " >&6
6013else
6014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015/* end confdefs.h.  */
6016int i;
6017int
6018main ()
6019{
6020
6021  ;
6022  return 0;
6023}
6024_ACEOF
6025if ac_fn_c_try_link "$LINENO"; then :
6026  eval $cacheid=yes
6027else
6028  eval $cacheid=no
6029fi
6030rm -f core conftest.err conftest.$ac_objext \
6031    conftest$ac_exeext conftest.$ac_ext
6032fi
6033
6034
6035		CFLAGS="$xorg_testset_save_CFLAGS"
6036
6037		eval supported=\$$cacheid
6038		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6039$as_echo "$supported" >&6; }
6040		if test "$supported" = "yes" ; then
6041			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6042			found="yes"
6043		fi
6044	fi
6045
6046
6047
6048
6049
6050# This chunk adds additional warnings that could catch undesired effects.
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064xorg_testset_save_CFLAGS="$CFLAGS"
6065
6066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075int i;
6076_ACEOF
6077if ac_fn_c_try_compile "$LINENO"; then :
6078  xorg_cv_cc_flag_unknown_warning_option=yes
6079else
6080  xorg_cv_cc_flag_unknown_warning_option=no
6081fi
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6087	CFLAGS="$xorg_testset_save_CFLAGS"
6088fi
6089
6090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093	fi
6094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"; then :
6105  xorg_cv_cc_flag_unused_command_line_argument=yes
6106else
6107  xorg_cv_cc_flag_unused_command_line_argument=no
6108fi
6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110fi
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6114	CFLAGS="$xorg_testset_save_CFLAGS"
6115fi
6116
6117found="no"
6118
6119	if test $found = "no" ; then
6120		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122		fi
6123
6124		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126		fi
6127
6128		CFLAGS="$CFLAGS -Wunused"
6129
6130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6131$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6132		cacheid=xorg_cv_cc_flag__Wunused
6133		if eval \${$cacheid+:} false; then :
6134  $as_echo_n "(cached) " >&6
6135else
6136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h.  */
6138int i;
6139int
6140main ()
6141{
6142
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147if ac_fn_c_try_link "$LINENO"; then :
6148  eval $cacheid=yes
6149else
6150  eval $cacheid=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext \
6153    conftest$ac_exeext conftest.$ac_ext
6154fi
6155
6156
6157		CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159		eval supported=\$$cacheid
6160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161$as_echo "$supported" >&6; }
6162		if test "$supported" = "yes" ; then
6163			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6164			found="yes"
6165		fi
6166	fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193int i;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196  xorg_cv_cc_flag_unknown_warning_option=yes
6197else
6198  xorg_cv_cc_flag_unknown_warning_option=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6205	CFLAGS="$xorg_testset_save_CFLAGS"
6206fi
6207
6208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6211	fi
6212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223  xorg_cv_cc_flag_unused_command_line_argument=yes
6224else
6225  xorg_cv_cc_flag_unused_command_line_argument=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6232	CFLAGS="$xorg_testset_save_CFLAGS"
6233fi
6234
6235found="no"
6236
6237	if test $found = "no" ; then
6238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240		fi
6241
6242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6244		fi
6245
6246		CFLAGS="$CFLAGS -Wuninitialized"
6247
6248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6249$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6250		cacheid=xorg_cv_cc_flag__Wuninitialized
6251		if eval \${$cacheid+:} false; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256int i;
6257int
6258main ()
6259{
6260
6261  ;
6262  return 0;
6263}
6264_ACEOF
6265if ac_fn_c_try_link "$LINENO"; then :
6266  eval $cacheid=yes
6267else
6268  eval $cacheid=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext \
6271    conftest$ac_exeext conftest.$ac_ext
6272fi
6273
6274
6275		CFLAGS="$xorg_testset_save_CFLAGS"
6276
6277		eval supported=\$$cacheid
6278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6279$as_echo "$supported" >&6; }
6280		if test "$supported" = "yes" ; then
6281			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6282			found="yes"
6283		fi
6284	fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300xorg_testset_save_CFLAGS="$CFLAGS"
6301
6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6307  $as_echo_n "(cached) " >&6
6308else
6309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310/* end confdefs.h.  */
6311int i;
6312_ACEOF
6313if ac_fn_c_try_compile "$LINENO"; then :
6314  xorg_cv_cc_flag_unknown_warning_option=yes
6315else
6316  xorg_cv_cc_flag_unknown_warning_option=no
6317fi
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6323	CFLAGS="$xorg_testset_save_CFLAGS"
6324fi
6325
6326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329	fi
6330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_cv_cc_flag_unused_command_line_argument=yes
6342else
6343  xorg_cv_cc_flag_unused_command_line_argument=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6350	CFLAGS="$xorg_testset_save_CFLAGS"
6351fi
6352
6353found="no"
6354
6355	if test $found = "no" ; then
6356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358		fi
6359
6360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6362		fi
6363
6364		CFLAGS="$CFLAGS -Wshadow"
6365
6366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6367$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6368		cacheid=xorg_cv_cc_flag__Wshadow
6369		if eval \${$cacheid+:} false; then :
6370  $as_echo_n "(cached) " >&6
6371else
6372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373/* end confdefs.h.  */
6374int i;
6375int
6376main ()
6377{
6378
6379  ;
6380  return 0;
6381}
6382_ACEOF
6383if ac_fn_c_try_link "$LINENO"; then :
6384  eval $cacheid=yes
6385else
6386  eval $cacheid=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext \
6389    conftest$ac_exeext conftest.$ac_ext
6390fi
6391
6392
6393		CFLAGS="$xorg_testset_save_CFLAGS"
6394
6395		eval supported=\$$cacheid
6396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6397$as_echo "$supported" >&6; }
6398		if test "$supported" = "yes" ; then
6399			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6400			found="yes"
6401		fi
6402	fi
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418xorg_testset_save_CFLAGS="$CFLAGS"
6419
6420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6421	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6425  $as_echo_n "(cached) " >&6
6426else
6427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h.  */
6429int i;
6430_ACEOF
6431if ac_fn_c_try_compile "$LINENO"; then :
6432  xorg_cv_cc_flag_unknown_warning_option=yes
6433else
6434  xorg_cv_cc_flag_unknown_warning_option=no
6435fi
6436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6440	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6441	CFLAGS="$xorg_testset_save_CFLAGS"
6442fi
6443
6444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6445	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6446		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6447	fi
6448	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unused_command_line_argument=yes
6460else
6461  xorg_cv_cc_flag_unused_command_line_argument=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6467	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471found="no"
6472
6473	if test $found = "no" ; then
6474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476		fi
6477
6478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6480		fi
6481
6482		CFLAGS="$CFLAGS -Wmissing-noreturn"
6483
6484		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6485$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6486		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6487		if eval \${$cacheid+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492int i;
6493int
6494main ()
6495{
6496
6497  ;
6498  return 0;
6499}
6500_ACEOF
6501if ac_fn_c_try_link "$LINENO"; then :
6502  eval $cacheid=yes
6503else
6504  eval $cacheid=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext \
6507    conftest$ac_exeext conftest.$ac_ext
6508fi
6509
6510
6511		CFLAGS="$xorg_testset_save_CFLAGS"
6512
6513		eval supported=\$$cacheid
6514		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6515$as_echo "$supported" >&6; }
6516		if test "$supported" = "yes" ; then
6517			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6518			found="yes"
6519		fi
6520	fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536xorg_testset_save_CFLAGS="$CFLAGS"
6537
6538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6539	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6543  $as_echo_n "(cached) " >&6
6544else
6545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546/* end confdefs.h.  */
6547int i;
6548_ACEOF
6549if ac_fn_c_try_compile "$LINENO"; then :
6550  xorg_cv_cc_flag_unknown_warning_option=yes
6551else
6552  xorg_cv_cc_flag_unknown_warning_option=no
6553fi
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6558	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6559	CFLAGS="$xorg_testset_save_CFLAGS"
6560fi
6561
6562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6563	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6564		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6565	fi
6566	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unused_command_line_argument=yes
6578else
6579  xorg_cv_cc_flag_unused_command_line_argument=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589found="no"
6590
6591	if test $found = "no" ; then
6592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594		fi
6595
6596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6598		fi
6599
6600		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6601
6602		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6603$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6604		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6605		if eval \${$cacheid+:} false; then :
6606  $as_echo_n "(cached) " >&6
6607else
6608  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609/* end confdefs.h.  */
6610int i;
6611int
6612main ()
6613{
6614
6615  ;
6616  return 0;
6617}
6618_ACEOF
6619if ac_fn_c_try_link "$LINENO"; then :
6620  eval $cacheid=yes
6621else
6622  eval $cacheid=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext \
6625    conftest$ac_exeext conftest.$ac_ext
6626fi
6627
6628
6629		CFLAGS="$xorg_testset_save_CFLAGS"
6630
6631		eval supported=\$$cacheid
6632		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6633$as_echo "$supported" >&6; }
6634		if test "$supported" = "yes" ; then
6635			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6636			found="yes"
6637		fi
6638	fi
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654xorg_testset_save_CFLAGS="$CFLAGS"
6655
6656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6661  $as_echo_n "(cached) " >&6
6662else
6663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665int i;
6666_ACEOF
6667if ac_fn_c_try_compile "$LINENO"; then :
6668  xorg_cv_cc_flag_unknown_warning_option=yes
6669else
6670  xorg_cv_cc_flag_unknown_warning_option=no
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6676	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6677	CFLAGS="$xorg_testset_save_CFLAGS"
6678fi
6679
6680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6681	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683	fi
6684	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unused_command_line_argument=yes
6696else
6697  xorg_cv_cc_flag_unused_command_line_argument=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6703	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707found="no"
6708
6709	if test $found = "no" ; then
6710		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712		fi
6713
6714		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6715			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716		fi
6717
6718		CFLAGS="$CFLAGS -Wredundant-decls"
6719
6720		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6721$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6722		cacheid=xorg_cv_cc_flag__Wredundant_decls
6723		if eval \${$cacheid+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h.  */
6728int i;
6729int
6730main ()
6731{
6732
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737if ac_fn_c_try_link "$LINENO"; then :
6738  eval $cacheid=yes
6739else
6740  eval $cacheid=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext \
6743    conftest$ac_exeext conftest.$ac_ext
6744fi
6745
6746
6747		CFLAGS="$xorg_testset_save_CFLAGS"
6748
6749		eval supported=\$$cacheid
6750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6751$as_echo "$supported" >&6; }
6752		if test "$supported" = "yes" ; then
6753			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6754			found="yes"
6755		fi
6756	fi
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772xorg_testset_save_CFLAGS="$CFLAGS"
6773
6774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6779  $as_echo_n "(cached) " >&6
6780else
6781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h.  */
6783int i;
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786  xorg_cv_cc_flag_unknown_warning_option=yes
6787else
6788  xorg_cv_cc_flag_unknown_warning_option=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6794	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6795	CFLAGS="$xorg_testset_save_CFLAGS"
6796fi
6797
6798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6799	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6800		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6801	fi
6802	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811_ACEOF
6812if ac_fn_c_try_compile "$LINENO"; then :
6813  xorg_cv_cc_flag_unused_command_line_argument=yes
6814else
6815  xorg_cv_cc_flag_unused_command_line_argument=no
6816fi
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818fi
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822	CFLAGS="$xorg_testset_save_CFLAGS"
6823fi
6824
6825found="no"
6826
6827	if test $found = "no" ; then
6828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830		fi
6831
6832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834		fi
6835
6836		CFLAGS="$CFLAGS -Wlogical-op"
6837
6838		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6839$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6840		cacheid=xorg_cv_cc_flag__Wlogical_op
6841		if eval \${$cacheid+:} false; then :
6842  $as_echo_n "(cached) " >&6
6843else
6844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846int i;
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  eval $cacheid=yes
6857else
6858  eval $cacheid=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862fi
6863
6864
6865		CFLAGS="$xorg_testset_save_CFLAGS"
6866
6867		eval supported=\$$cacheid
6868		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6869$as_echo "$supported" >&6; }
6870		if test "$supported" = "yes" ; then
6871			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6872			found="yes"
6873		fi
6874	fi
6875
6876
6877
6878# These are currently disabled because they are noisy.  They will be enabled
6879# in the future once the codebase is sufficiently modernized to silence
6880# them.  For now, I don't want them to drown out the other warnings.
6881# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6882# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6883# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6884
6885# Turn some warnings into errors, so we don't accidently get successful builds
6886# when there are problems that should be fixed.
6887
6888if test "x$SELECTIVE_WERROR" = "xyes" ; then
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902xorg_testset_save_CFLAGS="$CFLAGS"
6903
6904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6909  $as_echo_n "(cached) " >&6
6910else
6911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912/* end confdefs.h.  */
6913int i;
6914_ACEOF
6915if ac_fn_c_try_compile "$LINENO"; then :
6916  xorg_cv_cc_flag_unknown_warning_option=yes
6917else
6918  xorg_cv_cc_flag_unknown_warning_option=no
6919fi
6920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921fi
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6925	CFLAGS="$xorg_testset_save_CFLAGS"
6926fi
6927
6928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931	fi
6932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h.  */
6940int i;
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943  xorg_cv_cc_flag_unused_command_line_argument=yes
6944else
6945  xorg_cv_cc_flag_unused_command_line_argument=no
6946fi
6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6948fi
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6952	CFLAGS="$xorg_testset_save_CFLAGS"
6953fi
6954
6955found="no"
6956
6957	if test $found = "no" ; then
6958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960		fi
6961
6962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964		fi
6965
6966		CFLAGS="$CFLAGS -Werror=implicit"
6967
6968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6969$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6970		cacheid=xorg_cv_cc_flag__Werror_implicit
6971		if eval \${$cacheid+:} false; then :
6972  $as_echo_n "(cached) " >&6
6973else
6974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h.  */
6976int i;
6977int
6978main ()
6979{
6980
6981  ;
6982  return 0;
6983}
6984_ACEOF
6985if ac_fn_c_try_link "$LINENO"; then :
6986  eval $cacheid=yes
6987else
6988  eval $cacheid=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext \
6991    conftest$ac_exeext conftest.$ac_ext
6992fi
6993
6994
6995		CFLAGS="$xorg_testset_save_CFLAGS"
6996
6997		eval supported=\$$cacheid
6998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6999$as_echo "$supported" >&6; }
7000		if test "$supported" = "yes" ; then
7001			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7002			found="yes"
7003		fi
7004	fi
7005
7006	if test $found = "no" ; then
7007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009		fi
7010
7011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013		fi
7014
7015		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7016
7017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7018$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7019		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7020		if eval \${$cacheid+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025int i;
7026int
7027main ()
7028{
7029
7030  ;
7031  return 0;
7032}
7033_ACEOF
7034if ac_fn_c_try_link "$LINENO"; then :
7035  eval $cacheid=yes
7036else
7037  eval $cacheid=no
7038fi
7039rm -f core conftest.err conftest.$ac_objext \
7040    conftest$ac_exeext conftest.$ac_ext
7041fi
7042
7043
7044		CFLAGS="$xorg_testset_save_CFLAGS"
7045
7046		eval supported=\$$cacheid
7047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7048$as_echo "$supported" >&6; }
7049		if test "$supported" = "yes" ; then
7050			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7051			found="yes"
7052		fi
7053	fi
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069xorg_testset_save_CFLAGS="$CFLAGS"
7070
7071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7076  $as_echo_n "(cached) " >&6
7077else
7078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079/* end confdefs.h.  */
7080int i;
7081_ACEOF
7082if ac_fn_c_try_compile "$LINENO"; then :
7083  xorg_cv_cc_flag_unknown_warning_option=yes
7084else
7085  xorg_cv_cc_flag_unknown_warning_option=no
7086fi
7087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088fi
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7092	CFLAGS="$xorg_testset_save_CFLAGS"
7093fi
7094
7095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7098	fi
7099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"; then :
7110  xorg_cv_cc_flag_unused_command_line_argument=yes
7111else
7112  xorg_cv_cc_flag_unused_command_line_argument=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7119	CFLAGS="$xorg_testset_save_CFLAGS"
7120fi
7121
7122found="no"
7123
7124	if test $found = "no" ; then
7125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127		fi
7128
7129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131		fi
7132
7133		CFLAGS="$CFLAGS -Werror=nonnull"
7134
7135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7136$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7137		cacheid=xorg_cv_cc_flag__Werror_nonnull
7138		if eval \${$cacheid+:} false; then :
7139  $as_echo_n "(cached) " >&6
7140else
7141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144int
7145main ()
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_link "$LINENO"; then :
7153  eval $cacheid=yes
7154else
7155  eval $cacheid=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext \
7158    conftest$ac_exeext conftest.$ac_ext
7159fi
7160
7161
7162		CFLAGS="$xorg_testset_save_CFLAGS"
7163
7164		eval supported=\$$cacheid
7165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7166$as_echo "$supported" >&6; }
7167		if test "$supported" = "yes" ; then
7168			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7169			found="yes"
7170		fi
7171	fi
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187xorg_testset_save_CFLAGS="$CFLAGS"
7188
7189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7194  $as_echo_n "(cached) " >&6
7195else
7196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h.  */
7198int i;
7199_ACEOF
7200if ac_fn_c_try_compile "$LINENO"; then :
7201  xorg_cv_cc_flag_unknown_warning_option=yes
7202else
7203  xorg_cv_cc_flag_unknown_warning_option=no
7204fi
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206fi
7207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7210	CFLAGS="$xorg_testset_save_CFLAGS"
7211fi
7212
7213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216	fi
7217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226_ACEOF
7227if ac_fn_c_try_compile "$LINENO"; then :
7228  xorg_cv_cc_flag_unused_command_line_argument=yes
7229else
7230  xorg_cv_cc_flag_unused_command_line_argument=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7237	CFLAGS="$xorg_testset_save_CFLAGS"
7238fi
7239
7240found="no"
7241
7242	if test $found = "no" ; then
7243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245		fi
7246
7247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7249		fi
7250
7251		CFLAGS="$CFLAGS -Werror=init-self"
7252
7253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7254$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7255		cacheid=xorg_cv_cc_flag__Werror_init_self
7256		if eval \${$cacheid+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261int i;
7262int
7263main ()
7264{
7265
7266  ;
7267  return 0;
7268}
7269_ACEOF
7270if ac_fn_c_try_link "$LINENO"; then :
7271  eval $cacheid=yes
7272else
7273  eval $cacheid=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext \
7276    conftest$ac_exeext conftest.$ac_ext
7277fi
7278
7279
7280		CFLAGS="$xorg_testset_save_CFLAGS"
7281
7282		eval supported=\$$cacheid
7283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7284$as_echo "$supported" >&6; }
7285		if test "$supported" = "yes" ; then
7286			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7287			found="yes"
7288		fi
7289	fi
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316int i;
7317_ACEOF
7318if ac_fn_c_try_compile "$LINENO"; then :
7319  xorg_cv_cc_flag_unknown_warning_option=yes
7320else
7321  xorg_cv_cc_flag_unknown_warning_option=no
7322fi
7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324fi
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7328	CFLAGS="$xorg_testset_save_CFLAGS"
7329fi
7330
7331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7334	fi
7335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345if ac_fn_c_try_compile "$LINENO"; then :
7346  xorg_cv_cc_flag_unused_command_line_argument=yes
7347else
7348  xorg_cv_cc_flag_unused_command_line_argument=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7355	CFLAGS="$xorg_testset_save_CFLAGS"
7356fi
7357
7358found="no"
7359
7360	if test $found = "no" ; then
7361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363		fi
7364
7365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367		fi
7368
7369		CFLAGS="$CFLAGS -Werror=main"
7370
7371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7372$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7373		cacheid=xorg_cv_cc_flag__Werror_main
7374		if eval \${$cacheid+:} false; then :
7375  $as_echo_n "(cached) " >&6
7376else
7377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378/* end confdefs.h.  */
7379int i;
7380int
7381main ()
7382{
7383
7384  ;
7385  return 0;
7386}
7387_ACEOF
7388if ac_fn_c_try_link "$LINENO"; then :
7389  eval $cacheid=yes
7390else
7391  eval $cacheid=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext \
7394    conftest$ac_exeext conftest.$ac_ext
7395fi
7396
7397
7398		CFLAGS="$xorg_testset_save_CFLAGS"
7399
7400		eval supported=\$$cacheid
7401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7402$as_echo "$supported" >&6; }
7403		if test "$supported" = "yes" ; then
7404			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7405			found="yes"
7406		fi
7407	fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423xorg_testset_save_CFLAGS="$CFLAGS"
7424
7425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h.  */
7434int i;
7435_ACEOF
7436if ac_fn_c_try_compile "$LINENO"; then :
7437  xorg_cv_cc_flag_unknown_warning_option=yes
7438else
7439  xorg_cv_cc_flag_unknown_warning_option=no
7440fi
7441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442fi
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7446	CFLAGS="$xorg_testset_save_CFLAGS"
7447fi
7448
7449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7452	fi
7453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unused_command_line_argument=yes
7465else
7466  xorg_cv_cc_flag_unused_command_line_argument=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476found="no"
7477
7478	if test $found = "no" ; then
7479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481		fi
7482
7483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7485		fi
7486
7487		CFLAGS="$CFLAGS -Werror=missing-braces"
7488
7489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7490$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7491		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7492		if eval \${$cacheid+:} false; then :
7493  $as_echo_n "(cached) " >&6
7494else
7495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h.  */
7497int i;
7498int
7499main ()
7500{
7501
7502  ;
7503  return 0;
7504}
7505_ACEOF
7506if ac_fn_c_try_link "$LINENO"; then :
7507  eval $cacheid=yes
7508else
7509  eval $cacheid=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512    conftest$ac_exeext conftest.$ac_ext
7513fi
7514
7515
7516		CFLAGS="$xorg_testset_save_CFLAGS"
7517
7518		eval supported=\$$cacheid
7519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7520$as_echo "$supported" >&6; }
7521		if test "$supported" = "yes" ; then
7522			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7523			found="yes"
7524		fi
7525	fi
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541xorg_testset_save_CFLAGS="$CFLAGS"
7542
7543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552int i;
7553_ACEOF
7554if ac_fn_c_try_compile "$LINENO"; then :
7555  xorg_cv_cc_flag_unknown_warning_option=yes
7556else
7557  xorg_cv_cc_flag_unknown_warning_option=no
7558fi
7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560fi
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7564	CFLAGS="$xorg_testset_save_CFLAGS"
7565fi
7566
7567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570	fi
7571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unused_command_line_argument=yes
7583else
7584  xorg_cv_cc_flag_unused_command_line_argument=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594found="no"
7595
7596	if test $found = "no" ; then
7597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599		fi
7600
7601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7603		fi
7604
7605		CFLAGS="$CFLAGS -Werror=sequence-point"
7606
7607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7608$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7609		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7610		if eval \${$cacheid+:} false; then :
7611  $as_echo_n "(cached) " >&6
7612else
7613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h.  */
7615int i;
7616int
7617main ()
7618{
7619
7620  ;
7621  return 0;
7622}
7623_ACEOF
7624if ac_fn_c_try_link "$LINENO"; then :
7625  eval $cacheid=yes
7626else
7627  eval $cacheid=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext \
7630    conftest$ac_exeext conftest.$ac_ext
7631fi
7632
7633
7634		CFLAGS="$xorg_testset_save_CFLAGS"
7635
7636		eval supported=\$$cacheid
7637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7638$as_echo "$supported" >&6; }
7639		if test "$supported" = "yes" ; then
7640			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7641			found="yes"
7642		fi
7643	fi
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659xorg_testset_save_CFLAGS="$CFLAGS"
7660
7661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7666  $as_echo_n "(cached) " >&6
7667else
7668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669/* end confdefs.h.  */
7670int i;
7671_ACEOF
7672if ac_fn_c_try_compile "$LINENO"; then :
7673  xorg_cv_cc_flag_unknown_warning_option=yes
7674else
7675  xorg_cv_cc_flag_unknown_warning_option=no
7676fi
7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678fi
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7682	CFLAGS="$xorg_testset_save_CFLAGS"
7683fi
7684
7685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688	fi
7689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7693  $as_echo_n "(cached) " >&6
7694else
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698_ACEOF
7699if ac_fn_c_try_compile "$LINENO"; then :
7700  xorg_cv_cc_flag_unused_command_line_argument=yes
7701else
7702  xorg_cv_cc_flag_unused_command_line_argument=no
7703fi
7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705fi
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7709	CFLAGS="$xorg_testset_save_CFLAGS"
7710fi
7711
7712found="no"
7713
7714	if test $found = "no" ; then
7715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717		fi
7718
7719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721		fi
7722
7723		CFLAGS="$CFLAGS -Werror=return-type"
7724
7725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7726$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7727		cacheid=xorg_cv_cc_flag__Werror_return_type
7728		if eval \${$cacheid+:} false; then :
7729  $as_echo_n "(cached) " >&6
7730else
7731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732/* end confdefs.h.  */
7733int i;
7734int
7735main ()
7736{
7737
7738  ;
7739  return 0;
7740}
7741_ACEOF
7742if ac_fn_c_try_link "$LINENO"; then :
7743  eval $cacheid=yes
7744else
7745  eval $cacheid=no
7746fi
7747rm -f core conftest.err conftest.$ac_objext \
7748    conftest$ac_exeext conftest.$ac_ext
7749fi
7750
7751
7752		CFLAGS="$xorg_testset_save_CFLAGS"
7753
7754		eval supported=\$$cacheid
7755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7756$as_echo "$supported" >&6; }
7757		if test "$supported" = "yes" ; then
7758			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7759			found="yes"
7760		fi
7761	fi
7762
7763	if test $found = "no" ; then
7764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766		fi
7767
7768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7770		fi
7771
7772		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7773
7774		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7775$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7776		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7777		if eval \${$cacheid+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783int
7784main ()
7785{
7786
7787  ;
7788  return 0;
7789}
7790_ACEOF
7791if ac_fn_c_try_link "$LINENO"; then :
7792  eval $cacheid=yes
7793else
7794  eval $cacheid=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext \
7797    conftest$ac_exeext conftest.$ac_ext
7798fi
7799
7800
7801		CFLAGS="$xorg_testset_save_CFLAGS"
7802
7803		eval supported=\$$cacheid
7804		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7805$as_echo "$supported" >&6; }
7806		if test "$supported" = "yes" ; then
7807			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7808			found="yes"
7809		fi
7810	fi
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826xorg_testset_save_CFLAGS="$CFLAGS"
7827
7828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7829	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7833  $as_echo_n "(cached) " >&6
7834else
7835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836/* end confdefs.h.  */
7837int i;
7838_ACEOF
7839if ac_fn_c_try_compile "$LINENO"; then :
7840  xorg_cv_cc_flag_unknown_warning_option=yes
7841else
7842  xorg_cv_cc_flag_unknown_warning_option=no
7843fi
7844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7848	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7849	CFLAGS="$xorg_testset_save_CFLAGS"
7850fi
7851
7852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7853	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7854		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7855	fi
7856	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865_ACEOF
7866if ac_fn_c_try_compile "$LINENO"; then :
7867  xorg_cv_cc_flag_unused_command_line_argument=yes
7868else
7869  xorg_cv_cc_flag_unused_command_line_argument=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7875	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7876	CFLAGS="$xorg_testset_save_CFLAGS"
7877fi
7878
7879found="no"
7880
7881	if test $found = "no" ; then
7882		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7883			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884		fi
7885
7886		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7887			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7888		fi
7889
7890		CFLAGS="$CFLAGS -Werror=trigraphs"
7891
7892		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7893$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7894		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7895		if eval \${$cacheid+:} false; then :
7896  $as_echo_n "(cached) " >&6
7897else
7898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h.  */
7900int i;
7901int
7902main ()
7903{
7904
7905  ;
7906  return 0;
7907}
7908_ACEOF
7909if ac_fn_c_try_link "$LINENO"; then :
7910  eval $cacheid=yes
7911else
7912  eval $cacheid=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext \
7915    conftest$ac_exeext conftest.$ac_ext
7916fi
7917
7918
7919		CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921		eval supported=\$$cacheid
7922		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923$as_echo "$supported" >&6; }
7924		if test "$supported" = "yes" ; then
7925			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7926			found="yes"
7927		fi
7928	fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7951  $as_echo_n "(cached) " >&6
7952else
7953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955int i;
7956_ACEOF
7957if ac_fn_c_try_compile "$LINENO"; then :
7958  xorg_cv_cc_flag_unknown_warning_option=yes
7959else
7960  xorg_cv_cc_flag_unknown_warning_option=no
7961fi
7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7967	CFLAGS="$xorg_testset_save_CFLAGS"
7968fi
7969
7970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973	fi
7974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"; then :
7985  xorg_cv_cc_flag_unused_command_line_argument=yes
7986else
7987  xorg_cv_cc_flag_unused_command_line_argument=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997found="no"
7998
7999	if test $found = "no" ; then
8000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002		fi
8003
8004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006		fi
8007
8008		CFLAGS="$CFLAGS -Werror=array-bounds"
8009
8010		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8011$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8012		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8013		if eval \${$cacheid+:} false; then :
8014  $as_echo_n "(cached) " >&6
8015else
8016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018int i;
8019int
8020main ()
8021{
8022
8023  ;
8024  return 0;
8025}
8026_ACEOF
8027if ac_fn_c_try_link "$LINENO"; then :
8028  eval $cacheid=yes
8029else
8030  eval $cacheid=no
8031fi
8032rm -f core conftest.err conftest.$ac_objext \
8033    conftest$ac_exeext conftest.$ac_ext
8034fi
8035
8036
8037		CFLAGS="$xorg_testset_save_CFLAGS"
8038
8039		eval supported=\$$cacheid
8040		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8041$as_echo "$supported" >&6; }
8042		if test "$supported" = "yes" ; then
8043			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8044			found="yes"
8045		fi
8046	fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062xorg_testset_save_CFLAGS="$CFLAGS"
8063
8064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8069  $as_echo_n "(cached) " >&6
8070else
8071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h.  */
8073int i;
8074_ACEOF
8075if ac_fn_c_try_compile "$LINENO"; then :
8076  xorg_cv_cc_flag_unknown_warning_option=yes
8077else
8078  xorg_cv_cc_flag_unknown_warning_option=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081fi
8082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8085	CFLAGS="$xorg_testset_save_CFLAGS"
8086fi
8087
8088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091	fi
8092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  xorg_cv_cc_flag_unused_command_line_argument=yes
8104else
8105  xorg_cv_cc_flag_unused_command_line_argument=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8112	CFLAGS="$xorg_testset_save_CFLAGS"
8113fi
8114
8115found="no"
8116
8117	if test $found = "no" ; then
8118		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120		fi
8121
8122		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124		fi
8125
8126		CFLAGS="$CFLAGS -Werror=write-strings"
8127
8128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8129$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8130		cacheid=xorg_cv_cc_flag__Werror_write_strings
8131		if eval \${$cacheid+:} false; then :
8132  $as_echo_n "(cached) " >&6
8133else
8134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135/* end confdefs.h.  */
8136int i;
8137int
8138main ()
8139{
8140
8141  ;
8142  return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_link "$LINENO"; then :
8146  eval $cacheid=yes
8147else
8148  eval $cacheid=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext \
8151    conftest$ac_exeext conftest.$ac_ext
8152fi
8153
8154
8155		CFLAGS="$xorg_testset_save_CFLAGS"
8156
8157		eval supported=\$$cacheid
8158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8159$as_echo "$supported" >&6; }
8160		if test "$supported" = "yes" ; then
8161			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8162			found="yes"
8163		fi
8164	fi
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180xorg_testset_save_CFLAGS="$CFLAGS"
8181
8182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190/* end confdefs.h.  */
8191int i;
8192_ACEOF
8193if ac_fn_c_try_compile "$LINENO"; then :
8194  xorg_cv_cc_flag_unknown_warning_option=yes
8195else
8196  xorg_cv_cc_flag_unknown_warning_option=no
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8203	CFLAGS="$xorg_testset_save_CFLAGS"
8204fi
8205
8206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8209	fi
8210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unused_command_line_argument=yes
8222else
8223  xorg_cv_cc_flag_unused_command_line_argument=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233found="no"
8234
8235	if test $found = "no" ; then
8236		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238		fi
8239
8240		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242		fi
8243
8244		CFLAGS="$CFLAGS -Werror=address"
8245
8246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8247$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8248		cacheid=xorg_cv_cc_flag__Werror_address
8249		if eval \${$cacheid+:} false; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253/* end confdefs.h.  */
8254int i;
8255int
8256main ()
8257{
8258
8259  ;
8260  return 0;
8261}
8262_ACEOF
8263if ac_fn_c_try_link "$LINENO"; then :
8264  eval $cacheid=yes
8265else
8266  eval $cacheid=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext \
8269    conftest$ac_exeext conftest.$ac_ext
8270fi
8271
8272
8273		CFLAGS="$xorg_testset_save_CFLAGS"
8274
8275		eval supported=\$$cacheid
8276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8277$as_echo "$supported" >&6; }
8278		if test "$supported" = "yes" ; then
8279			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8280			found="yes"
8281		fi
8282	fi
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298xorg_testset_save_CFLAGS="$CFLAGS"
8299
8300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8301	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8305  $as_echo_n "(cached) " >&6
8306else
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309int i;
8310_ACEOF
8311if ac_fn_c_try_compile "$LINENO"; then :
8312  xorg_cv_cc_flag_unknown_warning_option=yes
8313else
8314  xorg_cv_cc_flag_unknown_warning_option=no
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321	CFLAGS="$xorg_testset_save_CFLAGS"
8322fi
8323
8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327	fi
8328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8332  $as_echo_n "(cached) " >&6
8333else
8334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335/* end confdefs.h.  */
8336int i;
8337_ACEOF
8338if ac_fn_c_try_compile "$LINENO"; then :
8339  xorg_cv_cc_flag_unused_command_line_argument=yes
8340else
8341  xorg_cv_cc_flag_unused_command_line_argument=no
8342fi
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8347	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8348	CFLAGS="$xorg_testset_save_CFLAGS"
8349fi
8350
8351found="no"
8352
8353	if test $found = "no" ; then
8354		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356		fi
8357
8358		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8359			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360		fi
8361
8362		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8363
8364		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8365$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8366		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8367		if eval \${$cacheid+:} false; then :
8368  $as_echo_n "(cached) " >&6
8369else
8370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372int i;
8373int
8374main ()
8375{
8376
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_link "$LINENO"; then :
8382  eval $cacheid=yes
8383else
8384  eval $cacheid=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext \
8387    conftest$ac_exeext conftest.$ac_ext
8388fi
8389
8390
8391		CFLAGS="$xorg_testset_save_CFLAGS"
8392
8393		eval supported=\$$cacheid
8394		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8395$as_echo "$supported" >&6; }
8396		if test "$supported" = "yes" ; then
8397			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8398			found="yes"
8399		fi
8400	fi
8401
8402	if test $found = "no" ; then
8403		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405		fi
8406
8407		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409		fi
8410
8411		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8412
8413		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8414$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8415		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8416		if eval \${$cacheid+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421int i;
8422int
8423main ()
8424{
8425
8426  ;
8427  return 0;
8428}
8429_ACEOF
8430if ac_fn_c_try_link "$LINENO"; then :
8431  eval $cacheid=yes
8432else
8433  eval $cacheid=no
8434fi
8435rm -f core conftest.err conftest.$ac_objext \
8436    conftest$ac_exeext conftest.$ac_ext
8437fi
8438
8439
8440		CFLAGS="$xorg_testset_save_CFLAGS"
8441
8442		eval supported=\$$cacheid
8443		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8444$as_echo "$supported" >&6; }
8445		if test "$supported" = "yes" ; then
8446			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8447			found="yes"
8448		fi
8449	fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465xorg_testset_save_CFLAGS="$CFLAGS"
8466
8467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8468	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8470$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8471if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8472  $as_echo_n "(cached) " >&6
8473else
8474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h.  */
8476int i;
8477_ACEOF
8478if ac_fn_c_try_compile "$LINENO"; then :
8479  xorg_cv_cc_flag_unknown_warning_option=yes
8480else
8481  xorg_cv_cc_flag_unknown_warning_option=no
8482fi
8483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484fi
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8486$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8487	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8488	CFLAGS="$xorg_testset_save_CFLAGS"
8489fi
8490
8491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8492	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494	fi
8495	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8497$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8498if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8499  $as_echo_n "(cached) " >&6
8500else
8501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502/* end confdefs.h.  */
8503int i;
8504_ACEOF
8505if ac_fn_c_try_compile "$LINENO"; then :
8506  xorg_cv_cc_flag_unused_command_line_argument=yes
8507else
8508  xorg_cv_cc_flag_unused_command_line_argument=no
8509fi
8510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511fi
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8513$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8514	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8515	CFLAGS="$xorg_testset_save_CFLAGS"
8516fi
8517
8518found="no"
8519
8520	if test $found = "no" ; then
8521		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523		fi
8524
8525		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8526			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527		fi
8528
8529		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8530
8531		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8532$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8533		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8534		if eval \${$cacheid+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538/* end confdefs.h.  */
8539int i;
8540int
8541main ()
8542{
8543
8544  ;
8545  return 0;
8546}
8547_ACEOF
8548if ac_fn_c_try_link "$LINENO"; then :
8549  eval $cacheid=yes
8550else
8551  eval $cacheid=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext \
8554    conftest$ac_exeext conftest.$ac_ext
8555fi
8556
8557
8558		CFLAGS="$xorg_testset_save_CFLAGS"
8559
8560		eval supported=\$$cacheid
8561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8562$as_echo "$supported" >&6; }
8563		if test "$supported" = "yes" ; then
8564			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8565			found="yes"
8566		fi
8567	fi
8568
8569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8570else
8571{ $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
8572$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;}
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586xorg_testset_save_CFLAGS="$CFLAGS"
8587
8588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596/* end confdefs.h.  */
8597int i;
8598_ACEOF
8599if ac_fn_c_try_compile "$LINENO"; then :
8600  xorg_cv_cc_flag_unknown_warning_option=yes
8601else
8602  xorg_cv_cc_flag_unknown_warning_option=no
8603fi
8604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8609	CFLAGS="$xorg_testset_save_CFLAGS"
8610fi
8611
8612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615	fi
8616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"; then :
8627  xorg_cv_cc_flag_unused_command_line_argument=yes
8628else
8629  xorg_cv_cc_flag_unused_command_line_argument=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8635	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8636	CFLAGS="$xorg_testset_save_CFLAGS"
8637fi
8638
8639found="no"
8640
8641	if test $found = "no" ; then
8642		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644		fi
8645
8646		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8647			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648		fi
8649
8650		CFLAGS="$CFLAGS -Wimplicit"
8651
8652		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8653$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8654		cacheid=xorg_cv_cc_flag__Wimplicit
8655		if eval \${$cacheid+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h.  */
8660int i;
8661int
8662main ()
8663{
8664
8665  ;
8666  return 0;
8667}
8668_ACEOF
8669if ac_fn_c_try_link "$LINENO"; then :
8670  eval $cacheid=yes
8671else
8672  eval $cacheid=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext \
8675    conftest$ac_exeext conftest.$ac_ext
8676fi
8677
8678
8679		CFLAGS="$xorg_testset_save_CFLAGS"
8680
8681		eval supported=\$$cacheid
8682		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8683$as_echo "$supported" >&6; }
8684		if test "$supported" = "yes" ; then
8685			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8686			found="yes"
8687		fi
8688	fi
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704xorg_testset_save_CFLAGS="$CFLAGS"
8705
8706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8711  $as_echo_n "(cached) " >&6
8712else
8713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8714/* end confdefs.h.  */
8715int i;
8716_ACEOF
8717if ac_fn_c_try_compile "$LINENO"; then :
8718  xorg_cv_cc_flag_unknown_warning_option=yes
8719else
8720  xorg_cv_cc_flag_unknown_warning_option=no
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8726	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8727	CFLAGS="$xorg_testset_save_CFLAGS"
8728fi
8729
8730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8731	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8732		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733	fi
8734	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743_ACEOF
8744if ac_fn_c_try_compile "$LINENO"; then :
8745  xorg_cv_cc_flag_unused_command_line_argument=yes
8746else
8747  xorg_cv_cc_flag_unused_command_line_argument=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8753	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8754	CFLAGS="$xorg_testset_save_CFLAGS"
8755fi
8756
8757found="no"
8758
8759	if test $found = "no" ; then
8760		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762		fi
8763
8764		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8765			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8766		fi
8767
8768		CFLAGS="$CFLAGS -Wnonnull"
8769
8770		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8771$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8772		cacheid=xorg_cv_cc_flag__Wnonnull
8773		if eval \${$cacheid+:} false; then :
8774  $as_echo_n "(cached) " >&6
8775else
8776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h.  */
8778int i;
8779int
8780main ()
8781{
8782
8783  ;
8784  return 0;
8785}
8786_ACEOF
8787if ac_fn_c_try_link "$LINENO"; then :
8788  eval $cacheid=yes
8789else
8790  eval $cacheid=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext \
8793    conftest$ac_exeext conftest.$ac_ext
8794fi
8795
8796
8797		CFLAGS="$xorg_testset_save_CFLAGS"
8798
8799		eval supported=\$$cacheid
8800		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8801$as_echo "$supported" >&6; }
8802		if test "$supported" = "yes" ; then
8803			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8804			found="yes"
8805		fi
8806	fi
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822xorg_testset_save_CFLAGS="$CFLAGS"
8823
8824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8825	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8829  $as_echo_n "(cached) " >&6
8830else
8831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833int i;
8834_ACEOF
8835if ac_fn_c_try_compile "$LINENO"; then :
8836  xorg_cv_cc_flag_unknown_warning_option=yes
8837else
8838  xorg_cv_cc_flag_unknown_warning_option=no
8839fi
8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841fi
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8844	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8845	CFLAGS="$xorg_testset_save_CFLAGS"
8846fi
8847
8848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8849	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8850		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8851	fi
8852	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862if ac_fn_c_try_compile "$LINENO"; then :
8863  xorg_cv_cc_flag_unused_command_line_argument=yes
8864else
8865  xorg_cv_cc_flag_unused_command_line_argument=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875found="no"
8876
8877	if test $found = "no" ; then
8878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880		fi
8881
8882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8884		fi
8885
8886		CFLAGS="$CFLAGS -Winit-self"
8887
8888		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8889$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8890		cacheid=xorg_cv_cc_flag__Winit_self
8891		if eval \${$cacheid+:} false; then :
8892  $as_echo_n "(cached) " >&6
8893else
8894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895/* end confdefs.h.  */
8896int i;
8897int
8898main ()
8899{
8900
8901  ;
8902  return 0;
8903}
8904_ACEOF
8905if ac_fn_c_try_link "$LINENO"; then :
8906  eval $cacheid=yes
8907else
8908  eval $cacheid=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext \
8911    conftest$ac_exeext conftest.$ac_ext
8912fi
8913
8914
8915		CFLAGS="$xorg_testset_save_CFLAGS"
8916
8917		eval supported=\$$cacheid
8918		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8919$as_echo "$supported" >&6; }
8920		if test "$supported" = "yes" ; then
8921			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8922			found="yes"
8923		fi
8924	fi
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940xorg_testset_save_CFLAGS="$CFLAGS"
8941
8942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8943	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8947  $as_echo_n "(cached) " >&6
8948else
8949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950/* end confdefs.h.  */
8951int i;
8952_ACEOF
8953if ac_fn_c_try_compile "$LINENO"; then :
8954  xorg_cv_cc_flag_unknown_warning_option=yes
8955else
8956  xorg_cv_cc_flag_unknown_warning_option=no
8957fi
8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959fi
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8963	CFLAGS="$xorg_testset_save_CFLAGS"
8964fi
8965
8966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8969	fi
8970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unused_command_line_argument=yes
8982else
8983  xorg_cv_cc_flag_unused_command_line_argument=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8989	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993found="no"
8994
8995	if test $found = "no" ; then
8996		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998		fi
8999
9000		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9001			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9002		fi
9003
9004		CFLAGS="$CFLAGS -Wmain"
9005
9006		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9007$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9008		cacheid=xorg_cv_cc_flag__Wmain
9009		if eval \${$cacheid+:} false; then :
9010  $as_echo_n "(cached) " >&6
9011else
9012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013/* end confdefs.h.  */
9014int i;
9015int
9016main ()
9017{
9018
9019  ;
9020  return 0;
9021}
9022_ACEOF
9023if ac_fn_c_try_link "$LINENO"; then :
9024  eval $cacheid=yes
9025else
9026  eval $cacheid=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext \
9029    conftest$ac_exeext conftest.$ac_ext
9030fi
9031
9032
9033		CFLAGS="$xorg_testset_save_CFLAGS"
9034
9035		eval supported=\$$cacheid
9036		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9037$as_echo "$supported" >&6; }
9038		if test "$supported" = "yes" ; then
9039			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9040			found="yes"
9041		fi
9042	fi
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058xorg_testset_save_CFLAGS="$CFLAGS"
9059
9060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9061	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9065  $as_echo_n "(cached) " >&6
9066else
9067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h.  */
9069int i;
9070_ACEOF
9071if ac_fn_c_try_compile "$LINENO"; then :
9072  xorg_cv_cc_flag_unknown_warning_option=yes
9073else
9074  xorg_cv_cc_flag_unknown_warning_option=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9080	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9081	CFLAGS="$xorg_testset_save_CFLAGS"
9082fi
9083
9084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9085	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9086		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087	fi
9088	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unused_command_line_argument=yes
9100else
9101  xorg_cv_cc_flag_unused_command_line_argument=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9107	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111found="no"
9112
9113	if test $found = "no" ; then
9114		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116		fi
9117
9118		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9119			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120		fi
9121
9122		CFLAGS="$CFLAGS -Wmissing-braces"
9123
9124		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9125$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9126		cacheid=xorg_cv_cc_flag__Wmissing_braces
9127		if eval \${$cacheid+:} false; then :
9128  $as_echo_n "(cached) " >&6
9129else
9130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131/* end confdefs.h.  */
9132int i;
9133int
9134main ()
9135{
9136
9137  ;
9138  return 0;
9139}
9140_ACEOF
9141if ac_fn_c_try_link "$LINENO"; then :
9142  eval $cacheid=yes
9143else
9144  eval $cacheid=no
9145fi
9146rm -f core conftest.err conftest.$ac_objext \
9147    conftest$ac_exeext conftest.$ac_ext
9148fi
9149
9150
9151		CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153		eval supported=\$$cacheid
9154		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155$as_echo "$supported" >&6; }
9156		if test "$supported" = "yes" ; then
9157			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9158			found="yes"
9159		fi
9160	fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9183  $as_echo_n "(cached) " >&6
9184else
9185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h.  */
9187int i;
9188_ACEOF
9189if ac_fn_c_try_compile "$LINENO"; then :
9190  xorg_cv_cc_flag_unknown_warning_option=yes
9191else
9192  xorg_cv_cc_flag_unknown_warning_option=no
9193fi
9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195fi
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9199	CFLAGS="$xorg_testset_save_CFLAGS"
9200fi
9201
9202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9205	fi
9206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unused_command_line_argument=yes
9218else
9219  xorg_cv_cc_flag_unused_command_line_argument=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229found="no"
9230
9231	if test $found = "no" ; then
9232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234		fi
9235
9236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238		fi
9239
9240		CFLAGS="$CFLAGS -Wsequence-point"
9241
9242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9243$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9244		cacheid=xorg_cv_cc_flag__Wsequence_point
9245		if eval \${$cacheid+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h.  */
9250int i;
9251int
9252main ()
9253{
9254
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_link "$LINENO"; then :
9260  eval $cacheid=yes
9261else
9262  eval $cacheid=no
9263fi
9264rm -f core conftest.err conftest.$ac_objext \
9265    conftest$ac_exeext conftest.$ac_ext
9266fi
9267
9268
9269		CFLAGS="$xorg_testset_save_CFLAGS"
9270
9271		eval supported=\$$cacheid
9272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9273$as_echo "$supported" >&6; }
9274		if test "$supported" = "yes" ; then
9275			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9276			found="yes"
9277		fi
9278	fi
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294xorg_testset_save_CFLAGS="$CFLAGS"
9295
9296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9301  $as_echo_n "(cached) " >&6
9302else
9303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304/* end confdefs.h.  */
9305int i;
9306_ACEOF
9307if ac_fn_c_try_compile "$LINENO"; then :
9308  xorg_cv_cc_flag_unknown_warning_option=yes
9309else
9310  xorg_cv_cc_flag_unknown_warning_option=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313fi
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317	CFLAGS="$xorg_testset_save_CFLAGS"
9318fi
9319
9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323	fi
9324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unused_command_line_argument=yes
9336else
9337  xorg_cv_cc_flag_unused_command_line_argument=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347found="no"
9348
9349	if test $found = "no" ; then
9350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352		fi
9353
9354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9356		fi
9357
9358		CFLAGS="$CFLAGS -Wreturn-type"
9359
9360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9361$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9362		cacheid=xorg_cv_cc_flag__Wreturn_type
9363		if eval \${$cacheid+:} false; then :
9364  $as_echo_n "(cached) " >&6
9365else
9366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367/* end confdefs.h.  */
9368int i;
9369int
9370main ()
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377if ac_fn_c_try_link "$LINENO"; then :
9378  eval $cacheid=yes
9379else
9380  eval $cacheid=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext \
9383    conftest$ac_exeext conftest.$ac_ext
9384fi
9385
9386
9387		CFLAGS="$xorg_testset_save_CFLAGS"
9388
9389		eval supported=\$$cacheid
9390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9391$as_echo "$supported" >&6; }
9392		if test "$supported" = "yes" ; then
9393			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9394			found="yes"
9395		fi
9396	fi
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412xorg_testset_save_CFLAGS="$CFLAGS"
9413
9414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9419  $as_echo_n "(cached) " >&6
9420else
9421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422/* end confdefs.h.  */
9423int i;
9424_ACEOF
9425if ac_fn_c_try_compile "$LINENO"; then :
9426  xorg_cv_cc_flag_unknown_warning_option=yes
9427else
9428  xorg_cv_cc_flag_unknown_warning_option=no
9429fi
9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431fi
9432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9435	CFLAGS="$xorg_testset_save_CFLAGS"
9436fi
9437
9438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441	fi
9442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unused_command_line_argument=yes
9454else
9455  xorg_cv_cc_flag_unused_command_line_argument=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465found="no"
9466
9467	if test $found = "no" ; then
9468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470		fi
9471
9472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9474		fi
9475
9476		CFLAGS="$CFLAGS -Wtrigraphs"
9477
9478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9479$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9480		cacheid=xorg_cv_cc_flag__Wtrigraphs
9481		if eval \${$cacheid+:} false; then :
9482  $as_echo_n "(cached) " >&6
9483else
9484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485/* end confdefs.h.  */
9486int i;
9487int
9488main ()
9489{
9490
9491  ;
9492  return 0;
9493}
9494_ACEOF
9495if ac_fn_c_try_link "$LINENO"; then :
9496  eval $cacheid=yes
9497else
9498  eval $cacheid=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext \
9501    conftest$ac_exeext conftest.$ac_ext
9502fi
9503
9504
9505		CFLAGS="$xorg_testset_save_CFLAGS"
9506
9507		eval supported=\$$cacheid
9508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9509$as_echo "$supported" >&6; }
9510		if test "$supported" = "yes" ; then
9511			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9512			found="yes"
9513		fi
9514	fi
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530xorg_testset_save_CFLAGS="$CFLAGS"
9531
9532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9537  $as_echo_n "(cached) " >&6
9538else
9539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h.  */
9541int i;
9542_ACEOF
9543if ac_fn_c_try_compile "$LINENO"; then :
9544  xorg_cv_cc_flag_unknown_warning_option=yes
9545else
9546  xorg_cv_cc_flag_unknown_warning_option=no
9547fi
9548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549fi
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9553	CFLAGS="$xorg_testset_save_CFLAGS"
9554fi
9555
9556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9559	fi
9560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unused_command_line_argument=yes
9572else
9573  xorg_cv_cc_flag_unused_command_line_argument=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583found="no"
9584
9585	if test $found = "no" ; then
9586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588		fi
9589
9590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592		fi
9593
9594		CFLAGS="$CFLAGS -Warray-bounds"
9595
9596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9597$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9598		cacheid=xorg_cv_cc_flag__Warray_bounds
9599		if eval \${$cacheid+:} false; then :
9600  $as_echo_n "(cached) " >&6
9601else
9602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9603/* end confdefs.h.  */
9604int i;
9605int
9606main ()
9607{
9608
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614  eval $cacheid=yes
9615else
9616  eval $cacheid=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619    conftest$ac_exeext conftest.$ac_ext
9620fi
9621
9622
9623		CFLAGS="$xorg_testset_save_CFLAGS"
9624
9625		eval supported=\$$cacheid
9626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9627$as_echo "$supported" >&6; }
9628		if test "$supported" = "yes" ; then
9629			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9630			found="yes"
9631		fi
9632	fi
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648xorg_testset_save_CFLAGS="$CFLAGS"
9649
9650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9655  $as_echo_n "(cached) " >&6
9656else
9657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658/* end confdefs.h.  */
9659int i;
9660_ACEOF
9661if ac_fn_c_try_compile "$LINENO"; then :
9662  xorg_cv_cc_flag_unknown_warning_option=yes
9663else
9664  xorg_cv_cc_flag_unknown_warning_option=no
9665fi
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667fi
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9671	CFLAGS="$xorg_testset_save_CFLAGS"
9672fi
9673
9674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9677	fi
9678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unused_command_line_argument=yes
9690else
9691  xorg_cv_cc_flag_unused_command_line_argument=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701found="no"
9702
9703	if test $found = "no" ; then
9704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706		fi
9707
9708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710		fi
9711
9712		CFLAGS="$CFLAGS -Wwrite-strings"
9713
9714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9715$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9716		cacheid=xorg_cv_cc_flag__Wwrite_strings
9717		if eval \${$cacheid+:} false; then :
9718  $as_echo_n "(cached) " >&6
9719else
9720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721/* end confdefs.h.  */
9722int i;
9723int
9724main ()
9725{
9726
9727  ;
9728  return 0;
9729}
9730_ACEOF
9731if ac_fn_c_try_link "$LINENO"; then :
9732  eval $cacheid=yes
9733else
9734  eval $cacheid=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext \
9737    conftest$ac_exeext conftest.$ac_ext
9738fi
9739
9740
9741		CFLAGS="$xorg_testset_save_CFLAGS"
9742
9743		eval supported=\$$cacheid
9744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9745$as_echo "$supported" >&6; }
9746		if test "$supported" = "yes" ; then
9747			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9748			found="yes"
9749		fi
9750	fi
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766xorg_testset_save_CFLAGS="$CFLAGS"
9767
9768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776/* end confdefs.h.  */
9777int i;
9778_ACEOF
9779if ac_fn_c_try_compile "$LINENO"; then :
9780  xorg_cv_cc_flag_unknown_warning_option=yes
9781else
9782  xorg_cv_cc_flag_unknown_warning_option=no
9783fi
9784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785fi
9786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789	CFLAGS="$xorg_testset_save_CFLAGS"
9790fi
9791
9792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795	fi
9796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unused_command_line_argument=yes
9808else
9809  xorg_cv_cc_flag_unused_command_line_argument=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819found="no"
9820
9821	if test $found = "no" ; then
9822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824		fi
9825
9826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9828		fi
9829
9830		CFLAGS="$CFLAGS -Waddress"
9831
9832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9833$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9834		cacheid=xorg_cv_cc_flag__Waddress
9835		if eval \${$cacheid+:} false; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9839/* end confdefs.h.  */
9840int i;
9841int
9842main ()
9843{
9844
9845  ;
9846  return 0;
9847}
9848_ACEOF
9849if ac_fn_c_try_link "$LINENO"; then :
9850  eval $cacheid=yes
9851else
9852  eval $cacheid=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext \
9855    conftest$ac_exeext conftest.$ac_ext
9856fi
9857
9858
9859		CFLAGS="$xorg_testset_save_CFLAGS"
9860
9861		eval supported=\$$cacheid
9862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9863$as_echo "$supported" >&6; }
9864		if test "$supported" = "yes" ; then
9865			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9866			found="yes"
9867		fi
9868	fi
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884xorg_testset_save_CFLAGS="$CFLAGS"
9885
9886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9891  $as_echo_n "(cached) " >&6
9892else
9893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895int i;
9896_ACEOF
9897if ac_fn_c_try_compile "$LINENO"; then :
9898  xorg_cv_cc_flag_unknown_warning_option=yes
9899else
9900  xorg_cv_cc_flag_unknown_warning_option=no
9901fi
9902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9907	CFLAGS="$xorg_testset_save_CFLAGS"
9908fi
9909
9910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9913	fi
9914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unused_command_line_argument=yes
9926else
9927  xorg_cv_cc_flag_unused_command_line_argument=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937found="no"
9938
9939	if test $found = "no" ; then
9940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942		fi
9943
9944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946		fi
9947
9948		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9949
9950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9951$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9952		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9953		if eval \${$cacheid+:} false; then :
9954  $as_echo_n "(cached) " >&6
9955else
9956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957/* end confdefs.h.  */
9958int i;
9959int
9960main ()
9961{
9962
9963  ;
9964  return 0;
9965}
9966_ACEOF
9967if ac_fn_c_try_link "$LINENO"; then :
9968  eval $cacheid=yes
9969else
9970  eval $cacheid=no
9971fi
9972rm -f core conftest.err conftest.$ac_objext \
9973    conftest$ac_exeext conftest.$ac_ext
9974fi
9975
9976
9977		CFLAGS="$xorg_testset_save_CFLAGS"
9978
9979		eval supported=\$$cacheid
9980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9981$as_echo "$supported" >&6; }
9982		if test "$supported" = "yes" ; then
9983			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9984			found="yes"
9985		fi
9986	fi
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002xorg_testset_save_CFLAGS="$CFLAGS"
10003
10004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10009  $as_echo_n "(cached) " >&6
10010else
10011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012/* end confdefs.h.  */
10013int i;
10014_ACEOF
10015if ac_fn_c_try_compile "$LINENO"; then :
10016  xorg_cv_cc_flag_unknown_warning_option=yes
10017else
10018  xorg_cv_cc_flag_unknown_warning_option=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10031	fi
10032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040int i;
10041_ACEOF
10042if ac_fn_c_try_compile "$LINENO"; then :
10043  xorg_cv_cc_flag_unused_command_line_argument=yes
10044else
10045  xorg_cv_cc_flag_unused_command_line_argument=no
10046fi
10047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048fi
10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10052	CFLAGS="$xorg_testset_save_CFLAGS"
10053fi
10054
10055found="no"
10056
10057	if test $found = "no" ; then
10058		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060		fi
10061
10062		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10064		fi
10065
10066		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10067
10068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10069$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10070		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10071		if eval \${$cacheid+:} false; then :
10072  $as_echo_n "(cached) " >&6
10073else
10074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075/* end confdefs.h.  */
10076int i;
10077int
10078main ()
10079{
10080
10081  ;
10082  return 0;
10083}
10084_ACEOF
10085if ac_fn_c_try_link "$LINENO"; then :
10086  eval $cacheid=yes
10087else
10088  eval $cacheid=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext \
10091    conftest$ac_exeext conftest.$ac_ext
10092fi
10093
10094
10095		CFLAGS="$xorg_testset_save_CFLAGS"
10096
10097		eval supported=\$$cacheid
10098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10099$as_echo "$supported" >&6; }
10100		if test "$supported" = "yes" ; then
10101			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10102			found="yes"
10103		fi
10104	fi
10105
10106
10107fi
10108
10109
10110
10111
10112
10113
10114
10115		CWARNFLAGS="$BASE_CFLAGS"
10116		if  test "x$GCC" = xyes ; then
10117		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10118		fi
10119
10120
10121
10122
10123
10124
10125
10126
10127# Check whether --enable-strict-compilation was given.
10128if test "${enable_strict_compilation+set}" = set; then :
10129  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10130else
10131  STRICT_COMPILE=no
10132fi
10133
10134
10135
10136
10137
10138
10139STRICT_CFLAGS=""
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153xorg_testset_save_CFLAGS="$CFLAGS"
10154
10155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10160  $as_echo_n "(cached) " >&6
10161else
10162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163/* end confdefs.h.  */
10164int i;
10165_ACEOF
10166if ac_fn_c_try_compile "$LINENO"; then :
10167  xorg_cv_cc_flag_unknown_warning_option=yes
10168else
10169  xorg_cv_cc_flag_unknown_warning_option=no
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10176	CFLAGS="$xorg_testset_save_CFLAGS"
10177fi
10178
10179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10182	fi
10183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"; then :
10194  xorg_cv_cc_flag_unused_command_line_argument=yes
10195else
10196  xorg_cv_cc_flag_unused_command_line_argument=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206found="no"
10207
10208	if test $found = "no" ; then
10209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211		fi
10212
10213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10215		fi
10216
10217		CFLAGS="$CFLAGS -pedantic"
10218
10219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10220$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10221		cacheid=xorg_cv_cc_flag__pedantic
10222		if eval \${$cacheid+:} false; then :
10223  $as_echo_n "(cached) " >&6
10224else
10225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h.  */
10227int i;
10228int
10229main ()
10230{
10231
10232  ;
10233  return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237  eval $cacheid=yes
10238else
10239  eval $cacheid=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242    conftest$ac_exeext conftest.$ac_ext
10243fi
10244
10245
10246		CFLAGS="$xorg_testset_save_CFLAGS"
10247
10248		eval supported=\$$cacheid
10249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10250$as_echo "$supported" >&6; }
10251		if test "$supported" = "yes" ; then
10252			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10253			found="yes"
10254		fi
10255	fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271xorg_testset_save_CFLAGS="$CFLAGS"
10272
10273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282int i;
10283_ACEOF
10284if ac_fn_c_try_compile "$LINENO"; then :
10285  xorg_cv_cc_flag_unknown_warning_option=yes
10286else
10287  xorg_cv_cc_flag_unknown_warning_option=no
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290fi
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10294	CFLAGS="$xorg_testset_save_CFLAGS"
10295fi
10296
10297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10300	fi
10301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h.  */
10309int i;
10310_ACEOF
10311if ac_fn_c_try_compile "$LINENO"; then :
10312  xorg_cv_cc_flag_unused_command_line_argument=yes
10313else
10314  xorg_cv_cc_flag_unused_command_line_argument=no
10315fi
10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317fi
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321	CFLAGS="$xorg_testset_save_CFLAGS"
10322fi
10323
10324found="no"
10325
10326	if test $found = "no" ; then
10327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329		fi
10330
10331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333		fi
10334
10335		CFLAGS="$CFLAGS -Werror"
10336
10337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10338$as_echo_n "checking if $CC supports -Werror... " >&6; }
10339		cacheid=xorg_cv_cc_flag__Werror
10340		if eval \${$cacheid+:} false; then :
10341  $as_echo_n "(cached) " >&6
10342else
10343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344/* end confdefs.h.  */
10345int i;
10346int
10347main ()
10348{
10349
10350  ;
10351  return 0;
10352}
10353_ACEOF
10354if ac_fn_c_try_link "$LINENO"; then :
10355  eval $cacheid=yes
10356else
10357  eval $cacheid=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext \
10360    conftest$ac_exeext conftest.$ac_ext
10361fi
10362
10363
10364		CFLAGS="$xorg_testset_save_CFLAGS"
10365
10366		eval supported=\$$cacheid
10367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10368$as_echo "$supported" >&6; }
10369		if test "$supported" = "yes" ; then
10370			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10371			found="yes"
10372		fi
10373	fi
10374
10375	if test $found = "no" ; then
10376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378		fi
10379
10380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10382		fi
10383
10384		CFLAGS="$CFLAGS -errwarn"
10385
10386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10387$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10388		cacheid=xorg_cv_cc_flag__errwarn
10389		if eval \${$cacheid+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395int
10396main ()
10397{
10398
10399  ;
10400  return 0;
10401}
10402_ACEOF
10403if ac_fn_c_try_link "$LINENO"; then :
10404  eval $cacheid=yes
10405else
10406  eval $cacheid=no
10407fi
10408rm -f core conftest.err conftest.$ac_objext \
10409    conftest$ac_exeext conftest.$ac_ext
10410fi
10411
10412
10413		CFLAGS="$xorg_testset_save_CFLAGS"
10414
10415		eval supported=\$$cacheid
10416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10417$as_echo "$supported" >&6; }
10418		if test "$supported" = "yes" ; then
10419			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10420			found="yes"
10421		fi
10422	fi
10423
10424
10425
10426# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10427# activate it with -Werror, so we add it here explicitly.
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441xorg_testset_save_CFLAGS="$CFLAGS"
10442
10443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10448  $as_echo_n "(cached) " >&6
10449else
10450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h.  */
10452int i;
10453_ACEOF
10454if ac_fn_c_try_compile "$LINENO"; then :
10455  xorg_cv_cc_flag_unknown_warning_option=yes
10456else
10457  xorg_cv_cc_flag_unknown_warning_option=no
10458fi
10459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10464	CFLAGS="$xorg_testset_save_CFLAGS"
10465fi
10466
10467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470	fi
10471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h.  */
10479int i;
10480_ACEOF
10481if ac_fn_c_try_compile "$LINENO"; then :
10482  xorg_cv_cc_flag_unused_command_line_argument=yes
10483else
10484  xorg_cv_cc_flag_unused_command_line_argument=no
10485fi
10486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10491	CFLAGS="$xorg_testset_save_CFLAGS"
10492fi
10493
10494found="no"
10495
10496	if test $found = "no" ; then
10497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499		fi
10500
10501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10503		fi
10504
10505		CFLAGS="$CFLAGS -Werror=attributes"
10506
10507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10508$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10509		cacheid=xorg_cv_cc_flag__Werror_attributes
10510		if eval \${$cacheid+:} false; then :
10511  $as_echo_n "(cached) " >&6
10512else
10513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514/* end confdefs.h.  */
10515int i;
10516int
10517main ()
10518{
10519
10520  ;
10521  return 0;
10522}
10523_ACEOF
10524if ac_fn_c_try_link "$LINENO"; then :
10525  eval $cacheid=yes
10526else
10527  eval $cacheid=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext \
10530    conftest$ac_exeext conftest.$ac_ext
10531fi
10532
10533
10534		CFLAGS="$xorg_testset_save_CFLAGS"
10535
10536		eval supported=\$$cacheid
10537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10538$as_echo "$supported" >&6; }
10539		if test "$supported" = "yes" ; then
10540			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10541			found="yes"
10542		fi
10543	fi
10544
10545
10546
10547if test "x$STRICT_COMPILE" = "xyes"; then
10548    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10549    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10550fi
10551
10552
10553
10554
10555
10556
10557cat >>confdefs.h <<_ACEOF
10558#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10559_ACEOF
10560
10561	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10562	if test "x$PVM" = "x"; then
10563		PVM="0"
10564	fi
10565
10566cat >>confdefs.h <<_ACEOF
10567#define PACKAGE_VERSION_MINOR $PVM
10568_ACEOF
10569
10570	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10571	if test "x$PVP" = "x"; then
10572		PVP="0"
10573	fi
10574
10575cat >>confdefs.h <<_ACEOF
10576#define PACKAGE_VERSION_PATCHLEVEL $PVP
10577_ACEOF
10578
10579
10580
10581CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10582mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10583|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10584echo 'git directory not found: installing possibly empty changelog.' >&2)"
10585
10586
10587
10588
10589macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10590INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10591mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10592|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10593echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10594
10595
10596
10597
10598
10599
10600if test x$APP_MAN_SUFFIX = x    ; then
10601    APP_MAN_SUFFIX=1
10602fi
10603if test x$APP_MAN_DIR = x    ; then
10604    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10605fi
10606
10607if test x$LIB_MAN_SUFFIX = x    ; then
10608    LIB_MAN_SUFFIX=3
10609fi
10610if test x$LIB_MAN_DIR = x    ; then
10611    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10612fi
10613
10614if test x$FILE_MAN_SUFFIX = x    ; then
10615    case $host_os in
10616	# Solaris 2.0 - 11 use SysV man page sections
10617	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10618	*)				FILE_MAN_SUFFIX=5  ;;
10619    esac
10620fi
10621if test x$FILE_MAN_DIR = x    ; then
10622    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10623fi
10624
10625if test x$MISC_MAN_SUFFIX = x    ; then
10626    case $host_os in
10627	# Solaris 2.0 - 11 use SysV man page sections
10628	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10629	*)				MISC_MAN_SUFFIX=7  ;;
10630    esac
10631fi
10632if test x$MISC_MAN_DIR = x    ; then
10633    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10634fi
10635
10636if test x$DRIVER_MAN_SUFFIX = x    ; then
10637    case $host_os in
10638	# Solaris 2.0 - 11 use SysV man page sections
10639	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10640	*)				DRIVER_MAN_SUFFIX=4  ;;
10641    esac
10642fi
10643if test x$DRIVER_MAN_DIR = x    ; then
10644    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10645fi
10646
10647if test x$ADMIN_MAN_SUFFIX = x    ; then
10648    case $host_os in
10649	# Solaris 2.0 - 11 use SysV man page sections
10650	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10651	*)				ADMIN_MAN_SUFFIX=8  ;;
10652    esac
10653fi
10654if test x$ADMIN_MAN_DIR = x    ; then
10655    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10656fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672XORG_MAN_PAGE="X Version 11"
10673
10674MAN_SUBSTS="\
10675	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10676	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10677	-e 's|__xservername__|Xorg|g' \
10678	-e 's|__xconfigfile__|xorg.conf|g' \
10679	-e 's|__projectroot__|\$(prefix)|g' \
10680	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10681	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10682	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10683	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10684	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10685	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10686	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10687
10688
10689
10690# Check whether --enable-silent-rules was given.
10691if test "${enable_silent_rules+set}" = set; then :
10692  enableval=$enable_silent_rules;
10693fi
10694
10695case $enable_silent_rules in # (((
10696  yes) AM_DEFAULT_VERBOSITY=0;;
10697   no) AM_DEFAULT_VERBOSITY=1;;
10698    *) AM_DEFAULT_VERBOSITY=0;;
10699esac
10700am_make=${MAKE-make}
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10702$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10703if ${am_cv_make_support_nested_variables+:} false; then :
10704  $as_echo_n "(cached) " >&6
10705else
10706  if $as_echo 'TRUE=$(BAR$(V))
10707BAR0=false
10708BAR1=true
10709V=1
10710am__doit:
10711	@$(TRUE)
10712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10713  am_cv_make_support_nested_variables=yes
10714else
10715  am_cv_make_support_nested_variables=no
10716fi
10717fi
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10719$as_echo "$am_cv_make_support_nested_variables" >&6; }
10720if test $am_cv_make_support_nested_variables = yes; then
10721    AM_V='$(V)'
10722  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10723else
10724  AM_V=$AM_DEFAULT_VERBOSITY
10725  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10726fi
10727AM_BACKSLASH='\'
10728
10729
10730
10731ac_ext=c
10732ac_cpp='$CPP $CPPFLAGS'
10733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735ac_compiler_gnu=$ac_cv_c_compiler_gnu
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10737$as_echo_n "checking how to run the C preprocessor... " >&6; }
10738# On Suns, sometimes $CPP names a directory.
10739if test -n "$CPP" && test -d "$CPP"; then
10740  CPP=
10741fi
10742if test -z "$CPP"; then
10743  if ${ac_cv_prog_CPP+:} false; then :
10744  $as_echo_n "(cached) " >&6
10745else
10746      # Double quotes because CPP needs to be expanded
10747    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10748    do
10749      ac_preproc_ok=false
10750for ac_c_preproc_warn_flag in '' yes
10751do
10752  # Use a header file that comes with gcc, so configuring glibc
10753  # with a fresh cross-compiler works.
10754  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755  # <limits.h> exists even on freestanding compilers.
10756  # On the NeXT, cc -E runs the code through the compiler's parser,
10757  # not just through cpp. "Syntax error" is here to catch this case.
10758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759/* end confdefs.h.  */
10760#ifdef __STDC__
10761# include <limits.h>
10762#else
10763# include <assert.h>
10764#endif
10765		     Syntax error
10766_ACEOF
10767if ac_fn_c_try_cpp "$LINENO"; then :
10768
10769else
10770  # Broken: fails on valid input.
10771continue
10772fi
10773rm -f conftest.err conftest.i conftest.$ac_ext
10774
10775  # OK, works on sane cases.  Now check whether nonexistent headers
10776  # can be detected and how.
10777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778/* end confdefs.h.  */
10779#include <ac_nonexistent.h>
10780_ACEOF
10781if ac_fn_c_try_cpp "$LINENO"; then :
10782  # Broken: success on invalid input.
10783continue
10784else
10785  # Passes both tests.
10786ac_preproc_ok=:
10787break
10788fi
10789rm -f conftest.err conftest.i conftest.$ac_ext
10790
10791done
10792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10793rm -f conftest.i conftest.err conftest.$ac_ext
10794if $ac_preproc_ok; then :
10795  break
10796fi
10797
10798    done
10799    ac_cv_prog_CPP=$CPP
10800
10801fi
10802  CPP=$ac_cv_prog_CPP
10803else
10804  ac_cv_prog_CPP=$CPP
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10807$as_echo "$CPP" >&6; }
10808ac_preproc_ok=false
10809for ac_c_preproc_warn_flag in '' yes
10810do
10811  # Use a header file that comes with gcc, so configuring glibc
10812  # with a fresh cross-compiler works.
10813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10814  # <limits.h> exists even on freestanding compilers.
10815  # On the NeXT, cc -E runs the code through the compiler's parser,
10816  # not just through cpp. "Syntax error" is here to catch this case.
10817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819#ifdef __STDC__
10820# include <limits.h>
10821#else
10822# include <assert.h>
10823#endif
10824		     Syntax error
10825_ACEOF
10826if ac_fn_c_try_cpp "$LINENO"; then :
10827
10828else
10829  # Broken: fails on valid input.
10830continue
10831fi
10832rm -f conftest.err conftest.i conftest.$ac_ext
10833
10834  # OK, works on sane cases.  Now check whether nonexistent headers
10835  # can be detected and how.
10836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837/* end confdefs.h.  */
10838#include <ac_nonexistent.h>
10839_ACEOF
10840if ac_fn_c_try_cpp "$LINENO"; then :
10841  # Broken: success on invalid input.
10842continue
10843else
10844  # Passes both tests.
10845ac_preproc_ok=:
10846break
10847fi
10848rm -f conftest.err conftest.i conftest.$ac_ext
10849
10850done
10851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10852rm -f conftest.i conftest.err conftest.$ac_ext
10853if $ac_preproc_ok; then :
10854
10855else
10856  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10858as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10859See \`config.log' for more details" "$LINENO" 5; }
10860fi
10861
10862ac_ext=c
10863ac_cpp='$CPP $CPPFLAGS'
10864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10866ac_compiler_gnu=$ac_cv_c_compiler_gnu
10867
10868
10869
10870for ac_prog in cpp
10871do
10872  # Extract the first word of "$ac_prog", so it can be a program name with args.
10873set dummy $ac_prog; ac_word=$2
10874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10875$as_echo_n "checking for $ac_word... " >&6; }
10876if ${ac_cv_path_RAWCPP+:} false; then :
10877  $as_echo_n "(cached) " >&6
10878else
10879  case $RAWCPP in
10880  [\\/]* | ?:[\\/]*)
10881  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10882  ;;
10883  *)
10884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10886for as_dir in $as_dummy
10887do
10888  IFS=$as_save_IFS
10889  test -z "$as_dir" && as_dir=.
10890    for ac_exec_ext in '' $ac_executable_extensions; do
10891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10894    break 2
10895  fi
10896done
10897  done
10898IFS=$as_save_IFS
10899
10900  ;;
10901esac
10902fi
10903RAWCPP=$ac_cv_path_RAWCPP
10904if test -n "$RAWCPP"; then
10905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10906$as_echo "$RAWCPP" >&6; }
10907else
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
10910fi
10911
10912
10913  test -n "$RAWCPP" && break
10914done
10915test -n "$RAWCPP" || RAWCPP="${CPP}"
10916
10917
10918# Check for flag to avoid builtin definitions - assumes unix is predefined,
10919# which is not the best choice for supporting other OS'es, but covers most
10920# of the ones we need for now.
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10922$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924/* end confdefs.h.  */
10925Does cpp redefine unix ?
10926_ACEOF
10927if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10928	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
10930else
10931	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10932		RAWCPPFLAGS=-undef
10933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10934$as_echo "yes" >&6; }
10935	# under Cygwin unix is still defined even with -undef
10936	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10937		RAWCPPFLAGS="-undef -ansi"
10938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10939$as_echo "yes, with -ansi" >&6; }
10940	else
10941		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
10942	fi
10943fi
10944rm -f conftest.$ac_ext
10945
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10947$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950Does cpp preserve   "whitespace"?
10951_ACEOF
10952if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10953	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
10955else
10956	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
10957		TRADITIONALCPPFLAGS="-traditional"
10958		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10960$as_echo "yes" >&6; }
10961	else
10962		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
10963	fi
10964fi
10965rm -f conftest.$ac_ext
10966
10967
10968
10969CPP_PROGRAM=${RAWCPP}
10970
10971
10972for ac_func in mkstemp
10973do :
10974  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10975if test "x$ac_cv_func_mkstemp" = xyes; then :
10976  cat >>confdefs.h <<_ACEOF
10977#define HAVE_MKSTEMP 1
10978_ACEOF
10979
10980fi
10981done
10982
10983
10984# Extract the first word of "perl", so it can be a program name with args.
10985set dummy perl; ac_word=$2
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if ${ac_cv_prog_HAS_PERL+:} false; then :
10989  $as_echo_n "(cached) " >&6
10990else
10991  if test -n "$HAS_PERL"; then
10992  ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997  IFS=$as_save_IFS
10998  test -z "$as_dir" && as_dir=.
10999    for ac_exec_ext in '' $ac_executable_extensions; do
11000  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001    ac_cv_prog_HAS_PERL="yes"
11002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11003    break 2
11004  fi
11005done
11006  done
11007IFS=$as_save_IFS
11008
11009fi
11010fi
11011HAS_PERL=$ac_cv_prog_HAS_PERL
11012if test -n "$HAS_PERL"; then
11013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
11014$as_echo "$HAS_PERL" >&6; }
11015else
11016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
11018fi
11019
11020
11021 if test "x$HAS_PERL" = xyes; then
11022  HAS_PERL_TRUE=
11023  HAS_PERL_FALSE='#'
11024else
11025  HAS_PERL_TRUE='#'
11026  HAS_PERL_FALSE=
11027fi
11028
11029
11030
11031
11032DEFAULT_XCONFDIR="${libdir}/X11/config"
11033
11034# Check whether --with-config-dir was given.
11035if test "${with_config_dir+set}" = set; then :
11036  withval=$with_config_dir; XCONFDIR="$withval"
11037else
11038  XCONFDIR="$DEFAULT_XCONFDIR"
11039fi
11040
11041
11042
11043DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
11044
11045# Check whether --with-script-preproc-cmd was given.
11046if test "${with_script_preproc_cmd+set}" = set; then :
11047  withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
11048else
11049  PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
11050fi
11051
11052
11053
11054DEFAULT_ARCMD="ar clq"
11055
11056# Check whether --with-create-lib-cmd was given.
11057if test "${with_create_lib_cmd+set}" = set; then :
11058  withval=$with_create_lib_cmd; ARCMD="$withval"
11059else
11060  ARCMD="$DEFAULT_ARCMD"
11061fi
11062
11063
11064
11065DEFAULT_RANLIB="ranlib"
11066
11067# Check whether --with-clean-lib-cmd was given.
11068if test "${with_clean_lib_cmd+set}" = set; then :
11069  withval=$with_clean_lib_cmd; RANLIB="$withval"
11070else
11071  RANLIB="$DEFAULT_RANLIB"
11072fi
11073
11074
11075
11076# Check whether --enable-revpath was given.
11077if test "${enable_revpath+set}" = set; then :
11078  enableval=$enable_revpath; BUILD_REVPATH="$enableval"
11079else
11080  BUILD_REVPATH=yes
11081fi
11082
11083 if test "x$BUILD_REVPATH" = xyes; then
11084  BUILD_REVPATH_TRUE=
11085  BUILD_REVPATH_FALSE='#'
11086else
11087  BUILD_REVPATH_TRUE='#'
11088  BUILD_REVPATH_FALSE=
11089fi
11090
11091
11092# Check whether --enable-makeg was given.
11093if test "${enable_makeg+set}" = set; then :
11094  enableval=$enable_makeg; BUILD_MAKEG="$enableval"
11095else
11096  BUILD_MAKEG=yes
11097fi
11098
11099 if test "x$BUILD_MAKEG" = xyes; then
11100  BUILD_MAKEG_TRUE=
11101  BUILD_MAKEG_FALSE='#'
11102else
11103  BUILD_MAKEG_TRUE='#'
11104  BUILD_MAKEG_FALSE=
11105fi
11106
11107
11108# Check whether --enable-xmkmf was given.
11109if test "${enable_xmkmf+set}" = set; then :
11110  enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
11111else
11112  BUILD_XMKMF=yes
11113fi
11114
11115 if test "x$BUILD_XMKMF" = xyes; then
11116  BUILD_XMKMF_TRUE=
11117  BUILD_XMKMF_FALSE='#'
11118else
11119  BUILD_XMKMF_TRUE='#'
11120  BUILD_XMKMF_FALSE=
11121fi
11122
11123
11124# Check whether --enable-ccmakedep was given.
11125if test "${enable_ccmakedep+set}" = set; then :
11126  enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
11127else
11128  BUILD_CCMAKEDEP=yes
11129fi
11130
11131 if test "x$BUILD_CCMAKEDEP" = xyes; then
11132  BUILD_CCMAKEDEP_TRUE=
11133  BUILD_CCMAKEDEP_FALSE='#'
11134else
11135  BUILD_CCMAKEDEP_TRUE='#'
11136  BUILD_CCMAKEDEP_FALSE=
11137fi
11138
11139
11140# Check whether --enable-mergelib was given.
11141if test "${enable_mergelib+set}" = set; then :
11142  enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
11143else
11144  BUILD_MERGELIB=yes
11145fi
11146
11147 if test "x$BUILD_MERGELIB" = xyes; then
11148  BUILD_MERGELIB_TRUE=
11149  BUILD_MERGELIB_FALSE='#'
11150else
11151  BUILD_MERGELIB_TRUE='#'
11152  BUILD_MERGELIB_FALSE=
11153fi
11154
11155
11156# Check whether --enable-mkdirhier was given.
11157if test "${enable_mkdirhier+set}" = set; then :
11158  enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
11159else
11160  BUILD_MKDIRHIER=yes
11161fi
11162
11163 if test "x$BUILD_MKDIRHIER" = xyes; then
11164  BUILD_MKDIRHIER_TRUE=
11165  BUILD_MKDIRHIER_FALSE='#'
11166else
11167  BUILD_MKDIRHIER_TRUE='#'
11168  BUILD_MKDIRHIER_FALSE=
11169fi
11170
11171
11172# Check whether --enable-cleanlinks was given.
11173if test "${enable_cleanlinks+set}" = set; then :
11174  enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
11175else
11176  BUILD_CLEANLINKS=yes
11177fi
11178
11179 if test "x$BUILD_CLEANLINKS" = xyes; then
11180  BUILD_CLEANLINKS_TRUE=
11181  BUILD_CLEANLINKS_FALSE='#'
11182else
11183  BUILD_CLEANLINKS_TRUE='#'
11184  BUILD_CLEANLINKS_FALSE=
11185fi
11186
11187
11188# Check whether --enable-mkhtmlindex was given.
11189if test "${enable_mkhtmlindex+set}" = set; then :
11190  enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
11191else
11192  BUILD_MKHTMLINDEX=yes
11193fi
11194
11195 if test "x$BUILD_MKHTMLINDEX" = xyes; then
11196  BUILD_MKHTMLINDEX_TRUE=
11197  BUILD_MKHTMLINDEX_FALSE='#'
11198else
11199  BUILD_MKHTMLINDEX_TRUE='#'
11200  BUILD_MKHTMLINDEX_FALSE=
11201fi
11202
11203
11204# Checks for pkg-config packages
11205
11206pkg_failed=no
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
11208$as_echo_n "checking for XPROTO... " >&6; }
11209
11210if test -n "$XPROTO_CFLAGS"; then
11211    pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
11212 elif test -n "$PKG_CONFIG"; then
11213    if test -n "$PKG_CONFIG" && \
11214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11215  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11216  ac_status=$?
11217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218  test $ac_status = 0; }; then
11219  pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11220		      test "x$?" != "x0" && pkg_failed=yes
11221else
11222  pkg_failed=yes
11223fi
11224 else
11225    pkg_failed=untried
11226fi
11227if test -n "$XPROTO_LIBS"; then
11228    pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
11229 elif test -n "$PKG_CONFIG"; then
11230    if test -n "$PKG_CONFIG" && \
11231    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11232  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11233  ac_status=$?
11234  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11235  test $ac_status = 0; }; then
11236  pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11237		      test "x$?" != "x0" && pkg_failed=yes
11238else
11239  pkg_failed=yes
11240fi
11241 else
11242    pkg_failed=untried
11243fi
11244
11245
11246
11247if test $pkg_failed = yes; then
11248   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11249$as_echo "no" >&6; }
11250
11251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11252        _pkg_short_errors_supported=yes
11253else
11254        _pkg_short_errors_supported=no
11255fi
11256        if test $_pkg_short_errors_supported = yes; then
11257	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
11258        else
11259	        XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
11260        fi
11261	# Put the nasty error message in config.log where it belongs
11262	echo "$XPROTO_PKG_ERRORS" >&5
11263
11264	as_fn_error $? "Package requirements (xproto) were not met:
11265
11266$XPROTO_PKG_ERRORS
11267
11268Consider adjusting the PKG_CONFIG_PATH environment variable if you
11269installed software in a non-standard prefix.
11270
11271Alternatively, you may set the environment variables XPROTO_CFLAGS
11272and XPROTO_LIBS to avoid the need to call pkg-config.
11273See the pkg-config man page for more details." "$LINENO" 5
11274elif test $pkg_failed = untried; then
11275     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11279as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11280is in your PATH or set the PKG_CONFIG environment variable to the full
11281path to pkg-config.
11282
11283Alternatively, you may set the environment variables XPROTO_CFLAGS
11284and XPROTO_LIBS to avoid the need to call pkg-config.
11285See the pkg-config man page for more details.
11286
11287To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11288See \`config.log' for more details" "$LINENO" 5; }
11289else
11290	XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
11291	XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
11292        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
11294
11295fi
11296
11297ac_config_files="$ac_config_files Makefile"
11298
11299cat >confcache <<\_ACEOF
11300# This file is a shell script that caches the results of configure
11301# tests run on this system so they can be shared between configure
11302# scripts and configure runs, see configure's option --config-cache.
11303# It is not useful on other systems.  If it contains results you don't
11304# want to keep, you may remove or edit it.
11305#
11306# config.status only pays attention to the cache file if you give it
11307# the --recheck option to rerun configure.
11308#
11309# `ac_cv_env_foo' variables (set or unset) will be overridden when
11310# loading this file, other *unset* `ac_cv_foo' will be assigned the
11311# following values.
11312
11313_ACEOF
11314
11315# The following way of writing the cache mishandles newlines in values,
11316# but we know of no workaround that is simple, portable, and efficient.
11317# So, we kill variables containing newlines.
11318# Ultrix sh set writes to stderr and can't be redirected directly,
11319# and sets the high bit in the cache file unless we assign to the vars.
11320(
11321  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11322    eval ac_val=\$$ac_var
11323    case $ac_val in #(
11324    *${as_nl}*)
11325      case $ac_var in #(
11326      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11327$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11328      esac
11329      case $ac_var in #(
11330      _ | IFS | as_nl) ;; #(
11331      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11332      *) { eval $ac_var=; unset $ac_var;} ;;
11333      esac ;;
11334    esac
11335  done
11336
11337  (set) 2>&1 |
11338    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11339    *${as_nl}ac_space=\ *)
11340      # `set' does not quote correctly, so add quotes: double-quote
11341      # substitution turns \\\\ into \\, and sed turns \\ into \.
11342      sed -n \
11343	"s/'/'\\\\''/g;
11344	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11345      ;; #(
11346    *)
11347      # `set' quotes correctly as required by POSIX, so do not add quotes.
11348      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11349      ;;
11350    esac |
11351    sort
11352) |
11353  sed '
11354     /^ac_cv_env_/b end
11355     t clear
11356     :clear
11357     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11358     t end
11359     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11360     :end' >>confcache
11361if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11362  if test -w "$cache_file"; then
11363    if test "x$cache_file" != "x/dev/null"; then
11364      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11365$as_echo "$as_me: updating cache $cache_file" >&6;}
11366      if test ! -f "$cache_file" || test -h "$cache_file"; then
11367	cat confcache >"$cache_file"
11368      else
11369        case $cache_file in #(
11370        */* | ?:*)
11371	  mv -f confcache "$cache_file"$$ &&
11372	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11373        *)
11374	  mv -f confcache "$cache_file" ;;
11375	esac
11376      fi
11377    fi
11378  else
11379    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11380$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11381  fi
11382fi
11383rm -f confcache
11384
11385test "x$prefix" = xNONE && prefix=$ac_default_prefix
11386# Let make expand exec_prefix.
11387test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11388
11389DEFS=-DHAVE_CONFIG_H
11390
11391ac_libobjs=
11392ac_ltlibobjs=
11393U=
11394for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11395  # 1. Remove the extension, and $U if already installed.
11396  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11397  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11398  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11399  #    will be set to the directory where LIBOBJS objects are built.
11400  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11401  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11402done
11403LIBOBJS=$ac_libobjs
11404
11405LTLIBOBJS=$ac_ltlibobjs
11406
11407
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11409$as_echo_n "checking that generated files are newer than configure... " >&6; }
11410   if test -n "$am_sleep_pid"; then
11411     # Hide warnings about reused PIDs.
11412     wait $am_sleep_pid 2>/dev/null
11413   fi
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11415$as_echo "done" >&6; }
11416 if test -n "$EXEEXT"; then
11417  am__EXEEXT_TRUE=
11418  am__EXEEXT_FALSE='#'
11419else
11420  am__EXEEXT_TRUE='#'
11421  am__EXEEXT_FALSE=
11422fi
11423
11424if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11425  as_fn_error $? "conditional \"AMDEP\" was never defined.
11426Usually this means the macro was only invoked conditionally." "$LINENO" 5
11427fi
11428if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11429  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11430Usually this means the macro was only invoked conditionally." "$LINENO" 5
11431fi
11432if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
11433  as_fn_error $? "conditional \"HAS_PERL\" was never defined.
11434Usually this means the macro was only invoked conditionally." "$LINENO" 5
11435fi
11436if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
11437  as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
11438Usually this means the macro was only invoked conditionally." "$LINENO" 5
11439fi
11440if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
11441  as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
11442Usually this means the macro was only invoked conditionally." "$LINENO" 5
11443fi
11444if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
11445  as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
11446Usually this means the macro was only invoked conditionally." "$LINENO" 5
11447fi
11448if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
11449  as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
11450Usually this means the macro was only invoked conditionally." "$LINENO" 5
11451fi
11452if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
11453  as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
11454Usually this means the macro was only invoked conditionally." "$LINENO" 5
11455fi
11456if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
11457  as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
11458Usually this means the macro was only invoked conditionally." "$LINENO" 5
11459fi
11460if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
11461  as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
11462Usually this means the macro was only invoked conditionally." "$LINENO" 5
11463fi
11464if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
11465  as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
11466Usually this means the macro was only invoked conditionally." "$LINENO" 5
11467fi
11468
11469: "${CONFIG_STATUS=./config.status}"
11470ac_write_fail=0
11471ac_clean_files_save=$ac_clean_files
11472ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11474$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11475as_write_fail=0
11476cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11477#! $SHELL
11478# Generated by $as_me.
11479# Run this file to recreate the current configuration.
11480# Compiler output produced by configure, useful for debugging
11481# configure, is in config.log if it exists.
11482
11483debug=false
11484ac_cs_recheck=false
11485ac_cs_silent=false
11486
11487SHELL=\${CONFIG_SHELL-$SHELL}
11488export SHELL
11489_ASEOF
11490cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11491## -------------------- ##
11492## M4sh Initialization. ##
11493## -------------------- ##
11494
11495# Be more Bourne compatible
11496DUALCASE=1; export DUALCASE # for MKS sh
11497if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11498  emulate sh
11499  NULLCMD=:
11500  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11501  # is contrary to our usage.  Disable this feature.
11502  alias -g '${1+"$@"}'='"$@"'
11503  setopt NO_GLOB_SUBST
11504else
11505  case `(set -o) 2>/dev/null` in #(
11506  *posix*) :
11507    set -o posix ;; #(
11508  *) :
11509     ;;
11510esac
11511fi
11512
11513
11514as_nl='
11515'
11516export as_nl
11517# Printing a long string crashes Solaris 7 /usr/bin/printf.
11518as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11520as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11521# Prefer a ksh shell builtin over an external printf program on Solaris,
11522# but without wasting forks for bash or zsh.
11523if test -z "$BASH_VERSION$ZSH_VERSION" \
11524    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11525  as_echo='print -r --'
11526  as_echo_n='print -rn --'
11527elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11528  as_echo='printf %s\n'
11529  as_echo_n='printf %s'
11530else
11531  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11532    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11533    as_echo_n='/usr/ucb/echo -n'
11534  else
11535    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11536    as_echo_n_body='eval
11537      arg=$1;
11538      case $arg in #(
11539      *"$as_nl"*)
11540	expr "X$arg" : "X\\(.*\\)$as_nl";
11541	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11542      esac;
11543      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11544    '
11545    export as_echo_n_body
11546    as_echo_n='sh -c $as_echo_n_body as_echo'
11547  fi
11548  export as_echo_body
11549  as_echo='sh -c $as_echo_body as_echo'
11550fi
11551
11552# The user is always right.
11553if test "${PATH_SEPARATOR+set}" != set; then
11554  PATH_SEPARATOR=:
11555  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11556    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11557      PATH_SEPARATOR=';'
11558  }
11559fi
11560
11561
11562# IFS
11563# We need space, tab and new line, in precisely that order.  Quoting is
11564# there to prevent editors from complaining about space-tab.
11565# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11566# splitting by setting IFS to empty value.)
11567IFS=" ""	$as_nl"
11568
11569# Find who we are.  Look in the path if we contain no directory separator.
11570as_myself=
11571case $0 in #((
11572  *[\\/]* ) as_myself=$0 ;;
11573  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574for as_dir in $PATH
11575do
11576  IFS=$as_save_IFS
11577  test -z "$as_dir" && as_dir=.
11578    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11579  done
11580IFS=$as_save_IFS
11581
11582     ;;
11583esac
11584# We did not find ourselves, most probably we were run as `sh COMMAND'
11585# in which case we are not to be found in the path.
11586if test "x$as_myself" = x; then
11587  as_myself=$0
11588fi
11589if test ! -f "$as_myself"; then
11590  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11591  exit 1
11592fi
11593
11594# Unset variables that we do not need and which cause bugs (e.g. in
11595# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11596# suppresses any "Segmentation fault" message there.  '((' could
11597# trigger a bug in pdksh 5.2.14.
11598for as_var in BASH_ENV ENV MAIL MAILPATH
11599do eval test x\${$as_var+set} = xset \
11600  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11601done
11602PS1='$ '
11603PS2='> '
11604PS4='+ '
11605
11606# NLS nuisances.
11607LC_ALL=C
11608export LC_ALL
11609LANGUAGE=C
11610export LANGUAGE
11611
11612# CDPATH.
11613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11614
11615
11616# as_fn_error STATUS ERROR [LINENO LOG_FD]
11617# ----------------------------------------
11618# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11619# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11620# script with STATUS, using 1 if that was 0.
11621as_fn_error ()
11622{
11623  as_status=$1; test $as_status -eq 0 && as_status=1
11624  if test "$4"; then
11625    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11626    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11627  fi
11628  $as_echo "$as_me: error: $2" >&2
11629  as_fn_exit $as_status
11630} # as_fn_error
11631
11632
11633# as_fn_set_status STATUS
11634# -----------------------
11635# Set $? to STATUS, without forking.
11636as_fn_set_status ()
11637{
11638  return $1
11639} # as_fn_set_status
11640
11641# as_fn_exit STATUS
11642# -----------------
11643# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11644as_fn_exit ()
11645{
11646  set +e
11647  as_fn_set_status $1
11648  exit $1
11649} # as_fn_exit
11650
11651# as_fn_unset VAR
11652# ---------------
11653# Portably unset VAR.
11654as_fn_unset ()
11655{
11656  { eval $1=; unset $1;}
11657}
11658as_unset=as_fn_unset
11659# as_fn_append VAR VALUE
11660# ----------------------
11661# Append the text in VALUE to the end of the definition contained in VAR. Take
11662# advantage of any shell optimizations that allow amortized linear growth over
11663# repeated appends, instead of the typical quadratic growth present in naive
11664# implementations.
11665if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11666  eval 'as_fn_append ()
11667  {
11668    eval $1+=\$2
11669  }'
11670else
11671  as_fn_append ()
11672  {
11673    eval $1=\$$1\$2
11674  }
11675fi # as_fn_append
11676
11677# as_fn_arith ARG...
11678# ------------------
11679# Perform arithmetic evaluation on the ARGs, and store the result in the
11680# global $as_val. Take advantage of shells that can avoid forks. The arguments
11681# must be portable across $(()) and expr.
11682if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11683  eval 'as_fn_arith ()
11684  {
11685    as_val=$(( $* ))
11686  }'
11687else
11688  as_fn_arith ()
11689  {
11690    as_val=`expr "$@" || test $? -eq 1`
11691  }
11692fi # as_fn_arith
11693
11694
11695if expr a : '\(a\)' >/dev/null 2>&1 &&
11696   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11697  as_expr=expr
11698else
11699  as_expr=false
11700fi
11701
11702if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11703  as_basename=basename
11704else
11705  as_basename=false
11706fi
11707
11708if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11709  as_dirname=dirname
11710else
11711  as_dirname=false
11712fi
11713
11714as_me=`$as_basename -- "$0" ||
11715$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11716	 X"$0" : 'X\(//\)$' \| \
11717	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11718$as_echo X/"$0" |
11719    sed '/^.*\/\([^/][^/]*\)\/*$/{
11720	    s//\1/
11721	    q
11722	  }
11723	  /^X\/\(\/\/\)$/{
11724	    s//\1/
11725	    q
11726	  }
11727	  /^X\/\(\/\).*/{
11728	    s//\1/
11729	    q
11730	  }
11731	  s/.*/./; q'`
11732
11733# Avoid depending upon Character Ranges.
11734as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11735as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11736as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11737as_cr_digits='0123456789'
11738as_cr_alnum=$as_cr_Letters$as_cr_digits
11739
11740ECHO_C= ECHO_N= ECHO_T=
11741case `echo -n x` in #(((((
11742-n*)
11743  case `echo 'xy\c'` in
11744  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11745  xy)  ECHO_C='\c';;
11746  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11747       ECHO_T='	';;
11748  esac;;
11749*)
11750  ECHO_N='-n';;
11751esac
11752
11753rm -f conf$$ conf$$.exe conf$$.file
11754if test -d conf$$.dir; then
11755  rm -f conf$$.dir/conf$$.file
11756else
11757  rm -f conf$$.dir
11758  mkdir conf$$.dir 2>/dev/null
11759fi
11760if (echo >conf$$.file) 2>/dev/null; then
11761  if ln -s conf$$.file conf$$ 2>/dev/null; then
11762    as_ln_s='ln -s'
11763    # ... but there are two gotchas:
11764    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11765    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11766    # In both cases, we have to default to `cp -pR'.
11767    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11768      as_ln_s='cp -pR'
11769  elif ln conf$$.file conf$$ 2>/dev/null; then
11770    as_ln_s=ln
11771  else
11772    as_ln_s='cp -pR'
11773  fi
11774else
11775  as_ln_s='cp -pR'
11776fi
11777rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11778rmdir conf$$.dir 2>/dev/null
11779
11780
11781# as_fn_mkdir_p
11782# -------------
11783# Create "$as_dir" as a directory, including parents if necessary.
11784as_fn_mkdir_p ()
11785{
11786
11787  case $as_dir in #(
11788  -*) as_dir=./$as_dir;;
11789  esac
11790  test -d "$as_dir" || eval $as_mkdir_p || {
11791    as_dirs=
11792    while :; do
11793      case $as_dir in #(
11794      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11795      *) as_qdir=$as_dir;;
11796      esac
11797      as_dirs="'$as_qdir' $as_dirs"
11798      as_dir=`$as_dirname -- "$as_dir" ||
11799$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11800	 X"$as_dir" : 'X\(//\)[^/]' \| \
11801	 X"$as_dir" : 'X\(//\)$' \| \
11802	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11803$as_echo X"$as_dir" |
11804    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11805	    s//\1/
11806	    q
11807	  }
11808	  /^X\(\/\/\)[^/].*/{
11809	    s//\1/
11810	    q
11811	  }
11812	  /^X\(\/\/\)$/{
11813	    s//\1/
11814	    q
11815	  }
11816	  /^X\(\/\).*/{
11817	    s//\1/
11818	    q
11819	  }
11820	  s/.*/./; q'`
11821      test -d "$as_dir" && break
11822    done
11823    test -z "$as_dirs" || eval "mkdir $as_dirs"
11824  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11825
11826
11827} # as_fn_mkdir_p
11828if mkdir -p . 2>/dev/null; then
11829  as_mkdir_p='mkdir -p "$as_dir"'
11830else
11831  test -d ./-p && rmdir ./-p
11832  as_mkdir_p=false
11833fi
11834
11835
11836# as_fn_executable_p FILE
11837# -----------------------
11838# Test if FILE is an executable regular file.
11839as_fn_executable_p ()
11840{
11841  test -f "$1" && test -x "$1"
11842} # as_fn_executable_p
11843as_test_x='test -x'
11844as_executable_p=as_fn_executable_p
11845
11846# Sed expression to map a string onto a valid CPP name.
11847as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11848
11849# Sed expression to map a string onto a valid variable name.
11850as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11851
11852
11853exec 6>&1
11854## ----------------------------------- ##
11855## Main body of $CONFIG_STATUS script. ##
11856## ----------------------------------- ##
11857_ASEOF
11858test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11859
11860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11861# Save the log message, to keep $0 and so on meaningful, and to
11862# report actual input values of CONFIG_FILES etc. instead of their
11863# values after options handling.
11864ac_log="
11865This file was extended by imake $as_me 1.0.8, which was
11866generated by GNU Autoconf 2.69.  Invocation command line was
11867
11868  CONFIG_FILES    = $CONFIG_FILES
11869  CONFIG_HEADERS  = $CONFIG_HEADERS
11870  CONFIG_LINKS    = $CONFIG_LINKS
11871  CONFIG_COMMANDS = $CONFIG_COMMANDS
11872  $ $0 $@
11873
11874on `(hostname || uname -n) 2>/dev/null | sed 1q`
11875"
11876
11877_ACEOF
11878
11879case $ac_config_files in *"
11880"*) set x $ac_config_files; shift; ac_config_files=$*;;
11881esac
11882
11883case $ac_config_headers in *"
11884"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11885esac
11886
11887
11888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889# Files that config.status was made for.
11890config_files="$ac_config_files"
11891config_headers="$ac_config_headers"
11892config_commands="$ac_config_commands"
11893
11894_ACEOF
11895
11896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11897ac_cs_usage="\
11898\`$as_me' instantiates files and other configuration actions
11899from templates according to the current configuration.  Unless the files
11900and actions are specified as TAGs, all are instantiated by default.
11901
11902Usage: $0 [OPTION]... [TAG]...
11903
11904  -h, --help       print this help, then exit
11905  -V, --version    print version number and configuration settings, then exit
11906      --config     print configuration, then exit
11907  -q, --quiet, --silent
11908                   do not print progress messages
11909  -d, --debug      don't remove temporary files
11910      --recheck    update $as_me by reconfiguring in the same conditions
11911      --file=FILE[:TEMPLATE]
11912                   instantiate the configuration file FILE
11913      --header=FILE[:TEMPLATE]
11914                   instantiate the configuration header FILE
11915
11916Configuration files:
11917$config_files
11918
11919Configuration headers:
11920$config_headers
11921
11922Configuration commands:
11923$config_commands
11924
11925Report bugs to <https://gitlab.freedesktop.org/xorg/util/imake/issues>."
11926
11927_ACEOF
11928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11929ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11930ac_cs_version="\\
11931imake config.status 1.0.8
11932configured by $0, generated by GNU Autoconf 2.69,
11933  with options \\"\$ac_cs_config\\"
11934
11935Copyright (C) 2012 Free Software Foundation, Inc.
11936This config.status script is free software; the Free Software Foundation
11937gives unlimited permission to copy, distribute and modify it."
11938
11939ac_pwd='$ac_pwd'
11940srcdir='$srcdir'
11941INSTALL='$INSTALL'
11942MKDIR_P='$MKDIR_P'
11943AWK='$AWK'
11944test -n "\$AWK" || AWK=awk
11945_ACEOF
11946
11947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11948# The default lists apply if the user does not specify any file.
11949ac_need_defaults=:
11950while test $# != 0
11951do
11952  case $1 in
11953  --*=?*)
11954    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11955    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11956    ac_shift=:
11957    ;;
11958  --*=)
11959    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11960    ac_optarg=
11961    ac_shift=:
11962    ;;
11963  *)
11964    ac_option=$1
11965    ac_optarg=$2
11966    ac_shift=shift
11967    ;;
11968  esac
11969
11970  case $ac_option in
11971  # Handling of the options.
11972  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11973    ac_cs_recheck=: ;;
11974  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11975    $as_echo "$ac_cs_version"; exit ;;
11976  --config | --confi | --conf | --con | --co | --c )
11977    $as_echo "$ac_cs_config"; exit ;;
11978  --debug | --debu | --deb | --de | --d | -d )
11979    debug=: ;;
11980  --file | --fil | --fi | --f )
11981    $ac_shift
11982    case $ac_optarg in
11983    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11984    '') as_fn_error $? "missing file argument" ;;
11985    esac
11986    as_fn_append CONFIG_FILES " '$ac_optarg'"
11987    ac_need_defaults=false;;
11988  --header | --heade | --head | --hea )
11989    $ac_shift
11990    case $ac_optarg in
11991    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11992    esac
11993    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11994    ac_need_defaults=false;;
11995  --he | --h)
11996    # Conflict between --help and --header
11997    as_fn_error $? "ambiguous option: \`$1'
11998Try \`$0 --help' for more information.";;
11999  --help | --hel | -h )
12000    $as_echo "$ac_cs_usage"; exit ;;
12001  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12002  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12003    ac_cs_silent=: ;;
12004
12005  # This is an error.
12006  -*) as_fn_error $? "unrecognized option: \`$1'
12007Try \`$0 --help' for more information." ;;
12008
12009  *) as_fn_append ac_config_targets " $1"
12010     ac_need_defaults=false ;;
12011
12012  esac
12013  shift
12014done
12015
12016ac_configure_extra_args=
12017
12018if $ac_cs_silent; then
12019  exec 6>/dev/null
12020  ac_configure_extra_args="$ac_configure_extra_args --silent"
12021fi
12022
12023_ACEOF
12024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12025if \$ac_cs_recheck; then
12026  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12027  shift
12028  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12029  CONFIG_SHELL='$SHELL'
12030  export CONFIG_SHELL
12031  exec "\$@"
12032fi
12033
12034_ACEOF
12035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12036exec 5>>config.log
12037{
12038  echo
12039  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12040## Running $as_me. ##
12041_ASBOX
12042  $as_echo "$ac_log"
12043} >&5
12044
12045_ACEOF
12046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12047#
12048# INIT-COMMANDS
12049#
12050AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12051
12052_ACEOF
12053
12054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12055
12056# Handling of arguments.
12057for ac_config_target in $ac_config_targets
12058do
12059  case $ac_config_target in
12060    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12061    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12062    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12063
12064  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12065  esac
12066done
12067
12068
12069# If the user did not use the arguments to specify the items to instantiate,
12070# then the envvar interface is used.  Set only those that are not.
12071# We use the long form for the default assignment because of an extremely
12072# bizarre bug on SunOS 4.1.3.
12073if $ac_need_defaults; then
12074  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12075  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12076  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12077fi
12078
12079# Have a temporary directory for convenience.  Make it in the build tree
12080# simply because there is no reason against having it here, and in addition,
12081# creating and moving files from /tmp can sometimes cause problems.
12082# Hook for its removal unless debugging.
12083# Note that there is a small window in which the directory will not be cleaned:
12084# after its creation but before its name has been assigned to `$tmp'.
12085$debug ||
12086{
12087  tmp= ac_tmp=
12088  trap 'exit_status=$?
12089  : "${ac_tmp:=$tmp}"
12090  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12091' 0
12092  trap 'as_fn_exit 1' 1 2 13 15
12093}
12094# Create a (secure) tmp directory for tmp files.
12095
12096{
12097  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12098  test -d "$tmp"
12099}  ||
12100{
12101  tmp=./conf$$-$RANDOM
12102  (umask 077 && mkdir "$tmp")
12103} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12104ac_tmp=$tmp
12105
12106# Set up the scripts for CONFIG_FILES section.
12107# No need to generate them if there are no CONFIG_FILES.
12108# This happens for instance with `./config.status config.h'.
12109if test -n "$CONFIG_FILES"; then
12110
12111
12112ac_cr=`echo X | tr X '\015'`
12113# On cygwin, bash can eat \r inside `` if the user requested igncr.
12114# But we know of no other shell where ac_cr would be empty at this
12115# point, so we can use a bashism as a fallback.
12116if test "x$ac_cr" = x; then
12117  eval ac_cr=\$\'\\r\'
12118fi
12119ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12120if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12121  ac_cs_awk_cr='\\r'
12122else
12123  ac_cs_awk_cr=$ac_cr
12124fi
12125
12126echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12127_ACEOF
12128
12129
12130{
12131  echo "cat >conf$$subs.awk <<_ACEOF" &&
12132  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12133  echo "_ACEOF"
12134} >conf$$subs.sh ||
12135  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12136ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12137ac_delim='%!_!# '
12138for ac_last_try in false false false false false :; do
12139  . ./conf$$subs.sh ||
12140    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12141
12142  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12143  if test $ac_delim_n = $ac_delim_num; then
12144    break
12145  elif $ac_last_try; then
12146    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12147  else
12148    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12149  fi
12150done
12151rm -f conf$$subs.sh
12152
12153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12154cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12155_ACEOF
12156sed -n '
12157h
12158s/^/S["/; s/!.*/"]=/
12159p
12160g
12161s/^[^!]*!//
12162:repl
12163t repl
12164s/'"$ac_delim"'$//
12165t delim
12166:nl
12167h
12168s/\(.\{148\}\)..*/\1/
12169t more1
12170s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12171p
12172n
12173b repl
12174:more1
12175s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12176p
12177g
12178s/.\{148\}//
12179t nl
12180:delim
12181h
12182s/\(.\{148\}\)..*/\1/
12183t more2
12184s/["\\]/\\&/g; s/^/"/; s/$/"/
12185p
12186b
12187:more2
12188s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12189p
12190g
12191s/.\{148\}//
12192t delim
12193' <conf$$subs.awk | sed '
12194/^[^""]/{
12195  N
12196  s/\n//
12197}
12198' >>$CONFIG_STATUS || ac_write_fail=1
12199rm -f conf$$subs.awk
12200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12201_ACAWK
12202cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12203  for (key in S) S_is_set[key] = 1
12204  FS = ""
12205
12206}
12207{
12208  line = $ 0
12209  nfields = split(line, field, "@")
12210  substed = 0
12211  len = length(field[1])
12212  for (i = 2; i < nfields; i++) {
12213    key = field[i]
12214    keylen = length(key)
12215    if (S_is_set[key]) {
12216      value = S[key]
12217      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12218      len += length(value) + length(field[++i])
12219      substed = 1
12220    } else
12221      len += 1 + keylen
12222  }
12223
12224  print line
12225}
12226
12227_ACAWK
12228_ACEOF
12229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12231  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12232else
12233  cat
12234fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12235  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12236_ACEOF
12237
12238# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12239# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12240# trailing colons and then remove the whole line if VPATH becomes empty
12241# (actually we leave an empty line to preserve line numbers).
12242if test "x$srcdir" = x.; then
12243  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12244h
12245s///
12246s/^/:/
12247s/[	 ]*$/:/
12248s/:\$(srcdir):/:/g
12249s/:\${srcdir}:/:/g
12250s/:@srcdir@:/:/g
12251s/^:*//
12252s/:*$//
12253x
12254s/\(=[	 ]*\).*/\1/
12255G
12256s/\n//
12257s/^[^=]*=[	 ]*$//
12258}'
12259fi
12260
12261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12262fi # test -n "$CONFIG_FILES"
12263
12264# Set up the scripts for CONFIG_HEADERS section.
12265# No need to generate them if there are no CONFIG_HEADERS.
12266# This happens for instance with `./config.status Makefile'.
12267if test -n "$CONFIG_HEADERS"; then
12268cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12269BEGIN {
12270_ACEOF
12271
12272# Transform confdefs.h into an awk script `defines.awk', embedded as
12273# here-document in config.status, that substitutes the proper values into
12274# config.h.in to produce config.h.
12275
12276# Create a delimiter string that does not exist in confdefs.h, to ease
12277# handling of long lines.
12278ac_delim='%!_!# '
12279for ac_last_try in false false :; do
12280  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12281  if test -z "$ac_tt"; then
12282    break
12283  elif $ac_last_try; then
12284    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12285  else
12286    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12287  fi
12288done
12289
12290# For the awk script, D is an array of macro values keyed by name,
12291# likewise P contains macro parameters if any.  Preserve backslash
12292# newline sequences.
12293
12294ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12295sed -n '
12296s/.\{148\}/&'"$ac_delim"'/g
12297t rset
12298:rset
12299s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12300t def
12301d
12302:def
12303s/\\$//
12304t bsnl
12305s/["\\]/\\&/g
12306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12307D["\1"]=" \3"/p
12308s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12309d
12310:bsnl
12311s/["\\]/\\&/g
12312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12313D["\1"]=" \3\\\\\\n"\\/p
12314t cont
12315s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12316t cont
12317d
12318:cont
12319n
12320s/.\{148\}/&'"$ac_delim"'/g
12321t clear
12322:clear
12323s/\\$//
12324t bsnlc
12325s/["\\]/\\&/g; s/^/"/; s/$/"/p
12326d
12327:bsnlc
12328s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12329b cont
12330' <confdefs.h | sed '
12331s/'"$ac_delim"'/"\\\
12332"/g' >>$CONFIG_STATUS || ac_write_fail=1
12333
12334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335  for (key in D) D_is_set[key] = 1
12336  FS = ""
12337}
12338/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12339  line = \$ 0
12340  split(line, arg, " ")
12341  if (arg[1] == "#") {
12342    defundef = arg[2]
12343    mac1 = arg[3]
12344  } else {
12345    defundef = substr(arg[1], 2)
12346    mac1 = arg[2]
12347  }
12348  split(mac1, mac2, "(") #)
12349  macro = mac2[1]
12350  prefix = substr(line, 1, index(line, defundef) - 1)
12351  if (D_is_set[macro]) {
12352    # Preserve the white space surrounding the "#".
12353    print prefix "define", macro P[macro] D[macro]
12354    next
12355  } else {
12356    # Replace #undef with comments.  This is necessary, for example,
12357    # in the case of _POSIX_SOURCE, which is predefined and required
12358    # on some systems where configure will not decide to define it.
12359    if (defundef == "undef") {
12360      print "/*", prefix defundef, macro, "*/"
12361      next
12362    }
12363  }
12364}
12365{ print }
12366_ACAWK
12367_ACEOF
12368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12369  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12370fi # test -n "$CONFIG_HEADERS"
12371
12372
12373eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12374shift
12375for ac_tag
12376do
12377  case $ac_tag in
12378  :[FHLC]) ac_mode=$ac_tag; continue;;
12379  esac
12380  case $ac_mode$ac_tag in
12381  :[FHL]*:*);;
12382  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12383  :[FH]-) ac_tag=-:-;;
12384  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12385  esac
12386  ac_save_IFS=$IFS
12387  IFS=:
12388  set x $ac_tag
12389  IFS=$ac_save_IFS
12390  shift
12391  ac_file=$1
12392  shift
12393
12394  case $ac_mode in
12395  :L) ac_source=$1;;
12396  :[FH])
12397    ac_file_inputs=
12398    for ac_f
12399    do
12400      case $ac_f in
12401      -) ac_f="$ac_tmp/stdin";;
12402      *) # Look for the file first in the build tree, then in the source tree
12403	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12404	 # because $ac_f cannot contain `:'.
12405	 test -f "$ac_f" ||
12406	   case $ac_f in
12407	   [\\/$]*) false;;
12408	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12409	   esac ||
12410	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12411      esac
12412      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12413      as_fn_append ac_file_inputs " '$ac_f'"
12414    done
12415
12416    # Let's still pretend it is `configure' which instantiates (i.e., don't
12417    # use $as_me), people would be surprised to read:
12418    #    /* config.h.  Generated by config.status.  */
12419    configure_input='Generated from '`
12420	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12421	`' by configure.'
12422    if test x"$ac_file" != x-; then
12423      configure_input="$ac_file.  $configure_input"
12424      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12425$as_echo "$as_me: creating $ac_file" >&6;}
12426    fi
12427    # Neutralize special characters interpreted by sed in replacement strings.
12428    case $configure_input in #(
12429    *\&* | *\|* | *\\* )
12430       ac_sed_conf_input=`$as_echo "$configure_input" |
12431       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12432    *) ac_sed_conf_input=$configure_input;;
12433    esac
12434
12435    case $ac_tag in
12436    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12437      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12438    esac
12439    ;;
12440  esac
12441
12442  ac_dir=`$as_dirname -- "$ac_file" ||
12443$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12444	 X"$ac_file" : 'X\(//\)[^/]' \| \
12445	 X"$ac_file" : 'X\(//\)$' \| \
12446	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12447$as_echo X"$ac_file" |
12448    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12449	    s//\1/
12450	    q
12451	  }
12452	  /^X\(\/\/\)[^/].*/{
12453	    s//\1/
12454	    q
12455	  }
12456	  /^X\(\/\/\)$/{
12457	    s//\1/
12458	    q
12459	  }
12460	  /^X\(\/\).*/{
12461	    s//\1/
12462	    q
12463	  }
12464	  s/.*/./; q'`
12465  as_dir="$ac_dir"; as_fn_mkdir_p
12466  ac_builddir=.
12467
12468case "$ac_dir" in
12469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12470*)
12471  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12472  # A ".." for each directory in $ac_dir_suffix.
12473  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12474  case $ac_top_builddir_sub in
12475  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12476  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12477  esac ;;
12478esac
12479ac_abs_top_builddir=$ac_pwd
12480ac_abs_builddir=$ac_pwd$ac_dir_suffix
12481# for backward compatibility:
12482ac_top_builddir=$ac_top_build_prefix
12483
12484case $srcdir in
12485  .)  # We are building in place.
12486    ac_srcdir=.
12487    ac_top_srcdir=$ac_top_builddir_sub
12488    ac_abs_top_srcdir=$ac_pwd ;;
12489  [\\/]* | ?:[\\/]* )  # Absolute name.
12490    ac_srcdir=$srcdir$ac_dir_suffix;
12491    ac_top_srcdir=$srcdir
12492    ac_abs_top_srcdir=$srcdir ;;
12493  *) # Relative name.
12494    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12495    ac_top_srcdir=$ac_top_build_prefix$srcdir
12496    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12497esac
12498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12499
12500
12501  case $ac_mode in
12502  :F)
12503  #
12504  # CONFIG_FILE
12505  #
12506
12507  case $INSTALL in
12508  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12509  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12510  esac
12511  ac_MKDIR_P=$MKDIR_P
12512  case $MKDIR_P in
12513  [\\/$]* | ?:[\\/]* ) ;;
12514  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12515  esac
12516_ACEOF
12517
12518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12519# If the template does not know about datarootdir, expand it.
12520# FIXME: This hack should be removed a few years after 2.60.
12521ac_datarootdir_hack=; ac_datarootdir_seen=
12522ac_sed_dataroot='
12523/datarootdir/ {
12524  p
12525  q
12526}
12527/@datadir@/p
12528/@docdir@/p
12529/@infodir@/p
12530/@localedir@/p
12531/@mandir@/p'
12532case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12533*datarootdir*) ac_datarootdir_seen=yes;;
12534*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12535  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12536$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12537_ACEOF
12538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12539  ac_datarootdir_hack='
12540  s&@datadir@&$datadir&g
12541  s&@docdir@&$docdir&g
12542  s&@infodir@&$infodir&g
12543  s&@localedir@&$localedir&g
12544  s&@mandir@&$mandir&g
12545  s&\\\${datarootdir}&$datarootdir&g' ;;
12546esac
12547_ACEOF
12548
12549# Neutralize VPATH when `$srcdir' = `.'.
12550# Shell code in configure.ac might set extrasub.
12551# FIXME: do we really want to maintain this feature?
12552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12553ac_sed_extra="$ac_vpsub
12554$extrasub
12555_ACEOF
12556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12557:t
12558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12559s|@configure_input@|$ac_sed_conf_input|;t t
12560s&@top_builddir@&$ac_top_builddir_sub&;t t
12561s&@top_build_prefix@&$ac_top_build_prefix&;t t
12562s&@srcdir@&$ac_srcdir&;t t
12563s&@abs_srcdir@&$ac_abs_srcdir&;t t
12564s&@top_srcdir@&$ac_top_srcdir&;t t
12565s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12566s&@builddir@&$ac_builddir&;t t
12567s&@abs_builddir@&$ac_abs_builddir&;t t
12568s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12569s&@INSTALL@&$ac_INSTALL&;t t
12570s&@MKDIR_P@&$ac_MKDIR_P&;t t
12571$ac_datarootdir_hack
12572"
12573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12574  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12575
12576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12577  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12578  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12579      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12580  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12581which seems to be undefined.  Please make sure it is defined" >&5
12582$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12583which seems to be undefined.  Please make sure it is defined" >&2;}
12584
12585  rm -f "$ac_tmp/stdin"
12586  case $ac_file in
12587  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12588  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12589  esac \
12590  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591 ;;
12592  :H)
12593  #
12594  # CONFIG_HEADER
12595  #
12596  if test x"$ac_file" != x-; then
12597    {
12598      $as_echo "/* $configure_input  */" \
12599      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12600    } >"$ac_tmp/config.h" \
12601      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12602    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12603      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12604$as_echo "$as_me: $ac_file is unchanged" >&6;}
12605    else
12606      rm -f "$ac_file"
12607      mv "$ac_tmp/config.h" "$ac_file" \
12608	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12609    fi
12610  else
12611    $as_echo "/* $configure_input  */" \
12612      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12613      || as_fn_error $? "could not create -" "$LINENO" 5
12614  fi
12615# Compute "$ac_file"'s index in $config_headers.
12616_am_arg="$ac_file"
12617_am_stamp_count=1
12618for _am_header in $config_headers :; do
12619  case $_am_header in
12620    $_am_arg | $_am_arg:* )
12621      break ;;
12622    * )
12623      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12624  esac
12625done
12626echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12627$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12628	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12629	 X"$_am_arg" : 'X\(//\)$' \| \
12630	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12631$as_echo X"$_am_arg" |
12632    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12633	    s//\1/
12634	    q
12635	  }
12636	  /^X\(\/\/\)[^/].*/{
12637	    s//\1/
12638	    q
12639	  }
12640	  /^X\(\/\/\)$/{
12641	    s//\1/
12642	    q
12643	  }
12644	  /^X\(\/\).*/{
12645	    s//\1/
12646	    q
12647	  }
12648	  s/.*/./; q'`/stamp-h$_am_stamp_count
12649 ;;
12650
12651  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12652$as_echo "$as_me: executing $ac_file commands" >&6;}
12653 ;;
12654  esac
12655
12656
12657  case $ac_file$ac_mode in
12658    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12659  # Older Autoconf quotes --file arguments for eval, but not when files
12660  # are listed without --file.  Let's play safe and only enable the eval
12661  # if we detect the quoting.
12662  case $CONFIG_FILES in
12663  *\'*) eval set x "$CONFIG_FILES" ;;
12664  *)   set x $CONFIG_FILES ;;
12665  esac
12666  shift
12667  for mf
12668  do
12669    # Strip MF so we end up with the name of the file.
12670    mf=`echo "$mf" | sed -e 's/:.*$//'`
12671    # Check whether this is an Automake generated Makefile or not.
12672    # We used to match only the files named 'Makefile.in', but
12673    # some people rename them; so instead we look at the file content.
12674    # Grep'ing the first line is not enough: some people post-process
12675    # each Makefile.in and add a new line on top of each file to say so.
12676    # Grep'ing the whole file is not good either: AIX grep has a line
12677    # limit of 2048, but all sed's we know have understand at least 4000.
12678    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12679      dirpart=`$as_dirname -- "$mf" ||
12680$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12681	 X"$mf" : 'X\(//\)[^/]' \| \
12682	 X"$mf" : 'X\(//\)$' \| \
12683	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12684$as_echo X"$mf" |
12685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12686	    s//\1/
12687	    q
12688	  }
12689	  /^X\(\/\/\)[^/].*/{
12690	    s//\1/
12691	    q
12692	  }
12693	  /^X\(\/\/\)$/{
12694	    s//\1/
12695	    q
12696	  }
12697	  /^X\(\/\).*/{
12698	    s//\1/
12699	    q
12700	  }
12701	  s/.*/./; q'`
12702    else
12703      continue
12704    fi
12705    # Extract the definition of DEPDIR, am__include, and am__quote
12706    # from the Makefile without running 'make'.
12707    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12708    test -z "$DEPDIR" && continue
12709    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12710    test -z "$am__include" && continue
12711    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12712    # Find all dependency output files, they are included files with
12713    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12714    # simplest approach to changing $(DEPDIR) to its actual value in the
12715    # expansion.
12716    for file in `sed -n "
12717      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12718	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12719      # Make sure the directory exists.
12720      test -f "$dirpart/$file" && continue
12721      fdir=`$as_dirname -- "$file" ||
12722$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12723	 X"$file" : 'X\(//\)[^/]' \| \
12724	 X"$file" : 'X\(//\)$' \| \
12725	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12726$as_echo X"$file" |
12727    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12728	    s//\1/
12729	    q
12730	  }
12731	  /^X\(\/\/\)[^/].*/{
12732	    s//\1/
12733	    q
12734	  }
12735	  /^X\(\/\/\)$/{
12736	    s//\1/
12737	    q
12738	  }
12739	  /^X\(\/\).*/{
12740	    s//\1/
12741	    q
12742	  }
12743	  s/.*/./; q'`
12744      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12745      # echo "creating $dirpart/$file"
12746      echo '# dummy' > "$dirpart/$file"
12747    done
12748  done
12749}
12750 ;;
12751
12752  esac
12753done # for ac_tag
12754
12755
12756as_fn_exit 0
12757_ACEOF
12758ac_clean_files=$ac_clean_files_save
12759
12760test $ac_write_fail = 0 ||
12761  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12762
12763
12764# configure is writing to config.log, and then calls config.status.
12765# config.status does its own redirection, appending to config.log.
12766# Unfortunately, on DOS this fails, as config.log is still kept open
12767# by configure, so config.status won't be able to write to it; its
12768# output is simply discarded.  So we exec the FD to /dev/null,
12769# effectively closing config.log, so it can be properly (re)opened and
12770# appended to by config.status.  When coming back to configure, we
12771# need to make the FD available again.
12772if test "$no_create" != yes; then
12773  ac_cs_success=:
12774  ac_config_status_args=
12775  test "$silent" = yes &&
12776    ac_config_status_args="$ac_config_status_args --quiet"
12777  exec 5>/dev/null
12778  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12779  exec 5>>config.log
12780  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12781  # would make configure fail if this is the last instruction.
12782  $ac_cs_success || as_fn_exit 1
12783fi
12784if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12785  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12786$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12787fi
12788
12789