configure revision f66df612
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for twm 1.0.12.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://gitlab.freedesktop.org/xorg/app/twm/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='twm'
583PACKAGE_TARNAME='twm'
584PACKAGE_VERSION='1.0.12'
585PACKAGE_STRING='twm 1.0.12'
586PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/twm/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
630XRANDR_LIBS
631XRANDR_CFLAGS
632TWM_LIBS
633TWM_CFLAGS
634LEXLIB
635LEX_OUTPUT_ROOT
636LEX
637YACC_INST
638YFLAGS
639YACC
640MAN_SUBSTS
641XORG_MAN_PAGE
642ADMIN_MAN_DIR
643DRIVER_MAN_DIR
644MISC_MAN_DIR
645FILE_MAN_DIR
646LIB_MAN_DIR
647APP_MAN_DIR
648ADMIN_MAN_SUFFIX
649DRIVER_MAN_SUFFIX
650MISC_MAN_SUFFIX
651FILE_MAN_SUFFIX
652LIB_MAN_SUFFIX
653APP_MAN_SUFFIX
654SED
655host_os
656host_vendor
657host_cpu
658host
659build_os
660build_vendor
661build_cpu
662build
663INSTALL_CMD
664PKG_CONFIG_LIBDIR
665PKG_CONFIG_PATH
666PKG_CONFIG
667CHANGELOG_CMD
668STRICT_CFLAGS
669CWARNFLAGS
670BASE_CFLAGS
671AM_BACKSLASH
672AM_DEFAULT_VERBOSITY
673AM_DEFAULT_V
674AM_V
675am__fastdepCC_FALSE
676am__fastdepCC_TRUE
677CCDEPMODE
678am__nodep
679AMDEPBACKSLASH
680AMDEP_FALSE
681AMDEP_TRUE
682am__quote
683am__include
684DEPDIR
685am__untar
686am__tar
687AMTAR
688am__leading_dot
689SET_MAKE
690AWK
691mkdir_p
692MKDIR_P
693INSTALL_STRIP_PROGRAM
694STRIP
695install_sh
696MAKEINFO
697AUTOHEADER
698AUTOMAKE
699AUTOCONF
700ACLOCAL
701VERSION
702PACKAGE
703CYGPATH_W
704am__isrc
705INSTALL_DATA
706INSTALL_SCRIPT
707INSTALL_PROGRAM
708EGREP
709GREP
710CPP
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718target_alias
719host_alias
720build_alias
721LIBS
722ECHO_T
723ECHO_N
724ECHO_C
725DEFS
726mandir
727localedir
728libdir
729psdir
730pdfdir
731dvidir
732htmldir
733infodir
734docdir
735oldincludedir
736includedir
737localstatedir
738sharedstatedir
739sysconfdir
740datadir
741datarootdir
742libexecdir
743sbindir
744bindir
745program_transform_name
746prefix
747exec_prefix
748PACKAGE_URL
749PACKAGE_BUGREPORT
750PACKAGE_STRING
751PACKAGE_VERSION
752PACKAGE_TARNAME
753PACKAGE_NAME
754PATH_SEPARATOR
755SHELL'
756ac_subst_files=''
757ac_user_opts='
758enable_option_checking
759enable_dependency_tracking
760enable_silent_rules
761enable_selective_werror
762enable_strict_compilation
763'
764      ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773PKG_CONFIG
774PKG_CONFIG_PATH
775PKG_CONFIG_LIBDIR
776YACC
777YFLAGS
778TWM_CFLAGS
779TWM_LIBS
780XRANDR_CFLAGS
781XRANDR_LIBS'
782
783
784# Initialize some variables set by options.
785ac_init_help=
786ac_init_version=false
787ac_unrecognized_opts=
788ac_unrecognized_sep=
789# The variables have the same names as the options, with
790# dashes changed to underlines.
791cache_file=/dev/null
792exec_prefix=NONE
793no_create=
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
802verbose=
803x_includes=NONE
804x_libraries=NONE
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
811# (The list follows the same order as the GNU Coding Standards.)
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
831
832ac_prev=
833ac_dashdash=
834for ac_option
835do
836  # If the previous option needs an argument, assign it.
837  if test -n "$ac_prev"; then
838    eval $ac_prev=\$ac_option
839    ac_prev=
840    continue
841  fi
842
843  case $ac_option in
844  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845  *=)   ac_optarg= ;;
846  *)    ac_optarg=yes ;;
847  esac
848
849  # Accept the important Cygnus configure options, so we can diagnose typos.
850
851  case $ac_dashdash$ac_option in
852  --)
853    ac_dashdash=yes ;;
854
855  -bindir | --bindir | --bindi | --bind | --bin | --bi)
856    ac_prev=bindir ;;
857  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858    bindir=$ac_optarg ;;
859
860  -build | --build | --buil | --bui | --bu)
861    ac_prev=build_alias ;;
862  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863    build_alias=$ac_optarg ;;
864
865  -cache-file | --cache-file | --cache-fil | --cache-fi \
866  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867    ac_prev=cache_file ;;
868  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870    cache_file=$ac_optarg ;;
871
872  --config-cache | -C)
873    cache_file=config.cache ;;
874
875  -datadir | --datadir | --datadi | --datad)
876    ac_prev=datadir ;;
877  -datadir=* | --datadir=* | --datadi=* | --datad=*)
878    datadir=$ac_optarg ;;
879
880  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881  | --dataroo | --dataro | --datar)
882    ac_prev=datarootdir ;;
883  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885    datarootdir=$ac_optarg ;;
886
887  -disable-* | --disable-*)
888    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889    # Reject names that are not valid shell variable names.
890    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891      as_fn_error $? "invalid feature name: $ac_useropt"
892    ac_useropt_orig=$ac_useropt
893    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894    case $ac_user_opts in
895      *"
896"enable_$ac_useropt"
897"*) ;;
898      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899	 ac_unrecognized_sep=', ';;
900    esac
901    eval enable_$ac_useropt=no ;;
902
903  -docdir | --docdir | --docdi | --doc | --do)
904    ac_prev=docdir ;;
905  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906    docdir=$ac_optarg ;;
907
908  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909    ac_prev=dvidir ;;
910  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911    dvidir=$ac_optarg ;;
912
913  -enable-* | --enable-*)
914    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915    # Reject names that are not valid shell variable names.
916    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917      as_fn_error $? "invalid feature name: $ac_useropt"
918    ac_useropt_orig=$ac_useropt
919    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920    case $ac_user_opts in
921      *"
922"enable_$ac_useropt"
923"*) ;;
924      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925	 ac_unrecognized_sep=', ';;
926    esac
927    eval enable_$ac_useropt=\$ac_optarg ;;
928
929  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931  | --exec | --exe | --ex)
932    ac_prev=exec_prefix ;;
933  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935  | --exec=* | --exe=* | --ex=*)
936    exec_prefix=$ac_optarg ;;
937
938  -gas | --gas | --ga | --g)
939    # Obsolete; use --with-gas.
940    with_gas=yes ;;
941
942  -help | --help | --hel | --he | -h)
943    ac_init_help=long ;;
944  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945    ac_init_help=recursive ;;
946  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947    ac_init_help=short ;;
948
949  -host | --host | --hos | --ho)
950    ac_prev=host_alias ;;
951  -host=* | --host=* | --hos=* | --ho=*)
952    host_alias=$ac_optarg ;;
953
954  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955    ac_prev=htmldir ;;
956  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957  | --ht=*)
958    htmldir=$ac_optarg ;;
959
960  -includedir | --includedir | --includedi | --included | --include \
961  | --includ | --inclu | --incl | --inc)
962    ac_prev=includedir ;;
963  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964  | --includ=* | --inclu=* | --incl=* | --inc=*)
965    includedir=$ac_optarg ;;
966
967  -infodir | --infodir | --infodi | --infod | --info | --inf)
968    ac_prev=infodir ;;
969  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970    infodir=$ac_optarg ;;
971
972  -libdir | --libdir | --libdi | --libd)
973    ac_prev=libdir ;;
974  -libdir=* | --libdir=* | --libdi=* | --libd=*)
975    libdir=$ac_optarg ;;
976
977  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978  | --libexe | --libex | --libe)
979    ac_prev=libexecdir ;;
980  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981  | --libexe=* | --libex=* | --libe=*)
982    libexecdir=$ac_optarg ;;
983
984  -localedir | --localedir | --localedi | --localed | --locale)
985    ac_prev=localedir ;;
986  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987    localedir=$ac_optarg ;;
988
989  -localstatedir | --localstatedir | --localstatedi | --localstated \
990  | --localstate | --localstat | --localsta | --localst | --locals)
991    ac_prev=localstatedir ;;
992  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994    localstatedir=$ac_optarg ;;
995
996  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997    ac_prev=mandir ;;
998  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999    mandir=$ac_optarg ;;
1000
1001  -nfp | --nfp | --nf)
1002    # Obsolete; use --without-fp.
1003    with_fp=no ;;
1004
1005  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006  | --no-cr | --no-c | -n)
1007    no_create=yes ;;
1008
1009  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011    no_recursion=yes ;;
1012
1013  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015  | --oldin | --oldi | --old | --ol | --o)
1016    ac_prev=oldincludedir ;;
1017  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020    oldincludedir=$ac_optarg ;;
1021
1022  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023    ac_prev=prefix ;;
1024  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025    prefix=$ac_optarg ;;
1026
1027  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028  | --program-pre | --program-pr | --program-p)
1029    ac_prev=program_prefix ;;
1030  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032    program_prefix=$ac_optarg ;;
1033
1034  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035  | --program-suf | --program-su | --program-s)
1036    ac_prev=program_suffix ;;
1037  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039    program_suffix=$ac_optarg ;;
1040
1041  -program-transform-name | --program-transform-name \
1042  | --program-transform-nam | --program-transform-na \
1043  | --program-transform-n | --program-transform- \
1044  | --program-transform | --program-transfor \
1045  | --program-transfo | --program-transf \
1046  | --program-trans | --program-tran \
1047  | --progr-tra | --program-tr | --program-t)
1048    ac_prev=program_transform_name ;;
1049  -program-transform-name=* | --program-transform-name=* \
1050  | --program-transform-nam=* | --program-transform-na=* \
1051  | --program-transform-n=* | --program-transform-=* \
1052  | --program-transform=* | --program-transfor=* \
1053  | --program-transfo=* | --program-transf=* \
1054  | --program-trans=* | --program-tran=* \
1055  | --progr-tra=* | --program-tr=* | --program-t=*)
1056    program_transform_name=$ac_optarg ;;
1057
1058  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059    ac_prev=pdfdir ;;
1060  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061    pdfdir=$ac_optarg ;;
1062
1063  -psdir | --psdir | --psdi | --psd | --ps)
1064    ac_prev=psdir ;;
1065  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066    psdir=$ac_optarg ;;
1067
1068  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069  | -silent | --silent | --silen | --sile | --sil)
1070    silent=yes ;;
1071
1072  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073    ac_prev=sbindir ;;
1074  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075  | --sbi=* | --sb=*)
1076    sbindir=$ac_optarg ;;
1077
1078  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080  | --sharedst | --shareds | --shared | --share | --shar \
1081  | --sha | --sh)
1082    ac_prev=sharedstatedir ;;
1083  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086  | --sha=* | --sh=*)
1087    sharedstatedir=$ac_optarg ;;
1088
1089  -site | --site | --sit)
1090    ac_prev=site ;;
1091  -site=* | --site=* | --sit=*)
1092    site=$ac_optarg ;;
1093
1094  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095    ac_prev=srcdir ;;
1096  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097    srcdir=$ac_optarg ;;
1098
1099  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100  | --syscon | --sysco | --sysc | --sys | --sy)
1101    ac_prev=sysconfdir ;;
1102  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104    sysconfdir=$ac_optarg ;;
1105
1106  -target | --target | --targe | --targ | --tar | --ta | --t)
1107    ac_prev=target_alias ;;
1108  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109    target_alias=$ac_optarg ;;
1110
1111  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112    verbose=yes ;;
1113
1114  -version | --version | --versio | --versi | --vers | -V)
1115    ac_init_version=: ;;
1116
1117  -with-* | --with-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=\$ac_optarg ;;
1132
1133  -without-* | --without-*)
1134    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135    # Reject names that are not valid shell variable names.
1136    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137      as_fn_error $? "invalid package name: $ac_useropt"
1138    ac_useropt_orig=$ac_useropt
1139    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140    case $ac_user_opts in
1141      *"
1142"with_$ac_useropt"
1143"*) ;;
1144      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145	 ac_unrecognized_sep=', ';;
1146    esac
1147    eval with_$ac_useropt=no ;;
1148
1149  --x)
1150    # Obsolete; use --with-x.
1151    with_x=yes ;;
1152
1153  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154  | --x-incl | --x-inc | --x-in | --x-i)
1155    ac_prev=x_includes ;;
1156  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158    x_includes=$ac_optarg ;;
1159
1160  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162    ac_prev=x_libraries ;;
1163  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165    x_libraries=$ac_optarg ;;
1166
1167  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1168Try \`$0 --help' for more information"
1169    ;;
1170
1171  *=*)
1172    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173    # Reject names that are not valid shell variable names.
1174    case $ac_envvar in #(
1175      '' | [0-9]* | *[!_$as_cr_alnum]* )
1176      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177    esac
1178    eval $ac_envvar=\$ac_optarg
1179    export $ac_envvar ;;
1180
1181  *)
1182    # FIXME: should be removed in autoconf 3.0.
1183    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187    ;;
1188
1189  esac
1190done
1191
1192if test -n "$ac_prev"; then
1193  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194  as_fn_error $? "missing argument to $ac_option"
1195fi
1196
1197if test -n "$ac_unrecognized_opts"; then
1198  case $enable_option_checking in
1199    no) ;;
1200    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1201    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202  esac
1203fi
1204
1205# Check all directory arguments for consistency.
1206for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207		datadir sysconfdir sharedstatedir localstatedir includedir \
1208		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209		libdir localedir mandir
1210do
1211  eval ac_val=\$$ac_var
1212  # Remove trailing slashes.
1213  case $ac_val in
1214    */ )
1215      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216      eval $ac_var=\$ac_val;;
1217  esac
1218  # Be sure to have absolute directory names.
1219  case $ac_val in
1220    [\\/$]* | ?:[\\/]* )  continue;;
1221    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222  esac
1223  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235  if test "x$build_alias" = x; then
1236    cross_compiling=maybe
1237  elif test "x$build_alias" != "x$host_alias"; then
1238    cross_compiling=yes
1239  fi
1240fi
1241
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
1246
1247
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251  as_fn_error $? "working directory cannot be determined"
1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253  as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258  ac_srcdir_defaulted=yes
1259  # Try the directory containing this script, then the parent directory.
1260  ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262	 X"$as_myself" : 'X\(//\)[^/]' \| \
1263	 X"$as_myself" : 'X\(//\)$' \| \
1264	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
1266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\/\)[^/].*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  /^X\(\/\/\)$/{
1275	    s//\1/
1276	    q
1277	  }
1278	  /^X\(\/\).*/{
1279	    s//\1/
1280	    q
1281	  }
1282	  s/.*/./; q'`
1283  srcdir=$ac_confdir
1284  if test ! -r "$srcdir/$ac_unique_file"; then
1285    srcdir=..
1286  fi
1287else
1288  ac_srcdir_defaulted=no
1289fi
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297	pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300  srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310  eval ac_env_${ac_var}_value=\$${ac_var}
1311  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
1314
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319  # Omit some internal or obsolete options to make the list less imposing.
1320  # This message is too long to be a string in the A/UX 3.1 sh.
1321  cat <<_ACEOF
1322\`configure' configures twm 1.0.12 to adapt to many kinds of systems.
1323
1324Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329Defaults for the options are specified in brackets.
1330
1331Configuration:
1332  -h, --help              display this help and exit
1333      --help=short        display options specific to this package
1334      --help=recursive    display the short help of all the included packages
1335  -V, --version           display version information and exit
1336  -q, --quiet, --silent   do not print \`checking ...' messages
1337      --cache-file=FILE   cache test results in FILE [disabled]
1338  -C, --config-cache      alias for \`--cache-file=config.cache'
1339  -n, --no-create         do not create output files
1340      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342Installation directories:
1343  --prefix=PREFIX         install architecture-independent files in PREFIX
1344                          [$ac_default_prefix]
1345  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                          [PREFIX]
1347
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
1352
1353For better control, use the options below.
1354
1355Fine tuning of the installation directories:
1356  --bindir=DIR            user executables [EPREFIX/bin]
1357  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358  --libexecdir=DIR        program executables [EPREFIX/libexec]
1359  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362  --libdir=DIR            object code libraries [EPREFIX/lib]
1363  --includedir=DIR        C header files [PREFIX/include]
1364  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367  --infodir=DIR           info documentation [DATAROOTDIR/info]
1368  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369  --mandir=DIR            man documentation [DATAROOTDIR/man]
1370  --docdir=DIR            documentation root [DATAROOTDIR/doc/twm]
1371  --htmldir=DIR           html documentation [DOCDIR]
1372  --dvidir=DIR            dvi documentation [DOCDIR]
1373  --pdfdir=DIR            pdf documentation [DOCDIR]
1374  --psdir=DIR             ps documentation [DOCDIR]
1375_ACEOF
1376
1377  cat <<\_ACEOF
1378
1379Program names:
1380  --program-prefix=PREFIX            prepend PREFIX to installed program names
1381  --program-suffix=SUFFIX            append SUFFIX to installed program names
1382  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384System types:
1385  --build=BUILD     configure for building on BUILD [guessed]
1386  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387_ACEOF
1388fi
1389
1390if test -n "$ac_init_help"; then
1391  case $ac_init_help in
1392     short | recursive ) echo "Configuration of twm 1.0.12:";;
1393   esac
1394  cat <<\_ACEOF
1395
1396Optional Features:
1397  --disable-option-checking  ignore unrecognized --enable/--with options
1398  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400  --enable-dependency-tracking
1401                          do not reject slow dependency extractors
1402  --disable-dependency-tracking
1403                          speeds up one-time build
1404  --enable-silent-rules   less verbose build output (undo: "make V=1")
1405  --disable-silent-rules  verbose build output (undo: "make V=0")
1406  --disable-selective-werror
1407                          Turn off selective compiler errors. (default:
1408                          enabled)
1409  --enable-strict-compilation
1410                          Enable all warnings from compiler and make them
1411                          errors (default: disabled)
1412
1413Some influential environment variables:
1414  CC          C compiler command
1415  CFLAGS      C compiler flags
1416  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1417              nonstandard directory <lib dir>
1418  LIBS        libraries to pass to the linker, e.g. -l<library>
1419  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1420              you have headers in a nonstandard directory <include dir>
1421  CPP         C preprocessor
1422  PKG_CONFIG  path to pkg-config utility
1423  PKG_CONFIG_PATH
1424              directories to add to pkg-config's search path
1425  PKG_CONFIG_LIBDIR
1426              path overriding pkg-config's built-in search path
1427  YACC        The `Yet Another Compiler Compiler' implementation to use.
1428              Defaults to the first program found out of: `bison -y', `byacc',
1429              `yacc'.
1430  YFLAGS      The list of arguments that will be passed by default to $YACC.
1431              This script will default YFLAGS to the empty string to avoid a
1432              default value of `-d' given by some make applications.
1433  TWM_CFLAGS  C compiler flags for TWM, overriding pkg-config
1434  TWM_LIBS    linker flags for TWM, overriding pkg-config
1435  XRANDR_CFLAGS
1436              C compiler flags for XRANDR, overriding pkg-config
1437  XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1438
1439Use these variables to override the choices made by `configure' or to help
1440it to find libraries and programs with nonstandard names/locations.
1441
1442Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
1443_ACEOF
1444ac_status=$?
1445fi
1446
1447if test "$ac_init_help" = "recursive"; then
1448  # If there are subdirs, report their specific --help.
1449  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1450    test -d "$ac_dir" ||
1451      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452      continue
1453    ac_builddir=.
1454
1455case "$ac_dir" in
1456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457*)
1458  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1459  # A ".." for each directory in $ac_dir_suffix.
1460  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1461  case $ac_top_builddir_sub in
1462  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1464  esac ;;
1465esac
1466ac_abs_top_builddir=$ac_pwd
1467ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468# for backward compatibility:
1469ac_top_builddir=$ac_top_build_prefix
1470
1471case $srcdir in
1472  .)  # We are building in place.
1473    ac_srcdir=.
1474    ac_top_srcdir=$ac_top_builddir_sub
1475    ac_abs_top_srcdir=$ac_pwd ;;
1476  [\\/]* | ?:[\\/]* )  # Absolute name.
1477    ac_srcdir=$srcdir$ac_dir_suffix;
1478    ac_top_srcdir=$srcdir
1479    ac_abs_top_srcdir=$srcdir ;;
1480  *) # Relative name.
1481    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482    ac_top_srcdir=$ac_top_build_prefix$srcdir
1483    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1484esac
1485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1486
1487    cd "$ac_dir" || { ac_status=$?; continue; }
1488    # Check for guested configure.
1489    if test -f "$ac_srcdir/configure.gnu"; then
1490      echo &&
1491      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492    elif test -f "$ac_srcdir/configure"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure" --help=recursive
1495    else
1496      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497    fi || ac_status=$?
1498    cd "$ac_pwd" || { ac_status=$?; break; }
1499  done
1500fi
1501
1502test -n "$ac_init_help" && exit $ac_status
1503if $ac_init_version; then
1504  cat <<\_ACEOF
1505twm configure 1.0.12
1506generated by GNU Autoconf 2.69
1507
1508Copyright (C) 2012 Free Software Foundation, Inc.
1509This configure script is free software; the Free Software Foundation
1510gives unlimited permission to copy, distribute and modify it.
1511_ACEOF
1512  exit
1513fi
1514
1515## ------------------------ ##
1516## Autoconf initialization. ##
1517## ------------------------ ##
1518
1519# ac_fn_c_try_compile LINENO
1520# --------------------------
1521# Try to compile conftest.$ac_ext, and return whether this succeeded.
1522ac_fn_c_try_compile ()
1523{
1524  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525  rm -f conftest.$ac_objext
1526  if { { ac_try="$ac_compile"
1527case "(($ac_try" in
1528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1529  *) ac_try_echo=$ac_try;;
1530esac
1531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1532$as_echo "$ac_try_echo"; } >&5
1533  (eval "$ac_compile") 2>conftest.err
1534  ac_status=$?
1535  if test -s conftest.err; then
1536    grep -v '^ *+' conftest.err >conftest.er1
1537    cat conftest.er1 >&5
1538    mv -f conftest.er1 conftest.err
1539  fi
1540  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541  test $ac_status = 0; } && {
1542	 test -z "$ac_c_werror_flag" ||
1543	 test ! -s conftest.err
1544       } && test -s conftest.$ac_objext; then :
1545  ac_retval=0
1546else
1547  $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550	ac_retval=1
1551fi
1552  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1553  as_fn_set_status $ac_retval
1554
1555} # ac_fn_c_try_compile
1556
1557# ac_fn_c_try_cpp LINENO
1558# ----------------------
1559# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1560ac_fn_c_try_cpp ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  if { { ac_try="$ac_cpp conftest.$ac_ext"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } > conftest.i && {
1579	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       }; then :
1582  ac_retval=0
1583else
1584  $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587    ac_retval=1
1588fi
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_cpp
1593
1594# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1597# the include files in INCLUDES and setting the cache variable VAR
1598# accordingly.
1599ac_fn_c_check_header_mongrel ()
1600{
1601  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602  if eval \${$3+:} false; then :
1603  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if eval \${$3+:} false; then :
1606  $as_echo_n "(cached) " >&6
1607fi
1608eval ac_res=\$$3
1609	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1610$as_echo "$ac_res" >&6; }
1611else
1612  # Is the header compilable?
1613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1614$as_echo_n "checking $2 usability... " >&6; }
1615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618#include <$2>
1619_ACEOF
1620if ac_fn_c_try_compile "$LINENO"; then :
1621  ac_header_compiler=yes
1622else
1623  ac_header_compiler=no
1624fi
1625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1627$as_echo "$ac_header_compiler" >&6; }
1628
1629# Is the header present?
1630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1631$as_echo_n "checking $2 presence... " >&6; }
1632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h.  */
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_cpp "$LINENO"; then :
1637  ac_header_preproc=yes
1638else
1639  ac_header_preproc=no
1640fi
1641rm -f conftest.err conftest.i conftest.$ac_ext
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1643$as_echo "$ac_header_preproc" >&6; }
1644
1645# So?  What about this header?
1646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1647  yes:no: )
1648    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1649$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1650    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1652    ;;
1653  no:yes:* )
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1655$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1657$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1658    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1659$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1661$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1663$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664( $as_echo "## ----------------------------------------------------------------- ##
1665## Report this to https://gitlab.freedesktop.org/xorg/app/twm/issues ##
1666## ----------------------------------------------------------------- ##"
1667     ) | sed "s/^/$as_me: WARNING:     /" >&2
1668    ;;
1669esac
1670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671$as_echo_n "checking for $2... " >&6; }
1672if eval \${$3+:} false; then :
1673  $as_echo_n "(cached) " >&6
1674else
1675  eval "$3=\$ac_header_compiler"
1676fi
1677eval ac_res=\$$3
1678	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680fi
1681  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683} # ac_fn_c_check_header_mongrel
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists and can be compiled using the include files in
1730# INCLUDES, setting the cache variable VAR accordingly.
1731ac_fn_c_check_header_compile ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737  $as_echo_n "(cached) " >&6
1738else
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741$4
1742#include <$2>
1743_ACEOF
1744if ac_fn_c_try_compile "$LINENO"; then :
1745  eval "$3=yes"
1746else
1747  eval "$3=no"
1748fi
1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750fi
1751eval ac_res=\$$3
1752	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753$as_echo "$ac_res" >&6; }
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755
1756} # ac_fn_c_check_header_compile
1757
1758# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1759# ---------------------------------------------
1760# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1761# accordingly.
1762ac_fn_c_check_decl ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  as_decl_name=`echo $2|sed 's/ *(.*//'`
1766  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1768$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775int
1776main ()
1777{
1778#ifndef $as_decl_name
1779#ifdef __cplusplus
1780  (void) $as_decl_use;
1781#else
1782  (void) $as_decl_name;
1783#endif
1784#endif
1785
1786  ;
1787  return 0;
1788}
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791  eval "$3=yes"
1792else
1793  eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_decl
1803
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  rm -f conftest.$ac_objext conftest$ac_exeext
1811  if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_link") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && {
1827	 test -z "$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       } && test -s conftest$ac_exeext && {
1830	 test "$cross_compiling" = yes ||
1831	 test -x conftest$ac_exeext
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838	ac_retval=1
1839fi
1840  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842  # interfere with the next link command; also delete a directory that is
1843  # left behind by Apple's compiler.  We do this before executing the actions.
1844  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_link
1849
1850# ac_fn_c_check_func LINENO FUNC VAR
1851# ----------------------------------
1852# Tests whether FUNC exists, setting the cache variable VAR accordingly
1853ac_fn_c_check_func ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1865#define $2 innocuous_$2
1866
1867/* System header to define __stub macros and hopefully few prototypes,
1868    which can conflict with char $2 (); below.
1869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870    <limits.h> exists even on freestanding compilers.  */
1871
1872#ifdef __STDC__
1873# include <limits.h>
1874#else
1875# include <assert.h>
1876#endif
1877
1878#undef $2
1879
1880/* Override any GCC internal prototype to avoid an error.
1881   Use char because int might match the return type of a GCC
1882   builtin and then its argument prototype would still apply.  */
1883#ifdef __cplusplus
1884extern "C"
1885#endif
1886char $2 ();
1887/* The GNU C library defines this for functions which it implements
1888    to always fail with ENOSYS.  Some functions are actually named
1889    something starting with __ and the normal name is an alias.  */
1890#if defined __stub_$2 || defined __stub___$2
1891choke me
1892#endif
1893
1894int
1895main ()
1896{
1897return $2 ();
1898  ;
1899  return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_link "$LINENO"; then :
1903  eval "$3=yes"
1904else
1905  eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext \
1908    conftest$ac_exeext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_c_check_func
1916cat >config.log <<_ACEOF
1917This file contains any messages produced by compilers while
1918running configure, to aid debugging if configure makes a mistake.
1919
1920It was created by twm $as_me 1.0.12, which was
1921generated by GNU Autoconf 2.69.  Invocation command line was
1922
1923  $ $0 $@
1924
1925_ACEOF
1926exec 5>>config.log
1927{
1928cat <<_ASUNAME
1929## --------- ##
1930## Platform. ##
1931## --------- ##
1932
1933hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1941
1942/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1943/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1944/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1945/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1946/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1947/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1948/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1949
1950_ASUNAME
1951
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957    $as_echo "PATH: $as_dir"
1958  done
1959IFS=$as_save_IFS
1960
1961} >&5
1962
1963cat >&5 <<_ACEOF
1964
1965
1966## ----------- ##
1967## Core tests. ##
1968## ----------- ##
1969
1970_ACEOF
1971
1972
1973# Keep a trace of the command line.
1974# Strip out --no-create and --no-recursion so they do not pile up.
1975# Strip out --silent because we don't want to record it for future runs.
1976# Also quote any args containing shell meta-characters.
1977# Make two passes to allow for proper duplicate-argument suppression.
1978ac_configure_args=
1979ac_configure_args0=
1980ac_configure_args1=
1981ac_must_keep_next=false
1982for ac_pass in 1 2
1983do
1984  for ac_arg
1985  do
1986    case $ac_arg in
1987    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989    | -silent | --silent | --silen | --sile | --sil)
1990      continue ;;
1991    *\'*)
1992      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1993    esac
1994    case $ac_pass in
1995    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1996    2)
1997      as_fn_append ac_configure_args1 " '$ac_arg'"
1998      if test $ac_must_keep_next = true; then
1999	ac_must_keep_next=false # Got value, back to normal.
2000      else
2001	case $ac_arg in
2002	  *=* | --config-cache | -C | -disable-* | --disable-* \
2003	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005	  | -with-* | --with-* | -without-* | --without-* | --x)
2006	    case "$ac_configure_args0 " in
2007	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008	    esac
2009	    ;;
2010	  -* ) ac_must_keep_next=true ;;
2011	esac
2012      fi
2013      as_fn_append ac_configure_args " '$ac_arg'"
2014      ;;
2015    esac
2016  done
2017done
2018{ ac_configure_args0=; unset ac_configure_args0;}
2019{ ac_configure_args1=; unset ac_configure_args1;}
2020
2021# When interrupted or exit'd, cleanup temporary files, and complete
2022# config.log.  We remove comments because anyway the quotes in there
2023# would cause problems or look ugly.
2024# WARNING: Use '\'' to represent an apostrophe within the trap.
2025# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2026trap 'exit_status=$?
2027  # Save into config.log some information that might help in debugging.
2028  {
2029    echo
2030
2031    $as_echo "## ---------------- ##
2032## Cache variables. ##
2033## ---------------- ##"
2034    echo
2035    # The following way of writing the cache mishandles newlines in values,
2036(
2037  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2038    eval ac_val=\$$ac_var
2039    case $ac_val in #(
2040    *${as_nl}*)
2041      case $ac_var in #(
2042      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2043$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2044      esac
2045      case $ac_var in #(
2046      _ | IFS | as_nl) ;; #(
2047      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2048      *) { eval $ac_var=; unset $ac_var;} ;;
2049      esac ;;
2050    esac
2051  done
2052  (set) 2>&1 |
2053    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2054    *${as_nl}ac_space=\ *)
2055      sed -n \
2056	"s/'\''/'\''\\\\'\'''\''/g;
2057	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2058      ;; #(
2059    *)
2060      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2061      ;;
2062    esac |
2063    sort
2064)
2065    echo
2066
2067    $as_echo "## ----------------- ##
2068## Output variables. ##
2069## ----------------- ##"
2070    echo
2071    for ac_var in $ac_subst_vars
2072    do
2073      eval ac_val=\$$ac_var
2074      case $ac_val in
2075      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076      esac
2077      $as_echo "$ac_var='\''$ac_val'\''"
2078    done | sort
2079    echo
2080
2081    if test -n "$ac_subst_files"; then
2082      $as_echo "## ------------------- ##
2083## File substitutions. ##
2084## ------------------- ##"
2085      echo
2086      for ac_var in $ac_subst_files
2087      do
2088	eval ac_val=\$$ac_var
2089	case $ac_val in
2090	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091	esac
2092	$as_echo "$ac_var='\''$ac_val'\''"
2093      done | sort
2094      echo
2095    fi
2096
2097    if test -s confdefs.h; then
2098      $as_echo "## ----------- ##
2099## confdefs.h. ##
2100## ----------- ##"
2101      echo
2102      cat confdefs.h
2103      echo
2104    fi
2105    test "$ac_signal" != 0 &&
2106      $as_echo "$as_me: caught signal $ac_signal"
2107    $as_echo "$as_me: exit $exit_status"
2108  } >&5
2109  rm -f core *.core core.conftest.* &&
2110    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2111    exit $exit_status
2112' 0
2113for ac_signal in 1 2 13 15; do
2114  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2115done
2116ac_signal=0
2117
2118# confdefs.h avoids OS command line length limits that DEFS can exceed.
2119rm -f -r conftest* confdefs.h
2120
2121$as_echo "/* confdefs.h */" > confdefs.h
2122
2123# Predefined preprocessor variables.
2124
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_NAME "$PACKAGE_NAME"
2127_ACEOF
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2131_ACEOF
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_VERSION "$PACKAGE_VERSION"
2135_ACEOF
2136
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_STRING "$PACKAGE_STRING"
2139_ACEOF
2140
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2143_ACEOF
2144
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_URL "$PACKAGE_URL"
2147_ACEOF
2148
2149
2150# Let the site file select an alternate cache file if it wants to.
2151# Prefer an explicitly selected file to automatically selected ones.
2152ac_site_file1=NONE
2153ac_site_file2=NONE
2154if test -n "$CONFIG_SITE"; then
2155  # We do not want a PATH search for config.site.
2156  case $CONFIG_SITE in #((
2157    -*)  ac_site_file1=./$CONFIG_SITE;;
2158    */*) ac_site_file1=$CONFIG_SITE;;
2159    *)   ac_site_file1=./$CONFIG_SITE;;
2160  esac
2161elif test "x$prefix" != xNONE; then
2162  ac_site_file1=$prefix/share/config.site
2163  ac_site_file2=$prefix/etc/config.site
2164else
2165  ac_site_file1=$ac_default_prefix/share/config.site
2166  ac_site_file2=$ac_default_prefix/etc/config.site
2167fi
2168for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169do
2170  test "x$ac_site_file" = xNONE && continue
2171  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2172    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2173$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2174    sed 's/^/| /' "$ac_site_file" >&5
2175    . "$ac_site_file" \
2176      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178as_fn_error $? "failed to load site script $ac_site_file
2179See \`config.log' for more details" "$LINENO" 5; }
2180  fi
2181done
2182
2183if test -r "$cache_file"; then
2184  # Some versions of bash will fail to source /dev/null (special files
2185  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2186  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2187    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2188$as_echo "$as_me: loading cache $cache_file" >&6;}
2189    case $cache_file in
2190      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2191      *)                      . "./$cache_file";;
2192    esac
2193  fi
2194else
2195  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2196$as_echo "$as_me: creating cache $cache_file" >&6;}
2197  >$cache_file
2198fi
2199
2200# Check that the precious variables saved in the cache have kept the same
2201# value.
2202ac_cache_corrupted=false
2203for ac_var in $ac_precious_vars; do
2204  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2205  eval ac_new_set=\$ac_env_${ac_var}_set
2206  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2207  eval ac_new_val=\$ac_env_${ac_var}_value
2208  case $ac_old_set,$ac_new_set in
2209    set,)
2210      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2211$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2212      ac_cache_corrupted=: ;;
2213    ,set)
2214      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2216      ac_cache_corrupted=: ;;
2217    ,);;
2218    *)
2219      if test "x$ac_old_val" != "x$ac_new_val"; then
2220	# differences in whitespace do not lead to failure.
2221	ac_old_val_w=`echo x $ac_old_val`
2222	ac_new_val_w=`echo x $ac_new_val`
2223	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2224	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2225$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2226	  ac_cache_corrupted=:
2227	else
2228	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2229$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2230	  eval $ac_var=\$ac_old_val
2231	fi
2232	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2233$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2234	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2235$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2236      fi;;
2237  esac
2238  # Pass precious variables to config.status.
2239  if test "$ac_new_set" = set; then
2240    case $ac_new_val in
2241    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2242    *) ac_arg=$ac_var=$ac_new_val ;;
2243    esac
2244    case " $ac_configure_args " in
2245      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2246      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2247    esac
2248  fi
2249done
2250if $ac_cache_corrupted; then
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2254$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2255  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2256fi
2257## -------------------- ##
2258## Main body of script. ##
2259## -------------------- ##
2260
2261ac_ext=c
2262ac_cpp='$CPP $CPPFLAGS'
2263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2265ac_compiler_gnu=$ac_cv_c_compiler_gnu
2266
2267
2268
2269ac_config_headers="$ac_config_headers config.h"
2270
2271ac_aux_dir=
2272for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2273  if test -f "$ac_dir/install-sh"; then
2274    ac_aux_dir=$ac_dir
2275    ac_install_sh="$ac_aux_dir/install-sh -c"
2276    break
2277  elif test -f "$ac_dir/install.sh"; then
2278    ac_aux_dir=$ac_dir
2279    ac_install_sh="$ac_aux_dir/install.sh -c"
2280    break
2281  elif test -f "$ac_dir/shtool"; then
2282    ac_aux_dir=$ac_dir
2283    ac_install_sh="$ac_aux_dir/shtool install -c"
2284    break
2285  fi
2286done
2287if test -z "$ac_aux_dir"; then
2288  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2289fi
2290
2291# These three variables are undocumented and unsupported,
2292# and are intended to be withdrawn in a future Autoconf release.
2293# They can cause serious problems if a builder's source tree is in a directory
2294# whose full name contains unusual characters.
2295ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2296ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2297ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2298
2299
2300# Expand $ac_aux_dir to an absolute path.
2301am_aux_dir=`cd "$ac_aux_dir" && pwd`
2302
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308if test -n "$ac_tool_prefix"; then
2309  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310set dummy ${ac_tool_prefix}gcc; ac_word=$2
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if ${ac_cv_prog_CC+:} false; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316  if test -n "$CC"; then
2317  ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322  IFS=$as_save_IFS
2323  test -z "$as_dir" && as_dir=.
2324    for ac_exec_ext in '' $ac_executable_extensions; do
2325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328    break 2
2329  fi
2330done
2331  done
2332IFS=$as_save_IFS
2333
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
2338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339$as_echo "$CC" >&6; }
2340else
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342$as_echo "no" >&6; }
2343fi
2344
2345
2346fi
2347if test -z "$ac_cv_prog_CC"; then
2348  ac_ct_CC=$CC
2349  # Extract the first word of "gcc", so it can be a program name with args.
2350set dummy gcc; ac_word=$2
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if ${ac_cv_prog_ac_ct_CC+:} false; then :
2354  $as_echo_n "(cached) " >&6
2355else
2356  if test -n "$ac_ct_CC"; then
2357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362  IFS=$as_save_IFS
2363  test -z "$as_dir" && as_dir=.
2364    for ac_exec_ext in '' $ac_executable_extensions; do
2365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366    ac_cv_prog_ac_ct_CC="gcc"
2367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368    break 2
2369  fi
2370done
2371  done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2379$as_echo "$ac_ct_CC" >&6; }
2380else
2381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385  if test "x$ac_ct_CC" = x; then
2386    CC=""
2387  else
2388    case $cross_compiling:$ac_tool_warned in
2389yes:)
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394    CC=$ac_ct_CC
2395  fi
2396else
2397  CC="$ac_cv_prog_CC"
2398fi
2399
2400if test -z "$CC"; then
2401          if test -n "$ac_tool_prefix"; then
2402    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}cc; ac_word=$2
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if ${ac_cv_prog_CC+:} false; then :
2407  $as_echo_n "(cached) " >&6
2408else
2409  if test -n "$CC"; then
2410  ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415  IFS=$as_save_IFS
2416  test -z "$as_dir" && as_dir=.
2417    for ac_exec_ext in '' $ac_executable_extensions; do
2418  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419    ac_cv_prog_CC="${ac_tool_prefix}cc"
2420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421    break 2
2422  fi
2423done
2424  done
2425IFS=$as_save_IFS
2426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
2431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
2433else
2434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
2436fi
2437
2438
2439  fi
2440fi
2441if test -z "$CC"; then
2442  # Extract the first word of "cc", so it can be a program name with args.
2443set dummy cc; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if ${ac_cv_prog_CC+:} false; then :
2447  $as_echo_n "(cached) " >&6
2448else
2449  if test -n "$CC"; then
2450  ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452  ac_prog_rejected=no
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458    for ac_exec_ext in '' $ac_executable_extensions; do
2459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2461       ac_prog_rejected=yes
2462       continue
2463     fi
2464    ac_cv_prog_CC="cc"
2465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469  done
2470IFS=$as_save_IFS
2471
2472if test $ac_prog_rejected = yes; then
2473  # We found a bogon in the path, so make sure we never use it.
2474  set dummy $ac_cv_prog_CC
2475  shift
2476  if test $# != 0; then
2477    # We chose a different compiler from the bogus one.
2478    # However, it has the same basename, so the bogon will be chosen
2479    # first if we set CC to just the basename; use the full file name.
2480    shift
2481    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482  fi
2483fi
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
2490else
2491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$CC"; then
2498  if test -n "$ac_tool_prefix"; then
2499  for ac_prog in cl.exe
2500  do
2501    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if ${ac_cv_prog_CC+:} false; then :
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$CC"; then
2509  ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516    for ac_exec_ext in '' $ac_executable_extensions; do
2517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523  done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531$as_echo "$CC" >&6; }
2532else
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537
2538    test -n "$CC" && break
2539  done
2540fi
2541if test -z "$CC"; then
2542  ac_ct_CC=$CC
2543  for ac_prog in cl.exe
2544do
2545  # Extract the first word of "$ac_prog", so it can be a program name with args.
2546set dummy $ac_prog; ac_word=$2
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if ${ac_cv_prog_ac_ct_CC+:} false; then :
2550  $as_echo_n "(cached) " >&6
2551else
2552  if test -n "$ac_ct_CC"; then
2553  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558  IFS=$as_save_IFS
2559  test -z "$as_dir" && as_dir=.
2560    for ac_exec_ext in '' $ac_executable_extensions; do
2561  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562    ac_cv_prog_ac_ct_CC="$ac_prog"
2563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564    break 2
2565  fi
2566done
2567  done
2568IFS=$as_save_IFS
2569
2570fi
2571fi
2572ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573if test -n "$ac_ct_CC"; then
2574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575$as_echo "$ac_ct_CC" >&6; }
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579fi
2580
2581
2582  test -n "$ac_ct_CC" && break
2583done
2584
2585  if test "x$ac_ct_CC" = x; then
2586    CC=""
2587  else
2588    case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594    CC=$ac_ct_CC
2595  fi
2596fi
2597
2598fi
2599
2600
2601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603as_fn_error $? "no acceptable C compiler found in \$PATH
2604See \`config.log' for more details" "$LINENO" 5; }
2605
2606# Provide some information about the compiler.
2607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2608set X $ac_compile
2609ac_compiler=$2
2610for ac_option in --version -v -V -qversion; do
2611  { { ac_try="$ac_compiler $ac_option >&5"
2612case "(($ac_try" in
2613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614  *) ac_try_echo=$ac_try;;
2615esac
2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617$as_echo "$ac_try_echo"; } >&5
2618  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2619  ac_status=$?
2620  if test -s conftest.err; then
2621    sed '10a\
2622... rest of stderr output deleted ...
2623         10q' conftest.err >conftest.er1
2624    cat conftest.er1 >&5
2625  fi
2626  rm -f conftest.er1 conftest.err
2627  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628  test $ac_status = 0; }
2629done
2630
2631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
2643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648$as_echo_n "checking whether the C compiler works... " >&6; }
2649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651# The possible output files:
2652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654ac_rmfiles=
2655for ac_file in $ac_files
2656do
2657  case $ac_file in
2658    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660  esac
2661done
2662rm -f $ac_rmfiles
2663
2664if { { ac_try="$ac_link_default"
2665case "(($ac_try" in
2666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667  *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670$as_echo "$ac_try_echo"; } >&5
2671  (eval "$ac_link_default") 2>&5
2672  ac_status=$?
2673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674  test $ac_status = 0; }; then :
2675  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2678# so that the user can short-circuit this test for compilers unknown to
2679# Autoconf.
2680for ac_file in $ac_files ''
2681do
2682  test -f "$ac_file" || continue
2683  case $ac_file in
2684    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2685	;;
2686    [ab].out )
2687	# We found the default executable, but exeext='' is most
2688	# certainly right.
2689	break;;
2690    *.* )
2691	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692	then :; else
2693	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694	fi
2695	# We set ac_cv_exeext here because the later test for it is not
2696	# safe: cross compilers may not add the suffix if given an `-o'
2697	# argument, so we may need to know it at that point already.
2698	# Even if this section looks crufty: it has the advantage of
2699	# actually working.
2700	break;;
2701    * )
2702	break;;
2703  esac
2704done
2705test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707else
2708  ac_file=''
2709fi
2710if test -z "$ac_file"; then :
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713$as_echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error 77 "C compiler cannot create executables
2719See \`config.log' for more details" "$LINENO" 5; }
2720else
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722$as_echo "yes" >&6; }
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2725$as_echo_n "checking for C compiler default output file name... " >&6; }
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2727$as_echo "$ac_file" >&6; }
2728ac_exeext=$ac_cv_exeext
2729
2730rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2731ac_clean_files=$ac_clean_files_save
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2733$as_echo_n "checking for suffix of executables... " >&6; }
2734if { { ac_try="$ac_link"
2735case "(($ac_try" in
2736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737  *) ac_try_echo=$ac_try;;
2738esac
2739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740$as_echo "$ac_try_echo"; } >&5
2741  (eval "$ac_link") 2>&5
2742  ac_status=$?
2743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744  test $ac_status = 0; }; then :
2745  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2747# work properly (i.e., refer to `conftest.exe'), while it won't with
2748# `rm'.
2749for ac_file in conftest.exe conftest conftest.*; do
2750  test -f "$ac_file" || continue
2751  case $ac_file in
2752    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754	  break;;
2755    * ) break;;
2756  esac
2757done
2758else
2759  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2762See \`config.log' for more details" "$LINENO" 5; }
2763fi
2764rm -f conftest conftest$ac_cv_exeext
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2766$as_echo "$ac_cv_exeext" >&6; }
2767
2768rm -f conftest.$ac_ext
2769EXEEXT=$ac_cv_exeext
2770ac_exeext=$EXEEXT
2771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h.  */
2773#include <stdio.h>
2774int
2775main ()
2776{
2777FILE *f = fopen ("conftest.out", "w");
2778 return ferror (f) || fclose (f) != 0;
2779
2780  ;
2781  return 0;
2782}
2783_ACEOF
2784ac_clean_files="$ac_clean_files conftest.out"
2785# Check that the compiler produces executables we can run.  If not, either
2786# the compiler is broken, or we cross compile.
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788$as_echo_n "checking whether we are cross compiling... " >&6; }
2789if test "$cross_compiling" != yes; then
2790  { { ac_try="$ac_link"
2791case "(($ac_try" in
2792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793  *) ac_try_echo=$ac_try;;
2794esac
2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796$as_echo "$ac_try_echo"; } >&5
2797  (eval "$ac_link") 2>&5
2798  ac_status=$?
2799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800  test $ac_status = 0; }
2801  if { ac_try='./conftest$ac_cv_exeext'
2802  { { case "(($ac_try" in
2803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804  *) ac_try_echo=$ac_try;;
2805esac
2806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807$as_echo "$ac_try_echo"; } >&5
2808  (eval "$ac_try") 2>&5
2809  ac_status=$?
2810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811  test $ac_status = 0; }; }; then
2812    cross_compiling=no
2813  else
2814    if test "$cross_compiling" = maybe; then
2815	cross_compiling=yes
2816    else
2817	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819as_fn_error $? "cannot run C compiled programs.
2820If you meant to cross compile, use \`--host'.
2821See \`config.log' for more details" "$LINENO" 5; }
2822    fi
2823  fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2826$as_echo "$cross_compiling" >&6; }
2827
2828rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2829ac_clean_files=$ac_clean_files_save
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2831$as_echo_n "checking for suffix of object files... " >&6; }
2832if ${ac_cv_objext+:} false; then :
2833  $as_echo_n "(cached) " >&6
2834else
2835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h.  */
2837
2838int
2839main ()
2840{
2841
2842  ;
2843  return 0;
2844}
2845_ACEOF
2846rm -f conftest.o conftest.obj
2847if { { ac_try="$ac_compile"
2848case "(($ac_try" in
2849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850  *) ac_try_echo=$ac_try;;
2851esac
2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853$as_echo "$ac_try_echo"; } >&5
2854  (eval "$ac_compile") 2>&5
2855  ac_status=$?
2856  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857  test $ac_status = 0; }; then :
2858  for ac_file in conftest.o conftest.obj conftest.*; do
2859  test -f "$ac_file" || continue;
2860  case $ac_file in
2861    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2862    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2863       break;;
2864  esac
2865done
2866else
2867  $as_echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872as_fn_error $? "cannot compute suffix of object files: cannot compile
2873See \`config.log' for more details" "$LINENO" 5; }
2874fi
2875rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2878$as_echo "$ac_cv_objext" >&6; }
2879OBJEXT=$ac_cv_objext
2880ac_objext=$OBJEXT
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2882$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2883if ${ac_cv_c_compiler_gnu+:} false; then :
2884  $as_echo_n "(cached) " >&6
2885else
2886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h.  */
2888
2889int
2890main ()
2891{
2892#ifndef __GNUC__
2893       choke me
2894#endif
2895
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901  ac_compiler_gnu=yes
2902else
2903  ac_compiler_gnu=no
2904fi
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908fi
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2910$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2911if test $ac_compiler_gnu = yes; then
2912  GCC=yes
2913else
2914  GCC=
2915fi
2916ac_test_CFLAGS=${CFLAGS+set}
2917ac_save_CFLAGS=$CFLAGS
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2919$as_echo_n "checking whether $CC accepts -g... " >&6; }
2920if ${ac_cv_prog_cc_g+:} false; then :
2921  $as_echo_n "(cached) " >&6
2922else
2923  ac_save_c_werror_flag=$ac_c_werror_flag
2924   ac_c_werror_flag=yes
2925   ac_cv_prog_cc_g=no
2926   CFLAGS="-g"
2927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928/* end confdefs.h.  */
2929
2930int
2931main ()
2932{
2933
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938if ac_fn_c_try_compile "$LINENO"; then :
2939  ac_cv_prog_cc_g=yes
2940else
2941  CFLAGS=""
2942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954
2955else
2956  ac_c_werror_flag=$ac_save_c_werror_flag
2957	 CFLAGS="-g"
2958	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964
2965  ;
2966  return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970  ac_cv_prog_cc_g=yes
2971fi
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977   ac_c_werror_flag=$ac_save_c_werror_flag
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2980$as_echo "$ac_cv_prog_cc_g" >&6; }
2981if test "$ac_test_CFLAGS" = set; then
2982  CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984  if test "$GCC" = yes; then
2985    CFLAGS="-g -O2"
2986  else
2987    CFLAGS="-g"
2988  fi
2989else
2990  if test "$GCC" = yes; then
2991    CFLAGS="-O2"
2992  else
2993    CFLAGS=
2994  fi
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998if ${ac_cv_prog_cc_c89+:} false; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  ac_cv_prog_cc_c89=no
3002ac_save_CC=$CC
3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h.  */
3005#include <stdarg.h>
3006#include <stdio.h>
3007struct stat;
3008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3009struct buf { int x; };
3010FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011static char *e (p, i)
3012     char **p;
3013     int i;
3014{
3015  return p[i];
3016}
3017static char *f (char * (*g) (char **, int), char **p, ...)
3018{
3019  char *s;
3020  va_list v;
3021  va_start (v,p);
3022  s = g (p, va_arg (v,int));
3023  va_end (v);
3024  return s;
3025}
3026
3027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3028   function prototypes and stuff, but not '\xHH' hex character constants.
3029   These don't provoke an error unfortunately, instead are silently treated
3030   as 'x'.  The following induces an error, until -std is added to get
3031   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3032   array size at least.  It's necessary to write '\x00'==0 to get something
3033   that's true only with -std.  */
3034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035
3036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037   inside strings and character constants.  */
3038#define FOO(x) 'x'
3039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040
3041int test (int i, double x);
3042struct s1 {int (*f) (int a);};
3043struct s2 {int (*f) (double a);};
3044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045int argc;
3046char **argv;
3047int
3048main ()
3049{
3050return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057do
3058  CC="$ac_save_CC $ac_arg"
3059  if ac_fn_c_try_compile "$LINENO"; then :
3060  ac_cv_prog_cc_c89=$ac_arg
3061fi
3062rm -f core conftest.err conftest.$ac_objext
3063  test "x$ac_cv_prog_cc_c89" != "xno" && break
3064done
3065rm -f conftest.$ac_ext
3066CC=$ac_save_CC
3067
3068fi
3069# AC_CACHE_VAL
3070case "x$ac_cv_prog_cc_c89" in
3071  x)
3072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3073$as_echo "none needed" >&6; } ;;
3074  xno)
3075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3076$as_echo "unsupported" >&6; } ;;
3077  *)
3078    CC="$CC $ac_cv_prog_cc_c89"
3079    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3081esac
3082if test "x$ac_cv_prog_cc_c89" != xno; then :
3083
3084fi
3085
3086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3098$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3099if ${am_cv_prog_cc_c_o+:} false; then :
3100  $as_echo_n "(cached) " >&6
3101else
3102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h.  */
3104
3105int
3106main ()
3107{
3108
3109  ;
3110  return 0;
3111}
3112_ACEOF
3113  # Make sure it works both with $CC and with simple cc.
3114  # Following AC_PROG_CC_C_O, we do the test twice because some
3115  # compilers refuse to overwrite an existing .o file with -o,
3116  # though they will create one.
3117  am_cv_prog_cc_c_o=yes
3118  for am_i in 1 2; do
3119    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3120   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } \
3124         && test -f conftest2.$ac_objext; then
3125      : OK
3126    else
3127      am_cv_prog_cc_c_o=no
3128      break
3129    fi
3130  done
3131  rm -f core conftest*
3132  unset am_i
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3135$as_echo "$am_cv_prog_cc_c_o" >&6; }
3136if test "$am_cv_prog_cc_c_o" != yes; then
3137   # Losing compiler, so override with the script.
3138   # FIXME: It is wrong to rewrite CC.
3139   # But if we don't then we get into trouble of one sort or another.
3140   # A longer-term fix would be to have automake use am__CC in this case,
3141   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3142   CC="$am_aux_dir/compile $CC"
3143fi
3144ac_ext=c
3145ac_cpp='$CPP $CPPFLAGS'
3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3158$as_echo_n "checking how to run the C preprocessor... " >&6; }
3159# On Suns, sometimes $CPP names a directory.
3160if test -n "$CPP" && test -d "$CPP"; then
3161  CPP=
3162fi
3163if test -z "$CPP"; then
3164  if ${ac_cv_prog_CPP+:} false; then :
3165  $as_echo_n "(cached) " >&6
3166else
3167      # Double quotes because CPP needs to be expanded
3168    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3169    do
3170      ac_preproc_ok=false
3171for ac_c_preproc_warn_flag in '' yes
3172do
3173  # Use a header file that comes with gcc, so configuring glibc
3174  # with a fresh cross-compiler works.
3175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176  # <limits.h> exists even on freestanding compilers.
3177  # On the NeXT, cc -E runs the code through the compiler's parser,
3178  # not just through cpp. "Syntax error" is here to catch this case.
3179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181#ifdef __STDC__
3182# include <limits.h>
3183#else
3184# include <assert.h>
3185#endif
3186		     Syntax error
3187_ACEOF
3188if ac_fn_c_try_cpp "$LINENO"; then :
3189
3190else
3191  # Broken: fails on valid input.
3192continue
3193fi
3194rm -f conftest.err conftest.i conftest.$ac_ext
3195
3196  # OK, works on sane cases.  Now check whether nonexistent headers
3197  # can be detected and how.
3198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h.  */
3200#include <ac_nonexistent.h>
3201_ACEOF
3202if ac_fn_c_try_cpp "$LINENO"; then :
3203  # Broken: success on invalid input.
3204continue
3205else
3206  # Passes both tests.
3207ac_preproc_ok=:
3208break
3209fi
3210rm -f conftest.err conftest.i conftest.$ac_ext
3211
3212done
3213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3214rm -f conftest.i conftest.err conftest.$ac_ext
3215if $ac_preproc_ok; then :
3216  break
3217fi
3218
3219    done
3220    ac_cv_prog_CPP=$CPP
3221
3222fi
3223  CPP=$ac_cv_prog_CPP
3224else
3225  ac_cv_prog_CPP=$CPP
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3228$as_echo "$CPP" >&6; }
3229ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes
3231do
3232  # Use a header file that comes with gcc, so configuring glibc
3233  # with a fresh cross-compiler works.
3234  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235  # <limits.h> exists even on freestanding compilers.
3236  # On the NeXT, cc -E runs the code through the compiler's parser,
3237  # not just through cpp. "Syntax error" is here to catch this case.
3238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h.  */
3240#ifdef __STDC__
3241# include <limits.h>
3242#else
3243# include <assert.h>
3244#endif
3245		     Syntax error
3246_ACEOF
3247if ac_fn_c_try_cpp "$LINENO"; then :
3248
3249else
3250  # Broken: fails on valid input.
3251continue
3252fi
3253rm -f conftest.err conftest.i conftest.$ac_ext
3254
3255  # OK, works on sane cases.  Now check whether nonexistent headers
3256  # can be detected and how.
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259#include <ac_nonexistent.h>
3260_ACEOF
3261if ac_fn_c_try_cpp "$LINENO"; then :
3262  # Broken: success on invalid input.
3263continue
3264else
3265  # Passes both tests.
3266ac_preproc_ok=:
3267break
3268fi
3269rm -f conftest.err conftest.i conftest.$ac_ext
3270
3271done
3272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273rm -f conftest.i conftest.err conftest.$ac_ext
3274if $ac_preproc_ok; then :
3275
3276else
3277  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3280See \`config.log' for more details" "$LINENO" 5; }
3281fi
3282
3283ac_ext=c
3284ac_cpp='$CPP $CPPFLAGS'
3285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3291$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3292if ${ac_cv_path_GREP+:} false; then :
3293  $as_echo_n "(cached) " >&6
3294else
3295  if test -z "$GREP"; then
3296  ac_path_GREP_found=false
3297  # Loop through the user's path and test for each of PROGNAME-LIST
3298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301  IFS=$as_save_IFS
3302  test -z "$as_dir" && as_dir=.
3303    for ac_prog in grep ggrep; do
3304    for ac_exec_ext in '' $ac_executable_extensions; do
3305      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306      as_fn_executable_p "$ac_path_GREP" || continue
3307# Check for GNU ac_path_GREP and select it if it is found.
3308  # Check for GNU $ac_path_GREP
3309case `"$ac_path_GREP" --version 2>&1` in
3310*GNU*)
3311  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312*)
3313  ac_count=0
3314  $as_echo_n 0123456789 >"conftest.in"
3315  while :
3316  do
3317    cat "conftest.in" "conftest.in" >"conftest.tmp"
3318    mv "conftest.tmp" "conftest.in"
3319    cp "conftest.in" "conftest.nl"
3320    $as_echo 'GREP' >> "conftest.nl"
3321    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323    as_fn_arith $ac_count + 1 && ac_count=$as_val
3324    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325      # Best one so far, save it but keep looking for a better one
3326      ac_cv_path_GREP="$ac_path_GREP"
3327      ac_path_GREP_max=$ac_count
3328    fi
3329    # 10*(2^10) chars as input seems more than enough
3330    test $ac_count -gt 10 && break
3331  done
3332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335      $ac_path_GREP_found && break 3
3336    done
3337  done
3338  done
3339IFS=$as_save_IFS
3340  if test -z "$ac_cv_path_GREP"; then
3341    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3342  fi
3343else
3344  ac_cv_path_GREP=$GREP
3345fi
3346
3347fi
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3349$as_echo "$ac_cv_path_GREP" >&6; }
3350 GREP="$ac_cv_path_GREP"
3351
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3354$as_echo_n "checking for egrep... " >&6; }
3355if ${ac_cv_path_EGREP+:} false; then :
3356  $as_echo_n "(cached) " >&6
3357else
3358  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3359   then ac_cv_path_EGREP="$GREP -E"
3360   else
3361     if test -z "$EGREP"; then
3362  ac_path_EGREP_found=false
3363  # Loop through the user's path and test for each of PROGNAME-LIST
3364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_prog in egrep; do
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372      as_fn_executable_p "$ac_path_EGREP" || continue
3373# Check for GNU ac_path_EGREP and select it if it is found.
3374  # Check for GNU $ac_path_EGREP
3375case `"$ac_path_EGREP" --version 2>&1` in
3376*GNU*)
3377  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378*)
3379  ac_count=0
3380  $as_echo_n 0123456789 >"conftest.in"
3381  while :
3382  do
3383    cat "conftest.in" "conftest.in" >"conftest.tmp"
3384    mv "conftest.tmp" "conftest.in"
3385    cp "conftest.in" "conftest.nl"
3386    $as_echo 'EGREP' >> "conftest.nl"
3387    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389    as_fn_arith $ac_count + 1 && ac_count=$as_val
3390    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391      # Best one so far, save it but keep looking for a better one
3392      ac_cv_path_EGREP="$ac_path_EGREP"
3393      ac_path_EGREP_max=$ac_count
3394    fi
3395    # 10*(2^10) chars as input seems more than enough
3396    test $ac_count -gt 10 && break
3397  done
3398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401      $ac_path_EGREP_found && break 3
3402    done
3403  done
3404  done
3405IFS=$as_save_IFS
3406  if test -z "$ac_cv_path_EGREP"; then
3407    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3408  fi
3409else
3410  ac_cv_path_EGREP=$EGREP
3411fi
3412
3413   fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3416$as_echo "$ac_cv_path_EGREP" >&6; }
3417 EGREP="$ac_cv_path_EGREP"
3418
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3421$as_echo_n "checking for ANSI C header files... " >&6; }
3422if ${ac_cv_header_stdc+:} false; then :
3423  $as_echo_n "(cached) " >&6
3424else
3425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <stdlib.h>
3428#include <stdarg.h>
3429#include <string.h>
3430#include <float.h>
3431
3432int
3433main ()
3434{
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441  ac_cv_header_stdc=yes
3442else
3443  ac_cv_header_stdc=no
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446
3447if test $ac_cv_header_stdc = yes; then
3448  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451#include <string.h>
3452
3453_ACEOF
3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455  $EGREP "memchr" >/dev/null 2>&1; then :
3456
3457else
3458  ac_cv_header_stdc=no
3459fi
3460rm -f conftest*
3461
3462fi
3463
3464if test $ac_cv_header_stdc = yes; then
3465  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468#include <stdlib.h>
3469
3470_ACEOF
3471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472  $EGREP "free" >/dev/null 2>&1; then :
3473
3474else
3475  ac_cv_header_stdc=no
3476fi
3477rm -f conftest*
3478
3479fi
3480
3481if test $ac_cv_header_stdc = yes; then
3482  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3483  if test "$cross_compiling" = yes; then :
3484  :
3485else
3486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488#include <ctype.h>
3489#include <stdlib.h>
3490#if ((' ' & 0x0FF) == 0x020)
3491# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3492# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3493#else
3494# define ISLOWER(c) \
3495		   (('a' <= (c) && (c) <= 'i') \
3496		     || ('j' <= (c) && (c) <= 'r') \
3497		     || ('s' <= (c) && (c) <= 'z'))
3498# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3499#endif
3500
3501#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3502int
3503main ()
3504{
3505  int i;
3506  for (i = 0; i < 256; i++)
3507    if (XOR (islower (i), ISLOWER (i))
3508	|| toupper (i) != TOUPPER (i))
3509      return 2;
3510  return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_run "$LINENO"; then :
3514
3515else
3516  ac_cv_header_stdc=no
3517fi
3518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3519  conftest.$ac_objext conftest.beam conftest.$ac_ext
3520fi
3521
3522fi
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3525$as_echo "$ac_cv_header_stdc" >&6; }
3526if test $ac_cv_header_stdc = yes; then
3527
3528$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3529
3530fi
3531
3532# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3533for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3534		  inttypes.h stdint.h unistd.h
3535do :
3536  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3538"
3539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3540  cat >>confdefs.h <<_ACEOF
3541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542_ACEOF
3543
3544fi
3545
3546done
3547
3548
3549
3550  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3551if test "x$ac_cv_header_minix_config_h" = xyes; then :
3552  MINIX=yes
3553else
3554  MINIX=
3555fi
3556
3557
3558  if test "$MINIX" = yes; then
3559
3560$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3561
3562
3563$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3564
3565
3566$as_echo "#define _MINIX 1" >>confdefs.h
3567
3568  fi
3569
3570
3571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3572$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3573if ${ac_cv_safe_to_define___extensions__+:} false; then :
3574  $as_echo_n "(cached) " >&6
3575else
3576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h.  */
3578
3579#         define __EXTENSIONS__ 1
3580          $ac_includes_default
3581int
3582main ()
3583{
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590  ac_cv_safe_to_define___extensions__=yes
3591else
3592  ac_cv_safe_to_define___extensions__=no
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3597$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3598  test $ac_cv_safe_to_define___extensions__ = yes &&
3599    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3600
3601  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3602
3603  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3604
3605  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3606
3607  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3608
3609
3610
3611# Initialize Automake
3612am__api_version='1.15'
3613
3614# Find a good install program.  We prefer a C program (faster),
3615# so one script is as good as another.  But avoid the broken or
3616# incompatible versions:
3617# SysV /etc/install, /usr/sbin/install
3618# SunOS /usr/etc/install
3619# IRIX /sbin/install
3620# AIX /bin/install
3621# AmigaOS /C/install, which installs bootblocks on floppy discs
3622# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625# OS/2's system install, which has a completely different semantic
3626# ./install, which can be erroneously created by make from ./install.sh.
3627# Reject install programs that cannot install multiple files.
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3629$as_echo_n "checking for a BSD-compatible install... " >&6; }
3630if test -z "$INSTALL"; then
3631if ${ac_cv_path_install+:} false; then :
3632  $as_echo_n "(cached) " >&6
3633else
3634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  test -z "$as_dir" && as_dir=.
3639    # Account for people who put trailing slashes in PATH elements.
3640case $as_dir/ in #((
3641  ./ | .// | /[cC]/* | \
3642  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3643  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3644  /usr/ucb/* ) ;;
3645  *)
3646    # OSF1 and SCO ODT 3.0 have their own names for install.
3647    # Don't use installbsd from OSF since it installs stuff as root
3648    # by default.
3649    for ac_prog in ginstall scoinst install; do
3650      for ac_exec_ext in '' $ac_executable_extensions; do
3651	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3652	  if test $ac_prog = install &&
3653	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654	    # AIX install.  It has an incompatible calling convention.
3655	    :
3656	  elif test $ac_prog = install &&
3657	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658	    # program-specific install script used by HP pwplus--don't use.
3659	    :
3660	  else
3661	    rm -rf conftest.one conftest.two conftest.dir
3662	    echo one > conftest.one
3663	    echo two > conftest.two
3664	    mkdir conftest.dir
3665	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3666	      test -s conftest.one && test -s conftest.two &&
3667	      test -s conftest.dir/conftest.one &&
3668	      test -s conftest.dir/conftest.two
3669	    then
3670	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671	      break 3
3672	    fi
3673	  fi
3674	fi
3675      done
3676    done
3677    ;;
3678esac
3679
3680  done
3681IFS=$as_save_IFS
3682
3683rm -rf conftest.one conftest.two conftest.dir
3684
3685fi
3686  if test "${ac_cv_path_install+set}" = set; then
3687    INSTALL=$ac_cv_path_install
3688  else
3689    # As a last resort, use the slow shell script.  Don't cache a
3690    # value for INSTALL within a source directory, because that will
3691    # break other packages using the cache if that directory is
3692    # removed, or if the value is a relative name.
3693    INSTALL=$ac_install_sh
3694  fi
3695fi
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3697$as_echo "$INSTALL" >&6; }
3698
3699# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3700# It thinks the first close brace ends the variable substitution.
3701test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702
3703test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704
3705test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3708$as_echo_n "checking whether build environment is sane... " >&6; }
3709# Reject unsafe characters in $srcdir or the absolute working directory
3710# name.  Accept space and tab only in the latter.
3711am_lf='
3712'
3713case `pwd` in
3714  *[\\\"\#\$\&\'\`$am_lf]*)
3715    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3716esac
3717case $srcdir in
3718  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3719    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3720esac
3721
3722# Do 'set' in a subshell so we don't clobber the current shell's
3723# arguments.  Must try -L first in case configure is actually a
3724# symlink; some systems play weird games with the mod time of symlinks
3725# (eg FreeBSD returns the mod time of the symlink's containing
3726# directory).
3727if (
3728   am_has_slept=no
3729   for am_try in 1 2; do
3730     echo "timestamp, slept: $am_has_slept" > conftest.file
3731     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3732     if test "$*" = "X"; then
3733	# -L didn't work.
3734	set X `ls -t "$srcdir/configure" conftest.file`
3735     fi
3736     if test "$*" != "X $srcdir/configure conftest.file" \
3737	&& test "$*" != "X conftest.file $srcdir/configure"; then
3738
3739	# If neither matched, then we have a broken ls.  This can happen
3740	# if, for instance, CONFIG_SHELL is bash and it inherits a
3741	# broken ls alias from the environment.  This has actually
3742	# happened.  Such a system could not be considered "sane".
3743	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3744  alias in your environment" "$LINENO" 5
3745     fi
3746     if test "$2" = conftest.file || test $am_try -eq 2; then
3747       break
3748     fi
3749     # Just in case.
3750     sleep 1
3751     am_has_slept=yes
3752   done
3753   test "$2" = conftest.file
3754   )
3755then
3756   # Ok.
3757   :
3758else
3759   as_fn_error $? "newly created file is older than distributed files!
3760Check your system clock" "$LINENO" 5
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763$as_echo "yes" >&6; }
3764# If we didn't sleep, we still need to ensure time stamps of config.status and
3765# generated files are strictly newer.
3766am_sleep_pid=
3767if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3768  ( sleep 1 ) &
3769  am_sleep_pid=$!
3770fi
3771
3772rm -f conftest.file
3773
3774test "$program_prefix" != NONE &&
3775  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3776# Use a double $ so make ignores it.
3777test "$program_suffix" != NONE &&
3778  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3779# Double any \ or $.
3780# By default was `s,x,x', remove it if useless.
3781ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3782program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3783
3784if test x"${MISSING+set}" != xset; then
3785  case $am_aux_dir in
3786  *\ * | *\	*)
3787    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3788  *)
3789    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3790  esac
3791fi
3792# Use eval to expand $SHELL
3793if eval "$MISSING --is-lightweight"; then
3794  am_missing_run="$MISSING "
3795else
3796  am_missing_run=
3797  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3798$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3799fi
3800
3801if test x"${install_sh+set}" != xset; then
3802  case $am_aux_dir in
3803  *\ * | *\	*)
3804    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3805  *)
3806    install_sh="\${SHELL} $am_aux_dir/install-sh"
3807  esac
3808fi
3809
3810# Installed binaries are usually stripped using 'strip' when the user
3811# run "make install-strip".  However 'strip' might not be the right
3812# tool to use in cross-compilation environments, therefore Automake
3813# will honor the 'STRIP' environment variable to overrule this program.
3814if test "$cross_compiling" != no; then
3815  if test -n "$ac_tool_prefix"; then
3816  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3817set dummy ${ac_tool_prefix}strip; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_STRIP+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$STRIP"; then
3824  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843STRIP=$ac_cv_prog_STRIP
3844if test -n "$STRIP"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3846$as_echo "$STRIP" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852
3853fi
3854if test -z "$ac_cv_prog_STRIP"; then
3855  ac_ct_STRIP=$STRIP
3856  # Extract the first word of "strip", so it can be a program name with args.
3857set dummy strip; ac_word=$2
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3859$as_echo_n "checking for $ac_word... " >&6; }
3860if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863  if test -n "$ac_ct_STRIP"; then
3864  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3865else
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869  IFS=$as_save_IFS
3870  test -z "$as_dir" && as_dir=.
3871    for ac_exec_ext in '' $ac_executable_extensions; do
3872  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873    ac_cv_prog_ac_ct_STRIP="strip"
3874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875    break 2
3876  fi
3877done
3878  done
3879IFS=$as_save_IFS
3880
3881fi
3882fi
3883ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3884if test -n "$ac_ct_STRIP"; then
3885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3886$as_echo "$ac_ct_STRIP" >&6; }
3887else
3888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889$as_echo "no" >&6; }
3890fi
3891
3892  if test "x$ac_ct_STRIP" = x; then
3893    STRIP=":"
3894  else
3895    case $cross_compiling:$ac_tool_warned in
3896yes:)
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899ac_tool_warned=yes ;;
3900esac
3901    STRIP=$ac_ct_STRIP
3902  fi
3903else
3904  STRIP="$ac_cv_prog_STRIP"
3905fi
3906
3907fi
3908INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3909
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3911$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3912if test -z "$MKDIR_P"; then
3913  if ${ac_cv_path_mkdir+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3918do
3919  IFS=$as_save_IFS
3920  test -z "$as_dir" && as_dir=.
3921    for ac_prog in mkdir gmkdir; do
3922	 for ac_exec_ext in '' $ac_executable_extensions; do
3923	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3924	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3925	     'mkdir (GNU coreutils) '* | \
3926	     'mkdir (coreutils) '* | \
3927	     'mkdir (fileutils) '4.1*)
3928	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3929	       break 3;;
3930	   esac
3931	 done
3932       done
3933  done
3934IFS=$as_save_IFS
3935
3936fi
3937
3938  test -d ./--version && rmdir ./--version
3939  if test "${ac_cv_path_mkdir+set}" = set; then
3940    MKDIR_P="$ac_cv_path_mkdir -p"
3941  else
3942    # As a last resort, use the slow shell script.  Don't cache a
3943    # value for MKDIR_P within a source directory, because that will
3944    # break other packages using the cache if that directory is
3945    # removed, or if the value is a relative name.
3946    MKDIR_P="$ac_install_sh -d"
3947  fi
3948fi
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3950$as_echo "$MKDIR_P" >&6; }
3951
3952for ac_prog in gawk mawk nawk awk
3953do
3954  # Extract the first word of "$ac_prog", so it can be a program name with args.
3955set dummy $ac_prog; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_AWK+:} false; then :
3959  $as_echo_n "(cached) " >&6
3960else
3961  if test -n "$AWK"; then
3962  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967  IFS=$as_save_IFS
3968  test -z "$as_dir" && as_dir=.
3969    for ac_exec_ext in '' $ac_executable_extensions; do
3970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971    ac_cv_prog_AWK="$ac_prog"
3972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973    break 2
3974  fi
3975done
3976  done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981AWK=$ac_cv_prog_AWK
3982if test -n "$AWK"; then
3983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3984$as_echo "$AWK" >&6; }
3985else
3986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990
3991  test -n "$AWK" && break
3992done
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3995$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3996set x ${MAKE-make}
3997ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3998if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3999  $as_echo_n "(cached) " >&6
4000else
4001  cat >conftest.make <<\_ACEOF
4002SHELL = /bin/sh
4003all:
4004	@echo '@@@%%%=$(MAKE)=@@@%%%'
4005_ACEOF
4006# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4007case `${MAKE-make} -f conftest.make 2>/dev/null` in
4008  *@@@%%%=?*=@@@%%%*)
4009    eval ac_cv_prog_make_${ac_make}_set=yes;;
4010  *)
4011    eval ac_cv_prog_make_${ac_make}_set=no;;
4012esac
4013rm -f conftest.make
4014fi
4015if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4017$as_echo "yes" >&6; }
4018  SET_MAKE=
4019else
4020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
4022  SET_MAKE="MAKE=${MAKE-make}"
4023fi
4024
4025rm -rf .tst 2>/dev/null
4026mkdir .tst 2>/dev/null
4027if test -d .tst; then
4028  am__leading_dot=.
4029else
4030  am__leading_dot=_
4031fi
4032rmdir .tst 2>/dev/null
4033
4034DEPDIR="${am__leading_dot}deps"
4035
4036ac_config_commands="$ac_config_commands depfiles"
4037
4038
4039am_make=${MAKE-make}
4040cat > confinc << 'END'
4041am__doit:
4042	@echo this is the am__doit target
4043.PHONY: am__doit
4044END
4045# If we don't find an include directive, just comment out the code.
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4047$as_echo_n "checking for style of include used by $am_make... " >&6; }
4048am__include="#"
4049am__quote=
4050_am_result=none
4051# First try GNU make style include.
4052echo "include confinc" > confmf
4053# Ignore all kinds of additional output from 'make'.
4054case `$am_make -s -f confmf 2> /dev/null` in #(
4055*the\ am__doit\ target*)
4056  am__include=include
4057  am__quote=
4058  _am_result=GNU
4059  ;;
4060esac
4061# Now try BSD make style include.
4062if test "$am__include" = "#"; then
4063   echo '.include "confinc"' > confmf
4064   case `$am_make -s -f confmf 2> /dev/null` in #(
4065   *the\ am__doit\ target*)
4066     am__include=.include
4067     am__quote="\""
4068     _am_result=BSD
4069     ;;
4070   esac
4071fi
4072
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4075$as_echo "$_am_result" >&6; }
4076rm -f confinc confmf
4077
4078# Check whether --enable-dependency-tracking was given.
4079if test "${enable_dependency_tracking+set}" = set; then :
4080  enableval=$enable_dependency_tracking;
4081fi
4082
4083if test "x$enable_dependency_tracking" != xno; then
4084  am_depcomp="$ac_aux_dir/depcomp"
4085  AMDEPBACKSLASH='\'
4086  am__nodep='_no'
4087fi
4088 if test "x$enable_dependency_tracking" != xno; then
4089  AMDEP_TRUE=
4090  AMDEP_FALSE='#'
4091else
4092  AMDEP_TRUE='#'
4093  AMDEP_FALSE=
4094fi
4095
4096
4097# Check whether --enable-silent-rules was given.
4098if test "${enable_silent_rules+set}" = set; then :
4099  enableval=$enable_silent_rules;
4100fi
4101
4102case $enable_silent_rules in # (((
4103  yes) AM_DEFAULT_VERBOSITY=0;;
4104   no) AM_DEFAULT_VERBOSITY=1;;
4105    *) AM_DEFAULT_VERBOSITY=1;;
4106esac
4107am_make=${MAKE-make}
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4109$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4110if ${am_cv_make_support_nested_variables+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  if $as_echo 'TRUE=$(BAR$(V))
4114BAR0=false
4115BAR1=true
4116V=1
4117am__doit:
4118	@$(TRUE)
4119.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4120  am_cv_make_support_nested_variables=yes
4121else
4122  am_cv_make_support_nested_variables=no
4123fi
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4126$as_echo "$am_cv_make_support_nested_variables" >&6; }
4127if test $am_cv_make_support_nested_variables = yes; then
4128    AM_V='$(V)'
4129  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4130else
4131  AM_V=$AM_DEFAULT_VERBOSITY
4132  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4133fi
4134AM_BACKSLASH='\'
4135
4136if test "`cd $srcdir && pwd`" != "`pwd`"; then
4137  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4138  # is not polluted with repeated "-I."
4139  am__isrc=' -I$(srcdir)'
4140  # test to see if srcdir already configured
4141  if test -f $srcdir/config.status; then
4142    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4143  fi
4144fi
4145
4146# test whether we have cygpath
4147if test -z "$CYGPATH_W"; then
4148  if (cygpath --version) >/dev/null 2>/dev/null; then
4149    CYGPATH_W='cygpath -w'
4150  else
4151    CYGPATH_W=echo
4152  fi
4153fi
4154
4155
4156# Define the identity of the package.
4157 PACKAGE='twm'
4158 VERSION='1.0.12'
4159
4160
4161cat >>confdefs.h <<_ACEOF
4162#define PACKAGE "$PACKAGE"
4163_ACEOF
4164
4165
4166cat >>confdefs.h <<_ACEOF
4167#define VERSION "$VERSION"
4168_ACEOF
4169
4170# Some tools Automake needs.
4171
4172ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4173
4174
4175AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4176
4177
4178AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4179
4180
4181AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4182
4183
4184MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4185
4186# For better backward compatibility.  To be removed once Automake 1.9.x
4187# dies out for good.  For more background, see:
4188# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4189# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4190mkdir_p='$(MKDIR_P)'
4191
4192# We need awk for the "check" target (and possibly the TAP driver).  The
4193# system "awk" is bad on some platforms.
4194# Always define AMTAR for backward compatibility.  Yes, it's still used
4195# in the wild :-(  We should find a proper way to deprecate it ...
4196AMTAR='$${TAR-tar}'
4197
4198
4199# We'll loop over all known methods to create a tar archive until one works.
4200_am_tools='gnutar  pax cpio none'
4201
4202am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4203
4204
4205
4206
4207
4208depcc="$CC"   am_compiler_list=
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4211$as_echo_n "checking dependency style of $depcc... " >&6; }
4212if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4216  # We make a subdir and do the tests there.  Otherwise we can end up
4217  # making bogus files that we don't know about and never remove.  For
4218  # instance it was reported that on HP-UX the gcc test will end up
4219  # making a dummy file named 'D' -- because '-MD' means "put the output
4220  # in D".
4221  rm -rf conftest.dir
4222  mkdir conftest.dir
4223  # Copy depcomp to subdir because otherwise we won't find it if we're
4224  # using a relative directory.
4225  cp "$am_depcomp" conftest.dir
4226  cd conftest.dir
4227  # We will build objects and dependencies in a subdirectory because
4228  # it helps to detect inapplicable dependency modes.  For instance
4229  # both Tru64's cc and ICC support -MD to output dependencies as a
4230  # side effect of compilation, but ICC will put the dependencies in
4231  # the current directory while Tru64 will put them in the object
4232  # directory.
4233  mkdir sub
4234
4235  am_cv_CC_dependencies_compiler_type=none
4236  if test "$am_compiler_list" = ""; then
4237     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4238  fi
4239  am__universal=false
4240  case " $depcc " in #(
4241     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4242     esac
4243
4244  for depmode in $am_compiler_list; do
4245    # Setup a source with many dependencies, because some compilers
4246    # like to wrap large dependency lists on column 80 (with \), and
4247    # we should not choose a depcomp mode which is confused by this.
4248    #
4249    # We need to recreate these files for each test, as the compiler may
4250    # overwrite some of them when testing with obscure command lines.
4251    # This happens at least with the AIX C compiler.
4252    : > sub/conftest.c
4253    for i in 1 2 3 4 5 6; do
4254      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4255      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4256      # Solaris 10 /bin/sh.
4257      echo '/* dummy */' > sub/conftst$i.h
4258    done
4259    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4260
4261    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4262    # mode.  It turns out that the SunPro C++ compiler does not properly
4263    # handle '-M -o', and we need to detect this.  Also, some Intel
4264    # versions had trouble with output in subdirs.
4265    am__obj=sub/conftest.${OBJEXT-o}
4266    am__minus_obj="-o $am__obj"
4267    case $depmode in
4268    gcc)
4269      # This depmode causes a compiler race in universal mode.
4270      test "$am__universal" = false || continue
4271      ;;
4272    nosideeffect)
4273      # After this tag, mechanisms are not by side-effect, so they'll
4274      # only be used when explicitly requested.
4275      if test "x$enable_dependency_tracking" = xyes; then
4276	continue
4277      else
4278	break
4279      fi
4280      ;;
4281    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4282      # This compiler won't grok '-c -o', but also, the minuso test has
4283      # not run yet.  These depmodes are late enough in the game, and
4284      # so weak that their functioning should not be impacted.
4285      am__obj=conftest.${OBJEXT-o}
4286      am__minus_obj=
4287      ;;
4288    none) break ;;
4289    esac
4290    if depmode=$depmode \
4291       source=sub/conftest.c object=$am__obj \
4292       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4293       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4294         >/dev/null 2>conftest.err &&
4295       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4296       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4297       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4298       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4299      # icc doesn't choke on unknown options, it will just issue warnings
4300      # or remarks (even with -Werror).  So we grep stderr for any message
4301      # that says an option was ignored or not supported.
4302      # When given -MP, icc 7.0 and 7.1 complain thusly:
4303      #   icc: Command line warning: ignoring option '-M'; no argument required
4304      # The diagnosis changed in icc 8.0:
4305      #   icc: Command line remark: option '-MP' not supported
4306      if (grep 'ignoring option' conftest.err ||
4307          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4308        am_cv_CC_dependencies_compiler_type=$depmode
4309        break
4310      fi
4311    fi
4312  done
4313
4314  cd ..
4315  rm -rf conftest.dir
4316else
4317  am_cv_CC_dependencies_compiler_type=none
4318fi
4319
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4322$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4323CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4324
4325 if
4326  test "x$enable_dependency_tracking" != xno \
4327  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4328  am__fastdepCC_TRUE=
4329  am__fastdepCC_FALSE='#'
4330else
4331  am__fastdepCC_TRUE='#'
4332  am__fastdepCC_FALSE=
4333fi
4334
4335
4336
4337# POSIX will say in a future version that running "rm -f" with no argument
4338# is OK; and we want to be able to make that assumption in our Makefile
4339# recipes.  So use an aggressive probe to check that the usage we want is
4340# actually supported "in the wild" to an acceptable degree.
4341# See automake bug#10828.
4342# To make any issue more visible, cause the running configure to be aborted
4343# by default if the 'rm' program in use doesn't match our expectations; the
4344# user can still override this though.
4345if rm -f && rm -fr && rm -rf; then : OK; else
4346  cat >&2 <<'END'
4347Oops!
4348
4349Your 'rm' program seems unable to run without file operands specified
4350on the command line, even when the '-f' option is present.  This is contrary
4351to the behaviour of most rm programs out there, and not conforming with
4352the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4353
4354Please tell bug-automake@gnu.org about your system, including the value
4355of your $PATH and any error possibly output before this message.  This
4356can help us improve future automake versions.
4357
4358END
4359  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4360    echo 'Configuration will proceed anyway, since you have set the' >&2
4361    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4362    echo >&2
4363  else
4364    cat >&2 <<'END'
4365Aborting the configuration process, to ensure you take notice of the issue.
4366
4367You can download and install GNU coreutils to get an 'rm' implementation
4368that behaves properly: <http://www.gnu.org/software/coreutils/>.
4369
4370If you want to complete the configuration process using your problematic
4371'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4372to "yes", and re-run configure.
4373
4374END
4375    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4376  fi
4377fi
4378
4379
4380# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4393$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4394if ${ac_cv_prog_cc_c99+:} false; then :
4395  $as_echo_n "(cached) " >&6
4396else
4397  ac_cv_prog_cc_c99=no
4398ac_save_CC=$CC
4399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401#include <stdarg.h>
4402#include <stdbool.h>
4403#include <stdlib.h>
4404#include <wchar.h>
4405#include <stdio.h>
4406
4407// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4408#define debug(...) fprintf (stderr, __VA_ARGS__)
4409#define showlist(...) puts (#__VA_ARGS__)
4410#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4411static void
4412test_varargs_macros (void)
4413{
4414  int x = 1234;
4415  int y = 5678;
4416  debug ("Flag");
4417  debug ("X = %d\n", x);
4418  showlist (The first, second, and third items.);
4419  report (x>y, "x is %d but y is %d", x, y);
4420}
4421
4422// Check long long types.
4423#define BIG64 18446744073709551615ull
4424#define BIG32 4294967295ul
4425#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4426#if !BIG_OK
4427  your preprocessor is broken;
4428#endif
4429#if BIG_OK
4430#else
4431  your preprocessor is broken;
4432#endif
4433static long long int bignum = -9223372036854775807LL;
4434static unsigned long long int ubignum = BIG64;
4435
4436struct incomplete_array
4437{
4438  int datasize;
4439  double data[];
4440};
4441
4442struct named_init {
4443  int number;
4444  const wchar_t *name;
4445  double average;
4446};
4447
4448typedef const char *ccp;
4449
4450static inline int
4451test_restrict (ccp restrict text)
4452{
4453  // See if C++-style comments work.
4454  // Iterate through items via the restricted pointer.
4455  // Also check for declarations in for loops.
4456  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4457    continue;
4458  return 0;
4459}
4460
4461// Check varargs and va_copy.
4462static void
4463test_varargs (const char *format, ...)
4464{
4465  va_list args;
4466  va_start (args, format);
4467  va_list args_copy;
4468  va_copy (args_copy, args);
4469
4470  const char *str;
4471  int number;
4472  float fnumber;
4473
4474  while (*format)
4475    {
4476      switch (*format++)
4477	{
4478	case 's': // string
4479	  str = va_arg (args_copy, const char *);
4480	  break;
4481	case 'd': // int
4482	  number = va_arg (args_copy, int);
4483	  break;
4484	case 'f': // float
4485	  fnumber = va_arg (args_copy, double);
4486	  break;
4487	default:
4488	  break;
4489	}
4490    }
4491  va_end (args_copy);
4492  va_end (args);
4493}
4494
4495int
4496main ()
4497{
4498
4499  // Check bool.
4500  _Bool success = false;
4501
4502  // Check restrict.
4503  if (test_restrict ("String literal") == 0)
4504    success = true;
4505  char *restrict newvar = "Another string";
4506
4507  // Check varargs.
4508  test_varargs ("s, d' f .", "string", 65, 34.234);
4509  test_varargs_macros ();
4510
4511  // Check flexible array members.
4512  struct incomplete_array *ia =
4513    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4514  ia->datasize = 10;
4515  for (int i = 0; i < ia->datasize; ++i)
4516    ia->data[i] = i * 1.234;
4517
4518  // Check named initializers.
4519  struct named_init ni = {
4520    .number = 34,
4521    .name = L"Test wide string",
4522    .average = 543.34343,
4523  };
4524
4525  ni.number = 58;
4526
4527  int dynamic_array[ni.number];
4528  dynamic_array[ni.number - 1] = 543;
4529
4530  // work around unused variable warnings
4531  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4532	  || dynamic_array[ni.number - 1] != 543);
4533
4534  ;
4535  return 0;
4536}
4537_ACEOF
4538for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4539do
4540  CC="$ac_save_CC $ac_arg"
4541  if ac_fn_c_try_compile "$LINENO"; then :
4542  ac_cv_prog_cc_c99=$ac_arg
4543fi
4544rm -f core conftest.err conftest.$ac_objext
4545  test "x$ac_cv_prog_cc_c99" != "xno" && break
4546done
4547rm -f conftest.$ac_ext
4548CC=$ac_save_CC
4549
4550fi
4551# AC_CACHE_VAL
4552case "x$ac_cv_prog_cc_c99" in
4553  x)
4554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4555$as_echo "none needed" >&6; } ;;
4556  xno)
4557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4558$as_echo "unsupported" >&6; } ;;
4559  *)
4560    CC="$CC $ac_cv_prog_cc_c99"
4561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4562$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4563esac
4564if test "x$ac_cv_prog_cc_c99" != xno; then :
4565
4566fi
4567
4568
4569
4570
4571
4572
4573ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4574if test "x$ac_cv_have_decl___clang__" = xyes; then :
4575  CLANGCC="yes"
4576else
4577  CLANGCC="no"
4578fi
4579
4580ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4581if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4582  INTELCC="yes"
4583else
4584  INTELCC="no"
4585fi
4586
4587ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4588if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4589  SUNCC="yes"
4590else
4591  SUNCC="no"
4592fi
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4603	if test -n "$ac_tool_prefix"; then
4604  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4605set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
4608if ${ac_cv_path_PKG_CONFIG+:} false; then :
4609  $as_echo_n "(cached) " >&6
4610else
4611  case $PKG_CONFIG in
4612  [\\/]* | ?:[\\/]*)
4613  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4614  ;;
4615  *)
4616  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619  IFS=$as_save_IFS
4620  test -z "$as_dir" && as_dir=.
4621    for ac_exec_ext in '' $ac_executable_extensions; do
4622  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4623    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625    break 2
4626  fi
4627done
4628  done
4629IFS=$as_save_IFS
4630
4631  ;;
4632esac
4633fi
4634PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4635if test -n "$PKG_CONFIG"; then
4636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4637$as_echo "$PKG_CONFIG" >&6; }
4638else
4639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$ac_cv_path_PKG_CONFIG"; then
4646  ac_pt_PKG_CONFIG=$PKG_CONFIG
4647  # Extract the first word of "pkg-config", so it can be a program name with args.
4648set dummy pkg-config; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4652  $as_echo_n "(cached) " >&6
4653else
4654  case $ac_pt_PKG_CONFIG in
4655  [\\/]* | ?:[\\/]*)
4656  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4657  ;;
4658  *)
4659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664    for ac_exec_ext in '' $ac_executable_extensions; do
4665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671  done
4672IFS=$as_save_IFS
4673
4674  ;;
4675esac
4676fi
4677ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4678if test -n "$ac_pt_PKG_CONFIG"; then
4679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4680$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4681else
4682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683$as_echo "no" >&6; }
4684fi
4685
4686  if test "x$ac_pt_PKG_CONFIG" = x; then
4687    PKG_CONFIG=""
4688  else
4689    case $cross_compiling:$ac_tool_warned in
4690yes:)
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693ac_tool_warned=yes ;;
4694esac
4695    PKG_CONFIG=$ac_pt_PKG_CONFIG
4696  fi
4697else
4698  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4699fi
4700
4701fi
4702if test -n "$PKG_CONFIG"; then
4703	_pkg_min_version=0.9.0
4704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4705$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4706	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4708$as_echo "yes" >&6; }
4709	else
4710		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711$as_echo "no" >&6; }
4712		PKG_CONFIG=""
4713	fi
4714fi
4715# Make sure we can run config.sub.
4716$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4717  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4720$as_echo_n "checking build system type... " >&6; }
4721if ${ac_cv_build+:} false; then :
4722  $as_echo_n "(cached) " >&6
4723else
4724  ac_build_alias=$build_alias
4725test "x$ac_build_alias" = x &&
4726  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4727test "x$ac_build_alias" = x &&
4728  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4729ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4730  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4731
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734$as_echo "$ac_cv_build" >&6; }
4735case $ac_cv_build in
4736*-*-*) ;;
4737*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4738esac
4739build=$ac_cv_build
4740ac_save_IFS=$IFS; IFS='-'
4741set x $ac_cv_build
4742shift
4743build_cpu=$1
4744build_vendor=$2
4745shift; shift
4746# Remember, the first character of IFS is used to create $*,
4747# except with old shells:
4748build_os=$*
4749IFS=$ac_save_IFS
4750case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754$as_echo_n "checking host system type... " >&6; }
4755if ${ac_cv_host+:} false; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  if test "x$host_alias" = x; then
4759  ac_cv_host=$ac_cv_build
4760else
4761  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4762    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4763fi
4764
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4767$as_echo "$ac_cv_host" >&6; }
4768case $ac_cv_host in
4769*-*-*) ;;
4770*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4771esac
4772host=$ac_cv_host
4773ac_save_IFS=$IFS; IFS='-'
4774set x $ac_cv_host
4775shift
4776host_cpu=$1
4777host_vendor=$2
4778shift; shift
4779# Remember, the first character of IFS is used to create $*,
4780# except with old shells:
4781host_os=$*
4782IFS=$ac_save_IFS
4783case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4784
4785
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4787$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4788if ${ac_cv_path_SED+:} false; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4792     for ac_i in 1 2 3 4 5 6 7; do
4793       ac_script="$ac_script$as_nl$ac_script"
4794     done
4795     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4796     { ac_script=; unset ac_script;}
4797     if test -z "$SED"; then
4798  ac_path_SED_found=false
4799  # Loop through the user's path and test for each of PROGNAME-LIST
4800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803  IFS=$as_save_IFS
4804  test -z "$as_dir" && as_dir=.
4805    for ac_prog in sed gsed; do
4806    for ac_exec_ext in '' $ac_executable_extensions; do
4807      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4808      as_fn_executable_p "$ac_path_SED" || continue
4809# Check for GNU ac_path_SED and select it if it is found.
4810  # Check for GNU $ac_path_SED
4811case `"$ac_path_SED" --version 2>&1` in
4812*GNU*)
4813  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4814*)
4815  ac_count=0
4816  $as_echo_n 0123456789 >"conftest.in"
4817  while :
4818  do
4819    cat "conftest.in" "conftest.in" >"conftest.tmp"
4820    mv "conftest.tmp" "conftest.in"
4821    cp "conftest.in" "conftest.nl"
4822    $as_echo '' >> "conftest.nl"
4823    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825    as_fn_arith $ac_count + 1 && ac_count=$as_val
4826    if test $ac_count -gt ${ac_path_SED_max-0}; then
4827      # Best one so far, save it but keep looking for a better one
4828      ac_cv_path_SED="$ac_path_SED"
4829      ac_path_SED_max=$ac_count
4830    fi
4831    # 10*(2^10) chars as input seems more than enough
4832    test $ac_count -gt 10 && break
4833  done
4834  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835esac
4836
4837      $ac_path_SED_found && break 3
4838    done
4839  done
4840  done
4841IFS=$as_save_IFS
4842  if test -z "$ac_cv_path_SED"; then
4843    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4844  fi
4845else
4846  ac_cv_path_SED=$SED
4847fi
4848
4849fi
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4851$as_echo "$ac_cv_path_SED" >&6; }
4852 SED="$ac_cv_path_SED"
4853  rm -f conftest.sed
4854
4855
4856
4857
4858
4859
4860# Check whether --enable-selective-werror was given.
4861if test "${enable_selective_werror+set}" = set; then :
4862  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4863else
4864  SELECTIVE_WERROR=yes
4865fi
4866
4867
4868
4869
4870
4871# -v is too short to test reliably with XORG_TESTSET_CFLAG
4872if test "x$SUNCC" = "xyes"; then
4873    BASE_CFLAGS="-v"
4874else
4875    BASE_CFLAGS=""
4876fi
4877
4878# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892xorg_testset_save_CFLAGS="$CFLAGS"
4893
4894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4895	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4897$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4898if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4899  $as_echo_n "(cached) " >&6
4900else
4901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902/* end confdefs.h.  */
4903int i;
4904_ACEOF
4905if ac_fn_c_try_compile "$LINENO"; then :
4906  xorg_cv_cc_flag_unknown_warning_option=yes
4907else
4908  xorg_cv_cc_flag_unknown_warning_option=no
4909fi
4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4913$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4914	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4915	CFLAGS="$xorg_testset_save_CFLAGS"
4916fi
4917
4918if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4919	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4920		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921	fi
4922	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4924$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4925if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930int i;
4931_ACEOF
4932if ac_fn_c_try_compile "$LINENO"; then :
4933  xorg_cv_cc_flag_unused_command_line_argument=yes
4934else
4935  xorg_cv_cc_flag_unused_command_line_argument=no
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4940$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4942	CFLAGS="$xorg_testset_save_CFLAGS"
4943fi
4944
4945found="no"
4946
4947	if test $found = "no" ; then
4948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4950		fi
4951
4952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4954		fi
4955
4956		CFLAGS="$CFLAGS -Wall"
4957
4958		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4959$as_echo_n "checking if $CC supports -Wall... " >&6; }
4960		cacheid=xorg_cv_cc_flag__Wall
4961		if eval \${$cacheid+:} false; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965/* end confdefs.h.  */
4966int i;
4967int
4968main ()
4969{
4970
4971  ;
4972  return 0;
4973}
4974_ACEOF
4975if ac_fn_c_try_link "$LINENO"; then :
4976  eval $cacheid=yes
4977else
4978  eval $cacheid=no
4979fi
4980rm -f core conftest.err conftest.$ac_objext \
4981    conftest$ac_exeext conftest.$ac_ext
4982fi
4983
4984
4985		CFLAGS="$xorg_testset_save_CFLAGS"
4986
4987		eval supported=\$$cacheid
4988		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4989$as_echo "$supported" >&6; }
4990		if test "$supported" = "yes" ; then
4991			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4992			found="yes"
4993		fi
4994	fi
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010xorg_testset_save_CFLAGS="$CFLAGS"
5011
5012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5013	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020/* end confdefs.h.  */
5021int i;
5022_ACEOF
5023if ac_fn_c_try_compile "$LINENO"; then :
5024  xorg_cv_cc_flag_unknown_warning_option=yes
5025else
5026  xorg_cv_cc_flag_unknown_warning_option=no
5027fi
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029fi
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5033	CFLAGS="$xorg_testset_save_CFLAGS"
5034fi
5035
5036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039	fi
5040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049_ACEOF
5050if ac_fn_c_try_compile "$LINENO"; then :
5051  xorg_cv_cc_flag_unused_command_line_argument=yes
5052else
5053  xorg_cv_cc_flag_unused_command_line_argument=no
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5060	CFLAGS="$xorg_testset_save_CFLAGS"
5061fi
5062
5063found="no"
5064
5065	if test $found = "no" ; then
5066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5068		fi
5069
5070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5072		fi
5073
5074		CFLAGS="$CFLAGS -Wpointer-arith"
5075
5076		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5077$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5078		cacheid=xorg_cv_cc_flag__Wpointer_arith
5079		if eval \${$cacheid+:} false; then :
5080  $as_echo_n "(cached) " >&6
5081else
5082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083/* end confdefs.h.  */
5084int i;
5085int
5086main ()
5087{
5088
5089  ;
5090  return 0;
5091}
5092_ACEOF
5093if ac_fn_c_try_link "$LINENO"; then :
5094  eval $cacheid=yes
5095else
5096  eval $cacheid=no
5097fi
5098rm -f core conftest.err conftest.$ac_objext \
5099    conftest$ac_exeext conftest.$ac_ext
5100fi
5101
5102
5103		CFLAGS="$xorg_testset_save_CFLAGS"
5104
5105		eval supported=\$$cacheid
5106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5107$as_echo "$supported" >&6; }
5108		if test "$supported" = "yes" ; then
5109			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5110			found="yes"
5111		fi
5112	fi
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128xorg_testset_save_CFLAGS="$CFLAGS"
5129
5130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5135  $as_echo_n "(cached) " >&6
5136else
5137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139int i;
5140_ACEOF
5141if ac_fn_c_try_compile "$LINENO"; then :
5142  xorg_cv_cc_flag_unknown_warning_option=yes
5143else
5144  xorg_cv_cc_flag_unknown_warning_option=no
5145fi
5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147fi
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5150	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5151	CFLAGS="$xorg_testset_save_CFLAGS"
5152fi
5153
5154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5155	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5156		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157	fi
5158	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166int i;
5167_ACEOF
5168if ac_fn_c_try_compile "$LINENO"; then :
5169  xorg_cv_cc_flag_unused_command_line_argument=yes
5170else
5171  xorg_cv_cc_flag_unused_command_line_argument=no
5172fi
5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5177	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5178	CFLAGS="$xorg_testset_save_CFLAGS"
5179fi
5180
5181found="no"
5182
5183	if test $found = "no" ; then
5184		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5185			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5186		fi
5187
5188		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5189			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5190		fi
5191
5192		CFLAGS="$CFLAGS -Wmissing-declarations"
5193
5194		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5195$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5196		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5197		if eval \${$cacheid+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201/* end confdefs.h.  */
5202int i;
5203int
5204main ()
5205{
5206
5207  ;
5208  return 0;
5209}
5210_ACEOF
5211if ac_fn_c_try_link "$LINENO"; then :
5212  eval $cacheid=yes
5213else
5214  eval $cacheid=no
5215fi
5216rm -f core conftest.err conftest.$ac_objext \
5217    conftest$ac_exeext conftest.$ac_ext
5218fi
5219
5220
5221		CFLAGS="$xorg_testset_save_CFLAGS"
5222
5223		eval supported=\$$cacheid
5224		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225$as_echo "$supported" >&6; }
5226		if test "$supported" = "yes" ; then
5227			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5228			found="yes"
5229		fi
5230	fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246xorg_testset_save_CFLAGS="$CFLAGS"
5247
5248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5253  $as_echo_n "(cached) " >&6
5254else
5255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256/* end confdefs.h.  */
5257int i;
5258_ACEOF
5259if ac_fn_c_try_compile "$LINENO"; then :
5260  xorg_cv_cc_flag_unknown_warning_option=yes
5261else
5262  xorg_cv_cc_flag_unknown_warning_option=no
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5269	CFLAGS="$xorg_testset_save_CFLAGS"
5270fi
5271
5272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275	fi
5276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5280  $as_echo_n "(cached) " >&6
5281else
5282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284int i;
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287  xorg_cv_cc_flag_unused_command_line_argument=yes
5288else
5289  xorg_cv_cc_flag_unused_command_line_argument=no
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5296	CFLAGS="$xorg_testset_save_CFLAGS"
5297fi
5298
5299found="no"
5300
5301	if test $found = "no" ; then
5302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304		fi
5305
5306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5308		fi
5309
5310		CFLAGS="$CFLAGS -Wformat=2"
5311
5312		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5313$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5314		cacheid=xorg_cv_cc_flag__Wformat_2
5315		if eval \${$cacheid+:} false; then :
5316  $as_echo_n "(cached) " >&6
5317else
5318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h.  */
5320int i;
5321int
5322main ()
5323{
5324
5325  ;
5326  return 0;
5327}
5328_ACEOF
5329if ac_fn_c_try_link "$LINENO"; then :
5330  eval $cacheid=yes
5331else
5332  eval $cacheid=no
5333fi
5334rm -f core conftest.err conftest.$ac_objext \
5335    conftest$ac_exeext conftest.$ac_ext
5336fi
5337
5338
5339		CFLAGS="$xorg_testset_save_CFLAGS"
5340
5341		eval supported=\$$cacheid
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5343$as_echo "$supported" >&6; }
5344		if test "$supported" = "yes" ; then
5345			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5346			found="yes"
5347		fi
5348	fi
5349
5350	if test $found = "no" ; then
5351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353		fi
5354
5355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5357		fi
5358
5359		CFLAGS="$CFLAGS -Wformat"
5360
5361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5362$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5363		cacheid=xorg_cv_cc_flag__Wformat
5364		if eval \${$cacheid+:} false; then :
5365  $as_echo_n "(cached) " >&6
5366else
5367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368/* end confdefs.h.  */
5369int i;
5370int
5371main ()
5372{
5373
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_link "$LINENO"; then :
5379  eval $cacheid=yes
5380else
5381  eval $cacheid=no
5382fi
5383rm -f core conftest.err conftest.$ac_objext \
5384    conftest$ac_exeext conftest.$ac_ext
5385fi
5386
5387
5388		CFLAGS="$xorg_testset_save_CFLAGS"
5389
5390		eval supported=\$$cacheid
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5392$as_echo "$supported" >&6; }
5393		if test "$supported" = "yes" ; then
5394			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5395			found="yes"
5396		fi
5397	fi
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415xorg_testset_save_CFLAGS="$CFLAGS"
5416
5417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h.  */
5426int i;
5427_ACEOF
5428if ac_fn_c_try_compile "$LINENO"; then :
5429  xorg_cv_cc_flag_unknown_warning_option=yes
5430else
5431  xorg_cv_cc_flag_unknown_warning_option=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434fi
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5438	CFLAGS="$xorg_testset_save_CFLAGS"
5439fi
5440
5441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444	fi
5445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453int i;
5454_ACEOF
5455if ac_fn_c_try_compile "$LINENO"; then :
5456  xorg_cv_cc_flag_unused_command_line_argument=yes
5457else
5458  xorg_cv_cc_flag_unused_command_line_argument=no
5459fi
5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461fi
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5465	CFLAGS="$xorg_testset_save_CFLAGS"
5466fi
5467
5468found="no"
5469
5470	if test $found = "no" ; then
5471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473		fi
5474
5475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5477		fi
5478
5479		CFLAGS="$CFLAGS -Wstrict-prototypes"
5480
5481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5482$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5483		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5484		if eval \${$cacheid+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488/* end confdefs.h.  */
5489int i;
5490int
5491main ()
5492{
5493
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_link "$LINENO"; then :
5499  eval $cacheid=yes
5500else
5501  eval $cacheid=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext \
5504    conftest$ac_exeext conftest.$ac_ext
5505fi
5506
5507
5508		CFLAGS="$xorg_testset_save_CFLAGS"
5509
5510		eval supported=\$$cacheid
5511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5512$as_echo "$supported" >&6; }
5513		if test "$supported" = "yes" ; then
5514			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5515			found="yes"
5516		fi
5517	fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533xorg_testset_save_CFLAGS="$CFLAGS"
5534
5535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5540  $as_echo_n "(cached) " >&6
5541else
5542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544int i;
5545_ACEOF
5546if ac_fn_c_try_compile "$LINENO"; then :
5547  xorg_cv_cc_flag_unknown_warning_option=yes
5548else
5549  xorg_cv_cc_flag_unknown_warning_option=no
5550fi
5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552fi
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5556	CFLAGS="$xorg_testset_save_CFLAGS"
5557fi
5558
5559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562	fi
5563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572_ACEOF
5573if ac_fn_c_try_compile "$LINENO"; then :
5574  xorg_cv_cc_flag_unused_command_line_argument=yes
5575else
5576  xorg_cv_cc_flag_unused_command_line_argument=no
5577fi
5578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579fi
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5583	CFLAGS="$xorg_testset_save_CFLAGS"
5584fi
5585
5586found="no"
5587
5588	if test $found = "no" ; then
5589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5591		fi
5592
5593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5595		fi
5596
5597		CFLAGS="$CFLAGS -Wmissing-prototypes"
5598
5599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5600$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5601		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5602		if eval \${$cacheid+:} false; then :
5603  $as_echo_n "(cached) " >&6
5604else
5605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606/* end confdefs.h.  */
5607int i;
5608int
5609main ()
5610{
5611
5612  ;
5613  return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_link "$LINENO"; then :
5617  eval $cacheid=yes
5618else
5619  eval $cacheid=no
5620fi
5621rm -f core conftest.err conftest.$ac_objext \
5622    conftest$ac_exeext conftest.$ac_ext
5623fi
5624
5625
5626		CFLAGS="$xorg_testset_save_CFLAGS"
5627
5628		eval supported=\$$cacheid
5629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5630$as_echo "$supported" >&6; }
5631		if test "$supported" = "yes" ; then
5632			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5633			found="yes"
5634		fi
5635	fi
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651xorg_testset_save_CFLAGS="$CFLAGS"
5652
5653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662int i;
5663_ACEOF
5664if ac_fn_c_try_compile "$LINENO"; then :
5665  xorg_cv_cc_flag_unknown_warning_option=yes
5666else
5667  xorg_cv_cc_flag_unknown_warning_option=no
5668fi
5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670fi
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5674	CFLAGS="$xorg_testset_save_CFLAGS"
5675fi
5676
5677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680	fi
5681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689int i;
5690_ACEOF
5691if ac_fn_c_try_compile "$LINENO"; then :
5692  xorg_cv_cc_flag_unused_command_line_argument=yes
5693else
5694  xorg_cv_cc_flag_unused_command_line_argument=no
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5701	CFLAGS="$xorg_testset_save_CFLAGS"
5702fi
5703
5704found="no"
5705
5706	if test $found = "no" ; then
5707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709		fi
5710
5711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5713		fi
5714
5715		CFLAGS="$CFLAGS -Wnested-externs"
5716
5717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5718$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5719		cacheid=xorg_cv_cc_flag__Wnested_externs
5720		if eval \${$cacheid+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724/* end confdefs.h.  */
5725int i;
5726int
5727main ()
5728{
5729
5730  ;
5731  return 0;
5732}
5733_ACEOF
5734if ac_fn_c_try_link "$LINENO"; then :
5735  eval $cacheid=yes
5736else
5737  eval $cacheid=no
5738fi
5739rm -f core conftest.err conftest.$ac_objext \
5740    conftest$ac_exeext conftest.$ac_ext
5741fi
5742
5743
5744		CFLAGS="$xorg_testset_save_CFLAGS"
5745
5746		eval supported=\$$cacheid
5747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5748$as_echo "$supported" >&6; }
5749		if test "$supported" = "yes" ; then
5750			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5751			found="yes"
5752		fi
5753	fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769xorg_testset_save_CFLAGS="$CFLAGS"
5770
5771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5776  $as_echo_n "(cached) " >&6
5777else
5778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h.  */
5780int i;
5781_ACEOF
5782if ac_fn_c_try_compile "$LINENO"; then :
5783  xorg_cv_cc_flag_unknown_warning_option=yes
5784else
5785  xorg_cv_cc_flag_unknown_warning_option=no
5786fi
5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5792	CFLAGS="$xorg_testset_save_CFLAGS"
5793fi
5794
5795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798	fi
5799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807int i;
5808_ACEOF
5809if ac_fn_c_try_compile "$LINENO"; then :
5810  xorg_cv_cc_flag_unused_command_line_argument=yes
5811else
5812  xorg_cv_cc_flag_unused_command_line_argument=no
5813fi
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815fi
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5819	CFLAGS="$xorg_testset_save_CFLAGS"
5820fi
5821
5822found="no"
5823
5824	if test $found = "no" ; then
5825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5827		fi
5828
5829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5831		fi
5832
5833		CFLAGS="$CFLAGS -Wbad-function-cast"
5834
5835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5836$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5837		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5838		if eval \${$cacheid+:} false; then :
5839  $as_echo_n "(cached) " >&6
5840else
5841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843int i;
5844int
5845main ()
5846{
5847
5848  ;
5849  return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_link "$LINENO"; then :
5853  eval $cacheid=yes
5854else
5855  eval $cacheid=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext \
5858    conftest$ac_exeext conftest.$ac_ext
5859fi
5860
5861
5862		CFLAGS="$xorg_testset_save_CFLAGS"
5863
5864		eval supported=\$$cacheid
5865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5866$as_echo "$supported" >&6; }
5867		if test "$supported" = "yes" ; then
5868			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5869			found="yes"
5870		fi
5871	fi
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887xorg_testset_save_CFLAGS="$CFLAGS"
5888
5889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898int i;
5899_ACEOF
5900if ac_fn_c_try_compile "$LINENO"; then :
5901  xorg_cv_cc_flag_unknown_warning_option=yes
5902else
5903  xorg_cv_cc_flag_unknown_warning_option=no
5904fi
5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906fi
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5910	CFLAGS="$xorg_testset_save_CFLAGS"
5911fi
5912
5913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916	fi
5917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"; then :
5928  xorg_cv_cc_flag_unused_command_line_argument=yes
5929else
5930  xorg_cv_cc_flag_unused_command_line_argument=no
5931fi
5932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933fi
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5937	CFLAGS="$xorg_testset_save_CFLAGS"
5938fi
5939
5940found="no"
5941
5942	if test $found = "no" ; then
5943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5945		fi
5946
5947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5949		fi
5950
5951		CFLAGS="$CFLAGS -Wold-style-definition"
5952
5953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5954$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5955		cacheid=xorg_cv_cc_flag__Wold_style_definition
5956		if eval \${$cacheid+:} false; then :
5957  $as_echo_n "(cached) " >&6
5958else
5959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h.  */
5961int i;
5962int
5963main ()
5964{
5965
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970if ac_fn_c_try_link "$LINENO"; then :
5971  eval $cacheid=yes
5972else
5973  eval $cacheid=no
5974fi
5975rm -f core conftest.err conftest.$ac_objext \
5976    conftest$ac_exeext conftest.$ac_ext
5977fi
5978
5979
5980		CFLAGS="$xorg_testset_save_CFLAGS"
5981
5982		eval supported=\$$cacheid
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984$as_echo "$supported" >&6; }
5985		if test "$supported" = "yes" ; then
5986			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5987			found="yes"
5988		fi
5989	fi
5990
5991	if test $found = "no" ; then
5992		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994		fi
5995
5996		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998		fi
5999
6000		CFLAGS="$CFLAGS -fd"
6001
6002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6003$as_echo_n "checking if $CC supports -fd... " >&6; }
6004		cacheid=xorg_cv_cc_flag__fd
6005		if eval \${$cacheid+:} false; then :
6006  $as_echo_n "(cached) " >&6
6007else
6008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011int
6012main ()
6013{
6014
6015  ;
6016  return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_link "$LINENO"; then :
6020  eval $cacheid=yes
6021else
6022  eval $cacheid=no
6023fi
6024rm -f core conftest.err conftest.$ac_objext \
6025    conftest$ac_exeext conftest.$ac_ext
6026fi
6027
6028
6029		CFLAGS="$xorg_testset_save_CFLAGS"
6030
6031		eval supported=\$$cacheid
6032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6033$as_echo "$supported" >&6; }
6034		if test "$supported" = "yes" ; then
6035			BASE_CFLAGS="$BASE_CFLAGS -fd"
6036			found="yes"
6037		fi
6038	fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054xorg_testset_save_CFLAGS="$CFLAGS"
6055
6056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6057	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6061  $as_echo_n "(cached) " >&6
6062else
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065int i;
6066_ACEOF
6067if ac_fn_c_try_compile "$LINENO"; then :
6068  xorg_cv_cc_flag_unknown_warning_option=yes
6069else
6070  xorg_cv_cc_flag_unknown_warning_option=no
6071fi
6072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073fi
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6076	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6077	CFLAGS="$xorg_testset_save_CFLAGS"
6078fi
6079
6080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6081	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6082		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083	fi
6084	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6088  $as_echo_n "(cached) " >&6
6089else
6090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091/* end confdefs.h.  */
6092int i;
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"; then :
6095  xorg_cv_cc_flag_unused_command_line_argument=yes
6096else
6097  xorg_cv_cc_flag_unused_command_line_argument=no
6098fi
6099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6103	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6104	CFLAGS="$xorg_testset_save_CFLAGS"
6105fi
6106
6107found="no"
6108
6109	if test $found = "no" ; then
6110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112		fi
6113
6114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116		fi
6117
6118		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6119
6120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6121$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6122		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6123		if eval \${$cacheid+:} false; then :
6124  $as_echo_n "(cached) " >&6
6125else
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128int i;
6129int
6130main ()
6131{
6132
6133  ;
6134  return 0;
6135}
6136_ACEOF
6137if ac_fn_c_try_link "$LINENO"; then :
6138  eval $cacheid=yes
6139else
6140  eval $cacheid=no
6141fi
6142rm -f core conftest.err conftest.$ac_objext \
6143    conftest$ac_exeext conftest.$ac_ext
6144fi
6145
6146
6147		CFLAGS="$xorg_testset_save_CFLAGS"
6148
6149		eval supported=\$$cacheid
6150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151$as_echo "$supported" >&6; }
6152		if test "$supported" = "yes" ; then
6153			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6154			found="yes"
6155		fi
6156	fi
6157
6158
6159
6160
6161
6162# This chunk adds additional warnings that could catch undesired effects.
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176xorg_testset_save_CFLAGS="$CFLAGS"
6177
6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6179	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6183  $as_echo_n "(cached) " >&6
6184else
6185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186/* end confdefs.h.  */
6187int i;
6188_ACEOF
6189if ac_fn_c_try_compile "$LINENO"; then :
6190  xorg_cv_cc_flag_unknown_warning_option=yes
6191else
6192  xorg_cv_cc_flag_unknown_warning_option=no
6193fi
6194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6198	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6199	CFLAGS="$xorg_testset_save_CFLAGS"
6200fi
6201
6202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6203	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6204		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205	fi
6206	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h.  */
6214int i;
6215_ACEOF
6216if ac_fn_c_try_compile "$LINENO"; then :
6217  xorg_cv_cc_flag_unused_command_line_argument=yes
6218else
6219  xorg_cv_cc_flag_unused_command_line_argument=no
6220fi
6221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6226	CFLAGS="$xorg_testset_save_CFLAGS"
6227fi
6228
6229found="no"
6230
6231	if test $found = "no" ; then
6232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6234		fi
6235
6236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6238		fi
6239
6240		CFLAGS="$CFLAGS -Wunused"
6241
6242		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6243$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6244		cacheid=xorg_cv_cc_flag__Wunused
6245		if eval \${$cacheid+:} false; then :
6246  $as_echo_n "(cached) " >&6
6247else
6248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250int i;
6251int
6252main ()
6253{
6254
6255  ;
6256  return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_link "$LINENO"; then :
6260  eval $cacheid=yes
6261else
6262  eval $cacheid=no
6263fi
6264rm -f core conftest.err conftest.$ac_objext \
6265    conftest$ac_exeext conftest.$ac_ext
6266fi
6267
6268
6269		CFLAGS="$xorg_testset_save_CFLAGS"
6270
6271		eval supported=\$$cacheid
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6273$as_echo "$supported" >&6; }
6274		if test "$supported" = "yes" ; then
6275			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6276			found="yes"
6277		fi
6278	fi
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294xorg_testset_save_CFLAGS="$CFLAGS"
6295
6296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6297	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6299$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6300if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6301  $as_echo_n "(cached) " >&6
6302else
6303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h.  */
6305int i;
6306_ACEOF
6307if ac_fn_c_try_compile "$LINENO"; then :
6308  xorg_cv_cc_flag_unknown_warning_option=yes
6309else
6310  xorg_cv_cc_flag_unknown_warning_option=no
6311fi
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6315$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6316	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6317	CFLAGS="$xorg_testset_save_CFLAGS"
6318fi
6319
6320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6321	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6322		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323	fi
6324	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6326$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6327if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6328  $as_echo_n "(cached) " >&6
6329else
6330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h.  */
6332int i;
6333_ACEOF
6334if ac_fn_c_try_compile "$LINENO"; then :
6335  xorg_cv_cc_flag_unused_command_line_argument=yes
6336else
6337  xorg_cv_cc_flag_unused_command_line_argument=no
6338fi
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6342$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6343	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6344	CFLAGS="$xorg_testset_save_CFLAGS"
6345fi
6346
6347found="no"
6348
6349	if test $found = "no" ; then
6350		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6351			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6352		fi
6353
6354		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6355			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6356		fi
6357
6358		CFLAGS="$CFLAGS -Wuninitialized"
6359
6360		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6361$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6362		cacheid=xorg_cv_cc_flag__Wuninitialized
6363		if eval \${$cacheid+:} false; then :
6364  $as_echo_n "(cached) " >&6
6365else
6366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367/* end confdefs.h.  */
6368int i;
6369int
6370main ()
6371{
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377if ac_fn_c_try_link "$LINENO"; then :
6378  eval $cacheid=yes
6379else
6380  eval $cacheid=no
6381fi
6382rm -f core conftest.err conftest.$ac_objext \
6383    conftest$ac_exeext conftest.$ac_ext
6384fi
6385
6386
6387		CFLAGS="$xorg_testset_save_CFLAGS"
6388
6389		eval supported=\$$cacheid
6390		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6391$as_echo "$supported" >&6; }
6392		if test "$supported" = "yes" ; then
6393			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6394			found="yes"
6395		fi
6396	fi
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412xorg_testset_save_CFLAGS="$CFLAGS"
6413
6414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6415	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6417$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6418if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6419  $as_echo_n "(cached) " >&6
6420else
6421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422/* end confdefs.h.  */
6423int i;
6424_ACEOF
6425if ac_fn_c_try_compile "$LINENO"; then :
6426  xorg_cv_cc_flag_unknown_warning_option=yes
6427else
6428  xorg_cv_cc_flag_unknown_warning_option=no
6429fi
6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431fi
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6433$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6434	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6435	CFLAGS="$xorg_testset_save_CFLAGS"
6436fi
6437
6438if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6439	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6440		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441	fi
6442	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6444$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6445if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h.  */
6450int i;
6451_ACEOF
6452if ac_fn_c_try_compile "$LINENO"; then :
6453  xorg_cv_cc_flag_unused_command_line_argument=yes
6454else
6455  xorg_cv_cc_flag_unused_command_line_argument=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6460$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6461	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6462	CFLAGS="$xorg_testset_save_CFLAGS"
6463fi
6464
6465found="no"
6466
6467	if test $found = "no" ; then
6468		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470		fi
6471
6472		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6474		fi
6475
6476		CFLAGS="$CFLAGS -Wshadow"
6477
6478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6479$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6480		cacheid=xorg_cv_cc_flag__Wshadow
6481		if eval \${$cacheid+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486int i;
6487int
6488main ()
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495if ac_fn_c_try_link "$LINENO"; then :
6496  eval $cacheid=yes
6497else
6498  eval $cacheid=no
6499fi
6500rm -f core conftest.err conftest.$ac_objext \
6501    conftest$ac_exeext conftest.$ac_ext
6502fi
6503
6504
6505		CFLAGS="$xorg_testset_save_CFLAGS"
6506
6507		eval supported=\$$cacheid
6508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6509$as_echo "$supported" >&6; }
6510		if test "$supported" = "yes" ; then
6511			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6512			found="yes"
6513		fi
6514	fi
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530xorg_testset_save_CFLAGS="$CFLAGS"
6531
6532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6533	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6535$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6536if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6537  $as_echo_n "(cached) " >&6
6538else
6539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h.  */
6541int i;
6542_ACEOF
6543if ac_fn_c_try_compile "$LINENO"; then :
6544  xorg_cv_cc_flag_unknown_warning_option=yes
6545else
6546  xorg_cv_cc_flag_unknown_warning_option=no
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6551$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6552	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6553	CFLAGS="$xorg_testset_save_CFLAGS"
6554fi
6555
6556if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6557	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6558		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559	fi
6560	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6562$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6563if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567/* end confdefs.h.  */
6568int i;
6569_ACEOF
6570if ac_fn_c_try_compile "$LINENO"; then :
6571  xorg_cv_cc_flag_unused_command_line_argument=yes
6572else
6573  xorg_cv_cc_flag_unused_command_line_argument=no
6574fi
6575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576fi
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6578$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6579	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6580	CFLAGS="$xorg_testset_save_CFLAGS"
6581fi
6582
6583found="no"
6584
6585	if test $found = "no" ; then
6586		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6587			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588		fi
6589
6590		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6591			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592		fi
6593
6594		CFLAGS="$CFLAGS -Wmissing-noreturn"
6595
6596		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6597$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6598		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6599		if eval \${$cacheid+:} false; then :
6600  $as_echo_n "(cached) " >&6
6601else
6602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h.  */
6604int i;
6605int
6606main ()
6607{
6608
6609  ;
6610  return 0;
6611}
6612_ACEOF
6613if ac_fn_c_try_link "$LINENO"; then :
6614  eval $cacheid=yes
6615else
6616  eval $cacheid=no
6617fi
6618rm -f core conftest.err conftest.$ac_objext \
6619    conftest$ac_exeext conftest.$ac_ext
6620fi
6621
6622
6623		CFLAGS="$xorg_testset_save_CFLAGS"
6624
6625		eval supported=\$$cacheid
6626		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6627$as_echo "$supported" >&6; }
6628		if test "$supported" = "yes" ; then
6629			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6630			found="yes"
6631		fi
6632	fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648xorg_testset_save_CFLAGS="$CFLAGS"
6649
6650if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6651	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6653$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6654if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6655  $as_echo_n "(cached) " >&6
6656else
6657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h.  */
6659int i;
6660_ACEOF
6661if ac_fn_c_try_compile "$LINENO"; then :
6662  xorg_cv_cc_flag_unknown_warning_option=yes
6663else
6664  xorg_cv_cc_flag_unknown_warning_option=no
6665fi
6666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6669$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6670	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6671	CFLAGS="$xorg_testset_save_CFLAGS"
6672fi
6673
6674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6675	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6676		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677	fi
6678	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6680$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6681if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6682  $as_echo_n "(cached) " >&6
6683else
6684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685/* end confdefs.h.  */
6686int i;
6687_ACEOF
6688if ac_fn_c_try_compile "$LINENO"; then :
6689  xorg_cv_cc_flag_unused_command_line_argument=yes
6690else
6691  xorg_cv_cc_flag_unused_command_line_argument=no
6692fi
6693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694fi
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6696$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6697	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6698	CFLAGS="$xorg_testset_save_CFLAGS"
6699fi
6700
6701found="no"
6702
6703	if test $found = "no" ; then
6704		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706		fi
6707
6708		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6709			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710		fi
6711
6712		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6713
6714		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6715$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6716		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6717		if eval \${$cacheid+:} false; then :
6718  $as_echo_n "(cached) " >&6
6719else
6720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h.  */
6722int i;
6723int
6724main ()
6725{
6726
6727  ;
6728  return 0;
6729}
6730_ACEOF
6731if ac_fn_c_try_link "$LINENO"; then :
6732  eval $cacheid=yes
6733else
6734  eval $cacheid=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext \
6737    conftest$ac_exeext conftest.$ac_ext
6738fi
6739
6740
6741		CFLAGS="$xorg_testset_save_CFLAGS"
6742
6743		eval supported=\$$cacheid
6744		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6745$as_echo "$supported" >&6; }
6746		if test "$supported" = "yes" ; then
6747			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6748			found="yes"
6749		fi
6750	fi
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6773  $as_echo_n "(cached) " >&6
6774else
6775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777int i;
6778_ACEOF
6779if ac_fn_c_try_compile "$LINENO"; then :
6780  xorg_cv_cc_flag_unknown_warning_option=yes
6781else
6782  xorg_cv_cc_flag_unknown_warning_option=no
6783fi
6784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785fi
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6789	CFLAGS="$xorg_testset_save_CFLAGS"
6790fi
6791
6792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795	fi
6796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6800  $as_echo_n "(cached) " >&6
6801else
6802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803/* end confdefs.h.  */
6804int i;
6805_ACEOF
6806if ac_fn_c_try_compile "$LINENO"; then :
6807  xorg_cv_cc_flag_unused_command_line_argument=yes
6808else
6809  xorg_cv_cc_flag_unused_command_line_argument=no
6810fi
6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6816	CFLAGS="$xorg_testset_save_CFLAGS"
6817fi
6818
6819found="no"
6820
6821	if test $found = "no" ; then
6822		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824		fi
6825
6826		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828		fi
6829
6830		CFLAGS="$CFLAGS -Wredundant-decls"
6831
6832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6833$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6834		cacheid=xorg_cv_cc_flag__Wredundant_decls
6835		if eval \${$cacheid+:} false; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840int i;
6841int
6842main ()
6843{
6844
6845  ;
6846  return 0;
6847}
6848_ACEOF
6849if ac_fn_c_try_link "$LINENO"; then :
6850  eval $cacheid=yes
6851else
6852  eval $cacheid=no
6853fi
6854rm -f core conftest.err conftest.$ac_objext \
6855    conftest$ac_exeext conftest.$ac_ext
6856fi
6857
6858
6859		CFLAGS="$xorg_testset_save_CFLAGS"
6860
6861		eval supported=\$$cacheid
6862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6863$as_echo "$supported" >&6; }
6864		if test "$supported" = "yes" ; then
6865			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6866			found="yes"
6867		fi
6868	fi
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884xorg_testset_save_CFLAGS="$CFLAGS"
6885
6886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6891  $as_echo_n "(cached) " >&6
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895int i;
6896_ACEOF
6897if ac_fn_c_try_compile "$LINENO"; then :
6898  xorg_cv_cc_flag_unknown_warning_option=yes
6899else
6900  xorg_cv_cc_flag_unknown_warning_option=no
6901fi
6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903fi
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6907	CFLAGS="$xorg_testset_save_CFLAGS"
6908fi
6909
6910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6913	fi
6914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6918  $as_echo_n "(cached) " >&6
6919else
6920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923_ACEOF
6924if ac_fn_c_try_compile "$LINENO"; then :
6925  xorg_cv_cc_flag_unused_command_line_argument=yes
6926else
6927  xorg_cv_cc_flag_unused_command_line_argument=no
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6934	CFLAGS="$xorg_testset_save_CFLAGS"
6935fi
6936
6937found="no"
6938
6939	if test $found = "no" ; then
6940		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942		fi
6943
6944		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6946		fi
6947
6948		CFLAGS="$CFLAGS -Wlogical-op"
6949
6950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6951$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6952		cacheid=xorg_cv_cc_flag__Wlogical_op
6953		if eval \${$cacheid+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h.  */
6958int i;
6959int
6960main ()
6961{
6962
6963  ;
6964  return 0;
6965}
6966_ACEOF
6967if ac_fn_c_try_link "$LINENO"; then :
6968  eval $cacheid=yes
6969else
6970  eval $cacheid=no
6971fi
6972rm -f core conftest.err conftest.$ac_objext \
6973    conftest$ac_exeext conftest.$ac_ext
6974fi
6975
6976
6977		CFLAGS="$xorg_testset_save_CFLAGS"
6978
6979		eval supported=\$$cacheid
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6981$as_echo "$supported" >&6; }
6982		if test "$supported" = "yes" ; then
6983			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6984			found="yes"
6985		fi
6986	fi
6987
6988
6989
6990# These are currently disabled because they are noisy.  They will be enabled
6991# in the future once the codebase is sufficiently modernized to silence
6992# them.  For now, I don't want them to drown out the other warnings.
6993# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6994# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6995# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6996
6997# Turn some warnings into errors, so we don't accidently get successful builds
6998# when there are problems that should be fixed.
6999
7000if test "x$SELECTIVE_WERROR" = "xyes" ; then
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014xorg_testset_save_CFLAGS="$CFLAGS"
7015
7016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7017	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7019$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7020if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7021  $as_echo_n "(cached) " >&6
7022else
7023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024/* end confdefs.h.  */
7025int i;
7026_ACEOF
7027if ac_fn_c_try_compile "$LINENO"; then :
7028  xorg_cv_cc_flag_unknown_warning_option=yes
7029else
7030  xorg_cv_cc_flag_unknown_warning_option=no
7031fi
7032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033fi
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7035$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7037	CFLAGS="$xorg_testset_save_CFLAGS"
7038fi
7039
7040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043	fi
7044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7046$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7047if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053_ACEOF
7054if ac_fn_c_try_compile "$LINENO"; then :
7055  xorg_cv_cc_flag_unused_command_line_argument=yes
7056else
7057  xorg_cv_cc_flag_unused_command_line_argument=no
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7062$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7063	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7064	CFLAGS="$xorg_testset_save_CFLAGS"
7065fi
7066
7067found="no"
7068
7069	if test $found = "no" ; then
7070		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7071			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072		fi
7073
7074		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7075			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7076		fi
7077
7078		CFLAGS="$CFLAGS -Werror=implicit"
7079
7080		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7081$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7082		cacheid=xorg_cv_cc_flag__Werror_implicit
7083		if eval \${$cacheid+:} false; then :
7084  $as_echo_n "(cached) " >&6
7085else
7086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087/* end confdefs.h.  */
7088int i;
7089int
7090main ()
7091{
7092
7093  ;
7094  return 0;
7095}
7096_ACEOF
7097if ac_fn_c_try_link "$LINENO"; then :
7098  eval $cacheid=yes
7099else
7100  eval $cacheid=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext \
7103    conftest$ac_exeext conftest.$ac_ext
7104fi
7105
7106
7107		CFLAGS="$xorg_testset_save_CFLAGS"
7108
7109		eval supported=\$$cacheid
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7111$as_echo "$supported" >&6; }
7112		if test "$supported" = "yes" ; then
7113			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7114			found="yes"
7115		fi
7116	fi
7117
7118	if test $found = "no" ; then
7119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121		fi
7122
7123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7125		fi
7126
7127		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7128
7129		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7130$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7131		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7132		if eval \${$cacheid+:} false; then :
7133  $as_echo_n "(cached) " >&6
7134else
7135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136/* end confdefs.h.  */
7137int i;
7138int
7139main ()
7140{
7141
7142  ;
7143  return 0;
7144}
7145_ACEOF
7146if ac_fn_c_try_link "$LINENO"; then :
7147  eval $cacheid=yes
7148else
7149  eval $cacheid=no
7150fi
7151rm -f core conftest.err conftest.$ac_objext \
7152    conftest$ac_exeext conftest.$ac_ext
7153fi
7154
7155
7156		CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158		eval supported=\$$cacheid
7159		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160$as_echo "$supported" >&6; }
7161		if test "$supported" = "yes" ; then
7162			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7163			found="yes"
7164		fi
7165	fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181xorg_testset_save_CFLAGS="$CFLAGS"
7182
7183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7184	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7186$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7187if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191/* end confdefs.h.  */
7192int i;
7193_ACEOF
7194if ac_fn_c_try_compile "$LINENO"; then :
7195  xorg_cv_cc_flag_unknown_warning_option=yes
7196else
7197  xorg_cv_cc_flag_unknown_warning_option=no
7198fi
7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200fi
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7202$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7203	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7204	CFLAGS="$xorg_testset_save_CFLAGS"
7205fi
7206
7207if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7208	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7209		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210	fi
7211	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7212	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7213$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7214if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h.  */
7219int i;
7220_ACEOF
7221if ac_fn_c_try_compile "$LINENO"; then :
7222  xorg_cv_cc_flag_unused_command_line_argument=yes
7223else
7224  xorg_cv_cc_flag_unused_command_line_argument=no
7225fi
7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7229$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7230	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7231	CFLAGS="$xorg_testset_save_CFLAGS"
7232fi
7233
7234found="no"
7235
7236	if test $found = "no" ; then
7237		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7238			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7239		fi
7240
7241		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7242			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7243		fi
7244
7245		CFLAGS="$CFLAGS -Werror=nonnull"
7246
7247		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7248$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7249		cacheid=xorg_cv_cc_flag__Werror_nonnull
7250		if eval \${$cacheid+:} false; then :
7251  $as_echo_n "(cached) " >&6
7252else
7253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254/* end confdefs.h.  */
7255int i;
7256int
7257main ()
7258{
7259
7260  ;
7261  return 0;
7262}
7263_ACEOF
7264if ac_fn_c_try_link "$LINENO"; then :
7265  eval $cacheid=yes
7266else
7267  eval $cacheid=no
7268fi
7269rm -f core conftest.err conftest.$ac_objext \
7270    conftest$ac_exeext conftest.$ac_ext
7271fi
7272
7273
7274		CFLAGS="$xorg_testset_save_CFLAGS"
7275
7276		eval supported=\$$cacheid
7277		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7278$as_echo "$supported" >&6; }
7279		if test "$supported" = "yes" ; then
7280			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7281			found="yes"
7282		fi
7283	fi
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299xorg_testset_save_CFLAGS="$CFLAGS"
7300
7301if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7302	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7303	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7304$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7305if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309/* end confdefs.h.  */
7310int i;
7311_ACEOF
7312if ac_fn_c_try_compile "$LINENO"; then :
7313  xorg_cv_cc_flag_unknown_warning_option=yes
7314else
7315  xorg_cv_cc_flag_unknown_warning_option=no
7316fi
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318fi
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7320$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7322	CFLAGS="$xorg_testset_save_CFLAGS"
7323fi
7324
7325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328	fi
7329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7330	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7331$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7332if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7333  $as_echo_n "(cached) " >&6
7334else
7335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336/* end confdefs.h.  */
7337int i;
7338_ACEOF
7339if ac_fn_c_try_compile "$LINENO"; then :
7340  xorg_cv_cc_flag_unused_command_line_argument=yes
7341else
7342  xorg_cv_cc_flag_unused_command_line_argument=no
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345fi
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7347$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7349	CFLAGS="$xorg_testset_save_CFLAGS"
7350fi
7351
7352found="no"
7353
7354	if test $found = "no" ; then
7355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357		fi
7358
7359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7361		fi
7362
7363		CFLAGS="$CFLAGS -Werror=init-self"
7364
7365		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7366$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7367		cacheid=xorg_cv_cc_flag__Werror_init_self
7368		if eval \${$cacheid+:} false; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373int i;
7374int
7375main ()
7376{
7377
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382if ac_fn_c_try_link "$LINENO"; then :
7383  eval $cacheid=yes
7384else
7385  eval $cacheid=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext \
7388    conftest$ac_exeext conftest.$ac_ext
7389fi
7390
7391
7392		CFLAGS="$xorg_testset_save_CFLAGS"
7393
7394		eval supported=\$$cacheid
7395		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7396$as_echo "$supported" >&6; }
7397		if test "$supported" = "yes" ; then
7398			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7399			found="yes"
7400		fi
7401	fi
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417xorg_testset_save_CFLAGS="$CFLAGS"
7418
7419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7420	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7421	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7422$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7423if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h.  */
7428int i;
7429_ACEOF
7430if ac_fn_c_try_compile "$LINENO"; then :
7431  xorg_cv_cc_flag_unknown_warning_option=yes
7432else
7433  xorg_cv_cc_flag_unknown_warning_option=no
7434fi
7435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7438$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7439	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7440	CFLAGS="$xorg_testset_save_CFLAGS"
7441fi
7442
7443if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7444	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7445		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446	fi
7447	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7449$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7450if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7451  $as_echo_n "(cached) " >&6
7452else
7453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h.  */
7455int i;
7456_ACEOF
7457if ac_fn_c_try_compile "$LINENO"; then :
7458  xorg_cv_cc_flag_unused_command_line_argument=yes
7459else
7460  xorg_cv_cc_flag_unused_command_line_argument=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463fi
7464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7465$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7467	CFLAGS="$xorg_testset_save_CFLAGS"
7468fi
7469
7470found="no"
7471
7472	if test $found = "no" ; then
7473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7475		fi
7476
7477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7479		fi
7480
7481		CFLAGS="$CFLAGS -Werror=main"
7482
7483		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7484$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7485		cacheid=xorg_cv_cc_flag__Werror_main
7486		if eval \${$cacheid+:} false; then :
7487  $as_echo_n "(cached) " >&6
7488else
7489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h.  */
7491int i;
7492int
7493main ()
7494{
7495
7496  ;
7497  return 0;
7498}
7499_ACEOF
7500if ac_fn_c_try_link "$LINENO"; then :
7501  eval $cacheid=yes
7502else
7503  eval $cacheid=no
7504fi
7505rm -f core conftest.err conftest.$ac_objext \
7506    conftest$ac_exeext conftest.$ac_ext
7507fi
7508
7509
7510		CFLAGS="$xorg_testset_save_CFLAGS"
7511
7512		eval supported=\$$cacheid
7513		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7514$as_echo "$supported" >&6; }
7515		if test "$supported" = "yes" ; then
7516			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7517			found="yes"
7518		fi
7519	fi
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535xorg_testset_save_CFLAGS="$CFLAGS"
7536
7537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7538	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7540$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7541if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546int i;
7547_ACEOF
7548if ac_fn_c_try_compile "$LINENO"; then :
7549  xorg_cv_cc_flag_unknown_warning_option=yes
7550else
7551  xorg_cv_cc_flag_unknown_warning_option=no
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554fi
7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7556$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7558	CFLAGS="$xorg_testset_save_CFLAGS"
7559fi
7560
7561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564	fi
7565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7567$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7568if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h.  */
7573int i;
7574_ACEOF
7575if ac_fn_c_try_compile "$LINENO"; then :
7576  xorg_cv_cc_flag_unused_command_line_argument=yes
7577else
7578  xorg_cv_cc_flag_unused_command_line_argument=no
7579fi
7580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581fi
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7583$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7584	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7585	CFLAGS="$xorg_testset_save_CFLAGS"
7586fi
7587
7588found="no"
7589
7590	if test $found = "no" ; then
7591		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593		fi
7594
7595		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7596			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7597		fi
7598
7599		CFLAGS="$CFLAGS -Werror=missing-braces"
7600
7601		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7602$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7603		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7604		if eval \${$cacheid+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h.  */
7609int i;
7610int
7611main ()
7612{
7613
7614  ;
7615  return 0;
7616}
7617_ACEOF
7618if ac_fn_c_try_link "$LINENO"; then :
7619  eval $cacheid=yes
7620else
7621  eval $cacheid=no
7622fi
7623rm -f core conftest.err conftest.$ac_objext \
7624    conftest$ac_exeext conftest.$ac_ext
7625fi
7626
7627
7628		CFLAGS="$xorg_testset_save_CFLAGS"
7629
7630		eval supported=\$$cacheid
7631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7632$as_echo "$supported" >&6; }
7633		if test "$supported" = "yes" ; then
7634			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7635			found="yes"
7636		fi
7637	fi
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653xorg_testset_save_CFLAGS="$CFLAGS"
7654
7655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7658$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7659if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7660  $as_echo_n "(cached) " >&6
7661else
7662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h.  */
7664int i;
7665_ACEOF
7666if ac_fn_c_try_compile "$LINENO"; then :
7667  xorg_cv_cc_flag_unknown_warning_option=yes
7668else
7669  xorg_cv_cc_flag_unknown_warning_option=no
7670fi
7671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7674$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7675	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7676	CFLAGS="$xorg_testset_save_CFLAGS"
7677fi
7678
7679if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7680	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7681		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	fi
7683	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7685$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7686if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691int i;
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"; then :
7694  xorg_cv_cc_flag_unused_command_line_argument=yes
7695else
7696  xorg_cv_cc_flag_unused_command_line_argument=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7701$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706found="no"
7707
7708	if test $found = "no" ; then
7709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7711		fi
7712
7713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7715		fi
7716
7717		CFLAGS="$CFLAGS -Werror=sequence-point"
7718
7719		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7720$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7721		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7722		if eval \${$cacheid+:} false; then :
7723  $as_echo_n "(cached) " >&6
7724else
7725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727int i;
7728int
7729main ()
7730{
7731
7732  ;
7733  return 0;
7734}
7735_ACEOF
7736if ac_fn_c_try_link "$LINENO"; then :
7737  eval $cacheid=yes
7738else
7739  eval $cacheid=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext \
7742    conftest$ac_exeext conftest.$ac_ext
7743fi
7744
7745
7746		CFLAGS="$xorg_testset_save_CFLAGS"
7747
7748		eval supported=\$$cacheid
7749		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7750$as_echo "$supported" >&6; }
7751		if test "$supported" = "yes" ; then
7752			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7753			found="yes"
7754		fi
7755	fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771xorg_testset_save_CFLAGS="$CFLAGS"
7772
7773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7776$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7777if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7778  $as_echo_n "(cached) " >&6
7779else
7780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781/* end confdefs.h.  */
7782int i;
7783_ACEOF
7784if ac_fn_c_try_compile "$LINENO"; then :
7785  xorg_cv_cc_flag_unknown_warning_option=yes
7786else
7787  xorg_cv_cc_flag_unknown_warning_option=no
7788fi
7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790fi
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7792$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7793	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7794	CFLAGS="$xorg_testset_save_CFLAGS"
7795fi
7796
7797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7798	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	fi
7801	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7803$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7804if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810_ACEOF
7811if ac_fn_c_try_compile "$LINENO"; then :
7812  xorg_cv_cc_flag_unused_command_line_argument=yes
7813else
7814  xorg_cv_cc_flag_unused_command_line_argument=no
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7819$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7820	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7821	CFLAGS="$xorg_testset_save_CFLAGS"
7822fi
7823
7824found="no"
7825
7826	if test $found = "no" ; then
7827		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7828			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7829		fi
7830
7831		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7832			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7833		fi
7834
7835		CFLAGS="$CFLAGS -Werror=return-type"
7836
7837		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7838$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7839		cacheid=xorg_cv_cc_flag__Werror_return_type
7840		if eval \${$cacheid+:} false; then :
7841  $as_echo_n "(cached) " >&6
7842else
7843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h.  */
7845int i;
7846int
7847main ()
7848{
7849
7850  ;
7851  return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_link "$LINENO"; then :
7855  eval $cacheid=yes
7856else
7857  eval $cacheid=no
7858fi
7859rm -f core conftest.err conftest.$ac_objext \
7860    conftest$ac_exeext conftest.$ac_ext
7861fi
7862
7863
7864		CFLAGS="$xorg_testset_save_CFLAGS"
7865
7866		eval supported=\$$cacheid
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7868$as_echo "$supported" >&6; }
7869		if test "$supported" = "yes" ; then
7870			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7871			found="yes"
7872		fi
7873	fi
7874
7875	if test $found = "no" ; then
7876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7878		fi
7879
7880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7882		fi
7883
7884		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7885
7886		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7887$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7888		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7889		if eval \${$cacheid+:} false; then :
7890  $as_echo_n "(cached) " >&6
7891else
7892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893/* end confdefs.h.  */
7894int i;
7895int
7896main ()
7897{
7898
7899  ;
7900  return 0;
7901}
7902_ACEOF
7903if ac_fn_c_try_link "$LINENO"; then :
7904  eval $cacheid=yes
7905else
7906  eval $cacheid=no
7907fi
7908rm -f core conftest.err conftest.$ac_objext \
7909    conftest$ac_exeext conftest.$ac_ext
7910fi
7911
7912
7913		CFLAGS="$xorg_testset_save_CFLAGS"
7914
7915		eval supported=\$$cacheid
7916		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7917$as_echo "$supported" >&6; }
7918		if test "$supported" = "yes" ; then
7919			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7920			found="yes"
7921		fi
7922	fi
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938xorg_testset_save_CFLAGS="$CFLAGS"
7939
7940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7941	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7945  $as_echo_n "(cached) " >&6
7946else
7947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948/* end confdefs.h.  */
7949int i;
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"; then :
7952  xorg_cv_cc_flag_unknown_warning_option=yes
7953else
7954  xorg_cv_cc_flag_unknown_warning_option=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7960	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7961	CFLAGS="$xorg_testset_save_CFLAGS"
7962fi
7963
7964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7965	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7966		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967	fi
7968	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7969	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975/* end confdefs.h.  */
7976int i;
7977_ACEOF
7978if ac_fn_c_try_compile "$LINENO"; then :
7979  xorg_cv_cc_flag_unused_command_line_argument=yes
7980else
7981  xorg_cv_cc_flag_unused_command_line_argument=no
7982fi
7983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7987	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7988	CFLAGS="$xorg_testset_save_CFLAGS"
7989fi
7990
7991found="no"
7992
7993	if test $found = "no" ; then
7994		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996		fi
7997
7998		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7999			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8000		fi
8001
8002		CFLAGS="$CFLAGS -Werror=trigraphs"
8003
8004		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8005$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8006		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8007		if eval \${$cacheid+:} false; then :
8008  $as_echo_n "(cached) " >&6
8009else
8010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011/* end confdefs.h.  */
8012int i;
8013int
8014main ()
8015{
8016
8017  ;
8018  return 0;
8019}
8020_ACEOF
8021if ac_fn_c_try_link "$LINENO"; then :
8022  eval $cacheid=yes
8023else
8024  eval $cacheid=no
8025fi
8026rm -f core conftest.err conftest.$ac_objext \
8027    conftest$ac_exeext conftest.$ac_ext
8028fi
8029
8030
8031		CFLAGS="$xorg_testset_save_CFLAGS"
8032
8033		eval supported=\$$cacheid
8034		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8035$as_echo "$supported" >&6; }
8036		if test "$supported" = "yes" ; then
8037			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8038			found="yes"
8039		fi
8040	fi
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056xorg_testset_save_CFLAGS="$CFLAGS"
8057
8058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8059	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066/* end confdefs.h.  */
8067int i;
8068_ACEOF
8069if ac_fn_c_try_compile "$LINENO"; then :
8070  xorg_cv_cc_flag_unknown_warning_option=yes
8071else
8072  xorg_cv_cc_flag_unknown_warning_option=no
8073fi
8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075fi
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8078	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8079	CFLAGS="$xorg_testset_save_CFLAGS"
8080fi
8081
8082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8083	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8084		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085	fi
8086	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8087	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093/* end confdefs.h.  */
8094int i;
8095_ACEOF
8096if ac_fn_c_try_compile "$LINENO"; then :
8097  xorg_cv_cc_flag_unused_command_line_argument=yes
8098else
8099  xorg_cv_cc_flag_unused_command_line_argument=no
8100fi
8101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102fi
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8105	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8106	CFLAGS="$xorg_testset_save_CFLAGS"
8107fi
8108
8109found="no"
8110
8111	if test $found = "no" ; then
8112		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8113			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8114		fi
8115
8116		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8117			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118		fi
8119
8120		CFLAGS="$CFLAGS -Werror=array-bounds"
8121
8122		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8123$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8124		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8125		if eval \${$cacheid+:} false; then :
8126  $as_echo_n "(cached) " >&6
8127else
8128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h.  */
8130int i;
8131int
8132main ()
8133{
8134
8135  ;
8136  return 0;
8137}
8138_ACEOF
8139if ac_fn_c_try_link "$LINENO"; then :
8140  eval $cacheid=yes
8141else
8142  eval $cacheid=no
8143fi
8144rm -f core conftest.err conftest.$ac_objext \
8145    conftest$ac_exeext conftest.$ac_ext
8146fi
8147
8148
8149		CFLAGS="$xorg_testset_save_CFLAGS"
8150
8151		eval supported=\$$cacheid
8152		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8153$as_echo "$supported" >&6; }
8154		if test "$supported" = "yes" ; then
8155			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8156			found="yes"
8157		fi
8158	fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174xorg_testset_save_CFLAGS="$CFLAGS"
8175
8176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8177	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8181  $as_echo_n "(cached) " >&6
8182else
8183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184/* end confdefs.h.  */
8185int i;
8186_ACEOF
8187if ac_fn_c_try_compile "$LINENO"; then :
8188  xorg_cv_cc_flag_unknown_warning_option=yes
8189else
8190  xorg_cv_cc_flag_unknown_warning_option=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193fi
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8197	CFLAGS="$xorg_testset_save_CFLAGS"
8198fi
8199
8200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	fi
8204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8208  $as_echo_n "(cached) " >&6
8209else
8210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211/* end confdefs.h.  */
8212int i;
8213_ACEOF
8214if ac_fn_c_try_compile "$LINENO"; then :
8215  xorg_cv_cc_flag_unused_command_line_argument=yes
8216else
8217  xorg_cv_cc_flag_unused_command_line_argument=no
8218fi
8219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220fi
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8224	CFLAGS="$xorg_testset_save_CFLAGS"
8225fi
8226
8227found="no"
8228
8229	if test $found = "no" ; then
8230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8232		fi
8233
8234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8236		fi
8237
8238		CFLAGS="$CFLAGS -Werror=write-strings"
8239
8240		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8241$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8242		cacheid=xorg_cv_cc_flag__Werror_write_strings
8243		if eval \${$cacheid+:} false; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248int i;
8249int
8250main ()
8251{
8252
8253  ;
8254  return 0;
8255}
8256_ACEOF
8257if ac_fn_c_try_link "$LINENO"; then :
8258  eval $cacheid=yes
8259else
8260  eval $cacheid=no
8261fi
8262rm -f core conftest.err conftest.$ac_objext \
8263    conftest$ac_exeext conftest.$ac_ext
8264fi
8265
8266
8267		CFLAGS="$xorg_testset_save_CFLAGS"
8268
8269		eval supported=\$$cacheid
8270		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8271$as_echo "$supported" >&6; }
8272		if test "$supported" = "yes" ; then
8273			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8274			found="yes"
8275		fi
8276	fi
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292xorg_testset_save_CFLAGS="$CFLAGS"
8293
8294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302/* end confdefs.h.  */
8303int i;
8304_ACEOF
8305if ac_fn_c_try_compile "$LINENO"; then :
8306  xorg_cv_cc_flag_unknown_warning_option=yes
8307else
8308  xorg_cv_cc_flag_unknown_warning_option=no
8309fi
8310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311fi
8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8314	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8315	CFLAGS="$xorg_testset_save_CFLAGS"
8316fi
8317
8318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8319	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321	fi
8322	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h.  */
8330int i;
8331_ACEOF
8332if ac_fn_c_try_compile "$LINENO"; then :
8333  xorg_cv_cc_flag_unused_command_line_argument=yes
8334else
8335  xorg_cv_cc_flag_unused_command_line_argument=no
8336fi
8337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338fi
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8342	CFLAGS="$xorg_testset_save_CFLAGS"
8343fi
8344
8345found="no"
8346
8347	if test $found = "no" ; then
8348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8350		fi
8351
8352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8354		fi
8355
8356		CFLAGS="$CFLAGS -Werror=address"
8357
8358		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8359$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8360		cacheid=xorg_cv_cc_flag__Werror_address
8361		if eval \${$cacheid+:} false; then :
8362  $as_echo_n "(cached) " >&6
8363else
8364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365/* end confdefs.h.  */
8366int i;
8367int
8368main ()
8369{
8370
8371  ;
8372  return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_link "$LINENO"; then :
8376  eval $cacheid=yes
8377else
8378  eval $cacheid=no
8379fi
8380rm -f core conftest.err conftest.$ac_objext \
8381    conftest$ac_exeext conftest.$ac_ext
8382fi
8383
8384
8385		CFLAGS="$xorg_testset_save_CFLAGS"
8386
8387		eval supported=\$$cacheid
8388		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8389$as_echo "$supported" >&6; }
8390		if test "$supported" = "yes" ; then
8391			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8392			found="yes"
8393		fi
8394	fi
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410xorg_testset_save_CFLAGS="$CFLAGS"
8411
8412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8417  $as_echo_n "(cached) " >&6
8418else
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421int i;
8422_ACEOF
8423if ac_fn_c_try_compile "$LINENO"; then :
8424  xorg_cv_cc_flag_unknown_warning_option=yes
8425else
8426  xorg_cv_cc_flag_unknown_warning_option=no
8427fi
8428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429fi
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8433	CFLAGS="$xorg_testset_save_CFLAGS"
8434fi
8435
8436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439	fi
8440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451  xorg_cv_cc_flag_unused_command_line_argument=yes
8452else
8453  xorg_cv_cc_flag_unused_command_line_argument=no
8454fi
8455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456fi
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8460	CFLAGS="$xorg_testset_save_CFLAGS"
8461fi
8462
8463found="no"
8464
8465	if test $found = "no" ; then
8466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468		fi
8469
8470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8472		fi
8473
8474		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8475
8476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8477$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8478		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8479		if eval \${$cacheid+:} false; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483/* end confdefs.h.  */
8484int i;
8485int
8486main ()
8487{
8488
8489  ;
8490  return 0;
8491}
8492_ACEOF
8493if ac_fn_c_try_link "$LINENO"; then :
8494  eval $cacheid=yes
8495else
8496  eval $cacheid=no
8497fi
8498rm -f core conftest.err conftest.$ac_objext \
8499    conftest$ac_exeext conftest.$ac_ext
8500fi
8501
8502
8503		CFLAGS="$xorg_testset_save_CFLAGS"
8504
8505		eval supported=\$$cacheid
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8507$as_echo "$supported" >&6; }
8508		if test "$supported" = "yes" ; then
8509			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8510			found="yes"
8511		fi
8512	fi
8513
8514	if test $found = "no" ; then
8515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517		fi
8518
8519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521		fi
8522
8523		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8524
8525		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8526$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8527		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8528		if eval \${$cacheid+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534int
8535main ()
8536{
8537
8538  ;
8539  return 0;
8540}
8541_ACEOF
8542if ac_fn_c_try_link "$LINENO"; then :
8543  eval $cacheid=yes
8544else
8545  eval $cacheid=no
8546fi
8547rm -f core conftest.err conftest.$ac_objext \
8548    conftest$ac_exeext conftest.$ac_ext
8549fi
8550
8551
8552		CFLAGS="$xorg_testset_save_CFLAGS"
8553
8554		eval supported=\$$cacheid
8555		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8556$as_echo "$supported" >&6; }
8557		if test "$supported" = "yes" ; then
8558			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8559			found="yes"
8560		fi
8561	fi
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577xorg_testset_save_CFLAGS="$CFLAGS"
8578
8579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8580	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8584  $as_echo_n "(cached) " >&6
8585else
8586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587/* end confdefs.h.  */
8588int i;
8589_ACEOF
8590if ac_fn_c_try_compile "$LINENO"; then :
8591  xorg_cv_cc_flag_unknown_warning_option=yes
8592else
8593  xorg_cv_cc_flag_unknown_warning_option=no
8594fi
8595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8599	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8600	CFLAGS="$xorg_testset_save_CFLAGS"
8601fi
8602
8603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8604	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606	fi
8607	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614/* end confdefs.h.  */
8615int i;
8616_ACEOF
8617if ac_fn_c_try_compile "$LINENO"; then :
8618  xorg_cv_cc_flag_unused_command_line_argument=yes
8619else
8620  xorg_cv_cc_flag_unused_command_line_argument=no
8621fi
8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623fi
8624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8626	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8627	CFLAGS="$xorg_testset_save_CFLAGS"
8628fi
8629
8630found="no"
8631
8632	if test $found = "no" ; then
8633		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635		fi
8636
8637		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8638			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8639		fi
8640
8641		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8642
8643		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8644$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8645		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8646		if eval \${$cacheid+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652int
8653main ()
8654{
8655
8656  ;
8657  return 0;
8658}
8659_ACEOF
8660if ac_fn_c_try_link "$LINENO"; then :
8661  eval $cacheid=yes
8662else
8663  eval $cacheid=no
8664fi
8665rm -f core conftest.err conftest.$ac_objext \
8666    conftest$ac_exeext conftest.$ac_ext
8667fi
8668
8669
8670		CFLAGS="$xorg_testset_save_CFLAGS"
8671
8672		eval supported=\$$cacheid
8673		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8674$as_echo "$supported" >&6; }
8675		if test "$supported" = "yes" ; then
8676			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8677			found="yes"
8678		fi
8679	fi
8680
8681 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8682else
8683{ $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
8684$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;}
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698xorg_testset_save_CFLAGS="$CFLAGS"
8699
8700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8701	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710_ACEOF
8711if ac_fn_c_try_compile "$LINENO"; then :
8712  xorg_cv_cc_flag_unknown_warning_option=yes
8713else
8714  xorg_cv_cc_flag_unknown_warning_option=no
8715fi
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717fi
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8720	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8721	CFLAGS="$xorg_testset_save_CFLAGS"
8722fi
8723
8724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8725	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8726		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727	fi
8728	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737_ACEOF
8738if ac_fn_c_try_compile "$LINENO"; then :
8739  xorg_cv_cc_flag_unused_command_line_argument=yes
8740else
8741  xorg_cv_cc_flag_unused_command_line_argument=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744fi
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8748	CFLAGS="$xorg_testset_save_CFLAGS"
8749fi
8750
8751found="no"
8752
8753	if test $found = "no" ; then
8754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8756		fi
8757
8758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8760		fi
8761
8762		CFLAGS="$CFLAGS -Wimplicit"
8763
8764		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8765$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8766		cacheid=xorg_cv_cc_flag__Wimplicit
8767		if eval \${$cacheid+:} false; then :
8768  $as_echo_n "(cached) " >&6
8769else
8770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771/* end confdefs.h.  */
8772int i;
8773int
8774main ()
8775{
8776
8777  ;
8778  return 0;
8779}
8780_ACEOF
8781if ac_fn_c_try_link "$LINENO"; then :
8782  eval $cacheid=yes
8783else
8784  eval $cacheid=no
8785fi
8786rm -f core conftest.err conftest.$ac_objext \
8787    conftest$ac_exeext conftest.$ac_ext
8788fi
8789
8790
8791		CFLAGS="$xorg_testset_save_CFLAGS"
8792
8793		eval supported=\$$cacheid
8794		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8795$as_echo "$supported" >&6; }
8796		if test "$supported" = "yes" ; then
8797			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8798			found="yes"
8799		fi
8800	fi
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816xorg_testset_save_CFLAGS="$CFLAGS"
8817
8818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8819	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8820	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8823  $as_echo_n "(cached) " >&6
8824else
8825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826/* end confdefs.h.  */
8827int i;
8828_ACEOF
8829if ac_fn_c_try_compile "$LINENO"; then :
8830  xorg_cv_cc_flag_unknown_warning_option=yes
8831else
8832  xorg_cv_cc_flag_unknown_warning_option=no
8833fi
8834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8839	CFLAGS="$xorg_testset_save_CFLAGS"
8840fi
8841
8842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845	fi
8846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"; then :
8857  xorg_cv_cc_flag_unused_command_line_argument=yes
8858else
8859  xorg_cv_cc_flag_unused_command_line_argument=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8865	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869found="no"
8870
8871	if test $found = "no" ; then
8872		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874		fi
8875
8876		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8877			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8878		fi
8879
8880		CFLAGS="$CFLAGS -Wnonnull"
8881
8882		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8883$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8884		cacheid=xorg_cv_cc_flag__Wnonnull
8885		if eval \${$cacheid+:} false; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889/* end confdefs.h.  */
8890int i;
8891int
8892main ()
8893{
8894
8895  ;
8896  return 0;
8897}
8898_ACEOF
8899if ac_fn_c_try_link "$LINENO"; then :
8900  eval $cacheid=yes
8901else
8902  eval $cacheid=no
8903fi
8904rm -f core conftest.err conftest.$ac_objext \
8905    conftest$ac_exeext conftest.$ac_ext
8906fi
8907
8908
8909		CFLAGS="$xorg_testset_save_CFLAGS"
8910
8911		eval supported=\$$cacheid
8912		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8913$as_echo "$supported" >&6; }
8914		if test "$supported" = "yes" ; then
8915			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8916			found="yes"
8917		fi
8918	fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934xorg_testset_save_CFLAGS="$CFLAGS"
8935
8936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8937	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8941  $as_echo_n "(cached) " >&6
8942else
8943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946_ACEOF
8947if ac_fn_c_try_compile "$LINENO"; then :
8948  xorg_cv_cc_flag_unknown_warning_option=yes
8949else
8950  xorg_cv_cc_flag_unknown_warning_option=no
8951fi
8952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8956	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8957	CFLAGS="$xorg_testset_save_CFLAGS"
8958fi
8959
8960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8961	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8962		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	fi
8964	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h.  */
8972int i;
8973_ACEOF
8974if ac_fn_c_try_compile "$LINENO"; then :
8975  xorg_cv_cc_flag_unused_command_line_argument=yes
8976else
8977  xorg_cv_cc_flag_unused_command_line_argument=no
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8983	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8984	CFLAGS="$xorg_testset_save_CFLAGS"
8985fi
8986
8987found="no"
8988
8989	if test $found = "no" ; then
8990		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992		fi
8993
8994		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8995			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996		fi
8997
8998		CFLAGS="$CFLAGS -Winit-self"
8999
9000		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9001$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9002		cacheid=xorg_cv_cc_flag__Winit_self
9003		if eval \${$cacheid+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007/* end confdefs.h.  */
9008int i;
9009int
9010main ()
9011{
9012
9013  ;
9014  return 0;
9015}
9016_ACEOF
9017if ac_fn_c_try_link "$LINENO"; then :
9018  eval $cacheid=yes
9019else
9020  eval $cacheid=no
9021fi
9022rm -f core conftest.err conftest.$ac_objext \
9023    conftest$ac_exeext conftest.$ac_ext
9024fi
9025
9026
9027		CFLAGS="$xorg_testset_save_CFLAGS"
9028
9029		eval supported=\$$cacheid
9030		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9031$as_echo "$supported" >&6; }
9032		if test "$supported" = "yes" ; then
9033			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9034			found="yes"
9035		fi
9036	fi
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052xorg_testset_save_CFLAGS="$CFLAGS"
9053
9054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9055	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9056	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9059  $as_echo_n "(cached) " >&6
9060else
9061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062/* end confdefs.h.  */
9063int i;
9064_ACEOF
9065if ac_fn_c_try_compile "$LINENO"; then :
9066  xorg_cv_cc_flag_unknown_warning_option=yes
9067else
9068  xorg_cv_cc_flag_unknown_warning_option=no
9069fi
9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071fi
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9074	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9075	CFLAGS="$xorg_testset_save_CFLAGS"
9076fi
9077
9078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9079	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9080		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081	fi
9082	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9086  $as_echo_n "(cached) " >&6
9087else
9088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089/* end confdefs.h.  */
9090int i;
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093  xorg_cv_cc_flag_unused_command_line_argument=yes
9094else
9095  xorg_cv_cc_flag_unused_command_line_argument=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9101	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105found="no"
9106
9107	if test $found = "no" ; then
9108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9110		fi
9111
9112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9114		fi
9115
9116		CFLAGS="$CFLAGS -Wmain"
9117
9118		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9119$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9120		cacheid=xorg_cv_cc_flag__Wmain
9121		if eval \${$cacheid+:} false; then :
9122  $as_echo_n "(cached) " >&6
9123else
9124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125/* end confdefs.h.  */
9126int i;
9127int
9128main ()
9129{
9130
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135if ac_fn_c_try_link "$LINENO"; then :
9136  eval $cacheid=yes
9137else
9138  eval $cacheid=no
9139fi
9140rm -f core conftest.err conftest.$ac_objext \
9141    conftest$ac_exeext conftest.$ac_ext
9142fi
9143
9144
9145		CFLAGS="$xorg_testset_save_CFLAGS"
9146
9147		eval supported=\$$cacheid
9148		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9149$as_echo "$supported" >&6; }
9150		if test "$supported" = "yes" ; then
9151			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9152			found="yes"
9153		fi
9154	fi
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170xorg_testset_save_CFLAGS="$CFLAGS"
9171
9172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9177  $as_echo_n "(cached) " >&6
9178else
9179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180/* end confdefs.h.  */
9181int i;
9182_ACEOF
9183if ac_fn_c_try_compile "$LINENO"; then :
9184  xorg_cv_cc_flag_unknown_warning_option=yes
9185else
9186  xorg_cv_cc_flag_unknown_warning_option=no
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189fi
9190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9193	CFLAGS="$xorg_testset_save_CFLAGS"
9194fi
9195
9196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	fi
9200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208int i;
9209_ACEOF
9210if ac_fn_c_try_compile "$LINENO"; then :
9211  xorg_cv_cc_flag_unused_command_line_argument=yes
9212else
9213  xorg_cv_cc_flag_unused_command_line_argument=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223found="no"
9224
9225	if test $found = "no" ; then
9226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228		fi
9229
9230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232		fi
9233
9234		CFLAGS="$CFLAGS -Wmissing-braces"
9235
9236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9237$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9238		cacheid=xorg_cv_cc_flag__Wmissing_braces
9239		if eval \${$cacheid+:} false; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9243/* end confdefs.h.  */
9244int i;
9245int
9246main ()
9247{
9248
9249  ;
9250  return 0;
9251}
9252_ACEOF
9253if ac_fn_c_try_link "$LINENO"; then :
9254  eval $cacheid=yes
9255else
9256  eval $cacheid=no
9257fi
9258rm -f core conftest.err conftest.$ac_objext \
9259    conftest$ac_exeext conftest.$ac_ext
9260fi
9261
9262
9263		CFLAGS="$xorg_testset_save_CFLAGS"
9264
9265		eval supported=\$$cacheid
9266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9267$as_echo "$supported" >&6; }
9268		if test "$supported" = "yes" ; then
9269			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9270			found="yes"
9271		fi
9272	fi
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288xorg_testset_save_CFLAGS="$CFLAGS"
9289
9290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298/* end confdefs.h.  */
9299int i;
9300_ACEOF
9301if ac_fn_c_try_compile "$LINENO"; then :
9302  xorg_cv_cc_flag_unknown_warning_option=yes
9303else
9304  xorg_cv_cc_flag_unknown_warning_option=no
9305fi
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307fi
9308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9311	CFLAGS="$xorg_testset_save_CFLAGS"
9312fi
9313
9314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317	fi
9318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325/* end confdefs.h.  */
9326int i;
9327_ACEOF
9328if ac_fn_c_try_compile "$LINENO"; then :
9329  xorg_cv_cc_flag_unused_command_line_argument=yes
9330else
9331  xorg_cv_cc_flag_unused_command_line_argument=no
9332fi
9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9338	CFLAGS="$xorg_testset_save_CFLAGS"
9339fi
9340
9341found="no"
9342
9343	if test $found = "no" ; then
9344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346		fi
9347
9348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9350		fi
9351
9352		CFLAGS="$CFLAGS -Wsequence-point"
9353
9354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9355$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9356		cacheid=xorg_cv_cc_flag__Wsequence_point
9357		if eval \${$cacheid+:} false; then :
9358  $as_echo_n "(cached) " >&6
9359else
9360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361/* end confdefs.h.  */
9362int i;
9363int
9364main ()
9365{
9366
9367  ;
9368  return 0;
9369}
9370_ACEOF
9371if ac_fn_c_try_link "$LINENO"; then :
9372  eval $cacheid=yes
9373else
9374  eval $cacheid=no
9375fi
9376rm -f core conftest.err conftest.$ac_objext \
9377    conftest$ac_exeext conftest.$ac_ext
9378fi
9379
9380
9381		CFLAGS="$xorg_testset_save_CFLAGS"
9382
9383		eval supported=\$$cacheid
9384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9385$as_echo "$supported" >&6; }
9386		if test "$supported" = "yes" ; then
9387			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9388			found="yes"
9389		fi
9390	fi
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406xorg_testset_save_CFLAGS="$CFLAGS"
9407
9408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416/* end confdefs.h.  */
9417int i;
9418_ACEOF
9419if ac_fn_c_try_compile "$LINENO"; then :
9420  xorg_cv_cc_flag_unknown_warning_option=yes
9421else
9422  xorg_cv_cc_flag_unknown_warning_option=no
9423fi
9424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425fi
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9429	CFLAGS="$xorg_testset_save_CFLAGS"
9430fi
9431
9432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435	fi
9436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9440  $as_echo_n "(cached) " >&6
9441else
9442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443/* end confdefs.h.  */
9444int i;
9445_ACEOF
9446if ac_fn_c_try_compile "$LINENO"; then :
9447  xorg_cv_cc_flag_unused_command_line_argument=yes
9448else
9449  xorg_cv_cc_flag_unused_command_line_argument=no
9450fi
9451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452fi
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9456	CFLAGS="$xorg_testset_save_CFLAGS"
9457fi
9458
9459found="no"
9460
9461	if test $found = "no" ; then
9462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464		fi
9465
9466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9468		fi
9469
9470		CFLAGS="$CFLAGS -Wreturn-type"
9471
9472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9473$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9474		cacheid=xorg_cv_cc_flag__Wreturn_type
9475		if eval \${$cacheid+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479/* end confdefs.h.  */
9480int i;
9481int
9482main ()
9483{
9484
9485  ;
9486  return 0;
9487}
9488_ACEOF
9489if ac_fn_c_try_link "$LINENO"; then :
9490  eval $cacheid=yes
9491else
9492  eval $cacheid=no
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495    conftest$ac_exeext conftest.$ac_ext
9496fi
9497
9498
9499		CFLAGS="$xorg_testset_save_CFLAGS"
9500
9501		eval supported=\$$cacheid
9502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9503$as_echo "$supported" >&6; }
9504		if test "$supported" = "yes" ; then
9505			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9506			found="yes"
9507		fi
9508	fi
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524xorg_testset_save_CFLAGS="$CFLAGS"
9525
9526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9531  $as_echo_n "(cached) " >&6
9532else
9533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h.  */
9535int i;
9536_ACEOF
9537if ac_fn_c_try_compile "$LINENO"; then :
9538  xorg_cv_cc_flag_unknown_warning_option=yes
9539else
9540  xorg_cv_cc_flag_unknown_warning_option=no
9541fi
9542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543fi
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9547	CFLAGS="$xorg_testset_save_CFLAGS"
9548fi
9549
9550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553	fi
9554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9558  $as_echo_n "(cached) " >&6
9559else
9560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h.  */
9562int i;
9563_ACEOF
9564if ac_fn_c_try_compile "$LINENO"; then :
9565  xorg_cv_cc_flag_unused_command_line_argument=yes
9566else
9567  xorg_cv_cc_flag_unused_command_line_argument=no
9568fi
9569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570fi
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9574	CFLAGS="$xorg_testset_save_CFLAGS"
9575fi
9576
9577found="no"
9578
9579	if test $found = "no" ; then
9580		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9582		fi
9583
9584		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9586		fi
9587
9588		CFLAGS="$CFLAGS -Wtrigraphs"
9589
9590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9591$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9592		cacheid=xorg_cv_cc_flag__Wtrigraphs
9593		if eval \${$cacheid+:} false; then :
9594  $as_echo_n "(cached) " >&6
9595else
9596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9597/* end confdefs.h.  */
9598int i;
9599int
9600main ()
9601{
9602
9603  ;
9604  return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"; then :
9608  eval $cacheid=yes
9609else
9610  eval $cacheid=no
9611fi
9612rm -f core conftest.err conftest.$ac_objext \
9613    conftest$ac_exeext conftest.$ac_ext
9614fi
9615
9616
9617		CFLAGS="$xorg_testset_save_CFLAGS"
9618
9619		eval supported=\$$cacheid
9620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9621$as_echo "$supported" >&6; }
9622		if test "$supported" = "yes" ; then
9623			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9624			found="yes"
9625		fi
9626	fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642xorg_testset_save_CFLAGS="$CFLAGS"
9643
9644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9649  $as_echo_n "(cached) " >&6
9650else
9651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652/* end confdefs.h.  */
9653int i;
9654_ACEOF
9655if ac_fn_c_try_compile "$LINENO"; then :
9656  xorg_cv_cc_flag_unknown_warning_option=yes
9657else
9658  xorg_cv_cc_flag_unknown_warning_option=no
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9665	CFLAGS="$xorg_testset_save_CFLAGS"
9666fi
9667
9668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671	fi
9672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9676  $as_echo_n "(cached) " >&6
9677else
9678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h.  */
9680int i;
9681_ACEOF
9682if ac_fn_c_try_compile "$LINENO"; then :
9683  xorg_cv_cc_flag_unused_command_line_argument=yes
9684else
9685  xorg_cv_cc_flag_unused_command_line_argument=no
9686fi
9687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9688fi
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9692	CFLAGS="$xorg_testset_save_CFLAGS"
9693fi
9694
9695found="no"
9696
9697	if test $found = "no" ; then
9698		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700		fi
9701
9702		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9704		fi
9705
9706		CFLAGS="$CFLAGS -Warray-bounds"
9707
9708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9709$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9710		cacheid=xorg_cv_cc_flag__Warray_bounds
9711		if eval \${$cacheid+:} false; then :
9712  $as_echo_n "(cached) " >&6
9713else
9714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715/* end confdefs.h.  */
9716int i;
9717int
9718main ()
9719{
9720
9721  ;
9722  return 0;
9723}
9724_ACEOF
9725if ac_fn_c_try_link "$LINENO"; then :
9726  eval $cacheid=yes
9727else
9728  eval $cacheid=no
9729fi
9730rm -f core conftest.err conftest.$ac_objext \
9731    conftest$ac_exeext conftest.$ac_ext
9732fi
9733
9734
9735		CFLAGS="$xorg_testset_save_CFLAGS"
9736
9737		eval supported=\$$cacheid
9738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9739$as_echo "$supported" >&6; }
9740		if test "$supported" = "yes" ; then
9741			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9742			found="yes"
9743		fi
9744	fi
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760xorg_testset_save_CFLAGS="$CFLAGS"
9761
9762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9767  $as_echo_n "(cached) " >&6
9768else
9769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h.  */
9771int i;
9772_ACEOF
9773if ac_fn_c_try_compile "$LINENO"; then :
9774  xorg_cv_cc_flag_unknown_warning_option=yes
9775else
9776  xorg_cv_cc_flag_unknown_warning_option=no
9777fi
9778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9783	CFLAGS="$xorg_testset_save_CFLAGS"
9784fi
9785
9786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789	fi
9790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9794  $as_echo_n "(cached) " >&6
9795else
9796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h.  */
9798int i;
9799_ACEOF
9800if ac_fn_c_try_compile "$LINENO"; then :
9801  xorg_cv_cc_flag_unused_command_line_argument=yes
9802else
9803  xorg_cv_cc_flag_unused_command_line_argument=no
9804fi
9805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806fi
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9810	CFLAGS="$xorg_testset_save_CFLAGS"
9811fi
9812
9813found="no"
9814
9815	if test $found = "no" ; then
9816		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818		fi
9819
9820		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9822		fi
9823
9824		CFLAGS="$CFLAGS -Wwrite-strings"
9825
9826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9827$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9828		cacheid=xorg_cv_cc_flag__Wwrite_strings
9829		if eval \${$cacheid+:} false; then :
9830  $as_echo_n "(cached) " >&6
9831else
9832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833/* end confdefs.h.  */
9834int i;
9835int
9836main ()
9837{
9838
9839  ;
9840  return 0;
9841}
9842_ACEOF
9843if ac_fn_c_try_link "$LINENO"; then :
9844  eval $cacheid=yes
9845else
9846  eval $cacheid=no
9847fi
9848rm -f core conftest.err conftest.$ac_objext \
9849    conftest$ac_exeext conftest.$ac_ext
9850fi
9851
9852
9853		CFLAGS="$xorg_testset_save_CFLAGS"
9854
9855		eval supported=\$$cacheid
9856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9857$as_echo "$supported" >&6; }
9858		if test "$supported" = "yes" ; then
9859			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9860			found="yes"
9861		fi
9862	fi
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878xorg_testset_save_CFLAGS="$CFLAGS"
9879
9880if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9881	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9883$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9884if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889int i;
9890_ACEOF
9891if ac_fn_c_try_compile "$LINENO"; then :
9892  xorg_cv_cc_flag_unknown_warning_option=yes
9893else
9894  xorg_cv_cc_flag_unknown_warning_option=no
9895fi
9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897fi
9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9899$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9900	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9901	CFLAGS="$xorg_testset_save_CFLAGS"
9902fi
9903
9904if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9905	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9906		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9907	fi
9908	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9910$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9911if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9912  $as_echo_n "(cached) " >&6
9913else
9914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h.  */
9916int i;
9917_ACEOF
9918if ac_fn_c_try_compile "$LINENO"; then :
9919  xorg_cv_cc_flag_unused_command_line_argument=yes
9920else
9921  xorg_cv_cc_flag_unused_command_line_argument=no
9922fi
9923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924fi
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9926$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9927	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9928	CFLAGS="$xorg_testset_save_CFLAGS"
9929fi
9930
9931found="no"
9932
9933	if test $found = "no" ; then
9934		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936		fi
9937
9938		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9939			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9940		fi
9941
9942		CFLAGS="$CFLAGS -Waddress"
9943
9944		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9945$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9946		cacheid=xorg_cv_cc_flag__Waddress
9947		if eval \${$cacheid+:} false; then :
9948  $as_echo_n "(cached) " >&6
9949else
9950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951/* end confdefs.h.  */
9952int i;
9953int
9954main ()
9955{
9956
9957  ;
9958  return 0;
9959}
9960_ACEOF
9961if ac_fn_c_try_link "$LINENO"; then :
9962  eval $cacheid=yes
9963else
9964  eval $cacheid=no
9965fi
9966rm -f core conftest.err conftest.$ac_objext \
9967    conftest$ac_exeext conftest.$ac_ext
9968fi
9969
9970
9971		CFLAGS="$xorg_testset_save_CFLAGS"
9972
9973		eval supported=\$$cacheid
9974		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9975$as_echo "$supported" >&6; }
9976		if test "$supported" = "yes" ; then
9977			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9978			found="yes"
9979		fi
9980	fi
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996xorg_testset_save_CFLAGS="$CFLAGS"
9997
9998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9999	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10001$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10002if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10003  $as_echo_n "(cached) " >&6
10004else
10005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006/* end confdefs.h.  */
10007int i;
10008_ACEOF
10009if ac_fn_c_try_compile "$LINENO"; then :
10010  xorg_cv_cc_flag_unknown_warning_option=yes
10011else
10012  xorg_cv_cc_flag_unknown_warning_option=no
10013fi
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015fi
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10017$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10018	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10019	CFLAGS="$xorg_testset_save_CFLAGS"
10020fi
10021
10022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10023	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10024		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10025	fi
10026	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10028$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10029if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10030  $as_echo_n "(cached) " >&6
10031else
10032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035_ACEOF
10036if ac_fn_c_try_compile "$LINENO"; then :
10037  xorg_cv_cc_flag_unused_command_line_argument=yes
10038else
10039  xorg_cv_cc_flag_unused_command_line_argument=no
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10042fi
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10044$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10045	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10046	CFLAGS="$xorg_testset_save_CFLAGS"
10047fi
10048
10049found="no"
10050
10051	if test $found = "no" ; then
10052		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10053			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054		fi
10055
10056		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10057			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10058		fi
10059
10060		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10061
10062		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10063$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10064		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10065		if eval \${$cacheid+:} false; then :
10066  $as_echo_n "(cached) " >&6
10067else
10068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069/* end confdefs.h.  */
10070int i;
10071int
10072main ()
10073{
10074
10075  ;
10076  return 0;
10077}
10078_ACEOF
10079if ac_fn_c_try_link "$LINENO"; then :
10080  eval $cacheid=yes
10081else
10082  eval $cacheid=no
10083fi
10084rm -f core conftest.err conftest.$ac_objext \
10085    conftest$ac_exeext conftest.$ac_ext
10086fi
10087
10088
10089		CFLAGS="$xorg_testset_save_CFLAGS"
10090
10091		eval supported=\$$cacheid
10092		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10093$as_echo "$supported" >&6; }
10094		if test "$supported" = "yes" ; then
10095			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10096			found="yes"
10097		fi
10098	fi
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114xorg_testset_save_CFLAGS="$CFLAGS"
10115
10116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10117	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10119$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10120if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10121  $as_echo_n "(cached) " >&6
10122else
10123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125int i;
10126_ACEOF
10127if ac_fn_c_try_compile "$LINENO"; then :
10128  xorg_cv_cc_flag_unknown_warning_option=yes
10129else
10130  xorg_cv_cc_flag_unknown_warning_option=no
10131fi
10132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133fi
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10135$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10136	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10137	CFLAGS="$xorg_testset_save_CFLAGS"
10138fi
10139
10140if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10141	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10142		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	fi
10144	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10146$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10147if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10148  $as_echo_n "(cached) " >&6
10149else
10150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151/* end confdefs.h.  */
10152int i;
10153_ACEOF
10154if ac_fn_c_try_compile "$LINENO"; then :
10155  xorg_cv_cc_flag_unused_command_line_argument=yes
10156else
10157  xorg_cv_cc_flag_unused_command_line_argument=no
10158fi
10159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160fi
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10162$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10163	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10164	CFLAGS="$xorg_testset_save_CFLAGS"
10165fi
10166
10167found="no"
10168
10169	if test $found = "no" ; then
10170		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172		fi
10173
10174		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10175			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10176		fi
10177
10178		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10179
10180		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10181$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10182		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10183		if eval \${$cacheid+:} false; then :
10184  $as_echo_n "(cached) " >&6
10185else
10186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187/* end confdefs.h.  */
10188int i;
10189int
10190main ()
10191{
10192
10193  ;
10194  return 0;
10195}
10196_ACEOF
10197if ac_fn_c_try_link "$LINENO"; then :
10198  eval $cacheid=yes
10199else
10200  eval $cacheid=no
10201fi
10202rm -f core conftest.err conftest.$ac_objext \
10203    conftest$ac_exeext conftest.$ac_ext
10204fi
10205
10206
10207		CFLAGS="$xorg_testset_save_CFLAGS"
10208
10209		eval supported=\$$cacheid
10210		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10211$as_echo "$supported" >&6; }
10212		if test "$supported" = "yes" ; then
10213			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10214			found="yes"
10215		fi
10216	fi
10217
10218
10219fi
10220
10221
10222
10223
10224
10225
10226
10227		CWARNFLAGS="$BASE_CFLAGS"
10228		if  test "x$GCC" = xyes ; then
10229		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10230		fi
10231
10232
10233
10234
10235
10236
10237
10238
10239# Check whether --enable-strict-compilation was given.
10240if test "${enable_strict_compilation+set}" = set; then :
10241  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10242else
10243  STRICT_COMPILE=no
10244fi
10245
10246
10247
10248
10249
10250
10251STRICT_CFLAGS=""
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265xorg_testset_save_CFLAGS="$CFLAGS"
10266
10267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10268	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10272  $as_echo_n "(cached) " >&6
10273else
10274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275/* end confdefs.h.  */
10276int i;
10277_ACEOF
10278if ac_fn_c_try_compile "$LINENO"; then :
10279  xorg_cv_cc_flag_unknown_warning_option=yes
10280else
10281  xorg_cv_cc_flag_unknown_warning_option=no
10282fi
10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10287	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10288	CFLAGS="$xorg_testset_save_CFLAGS"
10289fi
10290
10291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10292	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10293		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	fi
10295	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10296	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304_ACEOF
10305if ac_fn_c_try_compile "$LINENO"; then :
10306  xorg_cv_cc_flag_unused_command_line_argument=yes
10307else
10308  xorg_cv_cc_flag_unused_command_line_argument=no
10309fi
10310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10314	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10315	CFLAGS="$xorg_testset_save_CFLAGS"
10316fi
10317
10318found="no"
10319
10320	if test $found = "no" ; then
10321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10323		fi
10324
10325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10327		fi
10328
10329		CFLAGS="$CFLAGS -pedantic"
10330
10331		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10332$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10333		cacheid=xorg_cv_cc_flag__pedantic
10334		if eval \${$cacheid+:} false; then :
10335  $as_echo_n "(cached) " >&6
10336else
10337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339int i;
10340int
10341main ()
10342{
10343
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348if ac_fn_c_try_link "$LINENO"; then :
10349  eval $cacheid=yes
10350else
10351  eval $cacheid=no
10352fi
10353rm -f core conftest.err conftest.$ac_objext \
10354    conftest$ac_exeext conftest.$ac_ext
10355fi
10356
10357
10358		CFLAGS="$xorg_testset_save_CFLAGS"
10359
10360		eval supported=\$$cacheid
10361		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10362$as_echo "$supported" >&6; }
10363		if test "$supported" = "yes" ; then
10364			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10365			found="yes"
10366		fi
10367	fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383xorg_testset_save_CFLAGS="$CFLAGS"
10384
10385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10386	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10388$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10389if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10390  $as_echo_n "(cached) " >&6
10391else
10392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393/* end confdefs.h.  */
10394int i;
10395_ACEOF
10396if ac_fn_c_try_compile "$LINENO"; then :
10397  xorg_cv_cc_flag_unknown_warning_option=yes
10398else
10399  xorg_cv_cc_flag_unknown_warning_option=no
10400fi
10401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10404$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10406	CFLAGS="$xorg_testset_save_CFLAGS"
10407fi
10408
10409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412	fi
10413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10415$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10416if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421int i;
10422_ACEOF
10423if ac_fn_c_try_compile "$LINENO"; then :
10424  xorg_cv_cc_flag_unused_command_line_argument=yes
10425else
10426  xorg_cv_cc_flag_unused_command_line_argument=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429fi
10430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10431$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10433	CFLAGS="$xorg_testset_save_CFLAGS"
10434fi
10435
10436found="no"
10437
10438	if test $found = "no" ; then
10439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10441		fi
10442
10443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10445		fi
10446
10447		CFLAGS="$CFLAGS -Werror"
10448
10449		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10450$as_echo_n "checking if $CC supports -Werror... " >&6; }
10451		cacheid=xorg_cv_cc_flag__Werror
10452		if eval \${$cacheid+:} false; then :
10453  $as_echo_n "(cached) " >&6
10454else
10455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456/* end confdefs.h.  */
10457int i;
10458int
10459main ()
10460{
10461
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466if ac_fn_c_try_link "$LINENO"; then :
10467  eval $cacheid=yes
10468else
10469  eval $cacheid=no
10470fi
10471rm -f core conftest.err conftest.$ac_objext \
10472    conftest$ac_exeext conftest.$ac_ext
10473fi
10474
10475
10476		CFLAGS="$xorg_testset_save_CFLAGS"
10477
10478		eval supported=\$$cacheid
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10480$as_echo "$supported" >&6; }
10481		if test "$supported" = "yes" ; then
10482			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10483			found="yes"
10484		fi
10485	fi
10486
10487	if test $found = "no" ; then
10488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490		fi
10491
10492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10494		fi
10495
10496		CFLAGS="$CFLAGS -errwarn"
10497
10498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10499$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10500		cacheid=xorg_cv_cc_flag__errwarn
10501		if eval \${$cacheid+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506int i;
10507int
10508main ()
10509{
10510
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515if ac_fn_c_try_link "$LINENO"; then :
10516  eval $cacheid=yes
10517else
10518  eval $cacheid=no
10519fi
10520rm -f core conftest.err conftest.$ac_objext \
10521    conftest$ac_exeext conftest.$ac_ext
10522fi
10523
10524
10525		CFLAGS="$xorg_testset_save_CFLAGS"
10526
10527		eval supported=\$$cacheid
10528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10529$as_echo "$supported" >&6; }
10530		if test "$supported" = "yes" ; then
10531			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10532			found="yes"
10533		fi
10534	fi
10535
10536
10537
10538# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10539# activate it with -Werror, so we add it here explicitly.
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553xorg_testset_save_CFLAGS="$CFLAGS"
10554
10555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10558$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10559if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10560  $as_echo_n "(cached) " >&6
10561else
10562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563/* end confdefs.h.  */
10564int i;
10565_ACEOF
10566if ac_fn_c_try_compile "$LINENO"; then :
10567  xorg_cv_cc_flag_unknown_warning_option=yes
10568else
10569  xorg_cv_cc_flag_unknown_warning_option=no
10570fi
10571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10572fi
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10574$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10576	CFLAGS="$xorg_testset_save_CFLAGS"
10577fi
10578
10579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10582	fi
10583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10584	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10585$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10586if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10587  $as_echo_n "(cached) " >&6
10588else
10589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590/* end confdefs.h.  */
10591int i;
10592_ACEOF
10593if ac_fn_c_try_compile "$LINENO"; then :
10594  xorg_cv_cc_flag_unused_command_line_argument=yes
10595else
10596  xorg_cv_cc_flag_unused_command_line_argument=no
10597fi
10598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599fi
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10601$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10603	CFLAGS="$xorg_testset_save_CFLAGS"
10604fi
10605
10606found="no"
10607
10608	if test $found = "no" ; then
10609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10611		fi
10612
10613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10615		fi
10616
10617		CFLAGS="$CFLAGS -Werror=attributes"
10618
10619		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10620$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10621		cacheid=xorg_cv_cc_flag__Werror_attributes
10622		if eval \${$cacheid+:} false; then :
10623  $as_echo_n "(cached) " >&6
10624else
10625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626/* end confdefs.h.  */
10627int i;
10628int
10629main ()
10630{
10631
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636if ac_fn_c_try_link "$LINENO"; then :
10637  eval $cacheid=yes
10638else
10639  eval $cacheid=no
10640fi
10641rm -f core conftest.err conftest.$ac_objext \
10642    conftest$ac_exeext conftest.$ac_ext
10643fi
10644
10645
10646		CFLAGS="$xorg_testset_save_CFLAGS"
10647
10648		eval supported=\$$cacheid
10649		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10650$as_echo "$supported" >&6; }
10651		if test "$supported" = "yes" ; then
10652			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10653			found="yes"
10654		fi
10655	fi
10656
10657
10658
10659if test "x$STRICT_COMPILE" = "xyes"; then
10660    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10661    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10662fi
10663
10664
10665
10666
10667
10668
10669cat >>confdefs.h <<_ACEOF
10670#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10671_ACEOF
10672
10673	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10674	if test "x$PVM" = "x"; then
10675		PVM="0"
10676	fi
10677
10678cat >>confdefs.h <<_ACEOF
10679#define PACKAGE_VERSION_MINOR $PVM
10680_ACEOF
10681
10682	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10683	if test "x$PVP" = "x"; then
10684		PVP="0"
10685	fi
10686
10687cat >>confdefs.h <<_ACEOF
10688#define PACKAGE_VERSION_PATCHLEVEL $PVP
10689_ACEOF
10690
10691
10692
10693CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10694mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10695|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10696echo 'git directory not found: installing possibly empty changelog.' >&2)"
10697
10698
10699
10700
10701macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10702INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10703mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10704|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10705echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10706
10707
10708
10709
10710
10711
10712if test x$APP_MAN_SUFFIX = x    ; then
10713    APP_MAN_SUFFIX=1
10714fi
10715if test x$APP_MAN_DIR = x    ; then
10716    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10717fi
10718
10719if test x$LIB_MAN_SUFFIX = x    ; then
10720    LIB_MAN_SUFFIX=3
10721fi
10722if test x$LIB_MAN_DIR = x    ; then
10723    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10724fi
10725
10726if test x$FILE_MAN_SUFFIX = x    ; then
10727    case $host_os in
10728	# Solaris 2.0 - 11 use SysV man page sections
10729	solaris2.?|solaris2.1[01])	FILE_MAN_SUFFIX=4  ;;
10730	*)				FILE_MAN_SUFFIX=5  ;;
10731    esac
10732fi
10733if test x$FILE_MAN_DIR = x    ; then
10734    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10735fi
10736
10737if test x$MISC_MAN_SUFFIX = x    ; then
10738    case $host_os in
10739	# Solaris 2.0 - 11 use SysV man page sections
10740	solaris2.?|solaris2.1[01])	MISC_MAN_SUFFIX=5  ;;
10741	*)				MISC_MAN_SUFFIX=7  ;;
10742    esac
10743fi
10744if test x$MISC_MAN_DIR = x    ; then
10745    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10746fi
10747
10748if test x$DRIVER_MAN_SUFFIX = x    ; then
10749    case $host_os in
10750	# Solaris 2.0 - 11 use SysV man page sections
10751	solaris2.?|solaris2.1[01])	DRIVER_MAN_SUFFIX=7  ;;
10752	*)				DRIVER_MAN_SUFFIX=4  ;;
10753    esac
10754fi
10755if test x$DRIVER_MAN_DIR = x    ; then
10756    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10757fi
10758
10759if test x$ADMIN_MAN_SUFFIX = x    ; then
10760    case $host_os in
10761	# Solaris 2.0 - 11 use SysV man page sections
10762	solaris2.?|solaris2.1[01])	ADMIN_MAN_SUFFIX=1m ;;
10763	*)				ADMIN_MAN_SUFFIX=8  ;;
10764    esac
10765fi
10766if test x$ADMIN_MAN_DIR = x    ; then
10767    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10768fi
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784XORG_MAN_PAGE="X Version 11"
10785
10786MAN_SUBSTS="\
10787	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10788	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10789	-e 's|__xservername__|Xorg|g' \
10790	-e 's|__xconfigfile__|xorg.conf|g' \
10791	-e 's|__projectroot__|\$(prefix)|g' \
10792	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10793	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10794	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10795	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10796	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10797	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10798	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10799
10800
10801
10802# Check whether --enable-silent-rules was given.
10803if test "${enable_silent_rules+set}" = set; then :
10804  enableval=$enable_silent_rules;
10805fi
10806
10807case $enable_silent_rules in # (((
10808  yes) AM_DEFAULT_VERBOSITY=0;;
10809   no) AM_DEFAULT_VERBOSITY=1;;
10810    *) AM_DEFAULT_VERBOSITY=0;;
10811esac
10812am_make=${MAKE-make}
10813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10814$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10815if ${am_cv_make_support_nested_variables+:} false; then :
10816  $as_echo_n "(cached) " >&6
10817else
10818  if $as_echo 'TRUE=$(BAR$(V))
10819BAR0=false
10820BAR1=true
10821V=1
10822am__doit:
10823	@$(TRUE)
10824.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10825  am_cv_make_support_nested_variables=yes
10826else
10827  am_cv_make_support_nested_variables=no
10828fi
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10831$as_echo "$am_cv_make_support_nested_variables" >&6; }
10832if test $am_cv_make_support_nested_variables = yes; then
10833    AM_V='$(V)'
10834  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10835else
10836  AM_V=$AM_DEFAULT_VERBOSITY
10837  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10838fi
10839AM_BACKSLASH='\'
10840
10841
10842
10843for ac_prog in 'bison -y' byacc
10844do
10845  # Extract the first word of "$ac_prog", so it can be a program name with args.
10846set dummy $ac_prog; ac_word=$2
10847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848$as_echo_n "checking for $ac_word... " >&6; }
10849if ${ac_cv_prog_YACC+:} false; then :
10850  $as_echo_n "(cached) " >&6
10851else
10852  if test -n "$YACC"; then
10853  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858  IFS=$as_save_IFS
10859  test -z "$as_dir" && as_dir=.
10860    for ac_exec_ext in '' $ac_executable_extensions; do
10861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10862    ac_cv_prog_YACC="$ac_prog"
10863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864    break 2
10865  fi
10866done
10867  done
10868IFS=$as_save_IFS
10869
10870fi
10871fi
10872YACC=$ac_cv_prog_YACC
10873if test -n "$YACC"; then
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10875$as_echo "$YACC" >&6; }
10876else
10877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879fi
10880
10881
10882  test -n "$YACC" && break
10883done
10884test -n "$YACC" || YACC="yacc"
10885
10886# Extract the first word of "$YACC", so it can be a program name with args.
10887set dummy $YACC; ac_word=$2
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10889$as_echo_n "checking for $ac_word... " >&6; }
10890if ${ac_cv_path_YACC_INST+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  case $YACC_INST in
10894  [\\/]* | ?:[\\/]*)
10895  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10896  ;;
10897  *)
10898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $PATH
10900do
10901  IFS=$as_save_IFS
10902  test -z "$as_dir" && as_dir=.
10903    for ac_exec_ext in '' $ac_executable_extensions; do
10904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10905    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10907    break 2
10908  fi
10909done
10910  done
10911IFS=$as_save_IFS
10912
10913  ;;
10914esac
10915fi
10916YACC_INST=$ac_cv_path_YACC_INST
10917if test -n "$YACC_INST"; then
10918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10919$as_echo "$YACC_INST" >&6; }
10920else
10921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
10923fi
10924
10925
10926if test ! -f "$srcdir/gram.c"; then
10927   if test -z "$YACC_INST"; then
10928      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10929   fi
10930fi
10931for ac_prog in flex lex
10932do
10933  # Extract the first word of "$ac_prog", so it can be a program name with args.
10934set dummy $ac_prog; ac_word=$2
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936$as_echo_n "checking for $ac_word... " >&6; }
10937if ${ac_cv_prog_LEX+:} false; then :
10938  $as_echo_n "(cached) " >&6
10939else
10940  if test -n "$LEX"; then
10941  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10942else
10943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $PATH
10945do
10946  IFS=$as_save_IFS
10947  test -z "$as_dir" && as_dir=.
10948    for ac_exec_ext in '' $ac_executable_extensions; do
10949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950    ac_cv_prog_LEX="$ac_prog"
10951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952    break 2
10953  fi
10954done
10955  done
10956IFS=$as_save_IFS
10957
10958fi
10959fi
10960LEX=$ac_cv_prog_LEX
10961if test -n "$LEX"; then
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10963$as_echo "$LEX" >&6; }
10964else
10965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
10967fi
10968
10969
10970  test -n "$LEX" && break
10971done
10972test -n "$LEX" || LEX=":"
10973
10974if test "x$LEX" != "x:"; then
10975  cat >conftest.l <<_ACEOF
10976%%
10977a { ECHO; }
10978b { REJECT; }
10979c { yymore (); }
10980d { yyless (1); }
10981e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
10982    yyless ((input () != 0)); }
10983f { unput (yytext[0]); }
10984. { BEGIN INITIAL; }
10985%%
10986#ifdef YYTEXT_POINTER
10987extern char *yytext;
10988#endif
10989int
10990main (void)
10991{
10992  return ! yylex () + ! yywrap ();
10993}
10994_ACEOF
10995{ { ac_try="$LEX conftest.l"
10996case "(($ac_try" in
10997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998  *) ac_try_echo=$ac_try;;
10999esac
11000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11001$as_echo "$ac_try_echo"; } >&5
11002  (eval "$LEX conftest.l") 2>&5
11003  ac_status=$?
11004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11005  test $ac_status = 0; }
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11007$as_echo_n "checking lex output file root... " >&6; }
11008if ${ac_cv_prog_lex_root+:} false; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011
11012if test -f lex.yy.c; then
11013  ac_cv_prog_lex_root=lex.yy
11014elif test -f lexyy.c; then
11015  ac_cv_prog_lex_root=lexyy
11016else
11017  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
11018fi
11019fi
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11021$as_echo "$ac_cv_prog_lex_root" >&6; }
11022LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11023
11024if test -z "${LEXLIB+set}"; then
11025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11026$as_echo_n "checking lex library... " >&6; }
11027if ${ac_cv_lib_lex+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030
11031    ac_save_LIBS=$LIBS
11032    ac_cv_lib_lex='none needed'
11033    for ac_lib in '' -lfl -ll; do
11034      LIBS="$ac_lib $ac_save_LIBS"
11035      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036/* end confdefs.h.  */
11037`cat $LEX_OUTPUT_ROOT.c`
11038_ACEOF
11039if ac_fn_c_try_link "$LINENO"; then :
11040  ac_cv_lib_lex=$ac_lib
11041fi
11042rm -f core conftest.err conftest.$ac_objext \
11043    conftest$ac_exeext conftest.$ac_ext
11044      test "$ac_cv_lib_lex" != 'none needed' && break
11045    done
11046    LIBS=$ac_save_LIBS
11047
11048fi
11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11050$as_echo "$ac_cv_lib_lex" >&6; }
11051  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11052fi
11053
11054
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11056$as_echo_n "checking whether yytext is a pointer... " >&6; }
11057if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11058  $as_echo_n "(cached) " >&6
11059else
11060  # POSIX says lex can declare yytext either as a pointer or an array; the
11061# default is implementation-dependent.  Figure out which it is, since
11062# not all implementations provide the %pointer and %array declarations.
11063ac_cv_prog_lex_yytext_pointer=no
11064ac_save_LIBS=$LIBS
11065LIBS="$LEXLIB $ac_save_LIBS"
11066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h.  */
11068
11069  #define YYTEXT_POINTER 1
11070`cat $LEX_OUTPUT_ROOT.c`
11071_ACEOF
11072if ac_fn_c_try_link "$LINENO"; then :
11073  ac_cv_prog_lex_yytext_pointer=yes
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076    conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_save_LIBS
11078
11079fi
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11081$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11082if test $ac_cv_prog_lex_yytext_pointer = yes; then
11083
11084$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11085
11086fi
11087rm -f conftest.l $LEX_OUTPUT_ROOT.c
11088
11089fi
11090
11091for ac_func in mkstemp
11092do :
11093  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11094if test "x$ac_cv_func_mkstemp" = xyes; then :
11095  cat >>confdefs.h <<_ACEOF
11096#define HAVE_MKSTEMP 1
11097_ACEOF
11098
11099fi
11100done
11101
11102
11103# Checks for pkg-config packages
11104
11105pkg_failed=no
11106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5
11107$as_echo_n "checking for TWM... " >&6; }
11108
11109if test -n "$TWM_CFLAGS"; then
11110    pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11111 elif test -n "$PKG_CONFIG"; then
11112    if test -n "$PKG_CONFIG" && \
11113    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11114  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11115  ac_status=$?
11116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11117  test $ac_status = 0; }; then
11118  pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11119		      test "x$?" != "x0" && pkg_failed=yes
11120else
11121  pkg_failed=yes
11122fi
11123 else
11124    pkg_failed=untried
11125fi
11126if test -n "$TWM_LIBS"; then
11127    pkg_cv_TWM_LIBS="$TWM_LIBS"
11128 elif test -n "$PKG_CONFIG"; then
11129    if test -n "$PKG_CONFIG" && \
11130    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11131  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11132  ac_status=$?
11133  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134  test $ac_status = 0; }; then
11135  pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11136		      test "x$?" != "x0" && pkg_failed=yes
11137else
11138  pkg_failed=yes
11139fi
11140 else
11141    pkg_failed=untried
11142fi
11143
11144
11145
11146if test $pkg_failed = yes; then
11147   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148$as_echo "no" >&6; }
11149
11150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11151        _pkg_short_errors_supported=yes
11152else
11153        _pkg_short_errors_supported=no
11154fi
11155        if test $_pkg_short_errors_supported = yes; then
11156	        TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11157        else
11158	        TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11159        fi
11160	# Put the nasty error message in config.log where it belongs
11161	echo "$TWM_PKG_ERRORS" >&5
11162
11163	as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11164
11165$TWM_PKG_ERRORS
11166
11167Consider adjusting the PKG_CONFIG_PATH environment variable if you
11168installed software in a non-standard prefix.
11169
11170Alternatively, you may set the environment variables TWM_CFLAGS
11171and TWM_LIBS to avoid the need to call pkg-config.
11172See the pkg-config man page for more details." "$LINENO" 5
11173elif test $pkg_failed = untried; then
11174     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
11176	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11178as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11179is in your PATH or set the PKG_CONFIG environment variable to the full
11180path to pkg-config.
11181
11182Alternatively, you may set the environment variables TWM_CFLAGS
11183and TWM_LIBS to avoid the need to call pkg-config.
11184See the pkg-config man page for more details.
11185
11186To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11187See \`config.log' for more details" "$LINENO" 5; }
11188else
11189	TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11190	TWM_LIBS=$pkg_cv_TWM_LIBS
11191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11192$as_echo "yes" >&6; }
11193
11194fi
11195
11196pkg_failed=no
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
11198$as_echo_n "checking for XRANDR... " >&6; }
11199
11200if test -n "$XRANDR_CFLAGS"; then
11201    pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
11202 elif test -n "$PKG_CONFIG"; then
11203    if test -n "$PKG_CONFIG" && \
11204    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11205  ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11206  ac_status=$?
11207  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11208  test $ac_status = 0; }; then
11209  pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
11210		      test "x$?" != "x0" && pkg_failed=yes
11211else
11212  pkg_failed=yes
11213fi
11214 else
11215    pkg_failed=untried
11216fi
11217if test -n "$XRANDR_LIBS"; then
11218    pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
11219 elif test -n "$PKG_CONFIG"; then
11220    if test -n "$PKG_CONFIG" && \
11221    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11222  ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11223  ac_status=$?
11224  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225  test $ac_status = 0; }; then
11226  pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
11227		      test "x$?" != "x0" && pkg_failed=yes
11228else
11229  pkg_failed=yes
11230fi
11231 else
11232    pkg_failed=untried
11233fi
11234
11235
11236
11237if test $pkg_failed = yes; then
11238   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239$as_echo "no" >&6; }
11240
11241if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11242        _pkg_short_errors_supported=yes
11243else
11244        _pkg_short_errors_supported=no
11245fi
11246        if test $_pkg_short_errors_supported = yes; then
11247	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
11248        else
11249	        XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
11250        fi
11251	# Put the nasty error message in config.log where it belongs
11252	echo "$XRANDR_PKG_ERRORS" >&5
11253
11254	have_xrandr=no
11255elif test $pkg_failed = untried; then
11256     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257$as_echo "no" >&6; }
11258	have_xrandr=no
11259else
11260	XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
11261	XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
11262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263$as_echo "yes" >&6; }
11264	have_xrandr=yes
11265fi
11266if test "$have_xrandr" = yes; then
11267
11268$as_echo "#define HAVE_XRANDR 1" >>confdefs.h
11269
11270fi
11271
11272ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11273
11274cat >confcache <<\_ACEOF
11275# This file is a shell script that caches the results of configure
11276# tests run on this system so they can be shared between configure
11277# scripts and configure runs, see configure's option --config-cache.
11278# It is not useful on other systems.  If it contains results you don't
11279# want to keep, you may remove or edit it.
11280#
11281# config.status only pays attention to the cache file if you give it
11282# the --recheck option to rerun configure.
11283#
11284# `ac_cv_env_foo' variables (set or unset) will be overridden when
11285# loading this file, other *unset* `ac_cv_foo' will be assigned the
11286# following values.
11287
11288_ACEOF
11289
11290# The following way of writing the cache mishandles newlines in values,
11291# but we know of no workaround that is simple, portable, and efficient.
11292# So, we kill variables containing newlines.
11293# Ultrix sh set writes to stderr and can't be redirected directly,
11294# and sets the high bit in the cache file unless we assign to the vars.
11295(
11296  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11297    eval ac_val=\$$ac_var
11298    case $ac_val in #(
11299    *${as_nl}*)
11300      case $ac_var in #(
11301      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11302$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11303      esac
11304      case $ac_var in #(
11305      _ | IFS | as_nl) ;; #(
11306      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11307      *) { eval $ac_var=; unset $ac_var;} ;;
11308      esac ;;
11309    esac
11310  done
11311
11312  (set) 2>&1 |
11313    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11314    *${as_nl}ac_space=\ *)
11315      # `set' does not quote correctly, so add quotes: double-quote
11316      # substitution turns \\\\ into \\, and sed turns \\ into \.
11317      sed -n \
11318	"s/'/'\\\\''/g;
11319	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11320      ;; #(
11321    *)
11322      # `set' quotes correctly as required by POSIX, so do not add quotes.
11323      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11324      ;;
11325    esac |
11326    sort
11327) |
11328  sed '
11329     /^ac_cv_env_/b end
11330     t clear
11331     :clear
11332     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11333     t end
11334     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11335     :end' >>confcache
11336if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11337  if test -w "$cache_file"; then
11338    if test "x$cache_file" != "x/dev/null"; then
11339      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11340$as_echo "$as_me: updating cache $cache_file" >&6;}
11341      if test ! -f "$cache_file" || test -h "$cache_file"; then
11342	cat confcache >"$cache_file"
11343      else
11344        case $cache_file in #(
11345        */* | ?:*)
11346	  mv -f confcache "$cache_file"$$ &&
11347	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11348        *)
11349	  mv -f confcache "$cache_file" ;;
11350	esac
11351      fi
11352    fi
11353  else
11354    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11355$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11356  fi
11357fi
11358rm -f confcache
11359
11360test "x$prefix" = xNONE && prefix=$ac_default_prefix
11361# Let make expand exec_prefix.
11362test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11363
11364DEFS=-DHAVE_CONFIG_H
11365
11366ac_libobjs=
11367ac_ltlibobjs=
11368U=
11369for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11370  # 1. Remove the extension, and $U if already installed.
11371  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11372  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11373  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11374  #    will be set to the directory where LIBOBJS objects are built.
11375  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11376  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11377done
11378LIBOBJS=$ac_libobjs
11379
11380LTLIBOBJS=$ac_ltlibobjs
11381
11382
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11384$as_echo_n "checking that generated files are newer than configure... " >&6; }
11385   if test -n "$am_sleep_pid"; then
11386     # Hide warnings about reused PIDs.
11387     wait $am_sleep_pid 2>/dev/null
11388   fi
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11390$as_echo "done" >&6; }
11391if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11392  as_fn_error $? "conditional \"AMDEP\" was never defined.
11393Usually this means the macro was only invoked conditionally." "$LINENO" 5
11394fi
11395if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11396  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11397Usually this means the macro was only invoked conditionally." "$LINENO" 5
11398fi
11399 if test -n "$EXEEXT"; then
11400  am__EXEEXT_TRUE=
11401  am__EXEEXT_FALSE='#'
11402else
11403  am__EXEEXT_TRUE='#'
11404  am__EXEEXT_FALSE=
11405fi
11406
11407
11408: "${CONFIG_STATUS=./config.status}"
11409ac_write_fail=0
11410ac_clean_files_save=$ac_clean_files
11411ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11414as_write_fail=0
11415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11416#! $SHELL
11417# Generated by $as_me.
11418# Run this file to recreate the current configuration.
11419# Compiler output produced by configure, useful for debugging
11420# configure, is in config.log if it exists.
11421
11422debug=false
11423ac_cs_recheck=false
11424ac_cs_silent=false
11425
11426SHELL=\${CONFIG_SHELL-$SHELL}
11427export SHELL
11428_ASEOF
11429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11430## -------------------- ##
11431## M4sh Initialization. ##
11432## -------------------- ##
11433
11434# Be more Bourne compatible
11435DUALCASE=1; export DUALCASE # for MKS sh
11436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11437  emulate sh
11438  NULLCMD=:
11439  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11440  # is contrary to our usage.  Disable this feature.
11441  alias -g '${1+"$@"}'='"$@"'
11442  setopt NO_GLOB_SUBST
11443else
11444  case `(set -o) 2>/dev/null` in #(
11445  *posix*) :
11446    set -o posix ;; #(
11447  *) :
11448     ;;
11449esac
11450fi
11451
11452
11453as_nl='
11454'
11455export as_nl
11456# Printing a long string crashes Solaris 7 /usr/bin/printf.
11457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11460# Prefer a ksh shell builtin over an external printf program on Solaris,
11461# but without wasting forks for bash or zsh.
11462if test -z "$BASH_VERSION$ZSH_VERSION" \
11463    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11464  as_echo='print -r --'
11465  as_echo_n='print -rn --'
11466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11467  as_echo='printf %s\n'
11468  as_echo_n='printf %s'
11469else
11470  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11471    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11472    as_echo_n='/usr/ucb/echo -n'
11473  else
11474    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11475    as_echo_n_body='eval
11476      arg=$1;
11477      case $arg in #(
11478      *"$as_nl"*)
11479	expr "X$arg" : "X\\(.*\\)$as_nl";
11480	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11481      esac;
11482      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11483    '
11484    export as_echo_n_body
11485    as_echo_n='sh -c $as_echo_n_body as_echo'
11486  fi
11487  export as_echo_body
11488  as_echo='sh -c $as_echo_body as_echo'
11489fi
11490
11491# The user is always right.
11492if test "${PATH_SEPARATOR+set}" != set; then
11493  PATH_SEPARATOR=:
11494  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11495    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11496      PATH_SEPARATOR=';'
11497  }
11498fi
11499
11500
11501# IFS
11502# We need space, tab and new line, in precisely that order.  Quoting is
11503# there to prevent editors from complaining about space-tab.
11504# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505# splitting by setting IFS to empty value.)
11506IFS=" ""	$as_nl"
11507
11508# Find who we are.  Look in the path if we contain no directory separator.
11509as_myself=
11510case $0 in #((
11511  *[\\/]* ) as_myself=$0 ;;
11512  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515  IFS=$as_save_IFS
11516  test -z "$as_dir" && as_dir=.
11517    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11518  done
11519IFS=$as_save_IFS
11520
11521     ;;
11522esac
11523# We did not find ourselves, most probably we were run as `sh COMMAND'
11524# in which case we are not to be found in the path.
11525if test "x$as_myself" = x; then
11526  as_myself=$0
11527fi
11528if test ! -f "$as_myself"; then
11529  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11530  exit 1
11531fi
11532
11533# Unset variables that we do not need and which cause bugs (e.g. in
11534# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11535# suppresses any "Segmentation fault" message there.  '((' could
11536# trigger a bug in pdksh 5.2.14.
11537for as_var in BASH_ENV ENV MAIL MAILPATH
11538do eval test x\${$as_var+set} = xset \
11539  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11540done
11541PS1='$ '
11542PS2='> '
11543PS4='+ '
11544
11545# NLS nuisances.
11546LC_ALL=C
11547export LC_ALL
11548LANGUAGE=C
11549export LANGUAGE
11550
11551# CDPATH.
11552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11553
11554
11555# as_fn_error STATUS ERROR [LINENO LOG_FD]
11556# ----------------------------------------
11557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11559# script with STATUS, using 1 if that was 0.
11560as_fn_error ()
11561{
11562  as_status=$1; test $as_status -eq 0 && as_status=1
11563  if test "$4"; then
11564    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11565    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11566  fi
11567  $as_echo "$as_me: error: $2" >&2
11568  as_fn_exit $as_status
11569} # as_fn_error
11570
11571
11572# as_fn_set_status STATUS
11573# -----------------------
11574# Set $? to STATUS, without forking.
11575as_fn_set_status ()
11576{
11577  return $1
11578} # as_fn_set_status
11579
11580# as_fn_exit STATUS
11581# -----------------
11582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11583as_fn_exit ()
11584{
11585  set +e
11586  as_fn_set_status $1
11587  exit $1
11588} # as_fn_exit
11589
11590# as_fn_unset VAR
11591# ---------------
11592# Portably unset VAR.
11593as_fn_unset ()
11594{
11595  { eval $1=; unset $1;}
11596}
11597as_unset=as_fn_unset
11598# as_fn_append VAR VALUE
11599# ----------------------
11600# Append the text in VALUE to the end of the definition contained in VAR. Take
11601# advantage of any shell optimizations that allow amortized linear growth over
11602# repeated appends, instead of the typical quadratic growth present in naive
11603# implementations.
11604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11605  eval 'as_fn_append ()
11606  {
11607    eval $1+=\$2
11608  }'
11609else
11610  as_fn_append ()
11611  {
11612    eval $1=\$$1\$2
11613  }
11614fi # as_fn_append
11615
11616# as_fn_arith ARG...
11617# ------------------
11618# Perform arithmetic evaluation on the ARGs, and store the result in the
11619# global $as_val. Take advantage of shells that can avoid forks. The arguments
11620# must be portable across $(()) and expr.
11621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11622  eval 'as_fn_arith ()
11623  {
11624    as_val=$(( $* ))
11625  }'
11626else
11627  as_fn_arith ()
11628  {
11629    as_val=`expr "$@" || test $? -eq 1`
11630  }
11631fi # as_fn_arith
11632
11633
11634if expr a : '\(a\)' >/dev/null 2>&1 &&
11635   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11636  as_expr=expr
11637else
11638  as_expr=false
11639fi
11640
11641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11642  as_basename=basename
11643else
11644  as_basename=false
11645fi
11646
11647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11648  as_dirname=dirname
11649else
11650  as_dirname=false
11651fi
11652
11653as_me=`$as_basename -- "$0" ||
11654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11655	 X"$0" : 'X\(//\)$' \| \
11656	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11657$as_echo X/"$0" |
11658    sed '/^.*\/\([^/][^/]*\)\/*$/{
11659	    s//\1/
11660	    q
11661	  }
11662	  /^X\/\(\/\/\)$/{
11663	    s//\1/
11664	    q
11665	  }
11666	  /^X\/\(\/\).*/{
11667	    s//\1/
11668	    q
11669	  }
11670	  s/.*/./; q'`
11671
11672# Avoid depending upon Character Ranges.
11673as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11675as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11676as_cr_digits='0123456789'
11677as_cr_alnum=$as_cr_Letters$as_cr_digits
11678
11679ECHO_C= ECHO_N= ECHO_T=
11680case `echo -n x` in #(((((
11681-n*)
11682  case `echo 'xy\c'` in
11683  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11684  xy)  ECHO_C='\c';;
11685  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11686       ECHO_T='	';;
11687  esac;;
11688*)
11689  ECHO_N='-n';;
11690esac
11691
11692rm -f conf$$ conf$$.exe conf$$.file
11693if test -d conf$$.dir; then
11694  rm -f conf$$.dir/conf$$.file
11695else
11696  rm -f conf$$.dir
11697  mkdir conf$$.dir 2>/dev/null
11698fi
11699if (echo >conf$$.file) 2>/dev/null; then
11700  if ln -s conf$$.file conf$$ 2>/dev/null; then
11701    as_ln_s='ln -s'
11702    # ... but there are two gotchas:
11703    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11704    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11705    # In both cases, we have to default to `cp -pR'.
11706    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11707      as_ln_s='cp -pR'
11708  elif ln conf$$.file conf$$ 2>/dev/null; then
11709    as_ln_s=ln
11710  else
11711    as_ln_s='cp -pR'
11712  fi
11713else
11714  as_ln_s='cp -pR'
11715fi
11716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11717rmdir conf$$.dir 2>/dev/null
11718
11719
11720# as_fn_mkdir_p
11721# -------------
11722# Create "$as_dir" as a directory, including parents if necessary.
11723as_fn_mkdir_p ()
11724{
11725
11726  case $as_dir in #(
11727  -*) as_dir=./$as_dir;;
11728  esac
11729  test -d "$as_dir" || eval $as_mkdir_p || {
11730    as_dirs=
11731    while :; do
11732      case $as_dir in #(
11733      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11734      *) as_qdir=$as_dir;;
11735      esac
11736      as_dirs="'$as_qdir' $as_dirs"
11737      as_dir=`$as_dirname -- "$as_dir" ||
11738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11739	 X"$as_dir" : 'X\(//\)[^/]' \| \
11740	 X"$as_dir" : 'X\(//\)$' \| \
11741	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11742$as_echo X"$as_dir" |
11743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11744	    s//\1/
11745	    q
11746	  }
11747	  /^X\(\/\/\)[^/].*/{
11748	    s//\1/
11749	    q
11750	  }
11751	  /^X\(\/\/\)$/{
11752	    s//\1/
11753	    q
11754	  }
11755	  /^X\(\/\).*/{
11756	    s//\1/
11757	    q
11758	  }
11759	  s/.*/./; q'`
11760      test -d "$as_dir" && break
11761    done
11762    test -z "$as_dirs" || eval "mkdir $as_dirs"
11763  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11764
11765
11766} # as_fn_mkdir_p
11767if mkdir -p . 2>/dev/null; then
11768  as_mkdir_p='mkdir -p "$as_dir"'
11769else
11770  test -d ./-p && rmdir ./-p
11771  as_mkdir_p=false
11772fi
11773
11774
11775# as_fn_executable_p FILE
11776# -----------------------
11777# Test if FILE is an executable regular file.
11778as_fn_executable_p ()
11779{
11780  test -f "$1" && test -x "$1"
11781} # as_fn_executable_p
11782as_test_x='test -x'
11783as_executable_p=as_fn_executable_p
11784
11785# Sed expression to map a string onto a valid CPP name.
11786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11787
11788# Sed expression to map a string onto a valid variable name.
11789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11790
11791
11792exec 6>&1
11793## ----------------------------------- ##
11794## Main body of $CONFIG_STATUS script. ##
11795## ----------------------------------- ##
11796_ASEOF
11797test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11798
11799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800# Save the log message, to keep $0 and so on meaningful, and to
11801# report actual input values of CONFIG_FILES etc. instead of their
11802# values after options handling.
11803ac_log="
11804This file was extended by twm $as_me 1.0.12, which was
11805generated by GNU Autoconf 2.69.  Invocation command line was
11806
11807  CONFIG_FILES    = $CONFIG_FILES
11808  CONFIG_HEADERS  = $CONFIG_HEADERS
11809  CONFIG_LINKS    = $CONFIG_LINKS
11810  CONFIG_COMMANDS = $CONFIG_COMMANDS
11811  $ $0 $@
11812
11813on `(hostname || uname -n) 2>/dev/null | sed 1q`
11814"
11815
11816_ACEOF
11817
11818case $ac_config_files in *"
11819"*) set x $ac_config_files; shift; ac_config_files=$*;;
11820esac
11821
11822case $ac_config_headers in *"
11823"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11824esac
11825
11826
11827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828# Files that config.status was made for.
11829config_files="$ac_config_files"
11830config_headers="$ac_config_headers"
11831config_commands="$ac_config_commands"
11832
11833_ACEOF
11834
11835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836ac_cs_usage="\
11837\`$as_me' instantiates files and other configuration actions
11838from templates according to the current configuration.  Unless the files
11839and actions are specified as TAGs, all are instantiated by default.
11840
11841Usage: $0 [OPTION]... [TAG]...
11842
11843  -h, --help       print this help, then exit
11844  -V, --version    print version number and configuration settings, then exit
11845      --config     print configuration, then exit
11846  -q, --quiet, --silent
11847                   do not print progress messages
11848  -d, --debug      don't remove temporary files
11849      --recheck    update $as_me by reconfiguring in the same conditions
11850      --file=FILE[:TEMPLATE]
11851                   instantiate the configuration file FILE
11852      --header=FILE[:TEMPLATE]
11853                   instantiate the configuration header FILE
11854
11855Configuration files:
11856$config_files
11857
11858Configuration headers:
11859$config_headers
11860
11861Configuration commands:
11862$config_commands
11863
11864Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>."
11865
11866_ACEOF
11867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11868ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11869ac_cs_version="\\
11870twm config.status 1.0.12
11871configured by $0, generated by GNU Autoconf 2.69,
11872  with options \\"\$ac_cs_config\\"
11873
11874Copyright (C) 2012 Free Software Foundation, Inc.
11875This config.status script is free software; the Free Software Foundation
11876gives unlimited permission to copy, distribute and modify it."
11877
11878ac_pwd='$ac_pwd'
11879srcdir='$srcdir'
11880INSTALL='$INSTALL'
11881MKDIR_P='$MKDIR_P'
11882AWK='$AWK'
11883test -n "\$AWK" || AWK=awk
11884_ACEOF
11885
11886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11887# The default lists apply if the user does not specify any file.
11888ac_need_defaults=:
11889while test $# != 0
11890do
11891  case $1 in
11892  --*=?*)
11893    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11894    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11895    ac_shift=:
11896    ;;
11897  --*=)
11898    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11899    ac_optarg=
11900    ac_shift=:
11901    ;;
11902  *)
11903    ac_option=$1
11904    ac_optarg=$2
11905    ac_shift=shift
11906    ;;
11907  esac
11908
11909  case $ac_option in
11910  # Handling of the options.
11911  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11912    ac_cs_recheck=: ;;
11913  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11914    $as_echo "$ac_cs_version"; exit ;;
11915  --config | --confi | --conf | --con | --co | --c )
11916    $as_echo "$ac_cs_config"; exit ;;
11917  --debug | --debu | --deb | --de | --d | -d )
11918    debug=: ;;
11919  --file | --fil | --fi | --f )
11920    $ac_shift
11921    case $ac_optarg in
11922    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11923    '') as_fn_error $? "missing file argument" ;;
11924    esac
11925    as_fn_append CONFIG_FILES " '$ac_optarg'"
11926    ac_need_defaults=false;;
11927  --header | --heade | --head | --hea )
11928    $ac_shift
11929    case $ac_optarg in
11930    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11931    esac
11932    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11933    ac_need_defaults=false;;
11934  --he | --h)
11935    # Conflict between --help and --header
11936    as_fn_error $? "ambiguous option: \`$1'
11937Try \`$0 --help' for more information.";;
11938  --help | --hel | -h )
11939    $as_echo "$ac_cs_usage"; exit ;;
11940  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11941  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11942    ac_cs_silent=: ;;
11943
11944  # This is an error.
11945  -*) as_fn_error $? "unrecognized option: \`$1'
11946Try \`$0 --help' for more information." ;;
11947
11948  *) as_fn_append ac_config_targets " $1"
11949     ac_need_defaults=false ;;
11950
11951  esac
11952  shift
11953done
11954
11955ac_configure_extra_args=
11956
11957if $ac_cs_silent; then
11958  exec 6>/dev/null
11959  ac_configure_extra_args="$ac_configure_extra_args --silent"
11960fi
11961
11962_ACEOF
11963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964if \$ac_cs_recheck; then
11965  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11966  shift
11967  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11968  CONFIG_SHELL='$SHELL'
11969  export CONFIG_SHELL
11970  exec "\$@"
11971fi
11972
11973_ACEOF
11974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11975exec 5>>config.log
11976{
11977  echo
11978  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11979## Running $as_me. ##
11980_ASBOX
11981  $as_echo "$ac_log"
11982} >&5
11983
11984_ACEOF
11985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986#
11987# INIT-COMMANDS
11988#
11989AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11990
11991_ACEOF
11992
11993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994
11995# Handling of arguments.
11996for ac_config_target in $ac_config_targets
11997do
11998  case $ac_config_target in
11999    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12000    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12001    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12002    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12003    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12004
12005  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12006  esac
12007done
12008
12009
12010# If the user did not use the arguments to specify the items to instantiate,
12011# then the envvar interface is used.  Set only those that are not.
12012# We use the long form for the default assignment because of an extremely
12013# bizarre bug on SunOS 4.1.3.
12014if $ac_need_defaults; then
12015  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12016  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12017  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12018fi
12019
12020# Have a temporary directory for convenience.  Make it in the build tree
12021# simply because there is no reason against having it here, and in addition,
12022# creating and moving files from /tmp can sometimes cause problems.
12023# Hook for its removal unless debugging.
12024# Note that there is a small window in which the directory will not be cleaned:
12025# after its creation but before its name has been assigned to `$tmp'.
12026$debug ||
12027{
12028  tmp= ac_tmp=
12029  trap 'exit_status=$?
12030  : "${ac_tmp:=$tmp}"
12031  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12032' 0
12033  trap 'as_fn_exit 1' 1 2 13 15
12034}
12035# Create a (secure) tmp directory for tmp files.
12036
12037{
12038  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12039  test -d "$tmp"
12040}  ||
12041{
12042  tmp=./conf$$-$RANDOM
12043  (umask 077 && mkdir "$tmp")
12044} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12045ac_tmp=$tmp
12046
12047# Set up the scripts for CONFIG_FILES section.
12048# No need to generate them if there are no CONFIG_FILES.
12049# This happens for instance with `./config.status config.h'.
12050if test -n "$CONFIG_FILES"; then
12051
12052
12053ac_cr=`echo X | tr X '\015'`
12054# On cygwin, bash can eat \r inside `` if the user requested igncr.
12055# But we know of no other shell where ac_cr would be empty at this
12056# point, so we can use a bashism as a fallback.
12057if test "x$ac_cr" = x; then
12058  eval ac_cr=\$\'\\r\'
12059fi
12060ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12061if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12062  ac_cs_awk_cr='\\r'
12063else
12064  ac_cs_awk_cr=$ac_cr
12065fi
12066
12067echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12068_ACEOF
12069
12070
12071{
12072  echo "cat >conf$$subs.awk <<_ACEOF" &&
12073  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12074  echo "_ACEOF"
12075} >conf$$subs.sh ||
12076  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12077ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12078ac_delim='%!_!# '
12079for ac_last_try in false false false false false :; do
12080  . ./conf$$subs.sh ||
12081    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12082
12083  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12084  if test $ac_delim_n = $ac_delim_num; then
12085    break
12086  elif $ac_last_try; then
12087    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12088  else
12089    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12090  fi
12091done
12092rm -f conf$$subs.sh
12093
12094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12095cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12096_ACEOF
12097sed -n '
12098h
12099s/^/S["/; s/!.*/"]=/
12100p
12101g
12102s/^[^!]*!//
12103:repl
12104t repl
12105s/'"$ac_delim"'$//
12106t delim
12107:nl
12108h
12109s/\(.\{148\}\)..*/\1/
12110t more1
12111s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12112p
12113n
12114b repl
12115:more1
12116s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12117p
12118g
12119s/.\{148\}//
12120t nl
12121:delim
12122h
12123s/\(.\{148\}\)..*/\1/
12124t more2
12125s/["\\]/\\&/g; s/^/"/; s/$/"/
12126p
12127b
12128:more2
12129s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12130p
12131g
12132s/.\{148\}//
12133t delim
12134' <conf$$subs.awk | sed '
12135/^[^""]/{
12136  N
12137  s/\n//
12138}
12139' >>$CONFIG_STATUS || ac_write_fail=1
12140rm -f conf$$subs.awk
12141cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12142_ACAWK
12143cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12144  for (key in S) S_is_set[key] = 1
12145  FS = ""
12146
12147}
12148{
12149  line = $ 0
12150  nfields = split(line, field, "@")
12151  substed = 0
12152  len = length(field[1])
12153  for (i = 2; i < nfields; i++) {
12154    key = field[i]
12155    keylen = length(key)
12156    if (S_is_set[key]) {
12157      value = S[key]
12158      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12159      len += length(value) + length(field[++i])
12160      substed = 1
12161    } else
12162      len += 1 + keylen
12163  }
12164
12165  print line
12166}
12167
12168_ACAWK
12169_ACEOF
12170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12172  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12173else
12174  cat
12175fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12176  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12177_ACEOF
12178
12179# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12180# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12181# trailing colons and then remove the whole line if VPATH becomes empty
12182# (actually we leave an empty line to preserve line numbers).
12183if test "x$srcdir" = x.; then
12184  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12185h
12186s///
12187s/^/:/
12188s/[	 ]*$/:/
12189s/:\$(srcdir):/:/g
12190s/:\${srcdir}:/:/g
12191s/:@srcdir@:/:/g
12192s/^:*//
12193s/:*$//
12194x
12195s/\(=[	 ]*\).*/\1/
12196G
12197s/\n//
12198s/^[^=]*=[	 ]*$//
12199}'
12200fi
12201
12202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12203fi # test -n "$CONFIG_FILES"
12204
12205# Set up the scripts for CONFIG_HEADERS section.
12206# No need to generate them if there are no CONFIG_HEADERS.
12207# This happens for instance with `./config.status Makefile'.
12208if test -n "$CONFIG_HEADERS"; then
12209cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12210BEGIN {
12211_ACEOF
12212
12213# Transform confdefs.h into an awk script `defines.awk', embedded as
12214# here-document in config.status, that substitutes the proper values into
12215# config.h.in to produce config.h.
12216
12217# Create a delimiter string that does not exist in confdefs.h, to ease
12218# handling of long lines.
12219ac_delim='%!_!# '
12220for ac_last_try in false false :; do
12221  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12222  if test -z "$ac_tt"; then
12223    break
12224  elif $ac_last_try; then
12225    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12226  else
12227    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12228  fi
12229done
12230
12231# For the awk script, D is an array of macro values keyed by name,
12232# likewise P contains macro parameters if any.  Preserve backslash
12233# newline sequences.
12234
12235ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12236sed -n '
12237s/.\{148\}/&'"$ac_delim"'/g
12238t rset
12239:rset
12240s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12241t def
12242d
12243:def
12244s/\\$//
12245t bsnl
12246s/["\\]/\\&/g
12247s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12248D["\1"]=" \3"/p
12249s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12250d
12251:bsnl
12252s/["\\]/\\&/g
12253s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12254D["\1"]=" \3\\\\\\n"\\/p
12255t cont
12256s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12257t cont
12258d
12259:cont
12260n
12261s/.\{148\}/&'"$ac_delim"'/g
12262t clear
12263:clear
12264s/\\$//
12265t bsnlc
12266s/["\\]/\\&/g; s/^/"/; s/$/"/p
12267d
12268:bsnlc
12269s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12270b cont
12271' <confdefs.h | sed '
12272s/'"$ac_delim"'/"\\\
12273"/g' >>$CONFIG_STATUS || ac_write_fail=1
12274
12275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12276  for (key in D) D_is_set[key] = 1
12277  FS = ""
12278}
12279/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12280  line = \$ 0
12281  split(line, arg, " ")
12282  if (arg[1] == "#") {
12283    defundef = arg[2]
12284    mac1 = arg[3]
12285  } else {
12286    defundef = substr(arg[1], 2)
12287    mac1 = arg[2]
12288  }
12289  split(mac1, mac2, "(") #)
12290  macro = mac2[1]
12291  prefix = substr(line, 1, index(line, defundef) - 1)
12292  if (D_is_set[macro]) {
12293    # Preserve the white space surrounding the "#".
12294    print prefix "define", macro P[macro] D[macro]
12295    next
12296  } else {
12297    # Replace #undef with comments.  This is necessary, for example,
12298    # in the case of _POSIX_SOURCE, which is predefined and required
12299    # on some systems where configure will not decide to define it.
12300    if (defundef == "undef") {
12301      print "/*", prefix defundef, macro, "*/"
12302      next
12303    }
12304  }
12305}
12306{ print }
12307_ACAWK
12308_ACEOF
12309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12311fi # test -n "$CONFIG_HEADERS"
12312
12313
12314eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12315shift
12316for ac_tag
12317do
12318  case $ac_tag in
12319  :[FHLC]) ac_mode=$ac_tag; continue;;
12320  esac
12321  case $ac_mode$ac_tag in
12322  :[FHL]*:*);;
12323  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12324  :[FH]-) ac_tag=-:-;;
12325  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12326  esac
12327  ac_save_IFS=$IFS
12328  IFS=:
12329  set x $ac_tag
12330  IFS=$ac_save_IFS
12331  shift
12332  ac_file=$1
12333  shift
12334
12335  case $ac_mode in
12336  :L) ac_source=$1;;
12337  :[FH])
12338    ac_file_inputs=
12339    for ac_f
12340    do
12341      case $ac_f in
12342      -) ac_f="$ac_tmp/stdin";;
12343      *) # Look for the file first in the build tree, then in the source tree
12344	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12345	 # because $ac_f cannot contain `:'.
12346	 test -f "$ac_f" ||
12347	   case $ac_f in
12348	   [\\/$]*) false;;
12349	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12350	   esac ||
12351	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12352      esac
12353      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12354      as_fn_append ac_file_inputs " '$ac_f'"
12355    done
12356
12357    # Let's still pretend it is `configure' which instantiates (i.e., don't
12358    # use $as_me), people would be surprised to read:
12359    #    /* config.h.  Generated by config.status.  */
12360    configure_input='Generated from '`
12361	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12362	`' by configure.'
12363    if test x"$ac_file" != x-; then
12364      configure_input="$ac_file.  $configure_input"
12365      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12366$as_echo "$as_me: creating $ac_file" >&6;}
12367    fi
12368    # Neutralize special characters interpreted by sed in replacement strings.
12369    case $configure_input in #(
12370    *\&* | *\|* | *\\* )
12371       ac_sed_conf_input=`$as_echo "$configure_input" |
12372       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12373    *) ac_sed_conf_input=$configure_input;;
12374    esac
12375
12376    case $ac_tag in
12377    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12378      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12379    esac
12380    ;;
12381  esac
12382
12383  ac_dir=`$as_dirname -- "$ac_file" ||
12384$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12385	 X"$ac_file" : 'X\(//\)[^/]' \| \
12386	 X"$ac_file" : 'X\(//\)$' \| \
12387	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12388$as_echo X"$ac_file" |
12389    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12390	    s//\1/
12391	    q
12392	  }
12393	  /^X\(\/\/\)[^/].*/{
12394	    s//\1/
12395	    q
12396	  }
12397	  /^X\(\/\/\)$/{
12398	    s//\1/
12399	    q
12400	  }
12401	  /^X\(\/\).*/{
12402	    s//\1/
12403	    q
12404	  }
12405	  s/.*/./; q'`
12406  as_dir="$ac_dir"; as_fn_mkdir_p
12407  ac_builddir=.
12408
12409case "$ac_dir" in
12410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12411*)
12412  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12413  # A ".." for each directory in $ac_dir_suffix.
12414  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12415  case $ac_top_builddir_sub in
12416  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12417  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12418  esac ;;
12419esac
12420ac_abs_top_builddir=$ac_pwd
12421ac_abs_builddir=$ac_pwd$ac_dir_suffix
12422# for backward compatibility:
12423ac_top_builddir=$ac_top_build_prefix
12424
12425case $srcdir in
12426  .)  # We are building in place.
12427    ac_srcdir=.
12428    ac_top_srcdir=$ac_top_builddir_sub
12429    ac_abs_top_srcdir=$ac_pwd ;;
12430  [\\/]* | ?:[\\/]* )  # Absolute name.
12431    ac_srcdir=$srcdir$ac_dir_suffix;
12432    ac_top_srcdir=$srcdir
12433    ac_abs_top_srcdir=$srcdir ;;
12434  *) # Relative name.
12435    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12436    ac_top_srcdir=$ac_top_build_prefix$srcdir
12437    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12438esac
12439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12440
12441
12442  case $ac_mode in
12443  :F)
12444  #
12445  # CONFIG_FILE
12446  #
12447
12448  case $INSTALL in
12449  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12450  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12451  esac
12452  ac_MKDIR_P=$MKDIR_P
12453  case $MKDIR_P in
12454  [\\/$]* | ?:[\\/]* ) ;;
12455  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12456  esac
12457_ACEOF
12458
12459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12460# If the template does not know about datarootdir, expand it.
12461# FIXME: This hack should be removed a few years after 2.60.
12462ac_datarootdir_hack=; ac_datarootdir_seen=
12463ac_sed_dataroot='
12464/datarootdir/ {
12465  p
12466  q
12467}
12468/@datadir@/p
12469/@docdir@/p
12470/@infodir@/p
12471/@localedir@/p
12472/@mandir@/p'
12473case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12474*datarootdir*) ac_datarootdir_seen=yes;;
12475*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12476  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12477$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12478_ACEOF
12479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12480  ac_datarootdir_hack='
12481  s&@datadir@&$datadir&g
12482  s&@docdir@&$docdir&g
12483  s&@infodir@&$infodir&g
12484  s&@localedir@&$localedir&g
12485  s&@mandir@&$mandir&g
12486  s&\\\${datarootdir}&$datarootdir&g' ;;
12487esac
12488_ACEOF
12489
12490# Neutralize VPATH when `$srcdir' = `.'.
12491# Shell code in configure.ac might set extrasub.
12492# FIXME: do we really want to maintain this feature?
12493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12494ac_sed_extra="$ac_vpsub
12495$extrasub
12496_ACEOF
12497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12498:t
12499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12500s|@configure_input@|$ac_sed_conf_input|;t t
12501s&@top_builddir@&$ac_top_builddir_sub&;t t
12502s&@top_build_prefix@&$ac_top_build_prefix&;t t
12503s&@srcdir@&$ac_srcdir&;t t
12504s&@abs_srcdir@&$ac_abs_srcdir&;t t
12505s&@top_srcdir@&$ac_top_srcdir&;t t
12506s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12507s&@builddir@&$ac_builddir&;t t
12508s&@abs_builddir@&$ac_abs_builddir&;t t
12509s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12510s&@INSTALL@&$ac_INSTALL&;t t
12511s&@MKDIR_P@&$ac_MKDIR_P&;t t
12512$ac_datarootdir_hack
12513"
12514eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12515  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12516
12517test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12518  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12519  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12520      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12521  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12522which seems to be undefined.  Please make sure it is defined" >&5
12523$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12524which seems to be undefined.  Please make sure it is defined" >&2;}
12525
12526  rm -f "$ac_tmp/stdin"
12527  case $ac_file in
12528  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12529  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12530  esac \
12531  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12532 ;;
12533  :H)
12534  #
12535  # CONFIG_HEADER
12536  #
12537  if test x"$ac_file" != x-; then
12538    {
12539      $as_echo "/* $configure_input  */" \
12540      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12541    } >"$ac_tmp/config.h" \
12542      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12543    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12544      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12545$as_echo "$as_me: $ac_file is unchanged" >&6;}
12546    else
12547      rm -f "$ac_file"
12548      mv "$ac_tmp/config.h" "$ac_file" \
12549	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12550    fi
12551  else
12552    $as_echo "/* $configure_input  */" \
12553      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12554      || as_fn_error $? "could not create -" "$LINENO" 5
12555  fi
12556# Compute "$ac_file"'s index in $config_headers.
12557_am_arg="$ac_file"
12558_am_stamp_count=1
12559for _am_header in $config_headers :; do
12560  case $_am_header in
12561    $_am_arg | $_am_arg:* )
12562      break ;;
12563    * )
12564      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12565  esac
12566done
12567echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12568$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12569	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12570	 X"$_am_arg" : 'X\(//\)$' \| \
12571	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12572$as_echo X"$_am_arg" |
12573    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12574	    s//\1/
12575	    q
12576	  }
12577	  /^X\(\/\/\)[^/].*/{
12578	    s//\1/
12579	    q
12580	  }
12581	  /^X\(\/\/\)$/{
12582	    s//\1/
12583	    q
12584	  }
12585	  /^X\(\/\).*/{
12586	    s//\1/
12587	    q
12588	  }
12589	  s/.*/./; q'`/stamp-h$_am_stamp_count
12590 ;;
12591
12592  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12593$as_echo "$as_me: executing $ac_file commands" >&6;}
12594 ;;
12595  esac
12596
12597
12598  case $ac_file$ac_mode in
12599    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12600  # Older Autoconf quotes --file arguments for eval, but not when files
12601  # are listed without --file.  Let's play safe and only enable the eval
12602  # if we detect the quoting.
12603  case $CONFIG_FILES in
12604  *\'*) eval set x "$CONFIG_FILES" ;;
12605  *)   set x $CONFIG_FILES ;;
12606  esac
12607  shift
12608  for mf
12609  do
12610    # Strip MF so we end up with the name of the file.
12611    mf=`echo "$mf" | sed -e 's/:.*$//'`
12612    # Check whether this is an Automake generated Makefile or not.
12613    # We used to match only the files named 'Makefile.in', but
12614    # some people rename them; so instead we look at the file content.
12615    # Grep'ing the first line is not enough: some people post-process
12616    # each Makefile.in and add a new line on top of each file to say so.
12617    # Grep'ing the whole file is not good either: AIX grep has a line
12618    # limit of 2048, but all sed's we know have understand at least 4000.
12619    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12620      dirpart=`$as_dirname -- "$mf" ||
12621$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622	 X"$mf" : 'X\(//\)[^/]' \| \
12623	 X"$mf" : 'X\(//\)$' \| \
12624	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12625$as_echo X"$mf" |
12626    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12627	    s//\1/
12628	    q
12629	  }
12630	  /^X\(\/\/\)[^/].*/{
12631	    s//\1/
12632	    q
12633	  }
12634	  /^X\(\/\/\)$/{
12635	    s//\1/
12636	    q
12637	  }
12638	  /^X\(\/\).*/{
12639	    s//\1/
12640	    q
12641	  }
12642	  s/.*/./; q'`
12643    else
12644      continue
12645    fi
12646    # Extract the definition of DEPDIR, am__include, and am__quote
12647    # from the Makefile without running 'make'.
12648    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12649    test -z "$DEPDIR" && continue
12650    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12651    test -z "$am__include" && continue
12652    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12653    # Find all dependency output files, they are included files with
12654    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12655    # simplest approach to changing $(DEPDIR) to its actual value in the
12656    # expansion.
12657    for file in `sed -n "
12658      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12659	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12660      # Make sure the directory exists.
12661      test -f "$dirpart/$file" && continue
12662      fdir=`$as_dirname -- "$file" ||
12663$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12664	 X"$file" : 'X\(//\)[^/]' \| \
12665	 X"$file" : 'X\(//\)$' \| \
12666	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12667$as_echo X"$file" |
12668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12669	    s//\1/
12670	    q
12671	  }
12672	  /^X\(\/\/\)[^/].*/{
12673	    s//\1/
12674	    q
12675	  }
12676	  /^X\(\/\/\)$/{
12677	    s//\1/
12678	    q
12679	  }
12680	  /^X\(\/\).*/{
12681	    s//\1/
12682	    q
12683	  }
12684	  s/.*/./; q'`
12685      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12686      # echo "creating $dirpart/$file"
12687      echo '# dummy' > "$dirpart/$file"
12688    done
12689  done
12690}
12691 ;;
12692
12693  esac
12694done # for ac_tag
12695
12696
12697as_fn_exit 0
12698_ACEOF
12699ac_clean_files=$ac_clean_files_save
12700
12701test $ac_write_fail = 0 ||
12702  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12703
12704
12705# configure is writing to config.log, and then calls config.status.
12706# config.status does its own redirection, appending to config.log.
12707# Unfortunately, on DOS this fails, as config.log is still kept open
12708# by configure, so config.status won't be able to write to it; its
12709# output is simply discarded.  So we exec the FD to /dev/null,
12710# effectively closing config.log, so it can be properly (re)opened and
12711# appended to by config.status.  When coming back to configure, we
12712# need to make the FD available again.
12713if test "$no_create" != yes; then
12714  ac_cs_success=:
12715  ac_config_status_args=
12716  test "$silent" = yes &&
12717    ac_config_status_args="$ac_config_status_args --quiet"
12718  exec 5>/dev/null
12719  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12720  exec 5>>config.log
12721  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12722  # would make configure fail if this is the last instruction.
12723  $ac_cs_success || as_fn_exit 1
12724fi
12725if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12726  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12727$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12728fi
12729
12730