configure revision 9cd34f4b
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for twm 1.0.9.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202  if (eval "$as_required") 2>/dev/null; then :
203  as_have_required=yes
204else
205  as_have_required=no
206fi
207  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214  IFS=$as_save_IFS
215  test -z "$as_dir" && as_dir=.
216  as_found=:
217  case $as_dir in #(
218	 /*)
219	   for as_base in sh bash ksh sh5; do
220	     # Try only shells that exist, to save several forks.
221	     as_shell=$as_dir/$as_base
222	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226  break 2
227fi
228fi
229	   done;;
230       esac
231  as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235  CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240      if test "x$CONFIG_SHELL" != x; then :
241  export CONFIG_SHELL
242             # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250  *v*x* | *x*v* ) as_opts=-vx ;;
251  *v* ) as_opts=-v ;;
252  *x* ) as_opts=-x ;;
253  * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262    if test x$as_have_required = xno; then :
263  $as_echo "$0: This script requires a shell more modern than all"
264  $as_echo "$0: the shells that I found on your system."
265  if test x${ZSH_VERSION+set} = xset ; then
266    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268  else
269    $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271$0: about your system, including any error possibly output
272$0: before this message. Then install a modern shell, or
273$0: manually run the script under such a shell if you do
274$0: have one."
275  fi
276  exit 1
277fi
278fi
279fi
280SHELL=${CONFIG_SHELL-/bin/sh}
281export SHELL
282# Unset more variables known to interfere with behavior of common tools.
283CLICOLOR_FORCE= GREP_OPTIONS=
284unset CLICOLOR_FORCE GREP_OPTIONS
285
286## --------------------- ##
287## M4sh Shell Functions. ##
288## --------------------- ##
289# as_fn_unset VAR
290# ---------------
291# Portably unset VAR.
292as_fn_unset ()
293{
294  { eval $1=; unset $1;}
295}
296as_unset=as_fn_unset
297
298# as_fn_set_status STATUS
299# -----------------------
300# Set $? to STATUS, without forking.
301as_fn_set_status ()
302{
303  return $1
304} # as_fn_set_status
305
306# as_fn_exit STATUS
307# -----------------
308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309as_fn_exit ()
310{
311  set +e
312  as_fn_set_status $1
313  exit $1
314} # as_fn_exit
315
316# as_fn_mkdir_p
317# -------------
318# Create "$as_dir" as a directory, including parents if necessary.
319as_fn_mkdir_p ()
320{
321
322  case $as_dir in #(
323  -*) as_dir=./$as_dir;;
324  esac
325  test -d "$as_dir" || eval $as_mkdir_p || {
326    as_dirs=
327    while :; do
328      case $as_dir in #(
329      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330      *) as_qdir=$as_dir;;
331      esac
332      as_dirs="'$as_qdir' $as_dirs"
333      as_dir=`$as_dirname -- "$as_dir" ||
334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335	 X"$as_dir" : 'X\(//\)[^/]' \| \
336	 X"$as_dir" : 'X\(//\)$' \| \
337	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338$as_echo X"$as_dir" |
339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)[^/].*/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\).*/{
352	    s//\1/
353	    q
354	  }
355	  s/.*/./; q'`
356      test -d "$as_dir" && break
357    done
358    test -z "$as_dirs" || eval "mkdir $as_dirs"
359  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362} # as_fn_mkdir_p
363
364# as_fn_executable_p FILE
365# -----------------------
366# Test if FILE is an executable regular file.
367as_fn_executable_p ()
368{
369  test -f "$1" && test -x "$1"
370} # as_fn_executable_p
371# as_fn_append VAR VALUE
372# ----------------------
373# Append the text in VALUE to the end of the definition contained in VAR. Take
374# advantage of any shell optimizations that allow amortized linear growth over
375# repeated appends, instead of the typical quadratic growth present in naive
376# implementations.
377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378  eval 'as_fn_append ()
379  {
380    eval $1+=\$2
381  }'
382else
383  as_fn_append ()
384  {
385    eval $1=\$$1\$2
386  }
387fi # as_fn_append
388
389# as_fn_arith ARG...
390# ------------------
391# Perform arithmetic evaluation on the ARGs, and store the result in the
392# global $as_val. Take advantage of shells that can avoid forks. The arguments
393# must be portable across $(()) and expr.
394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395  eval 'as_fn_arith ()
396  {
397    as_val=$(( $* ))
398  }'
399else
400  as_fn_arith ()
401  {
402    as_val=`expr "$@" || test $? -eq 1`
403  }
404fi # as_fn_arith
405
406
407# as_fn_error STATUS ERROR [LINENO LOG_FD]
408# ----------------------------------------
409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411# script with STATUS, using 1 if that was 0.
412as_fn_error ()
413{
414  as_status=$1; test $as_status -eq 0 && as_status=1
415  if test "$4"; then
416    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418  fi
419  $as_echo "$as_me: error: $2" >&2
420  as_fn_exit $as_status
421} # as_fn_error
422
423if expr a : '\(a\)' >/dev/null 2>&1 &&
424   test "X`expr 00001 : '.*\(...\)'`" = X001; then
425  as_expr=expr
426else
427  as_expr=false
428fi
429
430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431  as_basename=basename
432else
433  as_basename=false
434fi
435
436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437  as_dirname=dirname
438else
439  as_dirname=false
440fi
441
442as_me=`$as_basename -- "$0" ||
443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444	 X"$0" : 'X\(//\)$' \| \
445	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446$as_echo X/"$0" |
447    sed '/^.*\/\([^/][^/]*\)\/*$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\/\)$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\).*/{
456	    s//\1/
457	    q
458	  }
459	  s/.*/./; q'`
460
461# Avoid depending upon Character Ranges.
462as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465as_cr_digits='0123456789'
466as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469  as_lineno_1=$LINENO as_lineno_1a=$LINENO
470  as_lineno_2=$LINENO as_lineno_2a=$LINENO
471  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
474  sed -n '
475    p
476    /[$]LINENO/=
477  ' <$as_myself |
478    sed '
479      s/[$]LINENO.*/&-/
480      t lineno
481      b
482      :lineno
483      N
484      :loop
485      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486      t loop
487      s/-\n.*//
488    ' >$as_me.lineno &&
489  chmod +x "$as_me.lineno" ||
490    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493  # already done that, so ensure we don't try to do so again and fall
494  # in an infinite loop.  This has already happened in practice.
495  _as_can_reexec=no; export _as_can_reexec
496  # Don't try to exec as it changes $[0], causing all sort of problems
497  # (the dirname of $[0] is not the place where we might find the
498  # original and so on.  Autoconf is especially sensitive to this).
499  . "./$as_me.lineno"
500  # Exit status is that of the last command.
501  exit
502}
503
504ECHO_C= ECHO_N= ECHO_T=
505case `echo -n x` in #(((((
506-n*)
507  case `echo 'xy\c'` in
508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
509  xy)  ECHO_C='\c';;
510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
511       ECHO_T='	';;
512  esac;;
513*)
514  ECHO_N='-n';;
515esac
516
517rm -f conf$$ conf$$.exe conf$$.file
518if test -d conf$$.dir; then
519  rm -f conf$$.dir/conf$$.file
520else
521  rm -f conf$$.dir
522  mkdir conf$$.dir 2>/dev/null
523fi
524if (echo >conf$$.file) 2>/dev/null; then
525  if ln -s conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s='ln -s'
527    # ... but there are two gotchas:
528    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530    # In both cases, we have to default to `cp -pR'.
531    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532      as_ln_s='cp -pR'
533  elif ln conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s=ln
535  else
536    as_ln_s='cp -pR'
537  fi
538else
539  as_ln_s='cp -pR'
540fi
541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542rmdir conf$$.dir 2>/dev/null
543
544if mkdir -p . 2>/dev/null; then
545  as_mkdir_p='mkdir -p "$as_dir"'
546else
547  test -d ./-p && rmdir ./-p
548  as_mkdir_p=false
549fi
550
551as_test_x='test -x'
552as_executable_p=as_fn_executable_p
553
554# Sed expression to map a string onto a valid CPP name.
555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557# Sed expression to map a string onto a valid variable name.
558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561test -n "$DJDIR" || exec 7<&0 </dev/null
562exec 6>&1
563
564# Name of the host.
565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566# so uname gets run too.
567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569#
570# Initializations.
571#
572ac_default_prefix=/usr/local
573ac_clean_files=
574ac_config_libobj_dir=.
575LIBOBJS=
576cross_compiling=no
577subdirs=
578MFLAGS=
579MAKEFLAGS=
580
581# Identity of this package.
582PACKAGE_NAME='twm'
583PACKAGE_TARNAME='twm'
584PACKAGE_VERSION='1.0.9'
585PACKAGE_STRING='twm 1.0.9'
586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587PACKAGE_URL=''
588
589ac_unique_file="Makefile.am"
590# Factoring default headers for most tests.
591ac_includes_default="\
592#include <stdio.h>
593#ifdef HAVE_SYS_TYPES_H
594# include <sys/types.h>
595#endif
596#ifdef HAVE_SYS_STAT_H
597# include <sys/stat.h>
598#endif
599#ifdef STDC_HEADERS
600# include <stdlib.h>
601# include <stddef.h>
602#else
603# ifdef HAVE_STDLIB_H
604#  include <stdlib.h>
605# endif
606#endif
607#ifdef HAVE_STRING_H
608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609#  include <memory.h>
610# endif
611# include <string.h>
612#endif
613#ifdef HAVE_STRINGS_H
614# include <strings.h>
615#endif
616#ifdef HAVE_INTTYPES_H
617# include <inttypes.h>
618#endif
619#ifdef HAVE_STDINT_H
620# include <stdint.h>
621#endif
622#ifdef HAVE_UNISTD_H
623# include <unistd.h>
624#endif"
625
626ac_subst_vars='am__EXEEXT_FALSE
627am__EXEEXT_TRUE
628LTLIBOBJS
629LIBOBJS
630TWM_LIBS
631TWM_CFLAGS
632LEXLIB
633LEX_OUTPUT_ROOT
634LEX
635YACC_INST
636YFLAGS
637YACC
638MAN_SUBSTS
639XORG_MAN_PAGE
640ADMIN_MAN_DIR
641DRIVER_MAN_DIR
642MISC_MAN_DIR
643FILE_MAN_DIR
644LIB_MAN_DIR
645APP_MAN_DIR
646ADMIN_MAN_SUFFIX
647DRIVER_MAN_SUFFIX
648MISC_MAN_SUFFIX
649FILE_MAN_SUFFIX
650LIB_MAN_SUFFIX
651APP_MAN_SUFFIX
652SED
653host_os
654host_vendor
655host_cpu
656host
657build_os
658build_vendor
659build_cpu
660build
661INSTALL_CMD
662PKG_CONFIG
663CHANGELOG_CMD
664STRICT_CFLAGS
665CWARNFLAGS
666BASE_CFLAGS
667AM_BACKSLASH
668AM_DEFAULT_VERBOSITY
669AM_DEFAULT_V
670AM_V
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704EGREP
705GREP
706CPP
707OBJEXT
708EXEEXT
709ac_ct_CC
710CPPFLAGS
711LDFLAGS
712CFLAGS
713CC
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_dependency_tracking
756enable_silent_rules
757enable_selective_werror
758enable_strict_compilation
759'
760      ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP
769PKG_CONFIG
770YACC
771YFLAGS
772TWM_CFLAGS
773TWM_LIBS'
774
775
776# Initialize some variables set by options.
777ac_init_help=
778ac_init_version=false
779ac_unrecognized_opts=
780ac_unrecognized_sep=
781# The variables have the same names as the options, with
782# dashes changed to underlines.
783cache_file=/dev/null
784exec_prefix=NONE
785no_create=
786no_recursion=
787prefix=NONE
788program_prefix=NONE
789program_suffix=NONE
790program_transform_name=s,x,x,
791silent=
792site=
793srcdir=
794verbose=
795x_includes=NONE
796x_libraries=NONE
797
798# Installation directory options.
799# These are left unexpanded so users can "make install exec_prefix=/foo"
800# and all the variables that are supposed to be based on exec_prefix
801# by default will actually change.
802# Use braces instead of parens because sh, perl, etc. also accept them.
803# (The list follows the same order as the GNU Coding Standards.)
804bindir='${exec_prefix}/bin'
805sbindir='${exec_prefix}/sbin'
806libexecdir='${exec_prefix}/libexec'
807datarootdir='${prefix}/share'
808datadir='${datarootdir}'
809sysconfdir='${prefix}/etc'
810sharedstatedir='${prefix}/com'
811localstatedir='${prefix}/var'
812includedir='${prefix}/include'
813oldincludedir='/usr/include'
814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
815infodir='${datarootdir}/info'
816htmldir='${docdir}'
817dvidir='${docdir}'
818pdfdir='${docdir}'
819psdir='${docdir}'
820libdir='${exec_prefix}/lib'
821localedir='${datarootdir}/locale'
822mandir='${datarootdir}/man'
823
824ac_prev=
825ac_dashdash=
826for ac_option
827do
828  # If the previous option needs an argument, assign it.
829  if test -n "$ac_prev"; then
830    eval $ac_prev=\$ac_option
831    ac_prev=
832    continue
833  fi
834
835  case $ac_option in
836  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837  *=)   ac_optarg= ;;
838  *)    ac_optarg=yes ;;
839  esac
840
841  # Accept the important Cygnus configure options, so we can diagnose typos.
842
843  case $ac_dashdash$ac_option in
844  --)
845    ac_dashdash=yes ;;
846
847  -bindir | --bindir | --bindi | --bind | --bin | --bi)
848    ac_prev=bindir ;;
849  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850    bindir=$ac_optarg ;;
851
852  -build | --build | --buil | --bui | --bu)
853    ac_prev=build_alias ;;
854  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
855    build_alias=$ac_optarg ;;
856
857  -cache-file | --cache-file | --cache-fil | --cache-fi \
858  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
859    ac_prev=cache_file ;;
860  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
861  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
862    cache_file=$ac_optarg ;;
863
864  --config-cache | -C)
865    cache_file=config.cache ;;
866
867  -datadir | --datadir | --datadi | --datad)
868    ac_prev=datadir ;;
869  -datadir=* | --datadir=* | --datadi=* | --datad=*)
870    datadir=$ac_optarg ;;
871
872  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
873  | --dataroo | --dataro | --datar)
874    ac_prev=datarootdir ;;
875  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
876  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
877    datarootdir=$ac_optarg ;;
878
879  -disable-* | --disable-*)
880    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
881    # Reject names that are not valid shell variable names.
882    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883      as_fn_error $? "invalid feature name: $ac_useropt"
884    ac_useropt_orig=$ac_useropt
885    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886    case $ac_user_opts in
887      *"
888"enable_$ac_useropt"
889"*) ;;
890      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891	 ac_unrecognized_sep=', ';;
892    esac
893    eval enable_$ac_useropt=no ;;
894
895  -docdir | --docdir | --docdi | --doc | --do)
896    ac_prev=docdir ;;
897  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898    docdir=$ac_optarg ;;
899
900  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901    ac_prev=dvidir ;;
902  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903    dvidir=$ac_optarg ;;
904
905  -enable-* | --enable-*)
906    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909      as_fn_error $? "invalid feature name: $ac_useropt"
910    ac_useropt_orig=$ac_useropt
911    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912    case $ac_user_opts in
913      *"
914"enable_$ac_useropt"
915"*) ;;
916      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
917	 ac_unrecognized_sep=', ';;
918    esac
919    eval enable_$ac_useropt=\$ac_optarg ;;
920
921  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
922  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
923  | --exec | --exe | --ex)
924    ac_prev=exec_prefix ;;
925  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
926  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
927  | --exec=* | --exe=* | --ex=*)
928    exec_prefix=$ac_optarg ;;
929
930  -gas | --gas | --ga | --g)
931    # Obsolete; use --with-gas.
932    with_gas=yes ;;
933
934  -help | --help | --hel | --he | -h)
935    ac_init_help=long ;;
936  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
937    ac_init_help=recursive ;;
938  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
939    ac_init_help=short ;;
940
941  -host | --host | --hos | --ho)
942    ac_prev=host_alias ;;
943  -host=* | --host=* | --hos=* | --ho=*)
944    host_alias=$ac_optarg ;;
945
946  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947    ac_prev=htmldir ;;
948  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949  | --ht=*)
950    htmldir=$ac_optarg ;;
951
952  -includedir | --includedir | --includedi | --included | --include \
953  | --includ | --inclu | --incl | --inc)
954    ac_prev=includedir ;;
955  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
956  | --includ=* | --inclu=* | --incl=* | --inc=*)
957    includedir=$ac_optarg ;;
958
959  -infodir | --infodir | --infodi | --infod | --info | --inf)
960    ac_prev=infodir ;;
961  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
962    infodir=$ac_optarg ;;
963
964  -libdir | --libdir | --libdi | --libd)
965    ac_prev=libdir ;;
966  -libdir=* | --libdir=* | --libdi=* | --libd=*)
967    libdir=$ac_optarg ;;
968
969  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
970  | --libexe | --libex | --libe)
971    ac_prev=libexecdir ;;
972  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
973  | --libexe=* | --libex=* | --libe=*)
974    libexecdir=$ac_optarg ;;
975
976  -localedir | --localedir | --localedi | --localed | --locale)
977    ac_prev=localedir ;;
978  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
979    localedir=$ac_optarg ;;
980
981  -localstatedir | --localstatedir | --localstatedi | --localstated \
982  | --localstate | --localstat | --localsta | --localst | --locals)
983    ac_prev=localstatedir ;;
984  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
985  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
986    localstatedir=$ac_optarg ;;
987
988  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989    ac_prev=mandir ;;
990  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991    mandir=$ac_optarg ;;
992
993  -nfp | --nfp | --nf)
994    # Obsolete; use --without-fp.
995    with_fp=no ;;
996
997  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998  | --no-cr | --no-c | -n)
999    no_create=yes ;;
1000
1001  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1002  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003    no_recursion=yes ;;
1004
1005  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1006  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1007  | --oldin | --oldi | --old | --ol | --o)
1008    ac_prev=oldincludedir ;;
1009  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1010  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1011  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1012    oldincludedir=$ac_optarg ;;
1013
1014  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015    ac_prev=prefix ;;
1016  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1017    prefix=$ac_optarg ;;
1018
1019  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1020  | --program-pre | --program-pr | --program-p)
1021    ac_prev=program_prefix ;;
1022  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1023  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1024    program_prefix=$ac_optarg ;;
1025
1026  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1027  | --program-suf | --program-su | --program-s)
1028    ac_prev=program_suffix ;;
1029  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1030  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1031    program_suffix=$ac_optarg ;;
1032
1033  -program-transform-name | --program-transform-name \
1034  | --program-transform-nam | --program-transform-na \
1035  | --program-transform-n | --program-transform- \
1036  | --program-transform | --program-transfor \
1037  | --program-transfo | --program-transf \
1038  | --program-trans | --program-tran \
1039  | --progr-tra | --program-tr | --program-t)
1040    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1049
1050  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051    ac_prev=pdfdir ;;
1052  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1053    pdfdir=$ac_optarg ;;
1054
1055  -psdir | --psdir | --psdi | --psd | --ps)
1056    ac_prev=psdir ;;
1057  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058    psdir=$ac_optarg ;;
1059
1060  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061  | -silent | --silent | --silen | --sile | --sil)
1062    silent=yes ;;
1063
1064  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065    ac_prev=sbindir ;;
1066  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067  | --sbi=* | --sb=*)
1068    sbindir=$ac_optarg ;;
1069
1070  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1071  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1072  | --sharedst | --shareds | --shared | --share | --shar \
1073  | --sha | --sh)
1074    ac_prev=sharedstatedir ;;
1075  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1076  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1077  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078  | --sha=* | --sh=*)
1079    sharedstatedir=$ac_optarg ;;
1080
1081  -site | --site | --sit)
1082    ac_prev=site ;;
1083  -site=* | --site=* | --sit=*)
1084    site=$ac_optarg ;;
1085
1086  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087    ac_prev=srcdir ;;
1088  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1089    srcdir=$ac_optarg ;;
1090
1091  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1092  | --syscon | --sysco | --sysc | --sys | --sy)
1093    ac_prev=sysconfdir ;;
1094  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1095  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1096    sysconfdir=$ac_optarg ;;
1097
1098  -target | --target | --targe | --targ | --tar | --ta | --t)
1099    ac_prev=target_alias ;;
1100  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1101    target_alias=$ac_optarg ;;
1102
1103  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104    verbose=yes ;;
1105
1106  -version | --version | --versio | --versi | --vers | -V)
1107    ac_init_version=: ;;
1108
1109  -with-* | --with-*)
1110    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1111    # Reject names that are not valid shell variable names.
1112    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113      as_fn_error $? "invalid package name: $ac_useropt"
1114    ac_useropt_orig=$ac_useropt
1115    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116    case $ac_user_opts in
1117      *"
1118"with_$ac_useropt"
1119"*) ;;
1120      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1121	 ac_unrecognized_sep=', ';;
1122    esac
1123    eval with_$ac_useropt=\$ac_optarg ;;
1124
1125  -without-* | --without-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error $? "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=no ;;
1140
1141  --x)
1142    # Obsolete; use --with-x.
1143    with_x=yes ;;
1144
1145  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146  | --x-incl | --x-inc | --x-in | --x-i)
1147    ac_prev=x_includes ;;
1148  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150    x_includes=$ac_optarg ;;
1151
1152  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154    ac_prev=x_libraries ;;
1155  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157    x_libraries=$ac_optarg ;;
1158
1159  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1160Try \`$0 --help' for more information"
1161    ;;
1162
1163  *=*)
1164    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1165    # Reject names that are not valid shell variable names.
1166    case $ac_envvar in #(
1167      '' | [0-9]* | *[!_$as_cr_alnum]* )
1168      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169    esac
1170    eval $ac_envvar=\$ac_optarg
1171    export $ac_envvar ;;
1172
1173  *)
1174    # FIXME: should be removed in autoconf 3.0.
1175    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1179    ;;
1180
1181  esac
1182done
1183
1184if test -n "$ac_prev"; then
1185  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186  as_fn_error $? "missing argument to $ac_option"
1187fi
1188
1189if test -n "$ac_unrecognized_opts"; then
1190  case $enable_option_checking in
1191    no) ;;
1192    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1193    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1194  esac
1195fi
1196
1197# Check all directory arguments for consistency.
1198for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199		datadir sysconfdir sharedstatedir localstatedir includedir \
1200		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201		libdir localedir mandir
1202do
1203  eval ac_val=\$$ac_var
1204  # Remove trailing slashes.
1205  case $ac_val in
1206    */ )
1207      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1208      eval $ac_var=\$ac_val;;
1209  esac
1210  # Be sure to have absolute directory names.
1211  case $ac_val in
1212    [\\/$]* | ?:[\\/]* )  continue;;
1213    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214  esac
1215  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216done
1217
1218# There might be people who depend on the old broken behavior: `$host'
1219# used to hold the argument of --host etc.
1220# FIXME: To remove some day.
1221build=$build_alias
1222host=$host_alias
1223target=$target_alias
1224
1225# FIXME: To remove some day.
1226if test "x$host_alias" != x; then
1227  if test "x$build_alias" = x; then
1228    cross_compiling=maybe
1229  elif test "x$build_alias" != "x$host_alias"; then
1230    cross_compiling=yes
1231  fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
1240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243  as_fn_error $? "working directory cannot be determined"
1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245  as_fn_error $? "pwd does not report name of working directory"
1246
1247
1248# Find the source files, if location was not specified.
1249if test -z "$srcdir"; then
1250  ac_srcdir_defaulted=yes
1251  # Try the directory containing this script, then the parent directory.
1252  ac_confdir=`$as_dirname -- "$as_myself" ||
1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254	 X"$as_myself" : 'X\(//\)[^/]' \| \
1255	 X"$as_myself" : 'X\(//\)$' \| \
1256	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1257$as_echo X"$as_myself" |
1258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\/\)[^/].*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  /^X\(\/\/\)$/{
1267	    s//\1/
1268	    q
1269	  }
1270	  /^X\(\/\).*/{
1271	    s//\1/
1272	    q
1273	  }
1274	  s/.*/./; q'`
1275  srcdir=$ac_confdir
1276  if test ! -r "$srcdir/$ac_unique_file"; then
1277    srcdir=..
1278  fi
1279else
1280  ac_srcdir_defaulted=no
1281fi
1282if test ! -r "$srcdir/$ac_unique_file"; then
1283  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285fi
1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287ac_abs_confdir=`(
1288	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289	pwd)`
1290# When building in place, set srcdir=.
1291if test "$ac_abs_confdir" = "$ac_pwd"; then
1292  srcdir=.
1293fi
1294# Remove unnecessary trailing slashes from srcdir.
1295# Double slashes in file names in object file debugging info
1296# mess up M-x gdb in Emacs.
1297case $srcdir in
1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299esac
1300for ac_var in $ac_precious_vars; do
1301  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302  eval ac_env_${ac_var}_value=\$${ac_var}
1303  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305done
1306
1307#
1308# Report the --help message.
1309#
1310if test "$ac_init_help" = "long"; then
1311  # Omit some internal or obsolete options to make the list less imposing.
1312  # This message is too long to be a string in the A/UX 3.1 sh.
1313  cat <<_ACEOF
1314\`configure' configures twm 1.0.9 to adapt to many kinds of systems.
1315
1316Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321Defaults for the options are specified in brackets.
1322
1323Configuration:
1324  -h, --help              display this help and exit
1325      --help=short        display options specific to this package
1326      --help=recursive    display the short help of all the included packages
1327  -V, --version           display version information and exit
1328  -q, --quiet, --silent   do not print \`checking ...' messages
1329      --cache-file=FILE   cache test results in FILE [disabled]
1330  -C, --config-cache      alias for \`--cache-file=config.cache'
1331  -n, --no-create         do not create output files
1332      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334Installation directories:
1335  --prefix=PREFIX         install architecture-independent files in PREFIX
1336                          [$ac_default_prefix]
1337  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                          [PREFIX]
1339
1340By default, \`make install' will install all the files in
1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343for instance \`--prefix=\$HOME'.
1344
1345For better control, use the options below.
1346
1347Fine tuning of the installation directories:
1348  --bindir=DIR            user executables [EPREFIX/bin]
1349  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350  --libexecdir=DIR        program executables [EPREFIX/libexec]
1351  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354  --libdir=DIR            object code libraries [EPREFIX/lib]
1355  --includedir=DIR        C header files [PREFIX/include]
1356  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359  --infodir=DIR           info documentation [DATAROOTDIR/info]
1360  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361  --mandir=DIR            man documentation [DATAROOTDIR/man]
1362  --docdir=DIR            documentation root [DATAROOTDIR/doc/twm]
1363  --htmldir=DIR           html documentation [DOCDIR]
1364  --dvidir=DIR            dvi documentation [DOCDIR]
1365  --pdfdir=DIR            pdf documentation [DOCDIR]
1366  --psdir=DIR             ps documentation [DOCDIR]
1367_ACEOF
1368
1369  cat <<\_ACEOF
1370
1371Program names:
1372  --program-prefix=PREFIX            prepend PREFIX to installed program names
1373  --program-suffix=SUFFIX            append SUFFIX to installed program names
1374  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376System types:
1377  --build=BUILD     configure for building on BUILD [guessed]
1378  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383  case $ac_init_help in
1384     short | recursive ) echo "Configuration of twm 1.0.9:";;
1385   esac
1386  cat <<\_ACEOF
1387
1388Optional Features:
1389  --disable-option-checking  ignore unrecognized --enable/--with options
1390  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1391  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1392  --enable-dependency-tracking
1393                          do not reject slow dependency extractors
1394  --disable-dependency-tracking
1395                          speeds up one-time build
1396  --enable-silent-rules   less verbose build output (undo: "make V=1")
1397  --disable-silent-rules  verbose build output (undo: "make V=0")
1398  --disable-selective-werror
1399                          Turn off selective compiler errors. (default:
1400                          enabled)
1401  --enable-strict-compilation
1402                          Enable all warnings from compiler and make them
1403                          errors (default: disabled)
1404
1405Some influential environment variables:
1406  CC          C compiler command
1407  CFLAGS      C compiler flags
1408  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409              nonstandard directory <lib dir>
1410  LIBS        libraries to pass to the linker, e.g. -l<library>
1411  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412              you have headers in a nonstandard directory <include dir>
1413  CPP         C preprocessor
1414  PKG_CONFIG  path to pkg-config utility
1415  YACC        The `Yet Another Compiler Compiler' implementation to use.
1416              Defaults to the first program found out of: `bison -y', `byacc',
1417              `yacc'.
1418  YFLAGS      The list of arguments that will be passed by default to $YACC.
1419              This script will default YFLAGS to the empty string to avoid a
1420              default value of `-d' given by some make applications.
1421  TWM_CFLAGS  C compiler flags for TWM, overriding pkg-config
1422  TWM_LIBS    linker flags for TWM, overriding pkg-config
1423
1424Use these variables to override the choices made by `configure' or to help
1425it to find libraries and programs with nonstandard names/locations.
1426
1427Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1428_ACEOF
1429ac_status=$?
1430fi
1431
1432if test "$ac_init_help" = "recursive"; then
1433  # If there are subdirs, report their specific --help.
1434  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1435    test -d "$ac_dir" ||
1436      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1437      continue
1438    ac_builddir=.
1439
1440case "$ac_dir" in
1441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442*)
1443  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1444  # A ".." for each directory in $ac_dir_suffix.
1445  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1446  case $ac_top_builddir_sub in
1447  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449  esac ;;
1450esac
1451ac_abs_top_builddir=$ac_pwd
1452ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453# for backward compatibility:
1454ac_top_builddir=$ac_top_build_prefix
1455
1456case $srcdir in
1457  .)  # We are building in place.
1458    ac_srcdir=.
1459    ac_top_srcdir=$ac_top_builddir_sub
1460    ac_abs_top_srcdir=$ac_pwd ;;
1461  [\\/]* | ?:[\\/]* )  # Absolute name.
1462    ac_srcdir=$srcdir$ac_dir_suffix;
1463    ac_top_srcdir=$srcdir
1464    ac_abs_top_srcdir=$srcdir ;;
1465  *) # Relative name.
1466    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467    ac_top_srcdir=$ac_top_build_prefix$srcdir
1468    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1469esac
1470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1471
1472    cd "$ac_dir" || { ac_status=$?; continue; }
1473    # Check for guested configure.
1474    if test -f "$ac_srcdir/configure.gnu"; then
1475      echo &&
1476      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477    elif test -f "$ac_srcdir/configure"; then
1478      echo &&
1479      $SHELL "$ac_srcdir/configure" --help=recursive
1480    else
1481      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1482    fi || ac_status=$?
1483    cd "$ac_pwd" || { ac_status=$?; break; }
1484  done
1485fi
1486
1487test -n "$ac_init_help" && exit $ac_status
1488if $ac_init_version; then
1489  cat <<\_ACEOF
1490twm configure 1.0.9
1491generated by GNU Autoconf 2.69
1492
1493Copyright (C) 2012 Free Software Foundation, Inc.
1494This configure script is free software; the Free Software Foundation
1495gives unlimited permission to copy, distribute and modify it.
1496_ACEOF
1497  exit
1498fi
1499
1500## ------------------------ ##
1501## Autoconf initialization. ##
1502## ------------------------ ##
1503
1504# ac_fn_c_try_compile LINENO
1505# --------------------------
1506# Try to compile conftest.$ac_ext, and return whether this succeeded.
1507ac_fn_c_try_compile ()
1508{
1509  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510  rm -f conftest.$ac_objext
1511  if { { ac_try="$ac_compile"
1512case "(($ac_try" in
1513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514  *) ac_try_echo=$ac_try;;
1515esac
1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517$as_echo "$ac_try_echo"; } >&5
1518  (eval "$ac_compile") 2>conftest.err
1519  ac_status=$?
1520  if test -s conftest.err; then
1521    grep -v '^ *+' conftest.err >conftest.er1
1522    cat conftest.er1 >&5
1523    mv -f conftest.er1 conftest.err
1524  fi
1525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526  test $ac_status = 0; } && {
1527	 test -z "$ac_c_werror_flag" ||
1528	 test ! -s conftest.err
1529       } && test -s conftest.$ac_objext; then :
1530  ac_retval=0
1531else
1532  $as_echo "$as_me: failed program was:" >&5
1533sed 's/^/| /' conftest.$ac_ext >&5
1534
1535	ac_retval=1
1536fi
1537  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538  as_fn_set_status $ac_retval
1539
1540} # ac_fn_c_try_compile
1541
1542# ac_fn_c_try_cpp LINENO
1543# ----------------------
1544# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_cpp ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  if { { ac_try="$ac_cpp conftest.$ac_ext"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } > conftest.i && {
1564	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       }; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572    ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_cpp
1578
1579# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1580# -------------------------------------------------------
1581# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1582# the include files in INCLUDES and setting the cache variable VAR
1583# accordingly.
1584ac_fn_c_check_header_mongrel ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  if eval \${$3+:} false; then :
1588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1589$as_echo_n "checking for $2... " >&6; }
1590if eval \${$3+:} false; then :
1591  $as_echo_n "(cached) " >&6
1592fi
1593eval ac_res=\$$3
1594	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1595$as_echo "$ac_res" >&6; }
1596else
1597  # Is the header compilable?
1598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1599$as_echo_n "checking $2 usability... " >&6; }
1600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601/* end confdefs.h.  */
1602$4
1603#include <$2>
1604_ACEOF
1605if ac_fn_c_try_compile "$LINENO"; then :
1606  ac_header_compiler=yes
1607else
1608  ac_header_compiler=no
1609fi
1610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1612$as_echo "$ac_header_compiler" >&6; }
1613
1614# Is the header present?
1615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1616$as_echo_n "checking $2 presence... " >&6; }
1617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618/* end confdefs.h.  */
1619#include <$2>
1620_ACEOF
1621if ac_fn_c_try_cpp "$LINENO"; then :
1622  ac_header_preproc=yes
1623else
1624  ac_header_preproc=no
1625fi
1626rm -f conftest.err conftest.i conftest.$ac_ext
1627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1628$as_echo "$ac_header_preproc" >&6; }
1629
1630# So?  What about this header?
1631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1632  yes:no: )
1633    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1634$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1636$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1637    ;;
1638  no:yes:* )
1639    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1640$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1641    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1642$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1643    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1644$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1646$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1647    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1648$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649( $as_echo "## ---------------------------------------------------------------------- ##
1650## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1651## ---------------------------------------------------------------------- ##"
1652     ) | sed "s/^/$as_me: WARNING:     /" >&2
1653    ;;
1654esac
1655  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if eval \${$3+:} false; then :
1658  $as_echo_n "(cached) " >&6
1659else
1660  eval "$3=\$ac_header_compiler"
1661fi
1662eval ac_res=\$$3
1663	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665fi
1666  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667
1668} # ac_fn_c_check_header_mongrel
1669
1670# ac_fn_c_try_run LINENO
1671# ----------------------
1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673# that executables *can* be run.
1674ac_fn_c_try_run ()
1675{
1676  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677  if { { ac_try="$ac_link"
1678case "(($ac_try" in
1679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680  *) ac_try_echo=$ac_try;;
1681esac
1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683$as_echo "$ac_try_echo"; } >&5
1684  (eval "$ac_link") 2>&5
1685  ac_status=$?
1686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688  { { case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_try") 2>&5
1695  ac_status=$?
1696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697  test $ac_status = 0; }; }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: program exited with status $ac_status" >&5
1701       $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704       ac_retval=$ac_status
1705fi
1706  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708  as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_run
1711
1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713# -------------------------------------------------------
1714# Tests whether HEADER exists and can be compiled using the include files in
1715# INCLUDES, setting the cache variable VAR accordingly.
1716ac_fn_c_check_header_compile ()
1717{
1718  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720$as_echo_n "checking for $2... " >&6; }
1721if eval \${$3+:} false; then :
1722  $as_echo_n "(cached) " >&6
1723else
1724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725/* end confdefs.h.  */
1726$4
1727#include <$2>
1728_ACEOF
1729if ac_fn_c_try_compile "$LINENO"; then :
1730  eval "$3=yes"
1731else
1732  eval "$3=no"
1733fi
1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735fi
1736eval ac_res=\$$3
1737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741} # ac_fn_c_check_header_compile
1742
1743# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1744# ---------------------------------------------
1745# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1746# accordingly.
1747ac_fn_c_check_decl ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  as_decl_name=`echo $2|sed 's/ *(.*//'`
1751  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1753$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1754if eval \${$3+:} false; then :
1755  $as_echo_n "(cached) " >&6
1756else
1757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h.  */
1759$4
1760int
1761main ()
1762{
1763#ifndef $as_decl_name
1764#ifdef __cplusplus
1765  (void) $as_decl_use;
1766#else
1767  (void) $as_decl_name;
1768#endif
1769#endif
1770
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776  eval "$3=yes"
1777else
1778  eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787} # ac_fn_c_check_decl
1788
1789# ac_fn_c_try_link LINENO
1790# -----------------------
1791# Try to link conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_link ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  rm -f conftest.$ac_objext conftest$ac_exeext
1796  if { { ac_try="$ac_link"
1797case "(($ac_try" in
1798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799  *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803  (eval "$ac_link") 2>conftest.err
1804  ac_status=$?
1805  if test -s conftest.err; then
1806    grep -v '^ *+' conftest.err >conftest.er1
1807    cat conftest.er1 >&5
1808    mv -f conftest.er1 conftest.err
1809  fi
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; } && {
1812	 test -z "$ac_c_werror_flag" ||
1813	 test ! -s conftest.err
1814       } && test -s conftest$ac_exeext && {
1815	 test "$cross_compiling" = yes ||
1816	 test -x conftest$ac_exeext
1817       }; then :
1818  ac_retval=0
1819else
1820  $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823	ac_retval=1
1824fi
1825  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827  # interfere with the next link command; also delete a directory that is
1828  # left behind by Apple's compiler.  We do this before executing the actions.
1829  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831  as_fn_set_status $ac_retval
1832
1833} # ac_fn_c_try_link
1834
1835# ac_fn_c_check_func LINENO FUNC VAR
1836# ----------------------------------
1837# Tests whether FUNC exists, setting the cache variable VAR accordingly
1838ac_fn_c_check_func ()
1839{
1840  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
1843if eval \${$3+:} false; then :
1844  $as_echo_n "(cached) " >&6
1845else
1846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850#define $2 innocuous_$2
1851
1852/* System header to define __stub macros and hopefully few prototypes,
1853    which can conflict with char $2 (); below.
1854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855    <limits.h> exists even on freestanding compilers.  */
1856
1857#ifdef __STDC__
1858# include <limits.h>
1859#else
1860# include <assert.h>
1861#endif
1862
1863#undef $2
1864
1865/* Override any GCC internal prototype to avoid an error.
1866   Use char because int might match the return type of a GCC
1867   builtin and then its argument prototype would still apply.  */
1868#ifdef __cplusplus
1869extern "C"
1870#endif
1871char $2 ();
1872/* The GNU C library defines this for functions which it implements
1873    to always fail with ENOSYS.  Some functions are actually named
1874    something starting with __ and the normal name is an alias.  */
1875#if defined __stub_$2 || defined __stub___$2
1876choke me
1877#endif
1878
1879int
1880main ()
1881{
1882return $2 ();
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_link "$LINENO"; then :
1888  eval "$3=yes"
1889else
1890  eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext \
1893    conftest$ac_exeext conftest.$ac_ext
1894fi
1895eval ac_res=\$$3
1896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900} # ac_fn_c_check_func
1901cat >config.log <<_ACEOF
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
1905It was created by twm $as_me 1.0.9, which was
1906generated by GNU Autoconf 2.69.  Invocation command line was
1907
1908  $ $0 $@
1909
1910_ACEOF
1911exec 5>>config.log
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1926
1927/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1928/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1931/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1932/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1933/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942    $as_echo "PATH: $as_dir"
1943  done
1944IFS=$as_save_IFS
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969  for ac_arg
1970  do
1971    case $ac_arg in
1972    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974    | -silent | --silent | --silen | --sile | --sil)
1975      continue ;;
1976    *\'*)
1977      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978    esac
1979    case $ac_pass in
1980    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981    2)
1982      as_fn_append ac_configure_args1 " '$ac_arg'"
1983      if test $ac_must_keep_next = true; then
1984	ac_must_keep_next=false # Got value, back to normal.
1985      else
1986	case $ac_arg in
1987	  *=* | --config-cache | -C | -disable-* | --disable-* \
1988	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990	  | -with-* | --with-* | -without-* | --without-* | --x)
1991	    case "$ac_configure_args0 " in
1992	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993	    esac
1994	    ;;
1995	  -* ) ac_must_keep_next=true ;;
1996	esac
1997      fi
1998      as_fn_append ac_configure_args " '$ac_arg'"
1999      ;;
2000    esac
2001  done
2002done
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log.  We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011trap 'exit_status=$?
2012  # Save into config.log some information that might help in debugging.
2013  {
2014    echo
2015
2016    $as_echo "## ---------------- ##
2017## Cache variables. ##
2018## ---------------- ##"
2019    echo
2020    # The following way of writing the cache mishandles newlines in values,
2021(
2022  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023    eval ac_val=\$$ac_var
2024    case $ac_val in #(
2025    *${as_nl}*)
2026      case $ac_var in #(
2027      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029      esac
2030      case $ac_var in #(
2031      _ | IFS | as_nl) ;; #(
2032      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033      *) { eval $ac_var=; unset $ac_var;} ;;
2034      esac ;;
2035    esac
2036  done
2037  (set) 2>&1 |
2038    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039    *${as_nl}ac_space=\ *)
2040      sed -n \
2041	"s/'\''/'\''\\\\'\'''\''/g;
2042	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043      ;; #(
2044    *)
2045      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046      ;;
2047    esac |
2048    sort
2049)
2050    echo
2051
2052    $as_echo "## ----------------- ##
2053## Output variables. ##
2054## ----------------- ##"
2055    echo
2056    for ac_var in $ac_subst_vars
2057    do
2058      eval ac_val=\$$ac_var
2059      case $ac_val in
2060      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061      esac
2062      $as_echo "$ac_var='\''$ac_val'\''"
2063    done | sort
2064    echo
2065
2066    if test -n "$ac_subst_files"; then
2067      $as_echo "## ------------------- ##
2068## File substitutions. ##
2069## ------------------- ##"
2070      echo
2071      for ac_var in $ac_subst_files
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    fi
2081
2082    if test -s confdefs.h; then
2083      $as_echo "## ----------- ##
2084## confdefs.h. ##
2085## ----------- ##"
2086      echo
2087      cat confdefs.h
2088      echo
2089    fi
2090    test "$ac_signal" != 0 &&
2091      $as_echo "$as_me: caught signal $ac_signal"
2092    $as_echo "$as_me: exit $exit_status"
2093  } >&5
2094  rm -f core *.core core.conftest.* &&
2095    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096    exit $exit_status
2097' 0
2098for ac_signal in 1 2 13 15; do
2099  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100done
2101ac_signal=0
2102
2103# confdefs.h avoids OS command line length limits that DEFS can exceed.
2104rm -f -r conftest* confdefs.h
2105
2106$as_echo "/* confdefs.h */" > confdefs.h
2107
2108# Predefined preprocessor variables.
2109
2110cat >>confdefs.h <<_ACEOF
2111#define PACKAGE_NAME "$PACKAGE_NAME"
2112_ACEOF
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116_ACEOF
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_VERSION "$PACKAGE_VERSION"
2120_ACEOF
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_STRING "$PACKAGE_STRING"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_URL "$PACKAGE_URL"
2132_ACEOF
2133
2134
2135# Let the site file select an alternate cache file if it wants to.
2136# Prefer an explicitly selected file to automatically selected ones.
2137ac_site_file1=NONE
2138ac_site_file2=NONE
2139if test -n "$CONFIG_SITE"; then
2140  # We do not want a PATH search for config.site.
2141  case $CONFIG_SITE in #((
2142    -*)  ac_site_file1=./$CONFIG_SITE;;
2143    */*) ac_site_file1=$CONFIG_SITE;;
2144    *)   ac_site_file1=./$CONFIG_SITE;;
2145  esac
2146elif test "x$prefix" != xNONE; then
2147  ac_site_file1=$prefix/share/config.site
2148  ac_site_file2=$prefix/etc/config.site
2149else
2150  ac_site_file1=$ac_default_prefix/share/config.site
2151  ac_site_file2=$ac_default_prefix/etc/config.site
2152fi
2153for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154do
2155  test "x$ac_site_file" = xNONE && continue
2156  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159    sed 's/^/| /' "$ac_site_file" >&5
2160    . "$ac_site_file" \
2161      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163as_fn_error $? "failed to load site script $ac_site_file
2164See \`config.log' for more details" "$LINENO" 5; }
2165  fi
2166done
2167
2168if test -r "$cache_file"; then
2169  # Some versions of bash will fail to source /dev/null (special files
2170  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2171  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173$as_echo "$as_me: loading cache $cache_file" >&6;}
2174    case $cache_file in
2175      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176      *)                      . "./$cache_file";;
2177    esac
2178  fi
2179else
2180  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181$as_echo "$as_me: creating cache $cache_file" >&6;}
2182  >$cache_file
2183fi
2184
2185# Check that the precious variables saved in the cache have kept the same
2186# value.
2187ac_cache_corrupted=false
2188for ac_var in $ac_precious_vars; do
2189  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190  eval ac_new_set=\$ac_env_${ac_var}_set
2191  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192  eval ac_new_val=\$ac_env_${ac_var}_value
2193  case $ac_old_set,$ac_new_set in
2194    set,)
2195      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197      ac_cache_corrupted=: ;;
2198    ,set)
2199      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201      ac_cache_corrupted=: ;;
2202    ,);;
2203    *)
2204      if test "x$ac_old_val" != "x$ac_new_val"; then
2205	# differences in whitespace do not lead to failure.
2206	ac_old_val_w=`echo x $ac_old_val`
2207	ac_new_val_w=`echo x $ac_new_val`
2208	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211	  ac_cache_corrupted=:
2212	else
2213	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215	  eval $ac_var=\$ac_old_val
2216	fi
2217	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2218$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2219	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2220$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2221      fi;;
2222  esac
2223  # Pass precious variables to config.status.
2224  if test "$ac_new_set" = set; then
2225    case $ac_new_val in
2226    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227    *) ac_arg=$ac_var=$ac_new_val ;;
2228    esac
2229    case " $ac_configure_args " in
2230      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2231      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232    esac
2233  fi
2234done
2235if $ac_cache_corrupted; then
2236  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241fi
2242## -------------------- ##
2243## Main body of script. ##
2244## -------------------- ##
2245
2246ac_ext=c
2247ac_cpp='$CPP $CPPFLAGS'
2248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253
2254ac_config_headers="$ac_config_headers config.h"
2255
2256ac_aux_dir=
2257for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2258  if test -f "$ac_dir/install-sh"; then
2259    ac_aux_dir=$ac_dir
2260    ac_install_sh="$ac_aux_dir/install-sh -c"
2261    break
2262  elif test -f "$ac_dir/install.sh"; then
2263    ac_aux_dir=$ac_dir
2264    ac_install_sh="$ac_aux_dir/install.sh -c"
2265    break
2266  elif test -f "$ac_dir/shtool"; then
2267    ac_aux_dir=$ac_dir
2268    ac_install_sh="$ac_aux_dir/shtool install -c"
2269    break
2270  fi
2271done
2272if test -z "$ac_aux_dir"; then
2273  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2274fi
2275
2276# These three variables are undocumented and unsupported,
2277# and are intended to be withdrawn in a future Autoconf release.
2278# They can cause serious problems if a builder's source tree is in a directory
2279# whose full name contains unusual characters.
2280ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2281ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2282ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2283
2284
2285# Expand $ac_aux_dir to an absolute path.
2286am_aux_dir=`cd "$ac_aux_dir" && pwd`
2287
2288ac_ext=c
2289ac_cpp='$CPP $CPPFLAGS'
2290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2292ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293if test -n "$ac_tool_prefix"; then
2294  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2295set dummy ${ac_tool_prefix}gcc; ac_word=$2
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2297$as_echo_n "checking for $ac_word... " >&6; }
2298if ${ac_cv_prog_CC+:} false; then :
2299  $as_echo_n "(cached) " >&6
2300else
2301  if test -n "$CC"; then
2302  ac_cv_prog_CC="$CC" # Let the user override the test.
2303else
2304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305for as_dir in $PATH
2306do
2307  IFS=$as_save_IFS
2308  test -z "$as_dir" && as_dir=.
2309    for ac_exec_ext in '' $ac_executable_extensions; do
2310  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2312    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2313    break 2
2314  fi
2315done
2316  done
2317IFS=$as_save_IFS
2318
2319fi
2320fi
2321CC=$ac_cv_prog_CC
2322if test -n "$CC"; then
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324$as_echo "$CC" >&6; }
2325else
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327$as_echo "no" >&6; }
2328fi
2329
2330
2331fi
2332if test -z "$ac_cv_prog_CC"; then
2333  ac_ct_CC=$CC
2334  # Extract the first word of "gcc", so it can be a program name with args.
2335set dummy gcc; ac_word=$2
2336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2337$as_echo_n "checking for $ac_word... " >&6; }
2338if ${ac_cv_prog_ac_ct_CC+:} false; then :
2339  $as_echo_n "(cached) " >&6
2340else
2341  if test -n "$ac_ct_CC"; then
2342  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343else
2344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345for as_dir in $PATH
2346do
2347  IFS=$as_save_IFS
2348  test -z "$as_dir" && as_dir=.
2349    for ac_exec_ext in '' $ac_executable_extensions; do
2350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2351    ac_cv_prog_ac_ct_CC="gcc"
2352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2353    break 2
2354  fi
2355done
2356  done
2357IFS=$as_save_IFS
2358
2359fi
2360fi
2361ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362if test -n "$ac_ct_CC"; then
2363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2364$as_echo "$ac_ct_CC" >&6; }
2365else
2366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2367$as_echo "no" >&6; }
2368fi
2369
2370  if test "x$ac_ct_CC" = x; then
2371    CC=""
2372  else
2373    case $cross_compiling:$ac_tool_warned in
2374yes:)
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2377ac_tool_warned=yes ;;
2378esac
2379    CC=$ac_ct_CC
2380  fi
2381else
2382  CC="$ac_cv_prog_CC"
2383fi
2384
2385if test -z "$CC"; then
2386          if test -n "$ac_tool_prefix"; then
2387    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2388set dummy ${ac_tool_prefix}cc; ac_word=$2
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2390$as_echo_n "checking for $ac_word... " >&6; }
2391if ${ac_cv_prog_CC+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  if test -n "$CC"; then
2395  ac_cv_prog_CC="$CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402    for ac_exec_ext in '' $ac_executable_extensions; do
2403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404    ac_cv_prog_CC="${ac_tool_prefix}cc"
2405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409  done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414CC=$ac_cv_prog_CC
2415if test -n "$CC"; then
2416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2417$as_echo "$CC" >&6; }
2418else
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2420$as_echo "no" >&6; }
2421fi
2422
2423
2424  fi
2425fi
2426if test -z "$CC"; then
2427  # Extract the first word of "cc", so it can be a program name with args.
2428set dummy cc; ac_word=$2
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2430$as_echo_n "checking for $ac_word... " >&6; }
2431if ${ac_cv_prog_CC+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  if test -n "$CC"; then
2435  ac_cv_prog_CC="$CC" # Let the user override the test.
2436else
2437  ac_prog_rejected=no
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443    for ac_exec_ext in '' $ac_executable_extensions; do
2444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2446       ac_prog_rejected=yes
2447       continue
2448     fi
2449    ac_cv_prog_CC="cc"
2450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451    break 2
2452  fi
2453done
2454  done
2455IFS=$as_save_IFS
2456
2457if test $ac_prog_rejected = yes; then
2458  # We found a bogon in the path, so make sure we never use it.
2459  set dummy $ac_cv_prog_CC
2460  shift
2461  if test $# != 0; then
2462    # We chose a different compiler from the bogus one.
2463    # However, it has the same basename, so the bogon will be chosen
2464    # first if we set CC to just the basename; use the full file name.
2465    shift
2466    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2467  fi
2468fi
2469fi
2470fi
2471CC=$ac_cv_prog_CC
2472if test -n "$CC"; then
2473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2474$as_echo "$CC" >&6; }
2475else
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2477$as_echo "no" >&6; }
2478fi
2479
2480
2481fi
2482if test -z "$CC"; then
2483  if test -n "$ac_tool_prefix"; then
2484  for ac_prog in cl.exe
2485  do
2486    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2487set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489$as_echo_n "checking for $ac_word... " >&6; }
2490if ${ac_cv_prog_CC+:} false; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  if test -n "$CC"; then
2494  ac_cv_prog_CC="$CC" # Let the user override the test.
2495else
2496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497for as_dir in $PATH
2498do
2499  IFS=$as_save_IFS
2500  test -z "$as_dir" && as_dir=.
2501    for ac_exec_ext in '' $ac_executable_extensions; do
2502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505    break 2
2506  fi
2507done
2508  done
2509IFS=$as_save_IFS
2510
2511fi
2512fi
2513CC=$ac_cv_prog_CC
2514if test -n "$CC"; then
2515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2516$as_echo "$CC" >&6; }
2517else
2518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519$as_echo "no" >&6; }
2520fi
2521
2522
2523    test -n "$CC" && break
2524  done
2525fi
2526if test -z "$CC"; then
2527  ac_ct_CC=$CC
2528  for ac_prog in cl.exe
2529do
2530  # Extract the first word of "$ac_prog", so it can be a program name with args.
2531set dummy $ac_prog; ac_word=$2
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533$as_echo_n "checking for $ac_word... " >&6; }
2534if ${ac_cv_prog_ac_ct_CC+:} false; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  if test -n "$ac_ct_CC"; then
2538  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2539else
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543  IFS=$as_save_IFS
2544  test -z "$as_dir" && as_dir=.
2545    for ac_exec_ext in '' $ac_executable_extensions; do
2546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547    ac_cv_prog_ac_ct_CC="$ac_prog"
2548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549    break 2
2550  fi
2551done
2552  done
2553IFS=$as_save_IFS
2554
2555fi
2556fi
2557ac_ct_CC=$ac_cv_prog_ac_ct_CC
2558if test -n "$ac_ct_CC"; then
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2560$as_echo "$ac_ct_CC" >&6; }
2561else
2562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563$as_echo "no" >&6; }
2564fi
2565
2566
2567  test -n "$ac_ct_CC" && break
2568done
2569
2570  if test "x$ac_ct_CC" = x; then
2571    CC=""
2572  else
2573    case $cross_compiling:$ac_tool_warned in
2574yes:)
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2577ac_tool_warned=yes ;;
2578esac
2579    CC=$ac_ct_CC
2580  fi
2581fi
2582
2583fi
2584
2585
2586test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588as_fn_error $? "no acceptable C compiler found in \$PATH
2589See \`config.log' for more details" "$LINENO" 5; }
2590
2591# Provide some information about the compiler.
2592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2593set X $ac_compile
2594ac_compiler=$2
2595for ac_option in --version -v -V -qversion; do
2596  { { ac_try="$ac_compiler $ac_option >&5"
2597case "(($ac_try" in
2598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599  *) ac_try_echo=$ac_try;;
2600esac
2601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602$as_echo "$ac_try_echo"; } >&5
2603  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2604  ac_status=$?
2605  if test -s conftest.err; then
2606    sed '10a\
2607... rest of stderr output deleted ...
2608         10q' conftest.err >conftest.er1
2609    cat conftest.er1 >&5
2610  fi
2611  rm -f conftest.er1 conftest.err
2612  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2613  test $ac_status = 0; }
2614done
2615
2616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617/* end confdefs.h.  */
2618
2619int
2620main ()
2621{
2622
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627ac_clean_files_save=$ac_clean_files
2628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2629# Try to create an executable without -o first, disregard a.out.
2630# It will help us diagnose broken compilers, and finding out an intuition
2631# of exeext.
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2633$as_echo_n "checking whether the C compiler works... " >&6; }
2634ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2635
2636# The possible output files:
2637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2638
2639ac_rmfiles=
2640for ac_file in $ac_files
2641do
2642  case $ac_file in
2643    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2644    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2645  esac
2646done
2647rm -f $ac_rmfiles
2648
2649if { { ac_try="$ac_link_default"
2650case "(($ac_try" in
2651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652  *) ac_try_echo=$ac_try;;
2653esac
2654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2655$as_echo "$ac_try_echo"; } >&5
2656  (eval "$ac_link_default") 2>&5
2657  ac_status=$?
2658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2659  test $ac_status = 0; }; then :
2660  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2662# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2663# so that the user can short-circuit this test for compilers unknown to
2664# Autoconf.
2665for ac_file in $ac_files ''
2666do
2667  test -f "$ac_file" || continue
2668  case $ac_file in
2669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2670	;;
2671    [ab].out )
2672	# We found the default executable, but exeext='' is most
2673	# certainly right.
2674	break;;
2675    *.* )
2676	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2677	then :; else
2678	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2679	fi
2680	# We set ac_cv_exeext here because the later test for it is not
2681	# safe: cross compilers may not add the suffix if given an `-o'
2682	# argument, so we may need to know it at that point already.
2683	# Even if this section looks crufty: it has the advantage of
2684	# actually working.
2685	break;;
2686    * )
2687	break;;
2688  esac
2689done
2690test "$ac_cv_exeext" = no && ac_cv_exeext=
2691
2692else
2693  ac_file=''
2694fi
2695if test -z "$ac_file"; then :
2696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697$as_echo "no" >&6; }
2698$as_echo "$as_me: failed program was:" >&5
2699sed 's/^/| /' conftest.$ac_ext >&5
2700
2701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2703as_fn_error 77 "C compiler cannot create executables
2704See \`config.log' for more details" "$LINENO" 5; }
2705else
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2707$as_echo "yes" >&6; }
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2710$as_echo_n "checking for C compiler default output file name... " >&6; }
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2712$as_echo "$ac_file" >&6; }
2713ac_exeext=$ac_cv_exeext
2714
2715rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2716ac_clean_files=$ac_clean_files_save
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2718$as_echo_n "checking for suffix of executables... " >&6; }
2719if { { ac_try="$ac_link"
2720case "(($ac_try" in
2721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722  *) ac_try_echo=$ac_try;;
2723esac
2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725$as_echo "$ac_try_echo"; } >&5
2726  (eval "$ac_link") 2>&5
2727  ac_status=$?
2728  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729  test $ac_status = 0; }; then :
2730  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2731# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2732# work properly (i.e., refer to `conftest.exe'), while it won't with
2733# `rm'.
2734for ac_file in conftest.exe conftest conftest.*; do
2735  test -f "$ac_file" || continue
2736  case $ac_file in
2737    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2738    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2739	  break;;
2740    * ) break;;
2741  esac
2742done
2743else
2744  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2747See \`config.log' for more details" "$LINENO" 5; }
2748fi
2749rm -f conftest conftest$ac_cv_exeext
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2751$as_echo "$ac_cv_exeext" >&6; }
2752
2753rm -f conftest.$ac_ext
2754EXEEXT=$ac_cv_exeext
2755ac_exeext=$EXEEXT
2756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757/* end confdefs.h.  */
2758#include <stdio.h>
2759int
2760main ()
2761{
2762FILE *f = fopen ("conftest.out", "w");
2763 return ferror (f) || fclose (f) != 0;
2764
2765  ;
2766  return 0;
2767}
2768_ACEOF
2769ac_clean_files="$ac_clean_files conftest.out"
2770# Check that the compiler produces executables we can run.  If not, either
2771# the compiler is broken, or we cross compile.
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2773$as_echo_n "checking whether we are cross compiling... " >&6; }
2774if test "$cross_compiling" != yes; then
2775  { { ac_try="$ac_link"
2776case "(($ac_try" in
2777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778  *) ac_try_echo=$ac_try;;
2779esac
2780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781$as_echo "$ac_try_echo"; } >&5
2782  (eval "$ac_link") 2>&5
2783  ac_status=$?
2784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785  test $ac_status = 0; }
2786  if { ac_try='./conftest$ac_cv_exeext'
2787  { { case "(($ac_try" in
2788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789  *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793  (eval "$ac_try") 2>&5
2794  ac_status=$?
2795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796  test $ac_status = 0; }; }; then
2797    cross_compiling=no
2798  else
2799    if test "$cross_compiling" = maybe; then
2800	cross_compiling=yes
2801    else
2802	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804as_fn_error $? "cannot run C compiled programs.
2805If you meant to cross compile, use \`--host'.
2806See \`config.log' for more details" "$LINENO" 5; }
2807    fi
2808  fi
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2811$as_echo "$cross_compiling" >&6; }
2812
2813rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2814ac_clean_files=$ac_clean_files_save
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2816$as_echo_n "checking for suffix of object files... " >&6; }
2817if ${ac_cv_objext+:} false; then :
2818  $as_echo_n "(cached) " >&6
2819else
2820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h.  */
2822
2823int
2824main ()
2825{
2826
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831rm -f conftest.o conftest.obj
2832if { { ac_try="$ac_compile"
2833case "(($ac_try" in
2834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835  *) ac_try_echo=$ac_try;;
2836esac
2837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838$as_echo "$ac_try_echo"; } >&5
2839  (eval "$ac_compile") 2>&5
2840  ac_status=$?
2841  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842  test $ac_status = 0; }; then :
2843  for ac_file in conftest.o conftest.obj conftest.*; do
2844  test -f "$ac_file" || continue;
2845  case $ac_file in
2846    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2847    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2848       break;;
2849  esac
2850done
2851else
2852  $as_echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857as_fn_error $? "cannot compute suffix of object files: cannot compile
2858See \`config.log' for more details" "$LINENO" 5; }
2859fi
2860rm -f conftest.$ac_cv_objext conftest.$ac_ext
2861fi
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2863$as_echo "$ac_cv_objext" >&6; }
2864OBJEXT=$ac_cv_objext
2865ac_objext=$OBJEXT
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2868if ${ac_cv_c_compiler_gnu+:} false; then :
2869  $as_echo_n "(cached) " >&6
2870else
2871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872/* end confdefs.h.  */
2873
2874int
2875main ()
2876{
2877#ifndef __GNUC__
2878       choke me
2879#endif
2880
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886  ac_compiler_gnu=yes
2887else
2888  ac_compiler_gnu=no
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891ac_cv_c_compiler_gnu=$ac_compiler_gnu
2892
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2895$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2896if test $ac_compiler_gnu = yes; then
2897  GCC=yes
2898else
2899  GCC=
2900fi
2901ac_test_CFLAGS=${CFLAGS+set}
2902ac_save_CFLAGS=$CFLAGS
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2904$as_echo_n "checking whether $CC accepts -g... " >&6; }
2905if ${ac_cv_prog_cc_g+:} false; then :
2906  $as_echo_n "(cached) " >&6
2907else
2908  ac_save_c_werror_flag=$ac_c_werror_flag
2909   ac_c_werror_flag=yes
2910   ac_cv_prog_cc_g=no
2911   CFLAGS="-g"
2912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913/* end confdefs.h.  */
2914
2915int
2916main ()
2917{
2918
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924  ac_cv_prog_cc_g=yes
2925else
2926  CFLAGS=""
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
2940else
2941  ac_c_werror_flag=$ac_save_c_werror_flag
2942	 CFLAGS="-g"
2943	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954if ac_fn_c_try_compile "$LINENO"; then :
2955  ac_cv_prog_cc_g=yes
2956fi
2957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958fi
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960fi
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962   ac_c_werror_flag=$ac_save_c_werror_flag
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2965$as_echo "$ac_cv_prog_cc_g" >&6; }
2966if test "$ac_test_CFLAGS" = set; then
2967  CFLAGS=$ac_save_CFLAGS
2968elif test $ac_cv_prog_cc_g = yes; then
2969  if test "$GCC" = yes; then
2970    CFLAGS="-g -O2"
2971  else
2972    CFLAGS="-g"
2973  fi
2974else
2975  if test "$GCC" = yes; then
2976    CFLAGS="-O2"
2977  else
2978    CFLAGS=
2979  fi
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2983if ${ac_cv_prog_cc_c89+:} false; then :
2984  $as_echo_n "(cached) " >&6
2985else
2986  ac_cv_prog_cc_c89=no
2987ac_save_CC=$CC
2988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989/* end confdefs.h.  */
2990#include <stdarg.h>
2991#include <stdio.h>
2992struct stat;
2993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2994struct buf { int x; };
2995FILE * (*rcsopen) (struct buf *, struct stat *, int);
2996static char *e (p, i)
2997     char **p;
2998     int i;
2999{
3000  return p[i];
3001}
3002static char *f (char * (*g) (char **, int), char **p, ...)
3003{
3004  char *s;
3005  va_list v;
3006  va_start (v,p);
3007  s = g (p, va_arg (v,int));
3008  va_end (v);
3009  return s;
3010}
3011
3012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3013   function prototypes and stuff, but not '\xHH' hex character constants.
3014   These don't provoke an error unfortunately, instead are silently treated
3015   as 'x'.  The following induces an error, until -std is added to get
3016   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3017   array size at least.  It's necessary to write '\x00'==0 to get something
3018   that's true only with -std.  */
3019int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3020
3021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3022   inside strings and character constants.  */
3023#define FOO(x) 'x'
3024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3025
3026int test (int i, double x);
3027struct s1 {int (*f) (int a);};
3028struct s2 {int (*f) (double a);};
3029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3030int argc;
3031char **argv;
3032int
3033main ()
3034{
3035return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3041	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3042do
3043  CC="$ac_save_CC $ac_arg"
3044  if ac_fn_c_try_compile "$LINENO"; then :
3045  ac_cv_prog_cc_c89=$ac_arg
3046fi
3047rm -f core conftest.err conftest.$ac_objext
3048  test "x$ac_cv_prog_cc_c89" != "xno" && break
3049done
3050rm -f conftest.$ac_ext
3051CC=$ac_save_CC
3052
3053fi
3054# AC_CACHE_VAL
3055case "x$ac_cv_prog_cc_c89" in
3056  x)
3057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3058$as_echo "none needed" >&6; } ;;
3059  xno)
3060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3061$as_echo "unsupported" >&6; } ;;
3062  *)
3063    CC="$CC $ac_cv_prog_cc_c89"
3064    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3066esac
3067if test "x$ac_cv_prog_cc_c89" != xno; then :
3068
3069fi
3070
3071ac_ext=c
3072ac_cpp='$CPP $CPPFLAGS'
3073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076
3077ac_ext=c
3078ac_cpp='$CPP $CPPFLAGS'
3079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3083$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3084if ${am_cv_prog_cc_c_o+:} false; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088/* end confdefs.h.  */
3089
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098  # Make sure it works both with $CC and with simple cc.
3099  # Following AC_PROG_CC_C_O, we do the test twice because some
3100  # compilers refuse to overwrite an existing .o file with -o,
3101  # though they will create one.
3102  am_cv_prog_cc_c_o=yes
3103  for am_i in 1 2; do
3104    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3105   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3106   ac_status=$?
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } \
3109         && test -f conftest2.$ac_objext; then
3110      : OK
3111    else
3112      am_cv_prog_cc_c_o=no
3113      break
3114    fi
3115  done
3116  rm -f core conftest*
3117  unset am_i
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3120$as_echo "$am_cv_prog_cc_c_o" >&6; }
3121if test "$am_cv_prog_cc_c_o" != yes; then
3122   # Losing compiler, so override with the script.
3123   # FIXME: It is wrong to rewrite CC.
3124   # But if we don't then we get into trouble of one sort or another.
3125   # A longer-term fix would be to have automake use am__CC in this case,
3126   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3127   CC="$am_aux_dir/compile $CC"
3128fi
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134
3135
3136
3137ac_ext=c
3138ac_cpp='$CPP $CPPFLAGS'
3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3143$as_echo_n "checking how to run the C preprocessor... " >&6; }
3144# On Suns, sometimes $CPP names a directory.
3145if test -n "$CPP" && test -d "$CPP"; then
3146  CPP=
3147fi
3148if test -z "$CPP"; then
3149  if ${ac_cv_prog_CPP+:} false; then :
3150  $as_echo_n "(cached) " >&6
3151else
3152      # Double quotes because CPP needs to be expanded
3153    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3154    do
3155      ac_preproc_ok=false
3156for ac_c_preproc_warn_flag in '' yes
3157do
3158  # Use a header file that comes with gcc, so configuring glibc
3159  # with a fresh cross-compiler works.
3160  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3161  # <limits.h> exists even on freestanding compilers.
3162  # On the NeXT, cc -E runs the code through the compiler's parser,
3163  # not just through cpp. "Syntax error" is here to catch this case.
3164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166#ifdef __STDC__
3167# include <limits.h>
3168#else
3169# include <assert.h>
3170#endif
3171		     Syntax error
3172_ACEOF
3173if ac_fn_c_try_cpp "$LINENO"; then :
3174
3175else
3176  # Broken: fails on valid input.
3177continue
3178fi
3179rm -f conftest.err conftest.i conftest.$ac_ext
3180
3181  # OK, works on sane cases.  Now check whether nonexistent headers
3182  # can be detected and how.
3183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184/* end confdefs.h.  */
3185#include <ac_nonexistent.h>
3186_ACEOF
3187if ac_fn_c_try_cpp "$LINENO"; then :
3188  # Broken: success on invalid input.
3189continue
3190else
3191  # Passes both tests.
3192ac_preproc_ok=:
3193break
3194fi
3195rm -f conftest.err conftest.i conftest.$ac_ext
3196
3197done
3198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199rm -f conftest.i conftest.err conftest.$ac_ext
3200if $ac_preproc_ok; then :
3201  break
3202fi
3203
3204    done
3205    ac_cv_prog_CPP=$CPP
3206
3207fi
3208  CPP=$ac_cv_prog_CPP
3209else
3210  ac_cv_prog_CPP=$CPP
3211fi
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3213$as_echo "$CPP" >&6; }
3214ac_preproc_ok=false
3215for ac_c_preproc_warn_flag in '' yes
3216do
3217  # Use a header file that comes with gcc, so configuring glibc
3218  # with a fresh cross-compiler works.
3219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220  # <limits.h> exists even on freestanding compilers.
3221  # On the NeXT, cc -E runs the code through the compiler's parser,
3222  # not just through cpp. "Syntax error" is here to catch this case.
3223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h.  */
3225#ifdef __STDC__
3226# include <limits.h>
3227#else
3228# include <assert.h>
3229#endif
3230		     Syntax error
3231_ACEOF
3232if ac_fn_c_try_cpp "$LINENO"; then :
3233
3234else
3235  # Broken: fails on valid input.
3236continue
3237fi
3238rm -f conftest.err conftest.i conftest.$ac_ext
3239
3240  # OK, works on sane cases.  Now check whether nonexistent headers
3241  # can be detected and how.
3242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244#include <ac_nonexistent.h>
3245_ACEOF
3246if ac_fn_c_try_cpp "$LINENO"; then :
3247  # Broken: success on invalid input.
3248continue
3249else
3250  # Passes both tests.
3251ac_preproc_ok=:
3252break
3253fi
3254rm -f conftest.err conftest.i conftest.$ac_ext
3255
3256done
3257# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3258rm -f conftest.i conftest.err conftest.$ac_ext
3259if $ac_preproc_ok; then :
3260
3261else
3262  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3265See \`config.log' for more details" "$LINENO" 5; }
3266fi
3267
3268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3276$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3277if ${ac_cv_path_GREP+:} false; then :
3278  $as_echo_n "(cached) " >&6
3279else
3280  if test -z "$GREP"; then
3281  ac_path_GREP_found=false
3282  # Loop through the user's path and test for each of PROGNAME-LIST
3283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    for ac_prog in grep ggrep; do
3289    for ac_exec_ext in '' $ac_executable_extensions; do
3290      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3291      as_fn_executable_p "$ac_path_GREP" || continue
3292# Check for GNU ac_path_GREP and select it if it is found.
3293  # Check for GNU $ac_path_GREP
3294case `"$ac_path_GREP" --version 2>&1` in
3295*GNU*)
3296  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3297*)
3298  ac_count=0
3299  $as_echo_n 0123456789 >"conftest.in"
3300  while :
3301  do
3302    cat "conftest.in" "conftest.in" >"conftest.tmp"
3303    mv "conftest.tmp" "conftest.in"
3304    cp "conftest.in" "conftest.nl"
3305    $as_echo 'GREP' >> "conftest.nl"
3306    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3307    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3308    as_fn_arith $ac_count + 1 && ac_count=$as_val
3309    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3310      # Best one so far, save it but keep looking for a better one
3311      ac_cv_path_GREP="$ac_path_GREP"
3312      ac_path_GREP_max=$ac_count
3313    fi
3314    # 10*(2^10) chars as input seems more than enough
3315    test $ac_count -gt 10 && break
3316  done
3317  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3318esac
3319
3320      $ac_path_GREP_found && break 3
3321    done
3322  done
3323  done
3324IFS=$as_save_IFS
3325  if test -z "$ac_cv_path_GREP"; then
3326    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3327  fi
3328else
3329  ac_cv_path_GREP=$GREP
3330fi
3331
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3334$as_echo "$ac_cv_path_GREP" >&6; }
3335 GREP="$ac_cv_path_GREP"
3336
3337
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3339$as_echo_n "checking for egrep... " >&6; }
3340if ${ac_cv_path_EGREP+:} false; then :
3341  $as_echo_n "(cached) " >&6
3342else
3343  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3344   then ac_cv_path_EGREP="$GREP -E"
3345   else
3346     if test -z "$EGREP"; then
3347  ac_path_EGREP_found=false
3348  # Loop through the user's path and test for each of PROGNAME-LIST
3349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354    for ac_prog in egrep; do
3355    for ac_exec_ext in '' $ac_executable_extensions; do
3356      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3357      as_fn_executable_p "$ac_path_EGREP" || continue
3358# Check for GNU ac_path_EGREP and select it if it is found.
3359  # Check for GNU $ac_path_EGREP
3360case `"$ac_path_EGREP" --version 2>&1` in
3361*GNU*)
3362  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3363*)
3364  ac_count=0
3365  $as_echo_n 0123456789 >"conftest.in"
3366  while :
3367  do
3368    cat "conftest.in" "conftest.in" >"conftest.tmp"
3369    mv "conftest.tmp" "conftest.in"
3370    cp "conftest.in" "conftest.nl"
3371    $as_echo 'EGREP' >> "conftest.nl"
3372    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3374    as_fn_arith $ac_count + 1 && ac_count=$as_val
3375    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3376      # Best one so far, save it but keep looking for a better one
3377      ac_cv_path_EGREP="$ac_path_EGREP"
3378      ac_path_EGREP_max=$ac_count
3379    fi
3380    # 10*(2^10) chars as input seems more than enough
3381    test $ac_count -gt 10 && break
3382  done
3383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3384esac
3385
3386      $ac_path_EGREP_found && break 3
3387    done
3388  done
3389  done
3390IFS=$as_save_IFS
3391  if test -z "$ac_cv_path_EGREP"; then
3392    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3393  fi
3394else
3395  ac_cv_path_EGREP=$EGREP
3396fi
3397
3398   fi
3399fi
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3401$as_echo "$ac_cv_path_EGREP" >&6; }
3402 EGREP="$ac_cv_path_EGREP"
3403
3404
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3406$as_echo_n "checking for ANSI C header files... " >&6; }
3407if ${ac_cv_header_stdc+:} false; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411/* end confdefs.h.  */
3412#include <stdlib.h>
3413#include <stdarg.h>
3414#include <string.h>
3415#include <float.h>
3416
3417int
3418main ()
3419{
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425if ac_fn_c_try_compile "$LINENO"; then :
3426  ac_cv_header_stdc=yes
3427else
3428  ac_cv_header_stdc=no
3429fi
3430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431
3432if test $ac_cv_header_stdc = yes; then
3433  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435/* end confdefs.h.  */
3436#include <string.h>
3437
3438_ACEOF
3439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440  $EGREP "memchr" >/dev/null 2>&1; then :
3441
3442else
3443  ac_cv_header_stdc=no
3444fi
3445rm -f conftest*
3446
3447fi
3448
3449if test $ac_cv_header_stdc = yes; then
3450  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452/* end confdefs.h.  */
3453#include <stdlib.h>
3454
3455_ACEOF
3456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457  $EGREP "free" >/dev/null 2>&1; then :
3458
3459else
3460  ac_cv_header_stdc=no
3461fi
3462rm -f conftest*
3463
3464fi
3465
3466if test $ac_cv_header_stdc = yes; then
3467  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3468  if test "$cross_compiling" = yes; then :
3469  :
3470else
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473#include <ctype.h>
3474#include <stdlib.h>
3475#if ((' ' & 0x0FF) == 0x020)
3476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3478#else
3479# define ISLOWER(c) \
3480		   (('a' <= (c) && (c) <= 'i') \
3481		     || ('j' <= (c) && (c) <= 'r') \
3482		     || ('s' <= (c) && (c) <= 'z'))
3483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3484#endif
3485
3486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3487int
3488main ()
3489{
3490  int i;
3491  for (i = 0; i < 256; i++)
3492    if (XOR (islower (i), ISLOWER (i))
3493	|| toupper (i) != TOUPPER (i))
3494      return 2;
3495  return 0;
3496}
3497_ACEOF
3498if ac_fn_c_try_run "$LINENO"; then :
3499
3500else
3501  ac_cv_header_stdc=no
3502fi
3503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3504  conftest.$ac_objext conftest.beam conftest.$ac_ext
3505fi
3506
3507fi
3508fi
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3510$as_echo "$ac_cv_header_stdc" >&6; }
3511if test $ac_cv_header_stdc = yes; then
3512
3513$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3514
3515fi
3516
3517# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3519		  inttypes.h stdint.h unistd.h
3520do :
3521  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3522ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3523"
3524if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3525  cat >>confdefs.h <<_ACEOF
3526#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3527_ACEOF
3528
3529fi
3530
3531done
3532
3533
3534
3535  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3536if test "x$ac_cv_header_minix_config_h" = xyes; then :
3537  MINIX=yes
3538else
3539  MINIX=
3540fi
3541
3542
3543  if test "$MINIX" = yes; then
3544
3545$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3546
3547
3548$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3549
3550
3551$as_echo "#define _MINIX 1" >>confdefs.h
3552
3553  fi
3554
3555
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3557$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3558if ${ac_cv_safe_to_define___extensions__+:} false; then :
3559  $as_echo_n "(cached) " >&6
3560else
3561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562/* end confdefs.h.  */
3563
3564#         define __EXTENSIONS__ 1
3565          $ac_includes_default
3566int
3567main ()
3568{
3569
3570  ;
3571  return 0;
3572}
3573_ACEOF
3574if ac_fn_c_try_compile "$LINENO"; then :
3575  ac_cv_safe_to_define___extensions__=yes
3576else
3577  ac_cv_safe_to_define___extensions__=no
3578fi
3579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3582$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3583  test $ac_cv_safe_to_define___extensions__ = yes &&
3584    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3585
3586  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3587
3588  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3589
3590  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3591
3592  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3593
3594
3595
3596# Initialize Automake
3597am__api_version='1.15'
3598
3599# Find a good install program.  We prefer a C program (faster),
3600# so one script is as good as another.  But avoid the broken or
3601# incompatible versions:
3602# SysV /etc/install, /usr/sbin/install
3603# SunOS /usr/etc/install
3604# IRIX /sbin/install
3605# AIX /bin/install
3606# AmigaOS /C/install, which installs bootblocks on floppy discs
3607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3610# OS/2's system install, which has a completely different semantic
3611# ./install, which can be erroneously created by make from ./install.sh.
3612# Reject install programs that cannot install multiple files.
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3614$as_echo_n "checking for a BSD-compatible install... " >&6; }
3615if test -z "$INSTALL"; then
3616if ${ac_cv_path_install+:} false; then :
3617  $as_echo_n "(cached) " >&6
3618else
3619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622  IFS=$as_save_IFS
3623  test -z "$as_dir" && as_dir=.
3624    # Account for people who put trailing slashes in PATH elements.
3625case $as_dir/ in #((
3626  ./ | .// | /[cC]/* | \
3627  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3628  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3629  /usr/ucb/* ) ;;
3630  *)
3631    # OSF1 and SCO ODT 3.0 have their own names for install.
3632    # Don't use installbsd from OSF since it installs stuff as root
3633    # by default.
3634    for ac_prog in ginstall scoinst install; do
3635      for ac_exec_ext in '' $ac_executable_extensions; do
3636	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3637	  if test $ac_prog = install &&
3638	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3639	    # AIX install.  It has an incompatible calling convention.
3640	    :
3641	  elif test $ac_prog = install &&
3642	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3643	    # program-specific install script used by HP pwplus--don't use.
3644	    :
3645	  else
3646	    rm -rf conftest.one conftest.two conftest.dir
3647	    echo one > conftest.one
3648	    echo two > conftest.two
3649	    mkdir conftest.dir
3650	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3651	      test -s conftest.one && test -s conftest.two &&
3652	      test -s conftest.dir/conftest.one &&
3653	      test -s conftest.dir/conftest.two
3654	    then
3655	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3656	      break 3
3657	    fi
3658	  fi
3659	fi
3660      done
3661    done
3662    ;;
3663esac
3664
3665  done
3666IFS=$as_save_IFS
3667
3668rm -rf conftest.one conftest.two conftest.dir
3669
3670fi
3671  if test "${ac_cv_path_install+set}" = set; then
3672    INSTALL=$ac_cv_path_install
3673  else
3674    # As a last resort, use the slow shell script.  Don't cache a
3675    # value for INSTALL within a source directory, because that will
3676    # break other packages using the cache if that directory is
3677    # removed, or if the value is a relative name.
3678    INSTALL=$ac_install_sh
3679  fi
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3682$as_echo "$INSTALL" >&6; }
3683
3684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3685# It thinks the first close brace ends the variable substitution.
3686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3687
3688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3689
3690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3693$as_echo_n "checking whether build environment is sane... " >&6; }
3694# Reject unsafe characters in $srcdir or the absolute working directory
3695# name.  Accept space and tab only in the latter.
3696am_lf='
3697'
3698case `pwd` in
3699  *[\\\"\#\$\&\'\`$am_lf]*)
3700    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3701esac
3702case $srcdir in
3703  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3704    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3705esac
3706
3707# Do 'set' in a subshell so we don't clobber the current shell's
3708# arguments.  Must try -L first in case configure is actually a
3709# symlink; some systems play weird games with the mod time of symlinks
3710# (eg FreeBSD returns the mod time of the symlink's containing
3711# directory).
3712if (
3713   am_has_slept=no
3714   for am_try in 1 2; do
3715     echo "timestamp, slept: $am_has_slept" > conftest.file
3716     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3717     if test "$*" = "X"; then
3718	# -L didn't work.
3719	set X `ls -t "$srcdir/configure" conftest.file`
3720     fi
3721     if test "$*" != "X $srcdir/configure conftest.file" \
3722	&& test "$*" != "X conftest.file $srcdir/configure"; then
3723
3724	# If neither matched, then we have a broken ls.  This can happen
3725	# if, for instance, CONFIG_SHELL is bash and it inherits a
3726	# broken ls alias from the environment.  This has actually
3727	# happened.  Such a system could not be considered "sane".
3728	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3729  alias in your environment" "$LINENO" 5
3730     fi
3731     if test "$2" = conftest.file || test $am_try -eq 2; then
3732       break
3733     fi
3734     # Just in case.
3735     sleep 1
3736     am_has_slept=yes
3737   done
3738   test "$2" = conftest.file
3739   )
3740then
3741   # Ok.
3742   :
3743else
3744   as_fn_error $? "newly created file is older than distributed files!
3745Check your system clock" "$LINENO" 5
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3748$as_echo "yes" >&6; }
3749# If we didn't sleep, we still need to ensure time stamps of config.status and
3750# generated files are strictly newer.
3751am_sleep_pid=
3752if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3753  ( sleep 1 ) &
3754  am_sleep_pid=$!
3755fi
3756
3757rm -f conftest.file
3758
3759test "$program_prefix" != NONE &&
3760  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3761# Use a double $ so make ignores it.
3762test "$program_suffix" != NONE &&
3763  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3764# Double any \ or $.
3765# By default was `s,x,x', remove it if useless.
3766ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3767program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3768
3769if test x"${MISSING+set}" != xset; then
3770  case $am_aux_dir in
3771  *\ * | *\	*)
3772    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3773  *)
3774    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3775  esac
3776fi
3777# Use eval to expand $SHELL
3778if eval "$MISSING --is-lightweight"; then
3779  am_missing_run="$MISSING "
3780else
3781  am_missing_run=
3782  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3783$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3784fi
3785
3786if test x"${install_sh+set}" != xset; then
3787  case $am_aux_dir in
3788  *\ * | *\	*)
3789    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3790  *)
3791    install_sh="\${SHELL} $am_aux_dir/install-sh"
3792  esac
3793fi
3794
3795# Installed binaries are usually stripped using 'strip' when the user
3796# run "make install-strip".  However 'strip' might not be the right
3797# tool to use in cross-compilation environments, therefore Automake
3798# will honor the 'STRIP' environment variable to overrule this program.
3799if test "$cross_compiling" != no; then
3800  if test -n "$ac_tool_prefix"; then
3801  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3802set dummy ${ac_tool_prefix}strip; ac_word=$2
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804$as_echo_n "checking for $ac_word... " >&6; }
3805if ${ac_cv_prog_STRIP+:} false; then :
3806  $as_echo_n "(cached) " >&6
3807else
3808  if test -n "$STRIP"; then
3809  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3810else
3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814  IFS=$as_save_IFS
3815  test -z "$as_dir" && as_dir=.
3816    for ac_exec_ext in '' $ac_executable_extensions; do
3817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820    break 2
3821  fi
3822done
3823  done
3824IFS=$as_save_IFS
3825
3826fi
3827fi
3828STRIP=$ac_cv_prog_STRIP
3829if test -n "$STRIP"; then
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3831$as_echo "$STRIP" >&6; }
3832else
3833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834$as_echo "no" >&6; }
3835fi
3836
3837
3838fi
3839if test -z "$ac_cv_prog_STRIP"; then
3840  ac_ct_STRIP=$STRIP
3841  # Extract the first word of "strip", so it can be a program name with args.
3842set dummy strip; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  if test -n "$ac_ct_STRIP"; then
3849  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854  IFS=$as_save_IFS
3855  test -z "$as_dir" && as_dir=.
3856    for ac_exec_ext in '' $ac_executable_extensions; do
3857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858    ac_cv_prog_ac_ct_STRIP="strip"
3859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860    break 2
3861  fi
3862done
3863  done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3869if test -n "$ac_ct_STRIP"; then
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3871$as_echo "$ac_ct_STRIP" >&6; }
3872else
3873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877  if test "x$ac_ct_STRIP" = x; then
3878    STRIP=":"
3879  else
3880    case $cross_compiling:$ac_tool_warned in
3881yes:)
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884ac_tool_warned=yes ;;
3885esac
3886    STRIP=$ac_ct_STRIP
3887  fi
3888else
3889  STRIP="$ac_cv_prog_STRIP"
3890fi
3891
3892fi
3893INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3894
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3896$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3897if test -z "$MKDIR_P"; then
3898  if ${ac_cv_path_mkdir+:} false; then :
3899  $as_echo_n "(cached) " >&6
3900else
3901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3903do
3904  IFS=$as_save_IFS
3905  test -z "$as_dir" && as_dir=.
3906    for ac_prog in mkdir gmkdir; do
3907	 for ac_exec_ext in '' $ac_executable_extensions; do
3908	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3909	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3910	     'mkdir (GNU coreutils) '* | \
3911	     'mkdir (coreutils) '* | \
3912	     'mkdir (fileutils) '4.1*)
3913	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3914	       break 3;;
3915	   esac
3916	 done
3917       done
3918  done
3919IFS=$as_save_IFS
3920
3921fi
3922
3923  test -d ./--version && rmdir ./--version
3924  if test "${ac_cv_path_mkdir+set}" = set; then
3925    MKDIR_P="$ac_cv_path_mkdir -p"
3926  else
3927    # As a last resort, use the slow shell script.  Don't cache a
3928    # value for MKDIR_P within a source directory, because that will
3929    # break other packages using the cache if that directory is
3930    # removed, or if the value is a relative name.
3931    MKDIR_P="$ac_install_sh -d"
3932  fi
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3935$as_echo "$MKDIR_P" >&6; }
3936
3937for ac_prog in gawk mawk nawk awk
3938do
3939  # Extract the first word of "$ac_prog", so it can be a program name with args.
3940set dummy $ac_prog; ac_word=$2
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942$as_echo_n "checking for $ac_word... " >&6; }
3943if ${ac_cv_prog_AWK+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  if test -n "$AWK"; then
3947  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952  IFS=$as_save_IFS
3953  test -z "$as_dir" && as_dir=.
3954    for ac_exec_ext in '' $ac_executable_extensions; do
3955  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956    ac_cv_prog_AWK="$ac_prog"
3957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958    break 2
3959  fi
3960done
3961  done
3962IFS=$as_save_IFS
3963
3964fi
3965fi
3966AWK=$ac_cv_prog_AWK
3967if test -n "$AWK"; then
3968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3969$as_echo "$AWK" >&6; }
3970else
3971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972$as_echo "no" >&6; }
3973fi
3974
3975
3976  test -n "$AWK" && break
3977done
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3980$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3981set x ${MAKE-make}
3982ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3983if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3984  $as_echo_n "(cached) " >&6
3985else
3986  cat >conftest.make <<\_ACEOF
3987SHELL = /bin/sh
3988all:
3989	@echo '@@@%%%=$(MAKE)=@@@%%%'
3990_ACEOF
3991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3992case `${MAKE-make} -f conftest.make 2>/dev/null` in
3993  *@@@%%%=?*=@@@%%%*)
3994    eval ac_cv_prog_make_${ac_make}_set=yes;;
3995  *)
3996    eval ac_cv_prog_make_${ac_make}_set=no;;
3997esac
3998rm -f conftest.make
3999fi
4000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4002$as_echo "yes" >&6; }
4003  SET_MAKE=
4004else
4005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006$as_echo "no" >&6; }
4007  SET_MAKE="MAKE=${MAKE-make}"
4008fi
4009
4010rm -rf .tst 2>/dev/null
4011mkdir .tst 2>/dev/null
4012if test -d .tst; then
4013  am__leading_dot=.
4014else
4015  am__leading_dot=_
4016fi
4017rmdir .tst 2>/dev/null
4018
4019DEPDIR="${am__leading_dot}deps"
4020
4021ac_config_commands="$ac_config_commands depfiles"
4022
4023
4024am_make=${MAKE-make}
4025cat > confinc << 'END'
4026am__doit:
4027	@echo this is the am__doit target
4028.PHONY: am__doit
4029END
4030# If we don't find an include directive, just comment out the code.
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4032$as_echo_n "checking for style of include used by $am_make... " >&6; }
4033am__include="#"
4034am__quote=
4035_am_result=none
4036# First try GNU make style include.
4037echo "include confinc" > confmf
4038# Ignore all kinds of additional output from 'make'.
4039case `$am_make -s -f confmf 2> /dev/null` in #(
4040*the\ am__doit\ target*)
4041  am__include=include
4042  am__quote=
4043  _am_result=GNU
4044  ;;
4045esac
4046# Now try BSD make style include.
4047if test "$am__include" = "#"; then
4048   echo '.include "confinc"' > confmf
4049   case `$am_make -s -f confmf 2> /dev/null` in #(
4050   *the\ am__doit\ target*)
4051     am__include=.include
4052     am__quote="\""
4053     _am_result=BSD
4054     ;;
4055   esac
4056fi
4057
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4060$as_echo "$_am_result" >&6; }
4061rm -f confinc confmf
4062
4063# Check whether --enable-dependency-tracking was given.
4064if test "${enable_dependency_tracking+set}" = set; then :
4065  enableval=$enable_dependency_tracking;
4066fi
4067
4068if test "x$enable_dependency_tracking" != xno; then
4069  am_depcomp="$ac_aux_dir/depcomp"
4070  AMDEPBACKSLASH='\'
4071  am__nodep='_no'
4072fi
4073 if test "x$enable_dependency_tracking" != xno; then
4074  AMDEP_TRUE=
4075  AMDEP_FALSE='#'
4076else
4077  AMDEP_TRUE='#'
4078  AMDEP_FALSE=
4079fi
4080
4081
4082# Check whether --enable-silent-rules was given.
4083if test "${enable_silent_rules+set}" = set; then :
4084  enableval=$enable_silent_rules;
4085fi
4086
4087case $enable_silent_rules in # (((
4088  yes) AM_DEFAULT_VERBOSITY=0;;
4089   no) AM_DEFAULT_VERBOSITY=1;;
4090    *) AM_DEFAULT_VERBOSITY=1;;
4091esac
4092am_make=${MAKE-make}
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4094$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4095if ${am_cv_make_support_nested_variables+:} false; then :
4096  $as_echo_n "(cached) " >&6
4097else
4098  if $as_echo 'TRUE=$(BAR$(V))
4099BAR0=false
4100BAR1=true
4101V=1
4102am__doit:
4103	@$(TRUE)
4104.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4105  am_cv_make_support_nested_variables=yes
4106else
4107  am_cv_make_support_nested_variables=no
4108fi
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4111$as_echo "$am_cv_make_support_nested_variables" >&6; }
4112if test $am_cv_make_support_nested_variables = yes; then
4113    AM_V='$(V)'
4114  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4115else
4116  AM_V=$AM_DEFAULT_VERBOSITY
4117  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4118fi
4119AM_BACKSLASH='\'
4120
4121if test "`cd $srcdir && pwd`" != "`pwd`"; then
4122  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4123  # is not polluted with repeated "-I."
4124  am__isrc=' -I$(srcdir)'
4125  # test to see if srcdir already configured
4126  if test -f $srcdir/config.status; then
4127    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4128  fi
4129fi
4130
4131# test whether we have cygpath
4132if test -z "$CYGPATH_W"; then
4133  if (cygpath --version) >/dev/null 2>/dev/null; then
4134    CYGPATH_W='cygpath -w'
4135  else
4136    CYGPATH_W=echo
4137  fi
4138fi
4139
4140
4141# Define the identity of the package.
4142 PACKAGE='twm'
4143 VERSION='1.0.9'
4144
4145
4146cat >>confdefs.h <<_ACEOF
4147#define PACKAGE "$PACKAGE"
4148_ACEOF
4149
4150
4151cat >>confdefs.h <<_ACEOF
4152#define VERSION "$VERSION"
4153_ACEOF
4154
4155# Some tools Automake needs.
4156
4157ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4158
4159
4160AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4161
4162
4163AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4164
4165
4166AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4167
4168
4169MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4170
4171# For better backward compatibility.  To be removed once Automake 1.9.x
4172# dies out for good.  For more background, see:
4173# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4174# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4175mkdir_p='$(MKDIR_P)'
4176
4177# We need awk for the "check" target (and possibly the TAP driver).  The
4178# system "awk" is bad on some platforms.
4179# Always define AMTAR for backward compatibility.  Yes, it's still used
4180# in the wild :-(  We should find a proper way to deprecate it ...
4181AMTAR='$${TAR-tar}'
4182
4183
4184# We'll loop over all known methods to create a tar archive until one works.
4185_am_tools='gnutar  pax cpio none'
4186
4187am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4188
4189
4190
4191
4192
4193depcc="$CC"   am_compiler_list=
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4196$as_echo_n "checking dependency style of $depcc... " >&6; }
4197if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4198  $as_echo_n "(cached) " >&6
4199else
4200  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4201  # We make a subdir and do the tests there.  Otherwise we can end up
4202  # making bogus files that we don't know about and never remove.  For
4203  # instance it was reported that on HP-UX the gcc test will end up
4204  # making a dummy file named 'D' -- because '-MD' means "put the output
4205  # in D".
4206  rm -rf conftest.dir
4207  mkdir conftest.dir
4208  # Copy depcomp to subdir because otherwise we won't find it if we're
4209  # using a relative directory.
4210  cp "$am_depcomp" conftest.dir
4211  cd conftest.dir
4212  # We will build objects and dependencies in a subdirectory because
4213  # it helps to detect inapplicable dependency modes.  For instance
4214  # both Tru64's cc and ICC support -MD to output dependencies as a
4215  # side effect of compilation, but ICC will put the dependencies in
4216  # the current directory while Tru64 will put them in the object
4217  # directory.
4218  mkdir sub
4219
4220  am_cv_CC_dependencies_compiler_type=none
4221  if test "$am_compiler_list" = ""; then
4222     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4223  fi
4224  am__universal=false
4225  case " $depcc " in #(
4226     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4227     esac
4228
4229  for depmode in $am_compiler_list; do
4230    # Setup a source with many dependencies, because some compilers
4231    # like to wrap large dependency lists on column 80 (with \), and
4232    # we should not choose a depcomp mode which is confused by this.
4233    #
4234    # We need to recreate these files for each test, as the compiler may
4235    # overwrite some of them when testing with obscure command lines.
4236    # This happens at least with the AIX C compiler.
4237    : > sub/conftest.c
4238    for i in 1 2 3 4 5 6; do
4239      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4240      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4241      # Solaris 10 /bin/sh.
4242      echo '/* dummy */' > sub/conftst$i.h
4243    done
4244    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4245
4246    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4247    # mode.  It turns out that the SunPro C++ compiler does not properly
4248    # handle '-M -o', and we need to detect this.  Also, some Intel
4249    # versions had trouble with output in subdirs.
4250    am__obj=sub/conftest.${OBJEXT-o}
4251    am__minus_obj="-o $am__obj"
4252    case $depmode in
4253    gcc)
4254      # This depmode causes a compiler race in universal mode.
4255      test "$am__universal" = false || continue
4256      ;;
4257    nosideeffect)
4258      # After this tag, mechanisms are not by side-effect, so they'll
4259      # only be used when explicitly requested.
4260      if test "x$enable_dependency_tracking" = xyes; then
4261	continue
4262      else
4263	break
4264      fi
4265      ;;
4266    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4267      # This compiler won't grok '-c -o', but also, the minuso test has
4268      # not run yet.  These depmodes are late enough in the game, and
4269      # so weak that their functioning should not be impacted.
4270      am__obj=conftest.${OBJEXT-o}
4271      am__minus_obj=
4272      ;;
4273    none) break ;;
4274    esac
4275    if depmode=$depmode \
4276       source=sub/conftest.c object=$am__obj \
4277       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4278       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4279         >/dev/null 2>conftest.err &&
4280       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4281       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4282       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4283       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4284      # icc doesn't choke on unknown options, it will just issue warnings
4285      # or remarks (even with -Werror).  So we grep stderr for any message
4286      # that says an option was ignored or not supported.
4287      # When given -MP, icc 7.0 and 7.1 complain thusly:
4288      #   icc: Command line warning: ignoring option '-M'; no argument required
4289      # The diagnosis changed in icc 8.0:
4290      #   icc: Command line remark: option '-MP' not supported
4291      if (grep 'ignoring option' conftest.err ||
4292          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4293        am_cv_CC_dependencies_compiler_type=$depmode
4294        break
4295      fi
4296    fi
4297  done
4298
4299  cd ..
4300  rm -rf conftest.dir
4301else
4302  am_cv_CC_dependencies_compiler_type=none
4303fi
4304
4305fi
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4307$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4308CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4309
4310 if
4311  test "x$enable_dependency_tracking" != xno \
4312  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4313  am__fastdepCC_TRUE=
4314  am__fastdepCC_FALSE='#'
4315else
4316  am__fastdepCC_TRUE='#'
4317  am__fastdepCC_FALSE=
4318fi
4319
4320
4321
4322# POSIX will say in a future version that running "rm -f" with no argument
4323# is OK; and we want to be able to make that assumption in our Makefile
4324# recipes.  So use an aggressive probe to check that the usage we want is
4325# actually supported "in the wild" to an acceptable degree.
4326# See automake bug#10828.
4327# To make any issue more visible, cause the running configure to be aborted
4328# by default if the 'rm' program in use doesn't match our expectations; the
4329# user can still override this though.
4330if rm -f && rm -fr && rm -rf; then : OK; else
4331  cat >&2 <<'END'
4332Oops!
4333
4334Your 'rm' program seems unable to run without file operands specified
4335on the command line, even when the '-f' option is present.  This is contrary
4336to the behaviour of most rm programs out there, and not conforming with
4337the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4338
4339Please tell bug-automake@gnu.org about your system, including the value
4340of your $PATH and any error possibly output before this message.  This
4341can help us improve future automake versions.
4342
4343END
4344  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4345    echo 'Configuration will proceed anyway, since you have set the' >&2
4346    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4347    echo >&2
4348  else
4349    cat >&2 <<'END'
4350Aborting the configuration process, to ensure you take notice of the issue.
4351
4352You can download and install GNU coreutils to get an 'rm' implementation
4353that behaves properly: <http://www.gnu.org/software/coreutils/>.
4354
4355If you want to complete the configuration process using your problematic
4356'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4357to "yes", and re-run configure.
4358
4359END
4360    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4361  fi
4362fi
4363
4364
4365# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4378$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4379if ${ac_cv_prog_cc_c99+:} false; then :
4380  $as_echo_n "(cached) " >&6
4381else
4382  ac_cv_prog_cc_c99=no
4383ac_save_CC=$CC
4384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386#include <stdarg.h>
4387#include <stdbool.h>
4388#include <stdlib.h>
4389#include <wchar.h>
4390#include <stdio.h>
4391
4392// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4393#define debug(...) fprintf (stderr, __VA_ARGS__)
4394#define showlist(...) puts (#__VA_ARGS__)
4395#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4396static void
4397test_varargs_macros (void)
4398{
4399  int x = 1234;
4400  int y = 5678;
4401  debug ("Flag");
4402  debug ("X = %d\n", x);
4403  showlist (The first, second, and third items.);
4404  report (x>y, "x is %d but y is %d", x, y);
4405}
4406
4407// Check long long types.
4408#define BIG64 18446744073709551615ull
4409#define BIG32 4294967295ul
4410#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4411#if !BIG_OK
4412  your preprocessor is broken;
4413#endif
4414#if BIG_OK
4415#else
4416  your preprocessor is broken;
4417#endif
4418static long long int bignum = -9223372036854775807LL;
4419static unsigned long long int ubignum = BIG64;
4420
4421struct incomplete_array
4422{
4423  int datasize;
4424  double data[];
4425};
4426
4427struct named_init {
4428  int number;
4429  const wchar_t *name;
4430  double average;
4431};
4432
4433typedef const char *ccp;
4434
4435static inline int
4436test_restrict (ccp restrict text)
4437{
4438  // See if C++-style comments work.
4439  // Iterate through items via the restricted pointer.
4440  // Also check for declarations in for loops.
4441  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4442    continue;
4443  return 0;
4444}
4445
4446// Check varargs and va_copy.
4447static void
4448test_varargs (const char *format, ...)
4449{
4450  va_list args;
4451  va_start (args, format);
4452  va_list args_copy;
4453  va_copy (args_copy, args);
4454
4455  const char *str;
4456  int number;
4457  float fnumber;
4458
4459  while (*format)
4460    {
4461      switch (*format++)
4462	{
4463	case 's': // string
4464	  str = va_arg (args_copy, const char *);
4465	  break;
4466	case 'd': // int
4467	  number = va_arg (args_copy, int);
4468	  break;
4469	case 'f': // float
4470	  fnumber = va_arg (args_copy, double);
4471	  break;
4472	default:
4473	  break;
4474	}
4475    }
4476  va_end (args_copy);
4477  va_end (args);
4478}
4479
4480int
4481main ()
4482{
4483
4484  // Check bool.
4485  _Bool success = false;
4486
4487  // Check restrict.
4488  if (test_restrict ("String literal") == 0)
4489    success = true;
4490  char *restrict newvar = "Another string";
4491
4492  // Check varargs.
4493  test_varargs ("s, d' f .", "string", 65, 34.234);
4494  test_varargs_macros ();
4495
4496  // Check flexible array members.
4497  struct incomplete_array *ia =
4498    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4499  ia->datasize = 10;
4500  for (int i = 0; i < ia->datasize; ++i)
4501    ia->data[i] = i * 1.234;
4502
4503  // Check named initializers.
4504  struct named_init ni = {
4505    .number = 34,
4506    .name = L"Test wide string",
4507    .average = 543.34343,
4508  };
4509
4510  ni.number = 58;
4511
4512  int dynamic_array[ni.number];
4513  dynamic_array[ni.number - 1] = 543;
4514
4515  // work around unused variable warnings
4516  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4517	  || dynamic_array[ni.number - 1] != 543);
4518
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4524do
4525  CC="$ac_save_CC $ac_arg"
4526  if ac_fn_c_try_compile "$LINENO"; then :
4527  ac_cv_prog_cc_c99=$ac_arg
4528fi
4529rm -f core conftest.err conftest.$ac_objext
4530  test "x$ac_cv_prog_cc_c99" != "xno" && break
4531done
4532rm -f conftest.$ac_ext
4533CC=$ac_save_CC
4534
4535fi
4536# AC_CACHE_VAL
4537case "x$ac_cv_prog_cc_c99" in
4538  x)
4539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4540$as_echo "none needed" >&6; } ;;
4541  xno)
4542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4543$as_echo "unsupported" >&6; } ;;
4544  *)
4545    CC="$CC $ac_cv_prog_cc_c99"
4546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4547$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4548esac
4549if test "x$ac_cv_prog_cc_c99" != xno; then :
4550
4551fi
4552
4553
4554
4555
4556
4557
4558ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4559if test "x$ac_cv_have_decl___clang__" = xyes; then :
4560  CLANGCC="yes"
4561else
4562  CLANGCC="no"
4563fi
4564
4565ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4566if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4567  INTELCC="yes"
4568else
4569  INTELCC="no"
4570fi
4571
4572ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4573if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4574  SUNCC="yes"
4575else
4576  SUNCC="no"
4577fi
4578
4579
4580
4581
4582if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4583	if test -n "$ac_tool_prefix"; then
4584  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4585set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_path_PKG_CONFIG+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  case $PKG_CONFIG in
4592  [\\/]* | ?:[\\/]*)
4593  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4594  ;;
4595  *)
4596  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599  IFS=$as_save_IFS
4600  test -z "$as_dir" && as_dir=.
4601    for ac_exec_ext in '' $ac_executable_extensions; do
4602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605    break 2
4606  fi
4607done
4608  done
4609IFS=$as_save_IFS
4610
4611  ;;
4612esac
4613fi
4614PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4615if test -n "$PKG_CONFIG"; then
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4617$as_echo "$PKG_CONFIG" >&6; }
4618else
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620$as_echo "no" >&6; }
4621fi
4622
4623
4624fi
4625if test -z "$ac_cv_path_PKG_CONFIG"; then
4626  ac_pt_PKG_CONFIG=$PKG_CONFIG
4627  # Extract the first word of "pkg-config", so it can be a program name with args.
4628set dummy pkg-config; ac_word=$2
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630$as_echo_n "checking for $ac_word... " >&6; }
4631if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4632  $as_echo_n "(cached) " >&6
4633else
4634  case $ac_pt_PKG_CONFIG in
4635  [\\/]* | ?:[\\/]*)
4636  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4637  ;;
4638  *)
4639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_exec_ext in '' $ac_executable_extensions; do
4645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648    break 2
4649  fi
4650done
4651  done
4652IFS=$as_save_IFS
4653
4654  ;;
4655esac
4656fi
4657ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4658if test -n "$ac_pt_PKG_CONFIG"; then
4659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4660$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4661else
4662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663$as_echo "no" >&6; }
4664fi
4665
4666  if test "x$ac_pt_PKG_CONFIG" = x; then
4667    PKG_CONFIG=""
4668  else
4669    case $cross_compiling:$ac_tool_warned in
4670yes:)
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4673ac_tool_warned=yes ;;
4674esac
4675    PKG_CONFIG=$ac_pt_PKG_CONFIG
4676  fi
4677else
4678  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4679fi
4680
4681fi
4682if test -n "$PKG_CONFIG"; then
4683	_pkg_min_version=0.9.0
4684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4685$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4686	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4688$as_echo "yes" >&6; }
4689	else
4690		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691$as_echo "no" >&6; }
4692		PKG_CONFIG=""
4693	fi
4694
4695fi
4696# Make sure we can run config.sub.
4697$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4698  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4699
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4701$as_echo_n "checking build system type... " >&6; }
4702if ${ac_cv_build+:} false; then :
4703  $as_echo_n "(cached) " >&6
4704else
4705  ac_build_alias=$build_alias
4706test "x$ac_build_alias" = x &&
4707  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4708test "x$ac_build_alias" = x &&
4709  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4710ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4711  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4712
4713fi
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4715$as_echo "$ac_cv_build" >&6; }
4716case $ac_cv_build in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4719esac
4720build=$ac_cv_build
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_build
4723shift
4724build_cpu=$1
4725build_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729build_os=$*
4730IFS=$ac_save_IFS
4731case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4732
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4735$as_echo_n "checking host system type... " >&6; }
4736if ${ac_cv_host+:} false; then :
4737  $as_echo_n "(cached) " >&6
4738else
4739  if test "x$host_alias" = x; then
4740  ac_cv_host=$ac_cv_build
4741else
4742  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4743    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4744fi
4745
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4748$as_echo "$ac_cv_host" >&6; }
4749case $ac_cv_host in
4750*-*-*) ;;
4751*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4752esac
4753host=$ac_cv_host
4754ac_save_IFS=$IFS; IFS='-'
4755set x $ac_cv_host
4756shift
4757host_cpu=$1
4758host_vendor=$2
4759shift; shift
4760# Remember, the first character of IFS is used to create $*,
4761# except with old shells:
4762host_os=$*
4763IFS=$ac_save_IFS
4764case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770  $as_echo_n "(cached) " >&6
4771else
4772            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773     for ac_i in 1 2 3 4 5 6 7; do
4774       ac_script="$ac_script$as_nl$ac_script"
4775     done
4776     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777     { ac_script=; unset ac_script;}
4778     if test -z "$SED"; then
4779  ac_path_SED_found=false
4780  # Loop through the user's path and test for each of PROGNAME-LIST
4781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786    for ac_prog in sed gsed; do
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789      as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
4791  # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796  ac_count=0
4797  $as_echo_n 0123456789 >"conftest.in"
4798  while :
4799  do
4800    cat "conftest.in" "conftest.in" >"conftest.tmp"
4801    mv "conftest.tmp" "conftest.in"
4802    cp "conftest.in" "conftest.nl"
4803    $as_echo '' >> "conftest.nl"
4804    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806    as_fn_arith $ac_count + 1 && ac_count=$as_val
4807    if test $ac_count -gt ${ac_path_SED_max-0}; then
4808      # Best one so far, save it but keep looking for a better one
4809      ac_cv_path_SED="$ac_path_SED"
4810      ac_path_SED_max=$ac_count
4811    fi
4812    # 10*(2^10) chars as input seems more than enough
4813    test $ac_count -gt 10 && break
4814  done
4815  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
4817
4818      $ac_path_SED_found && break 3
4819    done
4820  done
4821  done
4822IFS=$as_save_IFS
4823  if test -z "$ac_cv_path_SED"; then
4824    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825  fi
4826else
4827  ac_cv_path_SED=$SED
4828fi
4829
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834  rm -f conftest.sed
4835
4836
4837
4838
4839
4840
4841# Check whether --enable-selective-werror was given.
4842if test "${enable_selective_werror+set}" = set; then :
4843  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4844else
4845  SELECTIVE_WERROR=yes
4846fi
4847
4848
4849
4850
4851
4852# -v is too short to test reliably with XORG_TESTSET_CFLAG
4853if test "x$SUNCC" = "xyes"; then
4854    BASE_CFLAGS="-v"
4855else
4856    BASE_CFLAGS=""
4857fi
4858
4859# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873xorg_testset_save_CFLAGS="$CFLAGS"
4874
4875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4878$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4879if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883/* end confdefs.h.  */
4884int i;
4885_ACEOF
4886if ac_fn_c_try_compile "$LINENO"; then :
4887  xorg_cv_cc_flag_unknown_warning_option=yes
4888else
4889  xorg_cv_cc_flag_unknown_warning_option=no
4890fi
4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4894$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4896	CFLAGS="$xorg_testset_save_CFLAGS"
4897fi
4898
4899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4902	fi
4903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4905$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4906if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911int i;
4912_ACEOF
4913if ac_fn_c_try_compile "$LINENO"; then :
4914  xorg_cv_cc_flag_unused_command_line_argument=yes
4915else
4916  xorg_cv_cc_flag_unused_command_line_argument=no
4917fi
4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919fi
4920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4921$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4922	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4923	CFLAGS="$xorg_testset_save_CFLAGS"
4924fi
4925
4926found="no"
4927
4928	if test $found = "no" ; then
4929		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4930			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931		fi
4932
4933		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4934			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935		fi
4936
4937		CFLAGS="$CFLAGS -Wall"
4938
4939		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4940$as_echo_n "checking if $CC supports -Wall... " >&6; }
4941		cacheid=xorg_cv_cc_flag__Wall
4942		if eval \${$cacheid+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h.  */
4947int i;
4948int
4949main ()
4950{
4951
4952  ;
4953  return 0;
4954}
4955_ACEOF
4956if ac_fn_c_try_link "$LINENO"; then :
4957  eval $cacheid=yes
4958else
4959  eval $cacheid=no
4960fi
4961rm -f core conftest.err conftest.$ac_objext \
4962    conftest$ac_exeext conftest.$ac_ext
4963fi
4964
4965
4966		CFLAGS="$xorg_testset_save_CFLAGS"
4967
4968		eval supported=\$$cacheid
4969		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4970$as_echo "$supported" >&6; }
4971		if test "$supported" = "yes" ; then
4972			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4973			found="yes"
4974		fi
4975	fi
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991xorg_testset_save_CFLAGS="$CFLAGS"
4992
4993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4996$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4997if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h.  */
5002int i;
5003_ACEOF
5004if ac_fn_c_try_compile "$LINENO"; then :
5005  xorg_cv_cc_flag_unknown_warning_option=yes
5006else
5007  xorg_cv_cc_flag_unknown_warning_option=no
5008fi
5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5012$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5013	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5014	CFLAGS="$xorg_testset_save_CFLAGS"
5015fi
5016
5017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5018	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5019		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5020	fi
5021	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5023$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5024if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029int i;
5030_ACEOF
5031if ac_fn_c_try_compile "$LINENO"; then :
5032  xorg_cv_cc_flag_unused_command_line_argument=yes
5033else
5034  xorg_cv_cc_flag_unused_command_line_argument=no
5035fi
5036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037fi
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5039$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5040	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5041	CFLAGS="$xorg_testset_save_CFLAGS"
5042fi
5043
5044found="no"
5045
5046	if test $found = "no" ; then
5047		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5048			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049		fi
5050
5051		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5052			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5053		fi
5054
5055		CFLAGS="$CFLAGS -Wpointer-arith"
5056
5057		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5058$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5059		cacheid=xorg_cv_cc_flag__Wpointer_arith
5060		if eval \${$cacheid+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066int
5067main ()
5068{
5069
5070  ;
5071  return 0;
5072}
5073_ACEOF
5074if ac_fn_c_try_link "$LINENO"; then :
5075  eval $cacheid=yes
5076else
5077  eval $cacheid=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext \
5080    conftest$ac_exeext conftest.$ac_ext
5081fi
5082
5083
5084		CFLAGS="$xorg_testset_save_CFLAGS"
5085
5086		eval supported=\$$cacheid
5087		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5088$as_echo "$supported" >&6; }
5089		if test "$supported" = "yes" ; then
5090			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5091			found="yes"
5092		fi
5093	fi
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109xorg_testset_save_CFLAGS="$CFLAGS"
5110
5111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5112	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5114$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5115if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5116  $as_echo_n "(cached) " >&6
5117else
5118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121_ACEOF
5122if ac_fn_c_try_compile "$LINENO"; then :
5123  xorg_cv_cc_flag_unknown_warning_option=yes
5124else
5125  xorg_cv_cc_flag_unknown_warning_option=no
5126fi
5127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128fi
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5130$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5131	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5132	CFLAGS="$xorg_testset_save_CFLAGS"
5133fi
5134
5135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5136	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5137		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5138	fi
5139	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5140	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5141$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5142if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5143  $as_echo_n "(cached) " >&6
5144else
5145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146/* end confdefs.h.  */
5147int i;
5148_ACEOF
5149if ac_fn_c_try_compile "$LINENO"; then :
5150  xorg_cv_cc_flag_unused_command_line_argument=yes
5151else
5152  xorg_cv_cc_flag_unused_command_line_argument=no
5153fi
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155fi
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5157$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5158	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5159	CFLAGS="$xorg_testset_save_CFLAGS"
5160fi
5161
5162found="no"
5163
5164	if test $found = "no" ; then
5165		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167		fi
5168
5169		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5170			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171		fi
5172
5173		CFLAGS="$CFLAGS -Wmissing-declarations"
5174
5175		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5176$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5177		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5178		if eval \${$cacheid+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183int i;
5184int
5185main ()
5186{
5187
5188  ;
5189  return 0;
5190}
5191_ACEOF
5192if ac_fn_c_try_link "$LINENO"; then :
5193  eval $cacheid=yes
5194else
5195  eval $cacheid=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext \
5198    conftest$ac_exeext conftest.$ac_ext
5199fi
5200
5201
5202		CFLAGS="$xorg_testset_save_CFLAGS"
5203
5204		eval supported=\$$cacheid
5205		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5206$as_echo "$supported" >&6; }
5207		if test "$supported" = "yes" ; then
5208			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5209			found="yes"
5210		fi
5211	fi
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227xorg_testset_save_CFLAGS="$CFLAGS"
5228
5229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237/* end confdefs.h.  */
5238int i;
5239_ACEOF
5240if ac_fn_c_try_compile "$LINENO"; then :
5241  xorg_cv_cc_flag_unknown_warning_option=yes
5242else
5243  xorg_cv_cc_flag_unknown_warning_option=no
5244fi
5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246fi
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5250	CFLAGS="$xorg_testset_save_CFLAGS"
5251fi
5252
5253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5256	fi
5257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5258	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h.  */
5265int i;
5266_ACEOF
5267if ac_fn_c_try_compile "$LINENO"; then :
5268  xorg_cv_cc_flag_unused_command_line_argument=yes
5269else
5270  xorg_cv_cc_flag_unused_command_line_argument=no
5271fi
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273fi
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5276	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5277	CFLAGS="$xorg_testset_save_CFLAGS"
5278fi
5279
5280found="no"
5281
5282	if test $found = "no" ; then
5283		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5284			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5285		fi
5286
5287		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5288			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5289		fi
5290
5291		CFLAGS="$CFLAGS -Wformat=2"
5292
5293		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5294$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5295		cacheid=xorg_cv_cc_flag__Wformat_2
5296		if eval \${$cacheid+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302int
5303main ()
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_link "$LINENO"; then :
5311  eval $cacheid=yes
5312else
5313  eval $cacheid=no
5314fi
5315rm -f core conftest.err conftest.$ac_objext \
5316    conftest$ac_exeext conftest.$ac_ext
5317fi
5318
5319
5320		CFLAGS="$xorg_testset_save_CFLAGS"
5321
5322		eval supported=\$$cacheid
5323		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5324$as_echo "$supported" >&6; }
5325		if test "$supported" = "yes" ; then
5326			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5327			found="yes"
5328		fi
5329	fi
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wformat"
5341
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5343$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wformat
5345		if eval \${$cacheid+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  eval $cacheid=yes
5361else
5362  eval $cacheid=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366fi
5367
5368
5369		CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371		eval supported=\$$cacheid
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373$as_echo "$supported" >&6; }
5374		if test "$supported" = "yes" ; then
5375			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5376			found="yes"
5377		fi
5378	fi
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396xorg_testset_save_CFLAGS="$CFLAGS"
5397
5398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  xorg_cv_cc_flag_unknown_warning_option=yes
5411else
5412  xorg_cv_cc_flag_unknown_warning_option=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	fi
5426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437  xorg_cv_cc_flag_unused_command_line_argument=yes
5438else
5439  xorg_cv_cc_flag_unused_command_line_argument=no
5440fi
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446	CFLAGS="$xorg_testset_save_CFLAGS"
5447fi
5448
5449found="no"
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wstrict-prototypes"
5461
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5463$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5465		if eval \${$cacheid+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471int
5472main ()
5473{
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_link "$LINENO"; then :
5480  eval $cacheid=yes
5481else
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493$as_echo "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  xorg_cv_cc_flag_unknown_warning_option=yes
5529else
5530  xorg_cv_cc_flag_unknown_warning_option=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553_ACEOF
5554if ac_fn_c_try_compile "$LINENO"; then :
5555  xorg_cv_cc_flag_unused_command_line_argument=yes
5556else
5557  xorg_cv_cc_flag_unused_command_line_argument=no
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564	CFLAGS="$xorg_testset_save_CFLAGS"
5565fi
5566
5567found="no"
5568
5569	if test $found = "no" ; then
5570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572		fi
5573
5574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576		fi
5577
5578		CFLAGS="$CFLAGS -Wmissing-prototypes"
5579
5580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5581$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5582		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5583		if eval \${$cacheid+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589int
5590main ()
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597if ac_fn_c_try_link "$LINENO"; then :
5598  eval $cacheid=yes
5599else
5600  eval $cacheid=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603    conftest$ac_exeext conftest.$ac_ext
5604fi
5605
5606
5607		CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609		eval supported=\$$cacheid
5610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611$as_echo "$supported" >&6; }
5612		if test "$supported" = "yes" ; then
5613			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5614			found="yes"
5615		fi
5616	fi
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632xorg_testset_save_CFLAGS="$CFLAGS"
5633
5634if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5635	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5636	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5637$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5638if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5639  $as_echo_n "(cached) " >&6
5640else
5641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h.  */
5643int i;
5644_ACEOF
5645if ac_fn_c_try_compile "$LINENO"; then :
5646  xorg_cv_cc_flag_unknown_warning_option=yes
5647else
5648  xorg_cv_cc_flag_unknown_warning_option=no
5649fi
5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5653$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5654	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5655	CFLAGS="$xorg_testset_save_CFLAGS"
5656fi
5657
5658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5659	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5660		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5661	fi
5662	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5664$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5665if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669/* end confdefs.h.  */
5670int i;
5671_ACEOF
5672if ac_fn_c_try_compile "$LINENO"; then :
5673  xorg_cv_cc_flag_unused_command_line_argument=yes
5674else
5675  xorg_cv_cc_flag_unused_command_line_argument=no
5676fi
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678fi
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5680$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5681	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5682	CFLAGS="$xorg_testset_save_CFLAGS"
5683fi
5684
5685found="no"
5686
5687	if test $found = "no" ; then
5688		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5689			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690		fi
5691
5692		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5693			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5694		fi
5695
5696		CFLAGS="$CFLAGS -Wnested-externs"
5697
5698		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5699$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5700		cacheid=xorg_cv_cc_flag__Wnested_externs
5701		if eval \${$cacheid+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707int
5708main ()
5709{
5710
5711  ;
5712  return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_link "$LINENO"; then :
5716  eval $cacheid=yes
5717else
5718  eval $cacheid=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext \
5721    conftest$ac_exeext conftest.$ac_ext
5722fi
5723
5724
5725		CFLAGS="$xorg_testset_save_CFLAGS"
5726
5727		eval supported=\$$cacheid
5728		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5729$as_echo "$supported" >&6; }
5730		if test "$supported" = "yes" ; then
5731			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5732			found="yes"
5733		fi
5734	fi
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750xorg_testset_save_CFLAGS="$CFLAGS"
5751
5752if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5753	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5755$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5756if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5757  $as_echo_n "(cached) " >&6
5758else
5759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h.  */
5761int i;
5762_ACEOF
5763if ac_fn_c_try_compile "$LINENO"; then :
5764  xorg_cv_cc_flag_unknown_warning_option=yes
5765else
5766  xorg_cv_cc_flag_unknown_warning_option=no
5767fi
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5771$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5772	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5773	CFLAGS="$xorg_testset_save_CFLAGS"
5774fi
5775
5776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5777	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5778		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5779	fi
5780	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5782$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5783if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5784  $as_echo_n "(cached) " >&6
5785else
5786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787/* end confdefs.h.  */
5788int i;
5789_ACEOF
5790if ac_fn_c_try_compile "$LINENO"; then :
5791  xorg_cv_cc_flag_unused_command_line_argument=yes
5792else
5793  xorg_cv_cc_flag_unused_command_line_argument=no
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800	CFLAGS="$xorg_testset_save_CFLAGS"
5801fi
5802
5803found="no"
5804
5805	if test $found = "no" ; then
5806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808		fi
5809
5810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812		fi
5813
5814		CFLAGS="$CFLAGS -Wbad-function-cast"
5815
5816		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5817$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5818		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5819		if eval \${$cacheid+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825int
5826main ()
5827{
5828
5829  ;
5830  return 0;
5831}
5832_ACEOF
5833if ac_fn_c_try_link "$LINENO"; then :
5834  eval $cacheid=yes
5835else
5836  eval $cacheid=no
5837fi
5838rm -f core conftest.err conftest.$ac_objext \
5839    conftest$ac_exeext conftest.$ac_ext
5840fi
5841
5842
5843		CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845		eval supported=\$$cacheid
5846		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847$as_echo "$supported" >&6; }
5848		if test "$supported" = "yes" ; then
5849			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5850			found="yes"
5851		fi
5852	fi
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5875  $as_echo_n "(cached) " >&6
5876else
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879int i;
5880_ACEOF
5881if ac_fn_c_try_compile "$LINENO"; then :
5882  xorg_cv_cc_flag_unknown_warning_option=yes
5883else
5884  xorg_cv_cc_flag_unknown_warning_option=no
5885fi
5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887fi
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5891	CFLAGS="$xorg_testset_save_CFLAGS"
5892fi
5893
5894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897	fi
5898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h.  */
5906int i;
5907_ACEOF
5908if ac_fn_c_try_compile "$LINENO"; then :
5909  xorg_cv_cc_flag_unused_command_line_argument=yes
5910else
5911  xorg_cv_cc_flag_unused_command_line_argument=no
5912fi
5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5917	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5918	CFLAGS="$xorg_testset_save_CFLAGS"
5919fi
5920
5921found="no"
5922
5923	if test $found = "no" ; then
5924		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5925			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926		fi
5927
5928		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5929			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930		fi
5931
5932		CFLAGS="$CFLAGS -Wold-style-definition"
5933
5934		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5935$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5936		cacheid=xorg_cv_cc_flag__Wold_style_definition
5937		if eval \${$cacheid+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943int
5944main ()
5945{
5946
5947  ;
5948  return 0;
5949}
5950_ACEOF
5951if ac_fn_c_try_link "$LINENO"; then :
5952  eval $cacheid=yes
5953else
5954  eval $cacheid=no
5955fi
5956rm -f core conftest.err conftest.$ac_objext \
5957    conftest$ac_exeext conftest.$ac_ext
5958fi
5959
5960
5961		CFLAGS="$xorg_testset_save_CFLAGS"
5962
5963		eval supported=\$$cacheid
5964		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5965$as_echo "$supported" >&6; }
5966		if test "$supported" = "yes" ; then
5967			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5968			found="yes"
5969		fi
5970	fi
5971
5972	if test $found = "no" ; then
5973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975		fi
5976
5977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979		fi
5980
5981		CFLAGS="$CFLAGS -fd"
5982
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5984$as_echo_n "checking if $CC supports -fd... " >&6; }
5985		cacheid=xorg_cv_cc_flag__fd
5986		if eval \${$cacheid+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  eval $cacheid=yes
6002else
6003  eval $cacheid=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext \
6006    conftest$ac_exeext conftest.$ac_ext
6007fi
6008
6009
6010		CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012		eval supported=\$$cacheid
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014$as_echo "$supported" >&6; }
6015		if test "$supported" = "yes" ; then
6016			BASE_CFLAGS="$BASE_CFLAGS -fd"
6017			found="yes"
6018		fi
6019	fi
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035xorg_testset_save_CFLAGS="$CFLAGS"
6036
6037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046int i;
6047_ACEOF
6048if ac_fn_c_try_compile "$LINENO"; then :
6049  xorg_cv_cc_flag_unknown_warning_option=yes
6050else
6051  xorg_cv_cc_flag_unknown_warning_option=no
6052fi
6053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054fi
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058	CFLAGS="$xorg_testset_save_CFLAGS"
6059fi
6060
6061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064	fi
6065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069  $as_echo_n "(cached) " >&6
6070else
6071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h.  */
6073int i;
6074_ACEOF
6075if ac_fn_c_try_compile "$LINENO"; then :
6076  xorg_cv_cc_flag_unused_command_line_argument=yes
6077else
6078  xorg_cv_cc_flag_unused_command_line_argument=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085	CFLAGS="$xorg_testset_save_CFLAGS"
6086fi
6087
6088found="no"
6089
6090	if test $found = "no" ; then
6091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6093		fi
6094
6095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6097		fi
6098
6099		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6100
6101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6102$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6103		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6104		if eval \${$cacheid+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110int
6111main ()
6112{
6113
6114  ;
6115  return 0;
6116}
6117_ACEOF
6118if ac_fn_c_try_link "$LINENO"; then :
6119  eval $cacheid=yes
6120else
6121  eval $cacheid=no
6122fi
6123rm -f core conftest.err conftest.$ac_objext \
6124    conftest$ac_exeext conftest.$ac_ext
6125fi
6126
6127
6128		CFLAGS="$xorg_testset_save_CFLAGS"
6129
6130		eval supported=\$$cacheid
6131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132$as_echo "$supported" >&6; }
6133		if test "$supported" = "yes" ; then
6134			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6135			found="yes"
6136		fi
6137	fi
6138
6139
6140
6141
6142
6143# This chunk adds additional warnings that could catch undesired effects.
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167/* end confdefs.h.  */
6168int i;
6169_ACEOF
6170if ac_fn_c_try_compile "$LINENO"; then :
6171  xorg_cv_cc_flag_unknown_warning_option=yes
6172else
6173  xorg_cv_cc_flag_unknown_warning_option=no
6174fi
6175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176fi
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6178$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6179	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6180	CFLAGS="$xorg_testset_save_CFLAGS"
6181fi
6182
6183if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6184	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6185		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186	fi
6187	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6189$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6190if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6191  $as_echo_n "(cached) " >&6
6192else
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"; then :
6198  xorg_cv_cc_flag_unused_command_line_argument=yes
6199else
6200  xorg_cv_cc_flag_unused_command_line_argument=no
6201fi
6202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6205$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6206	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6207	CFLAGS="$xorg_testset_save_CFLAGS"
6208fi
6209
6210found="no"
6211
6212	if test $found = "no" ; then
6213		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215		fi
6216
6217		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6218			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6219		fi
6220
6221		CFLAGS="$CFLAGS -Wunused"
6222
6223		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6224$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6225		cacheid=xorg_cv_cc_flag__Wunused
6226		if eval \${$cacheid+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232int
6233main ()
6234{
6235
6236  ;
6237  return 0;
6238}
6239_ACEOF
6240if ac_fn_c_try_link "$LINENO"; then :
6241  eval $cacheid=yes
6242else
6243  eval $cacheid=no
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246    conftest$ac_exeext conftest.$ac_ext
6247fi
6248
6249
6250		CFLAGS="$xorg_testset_save_CFLAGS"
6251
6252		eval supported=\$$cacheid
6253		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6254$as_echo "$supported" >&6; }
6255		if test "$supported" = "yes" ; then
6256			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6257			found="yes"
6258		fi
6259	fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275xorg_testset_save_CFLAGS="$CFLAGS"
6276
6277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6278	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285/* end confdefs.h.  */
6286int i;
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289  xorg_cv_cc_flag_unknown_warning_option=yes
6290else
6291  xorg_cv_cc_flag_unknown_warning_option=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298	CFLAGS="$xorg_testset_save_CFLAGS"
6299fi
6300
6301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304	fi
6305	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312/* end confdefs.h.  */
6313int i;
6314_ACEOF
6315if ac_fn_c_try_compile "$LINENO"; then :
6316  xorg_cv_cc_flag_unused_command_line_argument=yes
6317else
6318  xorg_cv_cc_flag_unused_command_line_argument=no
6319fi
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325	CFLAGS="$xorg_testset_save_CFLAGS"
6326fi
6327
6328found="no"
6329
6330	if test $found = "no" ; then
6331		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333		fi
6334
6335		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6336			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337		fi
6338
6339		CFLAGS="$CFLAGS -Wuninitialized"
6340
6341		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6342$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6343		cacheid=xorg_cv_cc_flag__Wuninitialized
6344		if eval \${$cacheid+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349int i;
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_c_try_link "$LINENO"; then :
6359  eval $cacheid=yes
6360else
6361  eval $cacheid=no
6362fi
6363rm -f core conftest.err conftest.$ac_objext \
6364    conftest$ac_exeext conftest.$ac_ext
6365fi
6366
6367
6368		CFLAGS="$xorg_testset_save_CFLAGS"
6369
6370		eval supported=\$$cacheid
6371		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372$as_echo "$supported" >&6; }
6373		if test "$supported" = "yes" ; then
6374			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6375			found="yes"
6376		fi
6377	fi
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393xorg_testset_save_CFLAGS="$CFLAGS"
6394
6395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6397	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6398$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6399if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6400  $as_echo_n "(cached) " >&6
6401else
6402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403/* end confdefs.h.  */
6404int i;
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407  xorg_cv_cc_flag_unknown_warning_option=yes
6408else
6409  xorg_cv_cc_flag_unknown_warning_option=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6414$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6415	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6416	CFLAGS="$xorg_testset_save_CFLAGS"
6417fi
6418
6419if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6420	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6421		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6422	fi
6423	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6425$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6426if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"; then :
6434  xorg_cv_cc_flag_unused_command_line_argument=yes
6435else
6436  xorg_cv_cc_flag_unused_command_line_argument=no
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439fi
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6441$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6442	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6443	CFLAGS="$xorg_testset_save_CFLAGS"
6444fi
6445
6446found="no"
6447
6448	if test $found = "no" ; then
6449		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6450			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451		fi
6452
6453		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6454			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6455		fi
6456
6457		CFLAGS="$CFLAGS -Wshadow"
6458
6459		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6460$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6461		cacheid=xorg_cv_cc_flag__Wshadow
6462		if eval \${$cacheid+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468int
6469main ()
6470{
6471
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476if ac_fn_c_try_link "$LINENO"; then :
6477  eval $cacheid=yes
6478else
6479  eval $cacheid=no
6480fi
6481rm -f core conftest.err conftest.$ac_objext \
6482    conftest$ac_exeext conftest.$ac_ext
6483fi
6484
6485
6486		CFLAGS="$xorg_testset_save_CFLAGS"
6487
6488		eval supported=\$$cacheid
6489		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6490$as_echo "$supported" >&6; }
6491		if test "$supported" = "yes" ; then
6492			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6493			found="yes"
6494		fi
6495	fi
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511xorg_testset_save_CFLAGS="$CFLAGS"
6512
6513if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6514	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6516$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6517if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h.  */
6522int i;
6523_ACEOF
6524if ac_fn_c_try_compile "$LINENO"; then :
6525  xorg_cv_cc_flag_unknown_warning_option=yes
6526else
6527  xorg_cv_cc_flag_unknown_warning_option=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6532$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6533	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6534	CFLAGS="$xorg_testset_save_CFLAGS"
6535fi
6536
6537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6538	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6539		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6540	fi
6541	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6543$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6544if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6545  $as_echo_n "(cached) " >&6
6546else
6547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h.  */
6549int i;
6550_ACEOF
6551if ac_fn_c_try_compile "$LINENO"; then :
6552  xorg_cv_cc_flag_unused_command_line_argument=yes
6553else
6554  xorg_cv_cc_flag_unused_command_line_argument=no
6555fi
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6559$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6560	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6561	CFLAGS="$xorg_testset_save_CFLAGS"
6562fi
6563
6564found="no"
6565
6566	if test $found = "no" ; then
6567		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6568			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569		fi
6570
6571		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6572			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573		fi
6574
6575		CFLAGS="$CFLAGS -Wmissing-noreturn"
6576
6577		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6578$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6579		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6580		if eval \${$cacheid+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594if ac_fn_c_try_link "$LINENO"; then :
6595  eval $cacheid=yes
6596else
6597  eval $cacheid=no
6598fi
6599rm -f core conftest.err conftest.$ac_objext \
6600    conftest$ac_exeext conftest.$ac_ext
6601fi
6602
6603
6604		CFLAGS="$xorg_testset_save_CFLAGS"
6605
6606		eval supported=\$$cacheid
6607		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6608$as_echo "$supported" >&6; }
6609		if test "$supported" = "yes" ; then
6610			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6611			found="yes"
6612		fi
6613	fi
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629xorg_testset_save_CFLAGS="$CFLAGS"
6630
6631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639/* end confdefs.h.  */
6640int i;
6641_ACEOF
6642if ac_fn_c_try_compile "$LINENO"; then :
6643  xorg_cv_cc_flag_unknown_warning_option=yes
6644else
6645  xorg_cv_cc_flag_unknown_warning_option=no
6646fi
6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648fi
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6652	CFLAGS="$xorg_testset_save_CFLAGS"
6653fi
6654
6655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6658	fi
6659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6663  $as_echo_n "(cached) " >&6
6664else
6665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667int i;
6668_ACEOF
6669if ac_fn_c_try_compile "$LINENO"; then :
6670  xorg_cv_cc_flag_unused_command_line_argument=yes
6671else
6672  xorg_cv_cc_flag_unused_command_line_argument=no
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675fi
6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679	CFLAGS="$xorg_testset_save_CFLAGS"
6680fi
6681
6682found="no"
6683
6684	if test $found = "no" ; then
6685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687		fi
6688
6689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691		fi
6692
6693		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6694
6695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6696$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6697		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6698		if eval \${$cacheid+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704int
6705main ()
6706{
6707
6708  ;
6709  return 0;
6710}
6711_ACEOF
6712if ac_fn_c_try_link "$LINENO"; then :
6713  eval $cacheid=yes
6714else
6715  eval $cacheid=no
6716fi
6717rm -f core conftest.err conftest.$ac_objext \
6718    conftest$ac_exeext conftest.$ac_ext
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726$as_echo "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6754  $as_echo_n "(cached) " >&6
6755else
6756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757/* end confdefs.h.  */
6758int i;
6759_ACEOF
6760if ac_fn_c_try_compile "$LINENO"; then :
6761  xorg_cv_cc_flag_unknown_warning_option=yes
6762else
6763  xorg_cv_cc_flag_unknown_warning_option=no
6764fi
6765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6766fi
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6770	CFLAGS="$xorg_testset_save_CFLAGS"
6771fi
6772
6773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776	fi
6777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6781  $as_echo_n "(cached) " >&6
6782else
6783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h.  */
6785int i;
6786_ACEOF
6787if ac_fn_c_try_compile "$LINENO"; then :
6788  xorg_cv_cc_flag_unused_command_line_argument=yes
6789else
6790  xorg_cv_cc_flag_unused_command_line_argument=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793fi
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6797	CFLAGS="$xorg_testset_save_CFLAGS"
6798fi
6799
6800found="no"
6801
6802	if test $found = "no" ; then
6803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805		fi
6806
6807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6809		fi
6810
6811		CFLAGS="$CFLAGS -Wredundant-decls"
6812
6813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6814$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6815		cacheid=xorg_cv_cc_flag__Wredundant_decls
6816		if eval \${$cacheid+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822int
6823main ()
6824{
6825
6826  ;
6827  return 0;
6828}
6829_ACEOF
6830if ac_fn_c_try_link "$LINENO"; then :
6831  eval $cacheid=yes
6832else
6833  eval $cacheid=no
6834fi
6835rm -f core conftest.err conftest.$ac_objext \
6836    conftest$ac_exeext conftest.$ac_ext
6837fi
6838
6839
6840		CFLAGS="$xorg_testset_save_CFLAGS"
6841
6842		eval supported=\$$cacheid
6843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6844$as_echo "$supported" >&6; }
6845		if test "$supported" = "yes" ; then
6846			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6847			found="yes"
6848		fi
6849	fi
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865xorg_testset_save_CFLAGS="$CFLAGS"
6866
6867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6872  $as_echo_n "(cached) " >&6
6873else
6874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876int i;
6877_ACEOF
6878if ac_fn_c_try_compile "$LINENO"; then :
6879  xorg_cv_cc_flag_unknown_warning_option=yes
6880else
6881  xorg_cv_cc_flag_unknown_warning_option=no
6882fi
6883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6888	CFLAGS="$xorg_testset_save_CFLAGS"
6889fi
6890
6891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6894	fi
6895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6899  $as_echo_n "(cached) " >&6
6900else
6901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902/* end confdefs.h.  */
6903int i;
6904_ACEOF
6905if ac_fn_c_try_compile "$LINENO"; then :
6906  xorg_cv_cc_flag_unused_command_line_argument=yes
6907else
6908  xorg_cv_cc_flag_unused_command_line_argument=no
6909fi
6910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911fi
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6915	CFLAGS="$xorg_testset_save_CFLAGS"
6916fi
6917
6918found="no"
6919
6920	if test $found = "no" ; then
6921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923		fi
6924
6925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927		fi
6928
6929		CFLAGS="$CFLAGS -Wlogical-op"
6930
6931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6932$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6933		cacheid=xorg_cv_cc_flag__Wlogical_op
6934		if eval \${$cacheid+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940int
6941main ()
6942{
6943
6944  ;
6945  return 0;
6946}
6947_ACEOF
6948if ac_fn_c_try_link "$LINENO"; then :
6949  eval $cacheid=yes
6950else
6951  eval $cacheid=no
6952fi
6953rm -f core conftest.err conftest.$ac_objext \
6954    conftest$ac_exeext conftest.$ac_ext
6955fi
6956
6957
6958		CFLAGS="$xorg_testset_save_CFLAGS"
6959
6960		eval supported=\$$cacheid
6961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6962$as_echo "$supported" >&6; }
6963		if test "$supported" = "yes" ; then
6964			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6965			found="yes"
6966		fi
6967	fi
6968
6969
6970
6971# These are currently disabled because they are noisy.  They will be enabled
6972# in the future once the codebase is sufficiently modernized to silence
6973# them.  For now, I don't want them to drown out the other warnings.
6974# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6975# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6976# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6977
6978# Turn some warnings into errors, so we don't accidently get successful builds
6979# when there are problems that should be fixed.
6980
6981if test "x$SELECTIVE_WERROR" = "xyes" ; then
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995xorg_testset_save_CFLAGS="$CFLAGS"
6996
6997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7000$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7001if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7002  $as_echo_n "(cached) " >&6
7003else
7004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006int i;
7007_ACEOF
7008if ac_fn_c_try_compile "$LINENO"; then :
7009  xorg_cv_cc_flag_unknown_warning_option=yes
7010else
7011  xorg_cv_cc_flag_unknown_warning_option=no
7012fi
7013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014fi
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7016$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7018	CFLAGS="$xorg_testset_save_CFLAGS"
7019fi
7020
7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7024	fi
7025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7027$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7028if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032/* end confdefs.h.  */
7033int i;
7034_ACEOF
7035if ac_fn_c_try_compile "$LINENO"; then :
7036  xorg_cv_cc_flag_unused_command_line_argument=yes
7037else
7038  xorg_cv_cc_flag_unused_command_line_argument=no
7039fi
7040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7043$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7044	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7045	CFLAGS="$xorg_testset_save_CFLAGS"
7046fi
7047
7048found="no"
7049
7050	if test $found = "no" ; then
7051		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7052			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7053		fi
7054
7055		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7056			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057		fi
7058
7059		CFLAGS="$CFLAGS -Werror=implicit"
7060
7061		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7062$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7063		cacheid=xorg_cv_cc_flag__Werror_implicit
7064		if eval \${$cacheid+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070int
7071main ()
7072{
7073
7074  ;
7075  return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_link "$LINENO"; then :
7079  eval $cacheid=yes
7080else
7081  eval $cacheid=no
7082fi
7083rm -f core conftest.err conftest.$ac_objext \
7084    conftest$ac_exeext conftest.$ac_ext
7085fi
7086
7087
7088		CFLAGS="$xorg_testset_save_CFLAGS"
7089
7090		eval supported=\$$cacheid
7091		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7092$as_echo "$supported" >&6; }
7093		if test "$supported" = "yes" ; then
7094			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7095			found="yes"
7096		fi
7097	fi
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7111$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7112		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7144			found="yes"
7145		fi
7146	fi
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162xorg_testset_save_CFLAGS="$CFLAGS"
7163
7164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7167$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7168if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7169  $as_echo_n "(cached) " >&6
7170else
7171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h.  */
7173int i;
7174_ACEOF
7175if ac_fn_c_try_compile "$LINENO"; then :
7176  xorg_cv_cc_flag_unknown_warning_option=yes
7177else
7178  xorg_cv_cc_flag_unknown_warning_option=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7183$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7184	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7185	CFLAGS="$xorg_testset_save_CFLAGS"
7186fi
7187
7188if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7189	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7190		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7191	fi
7192	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7194$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7195if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199/* end confdefs.h.  */
7200int i;
7201_ACEOF
7202if ac_fn_c_try_compile "$LINENO"; then :
7203  xorg_cv_cc_flag_unused_command_line_argument=yes
7204else
7205  xorg_cv_cc_flag_unused_command_line_argument=no
7206fi
7207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208fi
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7210$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7212	CFLAGS="$xorg_testset_save_CFLAGS"
7213fi
7214
7215found="no"
7216
7217	if test $found = "no" ; then
7218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220		fi
7221
7222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224		fi
7225
7226		CFLAGS="$CFLAGS -Werror=nonnull"
7227
7228		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7229$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7230		cacheid=xorg_cv_cc_flag__Werror_nonnull
7231		if eval \${$cacheid+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237int
7238main ()
7239{
7240
7241  ;
7242  return 0;
7243}
7244_ACEOF
7245if ac_fn_c_try_link "$LINENO"; then :
7246  eval $cacheid=yes
7247else
7248  eval $cacheid=no
7249fi
7250rm -f core conftest.err conftest.$ac_objext \
7251    conftest$ac_exeext conftest.$ac_ext
7252fi
7253
7254
7255		CFLAGS="$xorg_testset_save_CFLAGS"
7256
7257		eval supported=\$$cacheid
7258		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7259$as_echo "$supported" >&6; }
7260		if test "$supported" = "yes" ; then
7261			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7262			found="yes"
7263		fi
7264	fi
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280xorg_testset_save_CFLAGS="$CFLAGS"
7281
7282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290/* end confdefs.h.  */
7291int i;
7292_ACEOF
7293if ac_fn_c_try_compile "$LINENO"; then :
7294  xorg_cv_cc_flag_unknown_warning_option=yes
7295else
7296  xorg_cv_cc_flag_unknown_warning_option=no
7297fi
7298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7303	CFLAGS="$xorg_testset_save_CFLAGS"
7304fi
7305
7306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309	fi
7310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7314  $as_echo_n "(cached) " >&6
7315else
7316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h.  */
7318int i;
7319_ACEOF
7320if ac_fn_c_try_compile "$LINENO"; then :
7321  xorg_cv_cc_flag_unused_command_line_argument=yes
7322else
7323  xorg_cv_cc_flag_unused_command_line_argument=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326fi
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330	CFLAGS="$xorg_testset_save_CFLAGS"
7331fi
7332
7333found="no"
7334
7335	if test $found = "no" ; then
7336		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338		fi
7339
7340		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342		fi
7343
7344		CFLAGS="$CFLAGS -Werror=init-self"
7345
7346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7347$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7348		cacheid=xorg_cv_cc_flag__Werror_init_self
7349		if eval \${$cacheid+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354int i;
7355int
7356main ()
7357{
7358
7359  ;
7360  return 0;
7361}
7362_ACEOF
7363if ac_fn_c_try_link "$LINENO"; then :
7364  eval $cacheid=yes
7365else
7366  eval $cacheid=no
7367fi
7368rm -f core conftest.err conftest.$ac_objext \
7369    conftest$ac_exeext conftest.$ac_ext
7370fi
7371
7372
7373		CFLAGS="$xorg_testset_save_CFLAGS"
7374
7375		eval supported=\$$cacheid
7376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7377$as_echo "$supported" >&6; }
7378		if test "$supported" = "yes" ; then
7379			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7380			found="yes"
7381		fi
7382	fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398xorg_testset_save_CFLAGS="$CFLAGS"
7399
7400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h.  */
7409int i;
7410_ACEOF
7411if ac_fn_c_try_compile "$LINENO"; then :
7412  xorg_cv_cc_flag_unknown_warning_option=yes
7413else
7414  xorg_cv_cc_flag_unknown_warning_option=no
7415fi
7416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417fi
7418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7427	fi
7428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7432  $as_echo_n "(cached) " >&6
7433else
7434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h.  */
7436int i;
7437_ACEOF
7438if ac_fn_c_try_compile "$LINENO"; then :
7439  xorg_cv_cc_flag_unused_command_line_argument=yes
7440else
7441  xorg_cv_cc_flag_unused_command_line_argument=no
7442fi
7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444fi
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7448	CFLAGS="$xorg_testset_save_CFLAGS"
7449fi
7450
7451found="no"
7452
7453	if test $found = "no" ; then
7454		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456		fi
7457
7458		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7460		fi
7461
7462		CFLAGS="$CFLAGS -Werror=main"
7463
7464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7465$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7466		cacheid=xorg_cv_cc_flag__Werror_main
7467		if eval \${$cacheid+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473int
7474main ()
7475{
7476
7477  ;
7478  return 0;
7479}
7480_ACEOF
7481if ac_fn_c_try_link "$LINENO"; then :
7482  eval $cacheid=yes
7483else
7484  eval $cacheid=no
7485fi
7486rm -f core conftest.err conftest.$ac_objext \
7487    conftest$ac_exeext conftest.$ac_ext
7488fi
7489
7490
7491		CFLAGS="$xorg_testset_save_CFLAGS"
7492
7493		eval supported=\$$cacheid
7494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7495$as_echo "$supported" >&6; }
7496		if test "$supported" = "yes" ; then
7497			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7498			found="yes"
7499		fi
7500	fi
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516xorg_testset_save_CFLAGS="$CFLAGS"
7517
7518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7521$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7522if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7523  $as_echo_n "(cached) " >&6
7524else
7525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526/* end confdefs.h.  */
7527int i;
7528_ACEOF
7529if ac_fn_c_try_compile "$LINENO"; then :
7530  xorg_cv_cc_flag_unknown_warning_option=yes
7531else
7532  xorg_cv_cc_flag_unknown_warning_option=no
7533fi
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535fi
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7537$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7539	CFLAGS="$xorg_testset_save_CFLAGS"
7540fi
7541
7542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545	fi
7546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7548$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7549if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7550  $as_echo_n "(cached) " >&6
7551else
7552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553/* end confdefs.h.  */
7554int i;
7555_ACEOF
7556if ac_fn_c_try_compile "$LINENO"; then :
7557  xorg_cv_cc_flag_unused_command_line_argument=yes
7558else
7559  xorg_cv_cc_flag_unused_command_line_argument=no
7560fi
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562fi
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7564$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7566	CFLAGS="$xorg_testset_save_CFLAGS"
7567fi
7568
7569found="no"
7570
7571	if test $found = "no" ; then
7572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574		fi
7575
7576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578		fi
7579
7580		CFLAGS="$CFLAGS -Werror=missing-braces"
7581
7582		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7583$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7584		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7585		if eval \${$cacheid+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591int
7592main ()
7593{
7594
7595  ;
7596  return 0;
7597}
7598_ACEOF
7599if ac_fn_c_try_link "$LINENO"; then :
7600  eval $cacheid=yes
7601else
7602  eval $cacheid=no
7603fi
7604rm -f core conftest.err conftest.$ac_objext \
7605    conftest$ac_exeext conftest.$ac_ext
7606fi
7607
7608
7609		CFLAGS="$xorg_testset_save_CFLAGS"
7610
7611		eval supported=\$$cacheid
7612		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7613$as_echo "$supported" >&6; }
7614		if test "$supported" = "yes" ; then
7615			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7616			found="yes"
7617		fi
7618	fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634xorg_testset_save_CFLAGS="$CFLAGS"
7635
7636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7637	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7641  $as_echo_n "(cached) " >&6
7642else
7643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644/* end confdefs.h.  */
7645int i;
7646_ACEOF
7647if ac_fn_c_try_compile "$LINENO"; then :
7648  xorg_cv_cc_flag_unknown_warning_option=yes
7649else
7650  xorg_cv_cc_flag_unknown_warning_option=no
7651fi
7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653fi
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7656	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7657	CFLAGS="$xorg_testset_save_CFLAGS"
7658fi
7659
7660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7661	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7662		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7663	fi
7664	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672int i;
7673_ACEOF
7674if ac_fn_c_try_compile "$LINENO"; then :
7675  xorg_cv_cc_flag_unused_command_line_argument=yes
7676else
7677  xorg_cv_cc_flag_unused_command_line_argument=no
7678fi
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680fi
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7683	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7684	CFLAGS="$xorg_testset_save_CFLAGS"
7685fi
7686
7687found="no"
7688
7689	if test $found = "no" ; then
7690		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7691			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692		fi
7693
7694		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7695			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7696		fi
7697
7698		CFLAGS="$CFLAGS -Werror=sequence-point"
7699
7700		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7701$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7702		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7703		if eval \${$cacheid+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709int
7710main ()
7711{
7712
7713  ;
7714  return 0;
7715}
7716_ACEOF
7717if ac_fn_c_try_link "$LINENO"; then :
7718  eval $cacheid=yes
7719else
7720  eval $cacheid=no
7721fi
7722rm -f core conftest.err conftest.$ac_objext \
7723    conftest$ac_exeext conftest.$ac_ext
7724fi
7725
7726
7727		CFLAGS="$xorg_testset_save_CFLAGS"
7728
7729		eval supported=\$$cacheid
7730		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7731$as_echo "$supported" >&6; }
7732		if test "$supported" = "yes" ; then
7733			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7734			found="yes"
7735		fi
7736	fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752xorg_testset_save_CFLAGS="$CFLAGS"
7753
7754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7755	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7759  $as_echo_n "(cached) " >&6
7760else
7761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762/* end confdefs.h.  */
7763int i;
7764_ACEOF
7765if ac_fn_c_try_compile "$LINENO"; then :
7766  xorg_cv_cc_flag_unknown_warning_option=yes
7767else
7768  xorg_cv_cc_flag_unknown_warning_option=no
7769fi
7770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771fi
7772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7774	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7775	CFLAGS="$xorg_testset_save_CFLAGS"
7776fi
7777
7778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7779	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781	fi
7782	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7786  $as_echo_n "(cached) " >&6
7787else
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791_ACEOF
7792if ac_fn_c_try_compile "$LINENO"; then :
7793  xorg_cv_cc_flag_unused_command_line_argument=yes
7794else
7795  xorg_cv_cc_flag_unused_command_line_argument=no
7796fi
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798fi
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7801	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7802	CFLAGS="$xorg_testset_save_CFLAGS"
7803fi
7804
7805found="no"
7806
7807	if test $found = "no" ; then
7808		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7809			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810		fi
7811
7812		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7813			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814		fi
7815
7816		CFLAGS="$CFLAGS -Werror=return-type"
7817
7818		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7819$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7820		cacheid=xorg_cv_cc_flag__Werror_return_type
7821		if eval \${$cacheid+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827int
7828main ()
7829{
7830
7831  ;
7832  return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836  eval $cacheid=yes
7837else
7838  eval $cacheid=no
7839fi
7840rm -f core conftest.err conftest.$ac_objext \
7841    conftest$ac_exeext conftest.$ac_ext
7842fi
7843
7844
7845		CFLAGS="$xorg_testset_save_CFLAGS"
7846
7847		eval supported=\$$cacheid
7848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7849$as_echo "$supported" >&6; }
7850		if test "$supported" = "yes" ; then
7851			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7852			found="yes"
7853		fi
7854	fi
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7868$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7869		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7901			found="yes"
7902		fi
7903	fi
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919xorg_testset_save_CFLAGS="$CFLAGS"
7920
7921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7926  $as_echo_n "(cached) " >&6
7927else
7928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929/* end confdefs.h.  */
7930int i;
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933  xorg_cv_cc_flag_unknown_warning_option=yes
7934else
7935  xorg_cv_cc_flag_unknown_warning_option=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7942	CFLAGS="$xorg_testset_save_CFLAGS"
7943fi
7944
7945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	fi
7949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7953  $as_echo_n "(cached) " >&6
7954else
7955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h.  */
7957int i;
7958_ACEOF
7959if ac_fn_c_try_compile "$LINENO"; then :
7960  xorg_cv_cc_flag_unused_command_line_argument=yes
7961else
7962  xorg_cv_cc_flag_unused_command_line_argument=no
7963fi
7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7969	CFLAGS="$xorg_testset_save_CFLAGS"
7970fi
7971
7972found="no"
7973
7974	if test $found = "no" ; then
7975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977		fi
7978
7979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7981		fi
7982
7983		CFLAGS="$CFLAGS -Werror=trigraphs"
7984
7985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7986$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7987		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7988		if eval \${$cacheid+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994int
7995main ()
7996{
7997
7998  ;
7999  return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003  eval $cacheid=yes
8004else
8005  eval $cacheid=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008    conftest$ac_exeext conftest.$ac_ext
8009fi
8010
8011
8012		CFLAGS="$xorg_testset_save_CFLAGS"
8013
8014		eval supported=\$$cacheid
8015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8016$as_echo "$supported" >&6; }
8017		if test "$supported" = "yes" ; then
8018			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8019			found="yes"
8020		fi
8021	fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037xorg_testset_save_CFLAGS="$CFLAGS"
8038
8039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8044  $as_echo_n "(cached) " >&6
8045else
8046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048int i;
8049_ACEOF
8050if ac_fn_c_try_compile "$LINENO"; then :
8051  xorg_cv_cc_flag_unknown_warning_option=yes
8052else
8053  xorg_cv_cc_flag_unknown_warning_option=no
8054fi
8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060	CFLAGS="$xorg_testset_save_CFLAGS"
8061fi
8062
8063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066	fi
8067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8071  $as_echo_n "(cached) " >&6
8072else
8073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074/* end confdefs.h.  */
8075int i;
8076_ACEOF
8077if ac_fn_c_try_compile "$LINENO"; then :
8078  xorg_cv_cc_flag_unused_command_line_argument=yes
8079else
8080  xorg_cv_cc_flag_unused_command_line_argument=no
8081fi
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Werror=array-bounds"
8102
8103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8104$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8105		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8106		if eval \${$cacheid+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"; then :
8121  eval $cacheid=yes
8122else
8123  eval $cacheid=no
8124fi
8125rm -f core conftest.err conftest.$ac_objext \
8126    conftest$ac_exeext conftest.$ac_ext
8127fi
8128
8129
8130		CFLAGS="$xorg_testset_save_CFLAGS"
8131
8132		eval supported=\$$cacheid
8133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8134$as_echo "$supported" >&6; }
8135		if test "$supported" = "yes" ; then
8136			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8137			found="yes"
8138		fi
8139	fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155xorg_testset_save_CFLAGS="$CFLAGS"
8156
8157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8162  $as_echo_n "(cached) " >&6
8163else
8164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165/* end confdefs.h.  */
8166int i;
8167_ACEOF
8168if ac_fn_c_try_compile "$LINENO"; then :
8169  xorg_cv_cc_flag_unknown_warning_option=yes
8170else
8171  xorg_cv_cc_flag_unknown_warning_option=no
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174fi
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8178	CFLAGS="$xorg_testset_save_CFLAGS"
8179fi
8180
8181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184	fi
8185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8189  $as_echo_n "(cached) " >&6
8190else
8191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192/* end confdefs.h.  */
8193int i;
8194_ACEOF
8195if ac_fn_c_try_compile "$LINENO"; then :
8196  xorg_cv_cc_flag_unused_command_line_argument=yes
8197else
8198  xorg_cv_cc_flag_unused_command_line_argument=no
8199fi
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201fi
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8205	CFLAGS="$xorg_testset_save_CFLAGS"
8206fi
8207
8208found="no"
8209
8210	if test $found = "no" ; then
8211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213		fi
8214
8215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8217		fi
8218
8219		CFLAGS="$CFLAGS -Werror=write-strings"
8220
8221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8222$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8223		cacheid=xorg_cv_cc_flag__Werror_write_strings
8224		if eval \${$cacheid+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230int
8231main ()
8232{
8233
8234  ;
8235  return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239  eval $cacheid=yes
8240else
8241  eval $cacheid=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244    conftest$ac_exeext conftest.$ac_ext
8245fi
8246
8247
8248		CFLAGS="$xorg_testset_save_CFLAGS"
8249
8250		eval supported=\$$cacheid
8251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8252$as_echo "$supported" >&6; }
8253		if test "$supported" = "yes" ; then
8254			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8255			found="yes"
8256		fi
8257	fi
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273xorg_testset_save_CFLAGS="$CFLAGS"
8274
8275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8276	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8280  $as_echo_n "(cached) " >&6
8281else
8282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283/* end confdefs.h.  */
8284int i;
8285_ACEOF
8286if ac_fn_c_try_compile "$LINENO"; then :
8287  xorg_cv_cc_flag_unknown_warning_option=yes
8288else
8289  xorg_cv_cc_flag_unknown_warning_option=no
8290fi
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8295	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8296	CFLAGS="$xorg_testset_save_CFLAGS"
8297fi
8298
8299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8300	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8301		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8302	fi
8303	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8307  $as_echo_n "(cached) " >&6
8308else
8309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310/* end confdefs.h.  */
8311int i;
8312_ACEOF
8313if ac_fn_c_try_compile "$LINENO"; then :
8314  xorg_cv_cc_flag_unused_command_line_argument=yes
8315else
8316  xorg_cv_cc_flag_unused_command_line_argument=no
8317fi
8318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319fi
8320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8323	CFLAGS="$xorg_testset_save_CFLAGS"
8324fi
8325
8326found="no"
8327
8328	if test $found = "no" ; then
8329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331		fi
8332
8333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335		fi
8336
8337		CFLAGS="$CFLAGS -Werror=address"
8338
8339		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8340$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8341		cacheid=xorg_cv_cc_flag__Werror_address
8342		if eval \${$cacheid+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348int
8349main ()
8350{
8351
8352  ;
8353  return 0;
8354}
8355_ACEOF
8356if ac_fn_c_try_link "$LINENO"; then :
8357  eval $cacheid=yes
8358else
8359  eval $cacheid=no
8360fi
8361rm -f core conftest.err conftest.$ac_objext \
8362    conftest$ac_exeext conftest.$ac_ext
8363fi
8364
8365
8366		CFLAGS="$xorg_testset_save_CFLAGS"
8367
8368		eval supported=\$$cacheid
8369		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8370$as_echo "$supported" >&6; }
8371		if test "$supported" = "yes" ; then
8372			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8373			found="yes"
8374		fi
8375	fi
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391xorg_testset_save_CFLAGS="$CFLAGS"
8392
8393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8394	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8398  $as_echo_n "(cached) " >&6
8399else
8400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401/* end confdefs.h.  */
8402int i;
8403_ACEOF
8404if ac_fn_c_try_compile "$LINENO"; then :
8405  xorg_cv_cc_flag_unknown_warning_option=yes
8406else
8407  xorg_cv_cc_flag_unknown_warning_option=no
8408fi
8409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	fi
8421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8425  $as_echo_n "(cached) " >&6
8426else
8427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428/* end confdefs.h.  */
8429int i;
8430_ACEOF
8431if ac_fn_c_try_compile "$LINENO"; then :
8432  xorg_cv_cc_flag_unused_command_line_argument=yes
8433else
8434  xorg_cv_cc_flag_unused_command_line_argument=no
8435fi
8436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437fi
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8440	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8441	CFLAGS="$xorg_testset_save_CFLAGS"
8442fi
8443
8444found="no"
8445
8446	if test $found = "no" ; then
8447		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8448			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8449		fi
8450
8451		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8452			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453		fi
8454
8455		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8456
8457		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8458$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8459		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8460		if eval \${$cacheid+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465int i;
8466int
8467main ()
8468{
8469
8470  ;
8471  return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"; then :
8475  eval $cacheid=yes
8476else
8477  eval $cacheid=no
8478fi
8479rm -f core conftest.err conftest.$ac_objext \
8480    conftest$ac_exeext conftest.$ac_ext
8481fi
8482
8483
8484		CFLAGS="$xorg_testset_save_CFLAGS"
8485
8486		eval supported=\$$cacheid
8487		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8488$as_echo "$supported" >&6; }
8489		if test "$supported" = "yes" ; then
8490			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8491			found="yes"
8492		fi
8493	fi
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8505
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8507$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8508		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8509		if eval \${$cacheid+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  eval $cacheid=yes
8525else
8526  eval $cacheid=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext \
8529    conftest$ac_exeext conftest.$ac_ext
8530fi
8531
8532
8533		CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535		eval supported=\$$cacheid
8536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537$as_echo "$supported" >&6; }
8538		if test "$supported" = "yes" ; then
8539			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8540			found="yes"
8541		fi
8542	fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558xorg_testset_save_CFLAGS="$CFLAGS"
8559
8560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570_ACEOF
8571if ac_fn_c_try_compile "$LINENO"; then :
8572  xorg_cv_cc_flag_unknown_warning_option=yes
8573else
8574  xorg_cv_cc_flag_unknown_warning_option=no
8575fi
8576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577fi
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8581	CFLAGS="$xorg_testset_save_CFLAGS"
8582fi
8583
8584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587	fi
8588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597_ACEOF
8598if ac_fn_c_try_compile "$LINENO"; then :
8599  xorg_cv_cc_flag_unused_command_line_argument=yes
8600else
8601  xorg_cv_cc_flag_unused_command_line_argument=no
8602fi
8603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604fi
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8608	CFLAGS="$xorg_testset_save_CFLAGS"
8609fi
8610
8611found="no"
8612
8613	if test $found = "no" ; then
8614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8616		fi
8617
8618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620		fi
8621
8622		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8623
8624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8625$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8626		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8627		if eval \${$cacheid+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633int
8634main ()
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641if ac_fn_c_try_link "$LINENO"; then :
8642  eval $cacheid=yes
8643else
8644  eval $cacheid=no
8645fi
8646rm -f core conftest.err conftest.$ac_objext \
8647    conftest$ac_exeext conftest.$ac_ext
8648fi
8649
8650
8651		CFLAGS="$xorg_testset_save_CFLAGS"
8652
8653		eval supported=\$$cacheid
8654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8655$as_echo "$supported" >&6; }
8656		if test "$supported" = "yes" ; then
8657			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8658			found="yes"
8659		fi
8660	fi
8661
8662 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8663else
8664{ $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
8665$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;}
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"; then :
8693  xorg_cv_cc_flag_unknown_warning_option=yes
8694else
8695  xorg_cv_cc_flag_unknown_warning_option=no
8696fi
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8702	CFLAGS="$xorg_testset_save_CFLAGS"
8703fi
8704
8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708	fi
8709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8710	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8713  $as_echo_n "(cached) " >&6
8714else
8715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716/* end confdefs.h.  */
8717int i;
8718_ACEOF
8719if ac_fn_c_try_compile "$LINENO"; then :
8720  xorg_cv_cc_flag_unused_command_line_argument=yes
8721else
8722  xorg_cv_cc_flag_unused_command_line_argument=no
8723fi
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8728	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8729	CFLAGS="$xorg_testset_save_CFLAGS"
8730fi
8731
8732found="no"
8733
8734	if test $found = "no" ; then
8735		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737		fi
8738
8739		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8740			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8741		fi
8742
8743		CFLAGS="$CFLAGS -Wimplicit"
8744
8745		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8746$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8747		cacheid=xorg_cv_cc_flag__Wimplicit
8748		if eval \${$cacheid+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754int
8755main ()
8756{
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762if ac_fn_c_try_link "$LINENO"; then :
8763  eval $cacheid=yes
8764else
8765  eval $cacheid=no
8766fi
8767rm -f core conftest.err conftest.$ac_objext \
8768    conftest$ac_exeext conftest.$ac_ext
8769fi
8770
8771
8772		CFLAGS="$xorg_testset_save_CFLAGS"
8773
8774		eval supported=\$$cacheid
8775		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8776$as_echo "$supported" >&6; }
8777		if test "$supported" = "yes" ; then
8778			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8779			found="yes"
8780		fi
8781	fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797xorg_testset_save_CFLAGS="$CFLAGS"
8798
8799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8800	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8801	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8804  $as_echo_n "(cached) " >&6
8805else
8806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808int i;
8809_ACEOF
8810if ac_fn_c_try_compile "$LINENO"; then :
8811  xorg_cv_cc_flag_unknown_warning_option=yes
8812else
8813  xorg_cv_cc_flag_unknown_warning_option=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8819	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8820	CFLAGS="$xorg_testset_save_CFLAGS"
8821fi
8822
8823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8824	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8825		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8826	fi
8827	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834/* end confdefs.h.  */
8835int i;
8836_ACEOF
8837if ac_fn_c_try_compile "$LINENO"; then :
8838  xorg_cv_cc_flag_unused_command_line_argument=yes
8839else
8840  xorg_cv_cc_flag_unused_command_line_argument=no
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843fi
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8847	CFLAGS="$xorg_testset_save_CFLAGS"
8848fi
8849
8850found="no"
8851
8852	if test $found = "no" ; then
8853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855		fi
8856
8857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859		fi
8860
8861		CFLAGS="$CFLAGS -Wnonnull"
8862
8863		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8864$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8865		cacheid=xorg_cv_cc_flag__Wnonnull
8866		if eval \${$cacheid+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872int
8873main ()
8874{
8875
8876  ;
8877  return 0;
8878}
8879_ACEOF
8880if ac_fn_c_try_link "$LINENO"; then :
8881  eval $cacheid=yes
8882else
8883  eval $cacheid=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext \
8886    conftest$ac_exeext conftest.$ac_ext
8887fi
8888
8889
8890		CFLAGS="$xorg_testset_save_CFLAGS"
8891
8892		eval supported=\$$cacheid
8893		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8894$as_echo "$supported" >&6; }
8895		if test "$supported" = "yes" ; then
8896			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8897			found="yes"
8898		fi
8899	fi
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915xorg_testset_save_CFLAGS="$CFLAGS"
8916
8917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8918	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8922  $as_echo_n "(cached) " >&6
8923else
8924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925/* end confdefs.h.  */
8926int i;
8927_ACEOF
8928if ac_fn_c_try_compile "$LINENO"; then :
8929  xorg_cv_cc_flag_unknown_warning_option=yes
8930else
8931  xorg_cv_cc_flag_unknown_warning_option=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8937	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8938	CFLAGS="$xorg_testset_save_CFLAGS"
8939fi
8940
8941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8942	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8943		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944	fi
8945	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h.  */
8953int i;
8954_ACEOF
8955if ac_fn_c_try_compile "$LINENO"; then :
8956  xorg_cv_cc_flag_unused_command_line_argument=yes
8957else
8958  xorg_cv_cc_flag_unused_command_line_argument=no
8959fi
8960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965	CFLAGS="$xorg_testset_save_CFLAGS"
8966fi
8967
8968found="no"
8969
8970	if test $found = "no" ; then
8971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973		fi
8974
8975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977		fi
8978
8979		CFLAGS="$CFLAGS -Winit-self"
8980
8981		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8982$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8983		cacheid=xorg_cv_cc_flag__Winit_self
8984		if eval \${$cacheid+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990int
8991main ()
8992{
8993
8994  ;
8995  return 0;
8996}
8997_ACEOF
8998if ac_fn_c_try_link "$LINENO"; then :
8999  eval $cacheid=yes
9000else
9001  eval $cacheid=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004    conftest$ac_exeext conftest.$ac_ext
9005fi
9006
9007
9008		CFLAGS="$xorg_testset_save_CFLAGS"
9009
9010		eval supported=\$$cacheid
9011		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9012$as_echo "$supported" >&6; }
9013		if test "$supported" = "yes" ; then
9014			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9015			found="yes"
9016		fi
9017	fi
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033xorg_testset_save_CFLAGS="$CFLAGS"
9034
9035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9036	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045_ACEOF
9046if ac_fn_c_try_compile "$LINENO"; then :
9047  xorg_cv_cc_flag_unknown_warning_option=yes
9048else
9049  xorg_cv_cc_flag_unknown_warning_option=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9056	CFLAGS="$xorg_testset_save_CFLAGS"
9057fi
9058
9059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062	fi
9063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9067  $as_echo_n "(cached) " >&6
9068else
9069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h.  */
9071int i;
9072_ACEOF
9073if ac_fn_c_try_compile "$LINENO"; then :
9074  xorg_cv_cc_flag_unused_command_line_argument=yes
9075else
9076  xorg_cv_cc_flag_unused_command_line_argument=no
9077fi
9078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079fi
9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9083	CFLAGS="$xorg_testset_save_CFLAGS"
9084fi
9085
9086found="no"
9087
9088	if test $found = "no" ; then
9089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091		fi
9092
9093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9095		fi
9096
9097		CFLAGS="$CFLAGS -Wmain"
9098
9099		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9100$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9101		cacheid=xorg_cv_cc_flag__Wmain
9102		if eval \${$cacheid+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108int
9109main ()
9110{
9111
9112  ;
9113  return 0;
9114}
9115_ACEOF
9116if ac_fn_c_try_link "$LINENO"; then :
9117  eval $cacheid=yes
9118else
9119  eval $cacheid=no
9120fi
9121rm -f core conftest.err conftest.$ac_objext \
9122    conftest$ac_exeext conftest.$ac_ext
9123fi
9124
9125
9126		CFLAGS="$xorg_testset_save_CFLAGS"
9127
9128		eval supported=\$$cacheid
9129		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9130$as_echo "$supported" >&6; }
9131		if test "$supported" = "yes" ; then
9132			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9133			found="yes"
9134		fi
9135	fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151xorg_testset_save_CFLAGS="$CFLAGS"
9152
9153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9154	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9158  $as_echo_n "(cached) " >&6
9159else
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163_ACEOF
9164if ac_fn_c_try_compile "$LINENO"; then :
9165  xorg_cv_cc_flag_unknown_warning_option=yes
9166else
9167  xorg_cv_cc_flag_unknown_warning_option=no
9168fi
9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170fi
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9173	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9174	CFLAGS="$xorg_testset_save_CFLAGS"
9175fi
9176
9177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9178	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9179		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180	fi
9181	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9182	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9185  $as_echo_n "(cached) " >&6
9186else
9187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188/* end confdefs.h.  */
9189int i;
9190_ACEOF
9191if ac_fn_c_try_compile "$LINENO"; then :
9192  xorg_cv_cc_flag_unused_command_line_argument=yes
9193else
9194  xorg_cv_cc_flag_unused_command_line_argument=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197fi
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9200	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9201	CFLAGS="$xorg_testset_save_CFLAGS"
9202fi
9203
9204found="no"
9205
9206	if test $found = "no" ; then
9207		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209		fi
9210
9211		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9212			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9213		fi
9214
9215		CFLAGS="$CFLAGS -Wmissing-braces"
9216
9217		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9218$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9219		cacheid=xorg_cv_cc_flag__Wmissing_braces
9220		if eval \${$cacheid+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235  eval $cacheid=yes
9236else
9237  eval $cacheid=no
9238fi
9239rm -f core conftest.err conftest.$ac_objext \
9240    conftest$ac_exeext conftest.$ac_ext
9241fi
9242
9243
9244		CFLAGS="$xorg_testset_save_CFLAGS"
9245
9246		eval supported=\$$cacheid
9247		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9248$as_echo "$supported" >&6; }
9249		if test "$supported" = "yes" ; then
9250			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9251			found="yes"
9252		fi
9253	fi
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269xorg_testset_save_CFLAGS="$CFLAGS"
9270
9271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9276  $as_echo_n "(cached) " >&6
9277else
9278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279/* end confdefs.h.  */
9280int i;
9281_ACEOF
9282if ac_fn_c_try_compile "$LINENO"; then :
9283  xorg_cv_cc_flag_unknown_warning_option=yes
9284else
9285  xorg_cv_cc_flag_unknown_warning_option=no
9286fi
9287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9291	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9292	CFLAGS="$xorg_testset_save_CFLAGS"
9293fi
9294
9295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9296	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9297		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9298	fi
9299	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9300	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9303  $as_echo_n "(cached) " >&6
9304else
9305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"; then :
9310  xorg_cv_cc_flag_unused_command_line_argument=yes
9311else
9312  xorg_cv_cc_flag_unused_command_line_argument=no
9313fi
9314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315fi
9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9318	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322found="no"
9323
9324	if test $found = "no" ; then
9325		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9326			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327		fi
9328
9329		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9330			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9331		fi
9332
9333		CFLAGS="$CFLAGS -Wsequence-point"
9334
9335		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9336$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9337		cacheid=xorg_cv_cc_flag__Wsequence_point
9338		if eval \${$cacheid+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344int
9345main ()
9346{
9347
9348  ;
9349  return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353  eval $cacheid=yes
9354else
9355  eval $cacheid=no
9356fi
9357rm -f core conftest.err conftest.$ac_objext \
9358    conftest$ac_exeext conftest.$ac_ext
9359fi
9360
9361
9362		CFLAGS="$xorg_testset_save_CFLAGS"
9363
9364		eval supported=\$$cacheid
9365		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9366$as_echo "$supported" >&6; }
9367		if test "$supported" = "yes" ; then
9368			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9369			found="yes"
9370		fi
9371	fi
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387xorg_testset_save_CFLAGS="$CFLAGS"
9388
9389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9394  $as_echo_n "(cached) " >&6
9395else
9396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398int i;
9399_ACEOF
9400if ac_fn_c_try_compile "$LINENO"; then :
9401  xorg_cv_cc_flag_unknown_warning_option=yes
9402else
9403  xorg_cv_cc_flag_unknown_warning_option=no
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410	CFLAGS="$xorg_testset_save_CFLAGS"
9411fi
9412
9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416	fi
9417	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424/* end confdefs.h.  */
9425int i;
9426_ACEOF
9427if ac_fn_c_try_compile "$LINENO"; then :
9428  xorg_cv_cc_flag_unused_command_line_argument=yes
9429else
9430  xorg_cv_cc_flag_unused_command_line_argument=no
9431fi
9432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9437	CFLAGS="$xorg_testset_save_CFLAGS"
9438fi
9439
9440found="no"
9441
9442	if test $found = "no" ; then
9443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445		fi
9446
9447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449		fi
9450
9451		CFLAGS="$CFLAGS -Wreturn-type"
9452
9453		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9454$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9455		cacheid=xorg_cv_cc_flag__Wreturn_type
9456		if eval \${$cacheid+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462int
9463main ()
9464{
9465
9466  ;
9467  return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471  eval $cacheid=yes
9472else
9473  eval $cacheid=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476    conftest$ac_exeext conftest.$ac_ext
9477fi
9478
9479
9480		CFLAGS="$xorg_testset_save_CFLAGS"
9481
9482		eval supported=\$$cacheid
9483		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9484$as_echo "$supported" >&6; }
9485		if test "$supported" = "yes" ; then
9486			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9487			found="yes"
9488		fi
9489	fi
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505xorg_testset_save_CFLAGS="$CFLAGS"
9506
9507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9512  $as_echo_n "(cached) " >&6
9513else
9514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516int i;
9517_ACEOF
9518if ac_fn_c_try_compile "$LINENO"; then :
9519  xorg_cv_cc_flag_unknown_warning_option=yes
9520else
9521  xorg_cv_cc_flag_unknown_warning_option=no
9522fi
9523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524fi
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528	CFLAGS="$xorg_testset_save_CFLAGS"
9529fi
9530
9531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534	fi
9535	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9539  $as_echo_n "(cached) " >&6
9540else
9541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542/* end confdefs.h.  */
9543int i;
9544_ACEOF
9545if ac_fn_c_try_compile "$LINENO"; then :
9546  xorg_cv_cc_flag_unused_command_line_argument=yes
9547else
9548  xorg_cv_cc_flag_unused_command_line_argument=no
9549fi
9550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551fi
9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9555	CFLAGS="$xorg_testset_save_CFLAGS"
9556fi
9557
9558found="no"
9559
9560	if test $found = "no" ; then
9561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563		fi
9564
9565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9567		fi
9568
9569		CFLAGS="$CFLAGS -Wtrigraphs"
9570
9571		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9572$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9573		cacheid=xorg_cv_cc_flag__Wtrigraphs
9574		if eval \${$cacheid+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580int
9581main ()
9582{
9583
9584  ;
9585  return 0;
9586}
9587_ACEOF
9588if ac_fn_c_try_link "$LINENO"; then :
9589  eval $cacheid=yes
9590else
9591  eval $cacheid=no
9592fi
9593rm -f core conftest.err conftest.$ac_objext \
9594    conftest$ac_exeext conftest.$ac_ext
9595fi
9596
9597
9598		CFLAGS="$xorg_testset_save_CFLAGS"
9599
9600		eval supported=\$$cacheid
9601		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9602$as_echo "$supported" >&6; }
9603		if test "$supported" = "yes" ; then
9604			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9605			found="yes"
9606		fi
9607	fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623xorg_testset_save_CFLAGS="$CFLAGS"
9624
9625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9627	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9630  $as_echo_n "(cached) " >&6
9631else
9632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633/* end confdefs.h.  */
9634int i;
9635_ACEOF
9636if ac_fn_c_try_compile "$LINENO"; then :
9637  xorg_cv_cc_flag_unknown_warning_option=yes
9638else
9639  xorg_cv_cc_flag_unknown_warning_option=no
9640fi
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646	CFLAGS="$xorg_testset_save_CFLAGS"
9647fi
9648
9649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652	fi
9653	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9657  $as_echo_n "(cached) " >&6
9658else
9659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h.  */
9661int i;
9662_ACEOF
9663if ac_fn_c_try_compile "$LINENO"; then :
9664  xorg_cv_cc_flag_unused_command_line_argument=yes
9665else
9666  xorg_cv_cc_flag_unused_command_line_argument=no
9667fi
9668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669fi
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9672	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9673	CFLAGS="$xorg_testset_save_CFLAGS"
9674fi
9675
9676found="no"
9677
9678	if test $found = "no" ; then
9679		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681		fi
9682
9683		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9684			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9685		fi
9686
9687		CFLAGS="$CFLAGS -Warray-bounds"
9688
9689		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9690$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9691		cacheid=xorg_cv_cc_flag__Warray_bounds
9692		if eval \${$cacheid+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698int
9699main ()
9700{
9701
9702  ;
9703  return 0;
9704}
9705_ACEOF
9706if ac_fn_c_try_link "$LINENO"; then :
9707  eval $cacheid=yes
9708else
9709  eval $cacheid=no
9710fi
9711rm -f core conftest.err conftest.$ac_objext \
9712    conftest$ac_exeext conftest.$ac_ext
9713fi
9714
9715
9716		CFLAGS="$xorg_testset_save_CFLAGS"
9717
9718		eval supported=\$$cacheid
9719		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9720$as_echo "$supported" >&6; }
9721		if test "$supported" = "yes" ; then
9722			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9723			found="yes"
9724		fi
9725	fi
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741xorg_testset_save_CFLAGS="$CFLAGS"
9742
9743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9744	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9748  $as_echo_n "(cached) " >&6
9749else
9750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751/* end confdefs.h.  */
9752int i;
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755  xorg_cv_cc_flag_unknown_warning_option=yes
9756else
9757  xorg_cv_cc_flag_unknown_warning_option=no
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760fi
9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9763	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9764	CFLAGS="$xorg_testset_save_CFLAGS"
9765fi
9766
9767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9768	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9769		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9770	fi
9771	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9775  $as_echo_n "(cached) " >&6
9776else
9777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778/* end confdefs.h.  */
9779int i;
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782  xorg_cv_cc_flag_unused_command_line_argument=yes
9783else
9784  xorg_cv_cc_flag_unused_command_line_argument=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9790	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9791	CFLAGS="$xorg_testset_save_CFLAGS"
9792fi
9793
9794found="no"
9795
9796	if test $found = "no" ; then
9797		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9798			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799		fi
9800
9801		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9802			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9803		fi
9804
9805		CFLAGS="$CFLAGS -Wwrite-strings"
9806
9807		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9808$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9809		cacheid=xorg_cv_cc_flag__Wwrite_strings
9810		if eval \${$cacheid+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int i;
9816int
9817main ()
9818{
9819
9820  ;
9821  return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_link "$LINENO"; then :
9825  eval $cacheid=yes
9826else
9827  eval $cacheid=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830    conftest$ac_exeext conftest.$ac_ext
9831fi
9832
9833
9834		CFLAGS="$xorg_testset_save_CFLAGS"
9835
9836		eval supported=\$$cacheid
9837		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9838$as_echo "$supported" >&6; }
9839		if test "$supported" = "yes" ; then
9840			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9841			found="yes"
9842		fi
9843	fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859xorg_testset_save_CFLAGS="$CFLAGS"
9860
9861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9862	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9866  $as_echo_n "(cached) " >&6
9867else
9868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h.  */
9870int i;
9871_ACEOF
9872if ac_fn_c_try_compile "$LINENO"; then :
9873  xorg_cv_cc_flag_unknown_warning_option=yes
9874else
9875  xorg_cv_cc_flag_unknown_warning_option=no
9876fi
9877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878fi
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9881	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9882	CFLAGS="$xorg_testset_save_CFLAGS"
9883fi
9884
9885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9886	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9887		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9888	fi
9889	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9893  $as_echo_n "(cached) " >&6
9894else
9895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9896/* end confdefs.h.  */
9897int i;
9898_ACEOF
9899if ac_fn_c_try_compile "$LINENO"; then :
9900  xorg_cv_cc_flag_unused_command_line_argument=yes
9901else
9902  xorg_cv_cc_flag_unused_command_line_argument=no
9903fi
9904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9908	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9909	CFLAGS="$xorg_testset_save_CFLAGS"
9910fi
9911
9912found="no"
9913
9914	if test $found = "no" ; then
9915		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917		fi
9918
9919		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9920			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9921		fi
9922
9923		CFLAGS="$CFLAGS -Waddress"
9924
9925		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9926$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9927		cacheid=xorg_cv_cc_flag__Waddress
9928		if eval \${$cacheid+:} false; then :
9929  $as_echo_n "(cached) " >&6
9930else
9931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h.  */
9933int i;
9934int
9935main ()
9936{
9937
9938  ;
9939  return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943  eval $cacheid=yes
9944else
9945  eval $cacheid=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948    conftest$ac_exeext conftest.$ac_ext
9949fi
9950
9951
9952		CFLAGS="$xorg_testset_save_CFLAGS"
9953
9954		eval supported=\$$cacheid
9955		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9956$as_echo "$supported" >&6; }
9957		if test "$supported" = "yes" ; then
9958			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9959			found="yes"
9960		fi
9961	fi
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977xorg_testset_save_CFLAGS="$CFLAGS"
9978
9979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9980	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9981	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9984  $as_echo_n "(cached) " >&6
9985else
9986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h.  */
9988int i;
9989_ACEOF
9990if ac_fn_c_try_compile "$LINENO"; then :
9991  xorg_cv_cc_flag_unknown_warning_option=yes
9992else
9993  xorg_cv_cc_flag_unknown_warning_option=no
9994fi
9995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996fi
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10000	CFLAGS="$xorg_testset_save_CFLAGS"
10001fi
10002
10003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10006	fi
10007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10011  $as_echo_n "(cached) " >&6
10012else
10013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"; then :
10018  xorg_cv_cc_flag_unused_command_line_argument=yes
10019else
10020  xorg_cv_cc_flag_unused_command_line_argument=no
10021fi
10022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023fi
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10027	CFLAGS="$xorg_testset_save_CFLAGS"
10028fi
10029
10030found="no"
10031
10032	if test $found = "no" ; then
10033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035		fi
10036
10037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10039		fi
10040
10041		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10042
10043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10044$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10045		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10046		if eval \${$cacheid+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052int
10053main ()
10054{
10055
10056  ;
10057  return 0;
10058}
10059_ACEOF
10060if ac_fn_c_try_link "$LINENO"; then :
10061  eval $cacheid=yes
10062else
10063  eval $cacheid=no
10064fi
10065rm -f core conftest.err conftest.$ac_objext \
10066    conftest$ac_exeext conftest.$ac_ext
10067fi
10068
10069
10070		CFLAGS="$xorg_testset_save_CFLAGS"
10071
10072		eval supported=\$$cacheid
10073		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10074$as_echo "$supported" >&6; }
10075		if test "$supported" = "yes" ; then
10076			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10077			found="yes"
10078		fi
10079	fi
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095xorg_testset_save_CFLAGS="$CFLAGS"
10096
10097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10098	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10099	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10102  $as_echo_n "(cached) " >&6
10103else
10104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105/* end confdefs.h.  */
10106int i;
10107_ACEOF
10108if ac_fn_c_try_compile "$LINENO"; then :
10109  xorg_cv_cc_flag_unknown_warning_option=yes
10110else
10111  xorg_cv_cc_flag_unknown_warning_option=no
10112fi
10113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10114fi
10115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10117	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10118	CFLAGS="$xorg_testset_save_CFLAGS"
10119fi
10120
10121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10122	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10123		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10124	fi
10125	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10129  $as_echo_n "(cached) " >&6
10130else
10131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132/* end confdefs.h.  */
10133int i;
10134_ACEOF
10135if ac_fn_c_try_compile "$LINENO"; then :
10136  xorg_cv_cc_flag_unused_command_line_argument=yes
10137else
10138  xorg_cv_cc_flag_unused_command_line_argument=no
10139fi
10140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10141fi
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10145	CFLAGS="$xorg_testset_save_CFLAGS"
10146fi
10147
10148found="no"
10149
10150	if test $found = "no" ; then
10151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10153		fi
10154
10155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10157		fi
10158
10159		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10160
10161		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10162$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10163		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10164		if eval \${$cacheid+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170int
10171main ()
10172{
10173
10174  ;
10175  return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then :
10179  eval $cacheid=yes
10180else
10181  eval $cacheid=no
10182fi
10183rm -f core conftest.err conftest.$ac_objext \
10184    conftest$ac_exeext conftest.$ac_ext
10185fi
10186
10187
10188		CFLAGS="$xorg_testset_save_CFLAGS"
10189
10190		eval supported=\$$cacheid
10191		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10192$as_echo "$supported" >&6; }
10193		if test "$supported" = "yes" ; then
10194			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10195			found="yes"
10196		fi
10197	fi
10198
10199
10200fi
10201
10202
10203
10204
10205
10206
10207
10208		CWARNFLAGS="$BASE_CFLAGS"
10209		if  test "x$GCC" = xyes ; then
10210		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10211		fi
10212
10213
10214
10215
10216
10217
10218
10219
10220# Check whether --enable-strict-compilation was given.
10221if test "${enable_strict_compilation+set}" = set; then :
10222  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10223else
10224  STRICT_COMPILE=no
10225fi
10226
10227
10228
10229
10230
10231
10232STRICT_CFLAGS=""
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246xorg_testset_save_CFLAGS="$CFLAGS"
10247
10248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10249	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10253  $as_echo_n "(cached) " >&6
10254else
10255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256/* end confdefs.h.  */
10257int i;
10258_ACEOF
10259if ac_fn_c_try_compile "$LINENO"; then :
10260  xorg_cv_cc_flag_unknown_warning_option=yes
10261else
10262  xorg_cv_cc_flag_unknown_warning_option=no
10263fi
10264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265fi
10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10269	CFLAGS="$xorg_testset_save_CFLAGS"
10270fi
10271
10272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10275	fi
10276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10277	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10280  $as_echo_n "(cached) " >&6
10281else
10282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284int i;
10285_ACEOF
10286if ac_fn_c_try_compile "$LINENO"; then :
10287  xorg_cv_cc_flag_unused_command_line_argument=yes
10288else
10289  xorg_cv_cc_flag_unused_command_line_argument=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292fi
10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10295	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10296	CFLAGS="$xorg_testset_save_CFLAGS"
10297fi
10298
10299found="no"
10300
10301	if test $found = "no" ; then
10302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304		fi
10305
10306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10308		fi
10309
10310		CFLAGS="$CFLAGS -pedantic"
10311
10312		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10313$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10314		cacheid=xorg_cv_cc_flag__pedantic
10315		if eval \${$cacheid+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320int i;
10321int
10322main ()
10323{
10324
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329if ac_fn_c_try_link "$LINENO"; then :
10330  eval $cacheid=yes
10331else
10332  eval $cacheid=no
10333fi
10334rm -f core conftest.err conftest.$ac_objext \
10335    conftest$ac_exeext conftest.$ac_ext
10336fi
10337
10338
10339		CFLAGS="$xorg_testset_save_CFLAGS"
10340
10341		eval supported=\$$cacheid
10342		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10343$as_echo "$supported" >&6; }
10344		if test "$supported" = "yes" ; then
10345			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10346			found="yes"
10347		fi
10348	fi
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364xorg_testset_save_CFLAGS="$CFLAGS"
10365
10366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10367	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10371  $as_echo_n "(cached) " >&6
10372else
10373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375int i;
10376_ACEOF
10377if ac_fn_c_try_compile "$LINENO"; then :
10378  xorg_cv_cc_flag_unknown_warning_option=yes
10379else
10380  xorg_cv_cc_flag_unknown_warning_option=no
10381fi
10382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10386	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10387	CFLAGS="$xorg_testset_save_CFLAGS"
10388fi
10389
10390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10391	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393	fi
10394	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10398  $as_echo_n "(cached) " >&6
10399else
10400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402int i;
10403_ACEOF
10404if ac_fn_c_try_compile "$LINENO"; then :
10405  xorg_cv_cc_flag_unused_command_line_argument=yes
10406else
10407  xorg_cv_cc_flag_unused_command_line_argument=no
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410fi
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10414	CFLAGS="$xorg_testset_save_CFLAGS"
10415fi
10416
10417found="no"
10418
10419	if test $found = "no" ; then
10420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10422		fi
10423
10424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10426		fi
10427
10428		CFLAGS="$CFLAGS -Werror"
10429
10430		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10431$as_echo_n "checking if $CC supports -Werror... " >&6; }
10432		cacheid=xorg_cv_cc_flag__Werror
10433		if eval \${$cacheid+:} false; then :
10434  $as_echo_n "(cached) " >&6
10435else
10436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439int
10440main ()
10441{
10442
10443  ;
10444  return 0;
10445}
10446_ACEOF
10447if ac_fn_c_try_link "$LINENO"; then :
10448  eval $cacheid=yes
10449else
10450  eval $cacheid=no
10451fi
10452rm -f core conftest.err conftest.$ac_objext \
10453    conftest$ac_exeext conftest.$ac_ext
10454fi
10455
10456
10457		CFLAGS="$xorg_testset_save_CFLAGS"
10458
10459		eval supported=\$$cacheid
10460		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10461$as_echo "$supported" >&6; }
10462		if test "$supported" = "yes" ; then
10463			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10464			found="yes"
10465		fi
10466	fi
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -errwarn"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10480$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10481		cacheid=xorg_cv_cc_flag__errwarn
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10513			found="yes"
10514		fi
10515	fi
10516
10517
10518
10519# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10520# activate it with -Werror, so we add it here explicitly.
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534xorg_testset_save_CFLAGS="$CFLAGS"
10535
10536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10537	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10538	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10541  $as_echo_n "(cached) " >&6
10542else
10543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545int i;
10546_ACEOF
10547if ac_fn_c_try_compile "$LINENO"; then :
10548  xorg_cv_cc_flag_unknown_warning_option=yes
10549else
10550  xorg_cv_cc_flag_unknown_warning_option=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553fi
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557	CFLAGS="$xorg_testset_save_CFLAGS"
10558fi
10559
10560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563	fi
10564	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10568  $as_echo_n "(cached) " >&6
10569else
10570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571/* end confdefs.h.  */
10572int i;
10573_ACEOF
10574if ac_fn_c_try_compile "$LINENO"; then :
10575  xorg_cv_cc_flag_unused_command_line_argument=yes
10576else
10577  xorg_cv_cc_flag_unused_command_line_argument=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580fi
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584	CFLAGS="$xorg_testset_save_CFLAGS"
10585fi
10586
10587found="no"
10588
10589	if test $found = "no" ; then
10590		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592		fi
10593
10594		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596		fi
10597
10598		CFLAGS="$CFLAGS -Werror=attributes"
10599
10600		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10601$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10602		cacheid=xorg_cv_cc_flag__Werror_attributes
10603		if eval \${$cacheid+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609int
10610main ()
10611{
10612
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617if ac_fn_c_try_link "$LINENO"; then :
10618  eval $cacheid=yes
10619else
10620  eval $cacheid=no
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624fi
10625
10626
10627		CFLAGS="$xorg_testset_save_CFLAGS"
10628
10629		eval supported=\$$cacheid
10630		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10631$as_echo "$supported" >&6; }
10632		if test "$supported" = "yes" ; then
10633			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10634			found="yes"
10635		fi
10636	fi
10637
10638
10639
10640if test "x$STRICT_COMPILE" = "xyes"; then
10641    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10642    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10643fi
10644
10645
10646
10647
10648
10649
10650cat >>confdefs.h <<_ACEOF
10651#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10652_ACEOF
10653
10654	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10655	if test "x$PVM" = "x"; then
10656		PVM="0"
10657	fi
10658
10659cat >>confdefs.h <<_ACEOF
10660#define PACKAGE_VERSION_MINOR $PVM
10661_ACEOF
10662
10663	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10664	if test "x$PVP" = "x"; then
10665		PVP="0"
10666	fi
10667
10668cat >>confdefs.h <<_ACEOF
10669#define PACKAGE_VERSION_PATCHLEVEL $PVP
10670_ACEOF
10671
10672
10673
10674CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10675mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10676|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10677echo 'git directory not found: installing possibly empty changelog.' >&2)"
10678
10679
10680
10681
10682macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10683INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10684mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10685|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10686echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10687
10688
10689
10690
10691
10692
10693if test x$APP_MAN_SUFFIX = x    ; then
10694    APP_MAN_SUFFIX=1
10695fi
10696if test x$APP_MAN_DIR = x    ; then
10697    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10698fi
10699
10700if test x$LIB_MAN_SUFFIX = x    ; then
10701    LIB_MAN_SUFFIX=3
10702fi
10703if test x$LIB_MAN_DIR = x    ; then
10704    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10705fi
10706
10707if test x$FILE_MAN_SUFFIX = x    ; then
10708    case $host_os in
10709	solaris*)	FILE_MAN_SUFFIX=4  ;;
10710	*)		FILE_MAN_SUFFIX=5  ;;
10711    esac
10712fi
10713if test x$FILE_MAN_DIR = x    ; then
10714    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10715fi
10716
10717if test x$MISC_MAN_SUFFIX = x    ; then
10718    case $host_os in
10719	solaris*)	MISC_MAN_SUFFIX=5  ;;
10720	*)		MISC_MAN_SUFFIX=7  ;;
10721    esac
10722fi
10723if test x$MISC_MAN_DIR = x    ; then
10724    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10725fi
10726
10727if test x$DRIVER_MAN_SUFFIX = x    ; then
10728    case $host_os in
10729	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10730	*)		DRIVER_MAN_SUFFIX=4  ;;
10731    esac
10732fi
10733if test x$DRIVER_MAN_DIR = x    ; then
10734    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10735fi
10736
10737if test x$ADMIN_MAN_SUFFIX = x    ; then
10738    case $host_os in
10739	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10740	*)		ADMIN_MAN_SUFFIX=8  ;;
10741    esac
10742fi
10743if test x$ADMIN_MAN_DIR = x    ; then
10744    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10745fi
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761XORG_MAN_PAGE="X Version 11"
10762
10763MAN_SUBSTS="\
10764	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10765	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10766	-e 's|__xservername__|Xorg|g' \
10767	-e 's|__xconfigfile__|xorg.conf|g' \
10768	-e 's|__projectroot__|\$(prefix)|g' \
10769	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10770	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10771	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10772	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10773	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10774	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10775	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10776
10777
10778
10779# Check whether --enable-silent-rules was given.
10780if test "${enable_silent_rules+set}" = set; then :
10781  enableval=$enable_silent_rules;
10782fi
10783
10784case $enable_silent_rules in # (((
10785  yes) AM_DEFAULT_VERBOSITY=0;;
10786   no) AM_DEFAULT_VERBOSITY=1;;
10787    *) AM_DEFAULT_VERBOSITY=0;;
10788esac
10789am_make=${MAKE-make}
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10791$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10792if ${am_cv_make_support_nested_variables+:} false; then :
10793  $as_echo_n "(cached) " >&6
10794else
10795  if $as_echo 'TRUE=$(BAR$(V))
10796BAR0=false
10797BAR1=true
10798V=1
10799am__doit:
10800	@$(TRUE)
10801.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10802  am_cv_make_support_nested_variables=yes
10803else
10804  am_cv_make_support_nested_variables=no
10805fi
10806fi
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10808$as_echo "$am_cv_make_support_nested_variables" >&6; }
10809if test $am_cv_make_support_nested_variables = yes; then
10810    AM_V='$(V)'
10811  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10812else
10813  AM_V=$AM_DEFAULT_VERBOSITY
10814  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10815fi
10816AM_BACKSLASH='\'
10817
10818
10819
10820for ac_prog in 'bison -y' byacc
10821do
10822  # Extract the first word of "$ac_prog", so it can be a program name with args.
10823set dummy $ac_prog; ac_word=$2
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
10826if ${ac_cv_prog_YACC+:} false; then :
10827  $as_echo_n "(cached) " >&6
10828else
10829  if test -n "$YACC"; then
10830  ac_cv_prog_YACC="$YACC" # Let the user override the test.
10831else
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835  IFS=$as_save_IFS
10836  test -z "$as_dir" && as_dir=.
10837    for ac_exec_ext in '' $ac_executable_extensions; do
10838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839    ac_cv_prog_YACC="$ac_prog"
10840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10841    break 2
10842  fi
10843done
10844  done
10845IFS=$as_save_IFS
10846
10847fi
10848fi
10849YACC=$ac_cv_prog_YACC
10850if test -n "$YACC"; then
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10852$as_echo "$YACC" >&6; }
10853else
10854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
10856fi
10857
10858
10859  test -n "$YACC" && break
10860done
10861test -n "$YACC" || YACC="yacc"
10862
10863# Extract the first word of "$YACC", so it can be a program name with args.
10864set dummy $YACC; ac_word=$2
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866$as_echo_n "checking for $ac_word... " >&6; }
10867if ${ac_cv_path_YACC_INST+:} false; then :
10868  $as_echo_n "(cached) " >&6
10869else
10870  case $YACC_INST in
10871  [\\/]* | ?:[\\/]*)
10872  ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10873  ;;
10874  *)
10875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876for as_dir in $PATH
10877do
10878  IFS=$as_save_IFS
10879  test -z "$as_dir" && as_dir=.
10880    for ac_exec_ext in '' $ac_executable_extensions; do
10881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882    ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884    break 2
10885  fi
10886done
10887  done
10888IFS=$as_save_IFS
10889
10890  ;;
10891esac
10892fi
10893YACC_INST=$ac_cv_path_YACC_INST
10894if test -n "$YACC_INST"; then
10895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10896$as_echo "$YACC_INST" >&6; }
10897else
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
10900fi
10901
10902
10903if test ! -f "$srcdir/gram.c"; then
10904   if test -z "$YACC_INST"; then
10905      as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
10906   fi
10907fi
10908for ac_prog in flex lex
10909do
10910  # Extract the first word of "$ac_prog", so it can be a program name with args.
10911set dummy $ac_prog; ac_word=$2
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913$as_echo_n "checking for $ac_word... " >&6; }
10914if ${ac_cv_prog_LEX+:} false; then :
10915  $as_echo_n "(cached) " >&6
10916else
10917  if test -n "$LEX"; then
10918  ac_cv_prog_LEX="$LEX" # Let the user override the test.
10919else
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923  IFS=$as_save_IFS
10924  test -z "$as_dir" && as_dir=.
10925    for ac_exec_ext in '' $ac_executable_extensions; do
10926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927    ac_cv_prog_LEX="$ac_prog"
10928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10929    break 2
10930  fi
10931done
10932  done
10933IFS=$as_save_IFS
10934
10935fi
10936fi
10937LEX=$ac_cv_prog_LEX
10938if test -n "$LEX"; then
10939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10940$as_echo "$LEX" >&6; }
10941else
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943$as_echo "no" >&6; }
10944fi
10945
10946
10947  test -n "$LEX" && break
10948done
10949test -n "$LEX" || LEX=":"
10950
10951if test "x$LEX" != "x:"; then
10952  cat >conftest.l <<_ACEOF
10953%%
10954a { ECHO; }
10955b { REJECT; }
10956c { yymore (); }
10957d { yyless (1); }
10958e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
10959    yyless ((input () != 0)); }
10960f { unput (yytext[0]); }
10961. { BEGIN INITIAL; }
10962%%
10963#ifdef YYTEXT_POINTER
10964extern char *yytext;
10965#endif
10966int
10967main (void)
10968{
10969  return ! yylex () + ! yywrap ();
10970}
10971_ACEOF
10972{ { ac_try="$LEX conftest.l"
10973case "(($ac_try" in
10974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975  *) ac_try_echo=$ac_try;;
10976esac
10977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10978$as_echo "$ac_try_echo"; } >&5
10979  (eval "$LEX conftest.l") 2>&5
10980  ac_status=$?
10981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982  test $ac_status = 0; }
10983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
10984$as_echo_n "checking lex output file root... " >&6; }
10985if ${ac_cv_prog_lex_root+:} false; then :
10986  $as_echo_n "(cached) " >&6
10987else
10988
10989if test -f lex.yy.c; then
10990  ac_cv_prog_lex_root=lex.yy
10991elif test -f lexyy.c; then
10992  ac_cv_prog_lex_root=lexyy
10993else
10994  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
10995fi
10996fi
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
10998$as_echo "$ac_cv_prog_lex_root" >&6; }
10999LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11000
11001if test -z "${LEXLIB+set}"; then
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11003$as_echo_n "checking lex library... " >&6; }
11004if ${ac_cv_lib_lex+:} false; then :
11005  $as_echo_n "(cached) " >&6
11006else
11007
11008    ac_save_LIBS=$LIBS
11009    ac_cv_lib_lex='none needed'
11010    for ac_lib in '' -lfl -ll; do
11011      LIBS="$ac_lib $ac_save_LIBS"
11012      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013/* end confdefs.h.  */
11014`cat $LEX_OUTPUT_ROOT.c`
11015_ACEOF
11016if ac_fn_c_try_link "$LINENO"; then :
11017  ac_cv_lib_lex=$ac_lib
11018fi
11019rm -f core conftest.err conftest.$ac_objext \
11020    conftest$ac_exeext conftest.$ac_ext
11021      test "$ac_cv_lib_lex" != 'none needed' && break
11022    done
11023    LIBS=$ac_save_LIBS
11024
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11027$as_echo "$ac_cv_lib_lex" >&6; }
11028  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
11029fi
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11033$as_echo_n "checking whether yytext is a pointer... " >&6; }
11034if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
11035  $as_echo_n "(cached) " >&6
11036else
11037  # POSIX says lex can declare yytext either as a pointer or an array; the
11038# default is implementation-dependent.  Figure out which it is, since
11039# not all implementations provide the %pointer and %array declarations.
11040ac_cv_prog_lex_yytext_pointer=no
11041ac_save_LIBS=$LIBS
11042LIBS="$LEXLIB $ac_save_LIBS"
11043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044/* end confdefs.h.  */
11045
11046  #define YYTEXT_POINTER 1
11047`cat $LEX_OUTPUT_ROOT.c`
11048_ACEOF
11049if ac_fn_c_try_link "$LINENO"; then :
11050  ac_cv_prog_lex_yytext_pointer=yes
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053    conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_save_LIBS
11055
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11058$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
11059if test $ac_cv_prog_lex_yytext_pointer = yes; then
11060
11061$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
11062
11063fi
11064rm -f conftest.l $LEX_OUTPUT_ROOT.c
11065
11066fi
11067
11068for ac_func in mkstemp
11069do :
11070  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11071if test "x$ac_cv_func_mkstemp" = xyes; then :
11072  cat >>confdefs.h <<_ACEOF
11073#define HAVE_MKSTEMP 1
11074_ACEOF
11075
11076fi
11077done
11078
11079
11080# Checks for pkg-config packages
11081
11082pkg_failed=no
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5
11084$as_echo_n "checking for TWM... " >&6; }
11085
11086if test -n "$TWM_CFLAGS"; then
11087    pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11088 elif test -n "$PKG_CONFIG"; then
11089    if test -n "$PKG_CONFIG" && \
11090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11091  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11092  ac_status=$?
11093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11094  test $ac_status = 0; }; then
11095  pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11096else
11097  pkg_failed=yes
11098fi
11099 else
11100    pkg_failed=untried
11101fi
11102if test -n "$TWM_LIBS"; then
11103    pkg_cv_TWM_LIBS="$TWM_LIBS"
11104 elif test -n "$PKG_CONFIG"; then
11105    if test -n "$PKG_CONFIG" && \
11106    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11107  ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11108  ac_status=$?
11109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11110  test $ac_status = 0; }; then
11111  pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11112else
11113  pkg_failed=yes
11114fi
11115 else
11116    pkg_failed=untried
11117fi
11118
11119
11120
11121if test $pkg_failed = yes; then
11122
11123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11124        _pkg_short_errors_supported=yes
11125else
11126        _pkg_short_errors_supported=no
11127fi
11128        if test $_pkg_short_errors_supported = yes; then
11129	        TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11130        else
11131	        TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11132        fi
11133	# Put the nasty error message in config.log where it belongs
11134	echo "$TWM_PKG_ERRORS" >&5
11135
11136	as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11137
11138$TWM_PKG_ERRORS
11139
11140Consider adjusting the PKG_CONFIG_PATH environment variable if you
11141installed software in a non-standard prefix.
11142
11143Alternatively, you may set the environment variables TWM_CFLAGS
11144and TWM_LIBS to avoid the need to call pkg-config.
11145See the pkg-config man page for more details.
11146" "$LINENO" 5
11147elif test $pkg_failed = untried; then
11148	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11150as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11151is in your PATH or set the PKG_CONFIG environment variable to the full
11152path to pkg-config.
11153
11154Alternatively, you may set the environment variables TWM_CFLAGS
11155and TWM_LIBS to avoid the need to call pkg-config.
11156See the pkg-config man page for more details.
11157
11158To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11159See \`config.log' for more details" "$LINENO" 5; }
11160else
11161	TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11162	TWM_LIBS=$pkg_cv_TWM_LIBS
11163        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164$as_echo "yes" >&6; }
11165	:
11166fi
11167
11168ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11169
11170cat >confcache <<\_ACEOF
11171# This file is a shell script that caches the results of configure
11172# tests run on this system so they can be shared between configure
11173# scripts and configure runs, see configure's option --config-cache.
11174# It is not useful on other systems.  If it contains results you don't
11175# want to keep, you may remove or edit it.
11176#
11177# config.status only pays attention to the cache file if you give it
11178# the --recheck option to rerun configure.
11179#
11180# `ac_cv_env_foo' variables (set or unset) will be overridden when
11181# loading this file, other *unset* `ac_cv_foo' will be assigned the
11182# following values.
11183
11184_ACEOF
11185
11186# The following way of writing the cache mishandles newlines in values,
11187# but we know of no workaround that is simple, portable, and efficient.
11188# So, we kill variables containing newlines.
11189# Ultrix sh set writes to stderr and can't be redirected directly,
11190# and sets the high bit in the cache file unless we assign to the vars.
11191(
11192  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11193    eval ac_val=\$$ac_var
11194    case $ac_val in #(
11195    *${as_nl}*)
11196      case $ac_var in #(
11197      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11198$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11199      esac
11200      case $ac_var in #(
11201      _ | IFS | as_nl) ;; #(
11202      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11203      *) { eval $ac_var=; unset $ac_var;} ;;
11204      esac ;;
11205    esac
11206  done
11207
11208  (set) 2>&1 |
11209    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11210    *${as_nl}ac_space=\ *)
11211      # `set' does not quote correctly, so add quotes: double-quote
11212      # substitution turns \\\\ into \\, and sed turns \\ into \.
11213      sed -n \
11214	"s/'/'\\\\''/g;
11215	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11216      ;; #(
11217    *)
11218      # `set' quotes correctly as required by POSIX, so do not add quotes.
11219      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11220      ;;
11221    esac |
11222    sort
11223) |
11224  sed '
11225     /^ac_cv_env_/b end
11226     t clear
11227     :clear
11228     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11229     t end
11230     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11231     :end' >>confcache
11232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11233  if test -w "$cache_file"; then
11234    if test "x$cache_file" != "x/dev/null"; then
11235      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11236$as_echo "$as_me: updating cache $cache_file" >&6;}
11237      if test ! -f "$cache_file" || test -h "$cache_file"; then
11238	cat confcache >"$cache_file"
11239      else
11240        case $cache_file in #(
11241        */* | ?:*)
11242	  mv -f confcache "$cache_file"$$ &&
11243	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11244        *)
11245	  mv -f confcache "$cache_file" ;;
11246	esac
11247      fi
11248    fi
11249  else
11250    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11251$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11252  fi
11253fi
11254rm -f confcache
11255
11256test "x$prefix" = xNONE && prefix=$ac_default_prefix
11257# Let make expand exec_prefix.
11258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11259
11260DEFS=-DHAVE_CONFIG_H
11261
11262ac_libobjs=
11263ac_ltlibobjs=
11264U=
11265for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11266  # 1. Remove the extension, and $U if already installed.
11267  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11268  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11269  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11270  #    will be set to the directory where LIBOBJS objects are built.
11271  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11272  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11273done
11274LIBOBJS=$ac_libobjs
11275
11276LTLIBOBJS=$ac_ltlibobjs
11277
11278
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11280$as_echo_n "checking that generated files are newer than configure... " >&6; }
11281   if test -n "$am_sleep_pid"; then
11282     # Hide warnings about reused PIDs.
11283     wait $am_sleep_pid 2>/dev/null
11284   fi
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11286$as_echo "done" >&6; }
11287if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11288  as_fn_error $? "conditional \"AMDEP\" was never defined.
11289Usually this means the macro was only invoked conditionally." "$LINENO" 5
11290fi
11291if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11292  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11293Usually this means the macro was only invoked conditionally." "$LINENO" 5
11294fi
11295 if test -n "$EXEEXT"; then
11296  am__EXEEXT_TRUE=
11297  am__EXEEXT_FALSE='#'
11298else
11299  am__EXEEXT_TRUE='#'
11300  am__EXEEXT_FALSE=
11301fi
11302
11303
11304: "${CONFIG_STATUS=./config.status}"
11305ac_write_fail=0
11306ac_clean_files_save=$ac_clean_files
11307ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11309$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11310as_write_fail=0
11311cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11312#! $SHELL
11313# Generated by $as_me.
11314# Run this file to recreate the current configuration.
11315# Compiler output produced by configure, useful for debugging
11316# configure, is in config.log if it exists.
11317
11318debug=false
11319ac_cs_recheck=false
11320ac_cs_silent=false
11321
11322SHELL=\${CONFIG_SHELL-$SHELL}
11323export SHELL
11324_ASEOF
11325cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11326## -------------------- ##
11327## M4sh Initialization. ##
11328## -------------------- ##
11329
11330# Be more Bourne compatible
11331DUALCASE=1; export DUALCASE # for MKS sh
11332if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11333  emulate sh
11334  NULLCMD=:
11335  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11336  # is contrary to our usage.  Disable this feature.
11337  alias -g '${1+"$@"}'='"$@"'
11338  setopt NO_GLOB_SUBST
11339else
11340  case `(set -o) 2>/dev/null` in #(
11341  *posix*) :
11342    set -o posix ;; #(
11343  *) :
11344     ;;
11345esac
11346fi
11347
11348
11349as_nl='
11350'
11351export as_nl
11352# Printing a long string crashes Solaris 7 /usr/bin/printf.
11353as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11355as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11356# Prefer a ksh shell builtin over an external printf program on Solaris,
11357# but without wasting forks for bash or zsh.
11358if test -z "$BASH_VERSION$ZSH_VERSION" \
11359    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11360  as_echo='print -r --'
11361  as_echo_n='print -rn --'
11362elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11363  as_echo='printf %s\n'
11364  as_echo_n='printf %s'
11365else
11366  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11367    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11368    as_echo_n='/usr/ucb/echo -n'
11369  else
11370    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11371    as_echo_n_body='eval
11372      arg=$1;
11373      case $arg in #(
11374      *"$as_nl"*)
11375	expr "X$arg" : "X\\(.*\\)$as_nl";
11376	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11377      esac;
11378      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11379    '
11380    export as_echo_n_body
11381    as_echo_n='sh -c $as_echo_n_body as_echo'
11382  fi
11383  export as_echo_body
11384  as_echo='sh -c $as_echo_body as_echo'
11385fi
11386
11387# The user is always right.
11388if test "${PATH_SEPARATOR+set}" != set; then
11389  PATH_SEPARATOR=:
11390  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11391    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11392      PATH_SEPARATOR=';'
11393  }
11394fi
11395
11396
11397# IFS
11398# We need space, tab and new line, in precisely that order.  Quoting is
11399# there to prevent editors from complaining about space-tab.
11400# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11401# splitting by setting IFS to empty value.)
11402IFS=" ""	$as_nl"
11403
11404# Find who we are.  Look in the path if we contain no directory separator.
11405as_myself=
11406case $0 in #((
11407  *[\\/]* ) as_myself=$0 ;;
11408  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH
11410do
11411  IFS=$as_save_IFS
11412  test -z "$as_dir" && as_dir=.
11413    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11414  done
11415IFS=$as_save_IFS
11416
11417     ;;
11418esac
11419# We did not find ourselves, most probably we were run as `sh COMMAND'
11420# in which case we are not to be found in the path.
11421if test "x$as_myself" = x; then
11422  as_myself=$0
11423fi
11424if test ! -f "$as_myself"; then
11425  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11426  exit 1
11427fi
11428
11429# Unset variables that we do not need and which cause bugs (e.g. in
11430# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11431# suppresses any "Segmentation fault" message there.  '((' could
11432# trigger a bug in pdksh 5.2.14.
11433for as_var in BASH_ENV ENV MAIL MAILPATH
11434do eval test x\${$as_var+set} = xset \
11435  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11436done
11437PS1='$ '
11438PS2='> '
11439PS4='+ '
11440
11441# NLS nuisances.
11442LC_ALL=C
11443export LC_ALL
11444LANGUAGE=C
11445export LANGUAGE
11446
11447# CDPATH.
11448(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11449
11450
11451# as_fn_error STATUS ERROR [LINENO LOG_FD]
11452# ----------------------------------------
11453# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11454# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11455# script with STATUS, using 1 if that was 0.
11456as_fn_error ()
11457{
11458  as_status=$1; test $as_status -eq 0 && as_status=1
11459  if test "$4"; then
11460    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11461    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11462  fi
11463  $as_echo "$as_me: error: $2" >&2
11464  as_fn_exit $as_status
11465} # as_fn_error
11466
11467
11468# as_fn_set_status STATUS
11469# -----------------------
11470# Set $? to STATUS, without forking.
11471as_fn_set_status ()
11472{
11473  return $1
11474} # as_fn_set_status
11475
11476# as_fn_exit STATUS
11477# -----------------
11478# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11479as_fn_exit ()
11480{
11481  set +e
11482  as_fn_set_status $1
11483  exit $1
11484} # as_fn_exit
11485
11486# as_fn_unset VAR
11487# ---------------
11488# Portably unset VAR.
11489as_fn_unset ()
11490{
11491  { eval $1=; unset $1;}
11492}
11493as_unset=as_fn_unset
11494# as_fn_append VAR VALUE
11495# ----------------------
11496# Append the text in VALUE to the end of the definition contained in VAR. Take
11497# advantage of any shell optimizations that allow amortized linear growth over
11498# repeated appends, instead of the typical quadratic growth present in naive
11499# implementations.
11500if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11501  eval 'as_fn_append ()
11502  {
11503    eval $1+=\$2
11504  }'
11505else
11506  as_fn_append ()
11507  {
11508    eval $1=\$$1\$2
11509  }
11510fi # as_fn_append
11511
11512# as_fn_arith ARG...
11513# ------------------
11514# Perform arithmetic evaluation on the ARGs, and store the result in the
11515# global $as_val. Take advantage of shells that can avoid forks. The arguments
11516# must be portable across $(()) and expr.
11517if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11518  eval 'as_fn_arith ()
11519  {
11520    as_val=$(( $* ))
11521  }'
11522else
11523  as_fn_arith ()
11524  {
11525    as_val=`expr "$@" || test $? -eq 1`
11526  }
11527fi # as_fn_arith
11528
11529
11530if expr a : '\(a\)' >/dev/null 2>&1 &&
11531   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11532  as_expr=expr
11533else
11534  as_expr=false
11535fi
11536
11537if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11538  as_basename=basename
11539else
11540  as_basename=false
11541fi
11542
11543if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11544  as_dirname=dirname
11545else
11546  as_dirname=false
11547fi
11548
11549as_me=`$as_basename -- "$0" ||
11550$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11551	 X"$0" : 'X\(//\)$' \| \
11552	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11553$as_echo X/"$0" |
11554    sed '/^.*\/\([^/][^/]*\)\/*$/{
11555	    s//\1/
11556	    q
11557	  }
11558	  /^X\/\(\/\/\)$/{
11559	    s//\1/
11560	    q
11561	  }
11562	  /^X\/\(\/\).*/{
11563	    s//\1/
11564	    q
11565	  }
11566	  s/.*/./; q'`
11567
11568# Avoid depending upon Character Ranges.
11569as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11570as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11571as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11572as_cr_digits='0123456789'
11573as_cr_alnum=$as_cr_Letters$as_cr_digits
11574
11575ECHO_C= ECHO_N= ECHO_T=
11576case `echo -n x` in #(((((
11577-n*)
11578  case `echo 'xy\c'` in
11579  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11580  xy)  ECHO_C='\c';;
11581  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11582       ECHO_T='	';;
11583  esac;;
11584*)
11585  ECHO_N='-n';;
11586esac
11587
11588rm -f conf$$ conf$$.exe conf$$.file
11589if test -d conf$$.dir; then
11590  rm -f conf$$.dir/conf$$.file
11591else
11592  rm -f conf$$.dir
11593  mkdir conf$$.dir 2>/dev/null
11594fi
11595if (echo >conf$$.file) 2>/dev/null; then
11596  if ln -s conf$$.file conf$$ 2>/dev/null; then
11597    as_ln_s='ln -s'
11598    # ... but there are two gotchas:
11599    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11600    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11601    # In both cases, we have to default to `cp -pR'.
11602    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11603      as_ln_s='cp -pR'
11604  elif ln conf$$.file conf$$ 2>/dev/null; then
11605    as_ln_s=ln
11606  else
11607    as_ln_s='cp -pR'
11608  fi
11609else
11610  as_ln_s='cp -pR'
11611fi
11612rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11613rmdir conf$$.dir 2>/dev/null
11614
11615
11616# as_fn_mkdir_p
11617# -------------
11618# Create "$as_dir" as a directory, including parents if necessary.
11619as_fn_mkdir_p ()
11620{
11621
11622  case $as_dir in #(
11623  -*) as_dir=./$as_dir;;
11624  esac
11625  test -d "$as_dir" || eval $as_mkdir_p || {
11626    as_dirs=
11627    while :; do
11628      case $as_dir in #(
11629      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11630      *) as_qdir=$as_dir;;
11631      esac
11632      as_dirs="'$as_qdir' $as_dirs"
11633      as_dir=`$as_dirname -- "$as_dir" ||
11634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11635	 X"$as_dir" : 'X\(//\)[^/]' \| \
11636	 X"$as_dir" : 'X\(//\)$' \| \
11637	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11638$as_echo X"$as_dir" |
11639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11640	    s//\1/
11641	    q
11642	  }
11643	  /^X\(\/\/\)[^/].*/{
11644	    s//\1/
11645	    q
11646	  }
11647	  /^X\(\/\/\)$/{
11648	    s//\1/
11649	    q
11650	  }
11651	  /^X\(\/\).*/{
11652	    s//\1/
11653	    q
11654	  }
11655	  s/.*/./; q'`
11656      test -d "$as_dir" && break
11657    done
11658    test -z "$as_dirs" || eval "mkdir $as_dirs"
11659  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11660
11661
11662} # as_fn_mkdir_p
11663if mkdir -p . 2>/dev/null; then
11664  as_mkdir_p='mkdir -p "$as_dir"'
11665else
11666  test -d ./-p && rmdir ./-p
11667  as_mkdir_p=false
11668fi
11669
11670
11671# as_fn_executable_p FILE
11672# -----------------------
11673# Test if FILE is an executable regular file.
11674as_fn_executable_p ()
11675{
11676  test -f "$1" && test -x "$1"
11677} # as_fn_executable_p
11678as_test_x='test -x'
11679as_executable_p=as_fn_executable_p
11680
11681# Sed expression to map a string onto a valid CPP name.
11682as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11683
11684# Sed expression to map a string onto a valid variable name.
11685as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11686
11687
11688exec 6>&1
11689## ----------------------------------- ##
11690## Main body of $CONFIG_STATUS script. ##
11691## ----------------------------------- ##
11692_ASEOF
11693test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11694
11695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11696# Save the log message, to keep $0 and so on meaningful, and to
11697# report actual input values of CONFIG_FILES etc. instead of their
11698# values after options handling.
11699ac_log="
11700This file was extended by twm $as_me 1.0.9, which was
11701generated by GNU Autoconf 2.69.  Invocation command line was
11702
11703  CONFIG_FILES    = $CONFIG_FILES
11704  CONFIG_HEADERS  = $CONFIG_HEADERS
11705  CONFIG_LINKS    = $CONFIG_LINKS
11706  CONFIG_COMMANDS = $CONFIG_COMMANDS
11707  $ $0 $@
11708
11709on `(hostname || uname -n) 2>/dev/null | sed 1q`
11710"
11711
11712_ACEOF
11713
11714case $ac_config_files in *"
11715"*) set x $ac_config_files; shift; ac_config_files=$*;;
11716esac
11717
11718case $ac_config_headers in *"
11719"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11720esac
11721
11722
11723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11724# Files that config.status was made for.
11725config_files="$ac_config_files"
11726config_headers="$ac_config_headers"
11727config_commands="$ac_config_commands"
11728
11729_ACEOF
11730
11731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11732ac_cs_usage="\
11733\`$as_me' instantiates files and other configuration actions
11734from templates according to the current configuration.  Unless the files
11735and actions are specified as TAGs, all are instantiated by default.
11736
11737Usage: $0 [OPTION]... [TAG]...
11738
11739  -h, --help       print this help, then exit
11740  -V, --version    print version number and configuration settings, then exit
11741      --config     print configuration, then exit
11742  -q, --quiet, --silent
11743                   do not print progress messages
11744  -d, --debug      don't remove temporary files
11745      --recheck    update $as_me by reconfiguring in the same conditions
11746      --file=FILE[:TEMPLATE]
11747                   instantiate the configuration file FILE
11748      --header=FILE[:TEMPLATE]
11749                   instantiate the configuration header FILE
11750
11751Configuration files:
11752$config_files
11753
11754Configuration headers:
11755$config_headers
11756
11757Configuration commands:
11758$config_commands
11759
11760Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11761
11762_ACEOF
11763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11764ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11765ac_cs_version="\\
11766twm config.status 1.0.9
11767configured by $0, generated by GNU Autoconf 2.69,
11768  with options \\"\$ac_cs_config\\"
11769
11770Copyright (C) 2012 Free Software Foundation, Inc.
11771This config.status script is free software; the Free Software Foundation
11772gives unlimited permission to copy, distribute and modify it."
11773
11774ac_pwd='$ac_pwd'
11775srcdir='$srcdir'
11776INSTALL='$INSTALL'
11777MKDIR_P='$MKDIR_P'
11778AWK='$AWK'
11779test -n "\$AWK" || AWK=awk
11780_ACEOF
11781
11782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783# The default lists apply if the user does not specify any file.
11784ac_need_defaults=:
11785while test $# != 0
11786do
11787  case $1 in
11788  --*=?*)
11789    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11790    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11791    ac_shift=:
11792    ;;
11793  --*=)
11794    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11795    ac_optarg=
11796    ac_shift=:
11797    ;;
11798  *)
11799    ac_option=$1
11800    ac_optarg=$2
11801    ac_shift=shift
11802    ;;
11803  esac
11804
11805  case $ac_option in
11806  # Handling of the options.
11807  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11808    ac_cs_recheck=: ;;
11809  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11810    $as_echo "$ac_cs_version"; exit ;;
11811  --config | --confi | --conf | --con | --co | --c )
11812    $as_echo "$ac_cs_config"; exit ;;
11813  --debug | --debu | --deb | --de | --d | -d )
11814    debug=: ;;
11815  --file | --fil | --fi | --f )
11816    $ac_shift
11817    case $ac_optarg in
11818    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11819    '') as_fn_error $? "missing file argument" ;;
11820    esac
11821    as_fn_append CONFIG_FILES " '$ac_optarg'"
11822    ac_need_defaults=false;;
11823  --header | --heade | --head | --hea )
11824    $ac_shift
11825    case $ac_optarg in
11826    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11827    esac
11828    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11829    ac_need_defaults=false;;
11830  --he | --h)
11831    # Conflict between --help and --header
11832    as_fn_error $? "ambiguous option: \`$1'
11833Try \`$0 --help' for more information.";;
11834  --help | --hel | -h )
11835    $as_echo "$ac_cs_usage"; exit ;;
11836  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11837  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11838    ac_cs_silent=: ;;
11839
11840  # This is an error.
11841  -*) as_fn_error $? "unrecognized option: \`$1'
11842Try \`$0 --help' for more information." ;;
11843
11844  *) as_fn_append ac_config_targets " $1"
11845     ac_need_defaults=false ;;
11846
11847  esac
11848  shift
11849done
11850
11851ac_configure_extra_args=
11852
11853if $ac_cs_silent; then
11854  exec 6>/dev/null
11855  ac_configure_extra_args="$ac_configure_extra_args --silent"
11856fi
11857
11858_ACEOF
11859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11860if \$ac_cs_recheck; then
11861  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11862  shift
11863  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11864  CONFIG_SHELL='$SHELL'
11865  export CONFIG_SHELL
11866  exec "\$@"
11867fi
11868
11869_ACEOF
11870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11871exec 5>>config.log
11872{
11873  echo
11874  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11875## Running $as_me. ##
11876_ASBOX
11877  $as_echo "$ac_log"
11878} >&5
11879
11880_ACEOF
11881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11882#
11883# INIT-COMMANDS
11884#
11885AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11886
11887_ACEOF
11888
11889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11890
11891# Handling of arguments.
11892for ac_config_target in $ac_config_targets
11893do
11894  case $ac_config_target in
11895    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11896    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11897    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11898    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11899    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11900
11901  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11902  esac
11903done
11904
11905
11906# If the user did not use the arguments to specify the items to instantiate,
11907# then the envvar interface is used.  Set only those that are not.
11908# We use the long form for the default assignment because of an extremely
11909# bizarre bug on SunOS 4.1.3.
11910if $ac_need_defaults; then
11911  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11912  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11913  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11914fi
11915
11916# Have a temporary directory for convenience.  Make it in the build tree
11917# simply because there is no reason against having it here, and in addition,
11918# creating and moving files from /tmp can sometimes cause problems.
11919# Hook for its removal unless debugging.
11920# Note that there is a small window in which the directory will not be cleaned:
11921# after its creation but before its name has been assigned to `$tmp'.
11922$debug ||
11923{
11924  tmp= ac_tmp=
11925  trap 'exit_status=$?
11926  : "${ac_tmp:=$tmp}"
11927  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11928' 0
11929  trap 'as_fn_exit 1' 1 2 13 15
11930}
11931# Create a (secure) tmp directory for tmp files.
11932
11933{
11934  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11935  test -d "$tmp"
11936}  ||
11937{
11938  tmp=./conf$$-$RANDOM
11939  (umask 077 && mkdir "$tmp")
11940} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11941ac_tmp=$tmp
11942
11943# Set up the scripts for CONFIG_FILES section.
11944# No need to generate them if there are no CONFIG_FILES.
11945# This happens for instance with `./config.status config.h'.
11946if test -n "$CONFIG_FILES"; then
11947
11948
11949ac_cr=`echo X | tr X '\015'`
11950# On cygwin, bash can eat \r inside `` if the user requested igncr.
11951# But we know of no other shell where ac_cr would be empty at this
11952# point, so we can use a bashism as a fallback.
11953if test "x$ac_cr" = x; then
11954  eval ac_cr=\$\'\\r\'
11955fi
11956ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11957if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11958  ac_cs_awk_cr='\\r'
11959else
11960  ac_cs_awk_cr=$ac_cr
11961fi
11962
11963echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11964_ACEOF
11965
11966
11967{
11968  echo "cat >conf$$subs.awk <<_ACEOF" &&
11969  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11970  echo "_ACEOF"
11971} >conf$$subs.sh ||
11972  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11973ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11974ac_delim='%!_!# '
11975for ac_last_try in false false false false false :; do
11976  . ./conf$$subs.sh ||
11977    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11978
11979  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11980  if test $ac_delim_n = $ac_delim_num; then
11981    break
11982  elif $ac_last_try; then
11983    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11984  else
11985    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11986  fi
11987done
11988rm -f conf$$subs.sh
11989
11990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11991cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11992_ACEOF
11993sed -n '
11994h
11995s/^/S["/; s/!.*/"]=/
11996p
11997g
11998s/^[^!]*!//
11999:repl
12000t repl
12001s/'"$ac_delim"'$//
12002t delim
12003:nl
12004h
12005s/\(.\{148\}\)..*/\1/
12006t more1
12007s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12008p
12009n
12010b repl
12011:more1
12012s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12013p
12014g
12015s/.\{148\}//
12016t nl
12017:delim
12018h
12019s/\(.\{148\}\)..*/\1/
12020t more2
12021s/["\\]/\\&/g; s/^/"/; s/$/"/
12022p
12023b
12024:more2
12025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12026p
12027g
12028s/.\{148\}//
12029t delim
12030' <conf$$subs.awk | sed '
12031/^[^""]/{
12032  N
12033  s/\n//
12034}
12035' >>$CONFIG_STATUS || ac_write_fail=1
12036rm -f conf$$subs.awk
12037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12038_ACAWK
12039cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12040  for (key in S) S_is_set[key] = 1
12041  FS = ""
12042
12043}
12044{
12045  line = $ 0
12046  nfields = split(line, field, "@")
12047  substed = 0
12048  len = length(field[1])
12049  for (i = 2; i < nfields; i++) {
12050    key = field[i]
12051    keylen = length(key)
12052    if (S_is_set[key]) {
12053      value = S[key]
12054      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12055      len += length(value) + length(field[++i])
12056      substed = 1
12057    } else
12058      len += 1 + keylen
12059  }
12060
12061  print line
12062}
12063
12064_ACAWK
12065_ACEOF
12066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12067if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12068  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12069else
12070  cat
12071fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12072  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12073_ACEOF
12074
12075# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12076# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12077# trailing colons and then remove the whole line if VPATH becomes empty
12078# (actually we leave an empty line to preserve line numbers).
12079if test "x$srcdir" = x.; then
12080  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12081h
12082s///
12083s/^/:/
12084s/[	 ]*$/:/
12085s/:\$(srcdir):/:/g
12086s/:\${srcdir}:/:/g
12087s/:@srcdir@:/:/g
12088s/^:*//
12089s/:*$//
12090x
12091s/\(=[	 ]*\).*/\1/
12092G
12093s/\n//
12094s/^[^=]*=[	 ]*$//
12095}'
12096fi
12097
12098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12099fi # test -n "$CONFIG_FILES"
12100
12101# Set up the scripts for CONFIG_HEADERS section.
12102# No need to generate them if there are no CONFIG_HEADERS.
12103# This happens for instance with `./config.status Makefile'.
12104if test -n "$CONFIG_HEADERS"; then
12105cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12106BEGIN {
12107_ACEOF
12108
12109# Transform confdefs.h into an awk script `defines.awk', embedded as
12110# here-document in config.status, that substitutes the proper values into
12111# config.h.in to produce config.h.
12112
12113# Create a delimiter string that does not exist in confdefs.h, to ease
12114# handling of long lines.
12115ac_delim='%!_!# '
12116for ac_last_try in false false :; do
12117  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12118  if test -z "$ac_tt"; then
12119    break
12120  elif $ac_last_try; then
12121    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12122  else
12123    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12124  fi
12125done
12126
12127# For the awk script, D is an array of macro values keyed by name,
12128# likewise P contains macro parameters if any.  Preserve backslash
12129# newline sequences.
12130
12131ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12132sed -n '
12133s/.\{148\}/&'"$ac_delim"'/g
12134t rset
12135:rset
12136s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12137t def
12138d
12139:def
12140s/\\$//
12141t bsnl
12142s/["\\]/\\&/g
12143s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12144D["\1"]=" \3"/p
12145s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12146d
12147:bsnl
12148s/["\\]/\\&/g
12149s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12150D["\1"]=" \3\\\\\\n"\\/p
12151t cont
12152s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12153t cont
12154d
12155:cont
12156n
12157s/.\{148\}/&'"$ac_delim"'/g
12158t clear
12159:clear
12160s/\\$//
12161t bsnlc
12162s/["\\]/\\&/g; s/^/"/; s/$/"/p
12163d
12164:bsnlc
12165s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12166b cont
12167' <confdefs.h | sed '
12168s/'"$ac_delim"'/"\\\
12169"/g' >>$CONFIG_STATUS || ac_write_fail=1
12170
12171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12172  for (key in D) D_is_set[key] = 1
12173  FS = ""
12174}
12175/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12176  line = \$ 0
12177  split(line, arg, " ")
12178  if (arg[1] == "#") {
12179    defundef = arg[2]
12180    mac1 = arg[3]
12181  } else {
12182    defundef = substr(arg[1], 2)
12183    mac1 = arg[2]
12184  }
12185  split(mac1, mac2, "(") #)
12186  macro = mac2[1]
12187  prefix = substr(line, 1, index(line, defundef) - 1)
12188  if (D_is_set[macro]) {
12189    # Preserve the white space surrounding the "#".
12190    print prefix "define", macro P[macro] D[macro]
12191    next
12192  } else {
12193    # Replace #undef with comments.  This is necessary, for example,
12194    # in the case of _POSIX_SOURCE, which is predefined and required
12195    # on some systems where configure will not decide to define it.
12196    if (defundef == "undef") {
12197      print "/*", prefix defundef, macro, "*/"
12198      next
12199    }
12200  }
12201}
12202{ print }
12203_ACAWK
12204_ACEOF
12205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12206  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12207fi # test -n "$CONFIG_HEADERS"
12208
12209
12210eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12211shift
12212for ac_tag
12213do
12214  case $ac_tag in
12215  :[FHLC]) ac_mode=$ac_tag; continue;;
12216  esac
12217  case $ac_mode$ac_tag in
12218  :[FHL]*:*);;
12219  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12220  :[FH]-) ac_tag=-:-;;
12221  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12222  esac
12223  ac_save_IFS=$IFS
12224  IFS=:
12225  set x $ac_tag
12226  IFS=$ac_save_IFS
12227  shift
12228  ac_file=$1
12229  shift
12230
12231  case $ac_mode in
12232  :L) ac_source=$1;;
12233  :[FH])
12234    ac_file_inputs=
12235    for ac_f
12236    do
12237      case $ac_f in
12238      -) ac_f="$ac_tmp/stdin";;
12239      *) # Look for the file first in the build tree, then in the source tree
12240	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12241	 # because $ac_f cannot contain `:'.
12242	 test -f "$ac_f" ||
12243	   case $ac_f in
12244	   [\\/$]*) false;;
12245	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12246	   esac ||
12247	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12248      esac
12249      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12250      as_fn_append ac_file_inputs " '$ac_f'"
12251    done
12252
12253    # Let's still pretend it is `configure' which instantiates (i.e., don't
12254    # use $as_me), people would be surprised to read:
12255    #    /* config.h.  Generated by config.status.  */
12256    configure_input='Generated from '`
12257	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12258	`' by configure.'
12259    if test x"$ac_file" != x-; then
12260      configure_input="$ac_file.  $configure_input"
12261      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12262$as_echo "$as_me: creating $ac_file" >&6;}
12263    fi
12264    # Neutralize special characters interpreted by sed in replacement strings.
12265    case $configure_input in #(
12266    *\&* | *\|* | *\\* )
12267       ac_sed_conf_input=`$as_echo "$configure_input" |
12268       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12269    *) ac_sed_conf_input=$configure_input;;
12270    esac
12271
12272    case $ac_tag in
12273    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12274      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12275    esac
12276    ;;
12277  esac
12278
12279  ac_dir=`$as_dirname -- "$ac_file" ||
12280$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12281	 X"$ac_file" : 'X\(//\)[^/]' \| \
12282	 X"$ac_file" : 'X\(//\)$' \| \
12283	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12284$as_echo X"$ac_file" |
12285    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12286	    s//\1/
12287	    q
12288	  }
12289	  /^X\(\/\/\)[^/].*/{
12290	    s//\1/
12291	    q
12292	  }
12293	  /^X\(\/\/\)$/{
12294	    s//\1/
12295	    q
12296	  }
12297	  /^X\(\/\).*/{
12298	    s//\1/
12299	    q
12300	  }
12301	  s/.*/./; q'`
12302  as_dir="$ac_dir"; as_fn_mkdir_p
12303  ac_builddir=.
12304
12305case "$ac_dir" in
12306.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12307*)
12308  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12309  # A ".." for each directory in $ac_dir_suffix.
12310  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12311  case $ac_top_builddir_sub in
12312  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12313  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12314  esac ;;
12315esac
12316ac_abs_top_builddir=$ac_pwd
12317ac_abs_builddir=$ac_pwd$ac_dir_suffix
12318# for backward compatibility:
12319ac_top_builddir=$ac_top_build_prefix
12320
12321case $srcdir in
12322  .)  # We are building in place.
12323    ac_srcdir=.
12324    ac_top_srcdir=$ac_top_builddir_sub
12325    ac_abs_top_srcdir=$ac_pwd ;;
12326  [\\/]* | ?:[\\/]* )  # Absolute name.
12327    ac_srcdir=$srcdir$ac_dir_suffix;
12328    ac_top_srcdir=$srcdir
12329    ac_abs_top_srcdir=$srcdir ;;
12330  *) # Relative name.
12331    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12332    ac_top_srcdir=$ac_top_build_prefix$srcdir
12333    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12334esac
12335ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12336
12337
12338  case $ac_mode in
12339  :F)
12340  #
12341  # CONFIG_FILE
12342  #
12343
12344  case $INSTALL in
12345  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12346  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12347  esac
12348  ac_MKDIR_P=$MKDIR_P
12349  case $MKDIR_P in
12350  [\\/$]* | ?:[\\/]* ) ;;
12351  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12352  esac
12353_ACEOF
12354
12355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356# If the template does not know about datarootdir, expand it.
12357# FIXME: This hack should be removed a few years after 2.60.
12358ac_datarootdir_hack=; ac_datarootdir_seen=
12359ac_sed_dataroot='
12360/datarootdir/ {
12361  p
12362  q
12363}
12364/@datadir@/p
12365/@docdir@/p
12366/@infodir@/p
12367/@localedir@/p
12368/@mandir@/p'
12369case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12370*datarootdir*) ac_datarootdir_seen=yes;;
12371*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12373$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12374_ACEOF
12375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12376  ac_datarootdir_hack='
12377  s&@datadir@&$datadir&g
12378  s&@docdir@&$docdir&g
12379  s&@infodir@&$infodir&g
12380  s&@localedir@&$localedir&g
12381  s&@mandir@&$mandir&g
12382  s&\\\${datarootdir}&$datarootdir&g' ;;
12383esac
12384_ACEOF
12385
12386# Neutralize VPATH when `$srcdir' = `.'.
12387# Shell code in configure.ac might set extrasub.
12388# FIXME: do we really want to maintain this feature?
12389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12390ac_sed_extra="$ac_vpsub
12391$extrasub
12392_ACEOF
12393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12394:t
12395/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12396s|@configure_input@|$ac_sed_conf_input|;t t
12397s&@top_builddir@&$ac_top_builddir_sub&;t t
12398s&@top_build_prefix@&$ac_top_build_prefix&;t t
12399s&@srcdir@&$ac_srcdir&;t t
12400s&@abs_srcdir@&$ac_abs_srcdir&;t t
12401s&@top_srcdir@&$ac_top_srcdir&;t t
12402s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12403s&@builddir@&$ac_builddir&;t t
12404s&@abs_builddir@&$ac_abs_builddir&;t t
12405s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12406s&@INSTALL@&$ac_INSTALL&;t t
12407s&@MKDIR_P@&$ac_MKDIR_P&;t t
12408$ac_datarootdir_hack
12409"
12410eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12411  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12412
12413test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12414  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12415  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12416      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12418which seems to be undefined.  Please make sure it is defined" >&5
12419$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12420which seems to be undefined.  Please make sure it is defined" >&2;}
12421
12422  rm -f "$ac_tmp/stdin"
12423  case $ac_file in
12424  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12425  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12426  esac \
12427  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12428 ;;
12429  :H)
12430  #
12431  # CONFIG_HEADER
12432  #
12433  if test x"$ac_file" != x-; then
12434    {
12435      $as_echo "/* $configure_input  */" \
12436      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12437    } >"$ac_tmp/config.h" \
12438      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12439    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12440      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12441$as_echo "$as_me: $ac_file is unchanged" >&6;}
12442    else
12443      rm -f "$ac_file"
12444      mv "$ac_tmp/config.h" "$ac_file" \
12445	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12446    fi
12447  else
12448    $as_echo "/* $configure_input  */" \
12449      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12450      || as_fn_error $? "could not create -" "$LINENO" 5
12451  fi
12452# Compute "$ac_file"'s index in $config_headers.
12453_am_arg="$ac_file"
12454_am_stamp_count=1
12455for _am_header in $config_headers :; do
12456  case $_am_header in
12457    $_am_arg | $_am_arg:* )
12458      break ;;
12459    * )
12460      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12461  esac
12462done
12463echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12464$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12465	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12466	 X"$_am_arg" : 'X\(//\)$' \| \
12467	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12468$as_echo X"$_am_arg" |
12469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12470	    s//\1/
12471	    q
12472	  }
12473	  /^X\(\/\/\)[^/].*/{
12474	    s//\1/
12475	    q
12476	  }
12477	  /^X\(\/\/\)$/{
12478	    s//\1/
12479	    q
12480	  }
12481	  /^X\(\/\).*/{
12482	    s//\1/
12483	    q
12484	  }
12485	  s/.*/./; q'`/stamp-h$_am_stamp_count
12486 ;;
12487
12488  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12489$as_echo "$as_me: executing $ac_file commands" >&6;}
12490 ;;
12491  esac
12492
12493
12494  case $ac_file$ac_mode in
12495    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12496  # Older Autoconf quotes --file arguments for eval, but not when files
12497  # are listed without --file.  Let's play safe and only enable the eval
12498  # if we detect the quoting.
12499  case $CONFIG_FILES in
12500  *\'*) eval set x "$CONFIG_FILES" ;;
12501  *)   set x $CONFIG_FILES ;;
12502  esac
12503  shift
12504  for mf
12505  do
12506    # Strip MF so we end up with the name of the file.
12507    mf=`echo "$mf" | sed -e 's/:.*$//'`
12508    # Check whether this is an Automake generated Makefile or not.
12509    # We used to match only the files named 'Makefile.in', but
12510    # some people rename them; so instead we look at the file content.
12511    # Grep'ing the first line is not enough: some people post-process
12512    # each Makefile.in and add a new line on top of each file to say so.
12513    # Grep'ing the whole file is not good either: AIX grep has a line
12514    # limit of 2048, but all sed's we know have understand at least 4000.
12515    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12516      dirpart=`$as_dirname -- "$mf" ||
12517$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12518	 X"$mf" : 'X\(//\)[^/]' \| \
12519	 X"$mf" : 'X\(//\)$' \| \
12520	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12521$as_echo X"$mf" |
12522    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12523	    s//\1/
12524	    q
12525	  }
12526	  /^X\(\/\/\)[^/].*/{
12527	    s//\1/
12528	    q
12529	  }
12530	  /^X\(\/\/\)$/{
12531	    s//\1/
12532	    q
12533	  }
12534	  /^X\(\/\).*/{
12535	    s//\1/
12536	    q
12537	  }
12538	  s/.*/./; q'`
12539    else
12540      continue
12541    fi
12542    # Extract the definition of DEPDIR, am__include, and am__quote
12543    # from the Makefile without running 'make'.
12544    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12545    test -z "$DEPDIR" && continue
12546    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12547    test -z "$am__include" && continue
12548    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12549    # Find all dependency output files, they are included files with
12550    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12551    # simplest approach to changing $(DEPDIR) to its actual value in the
12552    # expansion.
12553    for file in `sed -n "
12554      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12555	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12556      # Make sure the directory exists.
12557      test -f "$dirpart/$file" && continue
12558      fdir=`$as_dirname -- "$file" ||
12559$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12560	 X"$file" : 'X\(//\)[^/]' \| \
12561	 X"$file" : 'X\(//\)$' \| \
12562	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12563$as_echo X"$file" |
12564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12565	    s//\1/
12566	    q
12567	  }
12568	  /^X\(\/\/\)[^/].*/{
12569	    s//\1/
12570	    q
12571	  }
12572	  /^X\(\/\/\)$/{
12573	    s//\1/
12574	    q
12575	  }
12576	  /^X\(\/\).*/{
12577	    s//\1/
12578	    q
12579	  }
12580	  s/.*/./; q'`
12581      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12582      # echo "creating $dirpart/$file"
12583      echo '# dummy' > "$dirpart/$file"
12584    done
12585  done
12586}
12587 ;;
12588
12589  esac
12590done # for ac_tag
12591
12592
12593as_fn_exit 0
12594_ACEOF
12595ac_clean_files=$ac_clean_files_save
12596
12597test $ac_write_fail = 0 ||
12598  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12599
12600
12601# configure is writing to config.log, and then calls config.status.
12602# config.status does its own redirection, appending to config.log.
12603# Unfortunately, on DOS this fails, as config.log is still kept open
12604# by configure, so config.status won't be able to write to it; its
12605# output is simply discarded.  So we exec the FD to /dev/null,
12606# effectively closing config.log, so it can be properly (re)opened and
12607# appended to by config.status.  When coming back to configure, we
12608# need to make the FD available again.
12609if test "$no_create" != yes; then
12610  ac_cs_success=:
12611  ac_config_status_args=
12612  test "$silent" = yes &&
12613    ac_config_status_args="$ac_config_status_args --quiet"
12614  exec 5>/dev/null
12615  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12616  exec 5>>config.log
12617  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12618  # would make configure fail if this is the last instruction.
12619  $ac_cs_success || as_fn_exit 1
12620fi
12621if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12622  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12623$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12624fi
12625
12626