configure revision 4ed31819
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for luit 1.1.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243$0: about your system, including any error possibly output
244$0: before this message. Then install a modern shell, or
245$0: manually run the script under such a shell if you do
246$0: have one."
247  fi
248  exit 1
249fi
250fi
251fi
252SHELL=${CONFIG_SHELL-/bin/sh}
253export SHELL
254# Unset more variables known to interfere with behavior of common tools.
255CLICOLOR_FORCE= GREP_OPTIONS=
256unset CLICOLOR_FORCE GREP_OPTIONS
257
258## --------------------- ##
259## M4sh Shell Functions. ##
260## --------------------- ##
261# as_fn_unset VAR
262# ---------------
263# Portably unset VAR.
264as_fn_unset ()
265{
266  { eval $1=; unset $1;}
267}
268as_unset=as_fn_unset
269
270# as_fn_set_status STATUS
271# -----------------------
272# Set $? to STATUS, without forking.
273as_fn_set_status ()
274{
275  return $1
276} # as_fn_set_status
277
278# as_fn_exit STATUS
279# -----------------
280# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281as_fn_exit ()
282{
283  set +e
284  as_fn_set_status $1
285  exit $1
286} # as_fn_exit
287
288# as_fn_mkdir_p
289# -------------
290# Create "$as_dir" as a directory, including parents if necessary.
291as_fn_mkdir_p ()
292{
293
294  case $as_dir in #(
295  -*) as_dir=./$as_dir;;
296  esac
297  test -d "$as_dir" || eval $as_mkdir_p || {
298    as_dirs=
299    while :; do
300      case $as_dir in #(
301      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302      *) as_qdir=$as_dir;;
303      esac
304      as_dirs="'$as_qdir' $as_dirs"
305      as_dir=`$as_dirname -- "$as_dir" ||
306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307	 X"$as_dir" : 'X\(//\)[^/]' \| \
308	 X"$as_dir" : 'X\(//\)$' \| \
309	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310$as_echo X"$as_dir" |
311    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)[^/].*/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\).*/{
324	    s//\1/
325	    q
326	  }
327	  s/.*/./; q'`
328      test -d "$as_dir" && break
329    done
330    test -z "$as_dirs" || eval "mkdir $as_dirs"
331  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334} # as_fn_mkdir_p
335# as_fn_append VAR VALUE
336# ----------------------
337# Append the text in VALUE to the end of the definition contained in VAR. Take
338# advantage of any shell optimizations that allow amortized linear growth over
339# repeated appends, instead of the typical quadratic growth present in naive
340# implementations.
341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342  eval 'as_fn_append ()
343  {
344    eval $1+=\$2
345  }'
346else
347  as_fn_append ()
348  {
349    eval $1=\$$1\$2
350  }
351fi # as_fn_append
352
353# as_fn_arith ARG...
354# ------------------
355# Perform arithmetic evaluation on the ARGs, and store the result in the
356# global $as_val. Take advantage of shells that can avoid forks. The arguments
357# must be portable across $(()) and expr.
358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359  eval 'as_fn_arith ()
360  {
361    as_val=$(( $* ))
362  }'
363else
364  as_fn_arith ()
365  {
366    as_val=`expr "$@" || test $? -eq 1`
367  }
368fi # as_fn_arith
369
370
371# as_fn_error STATUS ERROR [LINENO LOG_FD]
372# ----------------------------------------
373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375# script with STATUS, using 1 if that was 0.
376as_fn_error ()
377{
378  as_status=$1; test $as_status -eq 0 && as_status=1
379  if test "$4"; then
380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382  fi
383  $as_echo "$as_me: error: $2" >&2
384  as_fn_exit $as_status
385} # as_fn_error
386
387if expr a : '\(a\)' >/dev/null 2>&1 &&
388   test "X`expr 00001 : '.*\(...\)'`" = X001; then
389  as_expr=expr
390else
391  as_expr=false
392fi
393
394if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395  as_basename=basename
396else
397  as_basename=false
398fi
399
400if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401  as_dirname=dirname
402else
403  as_dirname=false
404fi
405
406as_me=`$as_basename -- "$0" ||
407$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408	 X"$0" : 'X\(//\)$' \| \
409	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410$as_echo X/"$0" |
411    sed '/^.*\/\([^/][^/]*\)\/*$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\/\)$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\).*/{
420	    s//\1/
421	    q
422	  }
423	  s/.*/./; q'`
424
425# Avoid depending upon Character Ranges.
426as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429as_cr_digits='0123456789'
430as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433  as_lineno_1=$LINENO as_lineno_1a=$LINENO
434  as_lineno_2=$LINENO as_lineno_2a=$LINENO
435  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456  # Don't try to exec as it changes $[0], causing all sort of problems
457  # (the dirname of $[0] is not the place where we might find the
458  # original and so on.  Autoconf is especially sensitive to this).
459  . "./$as_me.lineno"
460  # Exit status is that of the last command.
461  exit
462}
463
464ECHO_C= ECHO_N= ECHO_T=
465case `echo -n x` in #(((((
466-n*)
467  case `echo 'xy\c'` in
468  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
469  xy)  ECHO_C='\c';;
470  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
471       ECHO_T='	';;
472  esac;;
473*)
474  ECHO_N='-n';;
475esac
476
477rm -f conf$$ conf$$.exe conf$$.file
478if test -d conf$$.dir; then
479  rm -f conf$$.dir/conf$$.file
480else
481  rm -f conf$$.dir
482  mkdir conf$$.dir 2>/dev/null
483fi
484if (echo >conf$$.file) 2>/dev/null; then
485  if ln -s conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s='ln -s'
487    # ... but there are two gotchas:
488    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490    # In both cases, we have to default to `cp -p'.
491    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492      as_ln_s='cp -p'
493  elif ln conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s=ln
495  else
496    as_ln_s='cp -p'
497  fi
498else
499  as_ln_s='cp -p'
500fi
501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502rmdir conf$$.dir 2>/dev/null
503
504if mkdir -p . 2>/dev/null; then
505  as_mkdir_p='mkdir -p "$as_dir"'
506else
507  test -d ./-p && rmdir ./-p
508  as_mkdir_p=false
509fi
510
511if test -x / >/dev/null 2>&1; then
512  as_test_x='test -x'
513else
514  if ls -dL / >/dev/null 2>&1; then
515    as_ls_L_option=L
516  else
517    as_ls_L_option=
518  fi
519  as_test_x='
520    eval sh -c '\''
521      if test -d "$1"; then
522	test -d "$1/.";
523      else
524	case $1 in #(
525	-*)set "./$1";;
526	esac;
527	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528	???[sx]*):;;*)false;;esac;fi
529    '\'' sh
530  '
531fi
532as_executable_p=$as_test_x
533
534# Sed expression to map a string onto a valid CPP name.
535as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537# Sed expression to map a string onto a valid variable name.
538as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541test -n "$DJDIR" || exec 7<&0 </dev/null
542exec 6>&1
543
544# Name of the host.
545# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546# so uname gets run too.
547ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549#
550# Initializations.
551#
552ac_default_prefix=/usr/local
553ac_clean_files=
554ac_config_libobj_dir=.
555LIBOBJS=
556cross_compiling=no
557subdirs=
558MFLAGS=
559MAKEFLAGS=
560
561# Identity of this package.
562PACKAGE_NAME='luit'
563PACKAGE_TARNAME='luit'
564PACKAGE_VERSION='1.1.1'
565PACKAGE_STRING='luit 1.1.1'
566PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567PACKAGE_URL=''
568
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609OS_CFLAGS
610LUIT_LIBS
611LUIT_CFLAGS
612LOCALEALIASFILE
613AM_BACKSLASH
614AM_DEFAULT_VERBOSITY
615MAN_SUBSTS
616XORG_MAN_PAGE
617ADMIN_MAN_DIR
618DRIVER_MAN_DIR
619MISC_MAN_DIR
620FILE_MAN_DIR
621LIB_MAN_DIR
622APP_MAN_DIR
623ADMIN_MAN_SUFFIX
624DRIVER_MAN_SUFFIX
625MISC_MAN_SUFFIX
626FILE_MAN_SUFFIX
627LIB_MAN_SUFFIX
628APP_MAN_SUFFIX
629SED
630host_os
631host_vendor
632host_cpu
633host
634build_os
635build_vendor
636build_cpu
637build
638INSTALL_CMD
639PKG_CONFIG
640CHANGELOG_CMD
641STRICT_CFLAGS
642CWARNFLAGS
643BASE_CFLAGS
644EGREP
645GREP
646CPP
647am__fastdepCC_FALSE
648am__fastdepCC_TRUE
649CCDEPMODE
650AMDEPBACKSLASH
651AMDEP_FALSE
652AMDEP_TRUE
653am__quote
654am__include
655DEPDIR
656OBJEXT
657EXEEXT
658ac_ct_CC
659CPPFLAGS
660LDFLAGS
661CFLAGS
662CC
663MAINT
664MAINTAINER_MODE_FALSE
665MAINTAINER_MODE_TRUE
666am__untar
667am__tar
668AMTAR
669am__leading_dot
670SET_MAKE
671AWK
672mkdir_p
673MKDIR_P
674INSTALL_STRIP_PROGRAM
675STRIP
676install_sh
677MAKEINFO
678AUTOHEADER
679AUTOMAKE
680AUTOCONF
681ACLOCAL
682VERSION
683PACKAGE
684CYGPATH_W
685am__isrc
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files=''
728ac_user_opts='
729enable_option_checking
730enable_maintainer_mode
731enable_dependency_tracking
732enable_selective_werror
733enable_strict_compilation
734enable_silent_rules
735with_localealiasfile
736'
737      ac_precious_vars='build_alias
738host_alias
739target_alias
740CC
741CFLAGS
742LDFLAGS
743LIBS
744CPPFLAGS
745CPP
746PKG_CONFIG
747LUIT_CFLAGS
748LUIT_LIBS'
749
750
751# Initialize some variables set by options.
752ac_init_help=
753ac_init_version=false
754ac_unrecognized_opts=
755ac_unrecognized_sep=
756# The variables have the same names as the options, with
757# dashes changed to underlines.
758cache_file=/dev/null
759exec_prefix=NONE
760no_create=
761no_recursion=
762prefix=NONE
763program_prefix=NONE
764program_suffix=NONE
765program_transform_name=s,x,x,
766silent=
767site=
768srcdir=
769verbose=
770x_includes=NONE
771x_libraries=NONE
772
773# Installation directory options.
774# These are left unexpanded so users can "make install exec_prefix=/foo"
775# and all the variables that are supposed to be based on exec_prefix
776# by default will actually change.
777# Use braces instead of parens because sh, perl, etc. also accept them.
778# (The list follows the same order as the GNU Coding Standards.)
779bindir='${exec_prefix}/bin'
780sbindir='${exec_prefix}/sbin'
781libexecdir='${exec_prefix}/libexec'
782datarootdir='${prefix}/share'
783datadir='${datarootdir}'
784sysconfdir='${prefix}/etc'
785sharedstatedir='${prefix}/com'
786localstatedir='${prefix}/var'
787includedir='${prefix}/include'
788oldincludedir='/usr/include'
789docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790infodir='${datarootdir}/info'
791htmldir='${docdir}'
792dvidir='${docdir}'
793pdfdir='${docdir}'
794psdir='${docdir}'
795libdir='${exec_prefix}/lib'
796localedir='${datarootdir}/locale'
797mandir='${datarootdir}/man'
798
799ac_prev=
800ac_dashdash=
801for ac_option
802do
803  # If the previous option needs an argument, assign it.
804  if test -n "$ac_prev"; then
805    eval $ac_prev=\$ac_option
806    ac_prev=
807    continue
808  fi
809
810  case $ac_option in
811  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812  *=)   ac_optarg= ;;
813  *)    ac_optarg=yes ;;
814  esac
815
816  # Accept the important Cygnus configure options, so we can diagnose typos.
817
818  case $ac_dashdash$ac_option in
819  --)
820    ac_dashdash=yes ;;
821
822  -bindir | --bindir | --bindi | --bind | --bin | --bi)
823    ac_prev=bindir ;;
824  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825    bindir=$ac_optarg ;;
826
827  -build | --build | --buil | --bui | --bu)
828    ac_prev=build_alias ;;
829  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830    build_alias=$ac_optarg ;;
831
832  -cache-file | --cache-file | --cache-fil | --cache-fi \
833  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834    ac_prev=cache_file ;;
835  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837    cache_file=$ac_optarg ;;
838
839  --config-cache | -C)
840    cache_file=config.cache ;;
841
842  -datadir | --datadir | --datadi | --datad)
843    ac_prev=datadir ;;
844  -datadir=* | --datadir=* | --datadi=* | --datad=*)
845    datadir=$ac_optarg ;;
846
847  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848  | --dataroo | --dataro | --datar)
849    ac_prev=datarootdir ;;
850  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852    datarootdir=$ac_optarg ;;
853
854  -disable-* | --disable-*)
855    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856    # Reject names that are not valid shell variable names.
857    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858      as_fn_error $? "invalid feature name: $ac_useropt"
859    ac_useropt_orig=$ac_useropt
860    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861    case $ac_user_opts in
862      *"
863"enable_$ac_useropt"
864"*) ;;
865      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866	 ac_unrecognized_sep=', ';;
867    esac
868    eval enable_$ac_useropt=no ;;
869
870  -docdir | --docdir | --docdi | --doc | --do)
871    ac_prev=docdir ;;
872  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873    docdir=$ac_optarg ;;
874
875  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876    ac_prev=dvidir ;;
877  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878    dvidir=$ac_optarg ;;
879
880  -enable-* | --enable-*)
881    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882    # Reject names that are not valid shell variable names.
883    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884      as_fn_error $? "invalid feature name: $ac_useropt"
885    ac_useropt_orig=$ac_useropt
886    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887    case $ac_user_opts in
888      *"
889"enable_$ac_useropt"
890"*) ;;
891      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892	 ac_unrecognized_sep=', ';;
893    esac
894    eval enable_$ac_useropt=\$ac_optarg ;;
895
896  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898  | --exec | --exe | --ex)
899    ac_prev=exec_prefix ;;
900  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902  | --exec=* | --exe=* | --ex=*)
903    exec_prefix=$ac_optarg ;;
904
905  -gas | --gas | --ga | --g)
906    # Obsolete; use --with-gas.
907    with_gas=yes ;;
908
909  -help | --help | --hel | --he | -h)
910    ac_init_help=long ;;
911  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912    ac_init_help=recursive ;;
913  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914    ac_init_help=short ;;
915
916  -host | --host | --hos | --ho)
917    ac_prev=host_alias ;;
918  -host=* | --host=* | --hos=* | --ho=*)
919    host_alias=$ac_optarg ;;
920
921  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922    ac_prev=htmldir ;;
923  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924  | --ht=*)
925    htmldir=$ac_optarg ;;
926
927  -includedir | --includedir | --includedi | --included | --include \
928  | --includ | --inclu | --incl | --inc)
929    ac_prev=includedir ;;
930  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931  | --includ=* | --inclu=* | --incl=* | --inc=*)
932    includedir=$ac_optarg ;;
933
934  -infodir | --infodir | --infodi | --infod | --info | --inf)
935    ac_prev=infodir ;;
936  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937    infodir=$ac_optarg ;;
938
939  -libdir | --libdir | --libdi | --libd)
940    ac_prev=libdir ;;
941  -libdir=* | --libdir=* | --libdi=* | --libd=*)
942    libdir=$ac_optarg ;;
943
944  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945  | --libexe | --libex | --libe)
946    ac_prev=libexecdir ;;
947  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948  | --libexe=* | --libex=* | --libe=*)
949    libexecdir=$ac_optarg ;;
950
951  -localedir | --localedir | --localedi | --localed | --locale)
952    ac_prev=localedir ;;
953  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954    localedir=$ac_optarg ;;
955
956  -localstatedir | --localstatedir | --localstatedi | --localstated \
957  | --localstate | --localstat | --localsta | --localst | --locals)
958    ac_prev=localstatedir ;;
959  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961    localstatedir=$ac_optarg ;;
962
963  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964    ac_prev=mandir ;;
965  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966    mandir=$ac_optarg ;;
967
968  -nfp | --nfp | --nf)
969    # Obsolete; use --without-fp.
970    with_fp=no ;;
971
972  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973  | --no-cr | --no-c | -n)
974    no_create=yes ;;
975
976  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978    no_recursion=yes ;;
979
980  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982  | --oldin | --oldi | --old | --ol | --o)
983    ac_prev=oldincludedir ;;
984  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987    oldincludedir=$ac_optarg ;;
988
989  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990    ac_prev=prefix ;;
991  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992    prefix=$ac_optarg ;;
993
994  -program-prefix | --program-prefix | --program-prefi | --program-pref \
995  | --program-pre | --program-pr | --program-p)
996    ac_prev=program_prefix ;;
997  -program-prefix=* | --program-prefix=* | --program-prefi=* \
998  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999    program_prefix=$ac_optarg ;;
1000
1001  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002  | --program-suf | --program-su | --program-s)
1003    ac_prev=program_suffix ;;
1004  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006    program_suffix=$ac_optarg ;;
1007
1008  -program-transform-name | --program-transform-name \
1009  | --program-transform-nam | --program-transform-na \
1010  | --program-transform-n | --program-transform- \
1011  | --program-transform | --program-transfor \
1012  | --program-transfo | --program-transf \
1013  | --program-trans | --program-tran \
1014  | --progr-tra | --program-tr | --program-t)
1015    ac_prev=program_transform_name ;;
1016  -program-transform-name=* | --program-transform-name=* \
1017  | --program-transform-nam=* | --program-transform-na=* \
1018  | --program-transform-n=* | --program-transform-=* \
1019  | --program-transform=* | --program-transfor=* \
1020  | --program-transfo=* | --program-transf=* \
1021  | --program-trans=* | --program-tran=* \
1022  | --progr-tra=* | --program-tr=* | --program-t=*)
1023    program_transform_name=$ac_optarg ;;
1024
1025  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026    ac_prev=pdfdir ;;
1027  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028    pdfdir=$ac_optarg ;;
1029
1030  -psdir | --psdir | --psdi | --psd | --ps)
1031    ac_prev=psdir ;;
1032  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033    psdir=$ac_optarg ;;
1034
1035  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036  | -silent | --silent | --silen | --sile | --sil)
1037    silent=yes ;;
1038
1039  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040    ac_prev=sbindir ;;
1041  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042  | --sbi=* | --sb=*)
1043    sbindir=$ac_optarg ;;
1044
1045  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047  | --sharedst | --shareds | --shared | --share | --shar \
1048  | --sha | --sh)
1049    ac_prev=sharedstatedir ;;
1050  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053  | --sha=* | --sh=*)
1054    sharedstatedir=$ac_optarg ;;
1055
1056  -site | --site | --sit)
1057    ac_prev=site ;;
1058  -site=* | --site=* | --sit=*)
1059    site=$ac_optarg ;;
1060
1061  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062    ac_prev=srcdir ;;
1063  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064    srcdir=$ac_optarg ;;
1065
1066  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067  | --syscon | --sysco | --sysc | --sys | --sy)
1068    ac_prev=sysconfdir ;;
1069  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071    sysconfdir=$ac_optarg ;;
1072
1073  -target | --target | --targe | --targ | --tar | --ta | --t)
1074    ac_prev=target_alias ;;
1075  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076    target_alias=$ac_optarg ;;
1077
1078  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079    verbose=yes ;;
1080
1081  -version | --version | --versio | --versi | --vers | -V)
1082    ac_init_version=: ;;
1083
1084  -with-* | --with-*)
1085    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086    # Reject names that are not valid shell variable names.
1087    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088      as_fn_error $? "invalid package name: $ac_useropt"
1089    ac_useropt_orig=$ac_useropt
1090    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091    case $ac_user_opts in
1092      *"
1093"with_$ac_useropt"
1094"*) ;;
1095      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096	 ac_unrecognized_sep=', ';;
1097    esac
1098    eval with_$ac_useropt=\$ac_optarg ;;
1099
1100  -without-* | --without-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error $? "invalid package name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"with_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval with_$ac_useropt=no ;;
1115
1116  --x)
1117    # Obsolete; use --with-x.
1118    with_x=yes ;;
1119
1120  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121  | --x-incl | --x-inc | --x-in | --x-i)
1122    ac_prev=x_includes ;;
1123  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125    x_includes=$ac_optarg ;;
1126
1127  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129    ac_prev=x_libraries ;;
1130  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132    x_libraries=$ac_optarg ;;
1133
1134  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135Try \`$0 --help' for more information"
1136    ;;
1137
1138  *=*)
1139    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140    # Reject names that are not valid shell variable names.
1141    case $ac_envvar in #(
1142      '' | [0-9]* | *[!_$as_cr_alnum]* )
1143      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1144    esac
1145    eval $ac_envvar=\$ac_optarg
1146    export $ac_envvar ;;
1147
1148  *)
1149    # FIXME: should be removed in autoconf 3.0.
1150    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1154    ;;
1155
1156  esac
1157done
1158
1159if test -n "$ac_prev"; then
1160  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161  as_fn_error $? "missing argument to $ac_option"
1162fi
1163
1164if test -n "$ac_unrecognized_opts"; then
1165  case $enable_option_checking in
1166    no) ;;
1167    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169  esac
1170fi
1171
1172# Check all directory arguments for consistency.
1173for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174		datadir sysconfdir sharedstatedir localstatedir includedir \
1175		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176		libdir localedir mandir
1177do
1178  eval ac_val=\$$ac_var
1179  # Remove trailing slashes.
1180  case $ac_val in
1181    */ )
1182      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183      eval $ac_var=\$ac_val;;
1184  esac
1185  # Be sure to have absolute directory names.
1186  case $ac_val in
1187    [\\/$]* | ?:[\\/]* )  continue;;
1188    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189  esac
1190  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1191done
1192
1193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
1199
1200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202  if test "x$build_alias" = x; then
1203    cross_compiling=maybe
1204    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205    If a cross compiler is detected then cross compile mode will be used" >&2
1206  elif test "x$build_alias" != "x$host_alias"; then
1207    cross_compiling=yes
1208  fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
1216
1217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220  as_fn_error $? "working directory cannot be determined"
1221test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222  as_fn_error $? "pwd does not report name of working directory"
1223
1224
1225# Find the source files, if location was not specified.
1226if test -z "$srcdir"; then
1227  ac_srcdir_defaulted=yes
1228  # Try the directory containing this script, then the parent directory.
1229  ac_confdir=`$as_dirname -- "$as_myself" ||
1230$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231	 X"$as_myself" : 'X\(//\)[^/]' \| \
1232	 X"$as_myself" : 'X\(//\)$' \| \
1233	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234$as_echo X"$as_myself" |
1235    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236	    s//\1/
1237	    q
1238	  }
1239	  /^X\(\/\/\)[^/].*/{
1240	    s//\1/
1241	    q
1242	  }
1243	  /^X\(\/\/\)$/{
1244	    s//\1/
1245	    q
1246	  }
1247	  /^X\(\/\).*/{
1248	    s//\1/
1249	    q
1250	  }
1251	  s/.*/./; q'`
1252  srcdir=$ac_confdir
1253  if test ! -r "$srcdir/$ac_unique_file"; then
1254    srcdir=..
1255  fi
1256else
1257  ac_srcdir_defaulted=no
1258fi
1259if test ! -r "$srcdir/$ac_unique_file"; then
1260  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1262fi
1263ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264ac_abs_confdir=`(
1265	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1266	pwd)`
1267# When building in place, set srcdir=.
1268if test "$ac_abs_confdir" = "$ac_pwd"; then
1269  srcdir=.
1270fi
1271# Remove unnecessary trailing slashes from srcdir.
1272# Double slashes in file names in object file debugging info
1273# mess up M-x gdb in Emacs.
1274case $srcdir in
1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276esac
1277for ac_var in $ac_precious_vars; do
1278  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279  eval ac_env_${ac_var}_value=\$${ac_var}
1280  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282done
1283
1284#
1285# Report the --help message.
1286#
1287if test "$ac_init_help" = "long"; then
1288  # Omit some internal or obsolete options to make the list less imposing.
1289  # This message is too long to be a string in the A/UX 3.1 sh.
1290  cat <<_ACEOF
1291\`configure' configures luit 1.1.1 to adapt to many kinds of systems.
1292
1293Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296VAR=VALUE.  See below for descriptions of some of the useful variables.
1297
1298Defaults for the options are specified in brackets.
1299
1300Configuration:
1301  -h, --help              display this help and exit
1302      --help=short        display options specific to this package
1303      --help=recursive    display the short help of all the included packages
1304  -V, --version           display version information and exit
1305  -q, --quiet, --silent   do not print \`checking ...' messages
1306      --cache-file=FILE   cache test results in FILE [disabled]
1307  -C, --config-cache      alias for \`--cache-file=config.cache'
1308  -n, --no-create         do not create output files
1309      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1310
1311Installation directories:
1312  --prefix=PREFIX         install architecture-independent files in PREFIX
1313                          [$ac_default_prefix]
1314  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1315                          [PREFIX]
1316
1317By default, \`make install' will install all the files in
1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1319an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320for instance \`--prefix=\$HOME'.
1321
1322For better control, use the options below.
1323
1324Fine tuning of the installation directories:
1325  --bindir=DIR            user executables [EPREFIX/bin]
1326  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1327  --libexecdir=DIR        program executables [EPREFIX/libexec]
1328  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1329  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1330  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1331  --libdir=DIR            object code libraries [EPREFIX/lib]
1332  --includedir=DIR        C header files [PREFIX/include]
1333  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1334  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1335  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1336  --infodir=DIR           info documentation [DATAROOTDIR/info]
1337  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1338  --mandir=DIR            man documentation [DATAROOTDIR/man]
1339  --docdir=DIR            documentation root [DATAROOTDIR/doc/luit]
1340  --htmldir=DIR           html documentation [DOCDIR]
1341  --dvidir=DIR            dvi documentation [DOCDIR]
1342  --pdfdir=DIR            pdf documentation [DOCDIR]
1343  --psdir=DIR             ps documentation [DOCDIR]
1344_ACEOF
1345
1346  cat <<\_ACEOF
1347
1348Program names:
1349  --program-prefix=PREFIX            prepend PREFIX to installed program names
1350  --program-suffix=SUFFIX            append SUFFIX to installed program names
1351  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1352
1353System types:
1354  --build=BUILD     configure for building on BUILD [guessed]
1355  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1356_ACEOF
1357fi
1358
1359if test -n "$ac_init_help"; then
1360  case $ac_init_help in
1361     short | recursive ) echo "Configuration of luit 1.1.1:";;
1362   esac
1363  cat <<\_ACEOF
1364
1365Optional Features:
1366  --disable-option-checking  ignore unrecognized --enable/--with options
1367  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1368  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1369  --enable-maintainer-mode  enable make rules and dependencies not useful
1370			  (and sometimes confusing) to the casual installer
1371  --disable-dependency-tracking  speeds up one-time build
1372  --enable-dependency-tracking   do not reject slow dependency extractors
1373  --disable-selective-werror
1374                          Turn off selective compiler errors. (default:
1375                          enabled)
1376  --enable-strict-compilation
1377                          Enable all warnings from compiler and make them
1378                          errors (default: disabled)
1379  --enable-silent-rules          less verbose build output (undo: `make V=1')
1380  --disable-silent-rules         verbose build output (undo: `make V=0')
1381
1382Optional Packages:
1383  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385  --with-localealiasfile=<path>
1386                          The locale alias file (default:
1387                          ${datadir}/X11/locale/locale.alias)
1388
1389Some influential environment variables:
1390  CC          C compiler command
1391  CFLAGS      C compiler flags
1392  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393              nonstandard directory <lib dir>
1394  LIBS        libraries to pass to the linker, e.g. -l<library>
1395  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1396              you have headers in a nonstandard directory <include dir>
1397  CPP         C preprocessor
1398  PKG_CONFIG  path to pkg-config utility
1399  LUIT_CFLAGS C compiler flags for LUIT, overriding pkg-config
1400  LUIT_LIBS   linker flags for LUIT, overriding pkg-config
1401
1402Use these variables to override the choices made by `configure' or to help
1403it to find libraries and programs with nonstandard names/locations.
1404
1405Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1406_ACEOF
1407ac_status=$?
1408fi
1409
1410if test "$ac_init_help" = "recursive"; then
1411  # If there are subdirs, report their specific --help.
1412  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413    test -d "$ac_dir" ||
1414      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415      continue
1416    ac_builddir=.
1417
1418case "$ac_dir" in
1419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420*)
1421  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422  # A ".." for each directory in $ac_dir_suffix.
1423  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424  case $ac_top_builddir_sub in
1425  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427  esac ;;
1428esac
1429ac_abs_top_builddir=$ac_pwd
1430ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431# for backward compatibility:
1432ac_top_builddir=$ac_top_build_prefix
1433
1434case $srcdir in
1435  .)  # We are building in place.
1436    ac_srcdir=.
1437    ac_top_srcdir=$ac_top_builddir_sub
1438    ac_abs_top_srcdir=$ac_pwd ;;
1439  [\\/]* | ?:[\\/]* )  # Absolute name.
1440    ac_srcdir=$srcdir$ac_dir_suffix;
1441    ac_top_srcdir=$srcdir
1442    ac_abs_top_srcdir=$srcdir ;;
1443  *) # Relative name.
1444    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445    ac_top_srcdir=$ac_top_build_prefix$srcdir
1446    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447esac
1448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449
1450    cd "$ac_dir" || { ac_status=$?; continue; }
1451    # Check for guested configure.
1452    if test -f "$ac_srcdir/configure.gnu"; then
1453      echo &&
1454      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455    elif test -f "$ac_srcdir/configure"; then
1456      echo &&
1457      $SHELL "$ac_srcdir/configure" --help=recursive
1458    else
1459      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460    fi || ac_status=$?
1461    cd "$ac_pwd" || { ac_status=$?; break; }
1462  done
1463fi
1464
1465test -n "$ac_init_help" && exit $ac_status
1466if $ac_init_version; then
1467  cat <<\_ACEOF
1468luit configure 1.1.1
1469generated by GNU Autoconf 2.68
1470
1471Copyright (C) 2010 Free Software Foundation, Inc.
1472This configure script is free software; the Free Software Foundation
1473gives unlimited permission to copy, distribute and modify it.
1474_ACEOF
1475  exit
1476fi
1477
1478## ------------------------ ##
1479## Autoconf initialization. ##
1480## ------------------------ ##
1481
1482# ac_fn_c_try_compile LINENO
1483# --------------------------
1484# Try to compile conftest.$ac_ext, and return whether this succeeded.
1485ac_fn_c_try_compile ()
1486{
1487  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488  rm -f conftest.$ac_objext
1489  if { { ac_try="$ac_compile"
1490case "(($ac_try" in
1491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492  *) ac_try_echo=$ac_try;;
1493esac
1494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495$as_echo "$ac_try_echo"; } >&5
1496  (eval "$ac_compile") 2>conftest.err
1497  ac_status=$?
1498  if test -s conftest.err; then
1499    grep -v '^ *+' conftest.err >conftest.er1
1500    cat conftest.er1 >&5
1501    mv -f conftest.er1 conftest.err
1502  fi
1503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504  test $ac_status = 0; } && {
1505	 test -z "$ac_c_werror_flag" ||
1506	 test ! -s conftest.err
1507       } && test -s conftest.$ac_objext; then :
1508  ac_retval=0
1509else
1510  $as_echo "$as_me: failed program was:" >&5
1511sed 's/^/| /' conftest.$ac_ext >&5
1512
1513	ac_retval=1
1514fi
1515  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516  as_fn_set_status $ac_retval
1517
1518} # ac_fn_c_try_compile
1519
1520# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1521# ---------------------------------------------
1522# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1523# accordingly.
1524ac_fn_c_check_decl ()
1525{
1526  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527  as_decl_name=`echo $2|sed 's/ *(.*//'`
1528  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1530$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1531if eval \${$3+:} false; then :
1532  $as_echo_n "(cached) " >&6
1533else
1534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535/* end confdefs.h.  */
1536$4
1537int
1538main ()
1539{
1540#ifndef $as_decl_name
1541#ifdef __cplusplus
1542  (void) $as_decl_use;
1543#else
1544  (void) $as_decl_name;
1545#endif
1546#endif
1547
1548  ;
1549  return 0;
1550}
1551_ACEOF
1552if ac_fn_c_try_compile "$LINENO"; then :
1553  eval "$3=yes"
1554else
1555  eval "$3=no"
1556fi
1557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1558fi
1559eval ac_res=\$$3
1560	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561$as_echo "$ac_res" >&6; }
1562  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563
1564} # ac_fn_c_check_decl
1565
1566# ac_fn_c_try_cpp LINENO
1567# ----------------------
1568# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_cpp ()
1570{
1571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572  if { { ac_try="$ac_cpp conftest.$ac_ext"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } > conftest.i && {
1588	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       }; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596    ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_cpp
1602
1603# ac_fn_c_try_run LINENO
1604# ----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1606# that executables *can* be run.
1607ac_fn_c_try_run ()
1608{
1609  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610  if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_link") 2>&5
1618  ac_status=$?
1619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1621  { { case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_try") 2>&5
1628  ac_status=$?
1629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630  test $ac_status = 0; }; }; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: program exited with status $ac_status" >&5
1634       $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637       ac_retval=$ac_status
1638fi
1639  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_run
1644
1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists and can be compiled using the include files in
1648# INCLUDES, setting the cache variable VAR accordingly.
1649ac_fn_c_check_header_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653$as_echo_n "checking for $2... " >&6; }
1654if eval \${$3+:} false; then :
1655  $as_echo_n "(cached) " >&6
1656else
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663  eval "$3=yes"
1664else
1665  eval "$3=no"
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668fi
1669eval ac_res=\$$3
1670	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671$as_echo "$ac_res" >&6; }
1672  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674} # ac_fn_c_check_header_compile
1675
1676# ac_fn_c_try_link LINENO
1677# -----------------------
1678# Try to link conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_link ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  rm -f conftest.$ac_objext conftest$ac_exeext
1683  if { { ac_try="$ac_link"
1684case "(($ac_try" in
1685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686  *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690  (eval "$ac_link") 2>conftest.err
1691  ac_status=$?
1692  if test -s conftest.err; then
1693    grep -v '^ *+' conftest.err >conftest.er1
1694    cat conftest.er1 >&5
1695    mv -f conftest.er1 conftest.err
1696  fi
1697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698  test $ac_status = 0; } && {
1699	 test -z "$ac_c_werror_flag" ||
1700	 test ! -s conftest.err
1701       } && test -s conftest$ac_exeext && {
1702	 test "$cross_compiling" = yes ||
1703	 $as_test_x conftest$ac_exeext
1704       }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710	ac_retval=1
1711fi
1712  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1713  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1714  # interfere with the next link command; also delete a directory that is
1715  # left behind by Apple's compiler.  We do this before executing the actions.
1716  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718  as_fn_set_status $ac_retval
1719
1720} # ac_fn_c_try_link
1721
1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725# the include files in INCLUDES and setting the cache variable VAR
1726# accordingly.
1727ac_fn_c_check_header_mongrel ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  if eval \${$3+:} false; then :
1731  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if eval \${$3+:} false; then :
1734  $as_echo_n "(cached) " >&6
1735fi
1736eval ac_res=\$$3
1737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739else
1740  # Is the header compilable?
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742$as_echo_n "checking $2 usability... " >&6; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749  ac_header_compiler=yes
1750else
1751  ac_header_compiler=no
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755$as_echo "$ac_header_compiler" >&6; }
1756
1757# Is the header present?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759$as_echo_n "checking $2 presence... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h.  */
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_cpp "$LINENO"; then :
1765  ac_header_preproc=yes
1766else
1767  ac_header_preproc=no
1768fi
1769rm -f conftest.err conftest.i conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771$as_echo "$ac_header_preproc" >&6; }
1772
1773# So?  What about this header?
1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775  yes:no: )
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780    ;;
1781  no:yes:* )
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1785$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1786    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1789$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792( $as_echo "## ---------------------------------------------------------------------- ##
1793## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1794## ---------------------------------------------------------------------- ##"
1795     ) | sed "s/^/$as_me: WARNING:     /" >&2
1796    ;;
1797esac
1798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if eval \${$3+:} false; then :
1801  $as_echo_n "(cached) " >&6
1802else
1803  eval "$3=\$ac_header_compiler"
1804fi
1805eval ac_res=\$$3
1806	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808fi
1809  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811} # ac_fn_c_check_header_mongrel
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879cat >config.log <<_ACEOF
1880This file contains any messages produced by compilers while
1881running configure, to aid debugging if configure makes a mistake.
1882
1883It was created by luit $as_me 1.1.1, which was
1884generated by GNU Autoconf 2.68.  Invocation command line was
1885
1886  $ $0 $@
1887
1888_ACEOF
1889exec 5>>config.log
1890{
1891cat <<_ASUNAME
1892## --------- ##
1893## Platform. ##
1894## --------- ##
1895
1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1904
1905/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1906/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1909/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1910/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1911/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1912
1913_ASUNAME
1914
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920    $as_echo "PATH: $as_dir"
1921  done
1922IFS=$as_save_IFS
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947  for ac_arg
1948  do
1949    case $ac_arg in
1950    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952    | -silent | --silent | --silen | --sile | --sil)
1953      continue ;;
1954    *\'*)
1955      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956    esac
1957    case $ac_pass in
1958    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959    2)
1960      as_fn_append ac_configure_args1 " '$ac_arg'"
1961      if test $ac_must_keep_next = true; then
1962	ac_must_keep_next=false # Got value, back to normal.
1963      else
1964	case $ac_arg in
1965	  *=* | --config-cache | -C | -disable-* | --disable-* \
1966	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968	  | -with-* | --with-* | -without-* | --without-* | --x)
1969	    case "$ac_configure_args0 " in
1970	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971	    esac
1972	    ;;
1973	  -* ) ac_must_keep_next=true ;;
1974	esac
1975      fi
1976      as_fn_append ac_configure_args " '$ac_arg'"
1977      ;;
1978    esac
1979  done
1980done
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log.  We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989trap 'exit_status=$?
1990  # Save into config.log some information that might help in debugging.
1991  {
1992    echo
1993
1994    $as_echo "## ---------------- ##
1995## Cache variables. ##
1996## ---------------- ##"
1997    echo
1998    # The following way of writing the cache mishandles newlines in values,
1999(
2000  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001    eval ac_val=\$$ac_var
2002    case $ac_val in #(
2003    *${as_nl}*)
2004      case $ac_var in #(
2005      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007      esac
2008      case $ac_var in #(
2009      _ | IFS | as_nl) ;; #(
2010      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011      *) { eval $ac_var=; unset $ac_var;} ;;
2012      esac ;;
2013    esac
2014  done
2015  (set) 2>&1 |
2016    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017    *${as_nl}ac_space=\ *)
2018      sed -n \
2019	"s/'\''/'\''\\\\'\'''\''/g;
2020	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021      ;; #(
2022    *)
2023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024      ;;
2025    esac |
2026    sort
2027)
2028    echo
2029
2030    $as_echo "## ----------------- ##
2031## Output variables. ##
2032## ----------------- ##"
2033    echo
2034    for ac_var in $ac_subst_vars
2035    do
2036      eval ac_val=\$$ac_var
2037      case $ac_val in
2038      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039      esac
2040      $as_echo "$ac_var='\''$ac_val'\''"
2041    done | sort
2042    echo
2043
2044    if test -n "$ac_subst_files"; then
2045      $as_echo "## ------------------- ##
2046## File substitutions. ##
2047## ------------------- ##"
2048      echo
2049      for ac_var in $ac_subst_files
2050      do
2051	eval ac_val=\$$ac_var
2052	case $ac_val in
2053	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054	esac
2055	$as_echo "$ac_var='\''$ac_val'\''"
2056      done | sort
2057      echo
2058    fi
2059
2060    if test -s confdefs.h; then
2061      $as_echo "## ----------- ##
2062## confdefs.h. ##
2063## ----------- ##"
2064      echo
2065      cat confdefs.h
2066      echo
2067    fi
2068    test "$ac_signal" != 0 &&
2069      $as_echo "$as_me: caught signal $ac_signal"
2070    $as_echo "$as_me: exit $exit_status"
2071  } >&5
2072  rm -f core *.core core.conftest.* &&
2073    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074    exit $exit_status
2075' 0
2076for ac_signal in 1 2 13 15; do
2077  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078done
2079ac_signal=0
2080
2081# confdefs.h avoids OS command line length limits that DEFS can exceed.
2082rm -f -r conftest* confdefs.h
2083
2084$as_echo "/* confdefs.h */" > confdefs.h
2085
2086# Predefined preprocessor variables.
2087
2088cat >>confdefs.h <<_ACEOF
2089#define PACKAGE_NAME "$PACKAGE_NAME"
2090_ACEOF
2091
2092cat >>confdefs.h <<_ACEOF
2093#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094_ACEOF
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_VERSION "$PACKAGE_VERSION"
2098_ACEOF
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_STRING "$PACKAGE_STRING"
2102_ACEOF
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106_ACEOF
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_URL "$PACKAGE_URL"
2110_ACEOF
2111
2112
2113# Let the site file select an alternate cache file if it wants to.
2114# Prefer an explicitly selected file to automatically selected ones.
2115ac_site_file1=NONE
2116ac_site_file2=NONE
2117if test -n "$CONFIG_SITE"; then
2118  # We do not want a PATH search for config.site.
2119  case $CONFIG_SITE in #((
2120    -*)  ac_site_file1=./$CONFIG_SITE;;
2121    */*) ac_site_file1=$CONFIG_SITE;;
2122    *)   ac_site_file1=./$CONFIG_SITE;;
2123  esac
2124elif test "x$prefix" != xNONE; then
2125  ac_site_file1=$prefix/share/config.site
2126  ac_site_file2=$prefix/etc/config.site
2127else
2128  ac_site_file1=$ac_default_prefix/share/config.site
2129  ac_site_file2=$ac_default_prefix/etc/config.site
2130fi
2131for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132do
2133  test "x$ac_site_file" = xNONE && continue
2134  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137    sed 's/^/| /' "$ac_site_file" >&5
2138    . "$ac_site_file" \
2139      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141as_fn_error $? "failed to load site script $ac_site_file
2142See \`config.log' for more details" "$LINENO" 5; }
2143  fi
2144done
2145
2146if test -r "$cache_file"; then
2147  # Some versions of bash will fail to source /dev/null (special files
2148  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2149  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151$as_echo "$as_me: loading cache $cache_file" >&6;}
2152    case $cache_file in
2153      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154      *)                      . "./$cache_file";;
2155    esac
2156  fi
2157else
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159$as_echo "$as_me: creating cache $cache_file" >&6;}
2160  >$cache_file
2161fi
2162
2163# Check that the precious variables saved in the cache have kept the same
2164# value.
2165ac_cache_corrupted=false
2166for ac_var in $ac_precious_vars; do
2167  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168  eval ac_new_set=\$ac_env_${ac_var}_set
2169  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170  eval ac_new_val=\$ac_env_${ac_var}_value
2171  case $ac_old_set,$ac_new_set in
2172    set,)
2173      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175      ac_cache_corrupted=: ;;
2176    ,set)
2177      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179      ac_cache_corrupted=: ;;
2180    ,);;
2181    *)
2182      if test "x$ac_old_val" != "x$ac_new_val"; then
2183	# differences in whitespace do not lead to failure.
2184	ac_old_val_w=`echo x $ac_old_val`
2185	ac_new_val_w=`echo x $ac_new_val`
2186	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189	  ac_cache_corrupted=:
2190	else
2191	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193	  eval $ac_var=\$ac_old_val
2194	fi
2195	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2196$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2197	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2198$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2199      fi;;
2200  esac
2201  # Pass precious variables to config.status.
2202  if test "$ac_new_set" = set; then
2203    case $ac_new_val in
2204    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205    *) ac_arg=$ac_var=$ac_new_val ;;
2206    esac
2207    case " $ac_configure_args " in
2208      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2209      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210    esac
2211  fi
2212done
2213if $ac_cache_corrupted; then
2214  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219fi
2220## -------------------- ##
2221## Main body of script. ##
2222## -------------------- ##
2223
2224ac_ext=c
2225ac_cpp='$CPP $CPPFLAGS'
2226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231am__api_version='1.11'
2232
2233ac_aux_dir=
2234for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2235  if test -f "$ac_dir/install-sh"; then
2236    ac_aux_dir=$ac_dir
2237    ac_install_sh="$ac_aux_dir/install-sh -c"
2238    break
2239  elif test -f "$ac_dir/install.sh"; then
2240    ac_aux_dir=$ac_dir
2241    ac_install_sh="$ac_aux_dir/install.sh -c"
2242    break
2243  elif test -f "$ac_dir/shtool"; then
2244    ac_aux_dir=$ac_dir
2245    ac_install_sh="$ac_aux_dir/shtool install -c"
2246    break
2247  fi
2248done
2249if test -z "$ac_aux_dir"; then
2250  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2251fi
2252
2253# These three variables are undocumented and unsupported,
2254# and are intended to be withdrawn in a future Autoconf release.
2255# They can cause serious problems if a builder's source tree is in a directory
2256# whose full name contains unusual characters.
2257ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2258ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2259ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2260
2261
2262# Find a good install program.  We prefer a C program (faster),
2263# so one script is as good as another.  But avoid the broken or
2264# incompatible versions:
2265# SysV /etc/install, /usr/sbin/install
2266# SunOS /usr/etc/install
2267# IRIX /sbin/install
2268# AIX /bin/install
2269# AmigaOS /C/install, which installs bootblocks on floppy discs
2270# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2271# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2272# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2273# OS/2's system install, which has a completely different semantic
2274# ./install, which can be erroneously created by make from ./install.sh.
2275# Reject install programs that cannot install multiple files.
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2277$as_echo_n "checking for a BSD-compatible install... " >&6; }
2278if test -z "$INSTALL"; then
2279if ${ac_cv_path_install+:} false; then :
2280  $as_echo_n "(cached) " >&6
2281else
2282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285  IFS=$as_save_IFS
2286  test -z "$as_dir" && as_dir=.
2287    # Account for people who put trailing slashes in PATH elements.
2288case $as_dir/ in #((
2289  ./ | .// | /[cC]/* | \
2290  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2291  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2292  /usr/ucb/* ) ;;
2293  *)
2294    # OSF1 and SCO ODT 3.0 have their own names for install.
2295    # Don't use installbsd from OSF since it installs stuff as root
2296    # by default.
2297    for ac_prog in ginstall scoinst install; do
2298      for ac_exec_ext in '' $ac_executable_extensions; do
2299	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2300	  if test $ac_prog = install &&
2301	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302	    # AIX install.  It has an incompatible calling convention.
2303	    :
2304	  elif test $ac_prog = install &&
2305	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2306	    # program-specific install script used by HP pwplus--don't use.
2307	    :
2308	  else
2309	    rm -rf conftest.one conftest.two conftest.dir
2310	    echo one > conftest.one
2311	    echo two > conftest.two
2312	    mkdir conftest.dir
2313	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2314	      test -s conftest.one && test -s conftest.two &&
2315	      test -s conftest.dir/conftest.one &&
2316	      test -s conftest.dir/conftest.two
2317	    then
2318	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2319	      break 3
2320	    fi
2321	  fi
2322	fi
2323      done
2324    done
2325    ;;
2326esac
2327
2328  done
2329IFS=$as_save_IFS
2330
2331rm -rf conftest.one conftest.two conftest.dir
2332
2333fi
2334  if test "${ac_cv_path_install+set}" = set; then
2335    INSTALL=$ac_cv_path_install
2336  else
2337    # As a last resort, use the slow shell script.  Don't cache a
2338    # value for INSTALL within a source directory, because that will
2339    # break other packages using the cache if that directory is
2340    # removed, or if the value is a relative name.
2341    INSTALL=$ac_install_sh
2342  fi
2343fi
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2345$as_echo "$INSTALL" >&6; }
2346
2347# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2348# It thinks the first close brace ends the variable substitution.
2349test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2350
2351test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2352
2353test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2354
2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2356$as_echo_n "checking whether build environment is sane... " >&6; }
2357# Just in case
2358sleep 1
2359echo timestamp > conftest.file
2360# Reject unsafe characters in $srcdir or the absolute working directory
2361# name.  Accept space and tab only in the latter.
2362am_lf='
2363'
2364case `pwd` in
2365  *[\\\"\#\$\&\'\`$am_lf]*)
2366    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2367esac
2368case $srcdir in
2369  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2370    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2371esac
2372
2373# Do `set' in a subshell so we don't clobber the current shell's
2374# arguments.  Must try -L first in case configure is actually a
2375# symlink; some systems play weird games with the mod time of symlinks
2376# (eg FreeBSD returns the mod time of the symlink's containing
2377# directory).
2378if (
2379   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2380   if test "$*" = "X"; then
2381      # -L didn't work.
2382      set X `ls -t "$srcdir/configure" conftest.file`
2383   fi
2384   rm -f conftest.file
2385   if test "$*" != "X $srcdir/configure conftest.file" \
2386      && test "$*" != "X conftest.file $srcdir/configure"; then
2387
2388      # If neither matched, then we have a broken ls.  This can happen
2389      # if, for instance, CONFIG_SHELL is bash and it inherits a
2390      # broken ls alias from the environment.  This has actually
2391      # happened.  Such a system could not be considered "sane".
2392      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2393alias in your environment" "$LINENO" 5
2394   fi
2395
2396   test "$2" = conftest.file
2397   )
2398then
2399   # Ok.
2400   :
2401else
2402   as_fn_error $? "newly created file is older than distributed files!
2403Check your system clock" "$LINENO" 5
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2406$as_echo "yes" >&6; }
2407test "$program_prefix" != NONE &&
2408  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2409# Use a double $ so make ignores it.
2410test "$program_suffix" != NONE &&
2411  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2412# Double any \ or $.
2413# By default was `s,x,x', remove it if useless.
2414ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2415program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2416
2417# expand $ac_aux_dir to an absolute path
2418am_aux_dir=`cd $ac_aux_dir && pwd`
2419
2420if test x"${MISSING+set}" != xset; then
2421  case $am_aux_dir in
2422  *\ * | *\	*)
2423    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2424  *)
2425    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2426  esac
2427fi
2428# Use eval to expand $SHELL
2429if eval "$MISSING --run true"; then
2430  am_missing_run="$MISSING --run "
2431else
2432  am_missing_run=
2433  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2434$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2435fi
2436
2437if test x"${install_sh}" != xset; then
2438  case $am_aux_dir in
2439  *\ * | *\	*)
2440    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2441  *)
2442    install_sh="\${SHELL} $am_aux_dir/install-sh"
2443  esac
2444fi
2445
2446# Installed binaries are usually stripped using `strip' when the user
2447# run `make install-strip'.  However `strip' might not be the right
2448# tool to use in cross-compilation environments, therefore Automake
2449# will honor the `STRIP' environment variable to overrule this program.
2450if test "$cross_compiling" != no; then
2451  if test -n "$ac_tool_prefix"; then
2452  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2453set dummy ${ac_tool_prefix}strip; ac_word=$2
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455$as_echo_n "checking for $ac_word... " >&6; }
2456if ${ac_cv_prog_STRIP+:} false; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  if test -n "$STRIP"; then
2460  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2461else
2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465  IFS=$as_save_IFS
2466  test -z "$as_dir" && as_dir=.
2467    for ac_exec_ext in '' $ac_executable_extensions; do
2468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471    break 2
2472  fi
2473done
2474  done
2475IFS=$as_save_IFS
2476
2477fi
2478fi
2479STRIP=$ac_cv_prog_STRIP
2480if test -n "$STRIP"; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2482$as_echo "$STRIP" >&6; }
2483else
2484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485$as_echo "no" >&6; }
2486fi
2487
2488
2489fi
2490if test -z "$ac_cv_prog_STRIP"; then
2491  ac_ct_STRIP=$STRIP
2492  # Extract the first word of "strip", so it can be a program name with args.
2493set dummy strip; ac_word=$2
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2497  $as_echo_n "(cached) " >&6
2498else
2499  if test -n "$ac_ct_STRIP"; then
2500  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505  IFS=$as_save_IFS
2506  test -z "$as_dir" && as_dir=.
2507    for ac_exec_ext in '' $ac_executable_extensions; do
2508  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509    ac_cv_prog_ac_ct_STRIP="strip"
2510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511    break 2
2512  fi
2513done
2514  done
2515IFS=$as_save_IFS
2516
2517fi
2518fi
2519ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2520if test -n "$ac_ct_STRIP"; then
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2522$as_echo "$ac_ct_STRIP" >&6; }
2523else
2524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
2526fi
2527
2528  if test "x$ac_ct_STRIP" = x; then
2529    STRIP=":"
2530  else
2531    case $cross_compiling:$ac_tool_warned in
2532yes:)
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2535ac_tool_warned=yes ;;
2536esac
2537    STRIP=$ac_ct_STRIP
2538  fi
2539else
2540  STRIP="$ac_cv_prog_STRIP"
2541fi
2542
2543fi
2544INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2545
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2547$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2548if test -z "$MKDIR_P"; then
2549  if ${ac_cv_path_mkdir+:} false; then :
2550  $as_echo_n "(cached) " >&6
2551else
2552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2554do
2555  IFS=$as_save_IFS
2556  test -z "$as_dir" && as_dir=.
2557    for ac_prog in mkdir gmkdir; do
2558	 for ac_exec_ext in '' $ac_executable_extensions; do
2559	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2560	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2561	     'mkdir (GNU coreutils) '* | \
2562	     'mkdir (coreutils) '* | \
2563	     'mkdir (fileutils) '4.1*)
2564	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2565	       break 3;;
2566	   esac
2567	 done
2568       done
2569  done
2570IFS=$as_save_IFS
2571
2572fi
2573
2574  test -d ./--version && rmdir ./--version
2575  if test "${ac_cv_path_mkdir+set}" = set; then
2576    MKDIR_P="$ac_cv_path_mkdir -p"
2577  else
2578    # As a last resort, use the slow shell script.  Don't cache a
2579    # value for MKDIR_P within a source directory, because that will
2580    # break other packages using the cache if that directory is
2581    # removed, or if the value is a relative name.
2582    MKDIR_P="$ac_install_sh -d"
2583  fi
2584fi
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2586$as_echo "$MKDIR_P" >&6; }
2587
2588mkdir_p="$MKDIR_P"
2589case $mkdir_p in
2590  [\\/$]* | ?:[\\/]*) ;;
2591  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2592esac
2593
2594for ac_prog in gawk mawk nawk awk
2595do
2596  # Extract the first word of "$ac_prog", so it can be a program name with args.
2597set dummy $ac_prog; ac_word=$2
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2599$as_echo_n "checking for $ac_word... " >&6; }
2600if ${ac_cv_prog_AWK+:} false; then :
2601  $as_echo_n "(cached) " >&6
2602else
2603  if test -n "$AWK"; then
2604  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2605else
2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609  IFS=$as_save_IFS
2610  test -z "$as_dir" && as_dir=.
2611    for ac_exec_ext in '' $ac_executable_extensions; do
2612  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613    ac_cv_prog_AWK="$ac_prog"
2614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615    break 2
2616  fi
2617done
2618  done
2619IFS=$as_save_IFS
2620
2621fi
2622fi
2623AWK=$ac_cv_prog_AWK
2624if test -n "$AWK"; then
2625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2626$as_echo "$AWK" >&6; }
2627else
2628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629$as_echo "no" >&6; }
2630fi
2631
2632
2633  test -n "$AWK" && break
2634done
2635
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2637$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2638set x ${MAKE-make}
2639ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2640if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2641  $as_echo_n "(cached) " >&6
2642else
2643  cat >conftest.make <<\_ACEOF
2644SHELL = /bin/sh
2645all:
2646	@echo '@@@%%%=$(MAKE)=@@@%%%'
2647_ACEOF
2648# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2649case `${MAKE-make} -f conftest.make 2>/dev/null` in
2650  *@@@%%%=?*=@@@%%%*)
2651    eval ac_cv_prog_make_${ac_make}_set=yes;;
2652  *)
2653    eval ac_cv_prog_make_${ac_make}_set=no;;
2654esac
2655rm -f conftest.make
2656fi
2657if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659$as_echo "yes" >&6; }
2660  SET_MAKE=
2661else
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664  SET_MAKE="MAKE=${MAKE-make}"
2665fi
2666
2667rm -rf .tst 2>/dev/null
2668mkdir .tst 2>/dev/null
2669if test -d .tst; then
2670  am__leading_dot=.
2671else
2672  am__leading_dot=_
2673fi
2674rmdir .tst 2>/dev/null
2675
2676if test "`cd $srcdir && pwd`" != "`pwd`"; then
2677  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2678  # is not polluted with repeated "-I."
2679  am__isrc=' -I$(srcdir)'
2680  # test to see if srcdir already configured
2681  if test -f $srcdir/config.status; then
2682    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2683  fi
2684fi
2685
2686# test whether we have cygpath
2687if test -z "$CYGPATH_W"; then
2688  if (cygpath --version) >/dev/null 2>/dev/null; then
2689    CYGPATH_W='cygpath -w'
2690  else
2691    CYGPATH_W=echo
2692  fi
2693fi
2694
2695
2696# Define the identity of the package.
2697 PACKAGE='luit'
2698 VERSION='1.1.1'
2699
2700
2701cat >>confdefs.h <<_ACEOF
2702#define PACKAGE "$PACKAGE"
2703_ACEOF
2704
2705
2706cat >>confdefs.h <<_ACEOF
2707#define VERSION "$VERSION"
2708_ACEOF
2709
2710# Some tools Automake needs.
2711
2712ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2713
2714
2715AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2716
2717
2718AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2719
2720
2721AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2722
2723
2724MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2725
2726# We need awk for the "check" target.  The system "awk" is bad on
2727# some platforms.
2728# Always define AMTAR for backward compatibility.
2729
2730AMTAR=${AMTAR-"${am_missing_run}tar"}
2731
2732am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2733
2734
2735
2736
2737
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2740$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2741    # Check whether --enable-maintainer-mode was given.
2742if test "${enable_maintainer_mode+set}" = set; then :
2743  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2744else
2745  USE_MAINTAINER_MODE=no
2746fi
2747
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2749$as_echo "$USE_MAINTAINER_MODE" >&6; }
2750   if test $USE_MAINTAINER_MODE = yes; then
2751  MAINTAINER_MODE_TRUE=
2752  MAINTAINER_MODE_FALSE='#'
2753else
2754  MAINTAINER_MODE_TRUE='#'
2755  MAINTAINER_MODE_FALSE=
2756fi
2757
2758  MAINT=$MAINTAINER_MODE_TRUE
2759
2760
2761
2762# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774DEPDIR="${am__leading_dot}deps"
2775
2776ac_config_commands="$ac_config_commands depfiles"
2777
2778
2779am_make=${MAKE-make}
2780cat > confinc << 'END'
2781am__doit:
2782	@echo this is the am__doit target
2783.PHONY: am__doit
2784END
2785# If we don't find an include directive, just comment out the code.
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2787$as_echo_n "checking for style of include used by $am_make... " >&6; }
2788am__include="#"
2789am__quote=
2790_am_result=none
2791# First try GNU make style include.
2792echo "include confinc" > confmf
2793# Ignore all kinds of additional output from `make'.
2794case `$am_make -s -f confmf 2> /dev/null` in #(
2795*the\ am__doit\ target*)
2796  am__include=include
2797  am__quote=
2798  _am_result=GNU
2799  ;;
2800esac
2801# Now try BSD make style include.
2802if test "$am__include" = "#"; then
2803   echo '.include "confinc"' > confmf
2804   case `$am_make -s -f confmf 2> /dev/null` in #(
2805   *the\ am__doit\ target*)
2806     am__include=.include
2807     am__quote="\""
2808     _am_result=BSD
2809     ;;
2810   esac
2811fi
2812
2813
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2815$as_echo "$_am_result" >&6; }
2816rm -f confinc confmf
2817
2818# Check whether --enable-dependency-tracking was given.
2819if test "${enable_dependency_tracking+set}" = set; then :
2820  enableval=$enable_dependency_tracking;
2821fi
2822
2823if test "x$enable_dependency_tracking" != xno; then
2824  am_depcomp="$ac_aux_dir/depcomp"
2825  AMDEPBACKSLASH='\'
2826fi
2827 if test "x$enable_dependency_tracking" != xno; then
2828  AMDEP_TRUE=
2829  AMDEP_FALSE='#'
2830else
2831  AMDEP_TRUE='#'
2832  AMDEP_FALSE=
2833fi
2834
2835
2836ac_ext=c
2837ac_cpp='$CPP $CPPFLAGS'
2838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841if test -n "$ac_tool_prefix"; then
2842  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_CC+:} false; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$CC"; then
2850  ac_cv_prog_CC="$CC" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872$as_echo "$CC" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878
2879fi
2880if test -z "$ac_cv_prog_CC"; then
2881  ac_ct_CC=$CC
2882  # Extract the first word of "gcc", so it can be a program name with args.
2883set dummy gcc; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887  $as_echo_n "(cached) " >&6
2888else
2889  if test -n "$ac_ct_CC"; then
2890  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895  IFS=$as_save_IFS
2896  test -z "$as_dir" && as_dir=.
2897    for ac_exec_ext in '' $ac_executable_extensions; do
2898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899    ac_cv_prog_ac_ct_CC="gcc"
2900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901    break 2
2902  fi
2903done
2904  done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912$as_echo "$ac_ct_CC" >&6; }
2913else
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918  if test "x$ac_ct_CC" = x; then
2919    CC=""
2920  else
2921    case $cross_compiling:$ac_tool_warned in
2922yes:)
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2925ac_tool_warned=yes ;;
2926esac
2927    CC=$ac_ct_CC
2928  fi
2929else
2930  CC="$ac_cv_prog_CC"
2931fi
2932
2933if test -z "$CC"; then
2934          if test -n "$ac_tool_prefix"; then
2935    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2936set dummy ${ac_tool_prefix}cc; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_CC+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  if test -n "$CC"; then
2943  ac_cv_prog_CC="$CC" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_exec_ext in '' $ac_executable_extensions; do
2951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952    ac_cv_prog_CC="${ac_tool_prefix}cc"
2953    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954    break 2
2955  fi
2956done
2957  done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962CC=$ac_cv_prog_CC
2963if test -n "$CC"; then
2964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2965$as_echo "$CC" >&6; }
2966else
2967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972  fi
2973fi
2974if test -z "$CC"; then
2975  # Extract the first word of "cc", so it can be a program name with args.
2976set dummy cc; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if ${ac_cv_prog_CC+:} false; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985  ac_prog_rejected=no
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989  IFS=$as_save_IFS
2990  test -z "$as_dir" && as_dir=.
2991    for ac_exec_ext in '' $ac_executable_extensions; do
2992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2993    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2994       ac_prog_rejected=yes
2995       continue
2996     fi
2997    ac_cv_prog_CC="cc"
2998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999    break 2
3000  fi
3001done
3002  done
3003IFS=$as_save_IFS
3004
3005if test $ac_prog_rejected = yes; then
3006  # We found a bogon in the path, so make sure we never use it.
3007  set dummy $ac_cv_prog_CC
3008  shift
3009  if test $# != 0; then
3010    # We chose a different compiler from the bogus one.
3011    # However, it has the same basename, so the bogon will be chosen
3012    # first if we set CC to just the basename; use the full file name.
3013    shift
3014    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015  fi
3016fi
3017fi
3018fi
3019CC=$ac_cv_prog_CC
3020if test -n "$CC"; then
3021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3022$as_echo "$CC" >&6; }
3023else
3024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
3026fi
3027
3028
3029fi
3030if test -z "$CC"; then
3031  if test -n "$ac_tool_prefix"; then
3032  for ac_prog in cl.exe
3033  do
3034    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037$as_echo_n "checking for $ac_word... " >&6; }
3038if ${ac_cv_prog_CC+:} false; then :
3039  $as_echo_n "(cached) " >&6
3040else
3041  if test -n "$CC"; then
3042  ac_cv_prog_CC="$CC" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047  IFS=$as_save_IFS
3048  test -z "$as_dir" && as_dir=.
3049    for ac_exec_ext in '' $ac_executable_extensions; do
3050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053    break 2
3054  fi
3055done
3056  done
3057IFS=$as_save_IFS
3058
3059fi
3060fi
3061CC=$ac_cv_prog_CC
3062if test -n "$CC"; then
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064$as_echo "$CC" >&6; }
3065else
3066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067$as_echo "no" >&6; }
3068fi
3069
3070
3071    test -n "$CC" && break
3072  done
3073fi
3074if test -z "$CC"; then
3075  ac_ct_CC=$CC
3076  for ac_prog in cl.exe
3077do
3078  # Extract the first word of "$ac_prog", so it can be a program name with args.
3079set dummy $ac_prog; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
3082if ${ac_cv_prog_ac_ct_CC+:} false; then :
3083  $as_echo_n "(cached) " >&6
3084else
3085  if test -n "$ac_ct_CC"; then
3086  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091  IFS=$as_save_IFS
3092  test -z "$as_dir" && as_dir=.
3093    for ac_exec_ext in '' $ac_executable_extensions; do
3094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095    ac_cv_prog_ac_ct_CC="$ac_prog"
3096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097    break 2
3098  fi
3099done
3100  done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105ac_ct_CC=$ac_cv_prog_ac_ct_CC
3106if test -n "$ac_ct_CC"; then
3107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3108$as_echo "$ac_ct_CC" >&6; }
3109else
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115  test -n "$ac_ct_CC" && break
3116done
3117
3118  if test "x$ac_ct_CC" = x; then
3119    CC=""
3120  else
3121    case $cross_compiling:$ac_tool_warned in
3122yes:)
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125ac_tool_warned=yes ;;
3126esac
3127    CC=$ac_ct_CC
3128  fi
3129fi
3130
3131fi
3132
3133
3134test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error $? "no acceptable C compiler found in \$PATH
3137See \`config.log' for more details" "$LINENO" 5; }
3138
3139# Provide some information about the compiler.
3140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3141set X $ac_compile
3142ac_compiler=$2
3143for ac_option in --version -v -V -qversion; do
3144  { { ac_try="$ac_compiler $ac_option >&5"
3145case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150$as_echo "$ac_try_echo"; } >&5
3151  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3152  ac_status=$?
3153  if test -s conftest.err; then
3154    sed '10a\
3155... rest of stderr output deleted ...
3156         10q' conftest.err >conftest.er1
3157    cat conftest.er1 >&5
3158  fi
3159  rm -f conftest.er1 conftest.err
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; }
3162done
3163
3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175ac_clean_files_save=$ac_clean_files
3176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3177# Try to create an executable without -o first, disregard a.out.
3178# It will help us diagnose broken compilers, and finding out an intuition
3179# of exeext.
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3181$as_echo_n "checking whether the C compiler works... " >&6; }
3182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3183
3184# The possible output files:
3185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3186
3187ac_rmfiles=
3188for ac_file in $ac_files
3189do
3190  case $ac_file in
3191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3193  esac
3194done
3195rm -f $ac_rmfiles
3196
3197if { { ac_try="$ac_link_default"
3198case "(($ac_try" in
3199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200  *) ac_try_echo=$ac_try;;
3201esac
3202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203$as_echo "$ac_try_echo"; } >&5
3204  (eval "$ac_link_default") 2>&5
3205  ac_status=$?
3206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207  test $ac_status = 0; }; then :
3208  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3211# so that the user can short-circuit this test for compilers unknown to
3212# Autoconf.
3213for ac_file in $ac_files ''
3214do
3215  test -f "$ac_file" || continue
3216  case $ac_file in
3217    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3218	;;
3219    [ab].out )
3220	# We found the default executable, but exeext='' is most
3221	# certainly right.
3222	break;;
3223    *.* )
3224	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3225	then :; else
3226	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3227	fi
3228	# We set ac_cv_exeext here because the later test for it is not
3229	# safe: cross compilers may not add the suffix if given an `-o'
3230	# argument, so we may need to know it at that point already.
3231	# Even if this section looks crufty: it has the advantage of
3232	# actually working.
3233	break;;
3234    * )
3235	break;;
3236  esac
3237done
3238test "$ac_cv_exeext" = no && ac_cv_exeext=
3239
3240else
3241  ac_file=''
3242fi
3243if test -z "$ac_file"; then :
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246$as_echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251as_fn_error 77 "C compiler cannot create executables
3252See \`config.log' for more details" "$LINENO" 5; }
3253else
3254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255$as_echo "yes" >&6; }
3256fi
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3258$as_echo_n "checking for C compiler default output file name... " >&6; }
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3260$as_echo "$ac_file" >&6; }
3261ac_exeext=$ac_cv_exeext
3262
3263rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3264ac_clean_files=$ac_clean_files_save
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3266$as_echo_n "checking for suffix of executables... " >&6; }
3267if { { ac_try="$ac_link"
3268case "(($ac_try" in
3269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270  *) ac_try_echo=$ac_try;;
3271esac
3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273$as_echo "$ac_try_echo"; } >&5
3274  (eval "$ac_link") 2>&5
3275  ac_status=$?
3276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277  test $ac_status = 0; }; then :
3278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3280# work properly (i.e., refer to `conftest.exe'), while it won't with
3281# `rm'.
3282for ac_file in conftest.exe conftest conftest.*; do
3283  test -f "$ac_file" || continue
3284  case $ac_file in
3285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287	  break;;
3288    * ) break;;
3289  esac
3290done
3291else
3292  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3295See \`config.log' for more details" "$LINENO" 5; }
3296fi
3297rm -f conftest conftest$ac_cv_exeext
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3299$as_echo "$ac_cv_exeext" >&6; }
3300
3301rm -f conftest.$ac_ext
3302EXEEXT=$ac_cv_exeext
3303ac_exeext=$EXEEXT
3304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306#include <stdio.h>
3307int
3308main ()
3309{
3310FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317ac_clean_files="$ac_clean_files conftest.out"
3318# Check that the compiler produces executables we can run.  If not, either
3319# the compiler is broken, or we cross compile.
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3321$as_echo_n "checking whether we are cross compiling... " >&6; }
3322if test "$cross_compiling" != yes; then
3323  { { ac_try="$ac_link"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329$as_echo "$ac_try_echo"; } >&5
3330  (eval "$ac_link") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }
3334  if { ac_try='./conftest$ac_cv_exeext'
3335  { { case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341  (eval "$ac_try") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }; }; then
3345    cross_compiling=no
3346  else
3347    if test "$cross_compiling" = maybe; then
3348	cross_compiling=yes
3349    else
3350	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352as_fn_error $? "cannot run C compiled programs.
3353If you meant to cross compile, use \`--host'.
3354See \`config.log' for more details" "$LINENO" 5; }
3355    fi
3356  fi
3357fi
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3359$as_echo "$cross_compiling" >&6; }
3360
3361rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3362ac_clean_files=$ac_clean_files_save
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3364$as_echo_n "checking for suffix of object files... " >&6; }
3365if ${ac_cv_objext+:} false; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379rm -f conftest.o conftest.obj
3380if { { ac_try="$ac_compile"
3381case "(($ac_try" in
3382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383  *) ac_try_echo=$ac_try;;
3384esac
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387  (eval "$ac_compile") 2>&5
3388  ac_status=$?
3389  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390  test $ac_status = 0; }; then :
3391  for ac_file in conftest.o conftest.obj conftest.*; do
3392  test -f "$ac_file" || continue;
3393  case $ac_file in
3394    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396       break;;
3397  esac
3398done
3399else
3400  $as_echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3405as_fn_error $? "cannot compute suffix of object files: cannot compile
3406See \`config.log' for more details" "$LINENO" 5; }
3407fi
3408rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3411$as_echo "$ac_cv_objext" >&6; }
3412OBJEXT=$ac_cv_objext
3413ac_objext=$OBJEXT
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3415$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416if ${ac_cv_c_compiler_gnu+:} false; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420/* end confdefs.h.  */
3421
3422int
3423main ()
3424{
3425#ifndef __GNUC__
3426       choke me
3427#endif
3428
3429  ;
3430  return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"; then :
3434  ac_compiler_gnu=yes
3435else
3436  ac_compiler_gnu=no
3437fi
3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439ac_cv_c_compiler_gnu=$ac_compiler_gnu
3440
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3443$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3444if test $ac_compiler_gnu = yes; then
3445  GCC=yes
3446else
3447  GCC=
3448fi
3449ac_test_CFLAGS=${CFLAGS+set}
3450ac_save_CFLAGS=$CFLAGS
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3452$as_echo_n "checking whether $CC accepts -g... " >&6; }
3453if ${ac_cv_prog_cc_g+:} false; then :
3454  $as_echo_n "(cached) " >&6
3455else
3456  ac_save_c_werror_flag=$ac_c_werror_flag
3457   ac_c_werror_flag=yes
3458   ac_cv_prog_cc_g=no
3459   CFLAGS="-g"
3460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471if ac_fn_c_try_compile "$LINENO"; then :
3472  ac_cv_prog_cc_g=yes
3473else
3474  CFLAGS=""
3475      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477
3478int
3479main ()
3480{
3481
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486if ac_fn_c_try_compile "$LINENO"; then :
3487
3488else
3489  ac_c_werror_flag=$ac_save_c_werror_flag
3490	 CFLAGS="-g"
3491	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493
3494int
3495main ()
3496{
3497
3498  ;
3499  return 0;
3500}
3501_ACEOF
3502if ac_fn_c_try_compile "$LINENO"; then :
3503  ac_cv_prog_cc_g=yes
3504fi
3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506fi
3507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508fi
3509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510   ac_c_werror_flag=$ac_save_c_werror_flag
3511fi
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3513$as_echo "$ac_cv_prog_cc_g" >&6; }
3514if test "$ac_test_CFLAGS" = set; then
3515  CFLAGS=$ac_save_CFLAGS
3516elif test $ac_cv_prog_cc_g = yes; then
3517  if test "$GCC" = yes; then
3518    CFLAGS="-g -O2"
3519  else
3520    CFLAGS="-g"
3521  fi
3522else
3523  if test "$GCC" = yes; then
3524    CFLAGS="-O2"
3525  else
3526    CFLAGS=
3527  fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3531if ${ac_cv_prog_cc_c89+:} false; then :
3532  $as_echo_n "(cached) " >&6
3533else
3534  ac_cv_prog_cc_c89=no
3535ac_save_CC=$CC
3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538#include <stdarg.h>
3539#include <stdio.h>
3540#include <sys/types.h>
3541#include <sys/stat.h>
3542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3543struct buf { int x; };
3544FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545static char *e (p, i)
3546     char **p;
3547     int i;
3548{
3549  return p[i];
3550}
3551static char *f (char * (*g) (char **, int), char **p, ...)
3552{
3553  char *s;
3554  va_list v;
3555  va_start (v,p);
3556  s = g (p, va_arg (v,int));
3557  va_end (v);
3558  return s;
3559}
3560
3561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3562   function prototypes and stuff, but not '\xHH' hex character constants.
3563   These don't provoke an error unfortunately, instead are silently treated
3564   as 'x'.  The following induces an error, until -std is added to get
3565   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3566   array size at least.  It's necessary to write '\x00'==0 to get something
3567   that's true only with -std.  */
3568int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3569
3570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571   inside strings and character constants.  */
3572#define FOO(x) 'x'
3573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3574
3575int test (int i, double x);
3576struct s1 {int (*f) (int a);};
3577struct s2 {int (*f) (double a);};
3578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3579int argc;
3580char **argv;
3581int
3582main ()
3583{
3584return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3591do
3592  CC="$ac_save_CC $ac_arg"
3593  if ac_fn_c_try_compile "$LINENO"; then :
3594  ac_cv_prog_cc_c89=$ac_arg
3595fi
3596rm -f core conftest.err conftest.$ac_objext
3597  test "x$ac_cv_prog_cc_c89" != "xno" && break
3598done
3599rm -f conftest.$ac_ext
3600CC=$ac_save_CC
3601
3602fi
3603# AC_CACHE_VAL
3604case "x$ac_cv_prog_cc_c89" in
3605  x)
3606    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3607$as_echo "none needed" >&6; } ;;
3608  xno)
3609    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3610$as_echo "unsupported" >&6; } ;;
3611  *)
3612    CC="$CC $ac_cv_prog_cc_c89"
3613    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3615esac
3616if test "x$ac_cv_prog_cc_c89" != xno; then :
3617
3618fi
3619
3620ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626depcc="$CC"   am_compiler_list=
3627
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3629$as_echo_n "checking dependency style of $depcc... " >&6; }
3630if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3631  $as_echo_n "(cached) " >&6
3632else
3633  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3634  # We make a subdir and do the tests there.  Otherwise we can end up
3635  # making bogus files that we don't know about and never remove.  For
3636  # instance it was reported that on HP-UX the gcc test will end up
3637  # making a dummy file named `D' -- because `-MD' means `put the output
3638  # in D'.
3639  mkdir conftest.dir
3640  # Copy depcomp to subdir because otherwise we won't find it if we're
3641  # using a relative directory.
3642  cp "$am_depcomp" conftest.dir
3643  cd conftest.dir
3644  # We will build objects and dependencies in a subdirectory because
3645  # it helps to detect inapplicable dependency modes.  For instance
3646  # both Tru64's cc and ICC support -MD to output dependencies as a
3647  # side effect of compilation, but ICC will put the dependencies in
3648  # the current directory while Tru64 will put them in the object
3649  # directory.
3650  mkdir sub
3651
3652  am_cv_CC_dependencies_compiler_type=none
3653  if test "$am_compiler_list" = ""; then
3654     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3655  fi
3656  am__universal=false
3657  case " $depcc " in #(
3658     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3659     esac
3660
3661  for depmode in $am_compiler_list; do
3662    # Setup a source with many dependencies, because some compilers
3663    # like to wrap large dependency lists on column 80 (with \), and
3664    # we should not choose a depcomp mode which is confused by this.
3665    #
3666    # We need to recreate these files for each test, as the compiler may
3667    # overwrite some of them when testing with obscure command lines.
3668    # This happens at least with the AIX C compiler.
3669    : > sub/conftest.c
3670    for i in 1 2 3 4 5 6; do
3671      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3672      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3673      # Solaris 8's {/usr,}/bin/sh.
3674      touch sub/conftst$i.h
3675    done
3676    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3677
3678    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3679    # mode.  It turns out that the SunPro C++ compiler does not properly
3680    # handle `-M -o', and we need to detect this.  Also, some Intel
3681    # versions had trouble with output in subdirs
3682    am__obj=sub/conftest.${OBJEXT-o}
3683    am__minus_obj="-o $am__obj"
3684    case $depmode in
3685    gcc)
3686      # This depmode causes a compiler race in universal mode.
3687      test "$am__universal" = false || continue
3688      ;;
3689    nosideeffect)
3690      # after this tag, mechanisms are not by side-effect, so they'll
3691      # only be used when explicitly requested
3692      if test "x$enable_dependency_tracking" = xyes; then
3693	continue
3694      else
3695	break
3696      fi
3697      ;;
3698    msvisualcpp | msvcmsys)
3699      # This compiler won't grok `-c -o', but also, the minuso test has
3700      # not run yet.  These depmodes are late enough in the game, and
3701      # so weak that their functioning should not be impacted.
3702      am__obj=conftest.${OBJEXT-o}
3703      am__minus_obj=
3704      ;;
3705    none) break ;;
3706    esac
3707    if depmode=$depmode \
3708       source=sub/conftest.c object=$am__obj \
3709       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3710       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3711         >/dev/null 2>conftest.err &&
3712       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3713       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3714       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3715       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3716      # icc doesn't choke on unknown options, it will just issue warnings
3717      # or remarks (even with -Werror).  So we grep stderr for any message
3718      # that says an option was ignored or not supported.
3719      # When given -MP, icc 7.0 and 7.1 complain thusly:
3720      #   icc: Command line warning: ignoring option '-M'; no argument required
3721      # The diagnosis changed in icc 8.0:
3722      #   icc: Command line remark: option '-MP' not supported
3723      if (grep 'ignoring option' conftest.err ||
3724          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3725        am_cv_CC_dependencies_compiler_type=$depmode
3726        break
3727      fi
3728    fi
3729  done
3730
3731  cd ..
3732  rm -rf conftest.dir
3733else
3734  am_cv_CC_dependencies_compiler_type=none
3735fi
3736
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3739$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3740CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3741
3742 if
3743  test "x$enable_dependency_tracking" != xno \
3744  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3745  am__fastdepCC_TRUE=
3746  am__fastdepCC_FALSE='#'
3747else
3748  am__fastdepCC_TRUE='#'
3749  am__fastdepCC_FALSE=
3750fi
3751
3752
3753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3754$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3755if ${ac_cv_prog_cc_c99+:} false; then :
3756  $as_echo_n "(cached) " >&6
3757else
3758  ac_cv_prog_cc_c99=no
3759ac_save_CC=$CC
3760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761/* end confdefs.h.  */
3762#include <stdarg.h>
3763#include <stdbool.h>
3764#include <stdlib.h>
3765#include <wchar.h>
3766#include <stdio.h>
3767
3768// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3769#define debug(...) fprintf (stderr, __VA_ARGS__)
3770#define showlist(...) puts (#__VA_ARGS__)
3771#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3772static void
3773test_varargs_macros (void)
3774{
3775  int x = 1234;
3776  int y = 5678;
3777  debug ("Flag");
3778  debug ("X = %d\n", x);
3779  showlist (The first, second, and third items.);
3780  report (x>y, "x is %d but y is %d", x, y);
3781}
3782
3783// Check long long types.
3784#define BIG64 18446744073709551615ull
3785#define BIG32 4294967295ul
3786#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3787#if !BIG_OK
3788  your preprocessor is broken;
3789#endif
3790#if BIG_OK
3791#else
3792  your preprocessor is broken;
3793#endif
3794static long long int bignum = -9223372036854775807LL;
3795static unsigned long long int ubignum = BIG64;
3796
3797struct incomplete_array
3798{
3799  int datasize;
3800  double data[];
3801};
3802
3803struct named_init {
3804  int number;
3805  const wchar_t *name;
3806  double average;
3807};
3808
3809typedef const char *ccp;
3810
3811static inline int
3812test_restrict (ccp restrict text)
3813{
3814  // See if C++-style comments work.
3815  // Iterate through items via the restricted pointer.
3816  // Also check for declarations in for loops.
3817  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3818    continue;
3819  return 0;
3820}
3821
3822// Check varargs and va_copy.
3823static void
3824test_varargs (const char *format, ...)
3825{
3826  va_list args;
3827  va_start (args, format);
3828  va_list args_copy;
3829  va_copy (args_copy, args);
3830
3831  const char *str;
3832  int number;
3833  float fnumber;
3834
3835  while (*format)
3836    {
3837      switch (*format++)
3838	{
3839	case 's': // string
3840	  str = va_arg (args_copy, const char *);
3841	  break;
3842	case 'd': // int
3843	  number = va_arg (args_copy, int);
3844	  break;
3845	case 'f': // float
3846	  fnumber = va_arg (args_copy, double);
3847	  break;
3848	default:
3849	  break;
3850	}
3851    }
3852  va_end (args_copy);
3853  va_end (args);
3854}
3855
3856int
3857main ()
3858{
3859
3860  // Check bool.
3861  _Bool success = false;
3862
3863  // Check restrict.
3864  if (test_restrict ("String literal") == 0)
3865    success = true;
3866  char *restrict newvar = "Another string";
3867
3868  // Check varargs.
3869  test_varargs ("s, d' f .", "string", 65, 34.234);
3870  test_varargs_macros ();
3871
3872  // Check flexible array members.
3873  struct incomplete_array *ia =
3874    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3875  ia->datasize = 10;
3876  for (int i = 0; i < ia->datasize; ++i)
3877    ia->data[i] = i * 1.234;
3878
3879  // Check named initializers.
3880  struct named_init ni = {
3881    .number = 34,
3882    .name = L"Test wide string",
3883    .average = 543.34343,
3884  };
3885
3886  ni.number = 58;
3887
3888  int dynamic_array[ni.number];
3889  dynamic_array[ni.number - 1] = 543;
3890
3891  // work around unused variable warnings
3892  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3893	  || dynamic_array[ni.number - 1] != 543);
3894
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3900do
3901  CC="$ac_save_CC $ac_arg"
3902  if ac_fn_c_try_compile "$LINENO"; then :
3903  ac_cv_prog_cc_c99=$ac_arg
3904fi
3905rm -f core conftest.err conftest.$ac_objext
3906  test "x$ac_cv_prog_cc_c99" != "xno" && break
3907done
3908rm -f conftest.$ac_ext
3909CC=$ac_save_CC
3910
3911fi
3912# AC_CACHE_VAL
3913case "x$ac_cv_prog_cc_c99" in
3914  x)
3915    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3916$as_echo "none needed" >&6; } ;;
3917  xno)
3918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3919$as_echo "unsupported" >&6; } ;;
3920  *)
3921    CC="$CC $ac_cv_prog_cc_c99"
3922    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3923$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3924esac
3925if test "x$ac_cv_prog_cc_c99" != xno; then :
3926
3927fi
3928
3929
3930
3931ac_ext=c
3932ac_cpp='$CPP $CPPFLAGS'
3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3937$as_echo_n "checking how to run the C preprocessor... " >&6; }
3938# On Suns, sometimes $CPP names a directory.
3939if test -n "$CPP" && test -d "$CPP"; then
3940  CPP=
3941fi
3942if test -z "$CPP"; then
3943  if ${ac_cv_prog_CPP+:} false; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946      # Double quotes because CPP needs to be expanded
3947    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3948    do
3949      ac_preproc_ok=false
3950for ac_c_preproc_warn_flag in '' yes
3951do
3952  # Use a header file that comes with gcc, so configuring glibc
3953  # with a fresh cross-compiler works.
3954  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955  # <limits.h> exists even on freestanding compilers.
3956  # On the NeXT, cc -E runs the code through the compiler's parser,
3957  # not just through cpp. "Syntax error" is here to catch this case.
3958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959/* end confdefs.h.  */
3960#ifdef __STDC__
3961# include <limits.h>
3962#else
3963# include <assert.h>
3964#endif
3965		     Syntax error
3966_ACEOF
3967if ac_fn_c_try_cpp "$LINENO"; then :
3968
3969else
3970  # Broken: fails on valid input.
3971continue
3972fi
3973rm -f conftest.err conftest.i conftest.$ac_ext
3974
3975  # OK, works on sane cases.  Now check whether nonexistent headers
3976  # can be detected and how.
3977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978/* end confdefs.h.  */
3979#include <ac_nonexistent.h>
3980_ACEOF
3981if ac_fn_c_try_cpp "$LINENO"; then :
3982  # Broken: success on invalid input.
3983continue
3984else
3985  # Passes both tests.
3986ac_preproc_ok=:
3987break
3988fi
3989rm -f conftest.err conftest.i conftest.$ac_ext
3990
3991done
3992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993rm -f conftest.i conftest.err conftest.$ac_ext
3994if $ac_preproc_ok; then :
3995  break
3996fi
3997
3998    done
3999    ac_cv_prog_CPP=$CPP
4000
4001fi
4002  CPP=$ac_cv_prog_CPP
4003else
4004  ac_cv_prog_CPP=$CPP
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4007$as_echo "$CPP" >&6; }
4008ac_preproc_ok=false
4009for ac_c_preproc_warn_flag in '' yes
4010do
4011  # Use a header file that comes with gcc, so configuring glibc
4012  # with a fresh cross-compiler works.
4013  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014  # <limits.h> exists even on freestanding compilers.
4015  # On the NeXT, cc -E runs the code through the compiler's parser,
4016  # not just through cpp. "Syntax error" is here to catch this case.
4017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019#ifdef __STDC__
4020# include <limits.h>
4021#else
4022# include <assert.h>
4023#endif
4024		     Syntax error
4025_ACEOF
4026if ac_fn_c_try_cpp "$LINENO"; then :
4027
4028else
4029  # Broken: fails on valid input.
4030continue
4031fi
4032rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034  # OK, works on sane cases.  Now check whether nonexistent headers
4035  # can be detected and how.
4036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037/* end confdefs.h.  */
4038#include <ac_nonexistent.h>
4039_ACEOF
4040if ac_fn_c_try_cpp "$LINENO"; then :
4041  # Broken: success on invalid input.
4042continue
4043else
4044  # Passes both tests.
4045ac_preproc_ok=:
4046break
4047fi
4048rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050done
4051# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4052rm -f conftest.i conftest.err conftest.$ac_ext
4053if $ac_preproc_ok; then :
4054
4055else
4056  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4059See \`config.log' for more details" "$LINENO" 5; }
4060fi
4061
4062ac_ext=c
4063ac_cpp='$CPP $CPPFLAGS'
4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4070$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4071if ${ac_cv_path_GREP+:} false; then :
4072  $as_echo_n "(cached) " >&6
4073else
4074  if test -z "$GREP"; then
4075  ac_path_GREP_found=false
4076  # Loop through the user's path and test for each of PROGNAME-LIST
4077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079do
4080  IFS=$as_save_IFS
4081  test -z "$as_dir" && as_dir=.
4082    for ac_prog in grep ggrep; do
4083    for ac_exec_ext in '' $ac_executable_extensions; do
4084      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4085      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4086# Check for GNU ac_path_GREP and select it if it is found.
4087  # Check for GNU $ac_path_GREP
4088case `"$ac_path_GREP" --version 2>&1` in
4089*GNU*)
4090  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4091*)
4092  ac_count=0
4093  $as_echo_n 0123456789 >"conftest.in"
4094  while :
4095  do
4096    cat "conftest.in" "conftest.in" >"conftest.tmp"
4097    mv "conftest.tmp" "conftest.in"
4098    cp "conftest.in" "conftest.nl"
4099    $as_echo 'GREP' >> "conftest.nl"
4100    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102    as_fn_arith $ac_count + 1 && ac_count=$as_val
4103    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4104      # Best one so far, save it but keep looking for a better one
4105      ac_cv_path_GREP="$ac_path_GREP"
4106      ac_path_GREP_max=$ac_count
4107    fi
4108    # 10*(2^10) chars as input seems more than enough
4109    test $ac_count -gt 10 && break
4110  done
4111  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112esac
4113
4114      $ac_path_GREP_found && break 3
4115    done
4116  done
4117  done
4118IFS=$as_save_IFS
4119  if test -z "$ac_cv_path_GREP"; then
4120    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121  fi
4122else
4123  ac_cv_path_GREP=$GREP
4124fi
4125
4126fi
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4128$as_echo "$ac_cv_path_GREP" >&6; }
4129 GREP="$ac_cv_path_GREP"
4130
4131
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4133$as_echo_n "checking for egrep... " >&6; }
4134if ${ac_cv_path_EGREP+:} false; then :
4135  $as_echo_n "(cached) " >&6
4136else
4137  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4138   then ac_cv_path_EGREP="$GREP -E"
4139   else
4140     if test -z "$EGREP"; then
4141  ac_path_EGREP_found=false
4142  # Loop through the user's path and test for each of PROGNAME-LIST
4143  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145do
4146  IFS=$as_save_IFS
4147  test -z "$as_dir" && as_dir=.
4148    for ac_prog in egrep; do
4149    for ac_exec_ext in '' $ac_executable_extensions; do
4150      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4151      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4152# Check for GNU ac_path_EGREP and select it if it is found.
4153  # Check for GNU $ac_path_EGREP
4154case `"$ac_path_EGREP" --version 2>&1` in
4155*GNU*)
4156  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4157*)
4158  ac_count=0
4159  $as_echo_n 0123456789 >"conftest.in"
4160  while :
4161  do
4162    cat "conftest.in" "conftest.in" >"conftest.tmp"
4163    mv "conftest.tmp" "conftest.in"
4164    cp "conftest.in" "conftest.nl"
4165    $as_echo 'EGREP' >> "conftest.nl"
4166    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4167    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4168    as_fn_arith $ac_count + 1 && ac_count=$as_val
4169    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4170      # Best one so far, save it but keep looking for a better one
4171      ac_cv_path_EGREP="$ac_path_EGREP"
4172      ac_path_EGREP_max=$ac_count
4173    fi
4174    # 10*(2^10) chars as input seems more than enough
4175    test $ac_count -gt 10 && break
4176  done
4177  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178esac
4179
4180      $ac_path_EGREP_found && break 3
4181    done
4182  done
4183  done
4184IFS=$as_save_IFS
4185  if test -z "$ac_cv_path_EGREP"; then
4186    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187  fi
4188else
4189  ac_cv_path_EGREP=$EGREP
4190fi
4191
4192   fi
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4195$as_echo "$ac_cv_path_EGREP" >&6; }
4196 EGREP="$ac_cv_path_EGREP"
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4200$as_echo_n "checking for ANSI C header files... " >&6; }
4201if ${ac_cv_header_stdc+:} false; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h.  */
4206#include <stdlib.h>
4207#include <stdarg.h>
4208#include <string.h>
4209#include <float.h>
4210
4211int
4212main ()
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219if ac_fn_c_try_compile "$LINENO"; then :
4220  ac_cv_header_stdc=yes
4221else
4222  ac_cv_header_stdc=no
4223fi
4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225
4226if test $ac_cv_header_stdc = yes; then
4227  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229/* end confdefs.h.  */
4230#include <string.h>
4231
4232_ACEOF
4233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4234  $EGREP "memchr" >/dev/null 2>&1; then :
4235
4236else
4237  ac_cv_header_stdc=no
4238fi
4239rm -f conftest*
4240
4241fi
4242
4243if test $ac_cv_header_stdc = yes; then
4244  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247#include <stdlib.h>
4248
4249_ACEOF
4250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251  $EGREP "free" >/dev/null 2>&1; then :
4252
4253else
4254  ac_cv_header_stdc=no
4255fi
4256rm -f conftest*
4257
4258fi
4259
4260if test $ac_cv_header_stdc = yes; then
4261  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4262  if test "$cross_compiling" = yes; then :
4263  :
4264else
4265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266/* end confdefs.h.  */
4267#include <ctype.h>
4268#include <stdlib.h>
4269#if ((' ' & 0x0FF) == 0x020)
4270# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4271# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4272#else
4273# define ISLOWER(c) \
4274		   (('a' <= (c) && (c) <= 'i') \
4275		     || ('j' <= (c) && (c) <= 'r') \
4276		     || ('s' <= (c) && (c) <= 'z'))
4277# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4278#endif
4279
4280#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4281int
4282main ()
4283{
4284  int i;
4285  for (i = 0; i < 256; i++)
4286    if (XOR (islower (i), ISLOWER (i))
4287	|| toupper (i) != TOUPPER (i))
4288      return 2;
4289  return 0;
4290}
4291_ACEOF
4292if ac_fn_c_try_run "$LINENO"; then :
4293
4294else
4295  ac_cv_header_stdc=no
4296fi
4297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4298  conftest.$ac_objext conftest.beam conftest.$ac_ext
4299fi
4300
4301fi
4302fi
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4304$as_echo "$ac_cv_header_stdc" >&6; }
4305if test $ac_cv_header_stdc = yes; then
4306
4307$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4308
4309fi
4310
4311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4312for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4313		  inttypes.h stdint.h unistd.h
4314do :
4315  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4316ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4317"
4318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4319  cat >>confdefs.h <<_ACEOF
4320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321_ACEOF
4322
4323fi
4324
4325done
4326
4327
4328
4329
4330
4331
4332ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4333if test "x$ac_cv_have_decl___clang__" = xyes; then :
4334  CLANGCC="yes"
4335else
4336  CLANGCC="no"
4337fi
4338
4339ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4340if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4341  INTELCC="yes"
4342else
4343  INTELCC="no"
4344fi
4345
4346ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4347if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4348  SUNCC="yes"
4349else
4350  SUNCC="no"
4351fi
4352
4353
4354
4355
4356if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4357	if test -n "$ac_tool_prefix"; then
4358  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4359set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361$as_echo_n "checking for $ac_word... " >&6; }
4362if ${ac_cv_path_PKG_CONFIG+:} false; then :
4363  $as_echo_n "(cached) " >&6
4364else
4365  case $PKG_CONFIG in
4366  [\\/]* | ?:[\\/]*)
4367  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4368  ;;
4369  *)
4370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373  IFS=$as_save_IFS
4374  test -z "$as_dir" && as_dir=.
4375    for ac_exec_ext in '' $ac_executable_extensions; do
4376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379    break 2
4380  fi
4381done
4382  done
4383IFS=$as_save_IFS
4384
4385  ;;
4386esac
4387fi
4388PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4389if test -n "$PKG_CONFIG"; then
4390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4391$as_echo "$PKG_CONFIG" >&6; }
4392else
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394$as_echo "no" >&6; }
4395fi
4396
4397
4398fi
4399if test -z "$ac_cv_path_PKG_CONFIG"; then
4400  ac_pt_PKG_CONFIG=$PKG_CONFIG
4401  # Extract the first word of "pkg-config", so it can be a program name with args.
4402set dummy pkg-config; ac_word=$2
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404$as_echo_n "checking for $ac_word... " >&6; }
4405if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  case $ac_pt_PKG_CONFIG in
4409  [\\/]* | ?:[\\/]*)
4410  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4411  ;;
4412  *)
4413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
4415do
4416  IFS=$as_save_IFS
4417  test -z "$as_dir" && as_dir=.
4418    for ac_exec_ext in '' $ac_executable_extensions; do
4419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422    break 2
4423  fi
4424done
4425  done
4426IFS=$as_save_IFS
4427
4428  ;;
4429esac
4430fi
4431ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4432if test -n "$ac_pt_PKG_CONFIG"; then
4433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4434$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4435else
4436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437$as_echo "no" >&6; }
4438fi
4439
4440  if test "x$ac_pt_PKG_CONFIG" = x; then
4441    PKG_CONFIG=""
4442  else
4443    case $cross_compiling:$ac_tool_warned in
4444yes:)
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447ac_tool_warned=yes ;;
4448esac
4449    PKG_CONFIG=$ac_pt_PKG_CONFIG
4450  fi
4451else
4452  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4453fi
4454
4455fi
4456if test -n "$PKG_CONFIG"; then
4457	_pkg_min_version=0.9.0
4458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4459$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4460	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462$as_echo "yes" >&6; }
4463	else
4464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465$as_echo "no" >&6; }
4466		PKG_CONFIG=""
4467	fi
4468
4469fi
4470# Make sure we can run config.sub.
4471$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475$as_echo_n "checking build system type... " >&6; }
4476if ${ac_cv_build+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  ac_build_alias=$build_alias
4480test "x$ac_build_alias" = x &&
4481  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482test "x$ac_build_alias" = x &&
4483  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4484ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489$as_echo "$ac_cv_build" >&6; }
4490case $ac_cv_build in
4491*-*-*) ;;
4492*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4493esac
4494build=$ac_cv_build
4495ac_save_IFS=$IFS; IFS='-'
4496set x $ac_cv_build
4497shift
4498build_cpu=$1
4499build_vendor=$2
4500shift; shift
4501# Remember, the first character of IFS is used to create $*,
4502# except with old shells:
4503build_os=$*
4504IFS=$ac_save_IFS
4505case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509$as_echo_n "checking host system type... " >&6; }
4510if ${ac_cv_host+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  if test "x$host_alias" = x; then
4514  ac_cv_host=$ac_cv_build
4515else
4516  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4518fi
4519
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522$as_echo "$ac_cv_host" >&6; }
4523case $ac_cv_host in
4524*-*-*) ;;
4525*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4526esac
4527host=$ac_cv_host
4528ac_save_IFS=$IFS; IFS='-'
4529set x $ac_cv_host
4530shift
4531host_cpu=$1
4532host_vendor=$2
4533shift; shift
4534# Remember, the first character of IFS is used to create $*,
4535# except with old shells:
4536host_os=$*
4537IFS=$ac_save_IFS
4538case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543if ${ac_cv_path_SED+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547     for ac_i in 1 2 3 4 5 6 7; do
4548       ac_script="$ac_script$as_nl$ac_script"
4549     done
4550     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551     { ac_script=; unset ac_script;}
4552     if test -z "$SED"; then
4553  ac_path_SED_found=false
4554  # Loop through the user's path and test for each of PROGNAME-LIST
4555  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  test -z "$as_dir" && as_dir=.
4560    for ac_prog in sed gsed; do
4561    for ac_exec_ext in '' $ac_executable_extensions; do
4562      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564# Check for GNU ac_path_SED and select it if it is found.
4565  # Check for GNU $ac_path_SED
4566case `"$ac_path_SED" --version 2>&1` in
4567*GNU*)
4568  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569*)
4570  ac_count=0
4571  $as_echo_n 0123456789 >"conftest.in"
4572  while :
4573  do
4574    cat "conftest.in" "conftest.in" >"conftest.tmp"
4575    mv "conftest.tmp" "conftest.in"
4576    cp "conftest.in" "conftest.nl"
4577    $as_echo '' >> "conftest.nl"
4578    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580    as_fn_arith $ac_count + 1 && ac_count=$as_val
4581    if test $ac_count -gt ${ac_path_SED_max-0}; then
4582      # Best one so far, save it but keep looking for a better one
4583      ac_cv_path_SED="$ac_path_SED"
4584      ac_path_SED_max=$ac_count
4585    fi
4586    # 10*(2^10) chars as input seems more than enough
4587    test $ac_count -gt 10 && break
4588  done
4589  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590esac
4591
4592      $ac_path_SED_found && break 3
4593    done
4594  done
4595  done
4596IFS=$as_save_IFS
4597  if test -z "$ac_cv_path_SED"; then
4598    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599  fi
4600else
4601  ac_cv_path_SED=$SED
4602fi
4603
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606$as_echo "$ac_cv_path_SED" >&6; }
4607 SED="$ac_cv_path_SED"
4608  rm -f conftest.sed
4609
4610
4611
4612
4613
4614
4615# Check whether --enable-selective-werror was given.
4616if test "${enable_selective_werror+set}" = set; then :
4617  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4618else
4619  SELECTIVE_WERROR=yes
4620fi
4621
4622
4623
4624
4625
4626# -v is too short to test reliably with XORG_TESTSET_CFLAG
4627if test "x$SUNCC" = "xyes"; then
4628    BASE_CFLAGS="-v"
4629else
4630    BASE_CFLAGS=""
4631fi
4632
4633# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647xorg_testset_save_CFLAGS="$CFLAGS"
4648
4649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4652$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4653if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4654  $as_echo_n "(cached) " >&6
4655else
4656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h.  */
4658int i;
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"; then :
4661  xorg_cv_cc_flag_unknown_warning_option=yes
4662else
4663  xorg_cv_cc_flag_unknown_warning_option=no
4664fi
4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666fi
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4668$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4669	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4670	CFLAGS="$xorg_testset_save_CFLAGS"
4671fi
4672
4673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4674	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4675		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4676	fi
4677	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4679$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4680if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685int i;
4686_ACEOF
4687if ac_fn_c_try_compile "$LINENO"; then :
4688  xorg_cv_cc_flag_unused_command_line_argument=yes
4689else
4690  xorg_cv_cc_flag_unused_command_line_argument=no
4691fi
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693fi
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4695$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4696	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4697	CFLAGS="$xorg_testset_save_CFLAGS"
4698fi
4699
4700found="no"
4701
4702	if test $found = "no" ; then
4703		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4704			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4705		fi
4706
4707		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4708			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4709		fi
4710
4711		CFLAGS="$CFLAGS -Wall"
4712
4713		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4714$as_echo_n "checking if $CC supports-Wall... " >&6; }
4715		cacheid=xorg_cv_cc_flag__Wall
4716		if eval \${$cacheid+:} false; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720/* end confdefs.h.  */
4721int i;
4722int
4723main ()
4724{
4725
4726  ;
4727  return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_link "$LINENO"; then :
4731  eval $cacheid=yes
4732else
4733  eval $cacheid=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext \
4736    conftest$ac_exeext conftest.$ac_ext
4737fi
4738
4739
4740		CFLAGS="$xorg_testset_save_CFLAGS"
4741
4742		eval supported=\$$cacheid
4743		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4744$as_echo "$supported" >&6; }
4745		if test "$supported" = "yes" ; then
4746			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4747			found="yes"
4748		fi
4749	fi
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765xorg_testset_save_CFLAGS="$CFLAGS"
4766
4767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4770$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4771if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776int i;
4777_ACEOF
4778if ac_fn_c_try_compile "$LINENO"; then :
4779  xorg_cv_cc_flag_unknown_warning_option=yes
4780else
4781  xorg_cv_cc_flag_unknown_warning_option=no
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4786$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4787	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4788	CFLAGS="$xorg_testset_save_CFLAGS"
4789fi
4790
4791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4792	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4793		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4794	fi
4795	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4797$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4798if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h.  */
4803int i;
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806  xorg_cv_cc_flag_unused_command_line_argument=yes
4807else
4808  xorg_cv_cc_flag_unused_command_line_argument=no
4809fi
4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4813$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4814	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4815	CFLAGS="$xorg_testset_save_CFLAGS"
4816fi
4817
4818found="no"
4819
4820	if test $found = "no" ; then
4821		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4822			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4823		fi
4824
4825		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4826			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4827		fi
4828
4829		CFLAGS="$CFLAGS -Wpointer-arith"
4830
4831		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4832$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4833		cacheid=xorg_cv_cc_flag__Wpointer_arith
4834		if eval \${$cacheid+:} false; then :
4835  $as_echo_n "(cached) " >&6
4836else
4837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h.  */
4839int i;
4840int
4841main ()
4842{
4843
4844  ;
4845  return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_link "$LINENO"; then :
4849  eval $cacheid=yes
4850else
4851  eval $cacheid=no
4852fi
4853rm -f core conftest.err conftest.$ac_objext \
4854    conftest$ac_exeext conftest.$ac_ext
4855fi
4856
4857
4858		CFLAGS="$xorg_testset_save_CFLAGS"
4859
4860		eval supported=\$$cacheid
4861		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4862$as_echo "$supported" >&6; }
4863		if test "$supported" = "yes" ; then
4864			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4865			found="yes"
4866		fi
4867	fi
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883xorg_testset_save_CFLAGS="$CFLAGS"
4884
4885if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4886	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4888$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4889if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893/* end confdefs.h.  */
4894int i;
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897  xorg_cv_cc_flag_unknown_warning_option=yes
4898else
4899  xorg_cv_cc_flag_unknown_warning_option=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902fi
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4904$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4905	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4906	CFLAGS="$xorg_testset_save_CFLAGS"
4907fi
4908
4909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4910	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4911		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4912	fi
4913	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4915$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4916if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920/* end confdefs.h.  */
4921int i;
4922_ACEOF
4923if ac_fn_c_try_compile "$LINENO"; then :
4924  xorg_cv_cc_flag_unused_command_line_argument=yes
4925else
4926  xorg_cv_cc_flag_unused_command_line_argument=no
4927fi
4928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4931$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4932	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4933	CFLAGS="$xorg_testset_save_CFLAGS"
4934fi
4935
4936found="no"
4937
4938	if test $found = "no" ; then
4939		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4940			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941		fi
4942
4943		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4944			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945		fi
4946
4947		CFLAGS="$CFLAGS -Wmissing-declarations"
4948
4949		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4950$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4951		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4952		if eval \${$cacheid+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956/* end confdefs.h.  */
4957int i;
4958int
4959main ()
4960{
4961
4962  ;
4963  return 0;
4964}
4965_ACEOF
4966if ac_fn_c_try_link "$LINENO"; then :
4967  eval $cacheid=yes
4968else
4969  eval $cacheid=no
4970fi
4971rm -f core conftest.err conftest.$ac_objext \
4972    conftest$ac_exeext conftest.$ac_ext
4973fi
4974
4975
4976		CFLAGS="$xorg_testset_save_CFLAGS"
4977
4978		eval supported=\$$cacheid
4979		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4980$as_echo "$supported" >&6; }
4981		if test "$supported" = "yes" ; then
4982			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4983			found="yes"
4984		fi
4985	fi
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001xorg_testset_save_CFLAGS="$CFLAGS"
5002
5003if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5004	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5006$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5007if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012int i;
5013_ACEOF
5014if ac_fn_c_try_compile "$LINENO"; then :
5015  xorg_cv_cc_flag_unknown_warning_option=yes
5016else
5017  xorg_cv_cc_flag_unknown_warning_option=no
5018fi
5019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5022$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5023	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5024	CFLAGS="$xorg_testset_save_CFLAGS"
5025fi
5026
5027if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5028	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5029		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5030	fi
5031	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5033$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5034if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038/* end confdefs.h.  */
5039int i;
5040_ACEOF
5041if ac_fn_c_try_compile "$LINENO"; then :
5042  xorg_cv_cc_flag_unused_command_line_argument=yes
5043else
5044  xorg_cv_cc_flag_unused_command_line_argument=no
5045fi
5046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047fi
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5049$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5051	CFLAGS="$xorg_testset_save_CFLAGS"
5052fi
5053
5054found="no"
5055
5056	if test $found = "no" ; then
5057		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5059		fi
5060
5061		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5063		fi
5064
5065		CFLAGS="$CFLAGS -Wformat=2"
5066
5067		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5068$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5069		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5070		if eval \${$cacheid+:} false; then :
5071  $as_echo_n "(cached) " >&6
5072else
5073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074/* end confdefs.h.  */
5075int i;
5076int
5077main ()
5078{
5079
5080  ;
5081  return 0;
5082}
5083_ACEOF
5084if ac_fn_c_try_link "$LINENO"; then :
5085  eval $cacheid=yes
5086else
5087  eval $cacheid=no
5088fi
5089rm -f core conftest.err conftest.$ac_objext \
5090    conftest$ac_exeext conftest.$ac_ext
5091fi
5092
5093
5094		CFLAGS="$xorg_testset_save_CFLAGS"
5095
5096		eval supported=\$$cacheid
5097		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5098$as_echo "$supported" >&6; }
5099		if test "$supported" = "yes" ; then
5100			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5101			found="yes"
5102		fi
5103	fi
5104
5105	if test $found = "no" ; then
5106		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5108		fi
5109
5110		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112		fi
5113
5114		CFLAGS="$CFLAGS -Wformat"
5115
5116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5117$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5118		cacheid=xorg_cv_cc_flag__Wformat
5119		if eval \${$cacheid+:} false; then :
5120  $as_echo_n "(cached) " >&6
5121else
5122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123/* end confdefs.h.  */
5124int i;
5125int
5126main ()
5127{
5128
5129  ;
5130  return 0;
5131}
5132_ACEOF
5133if ac_fn_c_try_link "$LINENO"; then :
5134  eval $cacheid=yes
5135else
5136  eval $cacheid=no
5137fi
5138rm -f core conftest.err conftest.$ac_objext \
5139    conftest$ac_exeext conftest.$ac_ext
5140fi
5141
5142
5143		CFLAGS="$xorg_testset_save_CFLAGS"
5144
5145		eval supported=\$$cacheid
5146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5147$as_echo "$supported" >&6; }
5148		if test "$supported" = "yes" ; then
5149			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5150			found="yes"
5151		fi
5152	fi
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181int i;
5182_ACEOF
5183if ac_fn_c_try_compile "$LINENO"; then :
5184  xorg_cv_cc_flag_unknown_warning_option=yes
5185else
5186  xorg_cv_cc_flag_unknown_warning_option=no
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189fi
5190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5192	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5193	CFLAGS="$xorg_testset_save_CFLAGS"
5194fi
5195
5196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5197	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199	fi
5200	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207/* end confdefs.h.  */
5208int i;
5209_ACEOF
5210if ac_fn_c_try_compile "$LINENO"; then :
5211  xorg_cv_cc_flag_unused_command_line_argument=yes
5212else
5213  xorg_cv_cc_flag_unused_command_line_argument=no
5214fi
5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5220	CFLAGS="$xorg_testset_save_CFLAGS"
5221fi
5222
5223found="no"
5224
5225	if test $found = "no" ; then
5226		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5228		fi
5229
5230		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5232		fi
5233
5234		CFLAGS="$CFLAGS -Wstrict-prototypes"
5235
5236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5237$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5238		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5239		if eval \${$cacheid+:} false; then :
5240  $as_echo_n "(cached) " >&6
5241else
5242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244int i;
5245int
5246main ()
5247{
5248
5249  ;
5250  return 0;
5251}
5252_ACEOF
5253if ac_fn_c_try_link "$LINENO"; then :
5254  eval $cacheid=yes
5255else
5256  eval $cacheid=no
5257fi
5258rm -f core conftest.err conftest.$ac_objext \
5259    conftest$ac_exeext conftest.$ac_ext
5260fi
5261
5262
5263		CFLAGS="$xorg_testset_save_CFLAGS"
5264
5265		eval supported=\$$cacheid
5266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5267$as_echo "$supported" >&6; }
5268		if test "$supported" = "yes" ; then
5269			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5270			found="yes"
5271		fi
5272	fi
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288xorg_testset_save_CFLAGS="$CFLAGS"
5289
5290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299int i;
5300_ACEOF
5301if ac_fn_c_try_compile "$LINENO"; then :
5302  xorg_cv_cc_flag_unknown_warning_option=yes
5303else
5304  xorg_cv_cc_flag_unknown_warning_option=no
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5311	CFLAGS="$xorg_testset_save_CFLAGS"
5312fi
5313
5314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5317	fi
5318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326int i;
5327_ACEOF
5328if ac_fn_c_try_compile "$LINENO"; then :
5329  xorg_cv_cc_flag_unused_command_line_argument=yes
5330else
5331  xorg_cv_cc_flag_unused_command_line_argument=no
5332fi
5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5338	CFLAGS="$xorg_testset_save_CFLAGS"
5339fi
5340
5341found="no"
5342
5343	if test $found = "no" ; then
5344		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5346		fi
5347
5348		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5350		fi
5351
5352		CFLAGS="$CFLAGS -Wmissing-prototypes"
5353
5354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5355$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5356		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5357		if eval \${$cacheid+:} false; then :
5358  $as_echo_n "(cached) " >&6
5359else
5360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h.  */
5362int i;
5363int
5364main ()
5365{
5366
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371if ac_fn_c_try_link "$LINENO"; then :
5372  eval $cacheid=yes
5373else
5374  eval $cacheid=no
5375fi
5376rm -f core conftest.err conftest.$ac_objext \
5377    conftest$ac_exeext conftest.$ac_ext
5378fi
5379
5380
5381		CFLAGS="$xorg_testset_save_CFLAGS"
5382
5383		eval supported=\$$cacheid
5384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385$as_echo "$supported" >&6; }
5386		if test "$supported" = "yes" ; then
5387			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5388			found="yes"
5389		fi
5390	fi
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406xorg_testset_save_CFLAGS="$CFLAGS"
5407
5408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5409	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417int i;
5418_ACEOF
5419if ac_fn_c_try_compile "$LINENO"; then :
5420  xorg_cv_cc_flag_unknown_warning_option=yes
5421else
5422  xorg_cv_cc_flag_unknown_warning_option=no
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5428	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5429	CFLAGS="$xorg_testset_save_CFLAGS"
5430fi
5431
5432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5433	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5434		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435	fi
5436	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5437	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5440  $as_echo_n "(cached) " >&6
5441else
5442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443/* end confdefs.h.  */
5444int i;
5445_ACEOF
5446if ac_fn_c_try_compile "$LINENO"; then :
5447  xorg_cv_cc_flag_unused_command_line_argument=yes
5448else
5449  xorg_cv_cc_flag_unused_command_line_argument=no
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5456	CFLAGS="$xorg_testset_save_CFLAGS"
5457fi
5458
5459found="no"
5460
5461	if test $found = "no" ; then
5462		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5464		fi
5465
5466		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5468		fi
5469
5470		CFLAGS="$CFLAGS -Wnested-externs"
5471
5472		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5473$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5474		cacheid=xorg_cv_cc_flag__Wnested_externs
5475		if eval \${$cacheid+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480int i;
5481int
5482main ()
5483{
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489if ac_fn_c_try_link "$LINENO"; then :
5490  eval $cacheid=yes
5491else
5492  eval $cacheid=no
5493fi
5494rm -f core conftest.err conftest.$ac_objext \
5495    conftest$ac_exeext conftest.$ac_ext
5496fi
5497
5498
5499		CFLAGS="$xorg_testset_save_CFLAGS"
5500
5501		eval supported=\$$cacheid
5502		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5503$as_echo "$supported" >&6; }
5504		if test "$supported" = "yes" ; then
5505			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5506			found="yes"
5507		fi
5508	fi
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524xorg_testset_save_CFLAGS="$CFLAGS"
5525
5526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5529$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5530if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535int i;
5536_ACEOF
5537if ac_fn_c_try_compile "$LINENO"; then :
5538  xorg_cv_cc_flag_unknown_warning_option=yes
5539else
5540  xorg_cv_cc_flag_unknown_warning_option=no
5541fi
5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5545$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5546	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5547	CFLAGS="$xorg_testset_save_CFLAGS"
5548fi
5549
5550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5551	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5552		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553	fi
5554	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5556$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5557if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562int i;
5563_ACEOF
5564if ac_fn_c_try_compile "$LINENO"; then :
5565  xorg_cv_cc_flag_unused_command_line_argument=yes
5566else
5567  xorg_cv_cc_flag_unused_command_line_argument=no
5568fi
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570fi
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5572$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5573	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5574	CFLAGS="$xorg_testset_save_CFLAGS"
5575fi
5576
5577found="no"
5578
5579	if test $found = "no" ; then
5580		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5581			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582		fi
5583
5584		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5585			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586		fi
5587
5588		CFLAGS="$CFLAGS -Wbad-function-cast"
5589
5590		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5591$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5592		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5593		if eval \${$cacheid+:} false; then :
5594  $as_echo_n "(cached) " >&6
5595else
5596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h.  */
5598int i;
5599int
5600main ()
5601{
5602
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607if ac_fn_c_try_link "$LINENO"; then :
5608  eval $cacheid=yes
5609else
5610  eval $cacheid=no
5611fi
5612rm -f core conftest.err conftest.$ac_objext \
5613    conftest$ac_exeext conftest.$ac_ext
5614fi
5615
5616
5617		CFLAGS="$xorg_testset_save_CFLAGS"
5618
5619		eval supported=\$$cacheid
5620		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5621$as_echo "$supported" >&6; }
5622		if test "$supported" = "yes" ; then
5623			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5624			found="yes"
5625		fi
5626	fi
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642xorg_testset_save_CFLAGS="$CFLAGS"
5643
5644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5647$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5648if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"; then :
5656  xorg_cv_cc_flag_unknown_warning_option=yes
5657else
5658  xorg_cv_cc_flag_unknown_warning_option=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5663$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5665	CFLAGS="$xorg_testset_save_CFLAGS"
5666fi
5667
5668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671	fi
5672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5674$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5675if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5676  $as_echo_n "(cached) " >&6
5677else
5678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h.  */
5680int i;
5681_ACEOF
5682if ac_fn_c_try_compile "$LINENO"; then :
5683  xorg_cv_cc_flag_unused_command_line_argument=yes
5684else
5685  xorg_cv_cc_flag_unused_command_line_argument=no
5686fi
5687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688fi
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5690$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5691	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5692	CFLAGS="$xorg_testset_save_CFLAGS"
5693fi
5694
5695found="no"
5696
5697	if test $found = "no" ; then
5698		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5699			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700		fi
5701
5702		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5703			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5704		fi
5705
5706		CFLAGS="$CFLAGS -Wold-style-definition"
5707
5708		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5709$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5710		cacheid=xorg_cv_cc_flag__Wold_style_definition
5711		if eval \${$cacheid+:} false; then :
5712  $as_echo_n "(cached) " >&6
5713else
5714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715/* end confdefs.h.  */
5716int i;
5717int
5718main ()
5719{
5720
5721  ;
5722  return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_link "$LINENO"; then :
5726  eval $cacheid=yes
5727else
5728  eval $cacheid=no
5729fi
5730rm -f core conftest.err conftest.$ac_objext \
5731    conftest$ac_exeext conftest.$ac_ext
5732fi
5733
5734
5735		CFLAGS="$xorg_testset_save_CFLAGS"
5736
5737		eval supported=\$$cacheid
5738		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5739$as_echo "$supported" >&6; }
5740		if test "$supported" = "yes" ; then
5741			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5742			found="yes"
5743		fi
5744	fi
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760xorg_testset_save_CFLAGS="$CFLAGS"
5761
5762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5765$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5766if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771int i;
5772_ACEOF
5773if ac_fn_c_try_compile "$LINENO"; then :
5774  xorg_cv_cc_flag_unknown_warning_option=yes
5775else
5776  xorg_cv_cc_flag_unknown_warning_option=no
5777fi
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5781$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5782	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5783	CFLAGS="$xorg_testset_save_CFLAGS"
5784fi
5785
5786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5787	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5788		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789	fi
5790	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5792$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5793if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5794  $as_echo_n "(cached) " >&6
5795else
5796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797/* end confdefs.h.  */
5798int i;
5799_ACEOF
5800if ac_fn_c_try_compile "$LINENO"; then :
5801  xorg_cv_cc_flag_unused_command_line_argument=yes
5802else
5803  xorg_cv_cc_flag_unused_command_line_argument=no
5804fi
5805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5808$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5809	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5810	CFLAGS="$xorg_testset_save_CFLAGS"
5811fi
5812
5813found="no"
5814
5815	if test $found = "no" ; then
5816		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5817			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818		fi
5819
5820		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5821			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5822		fi
5823
5824		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5825
5826		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5827$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5828		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5829		if eval \${$cacheid+:} false; then :
5830  $as_echo_n "(cached) " >&6
5831else
5832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833/* end confdefs.h.  */
5834int i;
5835int
5836main ()
5837{
5838
5839  ;
5840  return 0;
5841}
5842_ACEOF
5843if ac_fn_c_try_link "$LINENO"; then :
5844  eval $cacheid=yes
5845else
5846  eval $cacheid=no
5847fi
5848rm -f core conftest.err conftest.$ac_objext \
5849    conftest$ac_exeext conftest.$ac_ext
5850fi
5851
5852
5853		CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855		eval supported=\$$cacheid
5856		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857$as_echo "$supported" >&6; }
5858		if test "$supported" = "yes" ; then
5859			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5860			found="yes"
5861		fi
5862	fi
5863
5864
5865
5866
5867
5868# This chunk adds additional warnings that could catch undesired effects.
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882xorg_testset_save_CFLAGS="$CFLAGS"
5883
5884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5889  $as_echo_n "(cached) " >&6
5890else
5891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h.  */
5893int i;
5894_ACEOF
5895if ac_fn_c_try_compile "$LINENO"; then :
5896  xorg_cv_cc_flag_unknown_warning_option=yes
5897else
5898  xorg_cv_cc_flag_unknown_warning_option=no
5899fi
5900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901fi
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905	CFLAGS="$xorg_testset_save_CFLAGS"
5906fi
5907
5908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911	fi
5912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920int i;
5921_ACEOF
5922if ac_fn_c_try_compile "$LINENO"; then :
5923  xorg_cv_cc_flag_unused_command_line_argument=yes
5924else
5925  xorg_cv_cc_flag_unused_command_line_argument=no
5926fi
5927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928fi
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5932	CFLAGS="$xorg_testset_save_CFLAGS"
5933fi
5934
5935found="no"
5936
5937	if test $found = "no" ; then
5938		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940		fi
5941
5942		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5944		fi
5945
5946		CFLAGS="$CFLAGS -Wunused"
5947
5948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5949$as_echo_n "checking if $CC supports-Wunused... " >&6; }
5950		cacheid=xorg_cv_cc_flag__Wunused
5951		if eval \${$cacheid+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955/* end confdefs.h.  */
5956int i;
5957int
5958main ()
5959{
5960
5961  ;
5962  return 0;
5963}
5964_ACEOF
5965if ac_fn_c_try_link "$LINENO"; then :
5966  eval $cacheid=yes
5967else
5968  eval $cacheid=no
5969fi
5970rm -f core conftest.err conftest.$ac_objext \
5971    conftest$ac_exeext conftest.$ac_ext
5972fi
5973
5974
5975		CFLAGS="$xorg_testset_save_CFLAGS"
5976
5977		eval supported=\$$cacheid
5978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5979$as_echo "$supported" >&6; }
5980		if test "$supported" = "yes" ; then
5981			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5982			found="yes"
5983		fi
5984	fi
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000xorg_testset_save_CFLAGS="$CFLAGS"
6001
6002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011int i;
6012_ACEOF
6013if ac_fn_c_try_compile "$LINENO"; then :
6014  xorg_cv_cc_flag_unknown_warning_option=yes
6015else
6016  xorg_cv_cc_flag_unknown_warning_option=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6023	CFLAGS="$xorg_testset_save_CFLAGS"
6024fi
6025
6026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029	fi
6030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037/* end confdefs.h.  */
6038int i;
6039_ACEOF
6040if ac_fn_c_try_compile "$LINENO"; then :
6041  xorg_cv_cc_flag_unused_command_line_argument=yes
6042else
6043  xorg_cv_cc_flag_unused_command_line_argument=no
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6050	CFLAGS="$xorg_testset_save_CFLAGS"
6051fi
6052
6053found="no"
6054
6055	if test $found = "no" ; then
6056		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058		fi
6059
6060		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6062		fi
6063
6064		CFLAGS="$CFLAGS -Wuninitialized"
6065
6066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6067$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6068		cacheid=xorg_cv_cc_flag__Wuninitialized
6069		if eval \${$cacheid+:} false; then :
6070  $as_echo_n "(cached) " >&6
6071else
6072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h.  */
6074int i;
6075int
6076main ()
6077{
6078
6079  ;
6080  return 0;
6081}
6082_ACEOF
6083if ac_fn_c_try_link "$LINENO"; then :
6084  eval $cacheid=yes
6085else
6086  eval $cacheid=no
6087fi
6088rm -f core conftest.err conftest.$ac_objext \
6089    conftest$ac_exeext conftest.$ac_ext
6090fi
6091
6092
6093		CFLAGS="$xorg_testset_save_CFLAGS"
6094
6095		eval supported=\$$cacheid
6096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6097$as_echo "$supported" >&6; }
6098		if test "$supported" = "yes" ; then
6099			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6100			found="yes"
6101		fi
6102	fi
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118xorg_testset_save_CFLAGS="$CFLAGS"
6119
6120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129int i;
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"; then :
6132  xorg_cv_cc_flag_unknown_warning_option=yes
6133else
6134  xorg_cv_cc_flag_unknown_warning_option=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137fi
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6141	CFLAGS="$xorg_testset_save_CFLAGS"
6142fi
6143
6144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6147	fi
6148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6152  $as_echo_n "(cached) " >&6
6153else
6154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155/* end confdefs.h.  */
6156int i;
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159  xorg_cv_cc_flag_unused_command_line_argument=yes
6160else
6161  xorg_cv_cc_flag_unused_command_line_argument=no
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6168	CFLAGS="$xorg_testset_save_CFLAGS"
6169fi
6170
6171found="no"
6172
6173	if test $found = "no" ; then
6174		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6176		fi
6177
6178		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6180		fi
6181
6182		CFLAGS="$CFLAGS -Wshadow"
6183
6184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6185$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6186		cacheid=xorg_cv_cc_flag__Wshadow
6187		if eval \${$cacheid+:} false; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191/* end confdefs.h.  */
6192int i;
6193int
6194main ()
6195{
6196
6197  ;
6198  return 0;
6199}
6200_ACEOF
6201if ac_fn_c_try_link "$LINENO"; then :
6202  eval $cacheid=yes
6203else
6204  eval $cacheid=no
6205fi
6206rm -f core conftest.err conftest.$ac_objext \
6207    conftest$ac_exeext conftest.$ac_ext
6208fi
6209
6210
6211		CFLAGS="$xorg_testset_save_CFLAGS"
6212
6213		eval supported=\$$cacheid
6214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6215$as_echo "$supported" >&6; }
6216		if test "$supported" = "yes" ; then
6217			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6218			found="yes"
6219		fi
6220	fi
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236xorg_testset_save_CFLAGS="$CFLAGS"
6237
6238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6239	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6241$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6242if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247int i;
6248_ACEOF
6249if ac_fn_c_try_compile "$LINENO"; then :
6250  xorg_cv_cc_flag_unknown_warning_option=yes
6251else
6252  xorg_cv_cc_flag_unknown_warning_option=no
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6257$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6258	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6259	CFLAGS="$xorg_testset_save_CFLAGS"
6260fi
6261
6262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6263	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6264		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6265	fi
6266	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6268$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6269if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6270  $as_echo_n "(cached) " >&6
6271else
6272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273/* end confdefs.h.  */
6274int i;
6275_ACEOF
6276if ac_fn_c_try_compile "$LINENO"; then :
6277  xorg_cv_cc_flag_unused_command_line_argument=yes
6278else
6279  xorg_cv_cc_flag_unused_command_line_argument=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282fi
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6284$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6285	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6286	CFLAGS="$xorg_testset_save_CFLAGS"
6287fi
6288
6289found="no"
6290
6291	if test $found = "no" ; then
6292		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6293			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6294		fi
6295
6296		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6297			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6298		fi
6299
6300		CFLAGS="$CFLAGS -Wcast-qual"
6301
6302		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6303$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6304		cacheid=xorg_cv_cc_flag__Wcast_qual
6305		if eval \${$cacheid+:} false; then :
6306  $as_echo_n "(cached) " >&6
6307else
6308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309/* end confdefs.h.  */
6310int i;
6311int
6312main ()
6313{
6314
6315  ;
6316  return 0;
6317}
6318_ACEOF
6319if ac_fn_c_try_link "$LINENO"; then :
6320  eval $cacheid=yes
6321else
6322  eval $cacheid=no
6323fi
6324rm -f core conftest.err conftest.$ac_objext \
6325    conftest$ac_exeext conftest.$ac_ext
6326fi
6327
6328
6329		CFLAGS="$xorg_testset_save_CFLAGS"
6330
6331		eval supported=\$$cacheid
6332		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6333$as_echo "$supported" >&6; }
6334		if test "$supported" = "yes" ; then
6335			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6336			found="yes"
6337		fi
6338	fi
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354xorg_testset_save_CFLAGS="$CFLAGS"
6355
6356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6357	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6359$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6360if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366_ACEOF
6367if ac_fn_c_try_compile "$LINENO"; then :
6368  xorg_cv_cc_flag_unknown_warning_option=yes
6369else
6370  xorg_cv_cc_flag_unknown_warning_option=no
6371fi
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6375$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6376	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6377	CFLAGS="$xorg_testset_save_CFLAGS"
6378fi
6379
6380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6381	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6382		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6383	fi
6384	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6386$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6387if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6388  $as_echo_n "(cached) " >&6
6389else
6390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h.  */
6392int i;
6393_ACEOF
6394if ac_fn_c_try_compile "$LINENO"; then :
6395  xorg_cv_cc_flag_unused_command_line_argument=yes
6396else
6397  xorg_cv_cc_flag_unused_command_line_argument=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6402$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6403	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6404	CFLAGS="$xorg_testset_save_CFLAGS"
6405fi
6406
6407found="no"
6408
6409	if test $found = "no" ; then
6410		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6412		fi
6413
6414		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6416		fi
6417
6418		CFLAGS="$CFLAGS -Wmissing-noreturn"
6419
6420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6421$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6422		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6423		if eval \${$cacheid+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h.  */
6428int i;
6429int
6430main ()
6431{
6432
6433  ;
6434  return 0;
6435}
6436_ACEOF
6437if ac_fn_c_try_link "$LINENO"; then :
6438  eval $cacheid=yes
6439else
6440  eval $cacheid=no
6441fi
6442rm -f core conftest.err conftest.$ac_objext \
6443    conftest$ac_exeext conftest.$ac_ext
6444fi
6445
6446
6447		CFLAGS="$xorg_testset_save_CFLAGS"
6448
6449		eval supported=\$$cacheid
6450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6451$as_echo "$supported" >&6; }
6452		if test "$supported" = "yes" ; then
6453			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6454			found="yes"
6455		fi
6456	fi
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472xorg_testset_save_CFLAGS="$CFLAGS"
6473
6474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484_ACEOF
6485if ac_fn_c_try_compile "$LINENO"; then :
6486  xorg_cv_cc_flag_unknown_warning_option=yes
6487else
6488  xorg_cv_cc_flag_unknown_warning_option=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6495	CFLAGS="$xorg_testset_save_CFLAGS"
6496fi
6497
6498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501	fi
6502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6506  $as_echo_n "(cached) " >&6
6507else
6508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h.  */
6510int i;
6511_ACEOF
6512if ac_fn_c_try_compile "$LINENO"; then :
6513  xorg_cv_cc_flag_unused_command_line_argument=yes
6514else
6515  xorg_cv_cc_flag_unused_command_line_argument=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518fi
6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6522	CFLAGS="$xorg_testset_save_CFLAGS"
6523fi
6524
6525found="no"
6526
6527	if test $found = "no" ; then
6528		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530		fi
6531
6532		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6534		fi
6535
6536		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6537
6538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6539$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6540		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6541		if eval \${$cacheid+:} false; then :
6542  $as_echo_n "(cached) " >&6
6543else
6544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545/* end confdefs.h.  */
6546int i;
6547int
6548main ()
6549{
6550
6551  ;
6552  return 0;
6553}
6554_ACEOF
6555if ac_fn_c_try_link "$LINENO"; then :
6556  eval $cacheid=yes
6557else
6558  eval $cacheid=no
6559fi
6560rm -f core conftest.err conftest.$ac_objext \
6561    conftest$ac_exeext conftest.$ac_ext
6562fi
6563
6564
6565		CFLAGS="$xorg_testset_save_CFLAGS"
6566
6567		eval supported=\$$cacheid
6568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6569$as_echo "$supported" >&6; }
6570		if test "$supported" = "yes" ; then
6571			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6572			found="yes"
6573		fi
6574	fi
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590xorg_testset_save_CFLAGS="$CFLAGS"
6591
6592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6595$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6596if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"; then :
6604  xorg_cv_cc_flag_unknown_warning_option=yes
6605else
6606  xorg_cv_cc_flag_unknown_warning_option=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6611$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6613	CFLAGS="$xorg_testset_save_CFLAGS"
6614fi
6615
6616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619	fi
6620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6622$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6623if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6624  $as_echo_n "(cached) " >&6
6625else
6626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h.  */
6628int i;
6629_ACEOF
6630if ac_fn_c_try_compile "$LINENO"; then :
6631  xorg_cv_cc_flag_unused_command_line_argument=yes
6632else
6633  xorg_cv_cc_flag_unused_command_line_argument=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640	CFLAGS="$xorg_testset_save_CFLAGS"
6641fi
6642
6643found="no"
6644
6645	if test $found = "no" ; then
6646		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648		fi
6649
6650		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652		fi
6653
6654		CFLAGS="$CFLAGS -Wredundant-decls"
6655
6656		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6657$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6658		cacheid=xorg_cv_cc_flag__Wredundant_decls
6659		if eval \${$cacheid+:} false; then :
6660  $as_echo_n "(cached) " >&6
6661else
6662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h.  */
6664int i;
6665int
6666main ()
6667{
6668
6669  ;
6670  return 0;
6671}
6672_ACEOF
6673if ac_fn_c_try_link "$LINENO"; then :
6674  eval $cacheid=yes
6675else
6676  eval $cacheid=no
6677fi
6678rm -f core conftest.err conftest.$ac_objext \
6679    conftest$ac_exeext conftest.$ac_ext
6680fi
6681
6682
6683		CFLAGS="$xorg_testset_save_CFLAGS"
6684
6685		eval supported=\$$cacheid
6686		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6687$as_echo "$supported" >&6; }
6688		if test "$supported" = "yes" ; then
6689			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6690			found="yes"
6691		fi
6692	fi
6693
6694
6695
6696# These are currently disabled because they are noisy.  They will be enabled
6697# in the future once the codebase is sufficiently modernized to silence
6698# them.  For now, I don't want them to drown out the other warnings.
6699# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6700# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6701# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6702
6703# Turn some warnings into errors, so we don't accidently get successful builds
6704# when there are problems that should be fixed.
6705
6706if test "x$SELECTIVE_WERROR" = "xyes" ; then
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720xorg_testset_save_CFLAGS="$CFLAGS"
6721
6722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6727  $as_echo_n "(cached) " >&6
6728else
6729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730/* end confdefs.h.  */
6731int i;
6732_ACEOF
6733if ac_fn_c_try_compile "$LINENO"; then :
6734  xorg_cv_cc_flag_unknown_warning_option=yes
6735else
6736  xorg_cv_cc_flag_unknown_warning_option=no
6737fi
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739fi
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6743	CFLAGS="$xorg_testset_save_CFLAGS"
6744fi
6745
6746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749	fi
6750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6753if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6762else
6763  xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770	CFLAGS="$xorg_testset_save_CFLAGS"
6771fi
6772
6773found="no"
6774
6775	if test $found = "no" ; then
6776		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778		fi
6779
6780		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782		fi
6783
6784		CFLAGS="$CFLAGS -Werror=implicit"
6785
6786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6787$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6788		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6789		if eval \${$cacheid+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794int i;
6795int
6796main ()
6797{
6798
6799  ;
6800  return 0;
6801}
6802_ACEOF
6803if ac_fn_c_try_link "$LINENO"; then :
6804  eval $cacheid=yes
6805else
6806  eval $cacheid=no
6807fi
6808rm -f core conftest.err conftest.$ac_objext \
6809    conftest$ac_exeext conftest.$ac_ext
6810fi
6811
6812
6813		CFLAGS="$xorg_testset_save_CFLAGS"
6814
6815		eval supported=\$$cacheid
6816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6817$as_echo "$supported" >&6; }
6818		if test "$supported" = "yes" ; then
6819			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6820			found="yes"
6821		fi
6822	fi
6823
6824	if test $found = "no" ; then
6825		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827		fi
6828
6829		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831		fi
6832
6833		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6834
6835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6836$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6837		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6838		if eval \${$cacheid+:} false; then :
6839  $as_echo_n "(cached) " >&6
6840else
6841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842/* end confdefs.h.  */
6843int i;
6844int
6845main ()
6846{
6847
6848  ;
6849  return 0;
6850}
6851_ACEOF
6852if ac_fn_c_try_link "$LINENO"; then :
6853  eval $cacheid=yes
6854else
6855  eval $cacheid=no
6856fi
6857rm -f core conftest.err conftest.$ac_objext \
6858    conftest$ac_exeext conftest.$ac_ext
6859fi
6860
6861
6862		CFLAGS="$xorg_testset_save_CFLAGS"
6863
6864		eval supported=\$$cacheid
6865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6866$as_echo "$supported" >&6; }
6867		if test "$supported" = "yes" ; then
6868			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6869			found="yes"
6870		fi
6871	fi
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887xorg_testset_save_CFLAGS="$CFLAGS"
6888
6889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6894  $as_echo_n "(cached) " >&6
6895else
6896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898int i;
6899_ACEOF
6900if ac_fn_c_try_compile "$LINENO"; then :
6901  xorg_cv_cc_flag_unknown_warning_option=yes
6902else
6903  xorg_cv_cc_flag_unknown_warning_option=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906fi
6907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6910	CFLAGS="$xorg_testset_save_CFLAGS"
6911fi
6912
6913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6916	fi
6917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926_ACEOF
6927if ac_fn_c_try_compile "$LINENO"; then :
6928  xorg_cv_cc_flag_unused_command_line_argument=yes
6929else
6930  xorg_cv_cc_flag_unused_command_line_argument=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6937	CFLAGS="$xorg_testset_save_CFLAGS"
6938fi
6939
6940found="no"
6941
6942	if test $found = "no" ; then
6943		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945		fi
6946
6947		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6949		fi
6950
6951		CFLAGS="$CFLAGS -Werror=nonnull"
6952
6953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6954$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6955		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6956		if eval \${$cacheid+:} false; then :
6957  $as_echo_n "(cached) " >&6
6958else
6959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h.  */
6961int i;
6962int
6963main ()
6964{
6965
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970if ac_fn_c_try_link "$LINENO"; then :
6971  eval $cacheid=yes
6972else
6973  eval $cacheid=no
6974fi
6975rm -f core conftest.err conftest.$ac_objext \
6976    conftest$ac_exeext conftest.$ac_ext
6977fi
6978
6979
6980		CFLAGS="$xorg_testset_save_CFLAGS"
6981
6982		eval supported=\$$cacheid
6983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6984$as_echo "$supported" >&6; }
6985		if test "$supported" = "yes" ; then
6986			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6987			found="yes"
6988		fi
6989	fi
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005xorg_testset_save_CFLAGS="$CFLAGS"
7006
7007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016int i;
7017_ACEOF
7018if ac_fn_c_try_compile "$LINENO"; then :
7019  xorg_cv_cc_flag_unknown_warning_option=yes
7020else
7021  xorg_cv_cc_flag_unknown_warning_option=no
7022fi
7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7028	CFLAGS="$xorg_testset_save_CFLAGS"
7029fi
7030
7031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7034	fi
7035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042/* end confdefs.h.  */
7043int i;
7044_ACEOF
7045if ac_fn_c_try_compile "$LINENO"; then :
7046  xorg_cv_cc_flag_unused_command_line_argument=yes
7047else
7048  xorg_cv_cc_flag_unused_command_line_argument=no
7049fi
7050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7055	CFLAGS="$xorg_testset_save_CFLAGS"
7056fi
7057
7058found="no"
7059
7060	if test $found = "no" ; then
7061		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063		fi
7064
7065		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7067		fi
7068
7069		CFLAGS="$CFLAGS -Werror=init-self"
7070
7071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7072$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7073		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7074		if eval \${$cacheid+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078/* end confdefs.h.  */
7079int i;
7080int
7081main ()
7082{
7083
7084  ;
7085  return 0;
7086}
7087_ACEOF
7088if ac_fn_c_try_link "$LINENO"; then :
7089  eval $cacheid=yes
7090else
7091  eval $cacheid=no
7092fi
7093rm -f core conftest.err conftest.$ac_objext \
7094    conftest$ac_exeext conftest.$ac_ext
7095fi
7096
7097
7098		CFLAGS="$xorg_testset_save_CFLAGS"
7099
7100		eval supported=\$$cacheid
7101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7102$as_echo "$supported" >&6; }
7103		if test "$supported" = "yes" ; then
7104			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7105			found="yes"
7106		fi
7107	fi
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123xorg_testset_save_CFLAGS="$CFLAGS"
7124
7125if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7126	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7128$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7129if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"; then :
7137  xorg_cv_cc_flag_unknown_warning_option=yes
7138else
7139  xorg_cv_cc_flag_unknown_warning_option=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7144$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152	fi
7153	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h.  */
7161int i;
7162_ACEOF
7163if ac_fn_c_try_compile "$LINENO"; then :
7164  xorg_cv_cc_flag_unused_command_line_argument=yes
7165else
7166  xorg_cv_cc_flag_unused_command_line_argument=no
7167fi
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169fi
7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7171$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7172	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7173	CFLAGS="$xorg_testset_save_CFLAGS"
7174fi
7175
7176found="no"
7177
7178	if test $found = "no" ; then
7179		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7180			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181		fi
7182
7183		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7184			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7185		fi
7186
7187		CFLAGS="$CFLAGS -Werror=main"
7188
7189		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7190$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7191		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7192		if eval \${$cacheid+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h.  */
7197int i;
7198int
7199main ()
7200{
7201
7202  ;
7203  return 0;
7204}
7205_ACEOF
7206if ac_fn_c_try_link "$LINENO"; then :
7207  eval $cacheid=yes
7208else
7209  eval $cacheid=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext \
7212    conftest$ac_exeext conftest.$ac_ext
7213fi
7214
7215
7216		CFLAGS="$xorg_testset_save_CFLAGS"
7217
7218		eval supported=\$$cacheid
7219		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7220$as_echo "$supported" >&6; }
7221		if test "$supported" = "yes" ; then
7222			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7223			found="yes"
7224		fi
7225	fi
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241xorg_testset_save_CFLAGS="$CFLAGS"
7242
7243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7244	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7246$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7247if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"; then :
7255  xorg_cv_cc_flag_unknown_warning_option=yes
7256else
7257  xorg_cv_cc_flag_unknown_warning_option=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7262$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7264	CFLAGS="$xorg_testset_save_CFLAGS"
7265fi
7266
7267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7270	fi
7271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7272	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7273$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7274if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7275  $as_echo_n "(cached) " >&6
7276else
7277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h.  */
7279int i;
7280_ACEOF
7281if ac_fn_c_try_compile "$LINENO"; then :
7282  xorg_cv_cc_flag_unused_command_line_argument=yes
7283else
7284  xorg_cv_cc_flag_unused_command_line_argument=no
7285fi
7286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7289$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7291	CFLAGS="$xorg_testset_save_CFLAGS"
7292fi
7293
7294found="no"
7295
7296	if test $found = "no" ; then
7297		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299		fi
7300
7301		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303		fi
7304
7305		CFLAGS="$CFLAGS -Werror=missing-braces"
7306
7307		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7308$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7309		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7310		if eval \${$cacheid+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h.  */
7315int i;
7316int
7317main ()
7318{
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"; then :
7325  eval $cacheid=yes
7326else
7327  eval $cacheid=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext \
7330    conftest$ac_exeext conftest.$ac_ext
7331fi
7332
7333
7334		CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336		eval supported=\$$cacheid
7337		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338$as_echo "$supported" >&6; }
7339		if test "$supported" = "yes" ; then
7340			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7341			found="yes"
7342		fi
7343	fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359xorg_testset_save_CFLAGS="$CFLAGS"
7360
7361if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7362	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7364$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7365if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370int i;
7371_ACEOF
7372if ac_fn_c_try_compile "$LINENO"; then :
7373  xorg_cv_cc_flag_unknown_warning_option=yes
7374else
7375  xorg_cv_cc_flag_unknown_warning_option=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7380$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7381	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7382	CFLAGS="$xorg_testset_save_CFLAGS"
7383fi
7384
7385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7386	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388	fi
7389	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7391$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7392if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396/* end confdefs.h.  */
7397int i;
7398_ACEOF
7399if ac_fn_c_try_compile "$LINENO"; then :
7400  xorg_cv_cc_flag_unused_command_line_argument=yes
7401else
7402  xorg_cv_cc_flag_unused_command_line_argument=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405fi
7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7407$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7408	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7409	CFLAGS="$xorg_testset_save_CFLAGS"
7410fi
7411
7412found="no"
7413
7414	if test $found = "no" ; then
7415		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7417		fi
7418
7419		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7421		fi
7422
7423		CFLAGS="$CFLAGS -Werror=sequence-point"
7424
7425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7426$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7427		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7428		if eval \${$cacheid+:} false; then :
7429  $as_echo_n "(cached) " >&6
7430else
7431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432/* end confdefs.h.  */
7433int i;
7434int
7435main ()
7436{
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442if ac_fn_c_try_link "$LINENO"; then :
7443  eval $cacheid=yes
7444else
7445  eval $cacheid=no
7446fi
7447rm -f core conftest.err conftest.$ac_objext \
7448    conftest$ac_exeext conftest.$ac_ext
7449fi
7450
7451
7452		CFLAGS="$xorg_testset_save_CFLAGS"
7453
7454		eval supported=\$$cacheid
7455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7456$as_echo "$supported" >&6; }
7457		if test "$supported" = "yes" ; then
7458			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7459			found="yes"
7460		fi
7461	fi
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477xorg_testset_save_CFLAGS="$CFLAGS"
7478
7479if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7480	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7482$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7483if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489_ACEOF
7490if ac_fn_c_try_compile "$LINENO"; then :
7491  xorg_cv_cc_flag_unknown_warning_option=yes
7492else
7493  xorg_cv_cc_flag_unknown_warning_option=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7498$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7499	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7500	CFLAGS="$xorg_testset_save_CFLAGS"
7501fi
7502
7503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7504	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7505		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7506	fi
7507	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7509$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7510if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7511  $as_echo_n "(cached) " >&6
7512else
7513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515int i;
7516_ACEOF
7517if ac_fn_c_try_compile "$LINENO"; then :
7518  xorg_cv_cc_flag_unused_command_line_argument=yes
7519else
7520  xorg_cv_cc_flag_unused_command_line_argument=no
7521fi
7522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523fi
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7525$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7526	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7527	CFLAGS="$xorg_testset_save_CFLAGS"
7528fi
7529
7530found="no"
7531
7532	if test $found = "no" ; then
7533		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7534			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7535		fi
7536
7537		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7538			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7539		fi
7540
7541		CFLAGS="$CFLAGS -Werror=return-type"
7542
7543		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7544$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7545		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7546		if eval \${$cacheid+:} false; then :
7547  $as_echo_n "(cached) " >&6
7548else
7549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550/* end confdefs.h.  */
7551int i;
7552int
7553main ()
7554{
7555
7556  ;
7557  return 0;
7558}
7559_ACEOF
7560if ac_fn_c_try_link "$LINENO"; then :
7561  eval $cacheid=yes
7562else
7563  eval $cacheid=no
7564fi
7565rm -f core conftest.err conftest.$ac_objext \
7566    conftest$ac_exeext conftest.$ac_ext
7567fi
7568
7569
7570		CFLAGS="$xorg_testset_save_CFLAGS"
7571
7572		eval supported=\$$cacheid
7573		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7574$as_echo "$supported" >&6; }
7575		if test "$supported" = "yes" ; then
7576			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7577			found="yes"
7578		fi
7579	fi
7580
7581	if test $found = "no" ; then
7582		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584		fi
7585
7586		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588		fi
7589
7590		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7591
7592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7593$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7594		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7595		if eval \${$cacheid+:} false; then :
7596  $as_echo_n "(cached) " >&6
7597else
7598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h.  */
7600int i;
7601int
7602main ()
7603{
7604
7605  ;
7606  return 0;
7607}
7608_ACEOF
7609if ac_fn_c_try_link "$LINENO"; then :
7610  eval $cacheid=yes
7611else
7612  eval $cacheid=no
7613fi
7614rm -f core conftest.err conftest.$ac_objext \
7615    conftest$ac_exeext conftest.$ac_ext
7616fi
7617
7618
7619		CFLAGS="$xorg_testset_save_CFLAGS"
7620
7621		eval supported=\$$cacheid
7622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7623$as_echo "$supported" >&6; }
7624		if test "$supported" = "yes" ; then
7625			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7626			found="yes"
7627		fi
7628	fi
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644xorg_testset_save_CFLAGS="$CFLAGS"
7645
7646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7651  $as_echo_n "(cached) " >&6
7652else
7653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655int i;
7656_ACEOF
7657if ac_fn_c_try_compile "$LINENO"; then :
7658  xorg_cv_cc_flag_unknown_warning_option=yes
7659else
7660  xorg_cv_cc_flag_unknown_warning_option=no
7661fi
7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663fi
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7667	CFLAGS="$xorg_testset_save_CFLAGS"
7668fi
7669
7670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7673	fi
7674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7678  $as_echo_n "(cached) " >&6
7679else
7680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h.  */
7682int i;
7683_ACEOF
7684if ac_fn_c_try_compile "$LINENO"; then :
7685  xorg_cv_cc_flag_unused_command_line_argument=yes
7686else
7687  xorg_cv_cc_flag_unused_command_line_argument=no
7688fi
7689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7694	CFLAGS="$xorg_testset_save_CFLAGS"
7695fi
7696
7697found="no"
7698
7699	if test $found = "no" ; then
7700		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702		fi
7703
7704		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706		fi
7707
7708		CFLAGS="$CFLAGS -Werror=trigraphs"
7709
7710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7711$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7712		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7713		if eval \${$cacheid+:} false; then :
7714  $as_echo_n "(cached) " >&6
7715else
7716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717/* end confdefs.h.  */
7718int i;
7719int
7720main ()
7721{
7722
7723  ;
7724  return 0;
7725}
7726_ACEOF
7727if ac_fn_c_try_link "$LINENO"; then :
7728  eval $cacheid=yes
7729else
7730  eval $cacheid=no
7731fi
7732rm -f core conftest.err conftest.$ac_objext \
7733    conftest$ac_exeext conftest.$ac_ext
7734fi
7735
7736
7737		CFLAGS="$xorg_testset_save_CFLAGS"
7738
7739		eval supported=\$$cacheid
7740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7741$as_echo "$supported" >&6; }
7742		if test "$supported" = "yes" ; then
7743			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7744			found="yes"
7745		fi
7746	fi
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762xorg_testset_save_CFLAGS="$CFLAGS"
7763
7764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7765	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7769  $as_echo_n "(cached) " >&6
7770else
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773int i;
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"; then :
7776  xorg_cv_cc_flag_unknown_warning_option=yes
7777else
7778  xorg_cv_cc_flag_unknown_warning_option=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7785	CFLAGS="$xorg_testset_save_CFLAGS"
7786fi
7787
7788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7791	fi
7792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7793	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799/* end confdefs.h.  */
7800int i;
7801_ACEOF
7802if ac_fn_c_try_compile "$LINENO"; then :
7803  xorg_cv_cc_flag_unused_command_line_argument=yes
7804else
7805  xorg_cv_cc_flag_unused_command_line_argument=no
7806fi
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7811	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7812	CFLAGS="$xorg_testset_save_CFLAGS"
7813fi
7814
7815found="no"
7816
7817	if test $found = "no" ; then
7818		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7819			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7820		fi
7821
7822		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7823			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7824		fi
7825
7826		CFLAGS="$CFLAGS -Werror=array-bounds"
7827
7828		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7829$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7830		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7831		if eval \${$cacheid+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835/* end confdefs.h.  */
7836int i;
7837int
7838main ()
7839{
7840
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845if ac_fn_c_try_link "$LINENO"; then :
7846  eval $cacheid=yes
7847else
7848  eval $cacheid=no
7849fi
7850rm -f core conftest.err conftest.$ac_objext \
7851    conftest$ac_exeext conftest.$ac_ext
7852fi
7853
7854
7855		CFLAGS="$xorg_testset_save_CFLAGS"
7856
7857		eval supported=\$$cacheid
7858		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7859$as_echo "$supported" >&6; }
7860		if test "$supported" = "yes" ; then
7861			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7862			found="yes"
7863		fi
7864	fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880xorg_testset_save_CFLAGS="$CFLAGS"
7881
7882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7883	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892_ACEOF
7893if ac_fn_c_try_compile "$LINENO"; then :
7894  xorg_cv_cc_flag_unknown_warning_option=yes
7895else
7896  xorg_cv_cc_flag_unknown_warning_option=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7902	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7903	CFLAGS="$xorg_testset_save_CFLAGS"
7904fi
7905
7906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7907	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7908		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7909	fi
7910	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7911	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7914  $as_echo_n "(cached) " >&6
7915else
7916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917/* end confdefs.h.  */
7918int i;
7919_ACEOF
7920if ac_fn_c_try_compile "$LINENO"; then :
7921  xorg_cv_cc_flag_unused_command_line_argument=yes
7922else
7923  xorg_cv_cc_flag_unused_command_line_argument=no
7924fi
7925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926fi
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7930	CFLAGS="$xorg_testset_save_CFLAGS"
7931fi
7932
7933found="no"
7934
7935	if test $found = "no" ; then
7936		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7938		fi
7939
7940		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7942		fi
7943
7944		CFLAGS="$CFLAGS -Werror=write-strings"
7945
7946		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7947$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7948		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7949		if eval \${$cacheid+:} false; then :
7950  $as_echo_n "(cached) " >&6
7951else
7952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953/* end confdefs.h.  */
7954int i;
7955int
7956main ()
7957{
7958
7959  ;
7960  return 0;
7961}
7962_ACEOF
7963if ac_fn_c_try_link "$LINENO"; then :
7964  eval $cacheid=yes
7965else
7966  eval $cacheid=no
7967fi
7968rm -f core conftest.err conftest.$ac_objext \
7969    conftest$ac_exeext conftest.$ac_ext
7970fi
7971
7972
7973		CFLAGS="$xorg_testset_save_CFLAGS"
7974
7975		eval supported=\$$cacheid
7976		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7977$as_echo "$supported" >&6; }
7978		if test "$supported" = "yes" ; then
7979			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7980			found="yes"
7981		fi
7982	fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998xorg_testset_save_CFLAGS="$CFLAGS"
7999
8000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8003$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8004if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009int i;
8010_ACEOF
8011if ac_fn_c_try_compile "$LINENO"; then :
8012  xorg_cv_cc_flag_unknown_warning_option=yes
8013else
8014  xorg_cv_cc_flag_unknown_warning_option=no
8015fi
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8019$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8020	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8021	CFLAGS="$xorg_testset_save_CFLAGS"
8022fi
8023
8024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8025	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8026		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8027	fi
8028	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8029	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8030$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8031if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035/* end confdefs.h.  */
8036int i;
8037_ACEOF
8038if ac_fn_c_try_compile "$LINENO"; then :
8039  xorg_cv_cc_flag_unused_command_line_argument=yes
8040else
8041  xorg_cv_cc_flag_unused_command_line_argument=no
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044fi
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8046$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8047	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8048	CFLAGS="$xorg_testset_save_CFLAGS"
8049fi
8050
8051found="no"
8052
8053	if test $found = "no" ; then
8054		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8055			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8056		fi
8057
8058		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8059			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8060		fi
8061
8062		CFLAGS="$CFLAGS -Werror=address"
8063
8064		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8065$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8066		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8067		if eval \${$cacheid+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072int i;
8073int
8074main ()
8075{
8076
8077  ;
8078  return 0;
8079}
8080_ACEOF
8081if ac_fn_c_try_link "$LINENO"; then :
8082  eval $cacheid=yes
8083else
8084  eval $cacheid=no
8085fi
8086rm -f core conftest.err conftest.$ac_objext \
8087    conftest$ac_exeext conftest.$ac_ext
8088fi
8089
8090
8091		CFLAGS="$xorg_testset_save_CFLAGS"
8092
8093		eval supported=\$$cacheid
8094		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8095$as_echo "$supported" >&6; }
8096		if test "$supported" = "yes" ; then
8097			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8098			found="yes"
8099		fi
8100	fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116xorg_testset_save_CFLAGS="$CFLAGS"
8117
8118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8119	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128_ACEOF
8129if ac_fn_c_try_compile "$LINENO"; then :
8130  xorg_cv_cc_flag_unknown_warning_option=yes
8131else
8132  xorg_cv_cc_flag_unknown_warning_option=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8138	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8139	CFLAGS="$xorg_testset_save_CFLAGS"
8140fi
8141
8142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8143	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8144		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8145	fi
8146	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8150  $as_echo_n "(cached) " >&6
8151else
8152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153/* end confdefs.h.  */
8154int i;
8155_ACEOF
8156if ac_fn_c_try_compile "$LINENO"; then :
8157  xorg_cv_cc_flag_unused_command_line_argument=yes
8158else
8159  xorg_cv_cc_flag_unused_command_line_argument=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8165	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8166	CFLAGS="$xorg_testset_save_CFLAGS"
8167fi
8168
8169found="no"
8170
8171	if test $found = "no" ; then
8172		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8173			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8174		fi
8175
8176		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8177			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8178		fi
8179
8180		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8181
8182		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8183$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8184		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8185		if eval \${$cacheid+:} false; then :
8186  $as_echo_n "(cached) " >&6
8187else
8188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189/* end confdefs.h.  */
8190int i;
8191int
8192main ()
8193{
8194
8195  ;
8196  return 0;
8197}
8198_ACEOF
8199if ac_fn_c_try_link "$LINENO"; then :
8200  eval $cacheid=yes
8201else
8202  eval $cacheid=no
8203fi
8204rm -f core conftest.err conftest.$ac_objext \
8205    conftest$ac_exeext conftest.$ac_ext
8206fi
8207
8208
8209		CFLAGS="$xorg_testset_save_CFLAGS"
8210
8211		eval supported=\$$cacheid
8212		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8213$as_echo "$supported" >&6; }
8214		if test "$supported" = "yes" ; then
8215			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8216			found="yes"
8217		fi
8218	fi
8219
8220	if test $found = "no" ; then
8221		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223		fi
8224
8225		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227		fi
8228
8229		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8230
8231		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8232$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8233		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8234		if eval \${$cacheid+:} false; then :
8235  $as_echo_n "(cached) " >&6
8236else
8237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240int
8241main ()
8242{
8243
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248if ac_fn_c_try_link "$LINENO"; then :
8249  eval $cacheid=yes
8250else
8251  eval $cacheid=no
8252fi
8253rm -f core conftest.err conftest.$ac_objext \
8254    conftest$ac_exeext conftest.$ac_ext
8255fi
8256
8257
8258		CFLAGS="$xorg_testset_save_CFLAGS"
8259
8260		eval supported=\$$cacheid
8261		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8262$as_echo "$supported" >&6; }
8263		if test "$supported" = "yes" ; then
8264			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8265			found="yes"
8266		fi
8267	fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283xorg_testset_save_CFLAGS="$CFLAGS"
8284
8285if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8286	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8288$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8289if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8290  $as_echo_n "(cached) " >&6
8291else
8292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h.  */
8294int i;
8295_ACEOF
8296if ac_fn_c_try_compile "$LINENO"; then :
8297  xorg_cv_cc_flag_unknown_warning_option=yes
8298else
8299  xorg_cv_cc_flag_unknown_warning_option=no
8300fi
8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302fi
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8304$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8305	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8306	CFLAGS="$xorg_testset_save_CFLAGS"
8307fi
8308
8309if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8310	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8311		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8312	fi
8313	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8315$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8316if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321int i;
8322_ACEOF
8323if ac_fn_c_try_compile "$LINENO"; then :
8324  xorg_cv_cc_flag_unused_command_line_argument=yes
8325else
8326  xorg_cv_cc_flag_unused_command_line_argument=no
8327fi
8328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8331$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8332	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8333	CFLAGS="$xorg_testset_save_CFLAGS"
8334fi
8335
8336found="no"
8337
8338	if test $found = "no" ; then
8339		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8340			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8341		fi
8342
8343		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8344			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8345		fi
8346
8347		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8348
8349		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8350$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8351		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8352		if eval \${$cacheid+:} false; then :
8353  $as_echo_n "(cached) " >&6
8354else
8355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h.  */
8357int i;
8358int
8359main ()
8360{
8361
8362  ;
8363  return 0;
8364}
8365_ACEOF
8366if ac_fn_c_try_link "$LINENO"; then :
8367  eval $cacheid=yes
8368else
8369  eval $cacheid=no
8370fi
8371rm -f core conftest.err conftest.$ac_objext \
8372    conftest$ac_exeext conftest.$ac_ext
8373fi
8374
8375
8376		CFLAGS="$xorg_testset_save_CFLAGS"
8377
8378		eval supported=\$$cacheid
8379		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8380$as_echo "$supported" >&6; }
8381		if test "$supported" = "yes" ; then
8382			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8383			found="yes"
8384		fi
8385	fi
8386
8387 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8388else
8389{ $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
8390$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;}
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404xorg_testset_save_CFLAGS="$CFLAGS"
8405
8406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416_ACEOF
8417if ac_fn_c_try_compile "$LINENO"; then :
8418  xorg_cv_cc_flag_unknown_warning_option=yes
8419else
8420  xorg_cv_cc_flag_unknown_warning_option=no
8421fi
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423fi
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8427	CFLAGS="$xorg_testset_save_CFLAGS"
8428fi
8429
8430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8433	fi
8434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8438  $as_echo_n "(cached) " >&6
8439else
8440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441/* end confdefs.h.  */
8442int i;
8443_ACEOF
8444if ac_fn_c_try_compile "$LINENO"; then :
8445  xorg_cv_cc_flag_unused_command_line_argument=yes
8446else
8447  xorg_cv_cc_flag_unused_command_line_argument=no
8448fi
8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450fi
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8454	CFLAGS="$xorg_testset_save_CFLAGS"
8455fi
8456
8457found="no"
8458
8459	if test $found = "no" ; then
8460		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8462		fi
8463
8464		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466		fi
8467
8468		CFLAGS="$CFLAGS -Wimplicit"
8469
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8471$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8472		cacheid=xorg_cv_cc_flag__Wimplicit
8473		if eval \${$cacheid+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479int
8480main ()
8481{
8482
8483  ;
8484  return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_link "$LINENO"; then :
8488  eval $cacheid=yes
8489else
8490  eval $cacheid=no
8491fi
8492rm -f core conftest.err conftest.$ac_objext \
8493    conftest$ac_exeext conftest.$ac_ext
8494fi
8495
8496
8497		CFLAGS="$xorg_testset_save_CFLAGS"
8498
8499		eval supported=\$$cacheid
8500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8501$as_echo "$supported" >&6; }
8502		if test "$supported" = "yes" ; then
8503			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8504			found="yes"
8505		fi
8506	fi
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522xorg_testset_save_CFLAGS="$CFLAGS"
8523
8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"; then :
8536  xorg_cv_cc_flag_unknown_warning_option=yes
8537else
8538  xorg_cv_cc_flag_unknown_warning_option=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8545	CFLAGS="$xorg_testset_save_CFLAGS"
8546fi
8547
8548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8551	fi
8552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8556  $as_echo_n "(cached) " >&6
8557else
8558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"; then :
8563  xorg_cv_cc_flag_unused_command_line_argument=yes
8564else
8565  xorg_cv_cc_flag_unused_command_line_argument=no
8566fi
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568fi
8569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572	CFLAGS="$xorg_testset_save_CFLAGS"
8573fi
8574
8575found="no"
8576
8577	if test $found = "no" ; then
8578		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580		fi
8581
8582		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584		fi
8585
8586		CFLAGS="$CFLAGS -Wnonnull"
8587
8588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8589$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8590		cacheid=xorg_cv_cc_flag__Wnonnull
8591		if eval \${$cacheid+:} false; then :
8592  $as_echo_n "(cached) " >&6
8593else
8594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595/* end confdefs.h.  */
8596int i;
8597int
8598main ()
8599{
8600
8601  ;
8602  return 0;
8603}
8604_ACEOF
8605if ac_fn_c_try_link "$LINENO"; then :
8606  eval $cacheid=yes
8607else
8608  eval $cacheid=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext \
8611    conftest$ac_exeext conftest.$ac_ext
8612fi
8613
8614
8615		CFLAGS="$xorg_testset_save_CFLAGS"
8616
8617		eval supported=\$$cacheid
8618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8619$as_echo "$supported" >&6; }
8620		if test "$supported" = "yes" ; then
8621			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8622			found="yes"
8623		fi
8624	fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640xorg_testset_save_CFLAGS="$CFLAGS"
8641
8642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652_ACEOF
8653if ac_fn_c_try_compile "$LINENO"; then :
8654  xorg_cv_cc_flag_unknown_warning_option=yes
8655else
8656  xorg_cv_cc_flag_unknown_warning_option=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8663	CFLAGS="$xorg_testset_save_CFLAGS"
8664fi
8665
8666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8669	fi
8670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8674  $as_echo_n "(cached) " >&6
8675else
8676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h.  */
8678int i;
8679_ACEOF
8680if ac_fn_c_try_compile "$LINENO"; then :
8681  xorg_cv_cc_flag_unused_command_line_argument=yes
8682else
8683  xorg_cv_cc_flag_unused_command_line_argument=no
8684fi
8685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686fi
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8690	CFLAGS="$xorg_testset_save_CFLAGS"
8691fi
8692
8693found="no"
8694
8695	if test $found = "no" ; then
8696		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8698		fi
8699
8700		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8702		fi
8703
8704		CFLAGS="$CFLAGS -Winit-self"
8705
8706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8707$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8708		cacheid=xorg_cv_cc_flag__Winit_self
8709		if eval \${$cacheid+:} false; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h.  */
8714int i;
8715int
8716main ()
8717{
8718
8719  ;
8720  return 0;
8721}
8722_ACEOF
8723if ac_fn_c_try_link "$LINENO"; then :
8724  eval $cacheid=yes
8725else
8726  eval $cacheid=no
8727fi
8728rm -f core conftest.err conftest.$ac_objext \
8729    conftest$ac_exeext conftest.$ac_ext
8730fi
8731
8732
8733		CFLAGS="$xorg_testset_save_CFLAGS"
8734
8735		eval supported=\$$cacheid
8736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8737$as_echo "$supported" >&6; }
8738		if test "$supported" = "yes" ; then
8739			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8740			found="yes"
8741		fi
8742	fi
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758xorg_testset_save_CFLAGS="$CFLAGS"
8759
8760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770_ACEOF
8771if ac_fn_c_try_compile "$LINENO"; then :
8772  xorg_cv_cc_flag_unknown_warning_option=yes
8773else
8774  xorg_cv_cc_flag_unknown_warning_option=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781	CFLAGS="$xorg_testset_save_CFLAGS"
8782fi
8783
8784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787	fi
8788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8792  $as_echo_n "(cached) " >&6
8793else
8794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795/* end confdefs.h.  */
8796int i;
8797_ACEOF
8798if ac_fn_c_try_compile "$LINENO"; then :
8799  xorg_cv_cc_flag_unused_command_line_argument=yes
8800else
8801  xorg_cv_cc_flag_unused_command_line_argument=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804fi
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8808	CFLAGS="$xorg_testset_save_CFLAGS"
8809fi
8810
8811found="no"
8812
8813	if test $found = "no" ; then
8814		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816		fi
8817
8818		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8820		fi
8821
8822		CFLAGS="$CFLAGS -Wmain"
8823
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8825$as_echo_n "checking if $CC supports-Wmain... " >&6; }
8826		cacheid=xorg_cv_cc_flag__Wmain
8827		if eval \${$cacheid+:} false; then :
8828  $as_echo_n "(cached) " >&6
8829else
8830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831/* end confdefs.h.  */
8832int i;
8833int
8834main ()
8835{
8836
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841if ac_fn_c_try_link "$LINENO"; then :
8842  eval $cacheid=yes
8843else
8844  eval $cacheid=no
8845fi
8846rm -f core conftest.err conftest.$ac_objext \
8847    conftest$ac_exeext conftest.$ac_ext
8848fi
8849
8850
8851		CFLAGS="$xorg_testset_save_CFLAGS"
8852
8853		eval supported=\$$cacheid
8854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8855$as_echo "$supported" >&6; }
8856		if test "$supported" = "yes" ; then
8857			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8858			found="yes"
8859		fi
8860	fi
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876xorg_testset_save_CFLAGS="$CFLAGS"
8877
8878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h.  */
8887int i;
8888_ACEOF
8889if ac_fn_c_try_compile "$LINENO"; then :
8890  xorg_cv_cc_flag_unknown_warning_option=yes
8891else
8892  xorg_cv_cc_flag_unknown_warning_option=no
8893fi
8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8899	CFLAGS="$xorg_testset_save_CFLAGS"
8900fi
8901
8902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905	fi
8906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"; then :
8917  xorg_cv_cc_flag_unused_command_line_argument=yes
8918else
8919  xorg_cv_cc_flag_unused_command_line_argument=no
8920fi
8921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8922fi
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8926	CFLAGS="$xorg_testset_save_CFLAGS"
8927fi
8928
8929found="no"
8930
8931	if test $found = "no" ; then
8932		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8934		fi
8935
8936		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8938		fi
8939
8940		CFLAGS="$CFLAGS -Wmissing-braces"
8941
8942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8943$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8944		cacheid=xorg_cv_cc_flag__Wmissing_braces
8945		if eval \${$cacheid+:} false; then :
8946  $as_echo_n "(cached) " >&6
8947else
8948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950int i;
8951int
8952main ()
8953{
8954
8955  ;
8956  return 0;
8957}
8958_ACEOF
8959if ac_fn_c_try_link "$LINENO"; then :
8960  eval $cacheid=yes
8961else
8962  eval $cacheid=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965    conftest$ac_exeext conftest.$ac_ext
8966fi
8967
8968
8969		CFLAGS="$xorg_testset_save_CFLAGS"
8970
8971		eval supported=\$$cacheid
8972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8973$as_echo "$supported" >&6; }
8974		if test "$supported" = "yes" ; then
8975			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8976			found="yes"
8977		fi
8978	fi
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994xorg_testset_save_CFLAGS="$CFLAGS"
8995
8996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"; then :
9008  xorg_cv_cc_flag_unknown_warning_option=yes
9009else
9010  xorg_cv_cc_flag_unknown_warning_option=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023	fi
9024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9028  $as_echo_n "(cached) " >&6
9029else
9030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032int i;
9033_ACEOF
9034if ac_fn_c_try_compile "$LINENO"; then :
9035  xorg_cv_cc_flag_unused_command_line_argument=yes
9036else
9037  xorg_cv_cc_flag_unused_command_line_argument=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9044	CFLAGS="$xorg_testset_save_CFLAGS"
9045fi
9046
9047found="no"
9048
9049	if test $found = "no" ; then
9050		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9052		fi
9053
9054		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9056		fi
9057
9058		CFLAGS="$CFLAGS -Wsequence-point"
9059
9060		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9061$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9062		cacheid=xorg_cv_cc_flag__Wsequence_point
9063		if eval \${$cacheid+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067/* end confdefs.h.  */
9068int i;
9069int
9070main ()
9071{
9072
9073  ;
9074  return 0;
9075}
9076_ACEOF
9077if ac_fn_c_try_link "$LINENO"; then :
9078  eval $cacheid=yes
9079else
9080  eval $cacheid=no
9081fi
9082rm -f core conftest.err conftest.$ac_objext \
9083    conftest$ac_exeext conftest.$ac_ext
9084fi
9085
9086
9087		CFLAGS="$xorg_testset_save_CFLAGS"
9088
9089		eval supported=\$$cacheid
9090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9091$as_echo "$supported" >&6; }
9092		if test "$supported" = "yes" ; then
9093			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9094			found="yes"
9095		fi
9096	fi
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112xorg_testset_save_CFLAGS="$CFLAGS"
9113
9114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"; then :
9126  xorg_cv_cc_flag_unknown_warning_option=yes
9127else
9128  xorg_cv_cc_flag_unknown_warning_option=no
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9135	CFLAGS="$xorg_testset_save_CFLAGS"
9136fi
9137
9138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141	fi
9142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9146  $as_echo_n "(cached) " >&6
9147else
9148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h.  */
9150int i;
9151_ACEOF
9152if ac_fn_c_try_compile "$LINENO"; then :
9153  xorg_cv_cc_flag_unused_command_line_argument=yes
9154else
9155  xorg_cv_cc_flag_unused_command_line_argument=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9162	CFLAGS="$xorg_testset_save_CFLAGS"
9163fi
9164
9165found="no"
9166
9167	if test $found = "no" ; then
9168		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9170		fi
9171
9172		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9174		fi
9175
9176		CFLAGS="$CFLAGS -Wreturn-type"
9177
9178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9179$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9180		cacheid=xorg_cv_cc_flag__Wreturn_type
9181		if eval \${$cacheid+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h.  */
9186int i;
9187int
9188main ()
9189{
9190
9191  ;
9192  return 0;
9193}
9194_ACEOF
9195if ac_fn_c_try_link "$LINENO"; then :
9196  eval $cacheid=yes
9197else
9198  eval $cacheid=no
9199fi
9200rm -f core conftest.err conftest.$ac_objext \
9201    conftest$ac_exeext conftest.$ac_ext
9202fi
9203
9204
9205		CFLAGS="$xorg_testset_save_CFLAGS"
9206
9207		eval supported=\$$cacheid
9208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9209$as_echo "$supported" >&6; }
9210		if test "$supported" = "yes" ; then
9211			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9212			found="yes"
9213		fi
9214	fi
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230xorg_testset_save_CFLAGS="$CFLAGS"
9231
9232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"; then :
9244  xorg_cv_cc_flag_unknown_warning_option=yes
9245else
9246  xorg_cv_cc_flag_unknown_warning_option=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259	fi
9260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9264  $as_echo_n "(cached) " >&6
9265else
9266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h.  */
9268int i;
9269_ACEOF
9270if ac_fn_c_try_compile "$LINENO"; then :
9271  xorg_cv_cc_flag_unused_command_line_argument=yes
9272else
9273  xorg_cv_cc_flag_unused_command_line_argument=no
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276fi
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9280	CFLAGS="$xorg_testset_save_CFLAGS"
9281fi
9282
9283found="no"
9284
9285	if test $found = "no" ; then
9286		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9288		fi
9289
9290		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9292		fi
9293
9294		CFLAGS="$CFLAGS -Wtrigraphs"
9295
9296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9297$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9298		cacheid=xorg_cv_cc_flag__Wtrigraphs
9299		if eval \${$cacheid+:} false; then :
9300  $as_echo_n "(cached) " >&6
9301else
9302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305int
9306main ()
9307{
9308
9309  ;
9310  return 0;
9311}
9312_ACEOF
9313if ac_fn_c_try_link "$LINENO"; then :
9314  eval $cacheid=yes
9315else
9316  eval $cacheid=no
9317fi
9318rm -f core conftest.err conftest.$ac_objext \
9319    conftest$ac_exeext conftest.$ac_ext
9320fi
9321
9322
9323		CFLAGS="$xorg_testset_save_CFLAGS"
9324
9325		eval supported=\$$cacheid
9326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9327$as_echo "$supported" >&6; }
9328		if test "$supported" = "yes" ; then
9329			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9330			found="yes"
9331		fi
9332	fi
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348xorg_testset_save_CFLAGS="$CFLAGS"
9349
9350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360_ACEOF
9361if ac_fn_c_try_compile "$LINENO"; then :
9362  xorg_cv_cc_flag_unknown_warning_option=yes
9363else
9364  xorg_cv_cc_flag_unknown_warning_option=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9371	CFLAGS="$xorg_testset_save_CFLAGS"
9372fi
9373
9374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9377	fi
9378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9382  $as_echo_n "(cached) " >&6
9383else
9384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385/* end confdefs.h.  */
9386int i;
9387_ACEOF
9388if ac_fn_c_try_compile "$LINENO"; then :
9389  xorg_cv_cc_flag_unused_command_line_argument=yes
9390else
9391  xorg_cv_cc_flag_unused_command_line_argument=no
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394fi
9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9398	CFLAGS="$xorg_testset_save_CFLAGS"
9399fi
9400
9401found="no"
9402
9403	if test $found = "no" ; then
9404		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406		fi
9407
9408		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9410		fi
9411
9412		CFLAGS="$CFLAGS -Warray-bounds"
9413
9414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9415$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9416		cacheid=xorg_cv_cc_flag__Warray_bounds
9417		if eval \${$cacheid+:} false; then :
9418  $as_echo_n "(cached) " >&6
9419else
9420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421/* end confdefs.h.  */
9422int i;
9423int
9424main ()
9425{
9426
9427  ;
9428  return 0;
9429}
9430_ACEOF
9431if ac_fn_c_try_link "$LINENO"; then :
9432  eval $cacheid=yes
9433else
9434  eval $cacheid=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext \
9437    conftest$ac_exeext conftest.$ac_ext
9438fi
9439
9440
9441		CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443		eval supported=\$$cacheid
9444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445$as_echo "$supported" >&6; }
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unknown_warning_option=yes
9481else
9482  xorg_cv_cc_flag_unknown_warning_option=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495	fi
9496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"; then :
9507  xorg_cv_cc_flag_unused_command_line_argument=yes
9508else
9509  xorg_cv_cc_flag_unused_command_line_argument=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519found="no"
9520
9521	if test $found = "no" ; then
9522		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524		fi
9525
9526		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528		fi
9529
9530		CFLAGS="$CFLAGS -Wwrite-strings"
9531
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9533$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9534		cacheid=xorg_cv_cc_flag__Wwrite_strings
9535		if eval \${$cacheid+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541int
9542main ()
9543{
9544
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550  eval $cacheid=yes
9551else
9552  eval $cacheid=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext \
9555    conftest$ac_exeext conftest.$ac_ext
9556fi
9557
9558
9559		CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561		eval supported=\$$cacheid
9562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563$as_echo "$supported" >&6; }
9564		if test "$supported" = "yes" ; then
9565			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9566			found="yes"
9567		fi
9568	fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  xorg_cv_cc_flag_unknown_warning_option=yes
9599else
9600  xorg_cv_cc_flag_unknown_warning_option=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613	fi
9614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"; then :
9625  xorg_cv_cc_flag_unused_command_line_argument=yes
9626else
9627  xorg_cv_cc_flag_unused_command_line_argument=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630fi
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9634	CFLAGS="$xorg_testset_save_CFLAGS"
9635fi
9636
9637found="no"
9638
9639	if test $found = "no" ; then
9640		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642		fi
9643
9644		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646		fi
9647
9648		CFLAGS="$CFLAGS -Waddress"
9649
9650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9651$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9652		cacheid=xorg_cv_cc_flag__Waddress
9653		if eval \${$cacheid+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659int
9660main ()
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"; then :
9668  eval $cacheid=yes
9669else
9670  eval $cacheid=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext \
9673    conftest$ac_exeext conftest.$ac_ext
9674fi
9675
9676
9677		CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679		eval supported=\$$cacheid
9680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681$as_echo "$supported" >&6; }
9682		if test "$supported" = "yes" ; then
9683			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9684			found="yes"
9685		fi
9686	fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714_ACEOF
9715if ac_fn_c_try_compile "$LINENO"; then :
9716  xorg_cv_cc_flag_unknown_warning_option=yes
9717else
9718  xorg_cv_cc_flag_unknown_warning_option=no
9719fi
9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9725	CFLAGS="$xorg_testset_save_CFLAGS"
9726fi
9727
9728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9731	fi
9732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9739/* end confdefs.h.  */
9740int i;
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"; then :
9743  xorg_cv_cc_flag_unused_command_line_argument=yes
9744else
9745  xorg_cv_cc_flag_unused_command_line_argument=no
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9752	CFLAGS="$xorg_testset_save_CFLAGS"
9753fi
9754
9755found="no"
9756
9757	if test $found = "no" ; then
9758		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9760		fi
9761
9762		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9764		fi
9765
9766		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9767
9768		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9769$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9770		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9771		if eval \${$cacheid+:} false; then :
9772  $as_echo_n "(cached) " >&6
9773else
9774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775/* end confdefs.h.  */
9776int i;
9777int
9778main ()
9779{
9780
9781  ;
9782  return 0;
9783}
9784_ACEOF
9785if ac_fn_c_try_link "$LINENO"; then :
9786  eval $cacheid=yes
9787else
9788  eval $cacheid=no
9789fi
9790rm -f core conftest.err conftest.$ac_objext \
9791    conftest$ac_exeext conftest.$ac_ext
9792fi
9793
9794
9795		CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797		eval supported=\$$cacheid
9798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799$as_echo "$supported" >&6; }
9800		if test "$supported" = "yes" ; then
9801			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9802			found="yes"
9803		fi
9804	fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int i;
9832_ACEOF
9833if ac_fn_c_try_compile "$LINENO"; then :
9834  xorg_cv_cc_flag_unknown_warning_option=yes
9835else
9836  xorg_cv_cc_flag_unknown_warning_option=no
9837fi
9838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9843	CFLAGS="$xorg_testset_save_CFLAGS"
9844fi
9845
9846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9849	fi
9850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9854  $as_echo_n "(cached) " >&6
9855else
9856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857/* end confdefs.h.  */
9858int i;
9859_ACEOF
9860if ac_fn_c_try_compile "$LINENO"; then :
9861  xorg_cv_cc_flag_unused_command_line_argument=yes
9862else
9863  xorg_cv_cc_flag_unused_command_line_argument=no
9864fi
9865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9866fi
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870	CFLAGS="$xorg_testset_save_CFLAGS"
9871fi
9872
9873found="no"
9874
9875	if test $found = "no" ; then
9876		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878		fi
9879
9880		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882		fi
9883
9884		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9885
9886		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9887$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9888		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9889		if eval \${$cacheid+:} false; then :
9890  $as_echo_n "(cached) " >&6
9891else
9892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h.  */
9894int i;
9895int
9896main ()
9897{
9898
9899  ;
9900  return 0;
9901}
9902_ACEOF
9903if ac_fn_c_try_link "$LINENO"; then :
9904  eval $cacheid=yes
9905else
9906  eval $cacheid=no
9907fi
9908rm -f core conftest.err conftest.$ac_objext \
9909    conftest$ac_exeext conftest.$ac_ext
9910fi
9911
9912
9913		CFLAGS="$xorg_testset_save_CFLAGS"
9914
9915		eval supported=\$$cacheid
9916		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9917$as_echo "$supported" >&6; }
9918		if test "$supported" = "yes" ; then
9919			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9920			found="yes"
9921		fi
9922	fi
9923
9924
9925fi
9926
9927
9928
9929
9930
9931
9932
9933		CWARNFLAGS="$BASE_CFLAGS"
9934		if  test "x$GCC" = xyes ; then
9935		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9936		fi
9937
9938
9939
9940
9941
9942
9943
9944
9945# Check whether --enable-strict-compilation was given.
9946if test "${enable_strict_compilation+set}" = set; then :
9947  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9948else
9949  STRICT_COMPILE=no
9950fi
9951
9952
9953
9954
9955
9956
9957STRICT_CFLAGS=""
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971xorg_testset_save_CFLAGS="$CFLAGS"
9972
9973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982int i;
9983_ACEOF
9984if ac_fn_c_try_compile "$LINENO"; then :
9985  xorg_cv_cc_flag_unknown_warning_option=yes
9986else
9987  xorg_cv_cc_flag_unknown_warning_option=no
9988fi
9989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990fi
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9994	CFLAGS="$xorg_testset_save_CFLAGS"
9995fi
9996
9997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000	fi
10001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10005  $as_echo_n "(cached) " >&6
10006else
10007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008/* end confdefs.h.  */
10009int i;
10010_ACEOF
10011if ac_fn_c_try_compile "$LINENO"; then :
10012  xorg_cv_cc_flag_unused_command_line_argument=yes
10013else
10014  xorg_cv_cc_flag_unused_command_line_argument=no
10015fi
10016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017fi
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10021	CFLAGS="$xorg_testset_save_CFLAGS"
10022fi
10023
10024found="no"
10025
10026	if test $found = "no" ; then
10027		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10029		fi
10030
10031		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10033		fi
10034
10035		CFLAGS="$CFLAGS -pedantic"
10036
10037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10038$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10039		cacheid=xorg_cv_cc_flag__pedantic
10040		if eval \${$cacheid+:} false; then :
10041  $as_echo_n "(cached) " >&6
10042else
10043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044/* end confdefs.h.  */
10045int i;
10046int
10047main ()
10048{
10049
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054if ac_fn_c_try_link "$LINENO"; then :
10055  eval $cacheid=yes
10056else
10057  eval $cacheid=no
10058fi
10059rm -f core conftest.err conftest.$ac_objext \
10060    conftest$ac_exeext conftest.$ac_ext
10061fi
10062
10063
10064		CFLAGS="$xorg_testset_save_CFLAGS"
10065
10066		eval supported=\$$cacheid
10067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10068$as_echo "$supported" >&6; }
10069		if test "$supported" = "yes" ; then
10070			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10071			found="yes"
10072		fi
10073	fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089xorg_testset_save_CFLAGS="$CFLAGS"
10090
10091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100int i;
10101_ACEOF
10102if ac_fn_c_try_compile "$LINENO"; then :
10103  xorg_cv_cc_flag_unknown_warning_option=yes
10104else
10105  xorg_cv_cc_flag_unknown_warning_option=no
10106fi
10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112	CFLAGS="$xorg_testset_save_CFLAGS"
10113fi
10114
10115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118	fi
10119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10123  $as_echo_n "(cached) " >&6
10124else
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127int i;
10128_ACEOF
10129if ac_fn_c_try_compile "$LINENO"; then :
10130  xorg_cv_cc_flag_unused_command_line_argument=yes
10131else
10132  xorg_cv_cc_flag_unused_command_line_argument=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135fi
10136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10139	CFLAGS="$xorg_testset_save_CFLAGS"
10140fi
10141
10142found="no"
10143
10144	if test $found = "no" ; then
10145		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10147		fi
10148
10149		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10151		fi
10152
10153		CFLAGS="$CFLAGS -Werror"
10154
10155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10156$as_echo_n "checking if $CC supports-Werror... " >&6; }
10157		cacheid=xorg_cv_cc_flag__Werror
10158		if eval \${$cacheid+:} false; then :
10159  $as_echo_n "(cached) " >&6
10160else
10161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162/* end confdefs.h.  */
10163int i;
10164int
10165main ()
10166{
10167
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172if ac_fn_c_try_link "$LINENO"; then :
10173  eval $cacheid=yes
10174else
10175  eval $cacheid=no
10176fi
10177rm -f core conftest.err conftest.$ac_objext \
10178    conftest$ac_exeext conftest.$ac_ext
10179fi
10180
10181
10182		CFLAGS="$xorg_testset_save_CFLAGS"
10183
10184		eval supported=\$$cacheid
10185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10186$as_echo "$supported" >&6; }
10187		if test "$supported" = "yes" ; then
10188			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10189			found="yes"
10190		fi
10191	fi
10192
10193	if test $found = "no" ; then
10194		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196		fi
10197
10198		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200		fi
10201
10202		CFLAGS="$CFLAGS -errwarn"
10203
10204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10205$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10206		cacheid=xorg_cv_cc_flag__errwarn
10207		if eval \${$cacheid+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h.  */
10212int i;
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221if ac_fn_c_try_link "$LINENO"; then :
10222  eval $cacheid=yes
10223else
10224  eval $cacheid=no
10225fi
10226rm -f core conftest.err conftest.$ac_objext \
10227    conftest$ac_exeext conftest.$ac_ext
10228fi
10229
10230
10231		CFLAGS="$xorg_testset_save_CFLAGS"
10232
10233		eval supported=\$$cacheid
10234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10235$as_echo "$supported" >&6; }
10236		if test "$supported" = "yes" ; then
10237			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10238			found="yes"
10239		fi
10240	fi
10241
10242
10243
10244# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10245# activate it with -Werror, so we add it here explicitly.
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259xorg_testset_save_CFLAGS="$CFLAGS"
10260
10261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10262	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10266  $as_echo_n "(cached) " >&6
10267else
10268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270int i;
10271_ACEOF
10272if ac_fn_c_try_compile "$LINENO"; then :
10273  xorg_cv_cc_flag_unknown_warning_option=yes
10274else
10275  xorg_cv_cc_flag_unknown_warning_option=no
10276fi
10277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278fi
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10281	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10282	CFLAGS="$xorg_testset_save_CFLAGS"
10283fi
10284
10285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10286	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288	fi
10289	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297int i;
10298_ACEOF
10299if ac_fn_c_try_compile "$LINENO"; then :
10300  xorg_cv_cc_flag_unused_command_line_argument=yes
10301else
10302  xorg_cv_cc_flag_unused_command_line_argument=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10309	CFLAGS="$xorg_testset_save_CFLAGS"
10310fi
10311
10312found="no"
10313
10314	if test $found = "no" ; then
10315		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10317		fi
10318
10319		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321		fi
10322
10323		CFLAGS="$CFLAGS -Werror=attributes"
10324
10325		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10326$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10327		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10328		if eval \${$cacheid+:} false; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333int i;
10334int
10335main ()
10336{
10337
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342if ac_fn_c_try_link "$LINENO"; then :
10343  eval $cacheid=yes
10344else
10345  eval $cacheid=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext \
10348    conftest$ac_exeext conftest.$ac_ext
10349fi
10350
10351
10352		CFLAGS="$xorg_testset_save_CFLAGS"
10353
10354		eval supported=\$$cacheid
10355		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10356$as_echo "$supported" >&6; }
10357		if test "$supported" = "yes" ; then
10358			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10359			found="yes"
10360		fi
10361	fi
10362
10363
10364
10365if test "x$STRICT_COMPILE" = "xyes"; then
10366    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10367    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10368fi
10369
10370
10371
10372
10373
10374
10375cat >>confdefs.h <<_ACEOF
10376#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10377_ACEOF
10378
10379	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10380	if test "x$PVM" = "x"; then
10381		PVM="0"
10382	fi
10383
10384cat >>confdefs.h <<_ACEOF
10385#define PACKAGE_VERSION_MINOR $PVM
10386_ACEOF
10387
10388	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10389	if test "x$PVP" = "x"; then
10390		PVP="0"
10391	fi
10392
10393cat >>confdefs.h <<_ACEOF
10394#define PACKAGE_VERSION_PATCHLEVEL $PVP
10395_ACEOF
10396
10397
10398
10399CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10400mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10401|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10402echo 'git directory not found: installing possibly empty changelog.' >&2)"
10403
10404
10405
10406
10407macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10408INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10409mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10410|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10411echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10412
10413
10414
10415
10416
10417
10418if test x$APP_MAN_SUFFIX = x    ; then
10419    APP_MAN_SUFFIX=1
10420fi
10421if test x$APP_MAN_DIR = x    ; then
10422    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10423fi
10424
10425if test x$LIB_MAN_SUFFIX = x    ; then
10426    LIB_MAN_SUFFIX=3
10427fi
10428if test x$LIB_MAN_DIR = x    ; then
10429    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10430fi
10431
10432if test x$FILE_MAN_SUFFIX = x    ; then
10433    case $host_os in
10434	solaris*)	FILE_MAN_SUFFIX=4  ;;
10435	*)		FILE_MAN_SUFFIX=5  ;;
10436    esac
10437fi
10438if test x$FILE_MAN_DIR = x    ; then
10439    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10440fi
10441
10442if test x$MISC_MAN_SUFFIX = x    ; then
10443    case $host_os in
10444	solaris*)	MISC_MAN_SUFFIX=5  ;;
10445	*)		MISC_MAN_SUFFIX=7  ;;
10446    esac
10447fi
10448if test x$MISC_MAN_DIR = x    ; then
10449    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10450fi
10451
10452if test x$DRIVER_MAN_SUFFIX = x    ; then
10453    case $host_os in
10454	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10455	*)		DRIVER_MAN_SUFFIX=4  ;;
10456    esac
10457fi
10458if test x$DRIVER_MAN_DIR = x    ; then
10459    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10460fi
10461
10462if test x$ADMIN_MAN_SUFFIX = x    ; then
10463    case $host_os in
10464	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10465	*)		ADMIN_MAN_SUFFIX=8  ;;
10466    esac
10467fi
10468if test x$ADMIN_MAN_DIR = x    ; then
10469    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10470fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486XORG_MAN_PAGE="X Version 11"
10487
10488MAN_SUBSTS="\
10489	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10490	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10491	-e 's|__xservername__|Xorg|g' \
10492	-e 's|__xconfigfile__|xorg.conf|g' \
10493	-e 's|__projectroot__|\$(prefix)|g' \
10494	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10495	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10496	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10497	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10498	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10499	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10500	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10501
10502
10503
10504# Check whether --enable-silent-rules was given.
10505if test "${enable_silent_rules+set}" = set; then :
10506  enableval=$enable_silent_rules;
10507fi
10508
10509case $enable_silent_rules in
10510yes) AM_DEFAULT_VERBOSITY=0;;
10511no)  AM_DEFAULT_VERBOSITY=1;;
10512*)   AM_DEFAULT_VERBOSITY=0;;
10513esac
10514AM_BACKSLASH='\'
10515
10516
10517
10518ac_config_headers="$ac_config_headers config.h"
10519
10520
10521
10522
10523
10524for ac_header in pty.h stropts.h sys/param.h sys/select.h
10525do :
10526  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10528if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10529  cat >>confdefs.h <<_ACEOF
10530#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10531_ACEOF
10532
10533fi
10534
10535done
10536
10537for ac_func in select grantpt posix_openpt
10538do :
10539  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10541if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10542  cat >>confdefs.h <<_ACEOF
10543#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10544_ACEOF
10545
10546fi
10547done
10548
10549
10550
10551# Check whether --with-localealiasfile was given.
10552if test "${with_localealiasfile+set}" = set; then :
10553  withval=$with_localealiasfile; LOCALEALIASFILE="$withval"
10554else
10555  LOCALEALIASFILE=${datadir}/X11/locale/locale.alias
10556fi
10557
10558
10559
10560# Checks for pkg-config packages
10561
10562pkg_failed=no
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUIT" >&5
10564$as_echo_n "checking for LUIT... " >&6; }
10565
10566if test -n "$LUIT_CFLAGS"; then
10567    pkg_cv_LUIT_CFLAGS="$LUIT_CFLAGS"
10568 elif test -n "$PKG_CONFIG"; then
10569    if test -n "$PKG_CONFIG" && \
10570    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5
10571  ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5
10572  ac_status=$?
10573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10574  test $ac_status = 0; }; then
10575  pkg_cv_LUIT_CFLAGS=`$PKG_CONFIG --cflags "fontenc" 2>/dev/null`
10576else
10577  pkg_failed=yes
10578fi
10579 else
10580    pkg_failed=untried
10581fi
10582if test -n "$LUIT_LIBS"; then
10583    pkg_cv_LUIT_LIBS="$LUIT_LIBS"
10584 elif test -n "$PKG_CONFIG"; then
10585    if test -n "$PKG_CONFIG" && \
10586    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontenc\""; } >&5
10587  ($PKG_CONFIG --exists --print-errors "fontenc") 2>&5
10588  ac_status=$?
10589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10590  test $ac_status = 0; }; then
10591  pkg_cv_LUIT_LIBS=`$PKG_CONFIG --libs "fontenc" 2>/dev/null`
10592else
10593  pkg_failed=yes
10594fi
10595 else
10596    pkg_failed=untried
10597fi
10598
10599
10600
10601if test $pkg_failed = yes; then
10602
10603if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10604        _pkg_short_errors_supported=yes
10605else
10606        _pkg_short_errors_supported=no
10607fi
10608        if test $_pkg_short_errors_supported = yes; then
10609	        LUIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontenc" 2>&1`
10610        else
10611	        LUIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontenc" 2>&1`
10612        fi
10613	# Put the nasty error message in config.log where it belongs
10614	echo "$LUIT_PKG_ERRORS" >&5
10615
10616	as_fn_error $? "Package requirements (fontenc) were not met:
10617
10618$LUIT_PKG_ERRORS
10619
10620Consider adjusting the PKG_CONFIG_PATH environment variable if you
10621installed software in a non-standard prefix.
10622
10623Alternatively, you may set the environment variables LUIT_CFLAGS
10624and LUIT_LIBS to avoid the need to call pkg-config.
10625See the pkg-config man page for more details.
10626" "$LINENO" 5
10627elif test $pkg_failed = untried; then
10628	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10630as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
10631is in your PATH or set the PKG_CONFIG environment variable to the full
10632path to pkg-config.
10633
10634Alternatively, you may set the environment variables LUIT_CFLAGS
10635and LUIT_LIBS to avoid the need to call pkg-config.
10636See the pkg-config man page for more details.
10637
10638To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10639See \`config.log' for more details" "$LINENO" 5; }
10640else
10641	LUIT_CFLAGS=$pkg_cv_LUIT_CFLAGS
10642	LUIT_LIBS=$pkg_cv_LUIT_LIBS
10643        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10644$as_echo "yes" >&6; }
10645	:
10646fi
10647
10648# We don't link against libX11, just use its locale.alias data file
10649if test -n "$PKG_CONFIG" && \
10650    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
10651  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
10652  ac_status=$?
10653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654  test $ac_status = 0; }; then
10655  :
10656else
10657  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libX11 not found.  luit may not be able to find locale aliases without it." >&5
10658$as_echo "$as_me: WARNING: libX11 not found.  luit may not be able to find locale aliases without it." >&2;}
10659fi
10660
10661case $host_os in
10662    # darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)
10663    darwin*)
10664        OS_CFLAGS=
10665        ;;
10666    linux*)
10667        for ac_header in poll.h
10668do :
10669  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10670if test "x$ac_cv_header_poll_h" = xyes; then :
10671  cat >>confdefs.h <<_ACEOF
10672#define HAVE_POLL_H 1
10673_ACEOF
10674
10675fi
10676
10677done
10678
10679        for ac_func in poll
10680do :
10681  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
10682if test "x$ac_cv_func_poll" = xyes; then :
10683  cat >>confdefs.h <<_ACEOF
10684#define HAVE_POLL 1
10685_ACEOF
10686
10687fi
10688done
10689
10690        OS_CFLAGS="-D_XOPEN_SOURCE=500"
10691        ;;
10692    *)
10693        for ac_header in poll.h
10694do :
10695  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10696if test "x$ac_cv_header_poll_h" = xyes; then :
10697  cat >>confdefs.h <<_ACEOF
10698#define HAVE_POLL_H 1
10699_ACEOF
10700
10701fi
10702
10703done
10704
10705        for ac_func in poll
10706do :
10707  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
10708if test "x$ac_cv_func_poll" = xyes; then :
10709  cat >>confdefs.h <<_ACEOF
10710#define HAVE_POLL 1
10711_ACEOF
10712
10713fi
10714done
10715
10716        OS_CFLAGS=
10717        ;;
10718esac
10719
10720
10721for ac_header in pty.h stropts.h sys/ioctl.h sys/param.h sys/poll.h sys/select.h sys/time.h termios.h
10722do :
10723  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10724ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10726  cat >>confdefs.h <<_ACEOF
10727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10728_ACEOF
10729
10730fi
10731
10732done
10733
10734for ac_func in grantpt putenv select strdup
10735do :
10736  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10737ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10738if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10739  cat >>confdefs.h <<_ACEOF
10740#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10741_ACEOF
10742
10743fi
10744done
10745
10746
10747if test "x$ac_cv_func_grantpt" != "xyes" ; then
10748        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
10749$as_echo_n "checking for openpty in -lutil... " >&6; }
10750if ${ac_cv_lib_util_openpty+:} false; then :
10751  $as_echo_n "(cached) " >&6
10752else
10753  ac_check_lib_save_LIBS=$LIBS
10754LIBS="-lutil  $LIBS"
10755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756/* end confdefs.h.  */
10757
10758/* Override any GCC internal prototype to avoid an error.
10759   Use char because int might match the return type of a GCC
10760   builtin and then its argument prototype would still apply.  */
10761#ifdef __cplusplus
10762extern "C"
10763#endif
10764char openpty ();
10765int
10766main ()
10767{
10768return openpty ();
10769  ;
10770  return 0;
10771}
10772_ACEOF
10773if ac_fn_c_try_link "$LINENO"; then :
10774  ac_cv_lib_util_openpty=yes
10775else
10776  ac_cv_lib_util_openpty=no
10777fi
10778rm -f core conftest.err conftest.$ac_objext \
10779    conftest$ac_exeext conftest.$ac_ext
10780LIBS=$ac_check_lib_save_LIBS
10781fi
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
10783$as_echo "$ac_cv_lib_util_openpty" >&6; }
10784if test "x$ac_cv_lib_util_openpty" = xyes; then :
10785  cf_have_openpty=yes
10786else
10787  cf_have_openpty=no
10788fi
10789
10790        if test "$cf_have_openpty" = yes ; then
10791                LIBS="-lutil $LIBS"
10792
10793$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10794
10795                for ac_header in \
10796                        util.h \
10797                        libutil.h \
10798                        pty.h \
10799
10800do :
10801  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10802ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10804  cat >>confdefs.h <<_ACEOF
10805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806_ACEOF
10807
10808fi
10809
10810done
10811
10812        fi
10813fi
10814
10815
10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll really works" >&5
10817$as_echo_n "checking if poll really works... " >&6; }
10818if ${cf_cv_working_poll+:} false; then :
10819  $as_echo_n "(cached) " >&6
10820else
10821
10822if test "$cross_compiling" = yes; then :
10823  cf_cv_working_poll=unknown
10824else
10825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826/* end confdefs.h.  */
10827
10828#include <stdio.h>
10829#ifdef HAVE_POLL_H
10830#include <poll.h>
10831#else
10832#include <sys/poll.h>
10833#endif
10834int main() {
10835	struct pollfd myfds;
10836	int ret;
10837
10838	myfds.fd = 0;
10839	myfds.events = POLLIN;
10840
10841	ret = poll(&myfds, 1, 100);
10842	${cf_cv_main_return:-return}(ret != 0);
10843}
10844_ACEOF
10845if ac_fn_c_try_run "$LINENO"; then :
10846  cf_cv_working_poll=yes
10847else
10848  cf_cv_working_poll=no
10849fi
10850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10851  conftest.$ac_objext conftest.beam conftest.$ac_ext
10852fi
10853
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_working_poll" >&5
10856$as_echo "$cf_cv_working_poll" >&6; }
10857test "$cf_cv_working_poll" = "yes" &&
10858$as_echo "#define HAVE_WORKING_POLL 1" >>confdefs.h
10859
10860
10861
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIGWINCH is defined" >&5
10863$as_echo_n "checking if SIGWINCH is defined... " >&6; }
10864if ${cf_cv_define_sigwinch+:} false; then :
10865  $as_echo_n "(cached) " >&6
10866else
10867
10868	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870
10871#include <sys/types.h>
10872#include <sys/signal.h>
10873
10874int
10875main ()
10876{
10877int x = SIGWINCH
10878  ;
10879  return 0;
10880}
10881_ACEOF
10882if ac_fn_c_try_compile "$LINENO"; then :
10883  cf_cv_define_sigwinch=yes
10884else
10885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887
10888#undef _XOPEN_SOURCE
10889#undef _POSIX_SOURCE
10890#undef _POSIX_C_SOURCE
10891#include <sys/types.h>
10892#include <sys/signal.h>
10893
10894int
10895main ()
10896{
10897int x = SIGWINCH
10898  ;
10899  return 0;
10900}
10901_ACEOF
10902if ac_fn_c_try_compile "$LINENO"; then :
10903  cf_cv_define_sigwinch=maybe
10904else
10905  cf_cv_define_sigwinch=no
10906fi
10907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10908
10909fi
10910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10911
10912fi
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_define_sigwinch" >&5
10914$as_echo "$cf_cv_define_sigwinch" >&6; }
10915
10916if test "$cf_cv_define_sigwinch" = maybe ; then
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for actual SIGWINCH definition" >&5
10918$as_echo_n "checking for actual SIGWINCH definition... " >&6; }
10919if ${cf_cv_fixup_sigwinch+:} false; then :
10920  $as_echo_n "(cached) " >&6
10921else
10922
10923cf_cv_fixup_sigwinch=unknown
10924cf_sigwinch=32
10925while test $cf_sigwinch != 1
10926do
10927	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928/* end confdefs.h.  */
10929
10930#undef _XOPEN_SOURCE
10931#undef _POSIX_SOURCE
10932#undef _POSIX_C_SOURCE
10933#include <sys/types.h>
10934#include <sys/signal.h>
10935
10936int
10937main ()
10938{
10939
10940#if SIGWINCH != $cf_sigwinch
10941make an error
10942#endif
10943int x = SIGWINCH
10944  ;
10945  return 0;
10946}
10947_ACEOF
10948if ac_fn_c_try_compile "$LINENO"; then :
10949  cf_cv_fixup_sigwinch=$cf_sigwinch
10950	 break
10951fi
10952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953
10954cf_sigwinch=`expr $cf_sigwinch - 1`
10955done
10956
10957fi
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_fixup_sigwinch" >&5
10959$as_echo "$cf_cv_fixup_sigwinch" >&6; }
10960
10961	if test "$cf_cv_fixup_sigwinch" != unknown ; then
10962		CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
10963	fi
10964fi
10965
10966
10967ac_config_files="$ac_config_files Makefile man/Makefile"
10968
10969
10970cat >confcache <<\_ACEOF
10971# This file is a shell script that caches the results of configure
10972# tests run on this system so they can be shared between configure
10973# scripts and configure runs, see configure's option --config-cache.
10974# It is not useful on other systems.  If it contains results you don't
10975# want to keep, you may remove or edit it.
10976#
10977# config.status only pays attention to the cache file if you give it
10978# the --recheck option to rerun configure.
10979#
10980# `ac_cv_env_foo' variables (set or unset) will be overridden when
10981# loading this file, other *unset* `ac_cv_foo' will be assigned the
10982# following values.
10983
10984_ACEOF
10985
10986# The following way of writing the cache mishandles newlines in values,
10987# but we know of no workaround that is simple, portable, and efficient.
10988# So, we kill variables containing newlines.
10989# Ultrix sh set writes to stderr and can't be redirected directly,
10990# and sets the high bit in the cache file unless we assign to the vars.
10991(
10992  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10993    eval ac_val=\$$ac_var
10994    case $ac_val in #(
10995    *${as_nl}*)
10996      case $ac_var in #(
10997      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10999      esac
11000      case $ac_var in #(
11001      _ | IFS | as_nl) ;; #(
11002      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11003      *) { eval $ac_var=; unset $ac_var;} ;;
11004      esac ;;
11005    esac
11006  done
11007
11008  (set) 2>&1 |
11009    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11010    *${as_nl}ac_space=\ *)
11011      # `set' does not quote correctly, so add quotes: double-quote
11012      # substitution turns \\\\ into \\, and sed turns \\ into \.
11013      sed -n \
11014	"s/'/'\\\\''/g;
11015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11016      ;; #(
11017    *)
11018      # `set' quotes correctly as required by POSIX, so do not add quotes.
11019      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11020      ;;
11021    esac |
11022    sort
11023) |
11024  sed '
11025     /^ac_cv_env_/b end
11026     t clear
11027     :clear
11028     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11029     t end
11030     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11031     :end' >>confcache
11032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11033  if test -w "$cache_file"; then
11034    if test "x$cache_file" != "x/dev/null"; then
11035      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11036$as_echo "$as_me: updating cache $cache_file" >&6;}
11037      if test ! -f "$cache_file" || test -h "$cache_file"; then
11038	cat confcache >"$cache_file"
11039      else
11040        case $cache_file in #(
11041        */* | ?:*)
11042	  mv -f confcache "$cache_file"$$ &&
11043	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11044        *)
11045	  mv -f confcache "$cache_file" ;;
11046	esac
11047      fi
11048    fi
11049  else
11050    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11052  fi
11053fi
11054rm -f confcache
11055
11056test "x$prefix" = xNONE && prefix=$ac_default_prefix
11057# Let make expand exec_prefix.
11058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11059
11060DEFS=-DHAVE_CONFIG_H
11061
11062ac_libobjs=
11063ac_ltlibobjs=
11064U=
11065for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11066  # 1. Remove the extension, and $U if already installed.
11067  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11068  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11069  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11070  #    will be set to the directory where LIBOBJS objects are built.
11071  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11072  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11073done
11074LIBOBJS=$ac_libobjs
11075
11076LTLIBOBJS=$ac_ltlibobjs
11077
11078
11079 if test -n "$EXEEXT"; then
11080  am__EXEEXT_TRUE=
11081  am__EXEEXT_FALSE='#'
11082else
11083  am__EXEEXT_TRUE='#'
11084  am__EXEEXT_FALSE=
11085fi
11086
11087if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11088  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11089Usually this means the macro was only invoked conditionally." "$LINENO" 5
11090fi
11091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11092  as_fn_error $? "conditional \"AMDEP\" was never defined.
11093Usually this means the macro was only invoked conditionally." "$LINENO" 5
11094fi
11095if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11096  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11097Usually this means the macro was only invoked conditionally." "$LINENO" 5
11098fi
11099
11100: "${CONFIG_STATUS=./config.status}"
11101ac_write_fail=0
11102ac_clean_files_save=$ac_clean_files
11103ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11105$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11106as_write_fail=0
11107cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11108#! $SHELL
11109# Generated by $as_me.
11110# Run this file to recreate the current configuration.
11111# Compiler output produced by configure, useful for debugging
11112# configure, is in config.log if it exists.
11113
11114debug=false
11115ac_cs_recheck=false
11116ac_cs_silent=false
11117
11118SHELL=\${CONFIG_SHELL-$SHELL}
11119export SHELL
11120_ASEOF
11121cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11122## -------------------- ##
11123## M4sh Initialization. ##
11124## -------------------- ##
11125
11126# Be more Bourne compatible
11127DUALCASE=1; export DUALCASE # for MKS sh
11128if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11129  emulate sh
11130  NULLCMD=:
11131  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11132  # is contrary to our usage.  Disable this feature.
11133  alias -g '${1+"$@"}'='"$@"'
11134  setopt NO_GLOB_SUBST
11135else
11136  case `(set -o) 2>/dev/null` in #(
11137  *posix*) :
11138    set -o posix ;; #(
11139  *) :
11140     ;;
11141esac
11142fi
11143
11144
11145as_nl='
11146'
11147export as_nl
11148# Printing a long string crashes Solaris 7 /usr/bin/printf.
11149as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11152# Prefer a ksh shell builtin over an external printf program on Solaris,
11153# but without wasting forks for bash or zsh.
11154if test -z "$BASH_VERSION$ZSH_VERSION" \
11155    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11156  as_echo='print -r --'
11157  as_echo_n='print -rn --'
11158elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11159  as_echo='printf %s\n'
11160  as_echo_n='printf %s'
11161else
11162  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11163    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11164    as_echo_n='/usr/ucb/echo -n'
11165  else
11166    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11167    as_echo_n_body='eval
11168      arg=$1;
11169      case $arg in #(
11170      *"$as_nl"*)
11171	expr "X$arg" : "X\\(.*\\)$as_nl";
11172	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11173      esac;
11174      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11175    '
11176    export as_echo_n_body
11177    as_echo_n='sh -c $as_echo_n_body as_echo'
11178  fi
11179  export as_echo_body
11180  as_echo='sh -c $as_echo_body as_echo'
11181fi
11182
11183# The user is always right.
11184if test "${PATH_SEPARATOR+set}" != set; then
11185  PATH_SEPARATOR=:
11186  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11187    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11188      PATH_SEPARATOR=';'
11189  }
11190fi
11191
11192
11193# IFS
11194# We need space, tab and new line, in precisely that order.  Quoting is
11195# there to prevent editors from complaining about space-tab.
11196# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11197# splitting by setting IFS to empty value.)
11198IFS=" ""	$as_nl"
11199
11200# Find who we are.  Look in the path if we contain no directory separator.
11201as_myself=
11202case $0 in #((
11203  *[\\/]* ) as_myself=$0 ;;
11204  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207  IFS=$as_save_IFS
11208  test -z "$as_dir" && as_dir=.
11209    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11210  done
11211IFS=$as_save_IFS
11212
11213     ;;
11214esac
11215# We did not find ourselves, most probably we were run as `sh COMMAND'
11216# in which case we are not to be found in the path.
11217if test "x$as_myself" = x; then
11218  as_myself=$0
11219fi
11220if test ! -f "$as_myself"; then
11221  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11222  exit 1
11223fi
11224
11225# Unset variables that we do not need and which cause bugs (e.g. in
11226# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11227# suppresses any "Segmentation fault" message there.  '((' could
11228# trigger a bug in pdksh 5.2.14.
11229for as_var in BASH_ENV ENV MAIL MAILPATH
11230do eval test x\${$as_var+set} = xset \
11231  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11232done
11233PS1='$ '
11234PS2='> '
11235PS4='+ '
11236
11237# NLS nuisances.
11238LC_ALL=C
11239export LC_ALL
11240LANGUAGE=C
11241export LANGUAGE
11242
11243# CDPATH.
11244(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11245
11246
11247# as_fn_error STATUS ERROR [LINENO LOG_FD]
11248# ----------------------------------------
11249# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11250# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11251# script with STATUS, using 1 if that was 0.
11252as_fn_error ()
11253{
11254  as_status=$1; test $as_status -eq 0 && as_status=1
11255  if test "$4"; then
11256    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11257    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11258  fi
11259  $as_echo "$as_me: error: $2" >&2
11260  as_fn_exit $as_status
11261} # as_fn_error
11262
11263
11264# as_fn_set_status STATUS
11265# -----------------------
11266# Set $? to STATUS, without forking.
11267as_fn_set_status ()
11268{
11269  return $1
11270} # as_fn_set_status
11271
11272# as_fn_exit STATUS
11273# -----------------
11274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11275as_fn_exit ()
11276{
11277  set +e
11278  as_fn_set_status $1
11279  exit $1
11280} # as_fn_exit
11281
11282# as_fn_unset VAR
11283# ---------------
11284# Portably unset VAR.
11285as_fn_unset ()
11286{
11287  { eval $1=; unset $1;}
11288}
11289as_unset=as_fn_unset
11290# as_fn_append VAR VALUE
11291# ----------------------
11292# Append the text in VALUE to the end of the definition contained in VAR. Take
11293# advantage of any shell optimizations that allow amortized linear growth over
11294# repeated appends, instead of the typical quadratic growth present in naive
11295# implementations.
11296if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11297  eval 'as_fn_append ()
11298  {
11299    eval $1+=\$2
11300  }'
11301else
11302  as_fn_append ()
11303  {
11304    eval $1=\$$1\$2
11305  }
11306fi # as_fn_append
11307
11308# as_fn_arith ARG...
11309# ------------------
11310# Perform arithmetic evaluation on the ARGs, and store the result in the
11311# global $as_val. Take advantage of shells that can avoid forks. The arguments
11312# must be portable across $(()) and expr.
11313if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11314  eval 'as_fn_arith ()
11315  {
11316    as_val=$(( $* ))
11317  }'
11318else
11319  as_fn_arith ()
11320  {
11321    as_val=`expr "$@" || test $? -eq 1`
11322  }
11323fi # as_fn_arith
11324
11325
11326if expr a : '\(a\)' >/dev/null 2>&1 &&
11327   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11328  as_expr=expr
11329else
11330  as_expr=false
11331fi
11332
11333if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11334  as_basename=basename
11335else
11336  as_basename=false
11337fi
11338
11339if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11340  as_dirname=dirname
11341else
11342  as_dirname=false
11343fi
11344
11345as_me=`$as_basename -- "$0" ||
11346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11347	 X"$0" : 'X\(//\)$' \| \
11348	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11349$as_echo X/"$0" |
11350    sed '/^.*\/\([^/][^/]*\)\/*$/{
11351	    s//\1/
11352	    q
11353	  }
11354	  /^X\/\(\/\/\)$/{
11355	    s//\1/
11356	    q
11357	  }
11358	  /^X\/\(\/\).*/{
11359	    s//\1/
11360	    q
11361	  }
11362	  s/.*/./; q'`
11363
11364# Avoid depending upon Character Ranges.
11365as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11367as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11368as_cr_digits='0123456789'
11369as_cr_alnum=$as_cr_Letters$as_cr_digits
11370
11371ECHO_C= ECHO_N= ECHO_T=
11372case `echo -n x` in #(((((
11373-n*)
11374  case `echo 'xy\c'` in
11375  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11376  xy)  ECHO_C='\c';;
11377  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11378       ECHO_T='	';;
11379  esac;;
11380*)
11381  ECHO_N='-n';;
11382esac
11383
11384rm -f conf$$ conf$$.exe conf$$.file
11385if test -d conf$$.dir; then
11386  rm -f conf$$.dir/conf$$.file
11387else
11388  rm -f conf$$.dir
11389  mkdir conf$$.dir 2>/dev/null
11390fi
11391if (echo >conf$$.file) 2>/dev/null; then
11392  if ln -s conf$$.file conf$$ 2>/dev/null; then
11393    as_ln_s='ln -s'
11394    # ... but there are two gotchas:
11395    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11396    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11397    # In both cases, we have to default to `cp -p'.
11398    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11399      as_ln_s='cp -p'
11400  elif ln conf$$.file conf$$ 2>/dev/null; then
11401    as_ln_s=ln
11402  else
11403    as_ln_s='cp -p'
11404  fi
11405else
11406  as_ln_s='cp -p'
11407fi
11408rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11409rmdir conf$$.dir 2>/dev/null
11410
11411
11412# as_fn_mkdir_p
11413# -------------
11414# Create "$as_dir" as a directory, including parents if necessary.
11415as_fn_mkdir_p ()
11416{
11417
11418  case $as_dir in #(
11419  -*) as_dir=./$as_dir;;
11420  esac
11421  test -d "$as_dir" || eval $as_mkdir_p || {
11422    as_dirs=
11423    while :; do
11424      case $as_dir in #(
11425      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11426      *) as_qdir=$as_dir;;
11427      esac
11428      as_dirs="'$as_qdir' $as_dirs"
11429      as_dir=`$as_dirname -- "$as_dir" ||
11430$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11431	 X"$as_dir" : 'X\(//\)[^/]' \| \
11432	 X"$as_dir" : 'X\(//\)$' \| \
11433	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11434$as_echo X"$as_dir" |
11435    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11436	    s//\1/
11437	    q
11438	  }
11439	  /^X\(\/\/\)[^/].*/{
11440	    s//\1/
11441	    q
11442	  }
11443	  /^X\(\/\/\)$/{
11444	    s//\1/
11445	    q
11446	  }
11447	  /^X\(\/\).*/{
11448	    s//\1/
11449	    q
11450	  }
11451	  s/.*/./; q'`
11452      test -d "$as_dir" && break
11453    done
11454    test -z "$as_dirs" || eval "mkdir $as_dirs"
11455  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11456
11457
11458} # as_fn_mkdir_p
11459if mkdir -p . 2>/dev/null; then
11460  as_mkdir_p='mkdir -p "$as_dir"'
11461else
11462  test -d ./-p && rmdir ./-p
11463  as_mkdir_p=false
11464fi
11465
11466if test -x / >/dev/null 2>&1; then
11467  as_test_x='test -x'
11468else
11469  if ls -dL / >/dev/null 2>&1; then
11470    as_ls_L_option=L
11471  else
11472    as_ls_L_option=
11473  fi
11474  as_test_x='
11475    eval sh -c '\''
11476      if test -d "$1"; then
11477	test -d "$1/.";
11478      else
11479	case $1 in #(
11480	-*)set "./$1";;
11481	esac;
11482	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11483	???[sx]*):;;*)false;;esac;fi
11484    '\'' sh
11485  '
11486fi
11487as_executable_p=$as_test_x
11488
11489# Sed expression to map a string onto a valid CPP name.
11490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11491
11492# Sed expression to map a string onto a valid variable name.
11493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11494
11495
11496exec 6>&1
11497## ----------------------------------- ##
11498## Main body of $CONFIG_STATUS script. ##
11499## ----------------------------------- ##
11500_ASEOF
11501test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11502
11503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11504# Save the log message, to keep $0 and so on meaningful, and to
11505# report actual input values of CONFIG_FILES etc. instead of their
11506# values after options handling.
11507ac_log="
11508This file was extended by luit $as_me 1.1.1, which was
11509generated by GNU Autoconf 2.68.  Invocation command line was
11510
11511  CONFIG_FILES    = $CONFIG_FILES
11512  CONFIG_HEADERS  = $CONFIG_HEADERS
11513  CONFIG_LINKS    = $CONFIG_LINKS
11514  CONFIG_COMMANDS = $CONFIG_COMMANDS
11515  $ $0 $@
11516
11517on `(hostname || uname -n) 2>/dev/null | sed 1q`
11518"
11519
11520_ACEOF
11521
11522case $ac_config_files in *"
11523"*) set x $ac_config_files; shift; ac_config_files=$*;;
11524esac
11525
11526case $ac_config_headers in *"
11527"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11528esac
11529
11530
11531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11532# Files that config.status was made for.
11533config_files="$ac_config_files"
11534config_headers="$ac_config_headers"
11535config_commands="$ac_config_commands"
11536
11537_ACEOF
11538
11539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11540ac_cs_usage="\
11541\`$as_me' instantiates files and other configuration actions
11542from templates according to the current configuration.  Unless the files
11543and actions are specified as TAGs, all are instantiated by default.
11544
11545Usage: $0 [OPTION]... [TAG]...
11546
11547  -h, --help       print this help, then exit
11548  -V, --version    print version number and configuration settings, then exit
11549      --config     print configuration, then exit
11550  -q, --quiet, --silent
11551                   do not print progress messages
11552  -d, --debug      don't remove temporary files
11553      --recheck    update $as_me by reconfiguring in the same conditions
11554      --file=FILE[:TEMPLATE]
11555                   instantiate the configuration file FILE
11556      --header=FILE[:TEMPLATE]
11557                   instantiate the configuration header FILE
11558
11559Configuration files:
11560$config_files
11561
11562Configuration headers:
11563$config_headers
11564
11565Configuration commands:
11566$config_commands
11567
11568Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11569
11570_ACEOF
11571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11573ac_cs_version="\\
11574luit config.status 1.1.1
11575configured by $0, generated by GNU Autoconf 2.68,
11576  with options \\"\$ac_cs_config\\"
11577
11578Copyright (C) 2010 Free Software Foundation, Inc.
11579This config.status script is free software; the Free Software Foundation
11580gives unlimited permission to copy, distribute and modify it."
11581
11582ac_pwd='$ac_pwd'
11583srcdir='$srcdir'
11584INSTALL='$INSTALL'
11585MKDIR_P='$MKDIR_P'
11586AWK='$AWK'
11587test -n "\$AWK" || AWK=awk
11588_ACEOF
11589
11590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11591# The default lists apply if the user does not specify any file.
11592ac_need_defaults=:
11593while test $# != 0
11594do
11595  case $1 in
11596  --*=?*)
11597    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11598    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11599    ac_shift=:
11600    ;;
11601  --*=)
11602    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11603    ac_optarg=
11604    ac_shift=:
11605    ;;
11606  *)
11607    ac_option=$1
11608    ac_optarg=$2
11609    ac_shift=shift
11610    ;;
11611  esac
11612
11613  case $ac_option in
11614  # Handling of the options.
11615  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11616    ac_cs_recheck=: ;;
11617  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11618    $as_echo "$ac_cs_version"; exit ;;
11619  --config | --confi | --conf | --con | --co | --c )
11620    $as_echo "$ac_cs_config"; exit ;;
11621  --debug | --debu | --deb | --de | --d | -d )
11622    debug=: ;;
11623  --file | --fil | --fi | --f )
11624    $ac_shift
11625    case $ac_optarg in
11626    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11627    '') as_fn_error $? "missing file argument" ;;
11628    esac
11629    as_fn_append CONFIG_FILES " '$ac_optarg'"
11630    ac_need_defaults=false;;
11631  --header | --heade | --head | --hea )
11632    $ac_shift
11633    case $ac_optarg in
11634    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11635    esac
11636    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11637    ac_need_defaults=false;;
11638  --he | --h)
11639    # Conflict between --help and --header
11640    as_fn_error $? "ambiguous option: \`$1'
11641Try \`$0 --help' for more information.";;
11642  --help | --hel | -h )
11643    $as_echo "$ac_cs_usage"; exit ;;
11644  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11645  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11646    ac_cs_silent=: ;;
11647
11648  # This is an error.
11649  -*) as_fn_error $? "unrecognized option: \`$1'
11650Try \`$0 --help' for more information." ;;
11651
11652  *) as_fn_append ac_config_targets " $1"
11653     ac_need_defaults=false ;;
11654
11655  esac
11656  shift
11657done
11658
11659ac_configure_extra_args=
11660
11661if $ac_cs_silent; then
11662  exec 6>/dev/null
11663  ac_configure_extra_args="$ac_configure_extra_args --silent"
11664fi
11665
11666_ACEOF
11667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11668if \$ac_cs_recheck; then
11669  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11670  shift
11671  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11672  CONFIG_SHELL='$SHELL'
11673  export CONFIG_SHELL
11674  exec "\$@"
11675fi
11676
11677_ACEOF
11678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11679exec 5>>config.log
11680{
11681  echo
11682  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11683## Running $as_me. ##
11684_ASBOX
11685  $as_echo "$ac_log"
11686} >&5
11687
11688_ACEOF
11689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11690#
11691# INIT-COMMANDS
11692#
11693AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11694
11695_ACEOF
11696
11697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11698
11699# Handling of arguments.
11700for ac_config_target in $ac_config_targets
11701do
11702  case $ac_config_target in
11703    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11704    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11705    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11706    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11707
11708  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11709  esac
11710done
11711
11712
11713# If the user did not use the arguments to specify the items to instantiate,
11714# then the envvar interface is used.  Set only those that are not.
11715# We use the long form for the default assignment because of an extremely
11716# bizarre bug on SunOS 4.1.3.
11717if $ac_need_defaults; then
11718  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11719  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11720  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11721fi
11722
11723# Have a temporary directory for convenience.  Make it in the build tree
11724# simply because there is no reason against having it here, and in addition,
11725# creating and moving files from /tmp can sometimes cause problems.
11726# Hook for its removal unless debugging.
11727# Note that there is a small window in which the directory will not be cleaned:
11728# after its creation but before its name has been assigned to `$tmp'.
11729$debug ||
11730{
11731  tmp= ac_tmp=
11732  trap 'exit_status=$?
11733  : "${ac_tmp:=$tmp}"
11734  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11735' 0
11736  trap 'as_fn_exit 1' 1 2 13 15
11737}
11738# Create a (secure) tmp directory for tmp files.
11739
11740{
11741  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11742  test -d "$tmp"
11743}  ||
11744{
11745  tmp=./conf$$-$RANDOM
11746  (umask 077 && mkdir "$tmp")
11747} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11748ac_tmp=$tmp
11749
11750# Set up the scripts for CONFIG_FILES section.
11751# No need to generate them if there are no CONFIG_FILES.
11752# This happens for instance with `./config.status config.h'.
11753if test -n "$CONFIG_FILES"; then
11754
11755
11756ac_cr=`echo X | tr X '\015'`
11757# On cygwin, bash can eat \r inside `` if the user requested igncr.
11758# But we know of no other shell where ac_cr would be empty at this
11759# point, so we can use a bashism as a fallback.
11760if test "x$ac_cr" = x; then
11761  eval ac_cr=\$\'\\r\'
11762fi
11763ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11764if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11765  ac_cs_awk_cr='\\r'
11766else
11767  ac_cs_awk_cr=$ac_cr
11768fi
11769
11770echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11771_ACEOF
11772
11773
11774{
11775  echo "cat >conf$$subs.awk <<_ACEOF" &&
11776  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11777  echo "_ACEOF"
11778} >conf$$subs.sh ||
11779  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11780ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11781ac_delim='%!_!# '
11782for ac_last_try in false false false false false :; do
11783  . ./conf$$subs.sh ||
11784    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11785
11786  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11787  if test $ac_delim_n = $ac_delim_num; then
11788    break
11789  elif $ac_last_try; then
11790    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11791  else
11792    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11793  fi
11794done
11795rm -f conf$$subs.sh
11796
11797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11798cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11799_ACEOF
11800sed -n '
11801h
11802s/^/S["/; s/!.*/"]=/
11803p
11804g
11805s/^[^!]*!//
11806:repl
11807t repl
11808s/'"$ac_delim"'$//
11809t delim
11810:nl
11811h
11812s/\(.\{148\}\)..*/\1/
11813t more1
11814s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11815p
11816n
11817b repl
11818:more1
11819s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11820p
11821g
11822s/.\{148\}//
11823t nl
11824:delim
11825h
11826s/\(.\{148\}\)..*/\1/
11827t more2
11828s/["\\]/\\&/g; s/^/"/; s/$/"/
11829p
11830b
11831:more2
11832s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11833p
11834g
11835s/.\{148\}//
11836t delim
11837' <conf$$subs.awk | sed '
11838/^[^""]/{
11839  N
11840  s/\n//
11841}
11842' >>$CONFIG_STATUS || ac_write_fail=1
11843rm -f conf$$subs.awk
11844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11845_ACAWK
11846cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11847  for (key in S) S_is_set[key] = 1
11848  FS = ""
11849
11850}
11851{
11852  line = $ 0
11853  nfields = split(line, field, "@")
11854  substed = 0
11855  len = length(field[1])
11856  for (i = 2; i < nfields; i++) {
11857    key = field[i]
11858    keylen = length(key)
11859    if (S_is_set[key]) {
11860      value = S[key]
11861      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11862      len += length(value) + length(field[++i])
11863      substed = 1
11864    } else
11865      len += 1 + keylen
11866  }
11867
11868  print line
11869}
11870
11871_ACAWK
11872_ACEOF
11873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11874if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11875  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11876else
11877  cat
11878fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11879  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11880_ACEOF
11881
11882# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11883# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11884# trailing colons and then remove the whole line if VPATH becomes empty
11885# (actually we leave an empty line to preserve line numbers).
11886if test "x$srcdir" = x.; then
11887  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11888h
11889s///
11890s/^/:/
11891s/[	 ]*$/:/
11892s/:\$(srcdir):/:/g
11893s/:\${srcdir}:/:/g
11894s/:@srcdir@:/:/g
11895s/^:*//
11896s/:*$//
11897x
11898s/\(=[	 ]*\).*/\1/
11899G
11900s/\n//
11901s/^[^=]*=[	 ]*$//
11902}'
11903fi
11904
11905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11906fi # test -n "$CONFIG_FILES"
11907
11908# Set up the scripts for CONFIG_HEADERS section.
11909# No need to generate them if there are no CONFIG_HEADERS.
11910# This happens for instance with `./config.status Makefile'.
11911if test -n "$CONFIG_HEADERS"; then
11912cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11913BEGIN {
11914_ACEOF
11915
11916# Transform confdefs.h into an awk script `defines.awk', embedded as
11917# here-document in config.status, that substitutes the proper values into
11918# config.h.in to produce config.h.
11919
11920# Create a delimiter string that does not exist in confdefs.h, to ease
11921# handling of long lines.
11922ac_delim='%!_!# '
11923for ac_last_try in false false :; do
11924  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11925  if test -z "$ac_tt"; then
11926    break
11927  elif $ac_last_try; then
11928    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11929  else
11930    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11931  fi
11932done
11933
11934# For the awk script, D is an array of macro values keyed by name,
11935# likewise P contains macro parameters if any.  Preserve backslash
11936# newline sequences.
11937
11938ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11939sed -n '
11940s/.\{148\}/&'"$ac_delim"'/g
11941t rset
11942:rset
11943s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11944t def
11945d
11946:def
11947s/\\$//
11948t bsnl
11949s/["\\]/\\&/g
11950s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11951D["\1"]=" \3"/p
11952s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11953d
11954:bsnl
11955s/["\\]/\\&/g
11956s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11957D["\1"]=" \3\\\\\\n"\\/p
11958t cont
11959s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11960t cont
11961d
11962:cont
11963n
11964s/.\{148\}/&'"$ac_delim"'/g
11965t clear
11966:clear
11967s/\\$//
11968t bsnlc
11969s/["\\]/\\&/g; s/^/"/; s/$/"/p
11970d
11971:bsnlc
11972s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11973b cont
11974' <confdefs.h | sed '
11975s/'"$ac_delim"'/"\\\
11976"/g' >>$CONFIG_STATUS || ac_write_fail=1
11977
11978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11979  for (key in D) D_is_set[key] = 1
11980  FS = ""
11981}
11982/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11983  line = \$ 0
11984  split(line, arg, " ")
11985  if (arg[1] == "#") {
11986    defundef = arg[2]
11987    mac1 = arg[3]
11988  } else {
11989    defundef = substr(arg[1], 2)
11990    mac1 = arg[2]
11991  }
11992  split(mac1, mac2, "(") #)
11993  macro = mac2[1]
11994  prefix = substr(line, 1, index(line, defundef) - 1)
11995  if (D_is_set[macro]) {
11996    # Preserve the white space surrounding the "#".
11997    print prefix "define", macro P[macro] D[macro]
11998    next
11999  } else {
12000    # Replace #undef with comments.  This is necessary, for example,
12001    # in the case of _POSIX_SOURCE, which is predefined and required
12002    # on some systems where configure will not decide to define it.
12003    if (defundef == "undef") {
12004      print "/*", prefix defundef, macro, "*/"
12005      next
12006    }
12007  }
12008}
12009{ print }
12010_ACAWK
12011_ACEOF
12012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12013  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12014fi # test -n "$CONFIG_HEADERS"
12015
12016
12017eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12018shift
12019for ac_tag
12020do
12021  case $ac_tag in
12022  :[FHLC]) ac_mode=$ac_tag; continue;;
12023  esac
12024  case $ac_mode$ac_tag in
12025  :[FHL]*:*);;
12026  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12027  :[FH]-) ac_tag=-:-;;
12028  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12029  esac
12030  ac_save_IFS=$IFS
12031  IFS=:
12032  set x $ac_tag
12033  IFS=$ac_save_IFS
12034  shift
12035  ac_file=$1
12036  shift
12037
12038  case $ac_mode in
12039  :L) ac_source=$1;;
12040  :[FH])
12041    ac_file_inputs=
12042    for ac_f
12043    do
12044      case $ac_f in
12045      -) ac_f="$ac_tmp/stdin";;
12046      *) # Look for the file first in the build tree, then in the source tree
12047	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12048	 # because $ac_f cannot contain `:'.
12049	 test -f "$ac_f" ||
12050	   case $ac_f in
12051	   [\\/$]*) false;;
12052	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12053	   esac ||
12054	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12055      esac
12056      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12057      as_fn_append ac_file_inputs " '$ac_f'"
12058    done
12059
12060    # Let's still pretend it is `configure' which instantiates (i.e., don't
12061    # use $as_me), people would be surprised to read:
12062    #    /* config.h.  Generated by config.status.  */
12063    configure_input='Generated from '`
12064	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12065	`' by configure.'
12066    if test x"$ac_file" != x-; then
12067      configure_input="$ac_file.  $configure_input"
12068      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12069$as_echo "$as_me: creating $ac_file" >&6;}
12070    fi
12071    # Neutralize special characters interpreted by sed in replacement strings.
12072    case $configure_input in #(
12073    *\&* | *\|* | *\\* )
12074       ac_sed_conf_input=`$as_echo "$configure_input" |
12075       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12076    *) ac_sed_conf_input=$configure_input;;
12077    esac
12078
12079    case $ac_tag in
12080    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12081      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12082    esac
12083    ;;
12084  esac
12085
12086  ac_dir=`$as_dirname -- "$ac_file" ||
12087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088	 X"$ac_file" : 'X\(//\)[^/]' \| \
12089	 X"$ac_file" : 'X\(//\)$' \| \
12090	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12091$as_echo X"$ac_file" |
12092    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12093	    s//\1/
12094	    q
12095	  }
12096	  /^X\(\/\/\)[^/].*/{
12097	    s//\1/
12098	    q
12099	  }
12100	  /^X\(\/\/\)$/{
12101	    s//\1/
12102	    q
12103	  }
12104	  /^X\(\/\).*/{
12105	    s//\1/
12106	    q
12107	  }
12108	  s/.*/./; q'`
12109  as_dir="$ac_dir"; as_fn_mkdir_p
12110  ac_builddir=.
12111
12112case "$ac_dir" in
12113.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12114*)
12115  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12116  # A ".." for each directory in $ac_dir_suffix.
12117  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12118  case $ac_top_builddir_sub in
12119  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12120  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12121  esac ;;
12122esac
12123ac_abs_top_builddir=$ac_pwd
12124ac_abs_builddir=$ac_pwd$ac_dir_suffix
12125# for backward compatibility:
12126ac_top_builddir=$ac_top_build_prefix
12127
12128case $srcdir in
12129  .)  # We are building in place.
12130    ac_srcdir=.
12131    ac_top_srcdir=$ac_top_builddir_sub
12132    ac_abs_top_srcdir=$ac_pwd ;;
12133  [\\/]* | ?:[\\/]* )  # Absolute name.
12134    ac_srcdir=$srcdir$ac_dir_suffix;
12135    ac_top_srcdir=$srcdir
12136    ac_abs_top_srcdir=$srcdir ;;
12137  *) # Relative name.
12138    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12139    ac_top_srcdir=$ac_top_build_prefix$srcdir
12140    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12141esac
12142ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12143
12144
12145  case $ac_mode in
12146  :F)
12147  #
12148  # CONFIG_FILE
12149  #
12150
12151  case $INSTALL in
12152  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12153  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12154  esac
12155  ac_MKDIR_P=$MKDIR_P
12156  case $MKDIR_P in
12157  [\\/$]* | ?:[\\/]* ) ;;
12158  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12159  esac
12160_ACEOF
12161
12162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163# If the template does not know about datarootdir, expand it.
12164# FIXME: This hack should be removed a few years after 2.60.
12165ac_datarootdir_hack=; ac_datarootdir_seen=
12166ac_sed_dataroot='
12167/datarootdir/ {
12168  p
12169  q
12170}
12171/@datadir@/p
12172/@docdir@/p
12173/@infodir@/p
12174/@localedir@/p
12175/@mandir@/p'
12176case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12177*datarootdir*) ac_datarootdir_seen=yes;;
12178*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12180$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12181_ACEOF
12182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12183  ac_datarootdir_hack='
12184  s&@datadir@&$datadir&g
12185  s&@docdir@&$docdir&g
12186  s&@infodir@&$infodir&g
12187  s&@localedir@&$localedir&g
12188  s&@mandir@&$mandir&g
12189  s&\\\${datarootdir}&$datarootdir&g' ;;
12190esac
12191_ACEOF
12192
12193# Neutralize VPATH when `$srcdir' = `.'.
12194# Shell code in configure.ac might set extrasub.
12195# FIXME: do we really want to maintain this feature?
12196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197ac_sed_extra="$ac_vpsub
12198$extrasub
12199_ACEOF
12200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201:t
12202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12203s|@configure_input@|$ac_sed_conf_input|;t t
12204s&@top_builddir@&$ac_top_builddir_sub&;t t
12205s&@top_build_prefix@&$ac_top_build_prefix&;t t
12206s&@srcdir@&$ac_srcdir&;t t
12207s&@abs_srcdir@&$ac_abs_srcdir&;t t
12208s&@top_srcdir@&$ac_top_srcdir&;t t
12209s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12210s&@builddir@&$ac_builddir&;t t
12211s&@abs_builddir@&$ac_abs_builddir&;t t
12212s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12213s&@INSTALL@&$ac_INSTALL&;t t
12214s&@MKDIR_P@&$ac_MKDIR_P&;t t
12215$ac_datarootdir_hack
12216"
12217eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12218  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12219
12220test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12221  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12222  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12223      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12224  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12225which seems to be undefined.  Please make sure it is defined" >&5
12226$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12227which seems to be undefined.  Please make sure it is defined" >&2;}
12228
12229  rm -f "$ac_tmp/stdin"
12230  case $ac_file in
12231  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12232  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12233  esac \
12234  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12235 ;;
12236  :H)
12237  #
12238  # CONFIG_HEADER
12239  #
12240  if test x"$ac_file" != x-; then
12241    {
12242      $as_echo "/* $configure_input  */" \
12243      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12244    } >"$ac_tmp/config.h" \
12245      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12246    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12247      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12248$as_echo "$as_me: $ac_file is unchanged" >&6;}
12249    else
12250      rm -f "$ac_file"
12251      mv "$ac_tmp/config.h" "$ac_file" \
12252	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12253    fi
12254  else
12255    $as_echo "/* $configure_input  */" \
12256      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12257      || as_fn_error $? "could not create -" "$LINENO" 5
12258  fi
12259# Compute "$ac_file"'s index in $config_headers.
12260_am_arg="$ac_file"
12261_am_stamp_count=1
12262for _am_header in $config_headers :; do
12263  case $_am_header in
12264    $_am_arg | $_am_arg:* )
12265      break ;;
12266    * )
12267      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12268  esac
12269done
12270echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12271$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12272	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12273	 X"$_am_arg" : 'X\(//\)$' \| \
12274	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12275$as_echo X"$_am_arg" |
12276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12277	    s//\1/
12278	    q
12279	  }
12280	  /^X\(\/\/\)[^/].*/{
12281	    s//\1/
12282	    q
12283	  }
12284	  /^X\(\/\/\)$/{
12285	    s//\1/
12286	    q
12287	  }
12288	  /^X\(\/\).*/{
12289	    s//\1/
12290	    q
12291	  }
12292	  s/.*/./; q'`/stamp-h$_am_stamp_count
12293 ;;
12294
12295  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12296$as_echo "$as_me: executing $ac_file commands" >&6;}
12297 ;;
12298  esac
12299
12300
12301  case $ac_file$ac_mode in
12302    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12303  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12304  # are listed without --file.  Let's play safe and only enable the eval
12305  # if we detect the quoting.
12306  case $CONFIG_FILES in
12307  *\'*) eval set x "$CONFIG_FILES" ;;
12308  *)   set x $CONFIG_FILES ;;
12309  esac
12310  shift
12311  for mf
12312  do
12313    # Strip MF so we end up with the name of the file.
12314    mf=`echo "$mf" | sed -e 's/:.*$//'`
12315    # Check whether this is an Automake generated Makefile or not.
12316    # We used to match only the files named `Makefile.in', but
12317    # some people rename them; so instead we look at the file content.
12318    # Grep'ing the first line is not enough: some people post-process
12319    # each Makefile.in and add a new line on top of each file to say so.
12320    # Grep'ing the whole file is not good either: AIX grep has a line
12321    # limit of 2048, but all sed's we know have understand at least 4000.
12322    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12323      dirpart=`$as_dirname -- "$mf" ||
12324$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12325	 X"$mf" : 'X\(//\)[^/]' \| \
12326	 X"$mf" : 'X\(//\)$' \| \
12327	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12328$as_echo X"$mf" |
12329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12330	    s//\1/
12331	    q
12332	  }
12333	  /^X\(\/\/\)[^/].*/{
12334	    s//\1/
12335	    q
12336	  }
12337	  /^X\(\/\/\)$/{
12338	    s//\1/
12339	    q
12340	  }
12341	  /^X\(\/\).*/{
12342	    s//\1/
12343	    q
12344	  }
12345	  s/.*/./; q'`
12346    else
12347      continue
12348    fi
12349    # Extract the definition of DEPDIR, am__include, and am__quote
12350    # from the Makefile without running `make'.
12351    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12352    test -z "$DEPDIR" && continue
12353    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12354    test -z "am__include" && continue
12355    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12356    # When using ansi2knr, U may be empty or an underscore; expand it
12357    U=`sed -n 's/^U = //p' < "$mf"`
12358    # Find all dependency output files, they are included files with
12359    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12360    # simplest approach to changing $(DEPDIR) to its actual value in the
12361    # expansion.
12362    for file in `sed -n "
12363      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12364	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12365      # Make sure the directory exists.
12366      test -f "$dirpart/$file" && continue
12367      fdir=`$as_dirname -- "$file" ||
12368$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12369	 X"$file" : 'X\(//\)[^/]' \| \
12370	 X"$file" : 'X\(//\)$' \| \
12371	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12372$as_echo X"$file" |
12373    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12374	    s//\1/
12375	    q
12376	  }
12377	  /^X\(\/\/\)[^/].*/{
12378	    s//\1/
12379	    q
12380	  }
12381	  /^X\(\/\/\)$/{
12382	    s//\1/
12383	    q
12384	  }
12385	  /^X\(\/\).*/{
12386	    s//\1/
12387	    q
12388	  }
12389	  s/.*/./; q'`
12390      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12391      # echo "creating $dirpart/$file"
12392      echo '# dummy' > "$dirpart/$file"
12393    done
12394  done
12395}
12396 ;;
12397
12398  esac
12399done # for ac_tag
12400
12401
12402as_fn_exit 0
12403_ACEOF
12404ac_clean_files=$ac_clean_files_save
12405
12406test $ac_write_fail = 0 ||
12407  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12408
12409
12410# configure is writing to config.log, and then calls config.status.
12411# config.status does its own redirection, appending to config.log.
12412# Unfortunately, on DOS this fails, as config.log is still kept open
12413# by configure, so config.status won't be able to write to it; its
12414# output is simply discarded.  So we exec the FD to /dev/null,
12415# effectively closing config.log, so it can be properly (re)opened and
12416# appended to by config.status.  When coming back to configure, we
12417# need to make the FD available again.
12418if test "$no_create" != yes; then
12419  ac_cs_success=:
12420  ac_config_status_args=
12421  test "$silent" = yes &&
12422    ac_config_status_args="$ac_config_status_args --quiet"
12423  exec 5>/dev/null
12424  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12425  exec 5>>config.log
12426  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12427  # would make configure fail if this is the last instruction.
12428  $ac_cs_success || as_fn_exit 1
12429fi
12430if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12432$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12433fi
12434
12435